Loading
Revise when to throw SecurityException in bindDeviceAdminServiceAsUser
1. No longer throw SecurityException when we fail to resolve the intent. Return false instead. 2. Throw IllegalArgumentException early if the incoming intent is not explicit. 3. Throw SecurityException with different error message. It makes debug easier and allows tests to verify a particular thing happened. Bug: 33197200 Test: cts-tradefed run cts --module DevicePolicyManager --test com.android.cts.devicepolicy.DeviceOwnerPlusManagedProfileTest Change-Id: I723ab7f434c10407aa4e7dc8e9a6e3e9bb9f2059