diff options
author | Bjorn Bringert <bringert@android.com> | 2009-06-05 13:22:28 +0100 |
---|---|---|
committer | Bjorn Bringert <bringert@android.com> | 2009-06-15 09:05:26 +0100 |
commit | 8d17f3f24bbda9a9cd7ea08c5925508dc2c011be (patch) | |
tree | cf7e5ebb721354bfffc41d2ab4932cb70ea3c033 /tests/AndroidTests/res/xml | |
parent | 3d59ee7aa66a5b1e80f5042f8d872dd9819b5f40 (diff) | |
download | frameworks_base-8d17f3f24bbda9a9cd7ea08c5925508dc2c011be.zip frameworks_base-8d17f3f24bbda9a9cd7ea08c5925508dc2c011be.tar.gz frameworks_base-8d17f3f24bbda9a9cd7ea08c5925508dc2c011be.tar.bz2 |
Run search dialog in the system process.
Fixes http://b/issue?id=1905863
This is needed to address two security issues with global search:
http://b/issue?id=1871088 (Apps can read content providers through GlobalSearch)
http://b/issue?id=1819627 (Apps can use GlobalSearch to launch arbirtrary intents)
This also fixes http://b/issue?id=1693153 (SearchManager.OnDismissListener
never gets called)
To fix the security issues, GlobalSearch also needs to require
a non-app permission to access its content provider and launch intents.
Diffstat (limited to 'tests/AndroidTests/res/xml')
-rw-r--r-- | tests/AndroidTests/res/xml/searchable.xml | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/tests/AndroidTests/res/xml/searchable.xml b/tests/AndroidTests/res/xml/searchable.xml index a40d53d..9d293b5 100644 --- a/tests/AndroidTests/res/xml/searchable.xml +++ b/tests/AndroidTests/res/xml/searchable.xml @@ -15,7 +15,12 @@ --> <searchable xmlns:android="http://schemas.android.com/apk/res/android" - android:label="SearchManagerTest" - android:hint="SearchManagerTest Hint" -/> + android:label="@string/searchable_label" + android:hint="@string/searchable_hint" + android:searchSuggestAuthority="com.android.unit_tests.SuggestionProvider" + > + <actionkey android:keycode="KEYCODE_CALL" + android:suggestActionMsgColumn="suggest_action_msg_call" /> + +</searchable>
\ No newline at end of file |