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

What are the steps for connecting remotely? #72

Open
mohammedavs opened this issue Feb 7, 2024 · 1 comment
Open

What are the steps for connecting remotely? #72

mohammedavs opened this issue Feb 7, 2024 · 1 comment

Comments

@mohammedavs
Copy link

mohammedavs commented Feb 7, 2024

Hi

I need to connect to my device from a CI server to run some automated tests. Is it possible with DADB?

Right now I can connect to a Wireless debugging device that I paired device manually by specifying the serial.


    val dadb = AdbServer.createDadb(
        adbServerHost = "localhost",
        adbServerPort = 5037,
        deviceQuery = "host:transport:192.168.0.55:44973"
    )

The problem with this is that the device must be first connected via USB then paired wirelessly and manually before it can be connected to my device without doing these steps?

@Leland-Takamine

@sleekweasel
Copy link

sleekweasel commented Dec 4, 2024

If you can arrange to run your remote adb server with the -a flag, you can connect to that adb remotely, but you'll have to be careful about which device you use there in case anyone else is using it:

remote$ adb -a nodaemon server
local$ adb -L tcp:remote:5037 devices
emulator-5554	device
local$ adb -L tcp:remote:5037 -s emulator-5554 shell echo hello world

This should correlate to

val dadb = AdbServer.createDadb(
        adbServerHost = "remote",
        adbServerPort = 5037,
        deviceQuery = "host:transport:emulator-5554"
    )

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