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
Loading
Please register or sign in to comment