adb shell 输入文字
通过adb shell指令向手机输入框输入指定的内容,包括特性字符、中文等。
adb shell ime使用
usage: ime list [-a] [-s]
ime enable ID
ime disable ID
ime set ID
The list command prints all enabled input methods. Use
the -a option to see all input methods. Use
the -s option to see only a single summary line of each.
The enable command allows the given input method ID to be used.
The disable command disallows the given input method ID from use.
The set command switches to the given input method ID.
获取当前使用的软键盘
abc:~ likunlun$ adb shell settings get secure default_input_method
com.baidu.input_mi/.ImeService
通过Python语言获取: