Hovatek Forum
Announcement: We've launched MTK Auto TWRP porter v1.4 and Android IMG unsign tool v1.0 (Mar, 2019)
How to use factory scatter file + SP Flash tool to backup Mediatek rom - Printable Version

+- Hovatek Forum (https://forum.hovatek.com)
+-- Forum: MOBILE PHONES HELP SECTION (https://forum.hovatek.com/forum-75.html)
+--- Forum: Android (https://forum.hovatek.com/forum-76.html)
+--- Thread: How to use factory scatter file + SP Flash tool to backup Mediatek rom (/thread-26321.html)



How to use factory scatter file + SP Flash tool to backup Mediatek rom - DonJuane - 01-06-2019

In your article regarding using Wrt_MTK and SP Flash to back up a Mediatek phone, you speak about an article that you also wrote which tells how to backup the rom in a phone by using a scatter file that has been provided with a factory ROM for that same phone.   I cannot find that particular article.   Can you point it out?

What I am looking for is a way to extract a ROM from a phone which has been dropped and the "power off" USB interface is still working but the phone will not power up.    I have the original factory scatter file but of course the user data portion in the actual broken phone has a lot of data that was NOT in the original factory ROM and that is the data that I need to extract.    With the ROM image I hope to extract, I would also appreciate anyone who has details regardingf how to extract the contacts list from a version of Android 5 for a BLU phone which has been dropped and will no longer power up but by some miracle, the SP Flash tool will still read the phone memory.

While I have read your procedure for using Wrt_MTK to create a scatter file from scratch, since I already have a scatter file that comes with the factory ROM, I would like to use the factory ROM scatter file if possible and learn how to copy the proper parameters from that scatter file into the SP Flash tool and therefore skip the many steps to create a scatter file from scratch if possible.  

  Additionally the MTKDroid tools do NOT work on this phone.

Thanks in advance.


RE: How to use factory scatter file + SP Flash tool to backup Mediatek rom - EMMANUS - 01-06-2019

First of all, not many steps are involved in the scatter file creation.
Secondly, you may have different variants of the same phone, so, if thats your confusion, you can read the phone info using a tool, maybe nck , miracle, Aladdin etc.

Thirdly, pin-point what you actually want to achieve. Is it contacts , the whole firmware or the whole userdata partition?


Note, its highly unlikely that you can flash whatever you got from the 'dropped' phone onto another, and get it intact.


RE: How to use factory scatter file + SP Flash tool to backup Mediatek rom - X3non - 01-07-2019

(01-06-2019, 12:34 AM)DonJuane Wrote:  In your article regarding using Wrt_MTK and SP Flash to back up a Mediatek phone, you speak about an article that you also wrote which tells how to backup the rom in a phone by using a scatter file that has been provided with a factory ROM for that same phone.   I cannot find that particular article.   Can you point it out?
...
Thanks in advance.

just as @emmanus already pointed, even if you are able to backup full rom (incl userdata), you won't be able to flash userdata onto the second working phone without bricking it

i take it you are trying to retrieve contacts from the faulty phone. here is what you can try though
***********************************
open the folder containing SP flash tool >
edit the file named 'option.ini' > modify the value as shown below then save the file >>

Code:
ShowByScatter=false
to 
ShowByScatter=true

launch SP flash tool >
select and load the scatter file >
click the readback tab (all partitions should be displayed here) >
untick all checkboxes and tick only the checkbox beside userdata > perform the readback
once readback is complete

download and launch hxd hex editor @ https://mh-nexus.de/en/hxd/  >>
open userdata dump using hxd >
search for (control + f) >

Code:
search for: any name that is on the contact list of the phone (you must remember at lease one name or you will scroll down the entire file manually)
datatype: text-string
search direction: all

when a name is found, keep scrolling down and you'll find other names and just beneath the list of names you should find the list of numbers (the list of numbers is usually not arranged according to the list of names so you might have to use an app like truecaller to verify certain phone numbers)


RE: How to use factory scatter file + SP Flash tool to backup Mediatek rom - hovatek - 01-07-2019

(01-06-2019, 12:34 AM)DonJuane Wrote:  In your article regarding using Wrt_MTK and SP Flash to back up a Mediatek phone, you speak about an article that you also wrote which tells how to backup the rom in a phone by using a scatter file that has been provided with a factory ROM for that same phone.   I cannot find that particular article.   Can you point it out?

The post you're looking for is https://forum.hovatek.com/thread-526.html
Jump straight to "Backing up / Dumping just one file / partition"
Its best you use a scatter file from a rom for that model


RE: How to use factory scatter file + SP Flash tool to backup Mediatek rom - DonJuane - 01-10-2019

The disconnect with that article and attempting this task *without* MTKDroid is not knowing exactly how the starting and length parameters found in the old MTKDroid tool correspond to the data in the actual scatter file and which fields are copied from the scatter file to emulate the MTKDroid procedure.    There are at least two values in the scatter file that are not shown on the old MTK Droid tools.   Which one is to be used?    Otherwise is the data copied exactly as seen in the scatter file or is any value changed in any way?    A novice will not know the background of all this and these minor details tend to escape those who document things for people less experienced than they are.

For example:

partition_index: SYS17
 partition_name: USRDATA
 file_name: userdata.img
 is_download: true
 type: YAFFS_IMG
 linear_start_addr: 0x55c00000
 physical_start_addr: 0x55600000
 partition_size: 0x83400000
 region: EMMC_USER
 storage: HW_STORAGE_EMMC
 boundary_check: true
 is_reserved: false
 operation_type: UPDATE
 reserve: 0x00


RE: How to use factory scatter file + SP Flash tool to backup Mediatek rom - EMMANUS - 01-10-2019

What is your target?

It is expected that anyone carrying out a DIY has basic knowledge, if not, Hovatek also offers training courses in different areas of phone software maintenance to benefit those who do not 'understand' as you said.


RE: How to use factory scatter file + SP Flash tool to backup Mediatek rom - X3non - 01-10-2019

(01-10-2019, 04:39 AM)DonJuane Wrote:  ...

since both scatter file and mtk droid tool don't correspond, you should consider backing up using wwr guide instead
i doubt you've actually used this factory scatter file on your device before. if you have then you can use the scatter file if not use wwr guide


RE: How to use factory scatter file + SP Flash tool to backup Mediatek rom - hovatek - 01-10-2019

(01-10-2019, 04:39 AM)DonJuane Wrote:  The disconnect with that article and attempting this task *without* MTKDroid is not knowing exactly how the starting and length parameters found in the old MTKDroid tool correspond to the data in the actual scatter file and which fields are copied from the scatter file to emulate the MTKDroid procedure.    There are at least two values in the scatter file that are not shown on the old MTK Droid tools.   Which one is to be used?    Otherwise is the data copied exactly as seen in the scatter file or is any value changed in any way?    A novice will not know the background of all this and these minor details tend to escape those who document things for people less experienced than they are.

For example:

partition_index: SYS17
 partition_name: USRDATA
 file_name: userdata.img
 is_download: true
 type: YAFFS_IMG
 linear_start_addr: 0x55c00000
 physical_start_addr: 0x55600000
 partition_size: 0x83400000
 region: EMMC_USER
 storage: HW_STORAGE_EMMC
 boundary_check: true
 is_reserved: false
 operation_type: UPDATE
 reserve: 0x00

The info that gets displayed in MTK Droid tools can be obtained from the scatter file. Let's use your above example (if you wish to backup userdata alone).
Start address = physical_start_addr = 0x55600000
Length =  partition_size = 0x83400000
Region: EMMC_USER

Again, ensure the scatter file is for your model