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

Commit c21f7931 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:3eb6e9bf403d4b42762f15f55875cbb75039edea)
Merged-In: I1003ac2a795c869aaeb292692b2681c7a5c8d12e
Change-Id: I1003ac2a795c869aaeb292692b2681c7a5c8d12e
parent 50ae7298
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -6146,6 +6146,9 @@ public class AccountManagerService
    }

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