From 897a0e04707194caaf86521462b3581427c78204 Mon Sep 17 00:00:00 2001 From: Bernardo Rufino Date: Wed, 6 Nov 2019 15:00:27 +0000 Subject: [PATCH] Ignore "package:" in MANAGE_OVERLAY_PERMISSION intent Before this change, intents with action = MANAGE_OVERLAY_PERMISSION and data = URI "package:" would redirect the user to the specific app screen with the toggle to grant SYSTEM_ALERT_WINDOW (SAW) permission. This makes it too easy for malicious apps to fool the user into enabling it and we know that exist malware attempts to do so. This CL redirects that intent to the screen that list all the apps requesting SAW permission, introducing some friction for the user, which hopefully will allow more time for consideration. This is consistent with how other access permission intents work. Test: Working on CTS Test: adb shell am start -a android.settings.action.MANAGE_OVERLAY_PERMISSION -d package: goes to list of apps screen Test: adb shell am start -a android.settings.action.MANAGE_OVERLAY_PERMISSION also goes there Bug: 135920175 Change-Id: I02fb842106602dab7fc285d0741edb58432ac7ad --- AndroidManifest.xml | 9 +-------- src/com/android/settings/Settings.java | 1 - 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/AndroidManifest.xml b/AndroidManifest.xml index afc4d40e3f4..f2ed29cd3b7 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -2701,20 +2701,13 @@ - - - - + android:value="com.android.settings.applications.manageapplications.ManageApplications" />