//adb 命令查看和更改设置中开关(get 查询,put 设置,对应key需要查看下源码,通过grep搜索过滤一下比较方便)
关闭usb调试
adb shell settings put global adb_enabled 0
打开usb调试
adb shell settings put global adb_enabled 1
查询usb调试开关情况:
adb shell settings get global adb_enabled
//打开模拟定位
adb shell settings put secure mock_location 1