Hovatek Forum MOBILE Android [Tutorial] How to Clean-up Preloader.bin Dump using SP flash tool
Try our Online TWRP Builder..its free!
Can't login? Please, reset your password.


[Tutorial] How to Clean-up Preloader.bin Dump using SP flash tool

[Tutorial] How to Clean-up Preloader.bin Dump using SP flash tool

X3non
X3non
X3non
Recognized Contributor
22,062
20-12-2017, 03:02 PM
#1



In this tutorial, we'll be showing how to clean up a preloader dump file gotten from an SP flash tool readback. What you will notice after dumping preloader is that the file is usually very large, this is because SP flash tool dumps the entire partition including empty sectors. One will need to clean up the preloader dump before he / she will be able to flash it. I've attached a RAW dump and CLEAN preloader file for those who wish to practice.

Important Notice
  • A better and easier method to do will be to use the "preloader analysis" feature in WwR-MTK tool

Requirements

  • Download HXD editor
  • The preloader.bin file you got from your SP flash tool readback

How to clean-up Preloader dump created using SP flash tool readback


Follow the steps below to clean up preloader dump created using SP flash tool readback

  1. Download, install and Launch HXD

    [Image: How-to-Clean-up-Preloader.bin-Created-us...back-1.jpg]

  2. Open the preloader file using HXD (you can simply drag the preloader.bin file onto the HXD window)

    [Image: How-to-Clean-up-Preloader.bin-Created-us...back-2.jpg] 

  3. Press "control + F" to find, fill the find window with the values below then click OK
    Code:

    Search for: 4D 4D 4D 01 38
    Datatype: Hex-values
    Search direction: All

    [Image: How-to-Clean-up-Preloader.bin-Created-us...back-3.jpg]

  4. Look at the right section of HXD, highlight and delete everything above "MMM.8"

    [Image: How-to-Clean-up-Preloader.bin-Created-us...back-4.jpg]

  5. You'll get a delete confimation window, click OK

    [Image: How-to-Clean-up-Preloader.bin-Created-us...back-5.jpg]

  6. Now, search again for the hex values below (best you copy out the values in code tag below)
    Code:

    FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF

    [Image: How-to-Clean-up-Preloader.bin-Created-us...back-6.jpg]

  7. It will be highlighed once it has been found, simply hold down your shift key then scroll to the end of the file and click on the last item under Hex. Then press your delete button.

    [Image: How-to-Clean-up-Preloader.bin-Created-us...back-7.jpg]

  8. You'll get a delete confimation window, click OK

    [Image: How-to-Clean-up-Preloader.bin-Created-us...back-8.jpg]

  9. Save the modified file, then exit HXD

  10. The newly modified file is now your clean preloader.bin
This post was last modified: 04-10-2019, 10:55 PM by X3non.
Attached Files
.zip
CLEAN preloader.zip
Size: 71.19 KB / Downloads: 64
.zip
RAW preloader.zip
Size: 80.55 KB / Downloads: 52
nijazxp
nijazxp
nijazxp
Techie Member
55
24-12-2017, 04:50 PM
#2
Or just use mtkdroidtool if we have working phone which is put in usbdebuggingmode and such drivers installed. Then instead of selecting whole rom for processing, we just select preloader (bootloader). It may be invisible in mtkdroidtool when browsing folders for it, but we may rename it to ROM_*** name or just enter its filename. It will clean it just like it would do it with whole rom.

[Image: Untitled.jpg]
Jimslaw
Jimslaw
Jimslaw
Techie Member
75
25-12-2017, 02:46 AM
#3
(20-12-2017, 03:02 PM)X3non ...

is there anything wrong if one did a read back of the entire rom then process with MTK droid?
This post was last modified: 27-12-2017, 09:04 AM by hovatek.
nijazxp
nijazxp
nijazxp
Techie Member
55
25-12-2017, 03:14 AM
#4
(25-12-2017, 02:46 AM)Jimslaw is there anything wrong if one did a read back of the entire rom then process with MTK droid?

No, that is what you should do by default. Only do this if you can't do that (don't have alive phone, therefore can't access mtk droid tool).
Or simply said: That is basic (recommended), and this is advanced (experimental) method.
X3non
X3non
X3non
Recognized Contributor
22,062
26-12-2017, 02:19 PM
#5



(24-12-2017, 04:50 PM)nijazxp Or just use mtkdroidtool if we have working phone which is put in usbdebuggingmode and such drivers installed. Then instead of selecting whole rom for processing, we just select preloader (bootloader). It may be invisible in mtkdroidtool when browsing folders for it, but we may rename it to ROM_*** name or just enter its filename. It will clean it just like it would do it with whole rom.

...

thanks., nice addition
but just for added info, it will only work if your mtk device can be detected / connect properly with mtk droid tools.
Users browsing this thread:
 1 Guest(s)
Users browsing this thread:
 1 Guest(s)
YtWhTl
live chat
whatsapp telegram instagram