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

Commit 5de91c6e 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 rvc-dev am: e91800d2

Change-Id: Ia2df2ffa4e5a71d1354912fc8c6df38878ddfb62
parents 45460c60 e91800d2
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;
    }