Saturday, March 4, 2017

Create and change Boot animation and its structure in android

                         please like & Subscribe our youtube channel

         https://www.youtube.com/playlist?list=PLQzJncZC8PUwCTcniu_akzp0N0oDx7l1n



Boot animation


The boot animation is the first screen that you see when power on your Android phone or tablet. It may be a zip file or video file. It shows manufacturer logo on boot screen and its run after the boot logo.The boot animation is the first screen that you see when power on your Android phone or tablet. It may be a zip file or video file. It shows manufacturer logo on boot screen and its run after the boot logo.


The Android boot animation is contained an uncompressed zip file as  bootanimation.zip that can be found in the media folder of the system /system/media on the device.

      This single file contains all the information about to run the boot animation and is loaded automatically when the device boots.



.   

                                 you can see boot animation directory in below picture.






when we open  this media folder we get





Structure of  Boot animation              

If you extract the contents of the bootanimation.zip file to your computer, you will see
Desc.txt file
Part 0 folder(contain png or jpeg images in order form)


More part 1, part 2 folder(it may be present or not).





The animation is played simply by displaying the images in a sequence, and the text file defines how they are to show images in device screen.

   Folder

  These contain PNG or Jpeg images in order, starting from like 0000.jpg or 00001.jpg and proceeding with increments one by one. There should minimum at least one folder in bootanimation.zip


you can see all contain in the folder in below picture



Desc.txt file

This file defines how the images in the folder are displayed in during the boot time.


                You can see the format of desc.txt file format in below picture.





As you can see, in the first line, 600 and 1024 define the width and height of the boot animation in pixels and
            It depends on device screen resolution 6 is the frame rate in fps (frames per second)  number of images to display per second.
          The second and line p represent part of animation and end with part0 or part1 and 0 represent how many times this part  
          will loop  before switching to the next part (if exist) and here 0 number represent it will run infinite till boot complete and 
          1 represents it will run the single time and hang in the last image till boot. Send number 0 is for pause and it represent in frame
           A pause of 5 for example, would mean pausing for the time it takes 5 frames to play and since the frame rate is 6 
          frames per second.     


We can better understand with below picture.




Create boot animation





   We can easily create device boot animation in zipping file format.

Here there are some steps to create boot animation.zip file
1) For creating boot animation for device firstly we will have to install WinZip software in PC.

2) Copy all image in a folder as name part 0 in order format then create desc.txt and write according to device configuration and user requirement as the previous topic structure of boot animation.




when we open this desc.txt file we get.






3) Then select part0 folder and desc.txt file and right click here according to below picture.



4) Then choose to add to archive and check zip & select store in compression method then ok





5) Here we will get a uncompressed zip file.




Change boot animation



If you have original ROM of your device then we can easily replace custom boot animation with original boot animation of your device. For this process Extract system.img file of android ROM and open system folder and then select media folder you put this zip file in this directory then again compress system.img file.



Change boot animation using ADB command

We can also replace your custom boot animation with ADB command if your device is rooted.


Open command promote of pc and adb push <path of bootanimation.zip> system/media/bootanimation.zip


No comments:

Post a Comment