Question A Doubt while Flashing custom rom in Poco x4 pro (veux) - Redmi Note 11 Pro+ 5G (peux)/POCO X4 Pro 5G (veux)

can anyone tell why some youtuber using "boot" and "vendor boot" to flash recovery and then sideload the custom rom?
the official site of pixel experience has recovery.img and rom.zip file, so cant i just flash the recovery image? (why i need to flash boot and vendor boot?)
and i don't know about other custom roms. do each rom have different boot and vendor boot for this device?

Because on some new devices the recovery is stored in boot.img so u need first to flash boot.img then voala u have recovery then through pc sideload the rom, i sont know if i explain correctly but do what they say or use these steps
Step 1 :---​Download two files :--
1). boot.img
Click to expand...
Click to collapse
2). vendor_boot.img
Click to expand...
Click to collapse
After Downloading :--
Step 2 :---​Flash following commands in that terminal.
1). fastboot flash boot (drag and drop boot.img file )
Click to expand...
Click to collapse
2). flastboot flash vendor_boot (drag and drop vendor_boot.img file )
Click to expand...
Click to collapse

Related

OPO : flash ROM with empty partition

Hi, I need your help....
Where can I find ROM with system.img, boot.img, userdata.img etc ?
for some reasons, mainly because i'm a dumb, i erased the entire partition of the OPO64.
Now, the only things I can do is to boot into :
- Fastboot Mode
- TWRP (that I installed just before doing silly things, like wiping everything out...)
I am wondering how to reinstall any OS on my phone, LineageOS or RR or anything else to get this phone working again. As there is no physical SDcard slot, I can't put a ROM on it to flash it from TWRP.
the only ROM I've found is CM13.x found here : https://www.androidsage.com/2016/08...anogen-os-13-1-2-znh2kas3p0-update-cm-13-1-2/
is it possible to get some other ROM with all the .img files ?
adb commands do not work.
The only thing I ca do is using fasboot commands.
As far as I understood, I could use there commands :
fastboot flash system system.img
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash cache cache.img
fastboot flash userdata userdata.img
BUT : when I unzip all the ROMs I've found so far, there is always a boot.img file (and the fastboot flash boot boot.img works), but there is no other IMG file in the ZIP. No system.img, no userdata.img etc
Where can I download a ROM providing these files ?
is it mandatory to flask recovery.img ? I still want to use TWRP
Many many thanks
cm-13.1.2-ZNH2KAS3P0-bacon-signed-fastboot-76d803f730
cm-13.1.2-ZNH2KAS3P0-bacon-signed-fastboot-76d803f730 - FLASH it through BRT - Bacon Root Toolkit
flyjodel said:
Hi, I need your help....
Where can I find ROM with system.img, boot.img, userdata.img etc ?
for some reasons, mainly because i'm a dumb, i erased the entire partition of the OPO64.
Now, the only things I can do is to boot into :
- Fastboot Mode
- TWRP (that I installed just before doing silly things, like wiping everything out...)
I am wondering how to reinstall any OS on my phone, LineageOS or RR or anything else to get this phone working again. As there is no physical SDcard slot, I can't put a ROM on it to flash it from TWRP.
the only ROM I've found is CM13.x found here : https://www.androidsage.com/2016/08...anogen-os-13-1-2-znh2kas3p0-update-cm-13-1-2/
is it possible to get some other ROM with all the .img files ?
adb commands do not work.
The only thing I ca do is using fasboot commands.
As far as I understood, I could use there commands :
fastboot flash system system.img
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash cache cache.img
fastboot flash userdata userdata.img
BUT : when I unzip all the ROMs I've found so far, there is always a boot.img file (and the fastboot flash boot boot.img works), but there is no other IMG file in the ZIP. No system.img, no userdata.img etc
Where can I download a ROM providing these files ?
is it mandatory to flask recovery.img ? I still want to use TWRP
Many many thanks
Click to expand...
Click to collapse
https://forum.xda-developers.com/oneplus-one/general/guide-return-opo-to-100-stock-t2826541
It's not mandatory to flash recovery.img.
Mr.Ak said:
https://forum.xda-developers.com/oneplus-one/general/guide-return-opo-to-100-stock-t2826541
It's not mandatory to flash recovery.img.
Click to expand...
Click to collapse
thank you !
flyjodel said:
thank you !
Click to expand...
Click to collapse
Instead hit the "thanks button "... Just sayin'

stock Fastboot img

where stock fastboot img file?
@engloa
mathan7 said:
where stock fastboot img file?
Click to expand...
Click to collapse
This isn't the place for you to ask questions
Anyways here's the link to all the ROMS:
https://forum.xda-developers.com/re...i-10-official-stable-updates-v10-2-7-t3913181
i ask fastboot img file not fastboot ROM
mathan7 said:
i ask fastboot img file not fastboot ROM
Click to expand...
Click to collapse
There's no fastboot img. Mention the proper file name you want.

I want to flash stock rom in fastboot for my Oneplus 7 pro but I don't want to erase

so as the title suggests, my oneplus 7 pro is now stuck at fastboot and my only hope is on the img files from the unpacked payload.bin. but now after I extract it, i heard some of the img files are used to clear the user, data etc, can someone tell me which one is which?
The guide I followed:
https://android.gadgethacks.com/how...actory-images-android-using-fastboot-0175277/
https://forum.xda-developers.com/nokia-7-plus/how-to/guide-how-to-extract-payload-bin-ota-t3830962
https://forum.xda-developers.com/oneplus-7-pro/how-to/rom-stock-fastboot-roms-oneplus-7-pro-t3931424
the first link seem to be outdated since most of the img files it talked about don't exist but although the third link isn't, it told me how to flash each file, but my problem is that I don't want to lose my data, can someone tell me which img file is used to erase data? thanks a lot
shuaiouke said:
so as the title suggests, my oneplus 7 pro is now stuck at fastboot and my only hope is on the img files from the unpacked payload.bin. but now after I extract it, i heard some of the img files are used to clear the user, data etc, can someone tell me which one is which?
The guide I followed:
https://android.gadgethacks.com/how...actory-images-android-using-fastboot-0175277/
https://forum.xda-developers.com/nokia-7-plus/how-to/guide-how-to-extract-payload-bin-ota-t3830962
https://forum.xda-developers.com/oneplus-7-pro/how-to/rom-stock-fastboot-roms-oneplus-7-pro-t3931424
the first link seem to be outdated since most of the img files it talked about don't exist but although the third link isn't, it told me how to flash each file, but my problem is that I don't want to lose my data, can someone tell me which img file is used to erase data? thanks a lot
Click to expand...
Click to collapse
userdata.img will override your internal storage with zero bytes.
matze19999 said:
userdata.img will override your internal storage with zero bytes.
Click to expand...
Click to collapse
is that the only file? thanks
Edit:There don't seem to be a file called userdata.img it's a ONEPLUS 7 PRO rom
Right click and edit flash all.bat and remove the -w and save then u can run flash all.bat using the fastboot Rom, ur 3rd link
thank you and it lets me get into recovery in a boot loop but recovery only, I can't flash TWRP, what should I do next?
Bradl79 said:
Right click and edit flash all.bat and remove the -w and save then u can run flash all.bat using the fastboot Rom, ur 3rd link
Click to expand...
Click to collapse
thank you and it lets me get into recovery in a boot loop but recovery only, I can't flash TWRP, what should I do next?
shuaiouke said:
thank you and it lets me get into recovery in a boot loop but recovery only, I can't flash TWRP, what should I do next?
Click to expand...
Click to collapse
is your bootloader locked?
shuaiouke said:
thank you and it lets me get into recovery in a boot loop but recovery only, I can't flash TWRP, what should I do next?
Click to expand...
Click to collapse
We're you coming from a custom Rom, or stock. You might have to format data.
Bradl79 said:
is your bootloader locked?
Click to expand...
Click to collapse
it's kinda obvious, flash-all is flashing after all if ur bootloader is locked, how do u flash?
Note: This is for soft bricks only.
soft brick = can access fastboot or recovery
hard brick = no boot, black screen boot. etc.............
I found myself on OB4, tried to sideload another build and got stuck. Tried to boot into TWRP, no bueno, now what? I didn't want to use MSM tools and go though that whole process again. I've saved many of my devices with Linux, by just flashing the img files through fastboot commands. So if your comfortable with the command line this is easier then using the flash tools that relock your bootloader. This also works with Widows, so I remembered the files the fastboot flasher flashed, and just flashed them manually, you just need flash to the correct partition. So, if it's a boot img, then flash boot, and system flash system, and so on. List of files that I flashed.
First you'll need payload dumper, to extract files from payload.bin file inside whatever OTA, you want to flash. It will extract to a folder called payload_output, from there you can click and drag to command line.
https://androidfilehost.com/?fid=818070582850510260
I also provided a copy of my script, you'll need to edit to your files path. And save as .bat, .cab, or .exe...........
Commands I run before flash
fastboot format system
fastboot format userdata
1. boot.img
2. dtbo
3. modem
4. odm
5. qupfw
6. storsec
7. system
8. vbmeta
9. vendor
10. fastboot reboot
If device boots to recovery which should be stock, just wipe everything and you should boot into system without a problem.

how to flash stock rom using twrp

yeah I need to flash stock rom because because my current rom is kinda buggy I downloaded the stock rom from a site and it contains these: boot.img, dtbo.img, metadata.img, recovery.img, super.img, userdata.img, vbmeta.img, vbmeta_samsung.img and fota.zip
I'm guessing it's either super.img or userdata.img because they are the biggest files please let me know
A Stock ROM typically comes as ZIP-file and gets flashed by ADB Sideload method: TWRP isn't needed for this.
jwoegerbauer said:
A Stock ROM typically comes as ZIP-file and gets flashed by ADB Sideload method: TWRP isn't needed for this.
Click to expand...
Click to collapse
don't have a pc with me rn that's why I gotta do it with twrp lolq
itsukii said:
don't have a pc with me rn that's why I gotta do it with twrp lolq
Click to expand...
Click to collapse
Flash each individual IMG file by selecting it and selected which partition is for the IMG file eg: vbmeta goes to vbmeta_a if ur on a/b and youre on slot a
areallydumbperson said:
Flash each individual IMG file by selecting it and selected which partition is for the IMG file eg: vbmeta goes to vbmeta_a if ur on a/b and youre on slot a
Click to expand...
Click to collapse
so I gotta flash everything before the os would work at all?
I suggest you to flash using fastboot.
Safe and secure.

How To Guide Xiaomi 12S Ultra TWRP(unofficial)

12S Ultra unofficial TWRP - link MEGA
Credit - UnofficialTWRP
They released TWRP under 12S Pro, but the code name is Thor which stands for 12S Ultra, and after flashing, I do confirm this is for 12S Ultra.
now they have a proper 12S Ultra section!
Download the image and rename as recovery.img for simplicity.
fastboot boot recovery.img (or full file name)
in TWRP, go to "Advanced" and "flash this twrp."
edit: the recovery image file is too large to be flashed directly via fastboot, so you need to boot first then flash using twrp!
edit2: backup and restore function may not be working properly on this version of twrp! I get boot loops everytime I do a full system backup and full restore after bricking the device, especially on the data partition. Clean installing rom then restoring data only still get boot loops. so use it with caution.
I suggest you to use 3rd party backup apps to do backups on apps and data, and stick to the flashing and other functions only for twrp.
original source unofficialtwrp.com
Nabicook said:
12S Ultra unofficial TWRP - link MEGA
Credit - UnofficialTWRP
They released TWRP under 12S Pro, but the code name is Thor which stands for 12S Ultra, and after flashing, I do confirm this is for 12S Ultra.
Download the image and rename as recovery.img for simplicity.
fastboot boot recovery.img (or full file name)
in TWRP, go to Advanced and flash this twrp.
original source unofficialtwrp.com
Click to expand...
Click to collapse
Awesome thanks. But why not Fastboot flash recovery recovery.img?
No. You must type fastboot flash boot recovey. img
dungnghien said:
No. You must type fastboot flash boot recovey. img
Click to expand...
Click to collapse
No I'm pretty sure it's:
fastboot flash recovery twrp.img
However my question was why the method outlined by @Nabicook vs this method. Is it because of the dual partition?
GodKingKnight said:
Awesome thanks. But why not Fastboot flash recovery recovery.img?
Click to expand...
Click to collapse
Because not only it is the method unofficialtwrp suggested, but also the size of the recovery img file is too large to be flashed via fastboot.
I already tried
fastboot flash recovery recovery.img
fastboot flash recovery_a recovery.img
and so on, but all failed.
only way to properly install this version of twrp is to boot first then let twrp to install itself to both a/b partitions.
Hi!
I'm following your guide...and after uploading recovery nothing happens
rebooting into recovery through ADB or just using buttons...still sends me into fastboot mode
What can I do?
joiliko said:
Hi!
I'm following your guide...and after uploading recovery nothing happens
rebooting into recovery through ADB or just using buttons...still sends me into fastboot mode
What can I do?
Click to expand...
Click to collapse
are you sure you did
fastboot boot (your recovery file name).img
it should automatically boot into twrp without touching anything from fastboot mode.
then install twrp through the advanced option in twrp
Nabicook said:
are you sure you did
fastboot boot (your recovery file name).img
Click to expand...
Click to collapse
Great many thanks! I was actually doing flash boot
Nabicook said:
then install twrp through the advanced option in twrp
Click to expand...
Click to collapse
Still having issues:
After flashing twrp + magisk, reboot sends me into fastboot mode ..
As I get it, previously I've messed up with boot image, flashing recovery into that partition
So question is:
Do I need to reflash stock boot.img (need help with getting it, stock recovery rom is packed into .bin and I'm unable to extract boot image
Or can I simply reflash stock ROM (in recovery or fastboot mode?)
*my phone is unlocked already
joiliko said:
Still having issues:
After flashing twrp + magisk, reboot sends me into fastboot mode ..
As I get it, previously I've messed up with boot image, flashing recovery into that partition
So question is:
Do I need to reflash stock boot.img (need help with getting it, stock recovery rom is packed into .bin and I'm unable to extract boot image
Or can I simply reflash stock ROM (in recovery or fastboot mode?)
*my phone is unlocked already
Click to expand...
Click to collapse
yeah you can try flashing stock boot img, and if that doesnt work, you can download fastboot rom and flash stock rom using flash all without wiping data(there is .bat file that says something like install without formatting).
That will fix any kind of brick issues of xiaomi device, and you just redo the twrp part.
joiliko said:
Still having issues:
After flashing twrp + magisk, reboot sends me into fastboot mode ..
As I get it, previously I've messed up with boot image, flashing recovery into that partition
So question is:
Do I need to reflash stock boot.img (need help with getting it, stock recovery rom is packed into .bin and I'm unable to extract boot image
Or can I simply reflash stock ROM (in recovery or fastboot mode?)
*my phone is unlocked already
Click to expand...
Click to collapse
How to Extract payload.bin and get stock boot image file
To extract the payload.bin file from Android stock firmware and get stock boot image file, you should refer to the instructions given in here.
www.droidwin.com
My idea worked!
I used the method above to extract boot.img & flashed it successfully
Can someone tell me why wipe data and settings dosent work on my 12s ultra every time reboots the twrp after i press the icon... Im try at 7.5 version the same and on 7.2

Categories

Resources