Bug 707636 - Use "signature" permissions on BrowserProvider (r=blassey, a=mfinkle)
authorLucas Rocha <lucasr@mozilla.com>
Tue, 13 Dec 2011 14:12:03 +0000
changeset 82486 e79b3396889cca3eb740904eaf1aa5d6daa0f0f6
parent 82485 1817ebca70d22a521428295561330920923efc3b
child 82487 2b60fb6d0e64c8696f2612fe5fb456e945bc545d
push id21627
push userlrocha@mozilla.com
push dateTue, 13 Dec 2011 14:14:43 +0000
treeherdermozilla-central@e79b3396889c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersblassey, mfinkle
bugs707636
milestone11.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 707636 - Use "signature" permissions on BrowserProvider (r=blassey, a=mfinkle) To allow apps with same signature than Fennec to access Fennec's local DB via content provider.
mobile/android/base/AndroidManifest.xml.in
--- a/mobile/android/base/AndroidManifest.xml.in
+++ b/mobile/android/base/AndroidManifest.xml.in
@@ -136,12 +136,16 @@
 
         <activity android:name="org.mozilla.gecko.GeckoPreferences"
                   android:theme="@style/Gecko.TitleBar"
                   android:label="@string/preferences_title"
                   android:excludeFromRecents="true"/>
 
         <provider android:name="org.mozilla.gecko.db.BrowserProvider"
                   android:authorities="org.mozilla.gecko.providers.browser"
-                  android:exported="false"/>
+                  android:permission="org.mozilla.gecko.permissions.BROWSER_PROVIDER"/>
 
     </application>
+
+    <permission android:name="org.mozilla.gecko.permissions.BROWSER_PROVIDER"
+                android:protectionLevel="signature"/>
+
 </manifest>