Fix permission issue with START_WIDGET_PICKER_ACTIVITY
The permission for starting the widget picker activity didn't match its
declaration, making it orphaned. Any other package/app could then spoof
the permission and start the activity.
Bug: 365082993
Test: Manually by creating an app that attempts to spoof the permission
and testing that it was not able to show the activity.
Flag: EXEMPT bugfix
Change-Id: I1af4bc68329a30eb8d6a92c944f6c84b4992107a
diff --git a/quickstep/AndroidManifest.xml b/quickstep/AndroidManifest.xml
index 57bfb4a..8c39585 100644
--- a/quickstep/AndroidManifest.xml
+++ b/quickstep/AndroidManifest.xml
@@ -152,7 +152,7 @@
android:showOnLockScreen="true"
android:launchMode="singleTop"
android:exported="true"
- android:permission="android.permission.START_WIDGET_PICKER_ACTIVITY">
+ android:permission="${applicationId}.permission.START_WIDGET_PICKER_ACTIVITY">
<intent-filter>
<action android:name="android.intent.action.PICK" />
<category android:name="android.intent.category.DEFAULT" />