MTK平台入库版本编译帮助


一、快速编译技巧
二、副配置PL快速更新
三、常更改宏解析
四、CU、CT、CMCC核心功能点



一、快速编译技巧

1.更新屏(LCM)
source lunch, make kernel bootimage ,make lk
2.更新TP,摄像头驱动,电池相关
source lunch, make kernel bootimage
3.更新摄像头效果
source lunch,mmm -B vendor/mediatek/proprietary/custom/mt6739/hal/,make snod
4.编译卡刷包
source lunch, make otapackage
5.编译单个模块(模块下有Android.mk)
source lunch, mmm -B 模块路径 ,make snod
6.编译modem
source lunch, mmm -B vendor/mediatek/proprietary/modem/
7.快速更新开关机动画
替换/out/target/product/project_name/system/media/bootanimation.zip和shutanimation.zip,source lunch, make snod
8.编译logo
source lunch,make lk ,make kernel bootimage


二、副配置PL快速更新

配置XUNHU_PROJECT_MEMORY_TYPE

XLSD 16+1
XUNHU_PROJECT_MEMORY_TYPE=37.1288
XLSD 16+2
XUNHU_PROJECT_MEMORY_TYPE=37.12816
XLSD 3+32
+XUNHU_PROJECT_MEMORY_TYPE=37.25624

emmc
1+8,1+16自适应
XUNHU_PROJECT_MEMORY_TYPE=8.1die.ddr3.Discrete
2+16
XUNHU_PROJECT_MEMORY_TYPE=16.ddr3.Discrete
3+32
XUNHU_PROJECT_MEMORY_TYPE=24.ddr3.Discrete

source lunch, make pl
39平台需要将loader_ext.img、preloader_t168ha_v1_1m_yg_q5521m_qd_cmcc.bin同时替换


三、常更改宏解析

MTK_BUILD_VERNO —软件版本号
XUNHU_HARDWARE_VERSION —硬件版本号
XUNHU_PROJECT_MEMORY_TYPE —flash大小
CUSTOM_KERNEL_LK_LCM —屏
BOOT_LOGO — LOGO
CUSTOM_KERNEL_TOUCHPANEL — TP

—摄像头
CUSTOM_KERNEL_MAIN_IMGSENSOR —后摄
CUSTOM_HAL_MAIN_IMGSENSOR

CUSTOM_KERNEL_SUB_IMGSENSOR —前摄
CUSTOM_HAL_SUB_IMGSENSOR

CUSTOM_HAL_IMGSENSOR —前后摄
CUSTOM_KERNEL_IMGSENSOR


四、CU、CT、CMCC核心功能点

CU:内置SystemHelper.apk(priv-app分区,不可卸)

CT: 短信自助测(DeviceRegister)、数据自助测(SelfRegister)vendor/mediatek/proprietary/packages/apps/,智能短信(开发中)

CMCC:DM–vendor/mediatek/proprietary/operator/OP01/packages/apps/ctm/,移动卡优先,智能短信(DmMms)–vendor/mediatek/proprietary/packages/apps/

你可能感兴趣的:(---android)