我想将我的应用程序作为设备所有者安装在 Android TV Box 上,但出现下一个异常。
adb shell dpm set-device-owner
"com.android.testapp/.receivers.AdminReceiver"
java.lang.RuntimeException: Can't set package com.android.testapp 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)
设备上没有帐户。它适用于我的手机,但不适用于 Android TV Box。