原生Android 9 ADB命令

标签: none

记录一些实用的命令并附带例子(Curl+C Curl+V直接用)

修改captive portal设置
adb shell settings put global captive_portal_server captive.v2ex.co #v2ex服务器,曾经多次挂
adb shell settings put global captive_portal_http_url http://captive.v2ex.co/generate_204
adb shell settings put global captive_portal_https_url https://captive.v2ex.co/generate_204

adb shell settings put global captive_portal_server developers.google.cn #修改为googlecn,可能会被解析至美国导致无法访问
adb shell settings put global captive_portal_http_url http://developers.google.cn/generate_204
adb shell settings put global captive_portal_https_url https://developers.google.cn/generate_204

adb shell settings put global captive_portal_server www.qualcomm.cn #高通中国
adb shell settings put global captive_portal_http_url http://www.qualcomm.cn/generate_204
adb shell settings put global captive_portal_https_url https://www.qualcomm.cn/generate_204

adb shell settings put global captive_portal_server www.gstatic.com #这应该是默认的
adb shell settings put global captive_portal_http_url http://www.gstatic.com/generate_204
adb shell settings put global captive_portal_https_url https://www.gstatic.com/generate_204

修改adb连接方式
adb tcpip 5555
adb usb


添加新评论