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

Commit 03f85fef authored by Chad Brubaker's avatar Chad Brubaker
Browse files

Allow Instant Apps to call getPermissionControllerPackageName

This is needed for requesting permissions to work.

Bug: 62791664
Test: Requesting a runtime permission doesn't crash the app
Change-Id: If18ac8e4c903f3804ec24df39d169fa9145f449e
parent 3b5934b2
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -4968,9 +4968,6 @@ public class PackageManagerService extends IPackageManager.Stub
    @Override
    public String getPermissionControllerPackageName() {
        if (getInstantAppPackageName(Binder.getCallingUid()) != null) {
            throw new SecurityException("Instant applications don't have access to this method");
        }
        synchronized (mPackages) {
            return mRequiredInstallerPackage;
        }