summaryrefslogtreecommitdiff
path: root/libs/androidfw/ObbFile.cpp
diff options
context:
space:
mode:
author Matías Hernández <matiashe@google.com> 2023-07-12 15:18:44 +0200
committer Matías Hernández <matiashe@google.com> 2023-07-13 12:20:28 +0000
commitc1de64d6d466524467cfd33cfd5d175d58519446 (patch)
tree3aad570dbb369acd8749da5e0e2ffc881e3e898e /libs/androidfw/ObbFile.cpp
parente6ac1838482a36aa3626c1c059c118294411e877 (diff)
Clear notifications for packages whose permission is revoked
Previously this was done only on the setNotificationsEnabledForPackage() codepath, called by Settings UI. This meant that notifications would remain if the permission was revoked through other means, such as via permission Backup & Restore or via `adb shell pm revoke` (and possibly others). Now we listen to AppOp mode changes (for `OP_POST_NOTIFICATION`) and react to them, for a more consistent behavior. This CL also removes some unused or obsolete parameters from cancelAllNotificationsInt, together with the ACTION_QUERY_PACKAGE_RESTART broadcast listener. MUST_SLEEP: To test the effects of a postDelayed() call. Test: atest NotificationManagerService + manual Fixes: 288651621 Change-Id: I6ec1c75f206bc3b3c4252768a433b886b3983be8
Diffstat (limited to 'libs/androidfw/ObbFile.cpp')
0 files changed, 0 insertions, 0 deletions