aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilson Wu <wilsonwu@google.com>2022-08-10 14:46:45 +0800
committerWilson Wu <wilsonwu@google.com>2022-08-10 20:11:49 +0800
commit54d442193b2d999039c7ee414d08267e7c25c5cf (patch)
treea4e19372fa5b0dfefbd73367f8a8b159d6912389
parent872e4bb391f3e26900790d0cb7822b1d52c9d204 (diff)
downloadlatinime-54d442193b2d999039c7ee414d08267e7c25c5cf.tar.gz
latinime-54d442193b2d999039c7ee414d08267e7c25c5cf.tar.xz
latinime-54d442193b2d999039c7ee414d08267e7c25c5cf.zip
Make DownloadOverMeteredDialog not exported
The DownloadOverMeteredDialog is exported which may allow a app to prompt this dialog to ask the user to download dictionary. Since the app can control the download dictionary size and may show an incorrect size for user to make security concern. Make the activity not exported for apps to launch. Bug: 236688064 Test: Manual test as follow steps: 1. lunch aosp_bramble-userdebug and flash 2. Verify the AOSP keyboard work properly 3. Launch the PoC test app 4. Verify the DownloadOverMeteredDialog cannot be launched Change-Id: I9be92ba2813e7aaad0ef10555f585c5c8a25361f
Diffstat (limited to '')
-rw-r--r--java/AndroidManifest.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/AndroidManifest.xml b/java/AndroidManifest.xml
index ac84c3388..3917084a4 100644
--- a/java/AndroidManifest.xml
+++ b/java/AndroidManifest.xml
@@ -149,7 +149,7 @@
<activity android:name="com.android.inputmethod.dictionarypack.DownloadOverMeteredDialog"
android:theme="@style/platformActivityTheme"
android:label="@string/dictionary_install_over_metered_network_prompt"
- android:exported="true">
+ android:exported="false">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
</intent-filter>