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

Checking ADB Keyboard... ❌ FAILED

Open andoter0501 opened this issue 11 months ago • 6 comments

System Info / 系統信息

Image

如图片展示,键盘本地已经安装了,但是找不到。

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

No response

Information / 问题信息

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

Reproduction / 复现过程

如描述

Expected behavior / 期待表现

正常启动键盘

andoter0501 avatar Dec 17 '25 09:12 andoter0501

在手机上设置输入法为ADB Keyboard 就行了

zzhlong avatar Dec 17 '25 10:12 zzhlong

本质上是 adb shell ime list -s 指令,执行报错,但是很多手机都没权限了。

Exception occurred while executing 'ime':
java.lang.SecurityException: uid 2000 does not have android.permission.WRITE_SECURE_SETTINGS.
	at android.app.ContextImpl.enforce(ContextImpl.java:2089)
	at android.app.ContextImpl.enforceCallingPermission(ContextImpl.java:2107)

andoter0501 avatar Dec 17 '25 13:12 andoter0501

Image Image

我也是这个问题,您解决了吗

alice0422 avatar Dec 18 '25 02:12 alice0422

@Alice0422 参照我的提交,自己本地修改一下就行了:https://github.com/zai-org/Open-AutoGLM/pull/231

andoter0501 avatar Dec 18 '25 06:12 andoter0501

关于明确安装了ADB Keyboard但系统检查不过的这个问题我遇到2次的解决方案:

第一次是在家用笔记本电脑,我的手机USB调试模式只开启了‘USB 调试’没有开启‘USB调试(安全设置)’,打开USB调试(安全设置)重试正常了。

第二次是换了一台电脑,这台电脑上adb devices显示有多台设备,其中有一个模拟器offline,解决方案是退出模拟器(电脑上有安装腾讯模拟器)保持adb devices只显示在调试的手机,重试正常了。

oiuv avatar Dec 23 '25 06:12 oiuv

adb只能连接一台设备

tianxing-ovo avatar Jan 07 '26 12:01 tianxing-ovo