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 future versions. This change adds the value reflecting the previous default to the manifest. These changes were made using an automated tool, the xml file may be reformatted slightly creating a larger diff. The only "real" change is the addition of "android:exported" to activities, services, and receivers that have one or more intent-filters. Bug: 150232615 Bug: 158198882 Test: TH Exempt-From-Owner-Approval: mechanical refactoring Change-Id: I083a7bcab968c881f7cdff7152a249691ffac316
This commit is contained in:
parent
7fa1c8a25d
commit
aa902e859b
|
@ -86,6 +86,7 @@
|
|||
<receiver
|
||||
android:name="com.android.launcher3.InstallShortcutReceiver"
|
||||
android:permission="com.android.launcher.permission.INSTALL_SHORTCUT"
|
||||
android:exported="true"
|
||||
android:enabled="@bool/enable_install_shortcut_api" >
|
||||
<intent-filter>
|
||||
<action android:name="com.android.launcher.action.INSTALL_SHORTCUT" />
|
||||
|
@ -94,14 +95,16 @@
|
|||
|
||||
<!-- Intent received when a session is committed -->
|
||||
<receiver
|
||||
android:name="com.android.launcher3.SessionCommitReceiver" >
|
||||
android:name="com.android.launcher3.SessionCommitReceiver"
|
||||
android:exported="true">
|
||||
<intent-filter>
|
||||
<action android:name="android.content.pm.action.SESSION_COMMITTED" />
|
||||
</intent-filter>
|
||||
</receiver>
|
||||
|
||||
<!-- Intent received used to initialize a restored widget -->
|
||||
<receiver android:name="com.android.launcher3.AppWidgetsRestoredReceiver" >
|
||||
<receiver android:name="com.android.launcher3.AppWidgetsRestoredReceiver"
|
||||
android:exported="true">
|
||||
<intent-filter>
|
||||
<action android:name="android.appwidget.action.APPWIDGET_HOST_RESTORED"/>
|
||||
</intent-filter>
|
||||
|
@ -117,6 +120,7 @@
|
|||
android:name="com.android.launcher3.notification.NotificationListener"
|
||||
android:label="@string/notification_dots_service_title"
|
||||
android:enabled="@bool/notification_dots_enabled"
|
||||
android:exported="true"
|
||||
android:permission="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE">
|
||||
<intent-filter>
|
||||
<action android:name="android.service.notification.NotificationListenerService" />
|
||||
|
@ -130,6 +134,7 @@
|
|||
android:theme="@style/AppItemActivityTheme"
|
||||
android:excludeFromRecents="true"
|
||||
android:autoRemoveFromRecents="true"
|
||||
android:exported="true"
|
||||
android:label="@string/action_add_to_workspace" >
|
||||
<intent-filter>
|
||||
<action android:name="android.content.pm.action.CONFIRM_PIN_SHORTCUT" />
|
||||
|
@ -165,6 +170,7 @@
|
|||
android:name="com.android.launcher3.settings.SettingsActivity"
|
||||
android:label="@string/settings_button_text"
|
||||
android:theme="@style/HomeSettingsTheme"
|
||||
android:exported="true"
|
||||
android:autoRemoveFromRecents="true">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.APPLICATION_PREFERENCES" />
|
||||
|
@ -187,6 +193,7 @@
|
|||
android:name="com.android.launcher3.secondarydisplay.SecondaryDisplayLauncher"
|
||||
android:theme="@style/AppTheme"
|
||||
android:launchMode="singleTop"
|
||||
android:exported="true"
|
||||
android:enabled="true">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
|
|
|
@ -53,6 +53,7 @@
|
|||
android:resizeableActivity="true"
|
||||
android:resumeWhilePausing="true"
|
||||
android:taskAffinity=""
|
||||
android:exported="true"
|
||||
android:enabled="true">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
|
|
|
@ -53,6 +53,7 @@
|
|||
android:resizeableActivity="true"
|
||||
android:resumeWhilePausing="true"
|
||||
android:taskAffinity=""
|
||||
android:exported="true"
|
||||
android:enabled="true">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
|
|
|
@ -17,23 +17,22 @@
|
|||
** limitations under the License.
|
||||
*/
|
||||
-->
|
||||
<manifest
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
package="com.android.launcher3" >
|
||||
package="com.android.launcher3">
|
||||
|
||||
<permission
|
||||
android:name="${packageName}.permission.HOTSEAT_EDU"
|
||||
android:permissionGroup="android.permission-group.SYSTEM_TOOLS"
|
||||
android:protectionLevel="signatureOrSystem" />
|
||||
|
||||
<uses-permission android:name="android.permission.CONTROL_REMOTE_APP_TRANSITION_ANIMATIONS" />
|
||||
<uses-permission android:name="android.permission.VIBRATE" />
|
||||
<uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" />
|
||||
<uses-permission android:name="android.permission.CONTROL_REMOTE_APP_TRANSITION_ANIMATIONS"/>
|
||||
<uses-permission android:name="android.permission.VIBRATE"/>
|
||||
<uses-permission android:name="android.permission.QUERY_ALL_PACKAGES"/>
|
||||
<uses-permission android:name="${packageName}.permission.HOTSEAT_EDU" />
|
||||
|
||||
<application
|
||||
android:backupAgent="com.android.launcher3.LauncherBackupAgent"
|
||||
<application android:backupAgent="com.android.launcher3.LauncherBackupAgent"
|
||||
android:fullBackupOnly="true"
|
||||
android:fullBackupContent="@xml/backupscheme"
|
||||
android:hardwareAccelerated="true"
|
||||
|
@ -42,14 +41,14 @@
|
|||
android:theme="@style/AppTheme"
|
||||
android:largeHeap="@bool/config_largeHeap"
|
||||
android:restoreAnyVersion="true"
|
||||
android:supportsRtl="true" >
|
||||
android:supportsRtl="true">
|
||||
|
||||
<service
|
||||
android:name="com.android.quickstep.TouchInteractionService"
|
||||
<service android:name="com.android.quickstep.TouchInteractionService"
|
||||
android:permission="android.permission.STATUS_BAR_SERVICE"
|
||||
android:directBootAware="true" >
|
||||
android:directBootAware="true"
|
||||
android:exported="true">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.QUICKSTEP_SERVICE" />
|
||||
<action android:name="android.intent.action.QUICKSTEP_SERVICE"/>
|
||||
</intent-filter>
|
||||
</service>
|
||||
|
||||
|
@ -63,51 +62,46 @@
|
|||
android:configChanges="keyboard|keyboardHidden|mcc|mnc|navigation|orientation|screenSize|screenLayout|smallestScreenSize"
|
||||
android:resizeableActivity="true"
|
||||
android:resumeWhilePausing="true"
|
||||
android:taskAffinity="" />
|
||||
android:taskAffinity=""/>
|
||||
|
||||
<!-- Content provider to settings search. The autority should be same as the packageName -->
|
||||
<provider
|
||||
android:name="com.android.quickstep.LauncherSearchIndexablesProvider"
|
||||
<provider android:name="com.android.quickstep.LauncherSearchIndexablesProvider"
|
||||
android:authorities="${packageName}"
|
||||
android:grantUriPermissions="true"
|
||||
android:multiprocess="true"
|
||||
android:permission="android.permission.READ_SEARCH_INDEXABLES"
|
||||
android:exported="true">
|
||||
<intent-filter>
|
||||
<action android:name="android.content.action.SEARCH_INDEXABLES_PROVIDER" />
|
||||
<action android:name="android.content.action.SEARCH_INDEXABLES_PROVIDER"/>
|
||||
</intent-filter>
|
||||
</provider>
|
||||
|
||||
<!-- FileProvider used for sharing images. -->
|
||||
<provider
|
||||
android:name="androidx.core.content.FileProvider"
|
||||
<provider android:name="androidx.core.content.FileProvider"
|
||||
android:authorities="${packageName}.overview.fileprovider"
|
||||
android:exported="false"
|
||||
android:grantUriPermissions="true">
|
||||
<meta-data
|
||||
android:name="android.support.FILE_PROVIDER_PATHS"
|
||||
android:resource="@xml/overview_file_provider_paths" />
|
||||
<meta-data android:name="android.support.FILE_PROVIDER_PATHS"
|
||||
android:resource="@xml/overview_file_provider_paths"/>
|
||||
</provider>
|
||||
|
||||
<service
|
||||
android:name="com.android.launcher3.uioverrides.dynamicui.WallpaperManagerCompatVL$ColorExtractionService"
|
||||
tools:node="remove" />
|
||||
<service android:name="com.android.launcher3.uioverrides.dynamicui.WallpaperManagerCompatVL$ColorExtractionService"
|
||||
tools:node="remove"/>
|
||||
|
||||
<activity
|
||||
android:name="com.android.launcher3.proxy.ProxyActivityStarter"
|
||||
<activity android:name="com.android.launcher3.proxy.ProxyActivityStarter"
|
||||
android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen"
|
||||
android:launchMode="singleTask"
|
||||
android:clearTaskOnLaunch="true"
|
||||
android:exported="false" />
|
||||
android:exported="false"/>
|
||||
|
||||
<activity
|
||||
android:name="com.android.quickstep.interaction.GestureSandboxActivity"
|
||||
<activity android:name="com.android.quickstep.interaction.GestureSandboxActivity"
|
||||
android:autoRemoveFromRecents="true"
|
||||
android:excludeFromRecents="true"
|
||||
android:screenOrientation="portrait">
|
||||
android:screenOrientation="portrait"
|
||||
android:exported="true">
|
||||
<intent-filter>
|
||||
<action android:name="com.android.quickstep.action.GESTURE_SANDBOX" />
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
<action android:name="com.android.quickstep.action.GESTURE_SANDBOX"/>
|
||||
<category android:name="android.intent.category.DEFAULT"/>
|
||||
</intent-filter>
|
||||
</activity>
|
||||
<activity
|
||||
|
|
|
@ -29,6 +29,7 @@
|
|||
|
||||
<receiver
|
||||
android:name="com.android.launcher3.testcomponent.AppWidgetNoConfig"
|
||||
android:exported="true"
|
||||
android:label="No Config">
|
||||
<intent-filter>
|
||||
<action android:name="android.appwidget.action.APPWIDGET_UPDATE"/>
|
||||
|
@ -39,6 +40,7 @@
|
|||
|
||||
<receiver
|
||||
android:name="com.android.launcher3.testcomponent.AppWdigetHidden"
|
||||
android:exported="true"
|
||||
android:label="Hidden widget">
|
||||
<intent-filter>
|
||||
<action android:name="android.appwidget.action.APPWIDGET_UPDATE"/>
|
||||
|
@ -49,6 +51,7 @@
|
|||
|
||||
<receiver
|
||||
android:name="com.android.launcher3.testcomponent.AppWidgetWithConfig"
|
||||
android:exported="true"
|
||||
android:label="With Config">
|
||||
<intent-filter>
|
||||
<action android:name="android.appwidget.action.APPWIDGET_UPDATE"/>
|
||||
|
@ -58,12 +61,14 @@
|
|||
</receiver>
|
||||
|
||||
<activity
|
||||
android:name="com.android.launcher3.testcomponent.WidgetConfigActivity">
|
||||
android:name="com.android.launcher3.testcomponent.WidgetConfigActivity"
|
||||
android:exported="true">
|
||||
<intent-filter>
|
||||
<action android:name="android.appwidget.action.APPWIDGET_CONFIGURE"/>
|
||||
</intent-filter>
|
||||
</activity>
|
||||
<activity android:name="com.android.launcher3.testcomponent.CustomShortcutConfigActivity">
|
||||
<activity android:name="com.android.launcher3.testcomponent.CustomShortcutConfigActivity"
|
||||
android:exported="true">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.CREATE_SHORTCUT" />
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
|
@ -72,6 +77,7 @@
|
|||
<activity
|
||||
android:name="com.android.launcher3.testcomponent.RequestPinItemActivity"
|
||||
android:icon="@drawable/test_drawable_pin_item"
|
||||
android:exported="true"
|
||||
android:label="Test Pin Item">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN"/>
|
||||
|
@ -102,6 +108,7 @@
|
|||
android:stateNotNeeded="true"
|
||||
android:taskAffinity=""
|
||||
android:theme="@android:style/Theme.DeviceDefault.Light"
|
||||
android:exported="true"
|
||||
android:windowSoftInputMode="adjustPan">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN"/>
|
||||
|
@ -114,6 +121,7 @@
|
|||
<activity
|
||||
android:name="com.android.launcher3.testcomponent.BaseTestingActivity"
|
||||
android:label="LauncherTestApp"
|
||||
android:exported="true"
|
||||
android:taskAffinity="com.android.launcher3.testcomponent.Affinity1">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN"/>
|
||||
|
@ -128,6 +136,7 @@
|
|||
</activity>
|
||||
<activity-alias android:name="Activity2"
|
||||
android:label="TestActivity2"
|
||||
android:exported="true"
|
||||
android:targetActivity="com.android.launcher3.testcomponent.BaseTestingActivity">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN"/>
|
||||
|
@ -136,6 +145,7 @@
|
|||
</activity-alias>
|
||||
<activity-alias android:name="Activity3"
|
||||
android:label="TestActivity3"
|
||||
android:exported="true"
|
||||
android:targetActivity="com.android.launcher3.testcomponent.BaseTestingActivity">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN"/>
|
||||
|
@ -144,6 +154,7 @@
|
|||
</activity-alias>
|
||||
<activity-alias android:name="Activity4"
|
||||
android:label="TestActivity4"
|
||||
android:exported="true"
|
||||
android:targetActivity="com.android.launcher3.testcomponent.BaseTestingActivity">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN"/>
|
||||
|
@ -152,6 +163,7 @@
|
|||
</activity-alias>
|
||||
<activity-alias android:name="Activity5"
|
||||
android:label="TestActivity5"
|
||||
android:exported="true"
|
||||
android:targetActivity="com.android.launcher3.testcomponent.BaseTestingActivity">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN"/>
|
||||
|
@ -160,6 +172,7 @@
|
|||
</activity-alias>
|
||||
<activity-alias android:name="Activity6"
|
||||
android:label="TestActivity6"
|
||||
android:exported="true"
|
||||
android:targetActivity="com.android.launcher3.testcomponent.BaseTestingActivity">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN"/>
|
||||
|
@ -168,6 +181,7 @@
|
|||
</activity-alias>
|
||||
<activity-alias android:name="Activity7"
|
||||
android:label="TestActivity7"
|
||||
android:exported="true"
|
||||
android:targetActivity="com.android.launcher3.testcomponent.BaseTestingActivity">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN"/>
|
||||
|
@ -176,6 +190,7 @@
|
|||
</activity-alias>
|
||||
<activity-alias android:name="Activity8"
|
||||
android:label="TestActivity8"
|
||||
android:exported="true"
|
||||
android:targetActivity="com.android.launcher3.testcomponent.BaseTestingActivity">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN"/>
|
||||
|
@ -184,6 +199,7 @@
|
|||
</activity-alias>
|
||||
<activity-alias android:name="Activity9"
|
||||
android:label="TestActivity9"
|
||||
android:exported="true"
|
||||
android:targetActivity="com.android.launcher3.testcomponent.BaseTestingActivity">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN"/>
|
||||
|
@ -192,6 +208,7 @@
|
|||
</activity-alias>
|
||||
<activity-alias android:name="Activity10"
|
||||
android:label="TestActivity10"
|
||||
android:exported="true"
|
||||
android:targetActivity="com.android.launcher3.testcomponent.BaseTestingActivity">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN"/>
|
||||
|
@ -200,6 +217,7 @@
|
|||
</activity-alias>
|
||||
<activity-alias android:name="Activity11"
|
||||
android:label="TestActivity11"
|
||||
android:exported="true"
|
||||
android:targetActivity="com.android.launcher3.testcomponent.BaseTestingActivity">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN"/>
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
<activity
|
||||
android:name="Activity1"
|
||||
android:icon="@mipmap/ic_launcher1"
|
||||
android:exported="true"
|
||||
android:label="Aardwolf">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN"/>
|
||||
|
|
Loading…
Reference in New Issue