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

Adb reverse commands not working #109

Open
dhoomakethu opened this issue Jan 30, 2020 · 2 comments
Open

Adb reverse commands not working #109

dhoomakethu opened this issue Jan 30, 2020 · 2 comments

Comments

@dhoomakethu
Copy link

Setting up reverse proxy on an android emulator running inside docker is not working. I keep getting
error: more than one device/emulator error .

I am using run.sh to start the container. Here is the command I use to setup reverse proxy

$ adb devices
List of devices attached
localhost:5555	device

$ adb reverse tcp:50051 tcp:50051
error: more than one device/emulator

$ adb -s localhost:5555 reverse tcp:50051 tcp:50051
error: more than one device/emulator

@dhoomakethu dhoomakethu changed the title Adb reverse/forward commands not working Adb reverse commands not working Jan 30, 2020
@qmfrederik
Copy link

I'm seeing this on Android 8 and earlier, but not on 9 & 10.

May be related to Genymobile/scrcpy#5 (comment) and https://android-review.googlesource.com/c/platform/system/core/+/664644

@qmfrederik
Copy link

https://issuetracker.google.com/issues/37066218 (via https://www.genymotion.com/blog/open-source-project-scrcpy-now-works-wirelessly/) pretty much confirms it; there's a bug in adbd (running on the device side) which will cause adb reverse to fail if the device is connected over TCP (e.g. adb connect/what you do with the emulator).

This is fixed in Android P.

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