Skip to content
Commit a8ddb753 authored by Suprabh Shukla's avatar Suprabh Shukla
Browse files

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
parent 501e75e8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment