summaryrefslogtreecommitdiff
path: root/libs/gui/ConsumerBase.cpp
diff options
context:
space:
mode:
author Jeff Sharkey <jsharkey@android.com> 2016-07-14 18:16:22 -0600
committer Jeff Sharkey <jsharkey@android.com> 2016-12-06 08:57:21 -0700
commit9a998f4762cb5ad71c786229be748ea0ab9eb7a0 (patch)
treee6c232823b07125e296efa13bcf7b058dad1e64b /libs/gui/ConsumerBase.cpp
parent7b50c020302cb5079e98f895487c9cad29630a2a (diff)
DO NOT MERGE. Record "cache" inodes to clear while CE is locked.
There are two situations where we need to clear cached data from all users, including those whose CE storage might still be locked: 1. When PackageManager is clearing caches to try making room for package updates. 2. When the device fingerprint changes, we need to clear code caches for all apps. To enable this, we now record the inode number of the "cache" and "code_cache" directories in xattrs of the parent directory. This is just enough information to find the cache directories to enable deleting files inside. When preparing CE storage for an app, we now create these two directories and immediately write the inode numbers. Bug: 26056125 Change-Id: I7e442b0676a695acf962593469793a93b03c8aee
Diffstat (limited to 'libs/gui/ConsumerBase.cpp')
0 files changed, 0 insertions, 0 deletions