Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9e21e9b3 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Limit bypass staged installer API to system and shell only" into...

Merge "Limit bypass staged installer API to system and shell only" into rvc-dev am: e91800d2 am: 71fa5796

Change-Id: Iaa85a8d5e75dc3e4cee2bd6323e2266a9f61957f
parents 035d762c 71fa5796
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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;
    }