-
I was wondering about does it possible to connect to emulators like Bluestack / Nox / LD Player or something? Or any trick for it? like by installed some program or something to fake it. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 16 replies
-
I don't know about those third-party emulators, but at least for the official Android Emulator, it's possible, with some help of websockify. If the ones you have mentioned can also be automatically picked up by a normal It's a little complex and requires some programming skill, please tell me if you want to know the details, then I will find some spare time to organize the steps and post here. |
Beta Was this translation helpful? Give feedback.
-
I added detection for WebSocket backend in ae1f9a2 to make it easier. Some background information:
So you need to firstly find out which port your emulator is currently using. Run
Or you may just try
I use websockify-js here, other similar programs should also work.
Every time you want to connect to your emulators, in the
Open my demo in browser or run it yourself, wait a few seconds, you should see Click Connect, the confirmation dialog should display on your emulator screen. In my testing the confirmation dialog sometimes closes by its own after a brief period. The only solution I found was simply click Allow fast enough. Bouns:
|
Beta Was this translation helpful? Give feedback.
-
Now it's possible to connect to emulators and ADB over WiFi without webscokify. See #349. |
Beta Was this translation helpful? Give feedback.
-
Is it possible to connect to an adb server (e.g. started with
For context: connecting via USB does work and I tried websockify-js, the original Python websockify, and websocat, but none of them seem to work. |
Beta Was this translation helpful? Give feedback.
-
Why not integrate the method of connecting AVD into your project instead of installing another project separately, which is easier to deploy and apply. |
Beta Was this translation helpful? Give feedback.
I added detection for WebSocket backend in ae1f9a2 to make it easier.
Some background information:
adb
connects to AVD (Android Virtual Device, the official emulator) using TCP sockets.5555
and5587
(even numbers are for serial connection),adb devices
will scan all ports in that range to detect emulators.So you need to firstly find out which port your emulator is currently using.
Run
adb devices
, emulators have serial numbers in form of "emulator-55XX" (whereXX
is two digits), add1
to that number, that's the emulator's ADB port.Or you may just…