android4.4 添加默认输入法
1、 \android\frameworks\base\packages\SettingsProvider\src\com\android\providers\settings\DatabaseHelper.java
通过如下方式读取默认值
......
loadFractionSetting(stmt, Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_SCALE,
R.fraction.def_accessibility_display_magnification_scale, 1);
loadBooleanSetting(stmt,
Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_AUTO_UPDATE,
R.bool.def_accessibility_display_magnification_auto_update);
loadBooleanSetting(stmt, Settings.Secure.USER_SETUP_COMPLETE,
R.bool.def_user_setup_complete);
loadStringSetting(stmt, Settings.Secure.DEFAULT_INPUT_METHOD, R.string.default_input_method);//Await add default input method
......
2、 \android\frameworks\base\packages\SettingsProvider\res\values\defaults.xml
......
<!-- Default for Accelerometer coordinate -->
<string name="def_accelerometer_coordinate">default</string>
<!--Default baidu input method tzx add -->
<string name="default_input_method" translatable="false">com.baidu.input/.ImeService</string>
......