简体   繁体   中英

Automatically turn ON usb debugging mode of Android device using java

Java中有什么技术可以使我们进入android设备并打开其USB调试模式。

I hope not. It is obiviously an inherent security risk to enable and should thus only be enabled if you are really sure what you are doing (eg if you are a developer testing an app).

This is only available for system apps in respect of security. If your device is rooted you are able to call this:

Settings.Secure.putInt(getActivity().getContentResolver(),Settings.Secure.ADB_ENABLED, 1);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM