Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,741,151 Members 50,975 Now Online
XDA Developers Android and Mobile Development Forum

[HOW TO] Extract Rom.zip From RUU

Tip us?
 
Inside 4ndroid
Old
#1  
Inside 4ndroid's Avatar
Senior Member - OP
Thanks Meter 116
Posts: 136
Join Date: Dec 2012
Location: Heckmondwike

 
DONATE TO ME
Default [HOW TO] Extract Rom.zip From RUU

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.6 0.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


IF YOU LIKE MY WORK OR IF I HELPED YOU OUT
PLEASE HIT THANKS AND MAYBE BUY ME A COFFEE
The Following 6 Users Say Thank You to Inside 4ndroid For This Useful Post: [ Click to Expand ]
 
munnibhai
Old
#2  
munnibhai's Avatar
Member
Thanks Meter 10
Posts: 99
Join Date: Nov 2012
Location: Barcelona
it doesnt work... the process monitor colum is all blank after running RUU... there are no processes listed
The quieter your become, the more you are able to hear - BT5
 
Inside 4ndroid
Old
#3  
Inside 4ndroid's Avatar
Senior Member - OP
Thanks Meter 116
Posts: 136
Join Date: Dec 2012
Location: Heckmondwike

 
DONATE TO ME
Quote:
Originally Posted by munnibhai View Post
it doesnt work... the process monitor colum is all blank after running RUU... there are no processes listed
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..


IF YOU LIKE MY WORK OR IF I HELPED YOU OUT
PLEASE HIT THANKS AND MAYBE BUY ME A COFFEE
 
munnibhai
Old
#4  
munnibhai's Avatar
Member
Thanks Meter 10
Posts: 99
Join Date: Nov 2012
Location: Barcelona
thanks for the reply, let me check it again...

i will post back to u
The quieter your become, the more you are able to hear - BT5
 
cowdude
Old
(Last edited by cowdude; 10th March 2014 at 07:03 AM.) Reason: more information
#5  
Junior Member
Thanks Meter 0
Posts: 2
Join Date: Jan 2013
Default 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.
 
cowdude
Old
#6  
Junior Member
Thanks Meter 0
Posts: 2
Join Date: Jan 2013
Default 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.
 
jmcclue
Old
#7  
jmcclue's Avatar
Recognized Contributor
Thanks Meter 1307
Posts: 3,394
Join Date: Apr 2012
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.
 
Munto
Old
(Last edited by Munto; 17th June 2014 at 04:26 PM.)
#8  
Senior Member
Thanks Meter 3
Posts: 161
Join Date: Feb 2010
Location: Nottingham, UK
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 -_-
 
Sinirlan
Old
#9  
Junior Member
Thanks Meter 0
Posts: 1
Join Date: May 2011
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.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes