By the end of this tutorial you will have a fully functional, personalized boot animation that appears every time your Android device powers on. The process uses only ADB and Fastboot, so you never need to root the phone or install third‑party recovery images.
The boot animation is the first visual cue users see after the device powers up. Replacing the stock animation can give a device a personal touch, help differentiate multiple devices in a fleet, or even serve as a branding tool for developers. Because the animation is stored in the bootanimation.zip file on the boot partition, flashing it correctly is the only requirement – no system files are altered, which keeps the risk of bricking low.
Note: Most manufacturers lock the bootloader to protect the device. Flashing a boot animation via Fastboot typically requires an unlocked bootloader. The steps below explain how to check the lock state and, if necessary, unlock it safely. If you cannot unlock the bootloader, an alternative method using a custom recovery (e.g., TWRP) is provided.
adb and fastboot).bootanimation.zip.C:\adb or ~/adb.PATH or navigate to it each time you run a command.adb version. You should see something like Android Debug Bridge version 1.0.41.Android expects the boot animation to be a ZIP archive containing a desc.txt file and one or more folders of PNG frames. The desc.txt defines the playback speed and resolution.
Most modern phones use a 1080 × 1920 (portrait) or 1080 × 1080 (square) canvas. For older devices you might need 720 × 1280. Decide on a frame rate – 30 fps looks smooth, but 15 fps reduces file size.
Inside your working directory create a folder named part0. Place every PNG frame in this folder, naming them sequentially (e.g., 00001.png, 00002.png, …). The naming must be zero‑padded to five digits; Android stops reading when a number is missing.
desc.txtCreate a plain‑text file called desc.txt next to part0. The format is:
width height fps loop
For a 1080 × 1920 animation at 30 fps that loops forever, use:
1080 1920 30 0
If you want the animation to stop after one play (useful for a splash screen), replace the last 0 with 1.
You can preview the animation on your PC with a simple script or by using the ffplay command (part of FFmpeg). This step is optional but helps catch visual glitches before flashing.
bootanimation.zipdesc.txt and the part0 folder.zip -r9 bootanimation.zip desc.txt part0
The -r9 flags create a recursive archive with maximum compression, which keeps the file under the typical 10 MB limit imposed by the boot partition.
Without USB debugging ADB cannot communicate with the device.
adb devices. You should see your device’s serial number with the word device beside it.Run:
adb reboot bootloader
This reboots the phone into Fastboot mode. Then type:
fastboot getvar unlocked
If the response is unlocked: yes, you can proceed to flash the animation directly. If it says no or the command fails, the bootloader is locked.
Unlocking varies by manufacturer. The generic command is:
fastboot flashing unlock
Most devices will display a warning and ask you to confirm using the volume and power buttons. Confirm the unlock. Warning: unlocking wipes all user data on many OEMs (e.g., Samsung, OnePlus). Ensure you have a backup before proceeding.
After unlocking, the device will reboot automatically. Repeat the adb reboot bootloader and fastboot getvar unlocked check to confirm the status.
adb reboot bootloader again.bootanimation.zip you created to the folder where fastboot resides, or provide the full path.fastboot flash boot bootanimation.zip
Some devices use the boot partition for the animation, others use a dedicated bootanimation partition. If the above command fails with “partition not found”, try:
fastboot flash bootanimation bootanimation.zip
Observe the output. A successful flash ends with “OKAY” and a short time stamp.
fastboot reboot
Power off the phone completely, then turn it on. The new animation should play immediately after the OEM logo. If the stock animation still appears, double‑check the partition name used in Step 6 and repeat the flash.
If your device’s bootloader cannot be unlocked (some carrier‑locked phones), you can still replace the boot animation via a custom recovery that allows flashing arbitrary ZIPs.
fastboot flash recovery without unlocking. Research your specific model.bootanimation.zip to the device’s internal storage (you can use adb push bootanimation.zip /sdcard/).This method does not require unlocking the bootloader, but it does require a custom recovery, which itself may void warranties.
udev rules for Linux).boot vs bootanimation). Some OEMs lock the boot animation partition; in that case the custom recovery method is the only viable path.desc.txt matches the actual frame size. Mismatched dimensions cause the system to fall back to the default animation.fastboot erase boot (or bootanimation) to clear the partition, then flash again.boot partition alongside the kernel. Overwriting it can corrupt the boot image. If this happens, you will need to re‑flash the stock firmware using the OEM’s fastboot flash script or a factory image.fastboot dump boot boot.img before flashing).adb/fastboot.desc.txt, and zip them into bootanimation.zip.fastboot flash boot bootanimation.zip (or bootanimation).With these steps you have full control over the first visual impression of your Android device, without ever needing root privileges. The same workflow can be reused to update the animation whenever inspiration strikes.









