完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
添加方法: 1. 添加第三方apk 路径: rk3288/device/rockchip/rk3288/Sougou: Android.mk //标准预置第三方apk方法 LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := sougoushurufa LOCAL_MODULE_CLASS := APPS LOCAL_MODULE_TAGS := optional LOCAL_BUILT_MODULE_STEM := package.apk LOCAL_MODULE_SUFFIX := $(COMMON_ANDROID_PACKAGE_SUFFIX) #LOCAL_PRIVILEGED_MODULE := #LOCAL_OVERRIDES_PACKAGES := LOCAL_SRC_FILES := $(LOCAL_MODULE).apk #LOCAL_REQUIRED_MODULES := LOCAL_CERTIFICATE := PRESIGNED include $(BUILD_PREBUILT) 路径: rk3288/device/rockchip/rk3288 device.mk diff --git a/device.mk b/device.mk index c9f1ec4..e058a2c 100644 --- a/device.mk +++ b/device.mk @@ -47,6 +47,10 @@ endif PRODUCT_COPY_FILES += device/rockchip/rk3288/rk3288_box/init.rc:root/init.rc device/rockchip/rk3288/fstab.rk30board.bootmode.unknown:root/fstab.rk30board.bootmode.unknown device/rockchip/rk3288/rk3288_box/fstab.rk30board.bootmode.emmc:root/fstab.rk30board.bootmode.emmc else PRODUCT_COPY_FILES += device/rockchip/rk3288/fstab.rk30board.bootmode.unknown:root/fstab.rk30board.bootmode.unknown device/rockchip/rk3288/fstab.rk30board.bootmode.emmc:root/fstab.rk30board.bootmode.emmc endif +#170401, add sougou input method. +PRODUCT_PACKAGES += + sougoushurufa + 2. 设置默认属性以及加载到database中 diff --git a/packages/SettingsProvider/res/values/defaults.xml b/packages/SettingsProvider/res/values/defaults.xml index d75b742..cc8e961 100755 --- a/packages/SettingsProvider/res/values/defaults.xml +++ b/packages/SettingsProvider/res/values/defaults.xml @@ -217,4 +217,7 @@ //此属性默认没有设置,需要自己添加. + + + diff --git a/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java b/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java index 0b122a4..657af87 100755 --- a/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java +++ b/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java @@ -2535,6 +2535,10 @@ class DatabaseHelper extends SQLiteOpenHelper { loadIntegerSetting(stmt, Settings.Secure.SLEEP_TIMEOUT, R.integer.def_sleep_timeout); + /*Kris, 170401, Add default input method to database. */ + loadStringSetting(stmt, Settings.Secure.DEFAULT_INPUT_METHOD, + R.string.def_input_method ); + /* * IMPORTANT: Do not add any more upgrade steps here as the global, * secure, and system settings are no longer stored in a database 3. 使能所有输入法 默认情况下只有一种输入法是被使能的,如果要使能全部, 可做如下修改 [kris@ecovacs:~/rk3288/frameworks/base]$ g df diff --git a/core/java/com/android/internal/inputmethod/InputMethodUtils.java b/core/java/com/android/internal/inputmethod/InputMethodUtils.java index 742173b..1c26d51 100644 --- a/core/java/com/android/internal/inputmethod/InputMethodUtils.java +++ b/core/java/com/android/internal/inputmethod/InputMethodUtils.java @@ -926,12 +926,12 @@ public class InputMethodUtils { // At the initial boot, the settings for input methods are not set, // so we need to enable IME in that case. public void enableAllIMEsIfThereIsNoEnabledIME() { - if (TextUtils.isEmpty(getEnabledInputMethodsStr())) { + if (!TextUtils.isEmpty(getEnabledInputMethodsStr())) { StringBuilder *** = new StringBuilder(); final int N = mMethodList.size(); for (int i = 0; i < N; i++) { InputMethodInfo imi = mMethodList.get(i); - Slog.i(TAG, "Adding: " + imi.getId()); + Slog.i(TAG, "Adding: " +***.toString()+ imi.getId()); if (i > 0) ***.append(':'); ***.append(imi.getId()); } |
|
|
|
你正在撰写答案
如果你是对答案或其他答案精选点评或询问,请使用“评论”功能。
基于米尔瑞芯微RK3576核心板/开发板的人脸疲劳检测应用方案
739 浏览 0 评论
968 浏览 1 评论
856 浏览 1 评论
2075 浏览 1 评论
3322 浏览 1 评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-25 12:33 , Processed in 0.388541 second(s), Total 41, Slave 34 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号