[mt6735]预装APp

本文介绍如何预装讯飞输入法及Firefox浏览器至Android系统。包括拷贝应用文件、修改配置文件、设置默认输入法等步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

预装讯飞输入法
1  vendor   iFlyIME_v6.0.2649.apk拷贝到
\alps\vendor\MTK_SysTest
iFlyIME_v6.0.2649.apk 改iFlyIME_v6.0.2649.zip  解压取其中lib 拷贝到
\alps\vendor\MTK_SysTest
iFlyIME_v6.0.2649.apk 改iFlyIME_v6.0.2649.zip  解压取其中lib 拷贝到
\alps\out\target\product\bd6735_65c_a_l1\system\app\iFlyIME\lib\arm

修改\alps\vendor\MTK_SysTest\Android.mk
添加
include $(CLEAR_VARS)
LOCAL_MODULE := iFlyIME
LOCAL_MODULE_TAGS := optional
LOCAL_SRC_FILES := $(LOCAL_MODULE).apk
LOCAL_MODULE_CLASS := APPS
LOCAL_MODULE_SUFFIX := $(COMMON_ANDROID_PACKAGE_SUFFIX)
LOCAL_CERTIFICATE := PRESIGNED
#LOCAL_MODULE_PATH := $(TARGET_OUT)/vendor/operator/app
LOCAL_POST_PROCESS_COMMAND := $(shell cp -r $(LOCAL_PATH)/iFlyIME.apk $(TARGET_OUT)/app/)
include $(BUILD_PREBUILT)

 \alps\build\target\product\core.mk

PRODUCT_PACKAGES += \
添加
iFlyIME \

添加
PRODUCT_COPY_FILES += vendor/MTK_SysTest/libBugly.so:system/app/iFlyIME/lib/arm/libBugly.so
PRODUCT_COPY_FILES += vendor/MTK_SysTest/libmsc-v8.so:system/app/iFlyIME/lib/arm/libmsc-v8.so
PRODUCT_COPY_FILES += vendor/MTK_SysTest/libsmartaiwrite-jni-v18.so:system/app/iFlyIME/lib/arm/libsmartaiwrite-jni-v18.so
PRODUCT_COPY_FILES += vendor/MTK_SysTest/libvadLib-v5.so:system/app/iFlyIME/lib/arm/libvadLib-v5.so



alps\device\bird\xxxxxxxxxx\ProjectConfig.mk
DEFAULT_INPUT_METHOD = com.iflytek.inputmethod.FlyIME

alps\frameworks\base\services\core\java\com\android\server\InputMethodManagerService.java

            //M:make sure at least enable one input method @{
            if (TextUtils.isEmpty(mSettings.getEnabledInputMethodsStr())) {
                for (int i = 0; i < list.size(); ++i) {
                    final InputMethodInfo imi = list.get(i);
                    if (InputMethodUtils.isSystemIme(imi)) {
                         setInputMethodEnabledLocked(imi.getId(), true);
                         break;
                    }
                }
            }
2833行 add
            //default input mothod
            else{
                setInputMethodEnabledLocked(mSettings.getEnabledInputMethodsStr(), true);
            }



4

E:\workspace\MTK6735_default_inputmethod\frameworks\base\packages\SettingsProvider\src\com\android\providers\settings\DatabaseHelper.java

(1)    private void loadSystemSettings(SQLiteDatabase db) {
        SQLiteStatement stmt = null;
        try {
            stmt = db.compileStatement("INSERT OR IGNORE INTO system(name,value)"
                    + " VALUES(?,?);");

(2)        // Allow mock locations default, based on build
            loadSetting(stmt, Settings.Secure.ALLOW_MOCK_LOCATION,
                    "1".equals(SystemProperties.get("ro.allow.mock.location")) ? 1 : 0);

            loadSecure35Settings(stmt);

            loadStringSetting(stmt, Settings.Secure.ENABLED_INPUT_METHODS, R.string.def_input_method);
            loadStringSetting(stmt, Settings.Secure.DEFAULT_INPUT_METHOD, R.string.def_input_method);

5  alps\MTK6735_default_inputmethod\frameworks\base\packages\SettingsProvider\res\values\defaults.xml

末尾add
    <string name="def_barcode_separator_prefix"></string>
    <string name="def_barcode_separator_suffix"></string>

    <string name="def_security_password" translatable="false"></string>
    <string name="def_app_restrict_list" translatable="false"></string>

    <string name="def_input_method" translatable="false"></string>
</resources>


mtkapp预装位置
alps\vendor\mediatek\proprietary\packages\autosanity



firefox 预装方法

1  vendor   Firefox.apk拷贝到
alps\vendor\MTK_SysTest
Firefox.apk 改Firefox.zip  解压取其中lib 拷贝到
alps\vendor\MTK_SysTest
Firefox.apk 改Firefox.zip  解压取其中lib 拷贝到
\alps\out\target\product\xxxxxxxxxx\system\app\Firefox\lib\arm
Firefox.apk 拷贝到
alps\out\target\product\xxxxxxxxx\system\app\
\alps\out\target\product\xxxxxxxx\system\app\Firefox

修改\alps\vendor\MTK_SysTest\Android.mk
添加
# add firefox  qnnming
include $(CLEAR_VARS)
LOCAL_MODULE := Firefox
LOCAL_MODULE_TAGS := optional
LOCAL_SRC_FILES := $(LOCAL_MODULE).apk
LOCAL_MODULE_CLASS := APPS
LOCAL_MODULE_SUFFIX := $(COMMON_ANDROID_PACKAGE_SUFFIX)
LOCAL_CERTIFICATE := PRESIGNED
#LOCAL_MODULE_PATH := $(TARGET_OUT)/vendor/operator/app
LOCAL_POST_PROCESS_COMMAND := $(shell cp -r $(LOCAL_PATH)/Firefox.apk $(TARGET_OUT)/app/)
include $(BUILD_PREBUILT)


 alps\build\target\product\core.mk

PRODUCT_PACKAGES += \
添加
Firefox \
末尾
#qnnming add Firefox
PRODUCT_COPY_FILES += vendor/MTK_SysTest/liblocSDK6a.so:system/app/Firefox/lib/arm/liblocSDK6a.so
PRODUCT_COPY_FILES += vendor/MTK_SysTest/libmozglue.so:system/app/Firefox/lib/arm/libmozglue.so
PRODUCT_COPY_FILES += vendor/MTK_SysTest/libplugin-container.so:system/app/Firefox/lib/arm/libplugin-container.so
PRODUCT_COPY_FILES += vendor/MTK_SysTest/libplugin-container-pie.so:system/app/Firefox/lib/arm/libplugin-container-pie.so
$(call inherit-product, $(SRC_TARGET_DIR)/product/core_base.mk)






评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值