PackageParser: don't validate signing certificate by default

This significantly speeds up startup time with larger APK files.

NewPipe launches 0.5 s faster.
WhatsApp launches 3.5 s faster.
This commit is contained in:
Julian Winkler
2025-10-08 16:04:33 +02:00
parent 5f22164d82
commit d3c0a09331
2 changed files with 2 additions and 1 deletions

View File

@@ -629,7 +629,7 @@ public class PackageParser {
Certificate[] certs = null;
if ((flags & PARSE_IS_SYSTEM) != 0) {
if ((flags & PARSE_IS_SYSTEM) != 0 || System.getenv("ATL_VALIDATE_CERTS") == null) {
// If this package comes from the system image, then we
// can trust it... we'll just use the AndroidManifest.xml
// to retrieve its signatures, not validating all of the