Device owner error using adb method only with LG devices

I am trying to get the owner of a device inspired by the Google code sample

Using adb, I can get the owner of the device on nexus 4,5,7,9 and micromax. However, in the LG G Pad (LG-V400) and LG G3 (LG G3 855) I get an error message.

java.lang.SecurityException: Neither user 2000 nor current process has android.permission.BIND_DEVICE_ADMIN. 

I noticed that the device administrator is enabled on these devices, but not the device owner. I was able to write an error report from the device found here . enter image description here

I tried to contact LG, but did not hear anything.

Any help is greatly appreciated.

+3
source share
1 answer

After discussions and help from Kash, we realized that my initial answer was only part of what needed to be done to change the ownership of the device. The steps for setting up the owner are as follows:

Reboot the device and it should work. If you have any questions, feel free to send me a message.

+1
source

Source: https://habr.com/ru/post/985777/


All Articles