Android Development

How To Backup Stock Boot and Recovery Image

How To Backup Stock Boot and Recovery Image

Android is a Operating system which allow it’s user ability of complete modification. It takes a risk which either may improve your device a lot more or either make it perform worst. Now, most of the android Developer who encounter problems with their android device have difficulty to fix it. Why? Most beginners on android tweaking has the lack of knowledge on the proper way to backup their android devices’ software, so whenever they encounter such issues to their device, they have the hard time looking of for a resolution especially if their device doesn’t have much developers. Good news for MediaTek android users because this article will provide you the way how to solve your problems with your android devices’ Stock Boot.img and Recovery image which you could use if something bad might happen, and you can use it to create a CWM recovery to do flashing stuffs and do full ROM backup.

 

How To Backup Stock Boot and Recovery Image

How To Backup Stock Boot and Recovery Image
How To Backup Stock Boot and Recovery Image

 

Disclaimer

Rooting or flashing Custom Recovery/Custom ROM’s results to the void of the warranty of the device. (We) RaphsonBD and its authors will not responsible for bricked devices, dead SDcard or any damage in your device which is incurred in the process of flashing Custom Recovery/custom ROM/Rooting or any development process the device. We highly advice to take a backup of your device prior to performing the process. Please do some research if you have any concerns about features included in this ROM, before flashing it! You are choosing to make these modifications. Nevertheless if you need any help, just comments already. We will always pleased to help you.

 

Downloads and Requirements

This Method will work on following Any MediaTEK android device ( MT6595, MT6592, MT6589, MT6582, MT6577, MT6575, MT6572, MT65xx ) with USB cable and Windows computer and downloads all the following files from bellow link to Backup Stock Boot and Recovery Image:

 

Installation Process

How To Backup Stock Boot and Recovery Image

  • Download and Install MTK USB Drivers in your PC. and then extra MTK Droid Root and Tool and SP Flash tools
  • Make sure that you have made the Scatter File for your device (create your own using the link from the requirements above) Here is the guide: How to Make Scatter File for MediaTEK Device.
  • Then Turn on your phone, Go to SettingAbout Phone > Press 5 to 6 time over Build version to unlock Developer option. Then again go to SettingsDeveloper option > Enable USB Debugging. If you had made the sactter files already, then you can skip this.
  • Then Connect your android device using USB Cable to your Windows computer.
  • Open SP Flash Tools (also known as Smartphone Flash Toools) Run as administrator is recommended.
  • After opening SP Flash Tools, Click on Scatter-loading.
How To Backup Stock Boot and Recovery Image
Click On Scatter-loading
  • Then select  the Android Scatter which have you made using this method. I have already made which is named after my device chipset: MT6577_Android_scatter_emmc.txt,  and open the file
how to use Sp flash tool
Locating Scatter File
  • After selecting Scatter file the screen will will look like the screenshots below. Now click Read Back tab. the  click ADD twice so that we can add two tasks. One is for getting the boot.img and the second one is for recovery.img
latest SP Flash tools free download
  • You can use them as stock backups and we can also use it as a basis for flashing CWM custom recovery and making a full ROM backup or dump.
latest SP Flash tools free download
  • It’s time to get serious and make a BOOT.IMG, Don’t worry, It’s not a hard job.Double Click over N/A, just link the screen bellow. A new window will appear asking to save the file. Name it as boot.img then click Save it to where you want to put the stock boot.img. You must enter the proper hex valuse for the Start Address and the Length for the boot image or else all you have done will not work.
creating boot.img using sp flash tools
  • To find out what to enter on the Start Address, first, find the scatter file that you have created before and edit/open it using Notepad ++ editor. Enter the hex code of BOOTIMG, in my case, my hex code is 0xf88000.  Just like bellow screenshots
latest SP Flash tools free download
SP Flash tools free download
  • To find out what to enter on Length, connect your device to your computer via USB cable, then open MTK Droid Tools.exe on your computer and wait until your device was detected. From MTK Droid Tools, click Block Map. Find the row for bootimg and you’ll notice that it has the same start address “0000F88000” from what we have from the scatter file above “0xf8800” (you’ll see that the first 4 zeroes are replaced by “0x”). Now to get the Length, length is equal to the Size but what we will enter is the significant digits only. In my case, since the size is 0000600000, the significant digit is 600000 and we have to replace the first 4 zeroes with “0x”, so what we will enter in the Length from the SP Flash Tool is 0x600000
Creating boot.img using sp flash tools
  • One you’ve done that it will look like screenshots bellow.
How To Backup Stock Boot and Recovery Image
  • Be sure that the Start Address and Length has the same count or number of characters, otherwise, add a zero. For example you have a start address of 0x1234567 and you have a length of 0x123456, since they are not the same in count, you have to add zero on the length, so the length now will be 0x0123456. We have to add zero just in order to have the same character count. If you are done getting the hex values, press OK.
  • Setting for boot.img is done, This is how Backup Stock Boot. next will be for the recovery.img.
    Double click on the second N/A, name it as recovery.img and save it to where you want to store the stock recovery.
How To Backup Recovery Image
Backup Recovery.Image
  • You have to enter the proper hex values for Start Address and Length.
How To Backup Recovery Image
  • You have to open again the Scatter file of your device and load your device from MTK Droid Tools to check the block map just like what we did on the boot.img.
You have to open again the Scatter file of your device and load your device from MTK Droid Tools to check the block map just like what we did on the boot.img.
  • My recovery has a Start Address 0x1588000 as you can see from the notepad, and I have the size of 000060000 from the block info, we will replace the first four zeroes with “0x” to get the Length, so my Length will be 0x600000. Since you have got the values, you have to enter it on the SP Flash Tool then press OK. Refer to the image below.
How To Backup Recovery Image
  • Now it is all set upped, you can see the locations where your boot and recovery image will be stored after we do the process.  Disconnect the USB cable from your device and turn off your android device (you can do proper shutdown or remove the battery). When your phone is already turned off, press the Read back button from SP Flash Tool and immediately plug-in your phone with USB Cable.
How To Backup Recovery Image
  • Wait for 3-5 seconds and SP Flash Tool will detect your android device and it will load and create the stock boot and recovery image for your device. An OK alert message with a green circle will popup when the process is successful. Navigate to the location where you have set the files to be store. In my case, you can see below that I have done it well. The boot image and the recovery image has the same file size.
How To Backup Recovery Image
  • Why they have the same file size? Let’s check the block info from the MTK Droid Tools.
How To Backup Recovery Image
  • As you can see, both boot and recovery image has the same file size around 6mb therefore our file is correct. We are now done from creating Stock images and we can use it to create a ClockworkMod (CWM) recovery and do full Stock ROM backup.
  • Congratulation. You have Make/Backup Stock Boot and Recovery Image.

 


 

Related Blog Post

Tags : Backupboot.imgMediaTEKMT6572MT6575MT6577MT6582MT6589MT6592MT6595MT65xxrecovery.img

Leave a Response

*

code