【问题标题】:How to enable USB debugging for headless emulator via ADB如何通过 ADB 为无头模拟器启用 USB 调试
【发布时间】:2020-03-14 06:41:01
【问题描述】:

我在通过 adb 远程连接的服务器上运行了一些无头模拟器,但我从 adb 设备中看到它们是 unauthorized

androidsim:5561 unauthorized
androidsim:5559 unauthorized
androidsim:5557 unauthorized
androidsim:5555 unauthorized

所以我截取了无头设备的屏幕截图,发现需要启用 USB 调试,但是如何在无头 avd 上启用 USB 调试?

【问题讨论】:

  • 你显然不能通过 ADB 启用 ADB

标签: android android-emulator adb avd


【解决方案1】:

不知道如何禁用,但可以通过

确认对话框
adb -s emulator-5554 shell input tap 1081 1420
adb -s emulator-5556 shell input tap 1081 1420
adb -s emulator-5558 shell input tap 1081 1420
adb -s emulator-5560 shell input tap 1081 1420

【讨论】:

  • 他需要为此使用 ADB,他正在尝试启用...
猜你喜欢
  • 2017-03-02
  • 2014-09-21
  • 1970-01-01
  • 2023-03-20
  • 2020-05-22
  • 2013-11-07
  • 1970-01-01
  • 2023-03-22
  • 1970-01-01
相关资源
最近更新 更多