converting a rom img file to fastboot flashable - Xiaomi Mi 6 Questions & Answers

Hi everyone,
Does anyone know how to convert a rom image (preferably LineageOS) to a fastboot flashable set of files, like an original Xiaomi rom. I need to flash via EDL as I'm locked out of my phone.
Thanks for any help.
Adam

Related

Chinese T805C Boot.img

Does anyone have the Chinese boot image for the T805C? It appears that if you flash any custom ROM that contains a boot.img
the radio will cease to work.
Thanks

[Q] How do you make a system.img from firmware zip

Problem: We can download the firmware from Asus in the form of a zip file. We can use adb sideload <firmware>.zip to sideload the firmware.
Request: How can I flash that firmware using fastboot? It looks like I need to use a .img file. How do I convert that .zip file to a .img file?
Reason: I found a situation where using the sideload method didn't seem to work correctly. I ended up having to get a pre-rooted .img and flashed that, but I want a "virgin" img file. Thanks.
If you install zip from ASUS download site (not OTA!) then you will get virgin stock ROM after update.
This kind of update (around 1GB) erases system partition before install, so it doesn't matter how hard you've modified previous firmware. SU, Xposed, etc - everything will be automatically wiped before install.
The question is how do you convert .zip to .img?
damian5000 said:
The question is how do you convert .zip to .img?
Click to expand...
Click to collapse
tools to build img from zip (only full ROM, not OTA) published there: http://forum.xda-developers.com/zenfone2/orig-development/rom-pre-root-img-t3079590
But keep in mind, it's for advanced users. I would say, for developers.
Thanks. I asked that nice feller if he was able to do such a thing as I'm not a dev or even well-versed in Linux.
What firmware zip are you looking to flash?
flashing system.img was just temporary solution, as the only way to root or modify firmware before bootloader unlock.
With unlocked bootloader and custom recovery you can modify update.zip as much as you want and then install it.
Even if you don't want to unlock the bootloader, then you can use temporary custom recovery and install any modified zip.
So, in general you don't need to create system.img anymore. Just use zip to install whatever you want.
sorg said:
flashing system.img was just temporary solution, as the only way to root or modify firmware before bootloader unlock.
With unlocked bootloader and custom recovery you can modify update.zip as much as you want and then install it.
Even if you don't want to unlock the bootloader, then you can use temporary custom recovery and install any modified zip.
So, in general you don't need to create system.img anymore. Just use zip to install whatever you want.
Click to expand...
Click to collapse
^ That's exactly why I was asking. I can put together whatever zip if they know what they want flashed. :good:
Harfainx said:
^ That's exactly why I was asking. I can put together whatever zip if they know what they want flashed. :good:
Click to expand...
Click to collapse
Hi,
can you make system.img, pre-rooted or not, like @shakalaca?
I tried but I haven't enough knowledge to do, though I tried to install a ghitub, etc, etc.
I would like to download the system.img fro last firmware, Z00A-WW.2.19.40.22.
Thanks

Need recovery.img 2.20.40.196 for Z00A/ZE551ML

Hi guys, i need the recovery.img file as indicated on the subject. I installed twrp without backing-up first the recovery.
I do not want to install the full stock rom to get this recovery version back, so if anyone could help me out with this file, i really appreciate it.
thanks once again for the help!
Hi.
You will need to download the stock ROM zip files for your phone's model and check for droidboot.img file in it. That is the recovery file for stock ROM.
Uzi.3 said:
Hi.
You will need to download the stock ROM zip files for your phone's model and check for droidboot.img file in it. That is the recovery file for stock ROM.
Click to expand...
Click to collapse
thanks for the tip!
fbriceno97 said:
Hi guys, i need the recovery.img file as indicated on the subject. I installed twrp without backing-up first the recovery.
I do not want to install the full stock rom to get this recovery version back, so if anyone could help me out with this file, i really appreciate it.
thanks once again for the help!
Click to expand...
Click to collapse
Uzi.3 said:
Hi.
You will need to download the stock ROM zip files for your phone's model and check for droidboot.img file in it. That is the recovery file for stock ROM.
Click to expand...
Click to collapse
Hope you read this on time.
droidboot.img in not the recovery image, is the bootloader image (so don't flash as recovery.img) and even more, you won't find the .196 recovery image inside the stock Rom.
https://mega.nz/#!gcBSSapa!cIyweU7vMV6940B2MD17hvklYT4IidMaMOa7L46LcsQ
This is a zip package that you can install using TWRP to flash the .196 stock recovery, or you can unzip the file and you will have the recovery.img file inside, so you can use it as a backup, to flash in fastboot mode or using TWRP for install as image file instead of zip package.
Regards.
Give thanks to
http://4pda.ru/forum/index.php?showtopic=657946
There you have all the recovery files
https://yadi.sk/d/t-za9JiGmZPuw/Recovery Z00A
You can have the recovery files, that yes, are included in the RAW firmwares (just unzip the RAW file).
In other way and if you know how (I don't know, I tried but no succes http://23pin.logdown.com/posts/222680-build-zenfone-recovery-image-from-bootimg), is built the recovery.img using/paching the boot.img image and the files included in /recovery folder inside the stock ROM package.
elperroderoke said:
Hope you read this on time.
droidboot.img in not the recovery image, is the bootloader image (so don't flash as recovery.img) and even more, you won't find the recovery image inside the stock Rom.
https://mega.nz/#!gcBSSapa!cIyweU7vMV6940B2MD17hvklYT4IidMaMOa7L46LcsQ
This is a zip package that you can install using TWRP to flash the .196 stock recovery, or you can unzip the file and you will have the recovery.img file inside, so you can use it as a backup, to flash in fastboot mode or using TWRP for install as image file instead of zip package.
Regards.
Click to expand...
Click to collapse
Thanks man, you saved me from a bootsit..
fbriceno97 said:
Thanks man, you saved me from a bootsit..
Click to expand...
Click to collapse
Give thanks to
http://4pda.ru/forum/index.php?showtopic=657946
There you have all the recovery files
https://yadi.sk/d/t-za9JiGmZPuw/Recovery Z00A
You can have the recovery files, that yes, are included in the RAW firmwares (just unzip the RAW file).
In other way and if you know how (I don't know, I tried but no succes http://23pin.logdown.com/posts/222680-build-zenfone-recovery-image-from-bootimg), is built the recovery.img using/paching the boot.img image and the files included in /recovery folder inside the stock ROM package.
Regards.
Hello All
I'm in terrible need of Recovery.img and System.img of Z00A-WW-2.20.40.196
Please help. The above links aren't working
Cant find anywhere on the internet.
Thanks
javvadi said:
Hello All
I'm in terrible need of Recovery.img and System.img of Z00A-WW-2.20.40.196
Please help. The above links aren't working
Cant find anywhere on the internet.
Thanks
Click to expand...
Click to collapse
You can find the recovery bitstream image (named recovery_sign.bin) inside the corresponding RAW file (which basically is a ZIP file).
The .196 one is here: https://yadi.sk/d/FijRoAVJtvRiG/WW_ZE551ML_2.20.40.196_20160815.raw
I'm looking for the .198 recovery.img, but haven't any success with the raw file for that version.
Could I flash a previous version of the recovery above an existing system, without reflashing it ?
Successfully unlocked bootloader, I lost my recovery by flashing a wrong TWRP and now I haven't the recovery at all.
Could you please suggest a way to reset it to stock ?
Thanks a lot
Val3r10 said:
You can find the recovery bitstream image (named recovery_sign.bin) inside the corresponding RAW file (which basically is a ZIP file).
The .196 one is here: https://yadi.sk/d/FijRoAVJtvRiG/WW_ZE551ML_2.20.40.196_20160815.raw
I'm looking for the .198 recovery.img, but haven't any success with the raw file for that version.
Could I flash a previous version of the recovery above an existing system, without reflashing it ?
Successfully unlocked bootloader, I lost my recovery by flashing a wrong TWRP and now I haven't the recovery at all.
Could you please suggest a way to reset it to stock ?
Thanks a lot
Click to expand...
Click to collapse
Thank you for the url.
I previously flashed the lower version of recovery and was unsuccessful. I think it doesn't work that way.
It's better to reflash completely from raw brings back to stock.
Then as you know you can unlock the bootloader, flash twrp recovery, and any custom rom like Borets ROM.

Request for untouched fastboot FW (XT1676, DualSIM, NPPS25.137-93-8, reteu)

Could someone with the same phone and the firmware same as one in the title extract it and upload it somewhere? It has to be possible to flash it via fastboot. Thanks in advance.
https://firmware.center/firmware/Motorola/Moto G5/Stock/
Hope this can help you
Thanks for your reply, but unfortunately, I can flash non of these - all of those firmwares are based on older build than I am running now. If I would flash it, I would hardbrick my phone (because of locked bootloader).

How to flash custom roms from Fastboot? SEMI-BRICKED

Hi all! I recently got a XIAOMI MI A2 LITE and I messed it up. Now it goes only on fastboot and when i try to flash recovery it says PARTITION TABLE DOES NOT EXIST. I am guessing my only chance to get the phone back is by flashing the whole system through Fastboot. Can you guys help me ? I did not do any system back stupidly. can anyone send me the gpt bin file to flash the partition? Or other solutions....
Flash stock rom with XiaoMiFlash, unlock bootloader, flash TWRP and go to flash the rom
leechgid said:
Flash stock rom with XiaoMiFlash, unlock bootloader, flash TWRP and go to flash the rom
Click to expand...
Click to collapse
Thanks. I downloaded the images, however i do not have windows but only macbook and i do not know how to use the command to flash all the files at once.
https://forum.xda-developers.com/mi...oot-images-t3824871/post79316028#post79316028

Categories

Resources