Keep shared downloads when apps are uninstalled.
authorJeff Sharkey <jsharkey@android.com>
Wed, 19 Apr 2017 00:14:57 +0000 (18:14 -0600)
committerJeff Sharkey <jsharkey@android.com>
Wed, 19 Apr 2017 00:14:59 +0000 (18:14 -0600)
commit50522c738bf68d2784ce4f52dd34188a491065b8
tree7e222e40424b3baf1d33ab9340ccbdfc9dd2ee66
parentad50235cfe2d934bf1e2b805fff007fd8391e028
Keep shared downloads when apps are uninstalled.

When an app downloads files to external storage, keep those downloads
around for the user to enjoy after the app is uninstalled.

We still end up deleting files stored in internal cache directories,
and under package-specific directories on external storage.

Test: builds, boots, downloads on external storage remain
Bug: 30868200
Change-Id: Ib70f42aa764a8252fe67c6fba9d60b3350f5d5a4
src/com/android/providers/downloads/DownloadProvider.java
src/com/android/providers/downloads/DownloadReceiver.java
src/com/android/providers/downloads/Helpers.java