Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 1721f9fd authored by Lucas Silva's avatar Lucas Silva
Browse files

Handle uninstall for selected controls package

This change introduces PackageChangeRepository, which can be used to
listen for package updates using PackageMonitor. This is more reliable
than using broadcasts, as it registers callbacks directly with
PackageManager

We use this new repository in the ControlsStartable to monitor
uninstallation of the selected controls package and update the controls
state if the package is uninstalled.

Test: atest PackageUpdateMonitorTest
Test: atest PackageChangeRepositoryTest
Test: atest ControlsStartableTest
Test: manually on device by installing test controls apk and then
uninstalling
Bug: 298025023
Bug: 317059572
Bug: 313953586
Flag: NONE

Change-Id: I0c3148409f0e6d664fdeba1c71a7dec121d18341
parent be1761a0
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