How to use / connect adb with emulator, for example Memu / Bluestacks / Nox App Player

I want to use adb with Android emulator. Can I fake a USB connection or how is this possible?

Emulator Embedded , USB-Debugging Option = On

I also tried through applications such as adbWireless, but I get an error (10060) The host is not responding.

And to initialize, do I always need a USB connection or? So how can you connect ADB with an emulator?

+4
source share
7 answers

For MEmu, Droid4X, and other VirtualBox-based emulators, there is a very simple way:

You need port 5555 forwarding to the host.

, Droid4X \vms\droid4x\droid4x.vbox . XML .

<NAT> :

<Forwarding name="MY_PORT" proto="1" hostip="127.0.0.1" hostport="5565" guestip="10.0.2.15" guestport="5555"/>

5565. , 5555-5585 adb .

. adb devices, emulator-5564 .

. . . VBoxSVC.exe MemuSVC.exe *SVC.exe .

Memu \MEmu\MemuHyperv VMs\MEmu\MEmu.memu. .

+9

Memu 2.3, , Android, - 21503. sdk platformtools cmd. , . USB- samsung .

adb connect localhost:21503
+7

, MEmu.

adbWireless- (google "adbwireless xda", ). , , , : MEmu

, USB, adbwireless, . IP-, "192.168". , - .

. adb ( "D:\Program Files\Microvirt\MEmuHyperv" Path ). IP- adbwireless, ececute adb connect your_ip, 192.168.0.101. : connected to 192.168.0.101:5555. adb devices, . , MEmu adb.

, .

+1

:

Memu: ( D:\Program Files\Microvirt\MEmu)

adb.exe. .

+1

, . vm Memu ~ C:\Program Files\Microvirt\MEmu\MemuHyperv VMs\MEMU_NAME\MEMU_NAME.memu. -, 1- , :

<Forwarding name="ADB" proto="1" hostip="127.0.0.1" hostport="21743" guestip="10.0.2.15" guestport="5555"/>

hostport, 21743.

- adb MEmuHyperv C:\Program Files\Microvirt\MEmuHyperv\adb.exe. cmd, cd MEmuHyperv .

MEmuHyperv , http://www.memuplay.com/blog/2016/08/08/memuhyperv-tool/

0

Nox App Player 62001.

$ adb connect 127.0.0.1:62001
connected to 127.0.0.1:62001

$ adb devices
List of devices attached
127.0.0.1:62001 device

$ adb shell
root@android:/ #

, "USB Debugging":

  • Nox App Player.
  • "" → " ".
  • () " " 7 , :

    .

  • .
  • " ".
  • " USB".
  • Nox App Player.

0

FindEmulatorPort Used to search for adb port and Android emulator emulator, such as Tencent mobile assistant, Netease MuMu, BlueStacks, Nox App Player, etc. download from: https://gitee.com/tp7309/TTEmulatorPortFinder/repository/archive/master.zip

python emulator_port.py
0
source

Source: https://habr.com/ru/post/1648480/


All Articles