[gradle] misc changes (#839)
This commit is contained in:
parent
67422d881e
commit
93e4bb9349
|
|
@ -73,6 +73,7 @@ jobs:
|
||||||
echo 'org.gradle.parallel=true' >> gradle.properties
|
echo 'org.gradle.parallel=true' >> gradle.properties
|
||||||
echo 'org.gradle.vfs.watch=true' >> gradle.properties
|
echo 'org.gradle.vfs.watch=true' >> gradle.properties
|
||||||
echo 'org.gradle.jvmargs=-Xmx2048m' >> gradle.properties
|
echo 'org.gradle.jvmargs=-Xmx2048m' >> gradle.properties
|
||||||
|
echo 'android.native.buildOutput=verbose' >> gradle.properties
|
||||||
./gradlew zipRelease zipDebug
|
./gradlew zipRelease zipDebug
|
||||||
- name: Prepare artifact
|
- name: Prepare artifact
|
||||||
if: success()
|
if: success()
|
||||||
|
|
|
||||||
|
|
@ -31,6 +31,8 @@ import android.widget.Toast;
|
||||||
|
|
||||||
import com.android.apksig.ApkVerifier;
|
import com.android.apksig.ApkVerifier;
|
||||||
|
|
||||||
|
import org.lsposed.lspd.service.ServiceManager;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
|
||||||
|
|
@ -43,6 +45,10 @@ public class InstallerVerifier {
|
||||||
.setMinCheckedPlatformVersion(27)
|
.setMinCheckedPlatformVersion(27)
|
||||||
.build();
|
.build();
|
||||||
try {
|
try {
|
||||||
|
var appInfo = ServiceManager.getSystemContext().getPackageManager().getPackageArchiveInfo(path, 0).applicationInfo;
|
||||||
|
if ((appInfo.flags & ApplicationInfo.FLAG_TEST_ONLY) != 0) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
ApkVerifier.Result result = verifier.verify();
|
ApkVerifier.Result result = verifier.verify();
|
||||||
if (!result.isVerified()) {
|
if (!result.isVerified()) {
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
|
|
@ -13,4 +13,3 @@
|
||||||
#Sat Jan 30 19:20:27 CST 202130.0.322.0.7026061
|
#Sat Jan 30 19:20:27 CST 202130.0.322.0.7026061
|
||||||
android.useAndroidX=true
|
android.useAndroidX=true
|
||||||
android.enableResourceOptimizations=false
|
android.enableResourceOptimizations=false
|
||||||
android.injected.testOnly=false
|
|
||||||
|
|
|
||||||
2
service
2
service
|
|
@ -1 +1 @@
|
||||||
Subproject commit 2492101f4b3073c785b91c547df0cbdd71b85a3e
|
Subproject commit 1c5304e1519474771901b48f23fe23815defcd84
|
||||||
Loading…
Reference in New Issue