我们可以通过编程启用/禁用Android设备上的USB调试? [英] Can we programatically enable/disable USB debugging on Android devices?
本文介绍了我们可以通过编程启用/禁用Android设备上的USB调试?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有什么办法打开USB调试/关闭编程在Android设备上?
Is there any way to turn USB debugging on/off programmatically on Android devices?
推荐答案
在常规设备,一个普通的应用程序,你不能。
On a regular device, with a regular app, you can't.
您需要一个根深蒂固的设备,有一个应用程序在/系统/应用程序,然后就可以了。
You need a rooted device, with an app in /system/app, then you can.
总之,你不应该自己配置这样的事情,用户应该完全控制在这种情况下。
Anyway, you shouldn't configure such a thing by yourself, the user should be in full control in such a case.
这篇关于我们可以通过编程启用/禁用Android设备上的USB调试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文