I am trying to raise the internal Demo application to the device owner on my root S8 and you are having problems.
The ways I tried:
1) Providing NFC (as described here )
When using NFC with Android Bean to set the device owner on S8, the message "Unable to create work profile due to security recommendations of your device" is displayed -error
2) Providing Adb (from the console):
Using
dpm set-device-owner my/app/namespace/.DeviceAdmin
in windows console i get the following error
java.lang.SecurityException: Neither user 2000 nor current process has com.samsung.android.knox.permission.KNOX_PROXY_ADMIN_INTERNAL.,com.sec.enterprise.permission.MDM_PROXY_ADMIN_INTERNAL
at android.os.Parcel.readException(Parcel.java:1693)
at android.os.Parcel.readException(Parcel.java:1646)
at android.app.admin.IDevicePolicyManager$Stub$Proxy.setActiveAdmin(IDevicePolicyManager.java:5825)
at com.android.commands.dpm.Dpm.runSetDeviceOwner(Dpm.java:145)
at com.android.commands.dpm.Dpm.onRun(Dpm.java:96)
at com.android.internal.os.BaseCommand.run(BaseCommand.java:51)
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:307)
Adding missing permissions to my manifest didn't change anything.
3) XML ( )
xml , , ,
- , , - , ?