summaryrefslogtreecommitdiff
path: root/startop/scripts/lib/cmd_utils.py
diff options
context:
space:
mode:
authorPhilip P. Moltmann <moltmann@google.com>2020-01-24 14:21:12 -0800
committerPhilip P. Moltmann <moltmann@google.com>2020-02-05 13:38:51 -0800
commit584c23a1d09dc5f9c6bc4b3f3b991103534f8f99 (patch)
treef88ef50770f0b5f5c4a5e8f64cfe02d7dcf3bbab /startop/scripts/lib/cmd_utils.py
parent04c84989d3d4dba39887fffc0989fe6a5b3f24b1 (diff)
Notify all packages is uid-mode is changed
Multiple packages might share a UID, but appOpsService might not have cached the uid->package mapping for those yet. Hence the only way to list all packages for a uid is to ask package manager. setUidMode already handled this correctly, hence factor out the code into notifyOpChangedForAllPkgsInUid and reuse it from commitUidStatePendingLocked. Bug: 148180766 Test: atest CtsAppOpsTestCases:android.app.appops.cts.ForegroundModeTest Change-Id: I2d5d6c7aa38d201707349a137c9c29b7987775be
Diffstat (limited to 'startop/scripts/lib/cmd_utils.py')
0 files changed, 0 insertions, 0 deletions