From d996c32e9d7cf7e050b3b3094373ff2ea2428137 Mon Sep 17 00:00:00 2001 From: Jacqueline Bronger Date: Mon, 13 Feb 2023 15:35:49 +0100 Subject: [PATCH] Add RECEIVER_NOT_EXPORTED to TV PiP broadcast receiver Not explicitly adding this flag causes a SecurityException when PiP is entered. Bug: 269101156 Test: manual - start a PiP -> no crash, double press home -> PiP menu opens, click on PiP notificaation -> PiP goes back to fullscreen Change-Id: I3c1f657de191343f3a33d3f4a9cf13467ff83f4b --- .../Shell/src/com/android/wm/shell/pip/tv/TvPipController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/WindowManager/Shell/src/com/android/wm/shell/pip/tv/TvPipController.java b/libs/WindowManager/Shell/src/com/android/wm/shell/pip/tv/TvPipController.java index 02b919777f0f6..a437a3bc2826c 100644 --- a/libs/WindowManager/Shell/src/com/android/wm/shell/pip/tv/TvPipController.java +++ b/libs/WindowManager/Shell/src/com/android/wm/shell/pip/tv/TvPipController.java @@ -740,7 +740,7 @@ public class TvPipController implements PipTransitionController.PipTransitionCal if (mRegistered) return; mContext.registerReceiverForAllUsers(this, mIntentFilter, SYSTEMUI_PERMISSION, - mMainHandler); + mMainHandler, Context.RECEIVER_NOT_EXPORTED); mRegistered = true; }