commit | 76786016089305095ac9e2487cf214915383b3de | [log] [tgz] |
---|---|---|
author | Lais Andrade <lsandrade@google.com> | Fri Feb 16 21:00:21 2024 +0000 |
committer | Lais Andrade <lsandrade@google.com> | Fri Feb 16 21:00:21 2024 +0000 |
tree | 02d3abd90ac5d119861a51e85b1c12c018b7f438 | |
parent | a892df451e0fc6fed0f1a6073f2fa8c5e7dff0b4 [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