commit | 7986c7365e8ad18e2dad4a36a99dee9b04413337 | [log] [tgz] |
---|---|---|
author | Anthony Stange <stange@google.com> | Mon Jun 14 17:31:13 2021 +0000 |
committer | Anthony Stange <stange@google.com> | Mon Jun 14 19:10:45 2021 +0000 |
tree | 0f21a95524b44894274241df91d55e2d2671c6c6 | |
parent | 10a6b054ff3df9dff0040462e2b1bb490cfe480a [diff] |
Move permission enforcement to onCommand Calling enforceCallingOrSelfPermission in the shell command constructor causes a hang when running GTS if the permission isn't granted. Bug: 191043641 Test: Run "cmd contexthub deny" and verify error is printed if not rooted Change-Id: I807adee4382310a201c34e31cd53fbb37574e851