From aa902e859b49517bd5d6412b42e5de0dd9d0a916 Mon Sep 17 00:00:00 2001 From: Ashwini Oruganti Date: Thu, 4 Jun 2020 17:47:09 -0700 Subject: [PATCH] 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 --- AndroidManifest-common.xml | 11 ++- AndroidManifest.xml | 1 + quickstep/AndroidManifest-launcher.xml | 1 + quickstep/AndroidManifest.xml | 126 ++++++++++++------------- tests/AndroidManifest-common.xml | 22 ++++- tests/dummy_app/AndroidManifest.xml | 1 + 6 files changed, 92 insertions(+), 70 deletions(-) diff --git a/AndroidManifest-common.xml b/AndroidManifest-common.xml index ff5bf0d1e5..84dd06aa39 100644 --- a/AndroidManifest-common.xml +++ b/AndroidManifest-common.xml @@ -86,6 +86,7 @@ @@ -94,14 +95,16 @@ + android:name="com.android.launcher3.SessionCommitReceiver" + android:exported="true"> - + @@ -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"> @@ -130,6 +134,7 @@ android:theme="@style/AppItemActivityTheme" android:excludeFromRecents="true" android:autoRemoveFromRecents="true" + android:exported="true" android:label="@string/action_add_to_workspace" > @@ -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"> @@ -187,6 +193,7 @@ android:name="com.android.launcher3.secondarydisplay.SecondaryDisplayLauncher" android:theme="@style/AppTheme" android:launchMode="singleTop" + android:exported="true" android:enabled="true"> diff --git a/AndroidManifest.xml b/AndroidManifest.xml index b031ffbee4..8e01f82018 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -53,6 +53,7 @@ android:resizeableActivity="true" android:resumeWhilePausing="true" android:taskAffinity="" + android:exported="true" android:enabled="true"> diff --git a/quickstep/AndroidManifest-launcher.xml b/quickstep/AndroidManifest-launcher.xml index 60afddb0a8..53910e344b 100644 --- a/quickstep/AndroidManifest-launcher.xml +++ b/quickstep/AndroidManifest-launcher.xml @@ -53,6 +53,7 @@ android:resizeableActivity="true" android:resumeWhilePausing="true" android:taskAffinity="" + android:exported="true" android:enabled="true"> diff --git a/quickstep/AndroidManifest.xml b/quickstep/AndroidManifest.xml index e49f2ecdc0..a4b196643c 100644 --- a/quickstep/AndroidManifest.xml +++ b/quickstep/AndroidManifest.xml @@ -17,97 +17,91 @@ ** limitations under the License. */ --> - - + + - - - + + + - + - + - + + android:excludeFromRecents="true" + android:launchMode="singleTask" + android:clearTaskOnLaunch="true" + android:stateNotNeeded="true" + android:theme="@style/LauncherTheme" + android:screenOrientation="unspecified" + android:configChanges="keyboard|keyboardHidden|mcc|mnc|navigation|orientation|screenSize|screenLayout|smallestScreenSize" + android:resizeableActivity="true" + android:resumeWhilePausing="true" + android:taskAffinity=""/> - + - + - - + + - + - + - + - - + + @@ -39,6 +40,7 @@ @@ -49,6 +51,7 @@ @@ -58,12 +61,14 @@ + android:name="com.android.launcher3.testcomponent.WidgetConfigActivity" + android:exported="true"> - + @@ -72,6 +77,7 @@ @@ -102,6 +108,7 @@ android:stateNotNeeded="true" android:taskAffinity="" android:theme="@android:style/Theme.DeviceDefault.Light" + android:exported="true" android:windowSoftInputMode="adjustPan"> @@ -114,6 +121,7 @@ @@ -128,6 +136,7 @@ @@ -136,6 +145,7 @@ @@ -144,6 +154,7 @@ @@ -152,6 +163,7 @@ @@ -160,6 +172,7 @@ @@ -168,6 +181,7 @@ @@ -176,6 +190,7 @@ @@ -184,6 +199,7 @@ @@ -192,6 +208,7 @@ @@ -200,6 +217,7 @@ diff --git a/tests/dummy_app/AndroidManifest.xml b/tests/dummy_app/AndroidManifest.xml index f00138c78e..d5e2320b70 100644 --- a/tests/dummy_app/AndroidManifest.xml +++ b/tests/dummy_app/AndroidManifest.xml @@ -26,6 +26,7 @@