SystemUI: Add an exported flag in manifest
With b/150232615, we will need an explicit value set for the exported
flag when intent filters are present, as the default behavior is
changing for S+. This change adds the value reflecting the previous
default to the manifest.
Bug: 150232615
Test: TH
Change-Id: Ic7b6a56a1a258b5995cc97c3e690c2cf203a77d8
diff --git a/packages/SystemUI/AndroidManifest.xml b/packages/SystemUI/AndroidManifest.xml
index 617ed4e..2c8f9b4 100644
--- a/packages/SystemUI/AndroidManifest.xml
+++ b/packages/SystemUI/AndroidManifest.xml
@@ -536,7 +536,8 @@
<activity android:name=".SlicePermissionActivity"
android:theme="@style/Theme.SystemUI.Dialog.Alert"
android:finishOnCloseSystemDialogs="true"
- android:excludeFromRecents="true">
+ android:excludeFromRecents="true"
+ android:exported="true">
<intent-filter>
<action android:name="com.android.intent.action.REQUEST_SLICE_PERMISSION" />
</intent-filter>
@@ -645,7 +646,8 @@
android:process=":fgservices"
android:excludeFromRecents="true"
android:launchMode="singleTop"
- android:theme="@*android:style/Theme.DeviceDefault.Settings.Dialog">
+ android:theme="@*android:style/Theme.DeviceDefault.Settings.Dialog"
+ android:exported="true">
<intent-filter android:priority="1">
<action android:name="android.settings.FOREGROUND_SERVICES_SETTINGS" />
<category android:name="android.intent.category.DEFAULT" />
@@ -660,7 +662,8 @@
android:relinquishTaskIdentity="true"
android:configChanges="screenSize|smallestScreenSize|screenLayout|orientation|keyboard|keyboardHidden"
android:process=":ui"
- android:visibleToInstantApps="true">
+ android:visibleToInstantApps="true"
+ android:exported="true">
<intent-filter>
<action android:name="android.intent.action.CHOOSER" />
<category android:name="android.intent.category.VOICE" />
@@ -726,7 +729,8 @@
</provider>
<receiver
- android:name=".statusbar.KeyboardShortcutsReceiver">
+ android:name=".statusbar.KeyboardShortcutsReceiver"
+ android:exported="true">
<intent-filter>
<action android:name="com.android.intent.action.DISMISS_KEYBOARD_SHORTCUTS" />
<action android:name="com.android.intent.action.SHOW_KEYBOARD_SHORTCUTS" />
diff --git a/packages/SystemUI/tests/AndroidManifest.xml b/packages/SystemUI/tests/AndroidManifest.xml
index 12c7048..10981b7 100644
--- a/packages/SystemUI/tests/AndroidManifest.xml
+++ b/packages/SystemUI/tests/AndroidManifest.xml
@@ -56,7 +56,8 @@
<application android:debuggable="true" android:largeHeap="true">
<uses-library android:name="android.test.runner" />
- <receiver android:name="com.android.systemui.SliceBroadcastRelayHandlerTest$Receiver">
+ <receiver android:name="com.android.systemui.SliceBroadcastRelayHandlerTest$Receiver"
+ android:exported="true">
<intent-filter>
<action android:name="com.android.systemui.action.TEST_ACTION" />
</intent-filter>