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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user