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

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

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

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

            mDisplayWindowSettings.setShouldShowSystemDecorsLocked(displayContent, shouldShow);

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

            mDisplayWindowSettings.setShouldShowImeLocked(displayContent, shouldShow);