Skip to content
Commit 95d9d9fb authored by Eran Messeri's avatar Eran Messeri
Browse files

Fix checking of admins in resetPassword

Ensure resetPassword throws the right exception or returns the right
value when called by Device Owner, Profile Owner or Device Admin.

The methods for getting the ActiveAdmin associated with the DO/PO
did not work with a CallerIdentity object that had a null componentName.
Now they can cope with that.

Bug: 171407703
Bug: 171408165
Test: atest com.android.cts.devicepolicy.OrgOwnedProfileOwnerTest com.android.cts.devicepolicy.MixedDeviceOwnerTest com.android.cts.devicepolicy.MixedProfileOwnerTest
Test: atest FrameworksServicesTests:DevicePolicyManagerTest
Test: atest  com.android.cts.devicepolicy.DeviceAdminHostSideTestApi23#testResetPasswordDeprecated com.android.cts.devicepolicy.MixedDeviceOwnerTestApi25#testResetPasswordDeprecated
Change-Id: Ibe5c8587f07f1416ffa72dd6f4a8c20a9ec06115
parent 617a0256
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment