summaryrefslogtreecommitdiff
path: root/tools/aapt2/diff/Diff.cpp
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2017-03-31 14:08:23 -0600
committerJeff Sharkey <jsharkey@android.com>2017-04-02 22:29:07 -0600
commit6df866a8510af2776c48425a361f708ae7f5d7d6 (patch)
tree1e1db7717b7a7dc6e030c2f2eefb6c01ce541893 /tools/aapt2/diff/Diff.cpp
parentfe9a53bc45fd0124a876dc0a49680aaf86641d3e (diff)
Enforce PACKAGE_USAGE_STATS for usage data.
Some system services are offering package usage data through both public/system APIs and through dump() calls. In principle, usage data hould always be protected with PACKAGE_USAGE_STATS, so start enforcing that. (Otherwise if a user blocked PACKAGE_USAGE_STATS access to an app, that app could still obtain the data via dump() if they held the DUMP permission.) Bottom line, let's respect the user's wishes. Protecting the entire output like this is pretty blunt, but future CLs can add more nuance to the output if desired. Test: cts-tradefed run commandAndExit cts-dev -m CtsSecurityTestCases -t android.security.cts.ServicePermissionsTest Bug: 32806790 Change-Id: I46173562713bea7d89e12a4313c78eb52ea8d77d
Diffstat (limited to 'tools/aapt2/diff/Diff.cpp')
0 files changed, 0 insertions, 0 deletions