Remove orphaned cached result

PackageManagerService would parse all installed APKs info and cache
them, but only delete them when system update. As long as the APKs
keep updating without having system update, the older cached result
would eventually occupy more and more user space.

One way to mitigate this is removing the cached result when the APK
is updated or uninstalled.

Bug: 120608320
Test: Update/uninstall an APK, and check its cached result
Change-Id: I977a0923703bda6f145c9d240a1408f6f87c5625
1 file changed