Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f8f489b7 authored by Ricardo Cerqueira's avatar Ricardo Cerqueira Committed by Gerrit Code Review
Browse files

Merge "PackageManager: Limit the platform-key protection to test-keys builds" into cm-10.2

parents 94883f23 3d09cd23
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -4058,7 +4058,8 @@ public class PackageManagerService extends IPackageManager.Stub {
            return null;
        }

        if (!pkg.applicationInfo.sourceDir.startsWith(Environment.getRootDirectory().getPath()) &&
        if (Build.TAGS.equals("test-keys") &&
                !pkg.applicationInfo.sourceDir.startsWith(Environment.getRootDirectory().getPath()) &&
                !pkg.applicationInfo.sourceDir.startsWith("/vendor")) {
            Object obj = mSettings.getUserIdLPr(1000);
            Signature[] s1 = null;