summaryrefslogtreecommitdiff
path: root/services/coverage/java
diff options
context:
space:
mode:
author Oliver Scott <olivercscott@gmail.com> 2021-12-22 16:11:34 +0100
committer Sudheer Shanka <sudheersai@google.com> 2022-03-03 08:28:40 +0000
commit2ae5fa027946dc02ac32795ec3893af8e199aadd (patch)
treea80441d061cfc972022d25aa4ce70bb8a53754e3 /services/coverage/java
parent457bfa1180fd66bdf2e8f91897cc66743decec92 (diff)
Register broadcast receivers for PACKAGE_ADDED/UID_REMOVED on all users.
The package and uid removed broadcast receivers are only registered in the primary user. Packages added and removed on secondary users are ignored. This is unsafe given that new packages can be granted the uid and the old policy applied to it. This addresses the problem by registering broadcast receivers for PACKAGE_ADDED and UID_REMOVED for all users. Test: 1. Create a new user 2. Install a new app in the user 3. Apply background data restriction uid policy 4. adb shell cmd netpolicy list restrict-background-blacklist 5. Uninstall app 6. adb shell cmd netpolicy list restrict-background-blacklist Change-Id: I8c87fcf0310fe1fc07095fdc599af10ba0a3d959
Diffstat (limited to 'services/coverage/java')
0 files changed, 0 insertions, 0 deletions