[core] No longer trust testonly manager (#656)

This commit is contained in:
LoveSy 2021-05-22 21:36:12 +08:00 committed by GitHub
parent 7257181e2e
commit 7f83efb2d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 3 deletions

View File

@ -38,9 +38,6 @@ import de.robv.android.xposed.XposedHelpers;
public class InstallerVerifier {
public static boolean verifyInstallerSignature(ApplicationInfo appInfo) {
if ((appInfo.flags & ApplicationInfo.FLAG_TEST_ONLY) != 0) {
return true;
}
ApkVerifier verifier = new ApkVerifier.Builder(new File(appInfo.sourceDir))
.setMinCheckedPlatformVersion(26)
.build();