commit | 6abae2a070588b4840f2711b42102c3af71f2fd4 | [log] [tgz] |
---|---|---|
author | Evan Severson <evanseverson@google.com> | Thu Jul 29 10:03:14 2021 -0700 |
committer | Evan Severson <evanseverson@google.com> | Thu Jul 29 11:23:43 2021 -0700 |
tree | b8739b781754429905f692d20ebcf6438c205804 | |
parent | d5e1458566604caba59366729bdf868597215c2d [diff] |
Check the current user in the system server for SensorPrivacyManager Instead of querying for the current user application side we can just pass UserHandle.CURRENT_USER, this eliminates an IPC and the need for INTERACT_ACCROSS_USERS permission which should not be needed for these APIs. Test: CtsSensorPrivacyTestCases Bug: 194806109 Change-Id: I3a0aed0c403338aaebdfb4e2791a84b4e7e3cb3a