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

前端 未结 7 1950
终归单人心
终归单人心 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:48

    For Fairphone 2 with Fairphone Open OS (the "Android without Google" version, which is not installed by default) you need to:

    • Enable Developer mode (may be actived by default)
    • Search setting for "root" and enable root access for ADB
    • Enter bash command in quotes and use service code 31:
      • Enable: adb shell su -c "service call connectivity 31 i32 1"
      • Disable: adb shell su -c "service call connectivity 31 i32 0"

提交回复
热议问题