OSDN Git Service

Clear cached files on external storage.
authorJeff Sharkey <jsharkey@android.com>
Wed, 3 May 2017 17:36:42 +0000 (11:36 -0600)
committerJeff Sharkey <jsharkey@android.com>
Fri, 5 May 2017 20:57:29 +0000 (14:57 -0600)
commitd712f0ccc120357e1267a04ac6de9dd732b27e76
tree7c022021ac8547cd4c061772552c5cfe9ca34d88
parent8bba03d323684abb4e209398019c2540b053b827
Clear cached files on external storage.

When clearing cached files belonging to an app, include any cached
files on external storage.  Since we need to keep sdcardfs in the
loop about any file deletions, we always mutate by going through the
sdcardfs layer instead of behind its back.

Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.StorageHostTest
Bug: 37486230375669833791344237914374
Change-Id: If174bf7eaf682da83cf0ab1b4938fe9a5956d464
cmds/installd/CacheItem.cpp
cmds/installd/CacheTracker.cpp
cmds/installd/CacheTracker.h
cmds/installd/InstalldNativeService.cpp
cmds/installd/InstalldNativeService.h
cmds/installd/utils.h