commit | 1292d5808efd94c8ce0d3862bdbbb327011cdc1a | [log] [tgz] |
---|---|---|
author | Felipe Leme <felipeal@google.com> | Fri Mar 05 13:34:31 2021 -0800 |
committer | Felipe Leme <felipeal@google.com> | Mon Mar 08 10:57:58 2021 -0800 |
tree | b7f1b863f37b7623fd40994d1f059af94c95041f | |
parent | fd8f4ae2700765f8fdfbc393a2a95da987fe32bc [diff] |
Restricts PersonalAppsSuspensionHelper.dump() to system user. It calls a pm method that fails if called for a different user. As this dump is mostly useful for system user anyways, we can just ignore the other users (rather than changing the permission check in the PM method). Also fixed the userId passed to that method. Test: adb shell dumpsys device_policy |grep -A 20 PersonalAppsSuspensionHelper # on automotive Bug: 181238156 Change-Id: Ib416fe9be81a12f40b0b95bfe864d0b2c45efe0b