Add geolocation permissions to BrowserProvider
The old hidden Google-specific framework setting
Settings.Secure.USE_LOCATION_FOR_SERVICES has been removed
and replaced by a setting in GoogleSettingsProvider.
Since Browser can't read from GoogleSettingsProvider,
I've instead changed SetupWizard and the Google search settings
(in GoogleQuickSearchBox) to write to this new geolocation
content provider in the Browser.
The geolocation permission content provider is write-only, and
requires a signatureOrSystem permission to write to. So
only system apps can add geolocation permissions,
and the only system apps that do so are SetupWizard and
GoogleQuickSearchBox.
Bug: http://b/issue?id=2428694
Change-Id: I0be5dbf4d99d07ca13b07fb299155c5aa17a51bd
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 22c721d..569040d 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -48,6 +48,8 @@
android:writePermission="com.android.browser.permission.WRITE_HISTORY_BOOKMARKS">
<path-permission android:path="/bookmarks/search_suggest_query"
android:readPermission="android.permission.GLOBAL_SEARCH" />
+ <path-permission android:path="/geolocation"
+ android:writePermission="com.android.browser.permission.WRITE_GEOLOCATION_PERMISSIONS" />
</provider>
<activity android:name="BrowserActivity"
android:label="@string/application_name"