OSDN Git Service

Temporarily add GALLERY_PROVIDER permission to fix Beam.
authorMartijn Coenen <maco@google.com>
Tue, 30 Oct 2012 22:15:05 +0000 (15:15 -0700)
committerMartijn Coenen <maco@google.com>
Tue, 30 Oct 2012 22:18:56 +0000 (15:18 -0700)
Photo transfers incoming through Android Beam switch processes
twice (Gallery->NFC, NFC->Bluetooth), and the permission to
access to the Gallery content provider is not transferred.
As a short term solution, grant Gallery provider
permissions to Bluetooth.

Bug: 7433498
Change-Id: Id5915f4a37bec5003a42646162249a0c2c69aa48

AndroidManifest.xml

index 783c53d..f4c0d3b 100644 (file)
@@ -48,6 +48,8 @@
     <uses-permission android:name="android.permission.BLUETOOTH_STACK" />
     <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS"/>
     <uses-permission android:name="android.permission.MANAGE_USERS"/>
+    <uses-permission android:name="com.google.android.gallery3d.permission.GALLERY_PROVIDER"/>
+    <uses-permission android:name="com.android.gallery3d.permission.GALLERY_PROVIDER"/>
 
     <!-- For PBAP Owner Vcard Info -->
     <uses-permission android:name="android.permission.READ_PROFILE"/>