Merge "Limit bypass staged installer API to system and shell only" into rvc-dev am: e91800d290 am: 71fa579660
Change-Id: Iaa85a8d5e75dc3e4cee2bd6323e2266a9f61957f
This commit is contained in:
@@ -979,6 +979,9 @@ public class PackageInstallerService extends IPackageInstaller.Stub implements
|
||||
|
||||
@Override
|
||||
public void bypassNextStagedInstallerCheck(boolean value) {
|
||||
if (!isCalledBySystemOrShell(Binder.getCallingUid())) {
|
||||
throw new SecurityException("Caller not allowed to bypass staged installer check");
|
||||
}
|
||||
mBypassNextStagedInstallerCheck = value;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user