1、路径:
(1)device/mediatek/system/common/device.mk
(2)vendor/audio-logo/animation/bootanimation.zip
(3)vendor/audio-logo/products/resource-copy.mk
(4)vendor/mediatek/proprietary/bootable/bootloader/lk/dev/logo/wxga/wxga_kernel.bmp
(5)vendor/mediatek/proprietary/bootable/bootloader/lk/dev/logo/wxga/wxga_uboot.bmp
2、更换开机LOGO:
(1) vendor/mediatek/proprietary/bootable/bootloader/lk/dev/logo/wxga/wxga_kernel.bmp
(2) vendor/mediatek/proprietary/bootable/bootloader/lk/dev/logo/wxga/wxga_uboot.bmp
更换开机logo一般就是更换wxga_kernel.bmp和wxga_uboot.bmp这两张图片。当然,此处的wxga这个是我本地项目所使用的的,其他的也有可能是hd720、hdplus等,根据自己的项目来定(可以通过\device\mediateksample\tb8766p1_bsp_ztk\ProjectConfig.mk,这个文件中的BOOT_LOGO有定义)
3、更换开机logo
(1)device/mediatek/system/common/device.mk
(2)vendor/audio-logo/animation/bootanimation.zip
(3)vendor/audio-logo/products/resource-copy.mk
首先需要在vendor下,将自己的动画资源和规则进行打包(bootanimation.zip),同时对该文件进行编写编译规则(resource-copy.mk) ,最后在device.mk文件中进行定义。
A、device.mk
endif
$(call inherit-product-if-exists, vendor/audio-logo/products/resource-copy.mk)
B、resource-copy.mk
LOCAL_PATH:= vendor/audio-logo
#boot/shut animation
zip_files:= $(notdir $(wildcard $(LOCAL_PATH)/animation/*.zip))
PRODUCT_COPY_FILES += $(foreach file, $(zip_files), \
$(LOCAL_PATH)/animation/$(file):system/media/$(file))
#boot/shut audio
mp3_files:= $(notdir $(wildcard $(LOCAL_PATH)/animation/*.mp3))
PRODUCT_COPY_FILES += $(foreach file, $(mp3_files), \
$(LOCAL_PATH)/animation/$(file):system/media/$(file))
#audio/alarms
mp3_files:= $(notdir $(wildcard $(LOCAL_PATH)/audio/alarms/*.mp3))
PRODUCT_COPY_FILES += $(foreach file, $(mp3_files), \
$(LOCAL_PATH)/audio/alarms/$(file):system/media/audio/alarms/$(file))
ogg_files:= $(notdir $(wildcard $(LOCAL_PATH)/audio/alarms/*.ogg))
PRODUCT_COPY_FILES += $(foreach file, $(ogg_files), \
$(LOCAL_PATH)/audio/alarms/$(file):system/media/audio/alarms/$(file))
#audio/notifications
mp3_files:= $(notdir $(wildcard $(LOCAL_PATH)/audio/notifications/*.mp3))
PRODUCT_COPY_FILES += $(foreach file, $(mp3_files), \
$(LOCAL_PATH)/audio/notifications/$(file):system/media/audio/notifications/$(file))
ogg_files:= $(notdir $(wildcard $(LOCAL_PATH)/audio/notifications/*.ogg))
PRODUCT_COPY_FILES += $(foreach file, $(ogg_files), \
$(LOCAL_PATH)/audio/notifications/$(file):system/media/audio/notifications/$(file))
#audio/ringtones
mp3_files:= $(notdir $(wildcard $(LOCAL_PATH)/audio/ringtones/*.mp3))
PRODUCT_COPY_FILES += $(foreach file, $(mp3_files), \
$(LOCAL_PATH)/audio/ringtones/$(file):system/media/audio/ringtones/$(file))
ogg_files:= $(notdir $(wildcard $(LOCAL_PATH)/audio/ringtones/*.ogg))
PRODUCT_COPY_FILES += $(foreach file, $(ogg_files), \
$(LOCAL_PATH)/audio/ringtones/$(file):system/media/audio/ringtones/$(file))
#audio/ui
mp3_files:= $(notdir $(wildcard $(LOCAL_PATH)/audio/ui/*.mp3))
PRODUCT_COPY_FILES += $(foreach file, $(mp3_files), \
$(LOCAL_PATH)/audio/ui/$(file):system/media/audio/ui/$(file))
ogg_files:= $(notdir $(wildcard $(LOCAL_PATH)/audio/ui/*.ogg))
PRODUCT_COPY_FILES += $(foreach file, $(ogg_files), \
$(LOCAL_PATH)/audio/ui/$(file):system/media/audio/ui/$(file))
C、bootanimation.zip
首先,动画的图片资源要按序号排好,如下图:
第二:desc.txt文件编写,如下:
第三:将folder1和desc.txt两个文件进行压缩(选中这2个文件直接压缩),格式选择ZIP,方式选择存储,将压缩后的文件命名为bootanimation.zip