Merge "Allow Instant Apps to call getPermissionControllerPackageName" into oc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
88f98985d5
@@ -5063,9 +5063,6 @@ public class PackageManagerService extends IPackageManager.Stub
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getPermissionControllerPackageName() {
|
public String getPermissionControllerPackageName() {
|
||||||
if (getInstantAppPackageName(Binder.getCallingUid()) != null) {
|
|
||||||
throw new SecurityException("Instant applications don't have access to this method");
|
|
||||||
}
|
|
||||||
synchronized (mPackages) {
|
synchronized (mPackages) {
|
||||||
return mRequiredInstallerPackage;
|
return mRequiredInstallerPackage;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user