From fd9721f1af8de27ca3c4b3a6220cf46a391c6608 Mon Sep 17 00:00:00 2001 From: Ashwini Oruganti Date: Wed, 20 May 2020 14:42:18 -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 S+. 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 Test: TH Exempt-From-Owner-Approval: mechanical refactoring Change-Id: I878adb9108c95f06ddd059b23a542b61210edfa4 --- AndroidManifest.xml | 202 ++++++++++++++++++++++++++++++--- tests/unit/AndroidManifest.xml | 10 +- 2 files changed, 194 insertions(+), 18 deletions(-) diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 55555a578a3..800f65ed722 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -124,6 +124,7 @@ android:theme="@style/Theme.Settings.Home" android:taskAffinity="com.android.settings.root" android:launchMode="singleTask" + android:exported="true" android:configChanges="keyboard|keyboardHidden"> @@ -136,6 +137,7 @@ @@ -152,6 +154,7 @@ android:label="@string/settings_label_launcher" android:taskAffinity="com.android.settings.root" android:launchMode="singleTask" + android:exported="true" android:targetActivity=".homepage.SettingsHomepageActivity"> @@ -161,7 +164,8 @@ - + @@ -171,6 +175,7 @@ @@ -185,6 +190,7 @@ @@ -204,6 +210,7 @@ @@ -218,6 +225,7 @@ @@ -254,6 +262,7 @@ android:name="Settings$WifiSettingsActivity" android:label="@string/wifi_settings" android:icon="@drawable/ic_settings_wireless" + android:exported="true" android:configChanges="orientation|keyboardHidden|screenSize"> @@ -270,7 +279,8 @@ + android:name=".wifi.WifiPickerActivity" + android:exported="true"> @@ -283,6 +293,7 @@ android:name="Settings$ConfigureWifiSettingsActivity" android:label="@string/wifi_configure_settings_preference_title" android:icon="@drawable/ic_settings_wireless" + android:exported="true" android:configChanges="orientation|keyboardHidden|screenSize"> @@ -303,6 +314,7 @@ android:name="Settings$SavedAccessPointsSettingsActivity" android:label="@string/wifi_saved_access_points_label" android:icon="@drawable/ic_settings_wireless" + android:exported="true" android:configChanges="orientation|keyboardHidden|screenSize"> @@ -314,7 +326,8 @@ android:value="true" /> - + @@ -324,7 +337,8 @@ android:value="com.android.settings.wifi.WifiInfo" /> - + @@ -332,7 +346,8 @@ - + @@ -342,7 +357,8 @@ android:value="com.android.settings.wifi.WifiAPITest" /> - + @@ -371,6 +387,7 @@ @@ -413,6 +430,7 @@ @@ -424,6 +442,7 @@ @@ -435,6 +454,7 @@ @@ -447,6 +467,7 @@ @@ -472,6 +493,7 @@ @@ -486,6 +508,7 @@ @@ -510,7 +533,8 @@ android:value="com.android.settings.TetherSettings" /> - + @@ -523,6 +547,7 @@ @@ -541,6 +566,7 @@ @@ -553,6 +579,7 @@ @@ -573,6 +600,7 @@ @@ -598,6 +626,7 @@ @@ -611,6 +640,7 @@ @@ -622,6 +652,7 @@ @@ -641,6 +672,7 @@ @@ -662,6 +694,7 @@ @@ -674,6 +707,7 @@ @@ -688,6 +722,7 @@ @@ -708,6 +743,7 @@ android:theme="@*android:style/Theme.DeviceDefault.Settings.Dialog.NoActionBar" android:windowSoftInputMode="stateVisible" android:noHistory="true" + android:exported="true" android:excludeFromRecents="true"> @@ -742,6 +778,7 @@ android:name=".notification.zen.ZenSuggestionActivity" android:label="@string/zen_mode_settings_title" android:icon="@drawable/ic_suggestion_dnd" + android:exported="true" android:theme="@android:style/Theme.NoDisplay"> @@ -801,6 +838,7 @@ @@ -822,6 +860,7 @@ @@ -869,6 +908,7 @@ @@ -889,6 +929,7 @@ android:name="Settings$NightDisplaySettingsActivity" android:label="@string/night_display_title" android:enabled="@*android:bool/config_nightDisplayAvailable" + android:exported="true" android:icon="@drawable/ic_settings_night_display"> @@ -907,6 +948,7 @@ @@ -925,6 +967,7 @@ @@ -944,6 +987,7 @@ @@ -963,6 +1007,7 @@ @@ -973,6 +1018,7 @@ @@ -986,6 +1032,7 @@ @@ -1014,6 +1061,7 @@ @@ -1025,6 +1073,7 @@ @@ -1036,6 +1085,7 @@ @@ -1049,6 +1099,7 @@ @@ -1060,6 +1111,7 @@ @@ -1072,6 +1124,7 @@ android:name=".slices.SliceDeepLinkSpringBoard" android:excludeFromRecents="true" android:theme="@android:style/Theme.NoDisplay" + android:exported="true" android:permission="android.permission.MODIFY_PHONE_STATE"> @@ -1135,6 +1188,7 @@ @@ -1151,6 +1205,7 @@ @@ -1170,6 +1225,7 @@ @@ -1181,6 +1237,7 @@ @@ -1194,6 +1251,7 @@ @@ -1206,6 +1264,7 @@ android:name="Settings$LocationSettingsActivity" android:label="@string/location_settings_title" android:icon="@drawable/ic_settings_location" + android:exported="true" android:configChanges="orientation|keyboardHidden|screenSize"> @@ -1224,6 +1283,7 @@ android:name="Settings$ScanningSettingsActivity" android:label="@string/location_scanning_screen_title" android:icon="@drawable/ic_homepage_location" + android:exported="true" android:configChanges="orientation|keyboardHidden|screenSize"> @@ -1239,6 +1299,7 @@ android:name=".Settings$SecurityDashboardActivity" android:label="@string/security_settings_title" android:icon="@drawable/ic_homepage_security" + android:exported="true" android:configChanges="orientation|keyboardHidden|screenSize"> @@ -1259,6 +1320,7 @@ @@ -1269,6 +1331,7 @@ @@ -1284,6 +1347,7 @@ @@ -1298,6 +1362,7 @@ @@ -1320,6 +1385,7 @@ @@ -1335,6 +1401,7 @@ @@ -1356,6 +1423,7 @@ @@ -1366,6 +1434,7 @@ @@ -1375,6 +1444,7 @@ @@ -1388,6 +1458,7 @@ @@ -1400,6 +1471,7 @@ @@ -1414,6 +1486,7 @@ android:name="Settings$AccessibilitySettingsActivity" android:label="@string/accessibility_settings" android:icon="@drawable/ic_homepage_accessibility" + android:exported="true" android:configChanges="orientation|keyboardHidden|screenSize"> @@ -1432,6 +1505,7 @@ @@ -1446,6 +1520,7 @@ @@ -1475,6 +1550,7 @@ @@ -1492,6 +1568,7 @@ @@ -1510,6 +1587,7 @@ @@ -1523,6 +1601,7 @@ @@ -1700,6 +1779,7 @@ @@ -1719,6 +1799,7 @@ @@ -1730,6 +1811,7 @@ @@ -1744,6 +1826,7 @@ @@ -1792,6 +1875,7 @@ @@ -1817,6 +1901,7 @@ @@ -1877,6 +1962,7 @@ @@ -1898,6 +1984,7 @@ android:name="Settings$DevelopmentSettingsDashboardActivity" android:label="@string/development_settings_title" android:icon="@drawable/ic_settings_development" + android:exported="true" android:enabled="false"> @@ -1925,6 +2012,7 @@ android:icon="@drawable/ic_settings_development" android:label="@string/development_settings_title" android:excludeFromRecents="true" + android:exported="true" android:theme="@style/Transparent"> @@ -1936,6 +2024,7 @@ @@ -1951,6 +2040,7 @@ @@ -1998,6 +2088,7 @@ android:excludeFromRecents="true" android:windowSoftInputMode="stateVisible|adjustResize" android:theme="@style/Theme.AlertDialog" + android:exported="true" android:taskAffinity=".bluetooth.BluetoothPairingDialog"> @@ -2008,6 +2099,7 @@ @@ -2019,6 +2111,7 @@ @@ -2054,13 +2147,15 @@ - + @@ -2072,6 +2167,7 @@ android:label="@string/bluetooth_connection_permission_request" android:excludeFromRecents="true" android:permission="android.permission.BLUETOOTH_ADMIN" + android:exported="true" android:theme="@android:style/Theme.DeviceDefault.Light.Dialog.Alert"> @@ -2083,6 +2179,7 @@ @@ -2093,6 +2190,7 @@ @@ -2107,6 +2205,7 @@ @@ -2121,7 +2220,8 @@ android:value="com.android.settings.TestingSettings" /> - + @@ -2132,6 +2232,7 @@ @@ -2142,6 +2243,7 @@ @@ -2150,6 +2252,7 @@ @@ -2160,6 +2263,7 @@ @@ -2176,6 +2280,7 @@ @@ -2200,6 +2305,7 @@ @@ -2213,6 +2319,7 @@ @@ -2226,6 +2333,7 @@ android:name="com.android.settings.accounts.AddAccountSettings" android:theme="@android:style/Theme.Translucent.NoTitleBar" android:configChanges="orientation|keyboardHidden|screenSize" + android:exported="true" android:label="@string/header_add_an_account"> @@ -2252,6 +2360,7 @@ android:windowSoftInputMode="adjustResize" android:screenOrientation="nosensor" android:taskAffinity="com.android.settings.CryptKeeper" + android:exported="true" android:process=":CryptKeeper"> @@ -2266,6 +2375,7 @@ android:label="" android:screenOrientation="nosensor" android:taskAffinity="com.android.settings.FallbackHome" + android:exported="true" android:theme="@style/FallbackHome"> @@ -2288,6 +2398,7 @@ @@ -2300,6 +2411,7 @@ @@ -2314,6 +2426,7 @@ @@ -2326,6 +2439,7 @@ @@ -2340,6 +2454,7 @@ @@ -2362,6 +2477,7 @@ @@ -2380,6 +2496,7 @@ @@ -2396,6 +2513,7 @@ @@ -2407,6 +2525,7 @@ @@ -2418,6 +2537,7 @@ @@ -2429,6 +2549,7 @@ @@ -2440,6 +2561,7 @@ @@ -2455,6 +2577,7 @@ @@ -2467,6 +2590,7 @@ @@ -2477,6 +2601,7 @@ @@ -2490,6 +2615,7 @@ @@ -2502,6 +2628,7 @@ @@ -2531,6 +2658,7 @@ @@ -2601,6 +2729,7 @@ @@ -2614,6 +2743,7 @@ @@ -2627,20 +2757,23 @@ - + - + - + @@ -2667,6 +2800,7 @@ android:name=".wifi.RequestToggleWiFiActivity" android:theme="@android:style/Theme.DeviceDefault.Light.Dialog.Alert" android:excludeFromRecents="true" + android:exported="true" android:permission="android.permission.CHANGE_WIFI_STATE"> @@ -2713,6 +2847,7 @@ android:theme="@style/Theme.AlertDialog" android:label="@string/sim_settings_title" android:launchMode="singleTop" + android:exported="true" android:excludeFromRecents="true"> @@ -2728,6 +2863,7 @@ @@ -2743,6 +2879,7 @@ @@ -2781,6 +2918,7 @@ @@ -2800,6 +2938,7 @@ @@ -2812,6 +2951,7 @@ @@ -2825,6 +2965,7 @@ @@ -2837,6 +2978,7 @@ @@ -2849,6 +2991,7 @@ @@ -2863,6 +3006,7 @@ android:theme="@style/Transparent" android:taskAffinity="com.android.settings.enterprise" android:excludeFromRecents="true" + android:exported="true" android:launchMode="singleTop"> @@ -2872,6 +3016,7 @@ @@ -2885,6 +3030,7 @@ @@ -2918,6 +3064,7 @@ @@ -2953,6 +3100,7 @@ android:name=".fuelgauge.AdvancedPowerUsageDetailActivity" android:excludeFromRecents="true" android:launchMode="singleInstance" + android:exported="true" android:theme="@android:style/Theme.NoDisplay"> @@ -2973,6 +3121,7 @@ @@ -2991,6 +3140,7 @@ @@ -3004,6 +3154,7 @@ android:label="@string/page_tab_title_support" android:icon="@drawable/ic_homepage_support" android:theme="@android:style/Theme.DeviceDefault.Light.Panel" + android:exported="true" android:enabled="@bool/config_support_enabled"> @@ -3022,6 +3173,7 @@ android:label="@string/debug_layout" android:icon="@drawable/tile_icon_show_layout" android:permission="android.permission.BIND_QUICK_SETTINGS_TILE" + android:exported="true" android:enabled="false"> @@ -3034,6 +3186,7 @@ android:label="@string/track_frame_time" android:icon="@drawable/tile_icon_graphics" android:permission="android.permission.BIND_QUICK_SETTINGS_TILE" + android:exported="true" android:enabled="false"> @@ -3046,6 +3199,7 @@ android:label="@string/force_rtl_layout_all_locales" android:icon="@drawable/tile_icon_force_rtl" android:permission="android.permission.BIND_QUICK_SETTINGS_TILE" + android:exported="true" android:enabled="false"> @@ -3058,6 +3212,7 @@ android:label="@string/window_animation_scale_title" android:icon="@drawable/tile_icon_animation_speed" android:permission="android.permission.BIND_QUICK_SETTINGS_TILE" + android:exported="true" android:enabled="false"> @@ -3071,6 +3226,7 @@ android:label="@string/winscope_trace_quick_settings_title" android:icon="@drawable/tile_icon_winscope_trace" android:permission="android.permission.BIND_QUICK_SETTINGS_TILE" + android:exported="true" android:enabled="false"> @@ -3084,6 +3240,7 @@ android:label="@string/sensors_off_quick_settings_title" android:icon="@drawable/tile_icon_sensors_off" android:permission="android.permission.BIND_QUICK_SETTINGS_TILE" + android:exported="true" android:enabled="false"> @@ -3097,6 +3254,7 @@ android:label="@string/enable_adb_wireless" android:icon="@drawable/tile_icon_debugging_wireless" android:permission="android.permission.BIND_QUICK_SETTINGS_TILE" + android:exported="true" android:enabled="false"> @@ -3123,6 +3281,7 @@ android:theme="@android:style/Theme.NoDisplay" android:excludeFromRecents="true" android:launchMode="singleInstance" + android:exported="true" android:label="@string/autofill_app"> @@ -3132,6 +3291,7 @@ @@ -3149,6 +3309,7 @@ @@ -3190,6 +3351,7 @@ android:theme="@style/Theme.Panel" android:launchMode="singleInstance" android:excludeFromRecents="true" + android:exported="true" android:configChanges="orientation|keyboardHidden|screenSize"> @@ -3200,6 +3362,7 @@ @@ -3230,7 +3393,8 @@ - + @@ -3263,7 +3427,8 @@ + android:name=".wifi.dpp.WifiDppConfiguratorActivity" + android:exported="true"> @@ -3277,7 +3442,8 @@ + android:name=".wifi.dpp.WifiDppEnrolleeActivity" + android:exported="true"> @@ -3293,6 +3459,7 @@ @@ -3303,6 +3470,7 @@ @@ -3313,6 +3481,7 @@ @@ -3323,6 +3492,7 @@ @@ -3333,6 +3503,7 @@ @@ -3345,6 +3516,7 @@ diff --git a/tests/unit/AndroidManifest.xml b/tests/unit/AndroidManifest.xml index c387067cdee..c5f082d3143 100644 --- a/tests/unit/AndroidManifest.xml +++ b/tests/unit/AndroidManifest.xml @@ -31,6 +31,7 @@ @@ -38,7 +39,8 @@ - + @@ -46,7 +48,8 @@ - + @@ -55,7 +58,8 @@ - +