From 7c1b5497f28f19913baf0d14f3aca4034a071a87 Mon Sep 17 00:00:00 2001 From: Ashwini Oruganti Date: Mon, 23 Mar 2020 16:23:26 -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: Idc43e262fd2911e19f0bcd20add29e4c3392d3da --- java/AndroidManifest.xml | 189 ++++++++++--------- tools/EditTextVariations/AndroidManifest.xml | 45 ++--- 2 files changed, 120 insertions(+), 114 deletions(-) diff --git a/java/AndroidManifest.xml b/java/AndroidManifest.xml index 79d337310..9b149287a 100644 --- a/java/AndroidManifest.xml +++ b/java/AndroidManifest.xml @@ -15,132 +15,141 @@ --> + coreApp="true" + package="com.android.inputmethod.latin" + android:versionCode="28"> - + - - - - - - - - - - - - - - + + + + + + + + + + + + + + + android:protectionLevel="signature"/> + android:icon="@drawable/ic_launcher_keyboard" + android:supportsRtl="true" + android:allowBackup="true" + android:defaultToDeviceProtectedStorage="true" + android:directBootAware="true"> + android:label="@string/english_ime_name" + android:permission="android.permission.BIND_INPUT_METHOD" + android:exported="true"> - + - + + android:label="@string/spell_checker_service_name" + android:permission="android.permission.BIND_TEXT_SERVICE" + android:exported="true"> - + + android:resource="@xml/spellchecker"/> + android:label="@string/dictionary_service_name"> + android:theme="@style/platformActivityTheme" + android:label="@string/english_ime_name" + android:icon="@drawable/ic_launcher_keyboard" + android:launchMode="singleTask" + android:noHistory="true" + android:exported="true"> - - + + - + + android:theme="@style/platformActivityTheme" + android:label="@string/english_ime_name" + android:clearTaskOnLaunch="true" + android:exported="true"> - + + android:theme="@style/platformSettingsTheme" + android:label="@string/english_ime_settings" + android:exported="true"> - + + android:theme="@style/platformSettingsTheme" + android:label="@string/android_spell_checker_settings" + android:exported="true"> - + + android:theme="@style/platformSettingsTheme" + android:label="@string/dictionary_settings_title" + android:uiOptions="splitActionBarWhenNarrow" + android:exported="true"> + android:theme="@style/platformActivityTheme" + android:label="@string/dictionary_install_over_metered_network_prompt" + android:exported="true"> @@ -148,47 +157,51 @@ + android:exported="false"/> - + - - - - + + + + - + - + - + - - - - + + + + - + - + + android:grantUriPermissions="true" + android:exported="false" + android:authorities="@string/authority" + android:multiprocess="false" + android:label="@string/dictionary_provider_name"> diff --git a/tools/EditTextVariations/AndroidManifest.xml b/tools/EditTextVariations/AndroidManifest.xml index 96c244b32..b5a27b9c8 100644 --- a/tools/EditTextVariations/AndroidManifest.xml +++ b/tools/EditTextVariations/AndroidManifest.xml @@ -14,34 +14,27 @@ limitations under the License. --> - - - - - + + + + + - - + + - +