Allow granting access to "my_downloads" paths.
Jeff Sharkey [Sat, 27 Oct 2012 00:28:34 +0000 (17:28 -0700)]
PackageInstaller attempts to grant Uri permissions on my_downloads
paths passed internally.  This change lets the system successfully
grant permissions to these paths.

Bug: 7426851
Change-Id: I9a4eea4397c02175aff4e3881a9a79cea1e6e0e3

AndroidManifest.xml

index 7a1ce39..bdc6b13 100644 (file)
@@ -72,6 +72,9 @@
           <!-- Apps with access to /all_downloads/... can grant permissions, allowing them to share
                downloaded files with other viewers -->
           <grant-uri-permission android:pathPrefix="/all_downloads/"/>
+          <!-- Apps with access to /my_downloads/... can grant permissions, allowing them to share
+               downloaded files with other viewers -->
+          <grant-uri-permission android:pathPrefix="/my_downloads/"/>
         </provider>
         <service android:name=".DownloadService"
                 android:permission="android.permission.ACCESS_DOWNLOAD_MANAGER" />