ADB

手机端通过多次点击版本号开启开发者选项,勾选USB调试

使用手机数据线连接电脑,此时手机会提示是否允许USB调试,允许即可

电脑端下载platform-tools

https://developer.android.google.cn/studio/releases/platform-tools

解压下载的压缩包,进入platform-tools目录,在地址栏输入adb,确认

查看当前连接设备:

1
adb devices

如果发现多个设备:

1
adb devices -s 设备名

卸载软件

1
2
3
4
adb shell

pm uninstall
pm uninstall -k --user 0 软件包名

去除wifi感叹号

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
删除变量:(删除以后默认启用)
adb shell settings delete global captive_portal_mode
关闭检测:
adb shell settings put global captive_portal_mode 0
查看当前状态:
adb shell settings get global captive_portal_mode
服务器地址相关(同7.1.1):


删除(删除默认用HTTPS)
adb shell settings delete global captive_portal_https_url
adb shell settings delete global captive_portal_http_url
分别修改两个地址
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