Customising Boot Animation in Android

Anand Shukla
4 min readNov 30, 2023
Android Boot Animation

What is a Boot Animation?

A boot animation is the visual loading sequence displayed when a device is powered on.

When you turn on a computer, smartphone, tablet, or other electronic devices, the operating system (OS) is loaded into memory, and during this time, a boot animation is shown to provide visual feedback to the user that the system is in the process of starting up.

How to change the Boot Animation of an Android Device?

Creating a new Boot Animation for Android Device is not as difficult as one might think.

In Android, the boot animation is composed of a series of images arranged frame by frame and stored in a zip file. Accompanying these images is a text file named “desc.txt,” which dictates the animation specifications for the stored images. Typically, the images are formatted in either jpg or png.

We need a directory with all the details and we will name the directory as “bootanimation” and later we will zip this directory as “bootanimation.zip”.

The final structure of the bootanimation directory looks like this:

Files of bootanimation directory

Take note that the file’s structure holds significance, determining the sequence and looping of distinct segments in the eventual boot animation. The images within the folders must follow a sequential numbering, starting from 000.

Images inside Bootanimation

The desc.txt file is part of the files, and its purpose is to define the resolution, frame rate, and the number of loops for playing back the animation.

Contents of “desc.txt”

The desc.txt file has the following structure:

Structure of “desc.txt”

The custom boot animation in Android consists of a single zip file specifically named bootanimation.zip. Ensure that no additional files are included within the bootanimation.zip file.

Zip the “bootanimation” directory by using the following command:

zip -r0 bootanimation.zip bootanimation

Generating Images for an Android Custom Boot Animation

There are tools available for crafting custom boot animations on Android by converting videos into the required “JPG” and “PNG” files. Additionally, you can convert GIF files to implement a personalised boot animation in Android.

If you don’t have a particular video to convert, you can use static images or explore pre-made boot animations. Numerous Android boot animation downloads are accessible for selection. Various forums offer their recommendations for the top custom boot animations on Android. Nonetheless, exercise caution when downloading files to avoid installing any malicious content on your device.

Installation Guide:

Place the bootanimation.zip in a directory inside the source code. For Example:

mv bootanimation.zip ~/device/generic/aosp/

Now open device specific make file and add the following line:

PRODUCT_COPY_FILES += \
<path-to-your-bootanimation.zip>:system/media/bootanimation.zip

Now make the source code by using the following commands in terminal:

source build/envsetup.sh && lunch <combo_name>
make -j

Flash the source code into the device using the flashing method provided. After flashing the source code power up the device and enjoy the new Bootanimation.

Changing Boot Animation via adb

ADB(Android Debug Bridge)

Android Debug Bridge (adb) is a versatile command-line tool that lets you communicate with a device. The adb command facilitates a variety of device actions, such as installing and debugging apps. Adb provides access to a Unix shell that you can use to run a variety of commands on a device.

Establish a connection between your device and computer, then navigate to the adb shell. Once there, remount the entire file system and proceed to transfer the bootanimation.zip file to the specified destination: “system/media/.”

adb push bootanimation.zip /system/media/

Restart the device and enjoy the new Bootanimation.

--

--

Anand Shukla

Experienced Software Engineer with a demonstrated history of working in the information technology and services industry.