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
This commit is contained in:
Chad Brubaker
2017-06-20 23:13:21 -07:00
parent 3b5934b267
commit 03f85fef7f

View File

@@ -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;
}