kmdm / ruuveal

A HTC RUU decryption utility
GNU General Public License v3.0
57 stars 39 forks source link

HTC One M9 support addition #88

Open Sneakyghost opened 9 years ago

Sneakyghost commented 9 years ago

The HTC One M9 now uses appsboot instead of hboot (aboot) and it looks like the key is not stored in aboot anymore - i attempted a key extraction with bruutveal and got some fail message which i don't recall right now. However, talks around the xda-forum have been that the key might now live somewhere else, possibly in recovery. If you could kindly look into this please?

A RUU can be found here: http://forum.xda-developers.com/showpost.php?p=59557045&postcount=1 The aboot.img for 1.32.401.8 RUU is here: https://drive.google.com/file/d/0BzqWaJywIe10TnBWVUJNR0NjajA/view?usp=sharing

Notice: it appears the RUU's on that post are signed but not encrypted - I do expect HTC to go back to encryption though. These RUU's are initial release versions and might still be different.

Thanks.

shenye commented 9 years ago

They do seem to be encrypted, in a way that a lot of the images, including the likes of system.img, are hidden.

Sneakyghost commented 9 years ago

The images can all be extracted using 7zip 9.3x versions with the alternative "open with" command - inside these zips are 7 sub-zips which contain all images and can just be pulled out. The header of the zip is either wrong, does not follow standards or something. For this reason, a new htc_fastboot.exe is required to flash these too. The 2014 htc_fastboot is not able to parse the full zip. Some versions even crash.

kmdm commented 9 years ago

@Sneakyghost Indeed.

I've fixed a bug in ruuveal preventing the use of the dump option in this scenario in 8eb471c, so now this works:-

$ ./ruuveal -D 0PJAIMG_HIMA_UHL_L50_SENSE70_HTC_Europe_1.32.401.8_Radio_01.01_U11440261_56.02.50306G_2_F_release_425571_signed.zip out.zip

ruuveal

Large zip format detected containing 7 zipfile(s) Dumped (copied) zip file to: 01_out.zip Dumped (copied) zip file to: 02_out.zip Dumped (copied) zip file to: 03_out.zip Dumped (copied) zip file to: 04_out.zip Dumped (copied) zip file to: 05_out.zip Dumped (copied) zip file to: 06_out.zip Dumped (copied) zip file to: 07_out.zip

Sneakyghost commented 9 years ago

Thank you, Sir.