亚行使用方法只有LG设备的设备所有者的问题 [英] Device owner issue using adb method with LG devices only

查看:310
本文介绍了亚行使用方法只有LG设备的设备所有者的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在试图让设备所有者,由谷歌样本code

I have been trying to get device owner, inspired by google sample code

使用亚行,我能够在Nexus 4,5,7,9和福邦获得设备所有者。然而,在LG G垫(LG-V400)和LG G3(LG G3 855)我得到一个错误。

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

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

我注意到,设备管理是在这些设备上启用,但不是设备所有者。我能捕捉到错误报告从设备中找到 rel=\"nofollow\">

I noticed that the device admin is enabled on these devices, but not the device owner. I was able to capture the bug report from the device found here.

我曾尝试联络LG,但还没有听说过回任何东西。

I have tried contacting LG but havent heard back anything.

任何帮助是极大AP preciated。

Any help is greatly appreciated.

推荐答案

在讨论和卡什帮助,我们意识到,我原来的答复只是什么需要做更改设备所有者的部分。是集所有者的步骤如下:

After discussions and help from Kash, we realized that my original answer was only a portion of what needed to be done to change the device owner. The steps to set the owner are as follows:


  1. 根LG的设备。下面是我使用的工具:<一href=\"http://forum.xda-developers.com/lg-g3/general/guide-root-lg-firmwares-kitkat-lollipop-t3056951\" rel=\"nofollow\">http://forum.xda-developers.com/lg-g3/general/guide-root-lg-firmwares-kitkat-lollipop-t3056951

  2. 使用命令:设置Settings.Secure.USER_SETUP_COMPLETE = 0作为根

  3. 安装设备所有者的应用程序

  4. 创建XML文件,按本:<一href=\"http://stackoverflow.com/questions/21183328/how-to-make-my-app-a-device-owner/27909315#answer-26839548\">How使我的应用程序的设备所有者?

  1. Root the LG device. Here is the tool I used: http://forum.xda-developers.com/lg-g3/general/guide-root-lg-firmwares-kitkat-lollipop-t3056951
  2. Use the command: "set Settings.Secure.USER_SETUP_COMPLETE=0" as root
  3. Install your device owner app
  4. Create xml file as per this: How to make my app a device owner?

重新启动设备,它现在应该工作。如果您有任何问题随时给我一个信息。

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

这篇关于亚行使用方法只有LG设备的设备所有者的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆