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

Commit a7972e8f authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Allow the system user to access public displays" into main

parents 2e0ae521 97d062ea
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1269,7 +1269,8 @@ public class ActivityTaskSupervisor implements RecentTasks.Callbacks {
            // Checks if the caller can be shown in the given public display.
            int userId = UserHandle.getUserId(callingUid);
            int displayId = display.getDisplayId();
            boolean allowed = mWindowManager.mUmInternal.isUserVisible(userId, displayId);
            boolean allowed = userId == UserHandle.USER_SYSTEM
                    || mWindowManager.mUmInternal.isUserVisible(userId, displayId);
            ProtoLog.d(WM_DEBUG_TASKS,
                    "Launch on display check: %s launch for userId=%d on displayId=%d",
                    (allowed ? "allow" : "disallow"), userId, displayId);