adb命令

1.修改默认输入法:

#方法一:

# 安装百度输入法
adb remount                #获取root权限
adb install badu.apk        #安装百度输入法
adb shell settings put secure default_input_method com.baidu.input/.ImeService
adb shell settings put secure default_input_method cn.com.hwtc.input/.PinyinIME
# 验证是否设置成功
adb shell ime list -s
    # 百度:com.baidu.input/.ImeService
    # 海微:cn.com.hwtc.input/.PinyinIME
adb shell settings get secure default_input_method    #获取默认输入法


#方法二:
adb shell cmd
adb root
adb remount
adb push xx.apk /system/app

#Android键盘(AOSP) ~ 系统默认
com.android.inputmethod.latin/.LatinIME

#谷歌拼音输入法
com.google.android.inputmethod.pinyin/.PinyinIME

#谷歌Gboard输入法
com.google.android.inputmethod.latin/com.android.inputmethod.latin.LatinIME

#触宝输入法国际版
com.cootek.smartinputv5/com.cootek.smartinput5.TouchPalIME

#Go 输入法
com.jb.emoji.gokeyboard/com.jb.gokeyboard.GoKeyboard

#SwiftKey Keyboard 输入法
com.touchtype.swiftkey/com.touchtype.KeyboardService

#搜狗输入法:
com.sohu.inputmethod.sogou/.SogouIME

#微软必应输入法
com.bingime.ime/.BingIme

---------------------------
#显示系统安装的输入法列表
adb shell ime list -s

#获取系统默认输入法
adb shell settings get secure default_input_method

#设置系统默认输入法
adb shell settings put secure default_input_method com.touchtype.swiftkey/com.touchtype.KeyboardService

 

示例:

设置输入法为默认输入法

adb shell settings put secure default_input_method com.cootek.smartinputv5/com.cootek.smartinput5.TouchPalIME

adb shell settings put secure default_input_method com.jb.emoji.gokeyboard/com.jb.gokeyboard.GoKeyboard

adb shell settings put secure default_input_method com.touchtype.swiftkey/com.touchtype.KeyboardService

adb shell settings put secure default_input_method com.sohu.inputmethod.sogou/.SogouIME

adb shell settings put secure default_input_method com.bingime.ime/.BingIme

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值