diff options
author | Varun Shah <varunshah@google.com> | 2019-11-14 18:13:10 -0800 |
---|---|---|
committer | Varun Shah <varunshah@google.com> | 2019-11-20 15:52:48 -0800 |
commit | 5228cc20bb1c5016141a0ec0f827dfa4b5e43cfd (patch) | |
tree | 6c3c368d5c0e516f72aaf8e7183963c46e610cb0 /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | ece1fa0ba1dfa3d6ded43e74639ee04ef814a4c2 (diff) |
Prune obsolete UsageStats data on upgrade.
When a database upgrade is performed for UsageStats, prune all
UsageStats data that belongs to packages that have been uninstalled.
This ensures that all data in UsageStats in R belongs to packages that
are currently installed or to those packages whose DONT_DELETE_DATA flag
was set when uninstalling.
Also remove the clean-up mapping step on boot. That was added as a
safety measure to ensure the mappings file is always updated. However,
with the addition of the prune job on package uninstalls and this CL,
that step is now unnecessary.
Bug: 143889121
Test: atest UsageStatsDatabase
Change-Id: Ib3d24dead4cd0e23145c15e7b1f88e2e20aadcaa
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions