修改屏幕密度
setprop ro.sf.lcd_density 190
修改默认输入法
更改frameworks/base/services/java/com/android/server/InputMethodManagerService.java中添加如下代码
String defaultIme = Settings.Secure.getString(mContext.getContentResolver(),
Settings.Secure.DEFAULT_INPUT_METHOD);
if (defaultIme == null) {
try {
String myIME = "**.**.**/.InputMethod";//**.**.** is package name
if (myIME != null && myIME.length() > 0)
{
Settings.Secure.putString(mContext.getContentResolver(),
Settings.Secure.DEFAULT_INPUT_METHOD,
myIME);
}
}
catch (Exception e)
{
e.printStackTrace();
}
defaultIme = Settings.Secure.getString(mContext
.getContentResolver(), Settings.Secure.DEFAULT_INPUT_METHOD);
}
if (!TextUtils.isEmpty(defaultIme) && !map.containsKey(defaultIme)) {
if (chooseNewDefaultIMELocked()) {
updateFromSettingsLocked();
}
}