You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user