Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ADB over Wi-Fi is extremely slow on one PC, great on another

I'm trying to learn how to develop for Android, and I'd like to be able to test on my device instead of an emulator. The USB port on my phone is getting pretty loose, and I'd rather not mess it up with the scores of hours I'll be using it to test.

I enabled ADB over Wi-Fi on my desktop, and it worked flawlessly. This desktop runs Windows 7 and on my home network.

I then installed Android Studio and enabled ADB over Wi-Fi on my laptop, which runs Windows 10 and on my work network (which has no secondary login and is much faster). It works, but it's EXTREMELY slow. When I hit the "run" button in android studio, I thought it had frozen. But I used adb install, and it worked - but very slowly. It took about 5 minutes to install an apk.

I've done a lot of searching but it seems that everyone seems to dismiss this problem as "a problem with your device" or "a problem with your cable (even though it's over Wi-Fi?)". Or in one case, the solution applied to a Mac.

Does anyone know how to fix this?

like image 976
user3325234 Avatar asked Oct 30 '22 21:10

user3325234


1 Answers

I'm not sure whether this was a fluke, but a guide online told me to use the command

adb usb

before connecting via Wi-Fi. I did this while setting up my desktop, but for my laptop I assumed it was redundant since my phone was already connected via USB. Still, I disconnected adb then went through all the steps:

adb usb
adb tcpip 5555
adb connect <ip>

And it works perfectly now. Hopefully this helps someone.

like image 130
user3325234 Avatar answered Nov 09 '22 05:11

user3325234