summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorEran Messeri <eranm@google.com>2020-11-17 14:05:20 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2020-11-17 18:45:25 +0000
commit30e70b6b3a7ba207a9d2fd4de4529b04c220c5c4 (patch)
tree7813244a920b49b8997171b589a1b3ceb3e64dfc /tools/aapt2/java/JavaClassGenerator_test.cpp
parentf65442ab99c6393b60e2e42945a13b8b2ea8fbdf (diff)
DPMS: Fix access control check for password sufficiency
Fix access control check for isActivePasswordSufficient, such that the DPC can call it on the parent profile DPM instance. In Change-Id: I97ca0d40a01673939e64c23f357fc38ca5427a8f an additional access control check was imposed as a result of a refactoring. That check required the caller to hold the cross-user permission (which is a system-privileged permission) to check password sufficiency. This is fixed by introducing an uchecked internal variant of the method for getting password metrics, since caller authorization is checked prior to calling it. Bug: 173484959 Bug: 173483046 Test: atest com.android.cts.devicepolicy.ManagedProfileTest#testDevicePolicyManagerParentSupport Test: Manual, created a work profile with a google.com account. Change-Id: Id23a8d9e70c1b438fc12cb3ea408273964dde97b (cherry picked from commit 7672301be44a2820683098e91998b93c56e2e45a)
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions