0

I have a rooted android device (Onn 4k streaming stick) and a single use application that I would like to make the device-owner.

Before I rooted the device, I attempted adb shell dpm set-device-owner <package>/<component>, which resulted in java.lang.RuntimeException: Can't set package ComponentInfo{<package>/<component>} as device owner.

When I do the set-device-owner command on a different device (Lenovo M10 tablet) I found that device_owner_2.xml and device_policies.xml are created in the /data/systems/ directory - and the application is successfully set as the device owner.

After I rooted the Onn 4k device, I tried to create the device_owner_2.xml and device_policies.xml files and manually add them to the /data/system directory, but that didn't work.

I cannot figure what the issue is. Are there any other files besides the device_owner_2.xml and device_policies.xml that need to be created for the device to recognize ownership? Are there some devices that don't allow applications to be set as device owners?

0 Answers0