commit | c36c3b946932ed56dc7a86edc8f252829b628766 | [log] [tgz] |
---|---|---|
author | Jeff Sharkey <jsharkey@android.com> | Thu Apr 19 15:22:45 2018 -0600 |
committer | Joel Galenson <jgalenson@google.com> | Wed May 23 14:17:32 2018 -0700 |
tree | e3a3252ad8a046f014f693d0b129a575673a1151 | |
parent | 87fb335ee034f040b033e53dd185228b79782b40 [diff] |
Protect usage data with OP_GET_USAGE_STATS. APIs that return package usage data (such as DropBoxManager) must ensure that callers hold both the PACKAGE_USAGE_STATS permission and the OP_GET_USAGE_STATS app-op. Bug: 78355661 Test: Search output directory for binaries that have READ_LOGS but not USAGE_STATS and find none. Change-Id: I85e3bad680bb510439d73c7db5cc50cdcb7bbb42