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

Commit 66ac1790 authored by Aseem Kumar's avatar Aseem Kumar Committed by Android Build Coastguard Worker
Browse files

Don't allow SdkSandbox to bypass systemUid check.

Test: atest

Flag: EXEMPT security fix

Bug: 397438392
(cherry picked from commit d4007091)
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:4732a7720c89aeaa30157932c3d9e37908d50db2)
Merged-In: I1003ac2a795c869aaeb292692b2681c7a5c8d12e
Change-Id: I1003ac2a795c869aaeb292692b2681c7a5c8d12e
parent 7ed50e5b
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -6080,6 +6080,9 @@ public class AccountManagerService
    }

    private boolean isSystemUid(int callingUid) {
        if (Process.isSdkSandboxUid(callingUid)) {
            return false;
        }
        String[] packages = null;
        final long ident = Binder.clearCallingIdentity();
        try {