第一步:下載工具嚼黔,編譯成apk,使用adb工具安裝到手表
https://github.com/kuleyang/AndroidProxySetter
第二步:在終端上執(zhí)行以下命令并帶上相應(yīng)的參數(shù):
adb shell am start -n tk.elevenk.proxysetter/.MainActivity
參數(shù):
-e host <host> # The host ip or address for the proxy
-e port <port> # The port for the proxy
-e ssid <ssid> # The SSID of the wifi network to set proxy on (optional, will apply on the first one if empty)
-e key <shared key> # The password/key for the wifi network
-e bypass <bypass string> # The bypass string to use for proxy settings
-e reset-wifi <boolean> # Whether or not to reset the wifi settings. This flag will tell the tool to forget all connected networks,make a new network config with the SSID and key given, and then attempt to connect to the wifi network. If no key is given,the wifi network is assumed to be unprotected/open
-e clear <boolean> # A flag that will clear the proxy settings for the given SSID
host port ssid 三個(gè)參數(shù)是必須的炬转,例如host為202.192.18.33灵临,port為8080澎蛛,ssid 為EEBBK-FREE
則命令為:
adb shell am start -n tk.elevenk.proxysetter/.MainActivity -e host 202.192.18.33 -e port 8080 -e ssid EEBBK-FREE