From 35e18c5f4e37360cd81ef1366dcb1a4d4c23e870 Mon Sep 17 00:00:00 2001 From: Linus Tufvesson Date: Tue, 2 Feb 2021 10:10:41 +0000 Subject: Remove special handling of recents .. now that they've moved over to use SYSTEM_APPLICAITON_OVERLAY instead of SYSTEM_ALERT_WINDOW. Also removes recents from the protectionLevel of SAW. Bug: 169054709 Test: atest PermissionPolicyTest Test: atest CtsWindowManagerDeviceTestCases:HideOverlayWindowsTest Test: Manually verified with modified launcher that recent section is still visible while browsing settings Change-Id: Ie8e21158d6c12eb43c5411d0cb2259a8823ccacd --- core/res/AndroidManifest.xml | 4 ++-- services/core/java/com/android/server/wm/Session.java | 7 +------ services/core/java/com/android/server/wm/WindowState.java | 2 +- 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/core/res/AndroidManifest.xml b/core/res/AndroidManifest.xml index 827bf7b70cbc..05ad3ababaea 100644 --- a/core/res/AndroidManifest.xml +++ b/core/res/AndroidManifest.xml @@ -2698,11 +2698,11 @@ The app can check whether it has this authorization by calling {@link android.provider.Settings#canDrawOverlays Settings.canDrawOverlays()}. -

Protection level: signature|appop|installer|recents|appPredictor|pre23|development --> +

Protection level: signature|appop|installer|appPredictor|pre23|development --> + android:protectionLevel="signature|appop|installer|appPredictor|pre23|development" />