Only delete spurious files belonging to us.
authorJeff Sharkey <jsharkey@android.com>
Tue, 24 Apr 2012 22:03:47 +0000 (15:03 -0700)
committerJeff Sharkey <jsharkey@android.com>
Tue, 24 Apr 2012 22:05:33 +0000 (15:05 -0700)
commit15ea8d69f74735e2013cc11bc4899e0edc945b8a
tree79f4f7939966e9ce9d06edb0a981775bacdb1d5a
parent2f5fe598e53fc7bb3e8d6e1848ab62953866fb11
Only delete spurious files belonging to us.

When multiple users are active, this can accidentally delete files
belonging to other users.  Checking owner also helps us avoid
deleting recover and lost+found.

Bug: 6362988
Change-Id: Ifc165acc9a9b3ab253a4b6257f370836b98b3a74
src/com/android/providers/downloads/Constants.java
src/com/android/providers/downloads/StorageManager.java