Loading
Clean up renamed packages during app removal
It doesn't clean up a renamed package when a package is removed
by OTA or uninstalls, which could lead to failing installs for
renamed packages. This CL cleans up renamed packages when an app
is removed and during initialization just in case.
Bug: 178191975
Test: Manulal (removed by OTA)
Add Package A
Verify package A exists
Remove A, add package B w/ original-package A
Verify package A exists, but codepath is to package B
Remove B
Verify the renamed package for B is cleaned up
Test: Manulal (removed by uninstalls)
Add Package A
Verify package A exists
Remove A, add package B w/ original-package A
Verify package A exists, but codepath is to package B
Upgrade B on /data and Remove B on /system
Verify B is installed as non-system app
Uninstall B
Verify the renamed package for B is cleaned up
Change-Id: Ief8f7c5b66339f4dea009361fbaca949f1f16367