1、安装输入法apk
adb -s <设备id> install keyboard.apk
2、检查是否安装成功
adb -s <设备id> shell ime set com.android.adbkeyboard/.AdbIME
当未安装adbkeyboard输入法时,会出现如下信息:
Error: Unknown id: com.android.adbkeyboard/.AdbIME
当已安装adbkeyboard输入法时,会返回为空:
Input method com.android.adbkeyboard/.AdbIME selected
adb -s <设备id> shell settings get secure enable_input_methods
adb -s <设备id> shell settings put secure enabled_input_methods com.android.adbkeyboard/.AdbIME
————————————————
版权声明:本文为CSDN博主「我不是浩哥」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/WOAIWOJIAWEIHAO150/article/details/117222139