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
This commit is contained in:
Ashwini Oruganti
2020-03-10 14:20:54 -07:00
parent 72fcef13fa
commit c2df8deeb1
2 changed files with 10 additions and 5 deletions

View File

@@ -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" />

View File

@@ -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>