summaryrefslogtreecommitdiff
path: root/libs/androidfw/misc.cpp
diff options
context:
space:
mode:
author Lais Andrade <lsandrade@google.com> 2024-02-16 21:00:21 +0000
committer Lais Andrade <lsandrade@google.com> 2024-02-16 21:00:21 +0000
commit76786016089305095ac9e2487cf214915383b3de (patch)
tree02d3abd90ac5d119861a51e85b1c12c018b7f438 /libs/androidfw/misc.cpp
parenta892df451e0fc6fed0f1a6073f2fa8c5e7dff0b4 (diff)
Fix package name for VibratorManagerShellCommand vibrations
Use AppOpsManager to resolve the package name based on the shell command client UID, so the package name and process uid will match even when the shell client is rooted. Bug: 325204954 Test: run 'cmd vibrator_manager synced oneshot 150' on a rooted shell and see no more error logs for 'AppOps : Attribution not found: uid=0 pkg=root(null) op=VIBRATE' Change-Id: I39d8158c149ac9c621f23f83513a807bea2c9a58
Diffstat (limited to 'libs/androidfw/misc.cpp')
0 files changed, 0 insertions, 0 deletions