From 69df70ee07502670e28266a831e5cd633254b627 Mon Sep 17 00:00:00 2001 From: Siarhei Vishniakou Date: Tue, 22 Feb 2022 14:59:40 -0800 Subject: [PATCH] Allow ROLE_HOME to use FLAG_SLIPPERY Some launchers don't have the "signature" permission. Instead of requiring "signature | recents" protection level for FLAG_SLIPPERY, let's change this to provide such permission to any "home" app. This way, any launcher can use this flag. This CL can be verified by pulling down the notification shade from home screen. The pull must happen from the middle of the screen, not from the top of the screen. Bug: 220805921 Bug: 157929241 Test: atest PermissionControllerMockingTests Test: verified on a pixel device Test: atest android.permission2.cts.PermissionPolicyTest Change-Id: I83a5c45ba818374c823065c8d104c06bed3e1459 --- core/api/system-current.txt | 1 + core/res/AndroidManifest.xml | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/core/api/system-current.txt b/core/api/system-current.txt index ac7bfaba29d02..dc96b13ac9743 100644 --- a/core/api/system-current.txt +++ b/core/api/system-current.txt @@ -34,6 +34,7 @@ package android { field public static final String ALLOCATE_AGGRESSIVE = "android.permission.ALLOCATE_AGGRESSIVE"; field public static final String ALLOW_ANY_CODEC_FOR_PLAYBACK = "android.permission.ALLOW_ANY_CODEC_FOR_PLAYBACK"; field public static final String ALLOW_PLACE_IN_MULTI_PANE_SETTINGS = "android.permission.ALLOW_PLACE_IN_MULTI_PANE_SETTINGS"; + field public static final String ALLOW_SLIPPERY_TOUCHES = "android.permission.ALLOW_SLIPPERY_TOUCHES"; field public static final String AMBIENT_WALLPAPER = "android.permission.AMBIENT_WALLPAPER"; field public static final String APPROVE_INCIDENT_REPORTS = "android.permission.APPROVE_INCIDENT_REPORTS"; field public static final String ASSOCIATE_COMPANION_DEVICES = "android.permission.ASSOCIATE_COMPANION_DEVICES"; diff --git a/core/res/AndroidManifest.xml b/core/res/AndroidManifest.xml index 21baa0bcea97e..a28a43ad86f64 100644 --- a/core/res/AndroidManifest.xml +++ b/core/res/AndroidManifest.xml @@ -6150,10 +6150,10 @@ - + + android:protectionLevel="signature|privileged|recents|role" />