[Android] MrGreg1:
Problems with 2 RUU's

Hi nkk71,

Thank you for creating and supporting this amazing tool. I know allot of hard work went into it.

I have acquired an older phone that I am working on. It is a AT&T HTC ONE X+. I located two RUU's that I am trying to decrypt. This first one is Jelly Bean 4.1.1 and the second is Jelly Bean 4.2.2.

This first one makes it fairly far in the process but fails when testing system.img with this "ERROR: 'system/system.img' is corrupt (err=8)". I am certain that the system image is not corrupt. I have downloaded the RUU from several different sites but the result is the same.

The second one fails very early in the process with this "ERROR: Couldn't access 'romzip/rom.zip'". I suspect the problem is that this particular RUU has 2 zips inside (i.e. rom_01.zip, rom_02.zip). It appears that the code is looking for a single file rom.zip.

For both RUU's I am using switches -sfzL.

Here is the log file for the first RUU 1.19.502.1

+++ Welcome to the HTC RUU Decryption Tool 3.6.0 RC1 +++

RUU identified as Executable file

Extracting rom.zip from RUU_EVITARE_UL_JB_45_Cingular_US_1.19.502.1_Radio_2.14.55.01_18.21.95.55L_release_310178_signed.exe

Extracting temporary files...

Extracting rom zip files...

Extracting rom.zip...done.

Extracting android-info.txt...done.

Cleaning up...

Done!

unruu took 1 minute 31.212 seconds.

Information extracted from RUU.EXE:

INFO: RUU modelid: PM6310000

INFO: RUU mainver: 1.19.502.1

Extracting ZIP files

Normal file detected, just copy it

Finished: Successfully extracted zip files to 'dumped_zips'

ExtractZIPs took 34.846 seconds.

Attempting to find suitable keyfile

Find First Encrypted ZIP

Encrypted zip to be used for testing: 'unchanged.zip'

No proper keyfile, trying known keys instead...

Testing keyfile '0P3P_keyfile_4.bin'...

ruuveal

-------

Invalid zip file - aborting!

failed to decrypt zip file!

Processing ZIP... 32768/698037947

Testing keyfile '0P4E_keyfile_2.14.631.15.bin'...

ruuveal

-------

Invalid zip file - aborting!

failed to decrypt zip file!

Processing ZIP... 32768/698037947

Testing keyfile '0P6B_keyfile_1.bin'...

ruuveal

-------

Invalid zip file - aborting!

failed to decrypt zip file!

Processing ZIP... 32768/698037947

Testing keyfile '0P6B_keyfile_6.20.654.3.bin'...

ruuveal

-------

Invalid zip file - aborting!

failed to decrypt zip file!

Processing ZIP... 32768/698037947

Testing keyfile '0P6B_keyfile_6.bin'...

ruuveal

-------

Invalid zip file - aborting!

failed to decrypt zip file!

Processing ZIP... 32768/698037947

Testing keyfile '0P8B_keyfile_2.18.401.3.bin'...

ruuveal

-------

Invalid zip file - aborting!

failed to decrypt zip file!

Processing ZIP... 32768/698037947

Testing keyfile '0P9C_keyfile_1.59.1402.11.bin'...

ruuveal

-------

Invalid zip file - aborting!

failed to decrypt zip file!

Processing ZIP... 32768/698037947

Testing keyfile '0P9C_keyfile_3.12.709.5.bin'...

ruuveal

-------

Invalid zip file - aborting!

failed to decrypt zip file!

Processing ZIP... 32768/698037947

Testing keyfile '0PAJ_keyfile_1.bin'...

ruuveal

-------

Invalid zip file - aborting!

failed to decrypt zip file!

Processing ZIP... 32768/698037947

Testing keyfile '0PCV_keyfile_1.bin'...

ruuveal

-------

Invalid zip file - aborting!

failed to decrypt zip file!

Processing ZIP... 32768/698037947

Testing keyfile '0PE6_keyfile_1.51.401.5.bin'...

ruuveal

-------

Invalid zip file - aborting!

failed to decrypt zip file!

Processing ZIP... 32768/698037947

Testing keyfile '0PFH_keyfile_2.bin'...

ruuveal

-------

Invalid zip file - aborting!

failed to decrypt zip file!

Processing ZIP... 32768/698037947

Testing keyfile '0PFH_keyfile_4.11.401.1.bin'...

ruuveal

-------

Invalid zip file - aborting!

failed to decrypt zip file!

Processing ZIP... 32768/698037947

Testing keyfile '0PFJ_keyfile_2.10.401.2.bin'...

ruuveal

-------

Invalid zip file - aborting!

failed to decrypt zip file!

Processing ZIP... 32768/698037947

Testing keyfile '0PGZ_keyfile_1.bin'...

ruuveal

-------

Invalid zip file - aborting!

failed to decrypt zip file!

Processing ZIP... 32768/698037947

Testing keyfile '0PHC_keyfile_1.18.401.4.bin'...

ruuveal

-------

Invalid zip file - aborting!

failed to decrypt zip file!

Processing ZIP... 32768/698037947

Testing keyfile '0PHC_keyfile_2.10.425.3.bin'...

ruuveal

-------

Invalid zip file - aborting!

failed to decrypt zip file!

Processing ZIP... 32768/698037947

Testing keyfile '0PJA_keyfile_2.bin'...

ruuveal

-------

Invalid zip file - aborting!

failed to decrypt zip file!

Processing ZIP... 32768/698037947

Testing keyfile '0PJA_keyfile_4.14.617.6.bin'...

ruuveal

-------

Invalid zip file - aborting!

failed to decrypt zip file!

Processing ZIP... 32768/698037947

Testing keyfile '0PKV_keyfile_1.bin'...

ruuveal

-------

Invalid zip file - aborting!

failed to decrypt zip file!

Processing ZIP... 32768/698037947

Testing keyfile '0PKV_keyfile_2.10.61.2.bin'...

ruuveal

-------

Invalid zip file - aborting!

failed to decrypt zip file!

Processing ZIP... 32768/698037947

Testing keyfile '0PM3_keyfile_1.07.603.5.bin'...

ruuveal

-------

Invalid zip file - aborting!

failed to decrypt zip file!

Processing ZIP... 32768/698037947

Testing keyfile '0PM9_keyfile_1.bin'...

ruuveal

-------

Invalid zip file - aborting!

failed to decrypt zip file!

Processing ZIP... 32768/698037947

Testing keyfile '0PN7_keyfile_1.bin'...

ruuveal

-------

Invalid zip file - aborting!

failed to decrypt zip file!

Processing ZIP... 32768/698037947

Testing keyfile '0PN7_keyfile_4.bin'...

ruuveal

-------

Invalid zip file - aborting!

failed to decrypt zip file!

Processing ZIP... 32768/698037947

Testing keyfile '0PN7_keyfile_5.bin'...

ruuveal

-------

Invalid zip file - aborting!

failed to decrypt zip file!

Processing ZIP... 32768/698037947

Testing keyfile '2PQ9_keyfile_1.bin'...

ruuveal

-------

Invalid zip file - aborting!

failed to decrypt zip file!

Processing ZIP... 32768/698037947

Testing keyfile '2PQ9_keyfile_2.18.617.1.bin'...

ruuveal

-------

Invalid zip file - aborting!

failed to decrypt zip file!

Processing ZIP... 32768/698037947

Testing keyfile '2PRE_keyfile_1.bin'...

ruuveal

-------

Invalid zip file - aborting!

failed to decrypt zip file!

Processing ZIP... 32768/698037947

Testing keyfile '2PRG_keyfile_2.32.401.1.bin'...

ruuveal

-------

Invalid zip file - aborting!

failed to decrypt zip file!

Processing ZIP... 32768/698037947

Testing keyfile '2PRG_keyfile_2.bin'...

ruuveal

-------

Invalid zip file - aborting!

failed to decrypt zip file!

Processing ZIP... 32768/698037947

Testing keyfile '2PS6_keyfile_1.17.1405.8.bin'...

ruuveal

-------

Invalid zip file - aborting!

failed to decrypt zip file!

Processing ZIP... 32768/698037947

Testing keyfile '2PS6_keyfile_1.bin'...

ruuveal

-------

Invalid zip file - aborting!

failed to decrypt zip file!

Processing ZIP... 32768/698037947

Testing keyfile '2PST_keyfile_1.08.401.2.bin'...

ruuveal

-------

Invalid zip file - aborting!

failed to decrypt zip file!

Processing ZIP... 32768/698037947

Testing keyfile '2PUK_keyfile_1.10.592.2.bin'...

ruuveal

-------

Invalid zip file - aborting!

failed to decrypt zip file!

Processing ZIP... 32768/698037947

Testing keyfile '2PWD_keyfile_1.01.401.9.bin'...

ruuveal

-------

Invalid zip file - aborting!

failed to decrypt zip file!

Processing ZIP... 32768/698037947

Testing keyfile '2PYB_keyfile_1_651.bin'...

ruuveal

-------

Invalid zip file - aborting!

failed to decrypt zip file!

Processing ZIP... 32768/698037947

Testing keyfile '2PZC_keyfile_1.03.651.7.bin'...

ruuveal

-------

Invalid zip file - aborting!

failed to decrypt zip file!

Processing ZIP... 32768/698037947

Testing keyfile '2PZC_keyfile_1.03.709.4.bin'...

ruuveal

-------

Invalid zip file - aborting!

failed to decrypt zip file!

Processing ZIP... 32768/698037947

Testing keyfile '2PZF_keyfile_1.09.401.4.bin'...

ruuveal

-------

Invalid zip file - aborting!

failed to decrypt zip file!

Processing ZIP... 32768/698037947

Testing keyfile '2PZM_keyfile_1.06.401.5.bin'...

ruuveal

-------

Invalid zip file - aborting!

failed to decrypt zip file!

Processing ZIP... 32768/698037947

Testing keyfile 'PJ75_keyfile_4.bin'...

ruuveal

-------

Invalid zip file - aborting!

failed to decrypt zip file!

Processing ZIP... 32768/698037947

Testing keyfile 'PO58_keyfile_4.bin'...

ruuveal

-------

Invalid zip file - aborting!

failed to decrypt zip file!

Processing ZIP... 32768/698037947

Still no proper keyfile, trying all ruuveal built-in keys...

Testing ruuveal device 'cp2dcg'...

ruuveal

-------

Invalid zip file - aborting!

failed to decrypt zip file!

Processing ZIP... 32768/698037947

Testing ruuveal device 'cp2dtg'...

ruuveal

-------

Invalid zip file - aborting!

failed to decrypt zip file!

Processing ZIP... 32768/698037947

Testing ruuveal device 'cp2dug'...

ruuveal

-------

Invalid zip file - aborting!

failed to decrypt zip file!

Processing ZIP... 32768/698037947

Testing ruuveal device 'cp3dcg'...

ruuveal

-------

Invalid zip file - aborting!

failed to decrypt zip file!

Processing ZIP... 32768/698037947

Testing ruuveal device 'cp3dtg'...

ruuveal

-------

Invalid zip file - aborting!

failed to decrypt zip file!

Processing ZIP... 32768/698037947

Testing ruuveal device 'cp3dug'...

ruuveal

-------

Invalid zip file - aborting!

failed to decrypt zip file!

Processing ZIP... 32768/698037947

Testing ruuveal device 'cp3edtg'...

ruuveal

-------

Invalid zip file - aborting!

failed to decrypt zip file!

Processing ZIP... 32768/698037947

Testing ruuveal device 'cp5dtu'...

ruuveal

-------

Invalid zip file - aborting!

failed to decrypt zip file!

Processing ZIP... 32768/698037947

Testing ruuveal device 'cp5dug'...

ruuveal

-------

Invalid zip file - aborting!

failed to decrypt zip file!

Processing ZIP... 32768/698037947

Testing ruuveal device 'cp5dwg'...

ruuveal

-------

Invalid zip file - aborting!

failed to decrypt zip file!

Processing ZIP... 32768/698037947

Testing ruuveal device 'csndug'...

ruuveal

-------

Invalid zip file - aborting!

failed to decrypt zip file!

Processing ZIP... 32768/698037947

Testing ruuveal device 'deluxe_j'...

ruuveal

-------

Invalid zip file - aborting!

failed to decrypt zip file!

Processing ZIP... 32768/698037947

Testing ruuveal device 'deluxe_u'...

ruuveal

-------

Invalid zip file - aborting!

failed to decrypt zip file!

Processing ZIP... 32768/698037947

Testing ruuveal device 'deluxe_ub1'...

ruuveal

-------

Invalid zip file - aborting!

failed to decrypt zip file!

Processing ZIP... 32768/698037947

Testing ruuveal device 'dlpdtu'...

ruuveal

-------

Invalid zip file - aborting!

failed to decrypt zip file!

Processing ZIP... 32768/698037947

Testing ruuveal device 'dlpdug'...

ruuveal

-------

Invalid zip file - aborting!

failed to decrypt zip file!

Processing ZIP... 32768/698037947

Testing ruuveal device 'dlpdwg'...

ruuveal

-------

Invalid zip file - aborting!

failed to decrypt zip file!

Processing ZIP... 32768/698037947

Testing ruuveal device 'dlxp_u'...

ruuveal

-------

Invalid zip file - aborting!

failed to decrypt zip file!

Processing ZIP... 32768/698037947

Testing ruuveal device 'dlxp_ul'...

ruuveal

-------

Invalid zip file - aborting!

failed to decrypt zip file!

Processing ZIP... 32768/698037947

Testing ruuveal device 'endeavor_td'...

ruuveal

-------

Invalid zip file - aborting!

failed to decrypt zip file!

Processing ZIP... 32768/698037947

Testing ruuveal device 'endeavor_u'...

ruuveal

-------

Invalid zip file - aborting!

failed to decrypt zip file!

Processing ZIP... 32768/698037947

Testing ruuveal device 'enrc2_u'...

ruuveal

-------

Invalid zip file - aborting!

failed to decrypt zip file!

Processing ZIP... 32768/698037947

Testing ruuveal device 'enrc2b_u'...

ruuveal

-------

Invalid zip file - aborting!

failed to decrypt zip file!

Processing ZIP... 32768/698037947

Testing ruuveal device 'evita'...

ruuveal

-------

Invalid zip file - aborting!

failed to decrypt zip file!

Processing ZIP... 32768/698037947

Testing ruuveal device 'evitare_ul'...

ruuveal

-------

Processing ZIP... 32768/698037947

Decrypted RUU (zip) written to: tmpzip.zip

Archive: tmpzip.zip

testing: hboot_1.40.0000.img OK

testing: android-info.txt OK

testing: rcdata.img OK

testing: boot_signed.img OK

testing: recovery_signed.img OK

testing: system.img OK

testing: userdata_16g.img OK

testing: userdata_32g.img OK

testing: splash1.nb0 OK

testing: tp.img OK

testing: ramdisk.img OK

testing: wlan.img OK

testing: rawpt_16g.img OK

testing: rawpt_32g.img OK

testing: pg3fs_spcustom.img OK

testing: mdm9k.img OK

testing: u32g.hdr OK

testing: u32gr.hdr OK

testing: u64g.hdr OK

testing: u16g.hdr OK

testing: bct.img OK

testing: userdata_64g.img OK

testing: userdata_32g_resv.img OK

testing: rawpt_64g.img OK

No errors detected in compressed data of tmpzip.zip.

INFO: keyfile passed all tests

Finished: Successfully found decryption key, ruuveal device 'evitare_ul'

KeyFinder took 1 minute 36.451 seconds.

Decrypting ZIP files

Decrypting (1/1) 'unchanged.zip'

Encrypted zip detected, running ruuveal...

ruuveal

-------

Processing ZIP... 32768/698037947

Decrypted RUU (zip) written to: H:/HTC One X+/HTC_RUU_Decrypt_Tool_3.6.0RC1-WINDOWS32/OUT/decrypted_zips/dec_unchanged.zip

... immediate cleanup specified, deleting 'unchanged.zip'

Finished: Successfully decrypted zips to 'decrypted_zips'

DecryptZIPs took 38.983 seconds.

Unzipping decrypted ZIP files

Unzipping decrypted zip: (1/1) 'dec_unchanged.zip'

Archive: dec_unchanged.zip

inflating: H:/HTC One X+/HTC_RUU_Decrypt_Tool_3.6.0RC1-WINDOWS32/OUT/firmware/hboot_1.40.0000.img

inflating: H:/HTC One X+/HTC_RUU_Decrypt_Tool_3.6.0RC1-WINDOWS32/OUT/firmware/android-info.txt

inflating: H:/HTC One X+/HTC_RUU_Decrypt_Tool_3.6.0RC1-WINDOWS32/OUT/firmware/rcdata.img

inflating: H:/HTC One X+/HTC_RUU_Decrypt_Tool_3.6.0RC1-WINDOWS32/OUT/firmware/boot_signed.img

inflating: H:/HTC One X+/HTC_RUU_Decrypt_Tool_3.6.0RC1-WINDOWS32/OUT/firmware/recovery_signed.img

inflating: H:/HTC One X+/HTC_RUU_Decrypt_Tool_3.6.0RC1-WINDOWS32/OUT/firmware/system.img

inflating: H:/HTC One X+/HTC_RUU_Decrypt_Tool_3.6.0RC1-WINDOWS32/OUT/firmware/userdata_16g.img

inflating: H:/HTC One X+/HTC_RUU_Decrypt_Tool_3.6.0RC1-WINDOWS32/OUT/firmware/userdata_32g.img

inflating: H:/HTC One X+/HTC_RUU_Decrypt_Tool_3.6.0RC1-WINDOWS32/OUT/firmware/splash1.nb0

inflating: H:/HTC One X+/HTC_RUU_Decrypt_Tool_3.6.0RC1-WINDOWS32/OUT/firmware/tp.img

inflating: H:/HTC One X+/HTC_RUU_Decrypt_Tool_3.6.0RC1-WINDOWS32/OUT/firmware/ramdisk.img

inflating: H:/HTC One X+/HTC_RUU_Decrypt_Tool_3.6.0RC1-WINDOWS32/OUT/firmware/wlan.img

inflating: H:/HTC One X+/HTC_RUU_Decrypt_Tool_3.6.0RC1-WINDOWS32/OUT/firmware/rawpt_16g.img

inflating: H:/HTC One X+/HTC_RUU_Decrypt_Tool_3.6.0RC1-WINDOWS32/OUT/firmware/rawpt_32g.img

inflating: H:/HTC One X+/HTC_RUU_Decrypt_Tool_3.6.0RC1-WINDOWS32/OUT/firmware/pg3fs_spcustom.img

inflating: H:/HTC One X+/HTC_RUU_Decrypt_Tool_3.6.0RC1-WINDOWS32/OUT/firmware/mdm9k.img

inflating: H:/HTC One X+/HTC_RUU_Decrypt_Tool_3.6.0RC1-WINDOWS32/OUT/firmware/u32g.hdr

inflating: H:/HTC One X+/HTC_RUU_Decrypt_Tool_3.6.0RC1-WINDOWS32/OUT/firmware/u32gr.hdr

inflating: H:/HTC One X+/HTC_RUU_Decrypt_Tool_3.6.0RC1-WINDOWS32/OUT/firmware/u64g.hdr

inflating: H:/HTC One X+/HTC_RUU_Decrypt_Tool_3.6.0RC1-WINDOWS32/OUT/firmware/u16g.hdr

inflating: H:/HTC One X+/HTC_RUU_Decrypt_Tool_3.6.0RC1-WINDOWS32/OUT/firmware/bct.img

inflating: H:/HTC One X+/HTC_RUU_Decrypt_Tool_3.6.0RC1-WINDOWS32/OUT/firmware/userdata_64g.img

inflating: H:/HTC One X+/HTC_RUU_Decrypt_Tool_3.6.0RC1-WINDOWS32/OUT/firmware/userdata_32g_resv.img

inflating: H:/HTC One X+/HTC_RUU_Decrypt_Tool_3.6.0RC1-WINDOWS32/OUT/firmware/rawpt_64g.img

... immediate cleanup specified, deleting 'dec_unchanged.zip'

Finished: Successfully unzipped files to 'firmware'

UnzipDecryptedZIPs took 1 minute 40.280 seconds.

Moving system img files

(1/1) moving system.img to system

Finished: Successfully moved system img files

Attempting to create 'system/system.img'

Single 'system/system.img' found, moving it to output path

Finished: Successfully created 'system/system.img'

Create system.img took 0.134 seconds.

Testing 'system/system.img'...

e2fsck 1.43.5-WIP (17-Feb-2017)

ext2fs_open2: Bad magic number in super-block

e2fsck: Superblock invalid, trying backup blocks...

e2fsck: Bad magic number in super-block while trying to open system/system.img

The superblock could not be read or does not describe a valid ext2/ext3/ext4

filesystem. If the device is valid and it really contains an ext2/ext3/ext4

filesystem (and not swap or ufs or something else), then the superblock

is corrupt, and you might try running e2fsck with an alternate superblock:

e2fsck -b 8193 <device>

or

e2fsck -b 32768 <device>

ERROR: 'system/system.img' is corrupt (err=8)

Adding boot.img to the system folder

Copying firmware/boot_signed.img to system/boot.img

Checking android-info.txt

Updating RUU Info from: firmware/android-info.txt

INFO: RUU modelid: PM6310000

INFO: RUU mainver: 1.19.502.1

Checking keyfile state

No keyfile was generated because ruuveal's built in 'evitare_ul' device-key was used.

Copying rom.zip to OUT for SD-Card flashing

file was a RUU.EXE so moving rom.zip to PM63IMG.zip

Removing unneeded work folders

INFO: RUU modelid: PM6310000

INFO: RUU mainver: 1.19.502.1

Overall process completion time: 6 minutes 4.880 seconds.

Finished: Tool has finished but there was an error, please

check the console output and your OUT folder

Writing logfile to: H:/HTC One X+/HTC_RUU_Decrypt_Tool_3.6.0RC1-WINDOWS32/OUT_PM63_1.19.502.1/RUU_Decrypt_LOG-PM6310000_1.19.502.1_2017-09-04_234259.txt

Here is the log file for the second RUU 2.21.5517.15

+++ Welcome to the HTC RUU Decryption Tool 3.6.0 RC1 +++

RUU identified as Executable file

Extracting rom.zip from RUU_EVITARE_UL_JB_50_S_Cingular_US_2.15.502.1_Radio_2.21.5517.15_18.27.11.35L_release_341689_signed_0Extracting temporary files...

Extracting rom zip files...

Extracting rom_02.zip...done.

Extracting rom_01.zip...done.

Cleaning up...

Done!

unruu took 2 minutes 20.467 seconds.

Information extracted from RUU.EXE:

Extracting ZIP files

ERROR: Couldn't access 'romzip/rom.zip'

ExtractZIPs took 0.003 seconds.

Removing unneeded work folders

Overall process completion time: 2 minutes 20.577 seconds.

Finished: Tool has finished but there was an error, please

check the console output and your OUT folder

Writing logfile to: H:/HTC One X+/HTC_RUU_Decrypt_Tool_3.6.0RC1-WINDOWS32/OUT/RUU_Decrypt_LOG-__2017-09-04_230926.txt

Here are the download links for both RUU's. Since I am a new user and do not have 10 posts, I cannot direct link the pages. So you will have to copy and paste.

4shared.com/file/4fpyuTibca/RUU_EVITARE_UL_JB_45_Cingular_.html

4shared.com/file/HXXbgsJnei/RUU_EVITARE_UL_JB_50_S_Cingula.html