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

Commit 07bb0ddb authored by Aseem Kumar's avatar Aseem Kumar Committed by mse1969
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:066a09c0c0926d86204898b00640e9969fcba4e3)
Merged-In: I1003ac2a795c869aaeb292692b2681c7a5c8d12e
Change-Id: I1003ac2a795c869aaeb292692b2681c7a5c8d12e
parent d2cf191d
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -5930,6 +5930,9 @@ public class AccountManagerService
    }

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