summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorEran Messeri <eranm@google.com>2020-11-19 19:41:03 +0000
committerEran Messeri <eranm@google.com>2020-11-30 14:47:09 +0000
commit094c98e2fac451d30c57228ab460efc204185fc5 (patch)
tree049e0acacfb438b07c0a8f85b8b62629eb3e6da4 /tools/aapt2/java/JavaClassGenerator_test.cpp
parentd8e2301258c09515568532a35caa001ba500168b (diff)
Do not apply password quality to the parent
Prevent password quality set by the admin from applying on the primary user, if targeting Android S and above: * If the DPC calls setPasswordQuality on the parent profile DPM instance, throw. * If the DPC calls setPasswordQuality on the regular DPM instance, simply ignore it on the primary profile. This is guarded by the ChangeCompat framework. Note about testing: As it proved difficult to mock/fake the compatibility testing framework, the check is done via the injector, which can be easily overridden. Bug: 165573442 Test: atest com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testResetPasswordWithToken com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testGetPasswordExpiration FrameworksServicesTests:DevicePolicyManagerTest ManagedProfileTest Test: atest FrameworksServicesTests:DevicePolicyManagerTest Change-Id: I59354066dafb02fe1d464fd1ddabf3969a4d0f1b
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions