Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android adb over Wifi install apk

I have been using ADB on the command line to install apk's via USB. Now I have succesfully connected via Wifi. I am able to install apps.

./adb.exe connect 192.168.2.143
connected to 192.168.2.143:5555

./adb.exe install -r xyz.apk
        pkg: /data/local/tmp/xyz.apk
Success

The problem is that adb doesn't close after 'Success'. It just hangs. If I tether the phone via USB ADB will close correctly after installing an app.

This is a problem as I would like to write a script which uploads the apk to a number of phones all connected via Wifi.

like image 655
user1192534 Avatar asked Feb 06 '12 15:02

user1192534


1 Answers

Have you tried this:

./adb.exe disconnect 192.168.2.143

like image 165
Jonathan Avatar answered Oct 19 '22 22:10

Jonathan