Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,780,552 Members 47,679 Now Online
XDA Developers Android and Mobile Development Forum

[SOLVED] Reverting back to stock with RUU - Error 158 Image Error

Tip us?
 
Seanie280672
Old
(Last edited by Seanie280672; 17th July 2014 at 08:20 PM.)
#11  
Seanie280672's Avatar
Senior Member
Thanks Meter 342
Posts: 1,162
Join Date: Feb 2012
Location: Halesowen

 
DONATE TO ME
Quote:
Originally Posted by HapticThreek View Post
Hi, thanks very much. So I have extracted the rom.zip, for some reason it split it into 5 zip files. Unfortunately for me none of these zips contained the firmware.zip file you spoke about (or any other zip file).

I think what happened is it extracted what was in the zips too. One of the extracted zips contained the following files:
 
adsp.img
android-info.txt
cir.img
hboot_signedbyaa.img
pg2fs_spcustom.img
radio.img
ramdisk.img
rcdata.img
recovery_signed.img
rpm.img
sbl1-1.img
sbl1-2.img
sbl1-3.img
sbl2.img
sbl3.img
splash1.nb0
tp_SYN3202.img
tz.img


Am I right in thinking this is the firmware zip file? ( I hope! lol )
Yup that's firmware.zip, all the system files etc, just zip those files back up into one zip, name it firmware.zip and flash it, don't forget to flash it twice, make sure on the 2nd time it says successful at the end, if it says anything else do not restart your phone, it will brick, you will need to find another firmware to flash whilst the phone is still in RUU mode.

see here: http://trjlive.com/guide-install-firmware-htc-one-m7/
The Following User Says Thank You to Seanie280672 For This Useful Post: [ Click to Expand ]
 
HapticThreek
Old
(Last edited by HapticThreek; 17th July 2014 at 10:18 PM.)
#12  
Junior Member - OP
Thanks Meter 1
Posts: 25
Join Date: Aug 2012
Location: Cambridge, UK
Quote:
Originally Posted by Seanie280672 View Post
Yup that's firmware.zip, all the system files etc, just zip those files back up into one zip, name it firmware.zip and flash it, don't forget to flash it twice, make sure on the 2nd time it says successful at the end, if it says anything else do not restart your phone, it will brick, you will need to find another firmware to flash whilst the phone is still in RUU mode.

see here: http://trjlive.com/guide-install-firmware-htc-one-m7/
Hi, so I did that and followed the guide, unfortunately hasn't worked. get the following when I run fastboot flash zip firmware.zip:

Code:
sending 'zip' (41218 KB)...
OKAY [  3.118s]
writing 'zip'...
(bootloader) zip header checking...
(bootloader) zip info parsing...
FAILED (remote: 22 loading zip info fail)
finished. total time: 3.396s
Does it need to be re-encrypted or something?

EDIT - actually think the firmware.zip is already encrypted still. trying to see if I can decrypt it.
trying to unzip it gives me "invalid compressed data to inflate" error

EDIT 2 - seems like I'm getting the same issue as this dude http://forum.xda-developers.com/show...&postcount=155. Will look for a different way to decrypt rom.zip
 
HapticThreek
Old
(Last edited by HapticThreek; 17th July 2014 at 10:58 PM.)
#13  
Junior Member - OP
Thanks Meter 1
Posts: 25
Join Date: Aug 2012
Location: Cambridge, UK
Quote:
Originally Posted by Seanie280672 View Post
Yup that's firmware.zip, all the system files etc, just zip those files back up into one zip, name it firmware.zip and flash it, don't forget to flash it twice, make sure on the 2nd time it says successful at the end, if it says anything else do not restart your phone, it will brick, you will need to find another firmware to flash whilst the phone is still in RUU mode.

see here: http://trjlive.com/guide-install-firmware-htc-one-m7/
So managed to decrypt properly and flash. Woohoo!

Here is the new output for fastboot getvar all
Code:
(bootloader) version: 0.5
(bootloader) version-bootloader: 1.57.0000
(bootloader) version-baseband: 4A.23.3263.28
(bootloader) version-cpld: None
(bootloader) version-microp: None
(bootloader) version-main: 4.20.206.16
(bootloader) version-misc: PVT SHIP S-OFF
(bootloader) meid: 00000000000000
(bootloader) product: m7_ul
(bootloader) platform: HBOOT-8064
(bootloader) modelid: PN0710000
(bootloader) cidnum: O2___001
(bootloader) battery-status: good
(bootloader) battery-voltage: 3830mV
(bootloader) partition-layout: Generic
(bootloader) security: off
(bootloader) build-mode: SHIP
(bootloader) boot-mode: FASTBOOT
(bootloader) commitno-bootloader: dirty-44d68d6b
(bootloader) hbootpreupdate: 11
(bootloader) gencheckpt: 0
all: Done!
finished. total time: 0.064s
Version main now has the 206 in it so hopefully when I get to try the RUU again tomorrow it works, fingers crossed and thanks for all your input so far, you've been really helpful!

EDIT - should have waited til tomorrow to flash this firmware - touch screen is non functional now! bah. Hopefully ruu works tomorrow!
 
HapticThreek
Old
#14  
Junior Member - OP
Thanks Meter 1
Posts: 25
Join Date: Aug 2012
Location: Cambridge, UK
Default SOLVED

Well, the RUU worked this time and I now have a fully stock phone to return.
Thanks for all your help and pointing me in the right directions. Will hit the thanks button on your posts!
The Following User Says Thank You to HapticThreek For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes