ADB over wireless

后端 未结 5 889
时光说笑
时光说笑 2020-11-29 15:12

Hey i was wondering do you need root to do this any more? I want to install/run apps over wireless to stop all this cable switching. I have also read that it can cause some

5条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-29 15:26

    I ran into the same problem today and find that things are fine on my non-rooted 4.2 Galaxy Nexus device, but does not work on my older (again non-rooted) Samsung Galaxy Y (2.3) device.

    I tried the steps given here but looks like one needs a rooted phone to work on some of the earlier models (and maybe other non-nexus devices too).

    This is what I tried -

    $ adb shell netstat | grep 5555

    No socket was opened on this port.

    Tried to manually set the steps that adb tcpip does -

    $ adb shell setprop service.adb.tcp.port 5555
    $ adb shell stop adbd
    $ adb shell start adbd
    $ adb shell getprop | grep adb
    

    This does not show the property that was just set.

    This is what it shows on my nexus device where it works without rooting -

    $ adb shell getprop | grep adb
    [service.adb.tcp.port]: [5555]
    

    So depending on what phone/OS version u have, your mileage might vary.

    :-)

提交回复
热议问题