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>
Thu, 9 Mar 2017 02:26:22 +0000 (02:26 +0000)
commit3b15466b3cb6207660a73d1cea44a2d018ada23f
tree923a45a13999d39a5854e2aa690f811d43c89805
parent1d0dcb200d466cd4b03f65fa03f16c7944a0b6c1
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
(cherry picked from commit 2ab9a2d15c63cd567805adb8fa4b9c524afc5ceb)
src/com/android/providers/downloads/DownloadProvider.java