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

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

OP HapticThreek

17th July 2014, 09:15 PM   |  #11  
Seanie280672's Avatar
Senior Member
Flag Halesowen
Thanks Meter: 349
 
1,180 posts
Join Date:Joined: Feb 2012
Donate to Me
More
Quote:
Originally Posted by HapticThreek

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/
Last edited by Seanie280672; 17th July 2014 at 09:20 PM.
The Following User Says Thank You to Seanie280672 For This Useful Post: [ View ]
17th July 2014, 10:43 PM   |  #12  
OP Junior Member
Flag Cambridge, UK
Thanks Meter: 1
 
25 posts
Join Date:Joined: Aug 2012
More
Quote:
Originally Posted by Seanie280672

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
Last edited by HapticThreek; 17th July 2014 at 11:18 PM.
17th July 2014, 11:50 PM   |  #13  
OP Junior Member
Flag Cambridge, UK
Thanks Meter: 1
 
25 posts
Join Date:Joined: Aug 2012
More
Quote:
Originally Posted by Seanie280672

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!
Last edited by HapticThreek; 17th July 2014 at 11:58 PM.
18th July 2014, 03:43 PM   |  #14  
OP Junior Member
Flag Cambridge, UK
Thanks Meter: 1
 
25 posts
Join Date:Joined: Aug 2012
More
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: [ View ]
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes