Relax permissions on package-specific paths.
authorJeff Sharkey <jsharkey@android.com>
Mon, 13 Jul 2015 17:25:58 +0000 (10:25 -0700)
committerJeff Sharkey <jsharkey@android.com>
Tue, 14 Jul 2015 20:04:39 +0000 (13:04 -0700)
commited30deae5fe5b9de142b44933001c9b098c47712
treef2bca00dbce87798aca9e73c43b8abb074e10d14
parentd473cf8f85f60d53b20270a263afe6b138671cb5
Relax permissions on package-specific paths.

Normally apps must hold the WRITE_EXTERNAL_STORAGE permission in
order to use DownloadManager.  However, now that the platform has
relaxed permissions on package-specific directories, we relax the
DownloadManager check in a similar way.  This also opens up using
DownloadManager to save files on secondary external storage devices.

Fix bug so that we now check the relevant volume state when thinking
about resuming a download.

Bug: 22135060
Change-Id: If439340ea48789ea167f49709b5b69a4f0883150
AndroidManifest.xml
src/com/android/providers/downloads/DownloadInfo.java
src/com/android/providers/downloads/DownloadProvider.java
src/com/android/providers/downloads/Helpers.java
src/com/android/providers/downloads/StorageUtils.java