diff options
author | Svet Ganov <svetoslavganov@google.com> | 2021-04-02 16:58:43 +0000 |
---|---|---|
committer | Svet Ganov <svetoslavganov@google.com> | 2021-04-02 17:30:10 +0000 |
commit | 48801b0bbd3cf21d87587f082527dc42afa74e1a (patch) | |
tree | dd6679a8a12090bd874f48e8cdcac3503a259e12 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 567a68843532b3a224ff44c89d574a0cb1369f90 (diff) |
Hookup renounced permissions
Propagate renounced permissions from context params
to the context attribution source. Throw if one
tries to request at runtime a renounced permission.
Also make the AttributionSource take null for the
setters to ease usage, otherwise folks should always
check for null before calling a builder method.
Additionally, we allow apps that have UPDATE_APP_OPS_STATS
to register arbitrary trusted AttributionSource for
testing. Note that this permission allows abritrary app
op operations, thus we are not relaxing the security
model.
bug: 158792096
Test: atest CtsPermission5TestCases
Change-Id: I4330684bb8695fb998cf31e9363b94ad981ba2cc
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions