Android 如何通过adb命令关闭物理键盘?
我想通过android中的adb关闭它。但我找不到正确的命令。 我尝试在providers.settings中搜索sqlite,但未找到任何内容。Android 如何通过adb命令关闭物理键盘?,android,adb,Android,Adb,我想通过android中的adb关闭它。但我找不到正确的命令。 我尝试在providers.settings中搜索sqlite,但未找到任何内容。 有人知道正确的命令吗?您可以使用InputMethodManager.setInputMethodEnabled(字符串id,布尔值启用)来执行您想要的操作。首先,您需要找到键盘的完整输入法ID-很可能您可以在dumpsys input\u method输出中找到它。 然后,您可以使用服务调用输入\u方法28 s16'input.method.nam
有人知道正确的命令吗?您可以使用
InputMethodManager.setInputMethodEnabled(字符串id,布尔值启用)
来执行您想要的操作。首先,您需要找到键盘的完整输入法ID-很可能您可以在dumpsys input\u method
输出中找到它。
然后,您可以使用服务调用输入\u方法28 s16'input.method.name'i32 0
do disable和服务调用输入\u方法28 s16'input.method.name'i32 1
重新启用输入方法
以下命令在Android 5.1手机上添加了谷歌印地语输入
:
adb shell su 0 service call input_method 28 s16 'com.google.android.apps.inputmethod.hindi/.HindiInputMethodService' i32 1`
此命令已将其从启用的输入法列表中删除:
adb shell su 0 service call input_method 28 s16 'com.google.android.apps.inputmethod.hindi/.HindiInputMethodService' i32 0`
谢谢你的回复。但它无法关闭物理键盘。您的问题解决了吗?对不起,找不到任何。。。