diff options
author | Jeff Sharkey <jsharkey@android.com> | 2018-04-16 09:50:22 -0600 |
---|---|---|
committer | Jeff Sharkey <jsharkey@android.com> | 2018-04-16 12:44:32 -0600 |
commit | 6b649257377b4ba2dd8a2a02b8dd692a72a2cc1e (patch) | |
tree | f06149447b480ee548d00896ec5847adee3896a8 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 167032ab002714d26a14735bbcdc072c5fa693b7 (diff) |
Protect usage data with OP_GET_USAGE_STATS.
APIs that return package usage data (such as the new StatsManager)
must ensure that callers hold both the PACKAGE_USAGE_STATS permission
and the OP_GET_USAGE_STATS app-op.
Add noteOp() method that can be called from native code.
Also add missing security checks on command interface.
Bug: 77662908, 78121728
Test: builds, boots
Change-Id: Ie0d51e4baaacd9d7d36ba0c587ec91a870b9df17
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions