[Android] sabpprook:
Works like a charm!!!

unencrypted RUU:

mars3712@mars3712:~/Desktop/HTC_RUU_Decrypt_Tool_3.0.1$ ./RUU_Decrypt_Tool 0PK7IMG_HIAU_ML_TUHL_L50_SENSE70_MR_hTC_Asia_TW_1.90.709.3_Radio_1.1506V24P22T34.2106.0727_HT\[W.T\]_release_464123_signed_2_4.zip

+++ Welcome to the HTC RUU Decryption Tool 3.0.1 +++
by nkk71 and Captain_Throwback

RUU identified as HTC LargeZip file
Moving '0PK7IMG_HIAU_ML_TUHL_L50_SENSE70_MR_hTC_Asia_TW_1.90.709.3_Radio_1.1506V24P22T34.2106.0727_HT[W.T]_release_464123_signed_2_4.zip' temporarily to working folder

Extracting ZIP files
LargeZip format detected, using ruuveal
ruuveal
-------

Large zip format detected containing 7 zipfile(s)
Dumped (copied) zip file to: 01_dmp.zip
Dumped (copied) zip file to: 02_dmp.zip
Dumped (copied) zip file to: 03_dmp.zip
Dumped (copied) zip file to: 04_dmp.zip
Dumped (copied) zip file to: 05_dmp.zip
Dumped (copied) zip file to: 06_dmp.zip
Dumped (copied) zip file to: 07_dmp.zip
Finished: Successfully extracted zip files to 'dumped_zips'

Attempting to find suitable keyfile
Find First Encrypted ZIP
Finished: No encrypted zip(s) found, keyfile not needed

Decrypting ZIP files

Decrypting (1/7) '01_dmp.zip'
Encryption not found, checking headers...
normal zip, testing...
No errors detected in compressed data of 01_dmp.zip.
unzip test OK, copying file...
... immediate cleanup specified, deleting '01_dmp.zip'

Decrypting (2/7) '02_dmp.zip'
Encryption not found, checking headers...
normal zip, testing...
No errors detected in compressed data of 02_dmp.zip.
unzip test OK, copying file...
... immediate cleanup specified, deleting '02_dmp.zip'

Decrypting (3/7) '03_dmp.zip'
Encryption not found, checking headers...
normal zip, testing...
No errors detected in compressed data of 03_dmp.zip.
unzip test OK, copying file...
... immediate cleanup specified, deleting '03_dmp.zip'

Decrypting (4/7) '04_dmp.zip'
Encryption not found, checking headers...
normal zip, testing...
No errors detected in compressed data of 04_dmp.zip.
unzip test OK, copying file...
... immediate cleanup specified, deleting '04_dmp.zip'

Decrypting (5/7) '05_dmp.zip'
Encryption not found, checking headers...
normal zip, testing...
No errors detected in compressed data of 05_dmp.zip.
unzip test OK, copying file...
... immediate cleanup specified, deleting '05_dmp.zip'

Decrypting (6/7) '06_dmp.zip'
Encryption not found, checking headers...
normal zip, testing...
No errors detected in compressed data of 06_dmp.zip.
unzip test OK, copying file...
... immediate cleanup specified, deleting '06_dmp.zip'

Decrypting (7/7) '07_dmp.zip'
Encryption not found, checking headers...
normal zip, testing...
No errors detected in compressed data of 07_dmp.zip.
unzip test OK, copying file...
... immediate cleanup specified, deleting '07_dmp.zip'
Finished: Successfully decrypted zips to 'decrypted_zips'

Unzipping decrypted ZIP files

Unzipping decrypted zip: (1/7) 'dec_01_dmp.zip'
Archive: dec_01_dmp.zip
inflating: /home/mars3712/Desktop/HTC_RUU_Decrypt_Tool_3.0.1/OUT/firmware/android-info.txt
inflating: /home/mars3712/Desktop/HTC_RUU_Decrypt_Tool_3.0.1/OUT/firmware/ramdisk.img
extracting: /home/mars3712/Desktop/HTC_RUU_Decrypt_Tool_3.0.1/OUT/firmware/android-info2.txt
inflating: /home/mars3712/Desktop/HTC_RUU_Decrypt_Tool_3.0.1/OUT/firmware/sensor_hub.img
inflating: /home/mars3712/Desktop/HTC_RUU_Decrypt_Tool_3.0.1/OUT/firmware/tp_MXM11876.img
inflating: /home/mars3712/Desktop/HTC_RUU_Decrypt_Tool_3.0.1/OUT/firmware/cir.img
inflating: /home/mars3712/Desktop/HTC_RUU_Decrypt_Tool_3.0.1/OUT/firmware/gpt_main_16g.img
inflating: /home/mars3712/Desktop/HTC_RUU_Decrypt_Tool_3.0.1/OUT/firmware/gpt_main_64g.img
inflating: /home/mars3712/Desktop/HTC_RUU_Decrypt_Tool_3.0.1/OUT/firmware/gpt_main_32g.img
inflating: /home/mars3712/Desktop/HTC_RUU_Decrypt_Tool_3.0.1/OUT/firmware/tee1.img
inflating: /home/mars3712/Desktop/HTC_RUU_Decrypt_Tool_3.0.1/OUT/firmware/tee2.img
inflating: /home/mars3712/Desktop/HTC_RUU_Decrypt_Tool_3.0.1/OUT/firmware/preloader.bin
inflating: /home/mars3712/Desktop/HTC_RUU_Decrypt_Tool_3.0.1/OUT/firmware/MT6795_Android_scatter.txt
inflating: /home/mars3712/Desktop/HTC_RUU_Decrypt_Tool_3.0.1/OUT/firmware/CheckSum_Gen
inflating: /home/mars3712/Desktop/HTC_RUU_Decrypt_Tool_3.0.1/OUT/firmware/libflashtool.so
inflating: /home/mars3712/Desktop/HTC_RUU_Decrypt_Tool_3.0.1/OUT/firmware/pg2fs_ship_signkey.img
inflating: /home/mars3712/Desktop/HTC_RUU_Decrypt_Tool_3.0.1/OUT/firmware/apppreload.img
inflating: /home/mars3712/Desktop/HTC_RUU_Decrypt_Tool_3.0.1/OUT/firmware/secro_verified.img
inflating: /home/mars3712/Desktop/HTC_RUU_Decrypt_Tool_3.0.1/OUT/firmware/cota.img
inflating: /home/mars3712/Desktop/HTC_RUU_Decrypt_Tool_3.0.1/OUT/firmware/boot_verified.img
inflating: /home/mars3712/Desktop/HTC_RUU_Decrypt_Tool_3.0.1/OUT/firmware/hosd_verified.img
inflating: /home/mars3712/Desktop/HTC_RUU_Decrypt_Tool_3.0.1/OUT/firmware/recovery_verified.img
inflating: /home/mars3712/Desktop/HTC_RUU_Decrypt_Tool_3.0.1/OUT/firmware/lk_verified.bin
inflating: /home/mars3712/Desktop/HTC_RUU_Decrypt_Tool_3.0.1/OUT/firmware/logo_verified.bin
inflating: /home/mars3712/Desktop/HTC_RUU_Decrypt_Tool_3.0.1/OUT/firmware/Checksum.ini
inflating: /home/mars3712/Desktop/HTC_RUU_Decrypt_Tool_3.0.1/OUT/firmware/backup_android-info.txt
... immediate cleanup specified, deleting 'dec_01_dmp.zip'

Unzipping decrypted zip: (2/7) 'dec_02_dmp.zip'
Archive: dec_02_dmp.zip
inflating: /home/mars3712/Desktop/HTC_RUU_Decrypt_Tool_3.0.1/OUT/firmware/system.img_00
... immediate cleanup specified, deleting 'dec_02_dmp.zip'

Unzipping decrypted zip: (3/7) 'dec_03_dmp.zip'
Archive: dec_03_dmp.zip
inflating: /home/mars3712/Desktop/HTC_RUU_Decrypt_Tool_3.0.1/OUT/firmware/system.img_01
... immediate cleanup specified, deleting 'dec_03_dmp.zip'

Unzipping decrypted zip: (4/7) 'dec_04_dmp.zip'
Archive: dec_04_dmp.zip
inflating: /home/mars3712/Desktop/HTC_RUU_Decrypt_Tool_3.0.1/OUT/firmware/system.img_02
... immediate cleanup specified, deleting 'dec_04_dmp.zip'

Unzipping decrypted zip: (5/7) 'dec_05_dmp.zip'
Archive: dec_05_dmp.zip
inflating: /home/mars3712/Desktop/HTC_RUU_Decrypt_Tool_3.0.1/OUT/firmware/system.img_03
... immediate cleanup specified, deleting 'dec_05_dmp.zip'

Unzipping decrypted zip: (6/7) 'dec_06_dmp.zip'
Archive: dec_06_dmp.zip
inflating: /home/mars3712/Desktop/HTC_RUU_Decrypt_Tool_3.0.1/OUT/firmware/system.img_04
... immediate cleanup specified, deleting 'dec_06_dmp.zip'

Unzipping decrypted zip: (7/7) 'dec_07_dmp.zip'
Archive: dec_07_dmp.zip
inflating: /home/mars3712/Desktop/HTC_RUU_Decrypt_Tool_3.0.1/OUT/firmware/userdata.img
inflating: /home/mars3712/Desktop/HTC_RUU_Decrypt_Tool_3.0.1/OUT/firmware/cache.img
... immediate cleanup specified, deleting 'dec_07_dmp.zip'
Finished: Successfully unzipped files to 'firmware'

Moving system img files
(1/5) moving system.img_00
(2/5) moving system.img_01
(3/5) moving system.img_02
(4/5) moving system.img_03
(5/5) moving system.img_04
Finished: Successfully moved system img files to 'decrypted_system'

Attempting to create system.img
Multi-part system images (5 parts)
Sparse Image detected, using simg2img
Please be patient, this can take several minutes...
Processing file 'system.img_00'...
Processing file 'system.img_01'...
Processing file 'system.img_02'...
Processing file 'system.img_03'...
Processing file 'system.img_04'...
finished.
Finished: Successfully created system.img 'system/system.img'

Testing system.img...
e2fsck 1.42.9 (4-Feb-2014)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
system/system.img: 3919/302512 files (0.0% non-contiguous), 1028849/1208320 blocks
Finished: system.img successfully passed filesystem check

Adding boot.img to the system folder
Copying firmware/boot_verified.img to system/boot.img

Checking keyfile state
Unencrypted RUU, no keyfile was needed.

Restoring '0PK7IMG_HIAU_ML_TUHL_L50_SENSE70_MR_hTC_Asia_TW_1.90.709.3_Radio_1.1506V24P22T34.2106.0727_HT[W.T]_release_464123_signed_2_4.zip' to normal folder

Removing unneeded work folders

INFO: RUU modelid: 0PK711000
INFO: RUU mainver: 1.90.709.3

Finished: Successfully extracted zip files to
'/home/mars3712/Desktop/HTC_RUU_Decrypt_Tool_3.0.1/OUT'

NO key files, let it auto generate

mars3712@mars3712:~/Desktop/HTC_RUU_Decrypt_Tool_3.0.1$ ./RUU_Decrypt_Tool 2PS5IMG_E56_ML_DTUL_M60_SENSE7GP_hTC_Asia_TW_2.15.709.6_Radio_1.1550V70.2508.0121.ED\[W.T\]_release_471546_signed_2_4.zip hosd_verified.img

+++ Welcome to the HTC RUU Decryption Tool 3.0.1 +++
by nkk71 and Captain_Throwback

RUU identified as HTC LargeZip file
Moving '2PS5IMG_E56_ML_DTUL_M60_SENSE7GP_hTC_Asia_TW_2.15.709.6_Radio_1.1550V70.2508.0121.ED[W.T]_release_471546_signed_2_4.zip' temporarily to working folder

Extracting ZIP files
LargeZip format detected, using ruuveal
ruuveal
-------

Large zip format detected containing 8 zipfile(s)
Dumped (copied) zip file to: 01_dmp.zip
Dumped (copied) zip file to: 02_dmp.zip
Dumped (copied) zip file to: 03_dmp.zip
Dumped (copied) zip file to: 04_dmp.zip
Dumped (copied) zip file to: 05_dmp.zip
Dumped (copied) zip file to: 06_dmp.zip
Dumped (copied) zip file to: 07_dmp.zip
Dumped (copied) zip file to: 08_dmp.zip
Finished: Successfully extracted zip files to 'dumped_zips'

Attempting to find suitable keyfile
Find First Encrypted ZIP
Encrypted zip to be used for testing: '01_dmp.zip'

User supplied hosd...
Android Image Kitchen - UnpackImg Script
by osm0sis @ xda-developers

Supplied image: hosd_verified.img

Setting up work folders...

Splitting image to "split_img/"...
BOARD_KERNEL_CMDLINE bootopt=64S3,32N2,64N2
BOARD_KERNEL_BASE 40078000
BOARD_NAME hosd:0
BOARD_PAGE_SIZE 2048
BOARD_KERNEL_OFFSET 00008000
BOARD_RAMDISK_OFFSET 03f88000
BOARD_TAGS_OFFSET 0df88000

Unpacking ramdisk to "ramdisk/"...

Compression used: gzip
15460 blocks

Done!

Attempting to generate keyfile
bruutveal
---------

SUCCESS!rcing key[loop 1]: 513408/626112...
Successful bruutveal run, key written to: /home/mars3712/Desktop/HTC_RUU_Decrypt_Tool_3.0.1/OUT/tmp/use_keyfile.bin
bruutveal keyfile has been successfully generated '/home/mars3712/Desktop/HTC_RUU_Decrypt_Tool_3.0.1/OUT/tmp/use_keyfile.bin'
Working directory cleaned.
Finished: Successfully found decryption key, copied to 'tmp/use_keyfile.bin'

Decrypting ZIP files

Decrypting (1/8) '01_dmp.zip'
Encrypted zip detected, running ruuveal...
ruuveal
-------

Decrypted RUU (zip) written to: /home/mars3712/Desktop/HTC_RUU_Decrypt_Tool_3.0.1/OUT/decrypted_zips/dec_01_dmp.zip
... immediate cleanup specified, deleting '01_dmp.zip'

Decrypting (2/8) '02_dmp.zip'
Encrypted zip detected, running ruuveal...
ruuveal
-------

Decrypted RUU (zip) written to: /home/mars3712/Desktop/HTC_RUU_Decrypt_Tool_3.0.1/OUT/decrypted_zips/dec_02_dmp.zip
... immediate cleanup specified, deleting '02_dmp.zip'

Decrypting (3/8) '03_dmp.zip'
Encrypted zip detected, running ruuveal...
ruuveal
-------

Decrypted RUU (zip) written to: /home/mars3712/Desktop/HTC_RUU_Decrypt_Tool_3.0.1/OUT/decrypted_zips/dec_03_dmp.zip
... immediate cleanup specified, deleting '03_dmp.zip'

Decrypting (4/8) '04_dmp.zip'
Encrypted zip detected, running ruuveal...
ruuveal
-------

Decrypted RUU (zip) written to: /home/mars3712/Desktop/HTC_RUU_Decrypt_Tool_3.0.1/OUT/decrypted_zips/dec_04_dmp.zip
... immediate cleanup specified, deleting '04_dmp.zip'

Decrypting (5/8) '05_dmp.zip'
Encrypted zip detected, running ruuveal...
ruuveal
-------

Decrypted RUU (zip) written to: /home/mars3712/Desktop/HTC_RUU_Decrypt_Tool_3.0.1/OUT/decrypted_zips/dec_05_dmp.zip
... immediate cleanup specified, deleting '05_dmp.zip'

Decrypting (6/8) '06_dmp.zip'
Encrypted zip detected, running ruuveal...
ruuveal
-------

Decrypted RUU (zip) written to: /home/mars3712/Desktop/HTC_RUU_Decrypt_Tool_3.0.1/OUT/decrypted_zips/dec_06_dmp.zip
... immediate cleanup specified, deleting '06_dmp.zip'

Decrypting (7/8) '07_dmp.zip'
Encrypted zip detected, running ruuveal...
ruuveal
-------

Decrypted RUU (zip) written to: /home/mars3712/Desktop/HTC_RUU_Decrypt_Tool_3.0.1/OUT/decrypted_zips/dec_07_dmp.zip
... immediate cleanup specified, deleting '07_dmp.zip'

Decrypting (8/8) '08_dmp.zip'
Encrypted zip detected, running ruuveal...
ruuveal
-------

Decrypted RUU (zip) written to: /home/mars3712/Desktop/HTC_RUU_Decrypt_Tool_3.0.1/OUT/decrypted_zips/dec_08_dmp.zip
... immediate cleanup specified, deleting '08_dmp.zip'
Finished: Successfully decrypted zips to 'decrypted_zips'

Unzipping decrypted ZIP files

Unzipping decrypted zip: (1/8) 'dec_01_dmp.zip'
Archive: dec_01_dmp.zip
inflating: /home/mars3712/Desktop/HTC_RUU_Decrypt_Tool_3.0.1/OUT/firmware/android-info.txt
inflating: /home/mars3712/Desktop/HTC_RUU_Decrypt_Tool_3.0.1/OUT/firmware/apppreload.img
inflating: /home/mars3712/Desktop/HTC_RUU_Decrypt_Tool_3.0.1/OUT/firmware/cota.img
inflating: /home/mars3712/Desktop/HTC_RUU_Decrypt_Tool_3.0.1/OUT/firmware/gpt_main_16g.img
inflating: /home/mars3712/Desktop/HTC_RUU_Decrypt_Tool_3.0.1/OUT/firmware/gpt_main_32g.img
inflating: /home/mars3712/Desktop/HTC_RUU_Decrypt_Tool_3.0.1/OUT/firmware/gpt_main_64g.img
inflating: /home/mars3712/Desktop/HTC_RUU_Decrypt_Tool_3.0.1/OUT/firmware/android-info2.txt
inflating: /home/mars3712/Desktop/HTC_RUU_Decrypt_Tool_3.0.1/OUT/firmware/preloader.bin
inflating: /home/mars3712/Desktop/HTC_RUU_Decrypt_Tool_3.0.1/OUT/firmware/lk_verified.bin
inflating: /home/mars3712/Desktop/HTC_RUU_Decrypt_Tool_3.0.1/OUT/firmware/hosd_verified.img
inflating: /home/mars3712/Desktop/HTC_RUU_Decrypt_Tool_3.0.1/OUT/firmware/MT6795_Android_scatter.txt
inflating: /home/mars3712/Desktop/HTC_RUU_Decrypt_Tool_3.0.1/OUT/firmware/CheckSum_Gen
inflating: /home/mars3712/Desktop/HTC_RUU_Decrypt_Tool_3.0.1/OUT/firmware/libflashtool.so
inflating: /home/mars3712/Desktop/HTC_RUU_Decrypt_Tool_3.0.1/OUT/firmware/boot_verified.img
inflating: /home/mars3712/Desktop/HTC_RUU_Decrypt_Tool_3.0.1/OUT/firmware/recovery_verified.img
inflating: /home/mars3712/Desktop/HTC_RUU_Decrypt_Tool_3.0.1/OUT/firmware/tee1.img
inflating: /home/mars3712/Desktop/HTC_RUU_Decrypt_Tool_3.0.1/OUT/firmware/tee2.img
inflating: /home/mars3712/Desktop/HTC_RUU_Decrypt_Tool_3.0.1/OUT/firmware/secro_verified.img
inflating: /home/mars3712/Desktop/HTC_RUU_Decrypt_Tool_3.0.1/OUT/firmware/logo_verified.bin
inflating: /home/mars3712/Desktop/HTC_RUU_Decrypt_Tool_3.0.1/OUT/firmware/pg2fs_ship_signkey.img
inflating: /home/mars3712/Desktop/HTC_RUU_Decrypt_Tool_3.0.1/OUT/firmware/sensor_hub.img
inflating: /home/mars3712/Desktop/HTC_RUU_Decrypt_Tool_3.0.1/OUT/firmware/tp_HMX852XE_MAIN.img
inflating: /home/mars3712/Desktop/HTC_RUU_Decrypt_Tool_3.0.1/OUT/firmware/tp_HMX852XE_SECOND.img
inflating: /home/mars3712/Desktop/HTC_RUU_Decrypt_Tool_3.0.1/OUT/firmware/Checksum.ini
inflating: /home/mars3712/Desktop/HTC_RUU_Decrypt_Tool_3.0.1/OUT/firmware/backup_android-info.txt
... immediate cleanup specified, deleting 'dec_01_dmp.zip'

Unzipping decrypted zip: (2/8) 'dec_02_dmp.zip'
Archive: dec_02_dmp.zip
inflating: /home/mars3712/Desktop/HTC_RUU_Decrypt_Tool_3.0.1/OUT/firmware/system.img_00
... immediate cleanup specified, deleting 'dec_02_dmp.zip'

Unzipping decrypted zip: (3/8) 'dec_03_dmp.zip'
Archive: dec_03_dmp.zip
inflating: /home/mars3712/Desktop/HTC_RUU_Decrypt_Tool_3.0.1/OUT/firmware/system.img_01
... immediate cleanup specified, deleting 'dec_03_dmp.zip'

Unzipping decrypted zip: (4/8) 'dec_04_dmp.zip'
Archive: dec_04_dmp.zip
inflating: /home/mars3712/Desktop/HTC_RUU_Decrypt_Tool_3.0.1/OUT/firmware/system.img_02
... immediate cleanup specified, deleting 'dec_04_dmp.zip'

Unzipping decrypted zip: (5/8) 'dec_05_dmp.zip'
Archive: dec_05_dmp.zip
inflating: /home/mars3712/Desktop/HTC_RUU_Decrypt_Tool_3.0.1/OUT/firmware/system.img_03
... immediate cleanup specified, deleting 'dec_05_dmp.zip'

Unzipping decrypted zip: (6/8) 'dec_06_dmp.zip'
Archive: dec_06_dmp.zip
inflating: /home/mars3712/Desktop/HTC_RUU_Decrypt_Tool_3.0.1/OUT/firmware/system.img_04
... immediate cleanup specified, deleting 'dec_06_dmp.zip'

Unzipping decrypted zip: (7/8) 'dec_07_dmp.zip'
Archive: dec_07_dmp.zip
inflating: /home/mars3712/Desktop/HTC_RUU_Decrypt_Tool_3.0.1/OUT/firmware/system.img_05
... immediate cleanup specified, deleting 'dec_07_dmp.zip'

Unzipping decrypted zip: (8/8) 'dec_08_dmp.zip'
Archive: dec_08_dmp.zip
inflating: /home/mars3712/Desktop/HTC_RUU_Decrypt_Tool_3.0.1/OUT/firmware/cache.img
inflating: /home/mars3712/Desktop/HTC_RUU_Decrypt_Tool_3.0.1/OUT/firmware/userdata.img
... immediate cleanup specified, deleting 'dec_08_dmp.zip'
Finished: Successfully unzipped files to 'firmware'

Moving system img files
(1/6) moving system.img_00
(2/6) moving system.img_01
(3/6) moving system.img_02
(4/6) moving system.img_03
(5/6) moving system.img_04
(6/6) moving system.img_05
Finished: Successfully moved system img files to 'decrypted_system'

Attempting to create system.img
Multi-part system images (6 parts)
Sparse Image detected, using simg2img
Please be patient, this can take several minutes...
Processing file 'system.img_00'...
Processing file 'system.img_01'...
Processing file 'system.img_02'...
Processing file 'system.img_03'...
Processing file 'system.img_04'...
Processing file 'system.img_05'...
finished.
Finished: Successfully created system.img 'system/system.img'

Testing system.img...
e2fsck 1.42.9 (4-Feb-2014)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
system: 3932/243840 files (0.0% non-contiguous), 922072/975291 blocks
Finished: system.img successfully passed filesystem check

Adding boot.img to the system folder
Copying firmware/boot_verified.img to system/boot.img

Checking keyfile state
Moving keyfile to 2PS5_keyfile_2.15.709.6.bin

Restoring '2PS5IMG_E56_ML_DTUL_M60_SENSE7GP_hTC_Asia_TW_2.15.709.6_Radio_1.1550V70.2508.0121.ED[W.T]_release_471546_signed_2_4.zip' to normal folder

Removing unneeded work folders

INFO: RUU modelid: 2PS510000
INFO: RUU mainver: 2.15.709.6

Finished: Successfully extracted zip files to
'/home/mars3712/Desktop/HTC_RUU_Decrypt_Tool_3.0.1/OUT'