Merge "Allow Instant Apps to call getPermissionControllerPackageName" into oc-dev

This commit is contained in:
TreeHugger Robot
2017-06-21 08:14:06 +00:00
committed by Android (Google) Code Review

View File

@@ -5063,9 +5063,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;
}