The issue for setting as device owner via adb command

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?

I cloud resolve myself.

The method which I have resolved is written below.

  1. Copy android.software.device_admin.xml from here.

  2. Send ADB Command which is written below.

adb root
  1. Send ADB Command which is written below.
adb remount
  1. Send ADB Command which is written below.
adb push android.software.device_admin.xml /system/etc/permissions/android.software.device_admin.xml
  1. Send ADB Command which is written below.
adb shell sync
  1. Reboot Khadas VIM4.