Search code examples
androidadb

Any way to have adb remember devices once connected wirelessly?


The whole point of setting up wireless adb was so that I would not have to connect it to via usb everytime.

via this question : https://stackoverflow.com/a/3623727/4645236 I started wireless debugging with a device. Worked great! Super convenient without a doubt.

Now I am wondering if there is a way keep this setting and not have to plug in every time...

I'd like to wirelessly connect to the device via the PC terminal in one command, even if the server has been killed and restarted. Is this possible? Or do I have to use a script?


Solution

  • As long as the ADB daemon on your device is not restarted you can connect to your device via WiFi (ADB over tcp) without it connected through usb. if it restarts, you will have to connect to the device via usb and run:

    adb tcpip <port>