Loading core/java/android/app/admin/DevicePolicyManager.java +5 −5 Original line number Diff line number Diff line Loading @@ -14211,12 +14211,12 @@ public class DevicePolicyManager { * {@link DeviceAdminReceiver#DEVICE_ADMIN_META_DATA}. Otherwise an * {@link IllegalArgumentException} will be thrown. * * @param admin which {@link DeviceAdminReceiver} this request is associated with * @param target which {@link DeviceAdminReceiver} we want the new administrator to be * @param bundle data to be sent to the new administrator * @throws SecurityException if {@code admin} is not a device owner nor a profile owner * @param admin which {@link DeviceAdminReceiver} this request is associated with. * @param target which {@link DeviceAdminReceiver} we want the new administrator to be. * @param bundle data to be sent to the new administrator. * @throws SecurityException if {@code admin} is not a device owner nor a profile owner. * @throws IllegalArgumentException if {@code admin} or {@code target} is {@code null}, they * are components in the same package or {@code target} is not an active admin * are components in the same package or {@code target} is not an active admin. */ public void transferOwnership(@NonNull ComponentName admin, @NonNull ComponentName target, @Nullable PersistableBundle bundle) { Loading
core/java/android/app/admin/DevicePolicyManager.java +5 −5 Original line number Diff line number Diff line Loading @@ -14211,12 +14211,12 @@ public class DevicePolicyManager { * {@link DeviceAdminReceiver#DEVICE_ADMIN_META_DATA}. Otherwise an * {@link IllegalArgumentException} will be thrown. * * @param admin which {@link DeviceAdminReceiver} this request is associated with * @param target which {@link DeviceAdminReceiver} we want the new administrator to be * @param bundle data to be sent to the new administrator * @throws SecurityException if {@code admin} is not a device owner nor a profile owner * @param admin which {@link DeviceAdminReceiver} this request is associated with. * @param target which {@link DeviceAdminReceiver} we want the new administrator to be. * @param bundle data to be sent to the new administrator. * @throws SecurityException if {@code admin} is not a device owner nor a profile owner. * @throws IllegalArgumentException if {@code admin} or {@code target} is {@code null}, they * are components in the same package or {@code target} is not an active admin * are components in the same package or {@code target} is not an active admin. */ public void transferOwnership(@NonNull ComponentName admin, @NonNull ComponentName target, @Nullable PersistableBundle bundle) {