这几天Nexus 6p的Captive Portal Server
失效了,V2ex更新了地址,需要更新一下地址,说要用电脑,然后用adb工具来设置,但是身边又没有电脑,怎么办呢?其实安卓本身就可以执行一些Shell命令的,这里介绍用JuiceSSH
工具来做:
- 用
JuiceSSH
新建一个连接,类型选择 “本地设备”,然后就可以连接了 - 如果机器已经root过,要执行一些敏感命令,就先执行su,比如更换
Captive Portal Server
等
su
settings put global captive_portal_server captive.v2ex.co
参考:https://www.v2ex.com/t/303889
如果是7.1
settings put global captive_portal_https_url https://captive.v2ex.co/generate_204