Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remote debug device #49

Open
likezjuisee opened this issue Aug 12, 2016 · 1 comment
Open

remote debug device #49

likezjuisee opened this issue Aug 12, 2016 · 1 comment

Comments

@likezjuisee
Copy link

I have gone through the readme and most parts of the source codes, but even then I am not very clearly about how to realize the remote debug. Could you give some advice? Now, I plug a real device on my test computer A (192.168.1.2), and want to use android studio of computer B (192.168.1.3), to debug the device.

@sorccu
Copy link
Member

sorccu commented Aug 12, 2016

Look it's really easy.

On machine A:

First, run adb devices and get the serial number of the device.

Then simply:

npm install -g adbkit
adbkit usb-device-to-tcp YOUR_SERIAL_HERE

Or if using a checkout of this repo:

coffee src/cli.coffee usb-device-to-tcp YOUR_SERIAL_HERE

It shows you the port number and a localhost address. Replace localhost with the IP address of machine A.

On machine B:

adb connect MACHINE_A_IP_ADDRESS:PORT

Now you're done.


If you'd rather use adbkit as a library, just look at the source code and do the same thing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants