Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[GUIDE] How to extract RUU & manually flash rom.zip HTC One M7

OP electronical

25th October 2013, 04:43 AM   |  #1  
electronical's Avatar
OP Senior Member
Thanks Meter: 352
 
291 posts
Join Date:Joined: Aug 2013
So, you may have made a bad flash, having trouble to S-OFF or just want to go back to 100% stock ROM and recovery. In that case, the easiest solution is to run your RUU (ROM Update Utility). But unlike the conventional method, this guide is about extracting the rom.zip from your RUU for a faster and more comprehensive installation. The extracted rom.zip will also allow the possibility to decrypt the RUU in order to get access to all the individual files inside the encrypted archive. So, if you want to flash, for example, only the stock recovery, you can do it without having to flash the entire RUU ROM, which will restore the phone's entire software.

Note: Your HTC One can be either S-ON or S-OFF in order to successfully flash RUU rom.zip. But if your device is S-OFF, you do not need to re/lock your bootloader.

Follow the instructions in the given order to avoid any hiccups or possible bricking of your device:
1. You will need to know your HTC One's MID and CID. These codes will allow you to find the required RUU for your phone.
You need adb and fastboot. Go to your Bootloader. Select Fastboot. Connect your HTC One with its original USB cable to your PC. Do:
Code:
fastboot getvar all
and you should see a list of important information about your device. In particular, note the modelid (MID) and cidnum (CID). If you get nothing, there is an issue with the USB connection between your phone and PC.
2. Find the correct RUU. Here's a thread: http://forum.xda-developers.com/show....php?t=2428276 to find the correct RUU from the filename but more importantly, make sure that both the MID and CID match exactly with your device. You also need to pay attention if you need the M7 UL or M7 U version, which is in the filename of the RUU. If you can't find your RUU from that site, just google or search on XDA. However, not all HTC One variants have RUUs. But if you are already S-OFF, you can change your MID and CID, which will allow you to use any RUU: http://forum.xda-developers.com/show....php?t=2322820
3. Extract the RUU and grab the rom.zip file. This is the most important file you need from the RUU and afterwards you can delete the RUU exe if you want. To get the rom.zip from your RUU exe file, you just need to run the RUU exe file once, and then when the window is ready and waiting for you to press on the "Next" button, just leave it open and go to your temp folder. I'm using Windows XP SP3 32-bit and my temp folder is located at this path: C:\Documents and Settings\Administrator\Local Settings\Temp
Now, you will see several files and folders. Sort everything in that temp folder based on "Date Modified" with the most recent folder showing up above all other folders. This is the folder you want. The folder name will be bunch of letters and numbers. Inside that folder you will find several files, but what you need is rom.zip and android-info.txt. Copy both these files and paste them somewhere safe on your hard drive. The android-info.txt contains crucial information about the compatibility of that RUU for your phone. Here's the android-info.txt extracted from my RUU exe:
Code:
modelid: PN0711000
cidnum: HTC__001
cidnum: HTC__J15
cidnum: HTC__A48
cidnum: HTC__M27
mainver: 1.29.401.2
btype:1
aareport:1
DelCache:1
hbootpreupdate:3
You can then verify that you have the correct RUU if the modelid matches that of your phone and if you can see your cidnum in that list. If either (or both) of the modelid or cidnum does not match that of your phone, the RUU process will fail. The mainver is the firmware that is going to be flashed onto your phone.
For easy reference, create a new folder and name it exactly like the RUU exe file and put the rom.zip and android-info.txt in there so you won't have trouble identifying that rom.zip file later if you need to flash it again. Now, you can close the RUU installation window and all the files in that temp folder containing rom.zip will be instantly erased. Note that if you open the rom.zip with Winzip/Winrar, you will see a list of all the files but if you try to extract or double-click to open any of these files, you will get an error saying that the file is corrupt. This warning is only due to the files being encrypted by HTC, since the RUU is an official release and is digitally signed. To access those encrypted files, you will need to decrypt them on Linux.
4. Go to your bootloader. Do:
Code:
fastboot oem rebootRUU
This will reboot your HTC One and you will see a black screen with a silver HTC logo.
Now, you will need to access the rom.zip file and flash it. I have copied my rom.zip to my adb folder located at: C:/mini-sdk/rom.zip
So, i type:
Code:
fastboot flash zip C:/mini-sdk/rom.zip
Don't touch anything during the flash process. It will start and after some time, you will see FAILED error. Don't worry, it's the file preparation process if you have firmware higher than that of the RUU. Just do the same command again and the flash process will complete successfully this time. Look at the Command Prompt to know when the flash is complete. At the same time if you look at your phone, you will notice a green progress bar. When the flashing is complete on the Command Prompt, you will notice that the green bar is stuck at about 95%. This is normal. It's just a bug in the progress bar - what matters is the output from the Command Prompt window.
5. Then, you reboot. Do:
Code:
fastboot reboot
This will restart your phone. Let it boot up. It might take a little longer for the first boot up sequence. You will then have completely stock software (firmware & ROM). Go to your bootloader and check. Your S-ON/OFF and Bootloader lock/unlock are unchanged from before the RUU rom.zip flashing procedure. You can now also receive OTA updates.

I hope this has been helpful. Just press the THANKS button!
Last edited by electronical; 28th February 2014 at 10:54 AM.
The Following 13 Users Say Thank You to electronical For This Useful Post: [ View ]
25th October 2013, 09:41 AM   |  #2  
EddyOS's Avatar
Recognized Contributor
Flag Liverpool, Merseyside
Thanks Meter: 3,196
 
13,528 posts
Join Date:Joined: Jan 2010
More
If you're S-OFF you do NOT need to relock the bootloader to flash an RUU - just putting that out there
The Following 6 Users Say Thank You to EddyOS For This Useful Post: [ View ]
30th November 2013, 08:36 PM   |  #3  
Junior Member
Thanks Meter: 0
 
2 posts
Join Date:Joined: Jan 2012
Opening android-Info.txt
Hey man,
as first thanks a lot, i got it all thanks to you but i'm still having trouble finding the right RUU.
I know you said that opening android-info.txt would help, and that it wont work with WinRar.. which i can see.
I have downloaded the .zip RUU, so.. my question is how do i open this txt file if not without WinRar.
Thanks again
1st December 2013, 01:44 PM   |  #4  
electronical's Avatar
OP Senior Member
Thanks Meter: 352
 
291 posts
Join Date:Joined: Aug 2013
Quote:
Originally Posted by emir1396

Hey man,
as first thanks a lot, i got it all thanks to you but i'm still having trouble finding the right RUU.
I know you said that opening android-info.txt would help, and that it wont work with WinRar.. which i can see.
I have downloaded the .zip RUU, so.. my question is how do i open this txt file if not without WinRar.
Thanks again

You don't know how to open a .txt extension file?
Just use any text viewer/editor. I use Notepad++ and you can download it here: http://notepad-plus-plus.org/
5th December 2013, 07:00 PM   |  #5  
Member
Thanks Meter: 5
 
43 posts
Join Date:Joined: Jun 2009
Hi I need help!
i do all the steps and i have this massage:" failed remote:24 persing android info fail"

---------- Post added at 08:00 PM ---------- Previous post was at 08:00 PM ----------

Hi I need help!
i do all the steps and i have this massage:" failed remote:24 persing android info fail"
5th December 2013, 07:50 PM   |  #6  
electronical's Avatar
OP Senior Member
Thanks Meter: 352
 
291 posts
Join Date:Joined: Aug 2013
Quote:
Originally Posted by italgal

Hi I need help!
i do all the steps and i have this massage:" failed remote:24 persing android info fail"[COLOR="Silver"]

Where do you get this error? At which step? Please provide more information to help resolve your problem.
5th December 2013, 09:40 PM   |  #7  
Member
Thanks Meter: 5
 
43 posts
Join Date:Joined: Jun 2009
i try to install many ruu i need ruu 4A.17.3250.14
6th December 2013, 07:59 AM   |  #8  
acoord09's Avatar
Junior Member
Flag Al.hasa
Thanks Meter: 0
 
11 posts
Join Date:Joined: Jul 2013
More
thanks I will try this method in future.
6th December 2013, 08:06 AM   |  #9  
Member
Thanks Meter: 5
 
43 posts
Join Date:Joined: Jun 2009
i have those
(bootloader) version: 0.5
(bootloader) version-bootloader: 1.54.0000
(bootloader) version-baseband: 4A.17.3250.14
(bootloader) version-cpld: None
(bootloader) version-microp: None
(bootloader) version-main: 2.24.401.9
(bootloader) version-misc: PVT SHIP S-ON
(bootloader) serialno: FA38XW900273
(bootloader) imei: 354435053862991
(bootloader) meid: 00000000000000
(bootloader) product: m7_u
(bootloader) platform: HBOOT-8064
(bootloader) modelid: PN0711000
(bootloader) cidnum: HTC__K18
(bootloader) battery-status: good
(bootloader) battery-voltage: 4192mV
(bootloader) partition-layout: Generic
(bootloader) security: on
(bootloader) build-mode: SHIP
(bootloader) boot-mode: FASTBOOT
(bootloader) commitno-bootloader: dirty-d959c75800
(bootloader) hbootpreupdate: 11
(bootloader) gencheckpt: 0
all: Done!
finished. total time: 0.046s
6th December 2013, 09:50 AM   |  #10  
Harish_Kumar's Avatar
Senior Member
Flag Chennai
Thanks Meter: 114
 
421 posts
Join Date:Joined: May 2013
Donate to Me
More
Quote:
Originally Posted by italgal

i have those
(bootloader) version: 0.5
(bootloader) version-bootloader: 1.54.0000
(bootloader) version-baseband: 4A.17.3250.14
(bootloader) version-cpld: None
(bootloader) version-microp: None
(bootloader) version-main: 2.24.401.9
(bootloader) version-misc: PVT SHIP S-ON
(bootloader) serialno: FA38XW900273
(bootloader) imei: 354435053862991
(bootloader) meid: 00000000000000
(bootloader) product: m7_u
(bootloader) platform: HBOOT-8064
(bootloader) modelid: PN0711000
(bootloader) cidnum: HTC__K18
(bootloader) battery-status: good
(bootloader) battery-voltage: 4192mV
(bootloader) partition-layout: Generic
(bootloader) security: on
(bootloader) build-mode: SHIP
(bootloader) boot-mode: FASTBOOT
(bootloader) commitno-bootloader: dirty-d959c75800
(bootloader) hbootpreupdate: 11
(bootloader) gencheckpt: 0
all: Done!
finished. total time: 0.046s

4A.17.3250.14 is baseband version
you need to search for an RUU based on cidnum and model id
judging from your cid .. "HTC_K18" ..its kinda rare .. i think your cid belongs to Israel and to my knowledge there is no RUU for your model

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes