commit | f1077c30952f17a34b545ac3374625c0d8be1bd3 | [log] [tgz] |
---|---|---|
author | Jeff Sharkey <jsharkey@android.com> | Fri Mar 31 14:08:23 2017 -0600 |
committer | Jeff Sharkey <jsharkey@android.com> | Sun Apr 02 22:29:07 2017 -0600 |
tree | ac177a7548a27c8b5f4548960e66f49b414f6f5f | |
parent | f8dd5d479a980a4a5408e6244489058844bc9bce [diff] |
Consistent dump() permission checking. This change introduces new methods on DumpUtils that can check if the caller has DUMP and/or PACKAGE_USAGE_STATS access. It then moves all existing dump() methods to use these checks so that we emit consistent error messages. Test: cts-tradefed run commandAndExit cts-dev -m CtsSecurityTestCases -t android.security.cts.ServicePermissionsTest Bug: 32806790 Change-Id: Iaff6b9506818ee082b1e169c89ebe1001b3bfeca