I’m facing the issue about DeviceOwner.
I’ve written my environment below.
Environment
・device:Khadas VIM4
・OS:Android 11
I’ve tried the command which is written below.
adb shell dpm set-device-owner {packagename}/.{DeviceAdminReceiver}
Then, the error message has shown although its command is not wrong.
java.lang.RuntimeException: Can't set package {package name} as
device owner.
at com.android.commands.dpm.Dpm.runSetDeviceOwner(Dpm.java:115)
at com.android.commands.dpm.Dpm.onRun(Dpm.java:82)
at com.android.internal.os.BaseCommand.run(BaseCommand.java:47)
at com.android.commands.dpm.Dpm.main(Dpm.java:38)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:251)
I’ve searched on the Internet, but I can’t find the way to solve it.
Is there anyone who knows the way to solve this issue?