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

Commit d4007091 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
parent e19c1374
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 {