summaryrefslogtreecommitdiff
path: root/libs/androidfw/BackupHelpers.cpp
diff options
context:
space:
mode:
author Lucas Silva <lusilva@google.com> 2023-12-19 18:34:02 -0500
committer Lucas Silva <lusilva@google.com> 2024-01-04 15:04:15 +0000
commit1721f9fd1c9800e05f6dcc421ce248e960711ffb (patch)
treed53dcc6d251821fa94a736d15afe819fec9917a7 /libs/androidfw/BackupHelpers.cpp
parentbe1761a0621b7ce763aad779666cd503b3b37bbb (diff)
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
Diffstat (limited to 'libs/androidfw/BackupHelpers.cpp')
0 files changed, 0 insertions, 0 deletions