全志V40 Android 修改默认输入法

  1. Settings.java
    frameworks/base/core/java/android/provider/Settings.java 中定义
public static final String DEFAULT_INPUT_METHOD = "default_input_method";
  1. DatabaseHelper.java
    frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java中方法
    private void loadSecureSettings(SQLiteDatabase db) 末尾增加
loadStringSetting(stmt,Settings.Secure.DEFAULT_INPUT_METHOD,R.string.def_input_method);
  1. tvd_base.mk
    build/target/product/tvd_base.mk中去掉
    PRODUCT_PACKAGES := \ LatinIME
  2. 删除LatinIME.apk
rm out/target/product/magton-perf/system.img
rm out/target/product/magton-perf/system/app/LatinIME.apk
  1. defaults.xml 定义默认输入法
    device/softwinner/magton-perf/overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml中定义
 "def_input_method">com.sohu.inputmethod.sogou/.SogouIME
  1. 放置 sougou.apk 到系统应用目录
cp sogou.apk out/target/product/magton-perf/system/app/sogou.apk
  1. 编译源码

你可能感兴趣的:(嵌入式,arm,android,framework,android,java)