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

Commit 06a88467 authored by Svetoslav's avatar Svetoslav Committed by Android (Google) Code Review
Browse files

Merge "Allowing the root user to use the screen introspection APIs."

parents cd6b8e49 d08d7ee4
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2820,7 +2820,8 @@ public class AccessibilityManagerService extends IAccessibilityManager.Stub {

        public int resolveCallingUserIdEnforcingPermissionsLocked(int userId) {
            final int callingUid = Binder.getCallingUid();
            if (callingUid == Process.SYSTEM_UID
            if (callingUid == 0
                    || callingUid == Process.SYSTEM_UID
                    || callingUid == Process.SHELL_UID) {
                return mCurrentUserId;
            }