diff options
author | Dianne Hackborn <hackbod@google.com> | 2012-07-12 14:46:04 -0700 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2012-07-12 14:46:04 -0700 |
commit | 197a0c82a1fbf337ec0a85d36b6b89c3d6e8a0ac (patch) | |
tree | 91ddac285a05fd389615ed6fab622d65b4bf2cee /cmds/installd/Android.mk | |
parent | 9c469ca0ff92ffa533faed9416d725be2204ed55 (diff) | |
download | frameworks_base-197a0c82a1fbf337ec0a85d36b6b89c3d6e8a0ac.zip frameworks_base-197a0c82a1fbf337ec0a85d36b6b89c3d6e8a0ac.tar.gz frameworks_base-197a0c82a1fbf337ec0a85d36b6b89c3d6e8a0ac.tar.bz2 |
Improve cleanup of file caches.
This rewrites installd's code for deleting cache files to be better:
- Isn't really stupid about just deleting directories in the order
they are found on the filesytem; now collects all cache files and
sorts them by mod time to determine which to delete.
- Also deletes cache files in /data/media and for all users.
This also tweaks DeviceStorageMonitor to be a little smarter about
deciding when to flush cache files, having upper and lower limits
that it allows memory to get down to and then flash files to reach
the higher free storage limit. This should reduce the amount that
we perform flushing when starting to reach the storage limit.
Finally add a new pm command to force a cache flush.
Change-Id: I02229038e1ad553d1168393e5cb6d5025933271d
Diffstat (limited to 'cmds/installd/Android.mk')
0 files changed, 0 insertions, 0 deletions