DO NOT MERGE Deleting downloads for removed uids on downloadprovider start
authorSuprabh Shukla <suprabh@google.com>
Mon, 27 Feb 2017 23:56:11 +0000 (15:56 -0800)
committerSuprabh Shukla <suprabh@google.com>
Mon, 13 Mar 2017 23:52:23 +0000 (16:52 -0700)
commit8ad60457381e6911199c692ce01916f56d2c07cc
treed68c843863dbd0c103eb1c05757a43ace3337c7e
parent8a2e55187463fd4f8e9f6e80ae89c4e6dcb9b9f6
DO NOT MERGE Deleting downloads for removed uids on downloadprovider start

After uninstalling an app, if the system was shutdown before the
download provider received the broadcast for UID_REMOVED, another app
installed later in the same uid might be able to gain access to the
files downloaded by this app. Removing any such hanging downloads
at the start up of the download provider should fix this issue.

Test: Manually tested by uninstalling an app and killing and restarting
the process android.process.media, to check that the downloaded files of
the uninstalled app were deleted.

Bug:22011579

Merged-In: I7382c4846f99035b40412a01715aee5873efa9e6
Change-Id: I7382c4846f99035b40412a01715aee5873efa9e6
src/com/android/providers/downloads/DownloadProvider.java