在项目中添加两个动画文件(后面两个为开关机音乐),文件制作麻烦找百度:
device/qcom/YOUR_PROJECT_NAME/bootanimation.zip device/qcom/YOUR_PROJECT_NAME/shutdownanimation.zip device/qcom/YOUR_PROJECT_NAME/boot.wav device/qcom/YOUR_PROJECT_NAME/shutdown.wav
之后在YOUR_PROJECT_NAME.mk中添加以下代码
PRODUCT_COPY_FILES += \ device/qcom/$(TARGET_PRODUCT)/bootanimation.zip:system/media/bootanimation.zip \ device/qcom/$(TARGET_PRODUCT)/shutdownanimation.zip:system/media/shutdownanimation.zip \ device/qcom/$(TARGET_PRODUCT)/boot.wav:system/media/boot.wav \ device/qcom/$(TARGET_PRODUCT)/shutdown.wav:system/media/shutdown.wav \