This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

android booting image

Hi, i'm using am335x_sk for a project. i want to change booting image which may be a gif like file displays android scrpts. is it possible customizing that image regards Mehmet
  • You can customize the bootup animation, and it is AOSP implementation, take a look at frameworks/base/cmds/bootanimation/BootAnimation.cpp.
  • Thank you for your quick response,

    i searched google and as far as i understand customizing boot animations in Android is being made using desc.txt file.

    BootAnimation.cpp file also includes following line in movie() method.

    ZipEntryRO desc = zip.findEntryByName("desc.txt");

    File must be like the following format and all data has a special meaning.

    480 480 10
    p 1 0 part0
    s androidaudio.mp3
    c 0 0 part1

    By changing this file customizing boot animation seems easy.

    but i searched file and there is no file named desc.txt in kernel or filesystem.


    Similarly BootAnimation.cpp defines some other zip files which i searched and find no results too.

    #define USER_BOOTANIMATION_FILE "/data/local/bootanimation.zip"
    #define SYSTEM_BOOTANIMATION_FILE "/system/media/bootanimation.zip"
    #define SYSTEM_ENCRYPTED_BOOTANIMATION_FILE "/system/media/bootanimation-encrypted.zip"

    Do i need a desc.txt file to customize boot animations?

    if yes what is the file drectory?

    or should i make some changes is BootAnimation.cpp file to customize android boot animation?


    Regards
  • Read the functions in BootAnimation.cpp, it tries to open USER_BOOTANIMATION_FILE, if not found, it tries to open SYSTEM_BOOTANIMATION_FILE,
    The desc.txt is in that zip file. If no bootanimation.zip is found, it fall back to use the ANDROID log boot animation, see threadLoop function.

  • hi,

    i created a correct bootanimation.zip file and it worked.
    thank you.

    regards

    Mehmet Rıza Öz