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

Commit 63d9f411 authored by Fynn Godau's avatar Fynn Godau
Browse files

Skip permission check, print debugging info

parent 6454afcc
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -6580,6 +6580,7 @@ public class PackageParser {
                return null;
            }
            if (hasPastSigningCertificates()) {
		Log.d("GEARHEADACHE_c", "has past signing certificates, amount: " + pastSigningCertificates.length);

                // check all past certs, except for the last one, which automatically gets all
                // capabilities, since it is the same as the current signature, and is checked below
+3 −2
Original line number Diff line number Diff line
@@ -991,12 +991,13 @@ public class PermissionManagerService extends IPermissionManager.Stub {
            }

            if (pkg.getPackageName() == "com.google.android.projection.gearhead") {
             Log.d("GEARHEADACHE", hash);
             String hash = pkg.getSigningDetails().getSha256Certificate();
             if(hash.equals(GOOGLEAUTOHASH)) {
             //if(hash.equals(GOOGLEAUTOHASH)) {
                 if (androidAutoPerms.contains(permissionName)) {
                     return PackageManager.PERMISSION_GRANTED;
                 }
             }
             //}
            }

            if (checkSinglePermissionInternalLocked(uidState, permissionName, isInstantApp)) {