How to backup my current firmware for USB Burn Tool - Android Stick & Console AMLogic based Computers

I can backup my firmware using twrp. But I'm concerned that I won't be able to boot to TWRP after I mess up. So, is there a way to backup current firmware in img format for USB Burn Tool?

I also want to know. I have read that you can use tools in the Amlogic Tools folder.
I have several Android boxes where the manufacturers only supply the SD card version of the firmware update and not the AML version of the img file that can be flashed with the Amlogic USB Burning Tool should the unit brick.

I want the same thing, as the stock firmware for these boxes can be hard to find. I tried dumping /dev/block/mmcblk0 to an .img file but UBT wouldn't accept it.

leon_733 said:
I want the same thing, as the stock firmware for these boxes can be hard to find. I tried dumping /dev/block/mmcblk0 to an .img file but UBT wouldn't accept it.
Click to expand...
Click to collapse
I think MyGica's SD card type update firmwares have a code that checks the signature of the version it is replacing so if the signature does not match it will not install the firmware you're trying to update to.

Related

[Q] Question about Nandroid MD5 checksum and modifying backed up files.....

Hey guys, just 2 quick questions about nandroid.
Is it possible to either bypass the MD5 checksum right at the start of every nandroid restore? OR, is it possible to generate your own one somehow?
The reason I ask is, I wanna try and replace the backed up files made by nandroid such as "boot.img", "system.img", "cache.img", "recovery.img" etc with the ones that I have extracted from a stock rom.
The stock rom I have can only be flashed through USB connected to PC, by using "SP Flash Tool". However, I have 2 problems using it. The first is that it doesn't work properly for me. I can only flash the "system.img" file but not the other .img files. It seems I need a USB-to-UART cable to flash ALL the .img files, which I don't have and I don't plan on wasting my money buying it either. Besides, I find flashing on a PC a lot more risky than from memory card.
The 2nd problem I have is that I often have problems getting my phone detected by "SP Flash Tool". I tried using Windows 7 and XP and it's hard to get a connection properly. It's most likely because the phone i'm using a chinese clone, called "STAR A1000". It's cheap and crap, so I'm not surprised that I can't establish a stable connection to my PC. I only got lucky like once or twice but haven't been able to flash from my PC ever since.
So anyway, the stock rom I have contains all the .img files. I wanna try and replace those files with the files generated by nandroid, but of course there's the problem with the MD5 checksum file that will check if the file matches or not. So I need a way to bypass the MD5 checksum completely or force nandroid to perform a restore regardless of the conditions. Either that, or I need a way to generate a MD5 checksum for the .img files from the stock rom, and use that for my nandroid backup.
My last question is, I also have custom roms that are made to be flashed on the memory card. Of course, they contain the "boot.img" file, and so I wanna try and replace that with my own working "boot.img" file. I want to know if this will work when I try to flash it in the recovery, or will it fail and brick my phone?

[Q] Huawei G700 EMUI 1.8 B124

Hello
here i am posting here because i cant post on Miscellaneous Android Development , how ever i think i post there before while working on B5512
I Just got new G700 it came with B115 middle east channel , phone is good but as a start is there is a update i must ask my self is root ready , and CWM for sure so i start the digging
@chamaruco thank you for your great thread which saved and helped many people
now i got a file and i think you were looking for it ""G700-U10_V100R001C00B124CUSTC432D001_Firmware_Portugal_Channel-Others_4.2.1_EMUI 1.8_05021LMW.zip"" it contain usb upgrade and sd upgrade with drv and flash tool
i notice EMUI 1.8 not 1.6 which i saw for example a permission manager with it on P6 is that here in that rom too ?
is that rom improved than mine b115 phone is good for first look but
(in B115)
1-camera quality is strange i dont mean bad but it look very strange it is like very poor on quality
2-in call volume is too low in my opinion all " in test mode"
Question now did any one get that update "EMUI 1.8 B124" can tell is there is any improvements ?!
Question am i able to flash CWM image directly with flash tool to save some annoying procedures ?!
a member here provide flasher and cwm.img and orginal recovery.img
i did not work with the phone yet need to shift data from old phone remove ext2 part and prepare for change , and feeling lost here
want to strike it all once
i will upload "EMUI 1.8 B124" soon as it came from a private server
any suggestions are welcome
When you install 1.8 you will notice there is only a tap error from uploader..it is a 1.6 emui. That's all.
Hello
some info to add
incase of softbrick the phone and unable to flash using spflash tool and receive " not allowed , forbidden "
solution
inside the usb upgrade >> flash "Rework-Secro" using scatter in same folder then you will be able to use download mode again
how to install this firmware i.e. B124 on G700-10
chamaruco said:
When you install 1.8 you will notice there is only a tap error from uploader..it is a 1.6 emui. That's all.
Click to expand...
Click to collapse
chamaruco; Thanks for the best of the best user guides you have been making for all of us, but what i want to know is to be able to install the B124 into my phone i.e. G700-10, i have rooted my phone using farmaroot, made a back up of my factory shipped OS and make all my data backup safe through Hisuit, have downloaded the firmware B124 Purtogal version, extracted the zip, (it is now carrying META-INF, boot.img, cust.img, logo.bin, sdload.log, system.img) i have made a folder in my SD card named dload and copied the files in it, uninstalled mobileuncle, reinstalled new mobileuncletool, copied my backuped recovery.img into my SDcard and somehow installed the recovery in to my mobile,
now please show me the way forward, what i need to do and how, please step by step if you kindly can. please.
YOU ARE THE BEST CHAMARUCO
talvigi said:
chamaruco; Thanks for the best of the best user guides you have been making for all of us, but what i want to know is to be able to install the B124 into my phone i.e. G700-10, i have rooted my phone using farmaroot, made a back up of my factory shipped OS and make all my data backup safe through Hisuit, have downloaded the firmware B124 Purtogal version, extracted the zip, (it is now carrying META-INF, boot.img, cust.img, logo.bin, sdload.log, system.img) i have made a folder in my SD card named dload and copied the files in it, uninstalled mobileuncle, reinstalled new mobileuncletool, copied my backuped recovery.img into my SDcard and somehow installed the recovery in to my mobile,
now please show me the way forward, what i need to do and how, please step by step if you kindly can. please.
YOU ARE THE BEST CHAMARUCO
Click to expand...
Click to collapse
Dload inside put update.app file, restart in updatemode
chamaruco said:
Dload inside put update.app file, restart in updatemode
Click to expand...
Click to collapse
But my mobile does not boot into CWM recovery mode as i have seen in my previous Qmobile A8 it always restarts in the defualt recovery mode which only give options to "1. reboot, 2. update from SDcard, 3. update from cashe, 4. wipe/delete user data and wipe/delete cache and in the last there is a calibarate TP, AND OFF COURSE THESE ALL ARE THE ANDROID BUILTIN RECOVERY STEPS NOT OF THE CWM
And off course there is not any file or folder named update.app in the downloaded .zip/extracted file. "as i have mentioned above the folder contains a folder named META-INF and three img files named as boot cust and system while a .bin file named logo too.
THANKS FOR YOUR TIME AND HELP.
foffa said:
Hello
some info to add
incase of softbrick the phone and unable to flash using spflash tool and receive " not allowed , forbidden "
solution
inside the usb upgrade >> flash "Rework-Secro" using scatter in same folder then you will be able to use download mode again
Click to expand...
Click to collapse
So after I select the Reworked scatter file there is only the sec_ro partition checked to flash. So after flashing it do I now select the previous scatter file and then flash everything (including preloader)?

Redmi Pro Scatter File - Which options to select to save data during flash?

Hi All -
I have a Xiaomi Redmi Pro with an unlocked bootloader which is stuck in a boot loop. It has some very recent pics and videos of my 8 months old daughter that I desperately want to save. Thre is no SD card in the phone. However, I cannot get the phone to be detected by the computer/ boot in recovery etc. I have tried a few DIY(TWRP) from online forums but to no avail. I flashed it with MI flash tool(fastboot rom) using save user data; Flash was successful but the phone is still stuck in a bootloop.
I came across an article on Gizbeat with the title " Flash ROM upgrade firmware without losing user data cache" which showed how to save user data while flashing the phone with SP Flash tool. The author has advised deselecting certain parts of the scatter file. I have downloaded Redmi Pro china stable fastboot rom, but the scatter file has different parts to what was shown in the tutorial. At this stage, I do not know what to deselect.
Can the experts on this forum please advise which options should be selected/deselected to save user data while flashing? I have attached a screenshot of the scatter file. Thanks already.
Sid
sid_aj said:
Hi All -
I have a Xiaomi Redmi Pro with an unlocked bootloader which is stuck in a boot loop. It has some very recent pics and videos of my 8 months old daughter that I desperately want to save. Thre is no SD card in the phone. However, I cannot get the phone to be detected by the computer/ boot in recovery etc. I have tried a few DIY(TWRP) from online forums but to no avail. I flashed it with MI flash tool(fastboot rom) using save user data; Flash was successful but the phone is still stuck in a bootloop.
I came across an article on Gizbeat with the title " Flash ROM upgrade firmware without losing user data cache" which showed how to save user data while flashing the phone with SP Flash tool. The author has advised deselecting certain parts of the scatter file. I have downloaded Redmi Pro china stable fastboot rom, but the scatter file has different parts to what was shown in the tutorial. At this stage, I do not know what to deselect.
Can the experts on this forum please advise which options should be selected/deselected to save user data while flashing? I have attached a screenshot of the scatter file. Thanks already.
Sid
Click to expand...
Click to collapse
Hi,
It seems like you've posted in the wrong section. The correct section would be this one: https://forum.xda-developers.com/redmi-pro/help
Regarding the question, however, you can uncheck "userdata" part (and probably "cache" too). Doing so will leave your pictures untouched (hopefully the phone boots).
Also, if you can boot to TWRP, there is no need of this. You should be able to access your internal storage in TWRP from your computer. Otherwise, you can backup the userdata partition with TWRP, copy it to your computer and then try to access the contents of the backup. You can also try to boot to stock recovery, there SHOULD BE an option to backup the userdata. If such option exists (recent MTK phones do have this option by default), you can give it a shot. I have no idea how it works, though.
Nonta72 said:
Hi,
It seems like you've posted in the wrong section. The correct section would be this one: https://forum.xda-developers.com/redmi-pro/help
Regarding the question, however, you can uncheck "userdata" part (and probably "cache" too). Doing so will leave your pictures untouched (hopefully the phone boots).
Also, if you can boot to TWRP, there is no need of this. You should be able to access your internal storage in TWRP from your computer. Otherwise, you can backup the userdata partition with TWRP, copy it to your computer and then try to access the contents of the backup. You can also try to boot to stock recovery, there SHOULD BE an option to backup the userdata. If such option exists (recent MTK phones do have this option by default), you can give it a shot. I have no idea how it works, though.
Click to expand...
Click to collapse
Thanks Nonta72. I have tried but cannot boot to TWRP. My phone is either stuck in a bootloop or I can boot it to fastboot screen. without being able to boot to TWRP, how can I backup the userdata partition?
sid_aj said:
Thanks Nonta72. I have tried but cannot boot to TWRP. My phone is either stuck in a bootloop or I can boot it to fastboot screen. without being able to boot to TWRP, how can I backup the userdata partition?
Click to expand...
Click to collapse
Can you flash things with SP Flash Tool?
Try to flash just the boot.img (uncheck everything else) to see if you can do that.
Nonta72 said:
Can you flash things with SP Flash Tool?
Try to flash just the boot.img (uncheck everything else) to see if you can do that.
Click to expand...
Click to collapse
I haven't tried it yet, and that is why made this post so that I don't end up screwing things whilst using SP Flash tool. You mean flash the full rom with just boot.img selected in the scatter file? Thanks much.
sid_aj said:
I haven't tried it yet, and that is why made this post so that I don't end up screwing things whilst using SP Flash tool. You mean flash the full rom with just boot.img selected in the scatter file? Thanks much.
Click to expand...
Click to collapse
When you open SP Flash Tool program and then select the scatter file by clicking "Scatter Loading", you will be given the possibility to choose which partitions to flash. So, you have to uncheck every partition in SP Flash Tool except "boot" (on the left side, you can see the checkboxes). After that, click "Download", power off the phone, plug it in. It will flash just the boot.img and the process will be very quick (few seconds).
If you want to be ABSOLUTELY sure (even though, unchecking the other partitions is enough), you can go to your stock rom's folder containing the scatter file and then delete the userdata.img file. If the corresponding file isn't found in the folder containing the scatter file, the program will automatically uncheck that partition and will remain so untill you manually provide a usable file for that partition.
Nonta72 said:
When you open SP Flash Tool program and then select the scatter file by clicking "Scatter Loading", you will be given the possibility to choose which partitions to flash. So, you have to uncheck every partition in SP Flash Tool except "boot" (on the left side, you can see the checkboxes). After that, click "Download", power off the phone, plug it in. It will flash just the boot.img and the process will be very quick (few seconds).
If you want to be ABSOLUTELY sure (even though, unchecking the other partitions is enough), you can go to your stock rom's folder containing the scatter file and then delete the userdata.img file. If the corresponding file isn't found in the folder containing the scatter file, the program will automatically uncheck that partition and will remain so untill you manually provide a usable file for that partition.
Click to expand...
Click to collapse
Many thanks. I will give it a shot over the weekend. Fingers crossed!
Nonta72 said:
When you open SP Flash Tool program and then select the scatter file by clicking "Scatter Loading", you will be given the possibility to choose which partitions to flash. So, you have to uncheck every partition in SP Flash Tool except "boot" (on the left side, you can see the checkboxes). After that, click "Download", power off the phone, plug it in. It will flash just the boot.img and the process will be very quick (few seconds).
If you want to be ABSOLUTELY sure (even though, unchecking the other partitions is enough), you can go to your stock rom's folder containing the scatter file and then delete the userdata.img file. If the corresponding file isn't found in the folder containing the scatter file, the program will automatically uncheck that partition and will remain so untill you manually provide a usable file for that partition.
Click to expand...
Click to collapse
Hi,
I tried, but it did not work. Getting PMT error(screenshot attached). Thanks.
sid_aj said:
Hi,
I tried, but it did not work. Getting PMT error(screenshot attached). Thanks.
Click to expand...
Click to collapse
It appears that you have held an incompatible scatter file. Please note that the scatter file isn't the same for the 3 versions.
The Note 4 (Mediatek) comes in 3 versions:
- 16+2
- 64+3
- 64+4 (You probably can use 64+3 scatter in 64+4 and vice versa but 16+2 scatter is likely not compatible with 64GB versions and also vice versa).
I may be wrong! But you have to make sure that it's the correct firmware that you have.
Nonta72 said:
It appears that you have held an incompatible scatter file. Please note that the scatter file isn't the same for the 3 versions.
The Note 4 (Mediatek) comes in 3 versions:
- 16+2
- 64+3
- 64+4 (You probably can use 64+3 scatter in 64+4 and vice versa but 16+2 scatter is likely not compatible with 64GB versions and also vice versa).
I may be wrong! But you have to make sure that it's the correct firmware that you have.
Click to expand...
Click to collapse
Hi Nonta72 -
I have downloaded the Redmi pro fastboot stable rom from here - http://en.miui.com/a-234.html and using the scatter file that came along with it. My phone is 3gb/64gb Helio x25(6797T). The rom page does not have different roms for different versions of processor - just stable or developer. I have attached my scatter file for your reference. Thanks
sid_aj said:
Hi Nonta72 -
I have downloaded the Redmi pro fastboot stable rom from here - http://en.miui.com/a-234.html and using the scatter file that came along with it. My phone is 3gb/64gb Helio x25(6797T). The rom page does not have different roms for different versions of processor - just stable or developer. I have attached my scatter file for your reference. Thanks
Click to expand...
Click to collapse
I really can't tell whether you have the correct scatter file or not.
But I do know that it's really rare that different versions of the phone share the same scatter file especially when there is a big gap between the storages.
If SP Flash Tool doesn't work, you can try to backup the device and maybe you'll get a working scatter file.
Here is an interesting guide that will teach you how to backup your phone (and possibly create a scatter file from it as well).
https://forum.hovatek.com/thread-13347.html
Notes:
You may want to turn off your computer's internet connection before using the program
On step 9, make sure you tick the USERDATA checkbox! If it succeeds, you'll get your pictures in that file. Since the phone has a huge 64GB storage, make sure your computer has enough space (70GB or more) just to make sure!

SPflash tool - how can I read the ROM?

With MTK Tools long dead, I'm trying to read the ROM on a phone with a cracked mother board one which by some miracle, the USB interface still works. I need my userdata.img and to try to get my contacts off that.
Can I use a scatter file that comes with the factory restore images for my phone which is based on MT6582 (4Gb int. mem) to find my memory point entry values for each separate file I want to pull off the phone? I tried copying exactly the linear_start_address and the partition_size into SPFlash "ADD" fields to use with the Read Back option and I get the xxxxxx.img files but not sure if this is the right way because I can't seem to use a tool to extract the internal files like I have been able to do on other restore images in the past.
I have used Disk Internals Linux Reader on my Windows laptop in the past but it doesn't seem to work on the files I extracted but of course until someone tells me if simply copying and pasting the named fields out of the scatter file and into SPFlash ADD, Read Back, I don't know if the data has been read out of the phone properly.
Thanks!

Help with an updater script to flash a ROM onto a S905x2 TV box

Hi,
Long story:
This is not a question about a specific device, although it involves one (A95X MAX) which has made it extremely difficult to modify. I have a ROM that I want to install, but it is essentially only a system.img file in a RAR file which is only accompanied by a file SECURE_BOOT_SET. The stock recovery doesn't know how to use RAR files and, if I unpack the system.img & SECURE_BOOT_SET onto an SD card, stock recovery doesn't know how to handle that. Stock recovery just wants a zip file. (I can't use USB to send ADB commands to the box or use the Amlogic burning ROM tool. I can't get USB communications going, though the USB cable supplies power.)
Examining a TWRP.zip I find a relatively simple structure that I think should be able to get my system.img onto my TV box. It looks as though I just need an updater.script buried in a sub-directory off META-INF with the system.img in the zip's root directory, so, the updater.script...
Short version:
If I only put this command
package_extract_file("system.img", "/dev/block/system");​
into the updater.script and reconstruct a system.zip with my desired system.img is this sufficient to flash the system.img?
And another (hopefully simple) issue, do I need to sign the zip? If so, how do I do it? (Google has magically pointed me to how to sign a zip file.)
Thanks!
--
(If this is the wrong sub-forum, which is the right one?)
maybe a stupid question but is the "System.img" purely the system partition or is that the entire firmware just called system.img?
the "SECURE_BOOT_SET" file suggests its the entire firmware and not just the system.img in which case "USB Burning tool 2.1.6.8" will do the job
Tonian1878 said:
maybe a stupid question but is the "System.img" purely the system partition or is that the entire firmware just called system.img?
the "SECURE_BOOT_SET" file suggests its the entire firmware and not just the system.img in which case "USB Burning tool 2.1.6.8" will do the job
Click to expand...
Click to collapse
Not a stupid question. I'm pretty much in the dark. You may be right that it is the entire firmware. I have no way of seeing inside the package, but a developer elsewhere suggested I take the line of restructuring the package with Simg2img and dd it into the system partition. I renamed it system.img to try to restructure it with a version of Simg2img. And SECURE_BOOT_SET contains nothing readable, if it contains data for the install at all. The package containing these two files looks like no full firmware installation I've seen.
I cannot establish USB communications with this box (it doesn't behave like other S905x2 boxes in circulation, though it seems to have the same central hardware; no-one seems to be doing work on the box and there's no technical support), which makes the USB Burning Tool useless, as I understand it.
your system.img isnt a true system.img, its the entire firmware, which is also a .img file that has several other .img files inside it, this includes the proper system.img , boot.img and recovery.img etc.
i have the A95X Max and i have used USB Burning tool to flash firmwares to it.
Install USB Burning tol 2.1.6.8.
Go to whichever folder you installed USB burning tool in and create a new folder called "license" and put the the "secure_boot_set" file in the "license" folder.
start usb burning tool, select your firmware (.img) then hook the A95X Max to the pc via the back USB connection while pressing the reset/recovery button (hidden in the 3.5mm socket) and then insert power cable.
should pop up on USB Burning tool. press start.
Note: make sure the is nothing else in the USB slots while flashing or the HDD slot.

Categories

Resources