1

Though my ADB over wifi works well, except one small issue, that first time I will have to connect my phone with usb to open port on my mobile adb start-server 5555. Is it possible to complete this step without USB ? Do we any option available to start port without USB ?

My phone is not rooted yet, and I have no plan to root it in near future..

  • you'll need a rooted phone and a terminal emulator on your phone. Refer this : http://stackoverflow.com/a/3623727/5425930 – Harjot Singh Oberai Dec 10 '16 at 02:34
  • Thanks, but my phone is not rooted as of now.. –  Dec 10 '16 at 02:44
  • I tried the commands without root (without su) and they didn't work but using root permissions, it definitely works. So your best bet to get it working, is to get root access – Harjot Singh Oberai Dec 10 '16 at 02:46
  • to make `tcp` the default option for `adb` you need to set the `persist.adb.tcp.port` property. it would still require root on most phones though – Alex P. Dec 10 '16 at 03:22

1 Answers1

0

you either need to have a device connected or an running emulator for using following command:

adb tcpip 5555

what if you don't have usb cable for some reason? what to do? here's a solution. If you run an android emulator, above command will work but draw back is , it take too much time (few minutes to be specific). So what's the fastest solution,

Well, install AnBox. Its also an emulator which opens much faster, within few seconds. now, you can run above command:

adb tcpip 5555

to start adb in tcpip mode

use below command to connect to your android phone over wifi

adb connect <ip address of android phone>:5555 

if you want to control it over wifi from laptop use scrcpy

scrcpy -s <ip address of android phone>:5555