How to turn off Wifi via ADB?

前端 未结 13 2197
北荒
北荒 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 18:10

    1. go to location android/android-sdk/platform-tools
    2. shift+right click
    3. open cmd here and type the following commands

      1. adb shell
      2. su
      3. svc wifi enable/disable
    4. done!!!!!

提交回复
热议问题