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

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

Merge "Do not allow custom animation of untrusted Toast" into security-aosp-25Q2-staging

parents 2e85ab87 ad7120e1
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -985,6 +985,10 @@ public class DisplayPolicy {
                        AccessibilityManager.FLAG_CONTENT_TEXT);
                // Toasts can't be clickable
                attrs.flags |= WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE;
                // Do not allow untrusted toast to customize animation.
                if (!win.mSession.mCanAddInternalSystemWindow) {
                    attrs.windowAnimations = R.style.Animation_Toast;
                }
                break;

            case TYPE_BASE_APPLICATION: