[HOW TO] Extract Rom.zip From RUU - Desire General

Extracting ROM files from HTC RUU
Official HTC ROM updates are released as RUU (ROM Update Utility), which you run on your (Windows) PC to get the target device updated automatically.
Some of the big brains in the Android community release RUUs re-packaged into signed update files,
which in turn allow for whatever ROM customization you can imagine.
In this how to I will explain how to extract ROM files from a RUU image,
which you can then customize and use to flash your device without the fear of a new bootloader possibly making your device unrootable.
Requirements :
Windows PC,
Microsoft Process Monitor,
File Archiver capable of extracting ZIP files(eg, 7ZIP),
Official HTC RUU for your Android device.
The process of extracting ROM files from a RUU is really straightforward.
The idea behind it is that the self-contained update utility first needs to unpack the update payload into a temporary folder before pushing it onto the device.
This is when we grab the ROM file...
1. download the official RUU
2. start Process Monitor.
3. press CTRL+L
4. change "Architecture" to "Process Name"
5. leave the "is" field as it is
6. in the empty field copy and paste the name of your
RUU file (eg, RUU_Ace_Sense30_S_HTC_WWE_3.12.405.1_Radio_12.65.60.29_26.14.04.28_M_release_225512_signed.exe)
7. click "Add"
8. change "Process Name" to "Path"
9. change "is" to "Contains"
10. in the blank field type "rom.zip" (without quotes)
11. click add
Click "OK" to set the filter and then run the RUU file.
Once the utility starts switch back to Process Monitor and look for an entry in the "Path" column that ends with "\rom.zip".
Right click on that line and select "Jump to..."
this will open a Windows Explorer window in the folder which contains the zipped ROM files
Copy the "rom.zip" file to some other folder, outside of the temp RUU folder tree (eg, desktop)
Once copied, close Process Monitor and the RUU utility.
The copied "rom.zip" file contains the following files:
android-info.txt - list of CIDs this RUU will flash to,
boot.img - root file system image,
hboot (followed by a version string) - boot-loader update,
radio.img - radio driver update,
recovery.img - recovery partition image,
splash1_Hero_320x480.nb0 - boot loader splash image,
system_rel.img - system partition image,
userdata.img - data partition image.
You can now, among many other things, root the ROM
and then flash the updated boot.img and all the other image files on to your device using Recovery​

it doesnt work... the process monitor colum is all blank after running RUU... there are no processes listed

munnibhai said:
it doesnt work... the process monitor colum is all blank after running RUU... there are no processes listed
Click to expand...
Click to collapse
you mst be doing something wrong i double checked the method and it still works fine for me..
make sure your environment is set up correctly and run everything as administrator or disadle uac in windows..

thanks for the reply, let me check it again...
i will post back to u

rom.zip corrupted
I followed the directions and like another post in here procmon shows a blank screen. I went to task manager and opened processes and saw when it ran then clicked open file location and found it. I did this twice and both zips are corrupt. (used winzip)
error [D:\android apps\EVO root\EVO\rom.zip]: start of central directory not found; Zip file corrupt.
Possible cause: file transfer error
when I close the RUU all the files in that folder disappear so you have to leave the RUU running while you copy the zip file or it's gone.
At least that's what I saw.

update to last post
I found a zip repair tool and was able to repair and extract the 1.10.653.2 RUU rom capture. I will have to try to run it later. If anyone gets corrupted zip error, Zip Repair pro will repair it.

To get the rom zip without any errors just run the ruu.exe file, when the box with a picture of a phone pops up, click start on pc, type in "run" and click on run then in that box that pops up, type in %temp% and click ok. Another window pops up then just scroll down to the most recent folder and rom.zip will be in there, if not it will be in the next folder.

Hi,
when I try to open the rom.zip I get an error message, it just said it cannot open with 7zip and with windows it says its invalid.
I tried downloading the RUU multiple times but still the same error. I rune the RUU as administrator.
Tried copying it over to different locations and then open it.
RUU_ENRC2B_U_JB_45_O2_UK_1.14.206.13_Radio_3.1204.167.31_release_289474_signed
HTC ONE X+
Thank you
Update:
I used Zip Repair Pro.. however there is no boot.img inside the repaired zip -_-

For those which have problem with making Process Monitor detect RUU temp folder, make sure You add whole file name of RUU including .exe at the end.

Jmcclue's steps, work perfectly, Thank you post #7

htc RUU Rom
Inside 4ndroid said:
Extracting ROM files from HTC RUU
Official HTC ROM updates are released as RUU (ROM Update Utility), which you run on your (Windows) PC to get the target device updated automatically.
Some of the big brains in the Android community release RUUs re-packaged into signed update files,
which in turn allow for whatever ROM customization you can imagine.
In this how to I will explain how to extract ROM files from a RUU image,
which you can then customize and use to flash your device without the fear of a new bootloader possibly making your device unrootable.
Requirements :
Windows PC,
Microsoft Process Monitor,
File Archiver capable of extracting ZIP files(eg, 7ZIP),
Official HTC RUU for your Android device.
The process of extracting ROM files from a RUU is really straightforward.
The idea behind it is that the self-contained update utility first needs to unpack the update payload into a temporary folder before pushing it onto the device.
This is when we grab the ROM file...
1. download the official RUU
2. start Process Monitor.
3. press CTRL+L
4. change "Architecture" to "Process Name"
5. leave the "is" field as it is
6. in the empty field copy and paste the name of your
RUU file (eg, RUU_Ace_Sense30_S_HTC_WWE_3.12.405.1_Radio_12.65.60.29_26.14.04.28_M_release_225512_signed.exe)
7. click "Add"
8. change "Process Name" to "Path"
9. change "is" to "Contains"
10. in the blank field type "rom.zip" (without quotes)
11. click add
Click "OK" to set the filter and then run the RUU file.
Once the utility starts switch back to Process Monitor and look for an entry in the "Path" column that ends with "\rom.zip".
Right click on that line and select "Jump to..."
this will open a Windows Explorer window in the folder which contains the zipped ROM files
Copy the "rom.zip" file to some other folder, outside of the temp RUU folder tree (eg, desktop)
Once copied, close Process Monitor and the RUU utility.
The copied "rom.zip" file contains the following files:
android-info.txt - list of CIDs this RUU will flash to,
boot.img - root file system image,
hboot (followed by a version string) - boot-loader update,
radio.img - radio driver update,
recovery.img - recovery partition image,
splash1_Hero_320x480.nb0 - boot loader splash image,
system_rel.img - system partition image,
userdata.img - data partition image.
You can now, among many other things, root the ROM
and then flash the updated boot.img and all the other image files on to your device using Recovery​
Click to expand...
Click to collapse
this is good working 100% thank you :good:

i_4_u89 said:
this is good working 100% thank you :good:
Click to expand...
Click to collapse
no problem and please instead of saying thanks please remember to hit the thanks button on threads first post..

works great, to bad you cant open the zip file

jpwhre said:
works great, to bad you cant open the zip file
Click to expand...
Click to collapse
You can open the zip. Go back a page n try the way i said.

jmcclue said:
You can open the zip. Go back a page n try the way i said.
Click to expand...
Click to collapse
note path is desktop (last post showed from temp folder) and i still get same results. did some searching and aperantly htc now signs their zip files and they can't be opened anymore. having usb issues that causes fastboot force close errors and need to be able to flash boot.img thru flashify app to return it to stock. ran the htcguru reset rom that uses aroma installer to return to stock that lets me take ota's but i get qualcom location force close and other custom roms give me issues forcing me to reset phone to stock every few days with guru installer. flashing recovery in fastboot is a chore as well. I have s-off and can keep it, but doing fastboot oem lock wont relock the bootloader, even though it shows success in cmd line. i can cid and super cid with fastboot.
it leaves me at a point where i really need to pull everything out of the rom.zip file and it wont open.
pic 1, 7zip wont open archive on desktop
pic 2, how i get recovery to flash
pic 3, results from running RUU
i have to reboot device, set comand to reboot bootloader, set command to flash recovery all faster than phone will do all commands to get it to flash, and RUU doesnt work that fast. i know im on sprint with htc one m7, but google search "extract htc zip" "extract rom.zip" both lead to this thread as top result. no other searches will tell me how to open the archive, except one that resulted in "htc signed zips can no longer be opened"

you're more than welcome to give it a go
http://forum.xda-developers.com/showthread.php?t=2795856 Sprint_HTC_One_m7wls_5.05.651.2_RUU.exe

Did HTC change the way they create the exe? I don't find it, the biggest file is data1.cab file that I can't extract.
I'm trying to extract the stock rom for an ATT HTC One Mini (m4) because RUU keeps crashing on me and won't install. I am also rooted with S-off.
If anybody can help me get the stock m4 rom so I can go back to stock, I would really appreciate it.

SyPete said:
Did HTC change the way they create the exe? I don't find it, the biggest file is data1.cab file that I can't extract.
I'm trying to extract the stock rom for an ATT HTC One Mini (m4) because RUU keeps crashing on me and won't install. I am also rooted with S-off.
If anybody can help me get the stock m4 rom so I can go back to stock, I would really appreciate it.
Click to expand...
Click to collapse
No they didn't change it. Some ruu's use a different format requiring the use of a tool called unruu instead of trying to capture the zip file when using the exe (I just learned this today). I've gone ahead and used unruu and the resulting zips have been put in a single tar file. you can download it from here for about 30 days after which ill have to delete the file. also i dont know which zip has what in it.

hi
master how to open Zip firmware !!?
i want to open zip firmware (PM60IMG.zip Desire 400)with 7zip ! but shows below error :
"can not open file PM60IMG.zip az archive "
how to pass this encryption ?

gandolf007 said:
hi
master how to open Zip firmware !!?
i want to open zip firmware (PM60IMG.zip Desire 400)with 7zip ! but shows below error :
"can not open file PM60IMG.zip az archive "
how to pass this encryption ?
Click to expand...
Click to collapse
https://github.com/kmdm/ruuveal/tree/f4936338f19841c75edafbe7e622242105cb39aa

Related

extract rom.zip from Sprint ruu

I am having a helluva time getting the .exe to extract. Keeps saying damaged or unknown file format.
RUU_Supersonic_1.32.651.1_Radio_1.39.00.04.26_release_171253
Need it because the regular way to update and unroot is not working for me, and need to just flash from the recovery menu. Any help would be appreciated.
Tried 7zip and winrar
linflas said:
I am having a helluva time getting the .exe to extract. Keeps saying damaged or unknown file format.
RUU_Supersonic_1.32.651.1_Radio_1.39.00.04.26_release_171253
Need it because the regular way to update and unroot is not working for me, and need to just flash from the recovery menu. Any help would be appreciated.
Tried 7zip and winrar
Click to expand...
Click to collapse
try this.
goto your temp folder.
ex. win 7: C:\Users\CYBERxNUKE\AppData\Local\Temp
and make sure all your programs are closed and delete all your temp files.
Run the RUU program, and once its up and running on your screen, go back to your temp folder....
C:\Users\CYBERxNUKE\AppData\Local\Temp
look for a new folder created there.
without closing the RUU, copy the entire folder over to a safe place and exit the RUU.
you should have what you need.
Stock RUU Roms http://bit.ly/c1jNWR

Need help creating custom splash screen on EVO

I'm new to this and just need a tutorial on how to create custom splash screens on a Evo. If any one can show me or post a link that be great.
Download this and unzip it. (On your computer)
http://db.tt/YLmI87K
There's a how-to included in there that tells you how to use it.
Sent from my HTC EVO 4G with Tapatalk
there's also a program called nbIMG, along with the one mentioned above.
Thanx working great!!
These instructions work for anyone who rooted using the "UnrEVOked" method such as that given at HTCEvoHacks.com. I have not tested these instructions with any other root method out there.
For the sake of these instructions, all references and instructions dealing with PhotoShop are assuming you are using PhotoShop CS5. Cammands may be slightly different on older versions of PhotoShop, so it may take a few extra clicks to find what you're looking for.
1. You can download custom boot images from the web, or create your own in PhotoShop using ANY sort of photo, graphics, text, or combination. You MUST make sure that the image size is set as the same for the EVO's screen resolution (480x800). For this reason, I would double check any image file you try to use prior to converting it for use with your phone.
2. Open your image file in Photoshop and make whatever tweaks or enhancments you like. Remember to "flatten" the image prior to saving it out if you have multiple layers in your file. You can use the next step to resize the image first if you like, but depending on your current settings in PS it should not matter.
3. Right click the file window (the one that contains your image) and set the "Image Size" settings to a width of 480, and the height to 800. These measurements MUST be in pixels as well. If you have the "Constrain Proportions" box checked, you may not be able to tweak these individually without affecting the other. So uncheck that box and change the size settings. Click ok to close the box and the image will resize within Photoshop.
4. After you have finished creating your custom image, flattening the image, and resizing it to fit on your phone's screen, it is time to save the file. Navigate to the "file" menu and click "save as". Here, you can choose where to save it, name it, and choose the file format. It's probably easier to go ahead and save it as "splash" now, so that you wont have to rename it later. Either way, this file MUST be named "splash" when we are in the final stages. Save it as the "BMP" format, and you will get a pop-up window for the BMP options. "File Format" should be set to Windows... and choose the depth option of 24 Bit. The "compress" and "Flip row order" boxes should be unchecked, and you do not need to go into any advanced settings. Once you have saved the file, You can close PhotoShop.
Now the File needs to be converted from the BMP format into an IMG file. This is so that the bootloader in your phone will see it when you flash it to your phone.
There are a few conversion tools out there, but I have found Splash Screen Creator to be the EASIEST way to convert the file with a few clicks.
The link to download this small program is here... http://www.addictivetips.com/?attachment_id=43073 ... and it is FREE!!! (I did not create this program)
1. Download the .zip package from the link above.
2. Extract the files. I found that creating a folder on my desktop to secure these files (and these files only) to be less of a headache.
3. After you have extracted the files, you are ready to convert your "splash.bmp" file. You MUST move this file into the same directory that you unzipped the Splash Screen Creator to. It will only find the bmp file in the same directory, which is why having its own folder is easier. Move your "splash.bmp" file to the same folder and open "RUN THIS ONE". This will open the program in a command prompt.
4. Choose option 1 to convert your existing .bmp file into the required .img file. The next option will ask if you would like to flash the file to your phone. This option is not necessary for these instructions, but I have read of others being successful. You can try this option, but if it fails, go on to the remaining steps.
5. Go ahead and close the program by pressing another key to exit. You should see your new "Splash.img" file in this same directory. Rename this as "splash1.img"
Now that I think of it, naming the BMP file to "splash1" prior to converting to the .img format may solve the error when trying to flash the file to the phone
within Splash Screen Creator. The img file MUST be name "splash1" prior to updating it in the bootloader in the next steps so it makes sense that the program would come up with an error at this point. I have not tested this theory at this time, but you are welcome to. If someone does test this, please update these instructions
to save from many unnecessary steps below!
Your next steps require access to your original "PC36IMG.zip" file that you used during your root process. If you do not have your original "PC36IMG.zip" file, you
can try to download one here... http://forum.xda-developers.com/showpost.php?p=8913849&postcount=156 ... I have not tested this file yet, but worth a shot if you dont have it.
1. Make a COPY of your "PC36IMG.zip" file and move it to your directory where you have worked with the custom splash files. This saves from getting confused between files and flashing the wrong one to your phone. You're also making a copy so that your original "PC36IMG.zip" file is NOT altered.
2. DO NOT unzip the file! Simply drag your "splash1.img" file over to your zipped "PC36IMG.zip" folder and copy it in there. If you get a prompt to overwrite an existing "splash" file, go ahead. Afterall, you are working with a copy of the PC36IMG.zip.
3. After you have added the "splash1.img" file into the "PC36IMG.zip" folder, you can now move the zipped folder over to your sd card. Make sure that it is the ONLY copy on your sd card, and that you have not placed it in any other directories. BOOTLOADER WILL NOT FIND IT IF IT IS IN ANOTHER FOLDER!!!
4. AT THIS POINT YOU WANT TO BE SURE YOU HAVE BACKED UP YOUR ROM!!!! YOU WILL LOSE YOUR CURRENT ROM AND DATA AFTER THE NEXT STEP!!!!
5. Reboot the phone into Bootloader by holding the volume down button and pressing power. The bootloader will find your "PC36IMG.zip" and ask you if you want to update. Press the volume up button to say YES! Grab a coffee, chug a beer, or take a piss, cause this step takes a few minutes.
6. Once the bootloader has finished it's update, reboot your phone. it will now display your new custom splash screen!!! (but you're not done yet)
Because you updated your "PC36IMG.zip" files in the bootloader, you have in effect reflashed the stock rom (rooted of course) back to your phone.
Allow a few mintues for your phone to boot up, log into your g-mail account (so that you have access to the market), and download Rom Manager (or your favorite backup
manager), and restore back to your rom!
Like I said before, I have only done this on the HTC EVO that has been rooted using UnrEVOked through the process explained on HTCEVOHacks.com. I have no idea if
this process will work with other configurations, and I accept no responsibility for the outcome of your actions!!!!
Can't u flash these also ??
neno2323 said:
Can't u flash these also ??
Click to expand...
Click to collapse
They're "flashed" in the bootloader, as a PC36IMG with the file being respective to how you rooted. You can also "flash" them using fastboot, but that can only be done if you're on the .76 bootloader.

Can OTA be changed to RUU

Can an OTA be changed to RUU?
This "OTA_Ace_Gingerbread_S_HTC_WWE_2_36_405_8_R-1_32_405_6_release_187434em4h8vxqx0xssxyf.zip"
have a higher build no then existing RUU.
It was build after some had trouble with WiFi and SMS and so on with first Gingerbread release.
Any way to convert this OTA to RUU?
steinom
No.
OTA updates are .zip files (installed fro your phone) and the RUU is an .exe (you run from your computer)
That's sure but what I meant is if I unzip file and compile exe file of it, will that work? (or is it any wat to get it work)
Or will it then miss other file as RUU.exe have?
audiavant said:
That's sure but what I meant is if I unzip file and compile exe file of it, will that work? (or is it any wat to get it work)
Or will it then miss other file as RUU.exe have?
Click to expand...
Click to collapse
no it wont work. just download the RUU from the development section.
Change the p98img.zip to rom.zip
start the ruu, get to the check version screen then alt tab to the desktop, open my computer or windows explorer, navigate to your temp folder (should be in users/(your user name)/appdata/roaming (*NOTE*) and you'll find two folders with long hex numbers in { } in one of them you'll find a few more folders and one will contain rom.zip
overwrite the one in the temp folder with the newer one that you renamed.
then go back to the installer, click "check version" and continue with the install.
NOTE: The temp folder location might be a little different depending on which version of windows you're running, you can also find its exact location in my computer proprerties under "environment variables" in the advanced tab. I personally have changed the TEMP and TMP values to C:\Windows\Temp\ on my machine to have things centralized as Im the only user of my machine.

[Q] Error [240] file open This is STUPID

I Read and Read and Read. The surprising part is that, what I need the most there is no video nor any instruction to fix the problem.
I'm trying to flash a ROM on my tilt 2 GSM phone.
I have already HSPL it,
I did task 29 using RhodiumWAdvancedRUU.zip because I couldn't get regular task 29 to work.
Now I get a white screen with HTC on it and it doesnt pass it. So I enter bootloader and make sure that at the bottom it shows USB. (yes I do see SPL-0.85. OliNex)
Now I try to install the ROM and here is where the problem starts.
My ROM:
I dled NRG MAXSENSE ROM which is Energy.RHODIUM.29022.Sense2.5.MaxSense.Jul.08.7z
My Rhodium Update Utility (RUU) is
Rhodium_CustomRUU_v1.1.zip
I Open it and I see
CustomRUU.exe
Here is where I don't know what to do. Some instructions say that I need a .NBH file. Where do I get this file. They say it should be with my ROM.
All I get when I dl the ROM is
Energy.RHODIUM.29022.Sense2.5.MaxSense.Jul.08.7z
Format 7z not .nbh
I get the Error [240] File Open when I run CustomRUU.exe. To fix it they say
"When this error message appears, check whether the downloaded image is placed in the DIRECTORY of RUU. If, for some unknown reason, you find that the ROM image is not located in the RUU folder, you have to download the RUU and retry again."
What is the "DIRECTORY" of RUU"? Whats a directory? I never heard that term before.
Of which RUU? CustomRUU.exe?
Do I make a folder and put CustomRUU.exe in it with the Energy.RHODIUM.29022.Sense2.5.MaxSense.Jul.08.7z ?
Where is the .nbh file? Do I rename the ROM IMAGE to .nbh?
Please give me step by step. Ive read so much already and I dont know what to do anymore. Thank you for your help.
-___- I cannot believe I spent all this time for something so dumb. We should put this on the Help for NOOBS thread. The file " .7z " cannot be opened with Winzip. To open the file you have to use WINRAR. And from there we can see the Rhodium_SoftwareUpgrade.exe (RUU) and the RHODIMG.nbh files. And double clicking the Rhodium_SoftwareUpgrade.exe the software will start walking you through the process for flashing. I think it would be a good idea to add on the HOW TO FLASH A ROM that the 7z file requires WINRAR to be opened.
But thanks to the Lord I learned how to flash the Rom successfully.
--------------------
He who provides for this life but takes no care for eternity is wise for a moment but a fool forever.
-John Tillotson
Or use 7-zip!
-Jonny- said:
Or use 7-zip!
Click to expand...
Click to collapse
Too easy lol

LG G7 G710EM sof. ver V30f-EUR-XX root

This morning I deleted my system camera app and that made my phone bootloop. After some trickery I managed to install a new version but lost all my photos and files along with root. Can I get a tutorial how to create my own boot image with magisk so I can hopefully recover some of the photos. Thank you
Hey, there might be more ways, but this is the one I follow everytime I root my g7.
Download the firmware (.kdz file). You can get that here.
In the meantime (the download will take some time) you can search and download a tool called "LG Firmware Extract", mine is v1.2.6.1. If you struggle finding it, you can download the one I attached (for Windows).
Once both are downloaded, open the firmware extractor and there click "Open" next to "KDZ File" label and locate the .kdz file you just downloaded. You can also type in the file path instead of locating.
In the table of files below, check the largest file starting with G71030f and click "Extract KDZ"
In the working directory (marked as "Working folder ..." above the table) you should now find a file named after the file you checked. Locate that one on "DZ File" row by clicking "Open" next to it.
Now in the second table, find a file called boot.img_65286, check, Extract DZ.
The file should be in the same directory previous one (G71030f...) was. Rename it to boot.img.
Send the boot.img to your phone
Install Magisk Manager, open, click "Install magisk"
On method selection choose "select and patch a file" and pick the boot.img file and proceed.
That's it, you should be told where your patched image sits.
In case you want to skip steps 1 to 7, I attached a boot.img file. I also attached a patched boot.img, since I did it for mine, too.
BTW if you choose to download the firmware extractor from the attached files, you can find a short tutorial on how to extract boot image in a text file inside.
Hope it still helps you.

Categories

Resources