【android源码修改】系统默认打开adb debug模式

平台:mtk5862

系统:android 9

需求:需要删除原生设置,但是非原生设置没有adb debug开关,导致无法使用adb调试系统。

解决:开机后通过串口输入 setprop persist.sys.usb.config adb ,然后输入getprop persist.sys.usb.config ,确认得到的值为adb 后,输入reboot重启机器。

机器重启后通过串口输入ifconfig查看已经联网的设备的ip地址xxx.xxx.xxx.xxx,通过window命令行adb connect xxx.xxx.xxx.xxx确认是否可以连接上。

猜你喜欢

转载自blog.csdn.net/MilesMatheson/article/details/124025831