How to turn off Wifi via ADB?

前端 未结 13 2225
北荒
北荒 2020-11-29 17:37

Im automating a testing procedure for wifi calling and I was wondering is there a way to turn off/on wifi via adb?

I would either like to disable/enable wifi or kill

13条回答
  •  天涯浪人
    2020-11-29 17:54

    ADB Connect to wifi with credentials :

    You can use the following ADB command to connect to wifi and enter password as well :

    adb wait-for-device shell am start -n com.android.settingstest/.wifi.WifiSettings -e WIFI 1 -e AccessPointName "enter_user_name" -e Password "enter_password"

提交回复
热议问题