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

Commit 9e73f1db authored by Zoey Chen's avatar Zoey Chen Committed by Android (Google) Code Review
Browse files

Merge "[ToA] Add the root uid for CTS" into main

parents b40eb0e0 07238e5a
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -329,8 +329,9 @@ public class GrammaticalInflectionService extends SystemService {

    private void checkCallerIsSystem() {
        int callingUid = Binder.getCallingUid();
        if (callingUid != Process.SYSTEM_UID && callingUid != Process.SHELL_UID) {
            throw new SecurityException("Caller is not system and shell.");
        if (callingUid != Process.SYSTEM_UID && callingUid != Process.SHELL_UID
                && callingUid != Process.ROOT_UID) {
            throw new SecurityException("Caller is not system, shell and root.");
        }
    }