From ed30deae5fe5b9de142b44933001c9b098c47712 Mon Sep 17 00:00:00 2001 From: Jeff Sharkey Date: Mon, 13 Jul 2015 10:25:58 -0700 Subject: 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 | 1 + .../android/providers/downloads/DownloadInfo.java | 14 +++- .../providers/downloads/DownloadProvider.java | 47 +++++++++---- src/com/android/providers/downloads/Helpers.java | 78 +++++++++++++++++++--- .../android/providers/downloads/StorageUtils.java | 1 + 5 files changed, 115 insertions(+), 26 deletions(-) diff --git a/AndroidManifest.xml b/AndroidManifest.xml index df65cdaa..0104493d 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -56,6 +56,7 @@ +