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