Only have mbn file for flash, need xml and patch file - Google Pixel 4a Questions & Answers

Hello,
I found a mbn file for the Pixel 4a over here: https://forum.xda-developers.com/t/flashed-pixel-4a-with-pixel-5-image-by-mistake.4267097/.
My Pixel is hard bricked so I'm trying to revive it. I'm using QFIL. However, I apparently need an additional xml file and a patch file for it to work. I can't seem to find that. Can someone help?

moonlightpenguin said:
Hello,
I found a mbn file for the Pixel 4a over here: https://forum.xda-developers.com/t/flashed-pixel-4a-with-pixel-5-image-by-mistake.4267097/.
My Pixel is hard bricked so I'm trying to revive it. I'm using QFIL. However, I apparently need an additional xml file and a patch file for it to work. I can't seem to find that. Can someone help?
Click to expand...
Click to collapse
I can give you an example of what the xml file looks like, but don't have the specific one for a 4a. Additionally, you don't need a patch file, if qfil insists there has to be one, just create valid xml and put nothing else in it, and call it patch xml.
I'm curious though, when u put the device in edl mode and connect with qfil and use the mbn file to access it, can you get to partition manager and do something like 'read data' to backup a partition?
If u can't do that, then no xml can help you.
cheers

Related

Editing OEMLOGO.MBN

Hi! i want to edit the bootlogo but its in a .mbn format. can someone tell me how to convert this to an image i can simply edit like .png or if its possible, to edit the .mbn itself wthout converting. Thanks in advance
AFAIK, mbns are compressed files. You should look for a way to decompress it.
A quick search shows that you can decompress it using unyaffs (a linux utility).
i dont have linux so i found a unyaffs version for windows but everytime i open it my antivirus triggers and deletes the program. so i redownloaded it and disabled my av. then i opened it again and it froze, had to open taskmanager to shut it down. are there any other ways to use this tool on Windows?
i found another version of unyaffs for windows but now it says "broken image file" replaced the image twice, still didnt work.its not broken as its the same image that is loaded when i boot my phone up. HELP!
well, its finally extracted and edited, but how do i put it back?
MintCrystal556 said:
well, its finally extracted and edited, but how do i put it back?
Click to expand...
Click to collapse
May be compress again to mbn
shashank1320 said:
May be compress again to mbn
Click to expand...
Click to collapse
how? unyaffs and mkyaffs dont work on my laptop. i used some tool i found on a chinese website to extract the .bmp but with that tool i couldnt put the .bmp i extracted and edited back into the .mbn so i need more assistance...
nevermind, it works now! i used paint.net and the rgb565 plugin
Glad you found answers to your questions yourself, well almost for all you asked:good:

Need Help With Magisk Boot Patching

I want to be able to root after erecovery and update to latest version. I know magisk can patch boot img for reflashing via fastboot.
Question is, how to extract original boot img?
I know there are tutorials, but they reference specific block that seems to be device dependent. Or am I making it too complicated?
papashex said:
I want to be able to root after erecovery and update to latest version. I know magisk can patch boot img for reflashing via fastboot.
Question is, how to extract original boot img?
I know there are tutorials, but they reference specific block that seems to be device dependent. Or am I making it too complicated?
Click to expand...
Click to collapse
You need the UPDATE.APP for the boot img.
You can find in Huawei Firmware Finder for your Version,download the Update.zip and unzip,inside is the UPDATE.APP.
Extract UPDATE.APP with Huawei Extractor https://forum.xda-developers.com/showthread.php?t=2433454
Copy extracted Boot on your Phone and install Magisk and Patch the File
The patched File save Magisk on internal Memory,copy on your Pc and flash via Fastboot.
Your Bootloader must be unlocked!
Thanks for the run down. I'll give it a go.
Looks like I need a note 10 profile for Huawei extractor. Anyone have that available?
papashex said:
Looks like I need a note 10 profile for Huawei extractor. Anyone have that available?
Click to expand...
Click to collapse
Do you have errors while unzipping?
Use this setting!
letschky said:
Do you have errors while unzipping?
Use this setting!
Click to expand...
Click to collapse
Yes, that's what I use with the unknown profile. I receive this error.
EDIT: I downloaded another file 8.2.0.158 and get same error, just different indices. I don't know if it makes a difference but most of the files found in FF are for C00B. My system info shows only C00. Could that be relevant?
papashex said:
Yes, that's what I use with the unknown profile. I receive this error.
EDIT: I downloaded another file 8.2.0.158 and get same error, just different indices. I don't know if it makes a difference but most of the files found in FF are for C00B. My system info shows only C00. Could that be relevant?
Click to expand...
Click to collapse
this generally works with Huawei,i use it with Note 10,Note 8,Honor View 10,Mediapad M3....
is Net Framework 4.6.1 installed on your Pc?
papashex said:
Yes, that's what I use with the unknown profile. I receive this error.
EDIT: I downloaded another file 8.2.0.158 and get same error, just different indices. I don't know if it makes a difference but most of the files found in FF are for C00B. My system info shows only C00. Could that be relevant?
Click to expand...
Click to collapse
Same Problem in 181 ,but in Settings uncheck :
1:Verify header checksum
and
2:Verifiy file checksum
Unchecking the 2 checksum checks you asked me to check opens up the update.app app-ropriately.
(couldn't resist )
Thanks for the help.
Baby stepping is driving me nuts.
I'm able to extract the update.app file but there is no "boot.img" in the several archives I looked at. Does it go by a different name? list attached.
papashex said:
Baby stepping is driving me nuts.
I'm able to extract the update.app file but there is no "boot.img" in the several archives I looked at. Does it go by a different name? list attached.
Click to expand...
Click to collapse
Ramdisk.img
I've finally had a moment to sit down and put it all together. Got my latest stock oreo rom rooted. Feel confident I can do PIE if it ever shows up for me in the US. Thanks for the tutorial Letschky.
As luck would have it, PIE update arrived after tweaking up the rooted Oreo. Ready to root PIE, but there is no "ramdisk.img" in my downloaded 9.0.0.181 archive.
Has the name changed for PIE or is it a bad archive?

How to repack payload.bin

Hello all.
I haven't posted here for years. My account is still active, but I am no longer allowed to post in specific forums regarding ROMs, so I am asking here.
[moderators: sorry if this is the wrong topic. It is the closest I could find, since my question is not device specific]
I have an Android 9 box which is signed with AOSP test certificates.
I also have an update.zip file for this box.
This box has A/B OTA support, it is working and verified through fastboot.
I want to edit and repackage the update.zip
I know how to do it on old ROMs, but I could not find any tool that can repackage payload.bin
There are several tools to unpack it, and I used one to extract boot.img and system.img
But I can't find any way to package these files back in to payload.bin format.
I tried various google searches and even analyzing the open source unpacking tools, but building a packaging tool from scratch is too complex for me at this point.
Any advice?
Have you found anything for this? I am trying to repack the payload.bin as well from modified IMG files, but I cant find anything on the web.
I extracted this script from linux-86 tools, pretty sure this is the one that repacks all the images into payload.bin, but donno what's the exact code inside it that makes it possible... Understand the last 100 lines & you might succeed.
MPK99 said:
I extracted this script from linux-86 tools, pretty sure this is the one that repacks all the images into payload.bin, but donno what's the exact code inside it that makes it possible... Understand the last 100 lines & you might succeed.
Click to expand...
Click to collapse
MPK99 said:
I extracted this script from linux-86 tools, pretty sure this is the one that repacks all the images into payload.bin, but donno what's the exact code inside it that makes it possible... Understand the last 100 lines & you might succees
Click to expand...
Click to collapse
Please Teach me, how to repack .img files into payload.bin
Did u Already Know How To Repack .img Files Into Payload.bin?
MPK99 said:
I extracted this script from linux-86 tools, pretty sure this is the one that repacks all the images into payload.bin, but donno what's the exact code inside it that makes it possible... Understand the last 100 lines & you might succeed.
Click to expand...
Click to collapse
Hello do you still have this script trying to repack a QCM6125 with magisk and twrp
Edit: Its advised to use superR's kitchen
SuperR Kitchen
forum.xda-developers.com
Hey
I've also tried everything, how do you pack it back into a payload.bin, I only wanted usb rights in the Platform.xml, I didn't want that anymore, that's enough for me, but how do I pack it again, thanks
I'm asking here as I never got an answer, sorry
don't want root
Thanks

Mbn Files from Pixel 4a Request

Hello,
I need the mbn files from pixel 4a because I live in a country without Google support and I managed to activate volte through magical and a mbn file for Vodafone UK from mi9t.
Unfortunately it's not working as it's supposed to.
I would appreciate if someone can extract the mbn files.
Thank you.
I also need mbn files from pixel 4a
I seem to have lots of these files on my phone. Can you be a little more specific?
a1291762 said:
I seem to have lots of these files on my phone. Can you be a little more specific?
Click to expand...
Click to collapse
I assume @Azusasen needs files which do not appear in your list:
prog_emmc_firehose_XXXX_ddr.mbn
rawprogram_unsparse.xml
patch0.xml
Filenames come from this source.
Also on reddit a similar request remains unanswered.

How can I unpack .mbn files?

Hello all, I am trying to unpack man files to add volte support to a device that has all the hardware needed, but it is not enabled in software and I would like to try and change that. From all my research the files I need are all in the baseband and in .mbn file format, but I cannot find out how to unpack them. Any help would be appreciated!
ghidra or IDA
I'm more conversant with Qualcomm ELF files, hashing, signing and certs.
These seem to have replaced the older MBN.
MBN files are signed. If you mod you'll have to work around this somehow.
See: https://github.com/openpst/libopenpst/blob/master/include/qualcomm/mbn.h
https://github.com/jnaulet/dloadtool/blob/master/mbn.h
Renate said:
I'm more conversant with Qualcomm ELF files, hashing, signing and certs.
These seem to have replaced the older MBN.
MBN files are signed. If you mod you'll have to work around this somehow.
See: https://github.com/openpst/libopenpst/blob/master/include/qualcomm/mbn.h
https://github.com/jnaulet/dloadtool/blob/master/mbn.h
Click to expand...
Click to collapse
I see. This device is quite old and well, to say the least it isn’t an android device either. I’m assuming I would need to find a workaround for this even as it’s running an os that’s nearly a decade old now?
I know that the carrier bundles on this device are signed as well, but people were able to get around that, and this chip was supposedly made with the hexagon DSP and Qualcomm has documentation on how to program for this specific chip/version
aIecxs said:
ghidra or IDA
Click to expand...
Click to collapse
Unfortunately these don't appear to work, or im using them incorrectly
well, maybe you're not an reverse engineer
aIecxs said:
well, maybe you're not an reverse engineer
Click to expand...
Click to collapse
Maybe it’s my first time even hearing of either of those programs and can’t even get one of them to launch without insta crashing, and the other spitting out an error whenever I try to unpack the files.
no problem. just 10 year studying stuff and try again
https://github.com/lololosys/awesome-baseband-research
Hi,
I've probably managed to reverse engineer the MBN. I was able to create my own MBN and load it back.
If anyone wants to get an information, send me a message
RockL79 said:
Unfortunately these don't appear to work, or im using them incorrectly
Click to expand...
Click to collapse
rename it to *.zip
Vortuks said:
Hi,
I've probably managed to reverse engineer the MBN. I was able to create my own MBN and load it back.
If anyone wants to get an information, send me a message
Click to expand...
Click to collapse
they are only ELF files packed in an image, aren't they?
yeah ELF files, with 3 segments. I'm not sure about my knowledge about ELF vs MBN, but I've managed & have a program to extract $ repackage back. I've tested it on Pixel 2 XL and it's working (added support for my country).
WoKoschekk said:
rename it to *.zip
Click to expand...
Click to collapse
unfortunately that didnt work for me either. It could be that the device im trying to work on is quite old and maybe something else has changed since then

Categories

Resources