Clean up AppStateTracker state on package removed
Exempted bucket state was leaking post uninstall in a way that would persist till the next install of the same package. Also cleaning up defunct entries from other lists. Clarified bucket state to always use exempted instead of exempt in code. Test: atest FrameworksMockingServicesTests:AppStateTrackerTest Manual: 1. Install an app and put it under battery restriction 2. Install an app and put it on the power exemption list 3. Uninstall both of the apps 4. They should not appear under 'Exempted' or 'Restricted' packages list in `adb shell dumpsys alarm` Bug: 162763690 Bug: 156868557 Change-Id: I710edbb85d811ea0beced3b59fe89f59bcec6dd8
Loading
Please register or sign in to comment