Error in activing set-device-owner

Error in activing set-device-owner

Dears,
Good

I want to set  ME MDM device owner and active on my Mobile for using Kiosk.

This error appear:
E:\makedeviceowner\makedeviceowner>adb install -r MDMAndroidAgent.apk
Performing Streamed Install
Success

E:\makedeviceowner\makedeviceowner>adb shell dpm set-device-owner com.manageengine.mdm.android/com.manageengine.mdm.framework.deviceadmin.DeviceAdminMonitor
java.lang.IllegalStateException: Unexpected @ProvisioningPreCondition 99
        at android.os.Parcel.createExceptionOrNull(Parcel.java:2397)
        at android.os.Parcel.createException(Parcel.java:2373)
        at android.os.Parcel.readException(Parcel.java:2356)
        at android.os.Parcel.readException(Parcel.java:2298)
        at android.app.admin.IDevicePolicyManager$Stub$Proxy.setDeviceOwner(IDevicePolicyManager.java:8665)
        at com.android.commands.dpm.Dpm.runSetDeviceOwner(Dpm.java:203)
        at com.android.commands.dpm.Dpm.onRun(Dpm.java:115)
        at com.android.internal.os.BaseCommand.run(BaseCommand.java:60)
        at com.android.commands.dpm.Dpm.main(Dpm.java:41)
        at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
        at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:439)
Caused by: android.os.RemoteException: Remote stack trace:
        at com.android.server.devicepolicy.DevicePolicyManagerService.enforceCanSetDeviceOwnerLocked(DevicePolicyManagerService.java:9655)
        at com.android.server.devicepolicy.DevicePolicyManagerService.setDeviceOwner(DevicePolicyManagerService.java:8680)
        at android.app.admin.IDevicePolicyManager$Stub.onTransact(IDevicePolicyManager.java:3582)
        at android.os.Binder.execTransactInternal(Binder.java:1161)
        at android.os.Binder.execTransact(Binder.java:1130)


E:\makedeviceowner\makedeviceowner>

Your Advice Please

      New to ADSelfService Plus?

        Resources

                Related Products