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

Commit 38499fe6 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 am: 9e21e9b3 am: 384cf750

Change-Id: I9f385fa7f8b0819102bf75c8f1ae189967f6d66f
parents dde0c4a9 384cf750
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -983,6 +983,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;
    }