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

Commit 07238e5a authored by Zoey Chen's avatar Zoey Chen
Browse files

[ToA] Add the root uid for CTS

Bug: 324916738
Test: atest GrammaticalInflectionManagerTest
Change-Id: I4843fbb349bc3efe5c8f1428a16780803a859c2d
parent bddfb803
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.");
        }
    }