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

Commit e73ea8f5 authored by Aseem Kumar's avatar Aseem Kumar
Browse files

Don't allow SdkSandbox to bypass systemUid check.

Test: atest

Flag: EXEMPT security fix

Bug: 397438392
Change-Id: I1003ac2a795c869aaeb292692b2681c7a5c8d12e
(cherry picked from commit d4007091)
parent eaf6e716
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -5831,6 +5831,9 @@ public class AccountManagerService
    }
    }


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