adb设置输入法相关指令

364 阅读1分钟

「这是我参与11月更文挑战的第3天,活动详情查看:2021最后一次更文挑战」。

adb设置输入法相关指令

设置当前为 adbkeyboroad

adb shell settings put secure default_input_method com.android.adbkeyboard/.AdbIME

//获取当前的可用输入法
adb shell ime list -s
com.google.android.googlequicksearchbox/com.google.android.voicesearch.ime.VoiceInputMethodService
com.google.android.inputmethod.latin/com.android.inputmethod.latin.LatinIME
 
//设置当前的输入法
adb shell settings put secure default_input_method com.sohu.inputmethod.sogou/.SogouIME
 
//获取当前的输入法
adb shell settings get secure default_input_method
com.sohu.inputmethod.sogou/.SogouIME
 
//设置当前的输入法
adb shell settings put secure default_input_method com.sohu.inputmethod.sogou/.SogouIME