commit | ad842da783bf26056a7ab040fabaf7e29d98dda7 | [log] [tgz] |
---|---|---|
author | Varun Shah <[email protected]> | Wed Aug 23 17:19:46 2023 +0000 |
committer | Varun Shah <[email protected]> | Fri Aug 25 23:12:12 2023 +0000 |
tree | d442404a53a8621e97f2cd6831c0c0dda288bd35 | |
parent | 1983fd773a2b76ed52757d51675b077f278f8468 [diff] |
Update certain APIs to require the REPORT_USAGE_STATS permission. Add requirement of either being the system or having the REPORT_USAGE_STATS permission in order to call any report events related APIs. This includes the reportChooserSelection and reportUserInteraction APIs. Also add the permission to Shell so the APIs can be tested via CTS. Bug: 296056771 Bug: 218679369 Test: atest CtsUsageStatsTest Change-Id: I3b28e00b9da73cd4bc051f3c5e03e29a734a1df0