Saturday, March 4, 2017

Create and change boot logo in android

                               please like & Subscribe our youtube channel

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




Boot logo


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

 It may be the different structure in different ROM and it may one or two boot logo exist in ROM.
In each ROM boot logo location and existing form are different and it depends on types of ROM.






boot logo in stock ROM

There may exist two boot logo in android stock ROM. 

First boot logo in stock ROM



First boot log in stock ROM exists in bootloader file in form .bmp format.





Second  boot logo in stock ROM



second boot logo in stock ROM exist in boot file in form of .rle format.



boot logo in MTK  ROM


There may exist two boot logo in android stock ROM.

First boot logo in MTK ROM


First boot log in MTK ROM exists in root inform logo.bin format.


second boot logo in MTK ROM




second boot log in MTK rom exist in isboot.img  and path is /system/media/images  in form boot_logo format.


Boot logo in Rockchip Rom

We have already seen ROM structure of rock chip ROM. In rock chip ROM, It may be exit one or two boot logo.


In rock chip, ROM boot logo exists in form of .ppm with name logo. Here we can see it in below picture.



Create and change First Boot logo



Create and change First Boot logo in Stock ROM

Here there are following steps to create and change boot log in android.


1) Extract stock ROM according to the previous chapter and change its name from bootloader.fex to bootloader.img.



2) Create a folder bootloader and copy bootloader.img file here




3) Install PowerISO software and right on bootloader.img file and select PowerISO then Extract To.


4) Here you can see file structure of the bootloader.img file.




Create a .bmp file for boot logo and  Click the add button to replace new boot logo then save.

Create and change second  Boot logo in Stock ROM

Create boot logo

As we know that second boot logo in stock ROM exists in form of .rle file form.
Here there are following steps to create .rle boot logo file.


1) First of all download logogen tools and extract it.



2) Copy BMP file of boot logo here.


3) BmpConvert.exe file and select BMP file.



4) Press convert button it will create a .rle file for boot logo with name initlogo.rle.


Change second boot logo in stock ROM


Here there are following steps to create .rle boot logo file.


1)  Extract stock ROM according to the previous chapter and change its name from boot.fex to boot.img.


2)  extract bootimg.zip  put bootimg.exe  and boot.img file in test folder.





3) now go in the test folder and click Ctrl+Shift and right click and choose Open command window here.



4) And write command bootimg.exe –unpack-bootimg boot.img and press enter.



5) Open initrd folder and replace initlogo.rle file.



6) After edit rle file  write command bootimg.exe –unpack-bootimg boot.img and press enter to again repack boot.img.


7) After edit file and folder in boot file, we can Repack boot.img.


For repack boot file run this command boot.img --repack-bootimg  And press enter.




Here we get two files boot-new.img as edited boot file and boot-old.img old file.

Create and change First Boot logo in MTK ROM


We already know that First boot logo in MTK ROM exists in root inform logo.bin format.
So there are some steps to create and change first boot logo in android MTK ROM

1) extract Logo Builder tools and copy the original logo.bin file here.



2) run logobuilder.exe.



3) press create new project button and provide the path of the original logo.bin file and extract it into a new folder as name logo here.




4) so create an edited logo image and replace with the original image. here we replacing img1 and img39 images with the new logo image.




5) After replacing now we can again create the logo.bin file using press make the button. And you can see it in logo folder.


6) Replace this new logo.bin file with the original logo.bin file.


Create and change second Boot logo in MTK ROM


We already know that second boot log in MTK ROM exists in is boot.img  and path are /system/media/images in form boot_logo format.
So there are some steps to create and change second boot logo in android MTK ROM


1) Extract Image_Search_Editor.zip to a folder.




2) Now open Image Search Editor.exe.



3) Select the file, boot_logo.bin to open.



4) Now select 16 colors from the left side panel.
5) Now press  BMP button on the toolbar on the top.

6) Now resize the image according to your device size by the press : Size --> 'Set image Size'.





7) Press ok Now you should see the full default boot logo image.




8) Now, select Edit-->Replace by new boot logo BMP image. Select the BMP image that you saved then press apply.




9) Then, go to File-->Save as BIN. Save it and rename this file as boot_logo.


10) Now replace this new boot_logo with the original boot_logo file.

Create and change boot logo in rock chip ROM

Now there are a lot of tools which can convert a .jpg or .png image to .ppm image or we can also convert online it.
Here we will see how we can change boot logo in rock chip ROM.
There are following steps to extract rock chip ROM and change boot logo.


1) extract factory tool and copy rock chip ROM here.



 2) run FWFactoryTool



3) Provide path of rock chip ROM image file.



4) In tempFolder, we can see the logo.ppm file exists so now we can replace with our custom logo.ppm file.



5) when we open this TempFolder we get.







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