[mt6735]预装APp
2016-07-08 10:48
411 查看
预装讯飞输入法
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
2
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
3 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(?,?)
4000
;");
(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
2
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)
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
2
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
3 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(?,?)
4000
;");
(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
2
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)
相关文章推荐
- ionic在iOS中打包失败
- 【iOS】Masonry 自动布局 MASViewConstraint.m:207 错误
- MJRefresh 部分应用
- 【Android】自定义标题栏 (解决了标题栏两侧空隙问题)
- Android中逐帧动画的实现
- iOS开发技术之延迟执行
- Swift - 访问控制(private,internal,public)
- Android——OOM以及内存优化
- Android 自定义属性的理解和使用
- Android测试详解_1-Best Practices for Testing-介绍
- 自定义view实现涂鸦(画板)功能(二)
- android push需要安装的apk到system/app以及删除system/app下的apk
- Swift-枚举、结构体、协议
- Android ListView下拉刷新上拉自动加载更多DEMO示例
- Call to a member function display() on a non-object问题的解决
- Android如何调用第三方SO库
- 微信公众平台OAuth2.0网页授权php示例
- cocoscreator开发问题记录
- 自定义ViewSwitcher, 支持自定义布局和轮播(淘宝头条效果)
- iOS-最全的App上架教程