Is it possible to USB tether an android device using adb through the terminal?

前端 未结 7 1961
终归单人心
终归单人心 2020-12-29 10:30

I\'m setting up some tests and it will require a decent number of phones to be usb tethered and configured. I\'ve been successful in configuring them the way I want to once

7条回答
  •  半阙折子戏
    2020-12-29 10:51

    For Android 5.0+ (Lollipop, Marshmallow) use:

    adb shell su -c service call connectivity 30 i32 1 to turn USB Tethering ON

    adb shell su -c service call connectivity 30 i32 0 to turn USB Tethering OFF

    Keep in mind that this requires root.

提交回复
热议问题