1. frameworks\base\packages\settingsprovider\res\values\defaults.xml file to modify the default input method for Sogou input method
<stringname= "Config_default_input_method" translatable= "false" >com.sohu.inputmethod.sogou/. Sogouime
</string>
<stringname= "Def_enabled_input_methods" translatable= "false" >com.sohu.inputmethod.sogou/. Sogouime
</string>
2. Frameworks\base\packages\settingsprovider\src\com\android\providers\settings\databasehelper.java
Add a statement to the Loadsecuresettings () to make the default enabled Input method
Loadstringsetting (stmt, Settings.secure.default_input_method,r.string.config_default_input_method);
Loadstringsetting (stmt, settings.secure.default_input_method,r.string.def_enabled_input_methods);
3. Put the Sogou input method into the System/app
Android system default Input method to modify the Sogou input method