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

Commit 87557d8b authored by Chilun's avatar Chilun Committed by android-build-merger
Browse files

Merge "Don't allow enabling system decorations for untrusted virtual displays (2/2)" into qt-dev

am: dffca3a6

Change-Id: I8b416f06dd60d2915d4413cbd966cb754c0d70c7
parents 1ee06b99 dffca3a6
Loading
Loading
Loading
Loading
+8 −0
Original line number Original line Diff line number Diff line
@@ -6963,6 +6963,10 @@ public class WindowManagerService extends IWindowManager.Stub
                        + "not exist: " + displayId);
                        + "not exist: " + displayId);
                return;
                return;
            }
            }
            if (displayContent.isUntrustedVirtualDisplay()) {
                throw new SecurityException("Attempted to set system decors flag to an untrusted "
                        + "virtual display: " + displayId);
            }


            mDisplayWindowSettings.setShouldShowSystemDecorsLocked(displayContent, shouldShow);
            mDisplayWindowSettings.setShouldShowSystemDecorsLocked(displayContent, shouldShow);


@@ -7004,6 +7008,10 @@ public class WindowManagerService extends IWindowManager.Stub
                        + displayId);
                        + displayId);
                return;
                return;
            }
            }
            if (displayContent.isUntrustedVirtualDisplay()) {
                throw new SecurityException("Attempted to set IME flag to an untrusted "
                        + "virtual display: " + displayId);
            }


            mDisplayWindowSettings.setShouldShowImeLocked(displayContent, shouldShow);
            mDisplayWindowSettings.setShouldShowImeLocked(displayContent, shouldShow);