Open-AutoGLM icon indicating copy to clipboard operation
Open-AutoGLM copied to clipboard

adb.exe: more than one device/emulator,多个设备时出现错误,需要变更代码

Open Dylan-lijl opened this issue 11 months ago • 1 comments

System Info / 系統信息

Android Debug Bridge version 1.0.41
Version 35.0.2-12147458
Installed as D:\data\android_sdk\platform-tools\adb.exe
Running on Windows 10.0.19045

Who can help? / 谁可以帮助到您?

No response

Information / 问题信息

  • [ ] The official example scripts / 官方的示例脚本
  • [x] My own modified scripts / 我自己修改的脚本和任务

Reproduction / 复现过程

多个设备时报错 'adb.exe: more than one device/emulator'

Expected behavior / 期待表现

main.py的check_system_requirements添加一个device_id参数,并在调用时传递args.device_id,198行命令需要先指定设备id:

result = subprocess.run(
                ["adb", "-s", device_id, "shell", "ime", "list"],
                capture_output=True,
                text=True,
                timeout=10,
            )

Dylan-lijl avatar Dec 31 '25 09:12 Dylan-lijl

I can take this issue. I will pass the selected --device-id into the system requirements check so the ADB Keyboard probe targets that device with adb -s <device-id> shell ime list -s.

JY-M666 avatar Nov 04 '26 20:11 JY-M666