【问题标题】:How to identify an android emulator (AVD) using ADB如何使用 ADB 识别 android 模拟器 (AVD)
【发布时间】:2016-09-01 11:49:41
【问题描述】:

我使用模拟器 AVD,我有 3 个 android:

  • 名字Android:测试
  • Android 的第二个名字:test1
  • Android 的第三个名字:test2

我用命令行启动第一个和第二个 android:

emulator -avd test
emulator -avd test1

之后,当我使用这个命令行时:

avd devices

我有

附加设备列表
模拟器 5556 设备
模拟器 5554 设备

如何使用 adb(仅命令行)识别我的 android 模拟器?
如果不可能,我怎么知道我的设备是否以“模拟器”(仅限命令行)启动?

【问题讨论】:

    标签: android command-line adb emulation device


    【解决方案1】:

    尝试向AVD 发送TELNET

    emulator -avd test
    emulator -avd test1
    
    avd devices
    
    List of devices attached 
    emulator-5556 device 
    emulator-5554 device
    
    telnet localhost 5554
    Trying 127.0.0.1...
    Connected to localhost.
    ...
    OK
    avd name
    test1
    

    【讨论】:

    • 如果对您有帮助,请投票并接受我的回答。
    • 还有其他简单的方法吗?
    猜你喜欢
    • 2017-01-08
    • 1970-01-01
    • 2017-10-14
    • 2020-10-09
    • 2013-04-03
    • 1970-01-01
    • 2015-05-24
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多