How to use adb with emulator like Memu / Bluestack

2019-01-23 19:12发布

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

Emulator is rooted, USB-Debugging Option is On

I also tried via apps like adbWireless but I get host has failed to respond (10060) error.

Do I always need a USB-connection for initializing? How is it possible to connect adb with an emulator?

9条回答
我欲成王,谁敢阻挡
2楼-- · 2019-01-23 19:49

For Nox App Player, the port is 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:/ #

If it does not work, please turn on "USB Debugging" first:

  1. Start Nox App Player.
  2. Go to "Settings" -> "About tablet".
  3. Tap (click) "Build number" 7 times, until it says:

    Developer mode has been enabled.

  4. Go back to the previous screen.
  5. Go to "Developer options".
  6. Turn on "USB debugging".
  7. Restart Nox App Player.

Resources

查看更多
一夜七次
3楼-- · 2019-01-23 19:49

FindEmulatorPort Used to find the android emulator adb port and automatically connect, such as Tencent mobile assistant, Netease MuMu、BlueStacks、Nox App Player and so on. download from: https://gitee.com/tp7309/TTEmulatorPortFinder/repository/archive/master.zip

python emulator_port.py
查看更多
啃猪蹄的小仙女
4楼-- · 2019-01-23 19:52

I have solved by Following steps:

Go to Memu Installation Directory: (In My Case D:\Program Files\Microvirt\MEmu)

And then Delete the adb.exe file. It should work fine for you.

查看更多
登录 后发表回答