以实现讯飞输入法为默认输入法为例:
1.\vendor\mediatek\proprietary\packages\apps\SettingsProvider\res\values\defaults.xml 中声明FlyIME输入法
<!-- FlyIME-->
<!--输入法的列表-->
<string name="enabled_input_methods" translatable="false">com.android.inputmethod.latin/.LatinIME:com.iflytek.inputmethod/.FlyIME</string>
<!--默认输入法-->
<string name="config_default_input_method"translatable="false">com.iflytek.inputmethod/.FlyIME</string>
2.\vendor\mediatek\proprietary\packages\apps\SettingsProvider\src\com\android\providers\settings\DatabaseHelper.java
loadGlobalSettings()中添加或更改--
loadStringSetting(stmt,Settings.Secure.ENABLED_INPUT_METHODS,R.string.enabled_input_methods);
loadStringSetting(stmt,Settings.Secure.DEFAULT_INPUT_METHOD,R.string.config_default_input_method);
验证的时候开机打开短信,查看调用的输入法。。。。。