[GUIDE][UBUNTU]Decrypt HTC RUUs

Search This thread

an0ther

Senior Member
Sep 21, 2013
671
267
I tried this for the first time with an m7_ul ruu rom.zip. It seemed to work, but it made 5 zip files. Says it Large zip format detected containing 5 zip files. It made 5 zip files. I am just trying to make an ruu to flash with s-off. Thanks for any help. Great tool also. I hope I can make a flashable ruu with it. :)
 
Last edited:

moh19814

Senior Member
Dec 18, 2014
93
17
Hello guys :) this little guide will show you how to decrypt the HTC's RUUs already Unruued (sorry for the difficult language :D)
in few words we will decrypt the rom.zip obtained by unruuing a RUU, if you don't know how to unruu a RUU then follow my guide here
Also this tool is made by kmdm, he is the man :)! all credits goes to him.

Hi, can I use this method to decrypt RUU.zip file for the HTC Desire 510 or it is still limited to the listed devices.
I am asking because I followed the method and after entering the last command for decryption, I got the following:

Large zip format detected containing 6 zipfile(s)
invalid htc aes encrypted zip file!

Any suggestions?!! Thanks
 

blueberry60

Senior Member
Nov 13, 2010
1,182
894
I'm getting this error in terminal below that:
Code:
mberol@mberol-Aspire-5920G:~/Masaüstü/unshield/htc_tools/ruuveal$ make
depbase=`echo main.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
	gcc -DPACKAGE_NAME=\"ruuveal\" -DPACKAGE_TARNAME=\"ruuveal\" -DPACKAGE_VERSION=\"0.2.0\" -DPACKAGE_STRING=\"ruuveal\ 0.2.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_GETOPT_H=1 -DHAVE_PTHREAD_H=1 -DHAVE_STRING_H=1 -I.  -D_FORTIFY_SOURCE=0   -g -O2 -MT main.o -MD -MP -MF $depbase.Tpo -c -o main.o main.c &&\
	mv -f $depbase.Tpo $depbase.Po
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
In file included from main.c:26:0:
htcaes.h:3:25: fatal error: openssl/aes.h: Böyle bir dosya ya da dizin yok
 #include <openssl/aes.h>
                         ^
compilation terminated.
make: *** [main.o] Hata 1
mberol@mberol-Aspire-5920G:~/Masaüstü/unshield/htc_tools/ruuveal$
In addition to where do I have to copy rom.zip obtained by unruuing my RUU.exe ?
 

OptikCrash

New member
Sep 4, 2012
4
1
Olympia
Lil help?

I followed this tut and got to the point where I was to ruuveal and got this message...

Larege zip format detected containing 6 zipfile(s)
failed to generate htc aes keys
Segmentation fault (core dumped)

Not sure where to go from here. I figure I must have set something up incorrectly, but I don't know what or how to fix. Any ideas?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 9
    Hello guys :) this little guide will show you how to decrypt the HTC's RUUs already Unruued (sorry for the difficult language :D)
    in few words we will decrypt the rom.zip obtained by unruuing a RUU, if you don't know how to unruu a RUU then follow my guide here
    Also this tool is made by kmdm, he is the man :)! all credits goes to him.


    SUPPORTED DEVICES
    HTC One ST (cp2dtg)
    HTC One SU (cp2dug)
    HTC J Butterfly (deluxe_j)
    HTC J DNA (deluxe_u)
    HTC Butterfly (deluxe_ub1)
    HTC One XT (endeavor_td)
    HTC One X (T3) (endeavor_u)
    HTC One X+ (enrc2_u)
    HTC One X+ (enrc2b_u)
    HTC One X (S4) (evita)
    HTC One X+ LTE (evitare_ul)
    HTC Incredible 4G LTE (fireball)
    HTC One XC (jel_dd)
    HTC Evo 4G LTE (jewel)
    HTC One SV (k2_plc_cl)
    HTC One SV (k2_u)
    HTC One SV (k2_ul)
    HTC One U (m7_u)
    HTC One UL (m7_ul)
    HTC One WLS (m7_wls)
    HTC Desire SV (magnids)
    HTC Droid DNA (monarudo)
    HTC Desire X (proto)
    HTC Desire V (protodug)
    HTC T329t (prototd)
    HTC One VX (tc2)
    HTC One S (ville)


    WHAT DO I NEED?
    1- Ubuntu (i'm on ubuntu 13.04 but also other Linux based distros should work)
    2- rom.zip (follow the above guide if you don't have it)


    HOW TO INSTALL THE TOOL
    Ok guys now we are going to install the tool
    Create a folder named htc_tools (if you already did it in the previous guide then you can use it)

    Code:
    $ mkdir htc_tools

    navigate to that folder and download the source of the tool by typing
    Code:
    $ git clone https://github.com/kmdm/ruuveal.git



    ok now we have to set up this tool
    Code:
    $ ./autogen.sh
    $ ./configure
    $ make









    Allright, now you are ready to use this tool!
    Code:
    $ ./ruuveal --device [device code name] rom.zip (name of rom.zip decrypted).zip

    for example



    and now you're done :) you can find the file in the ruuveal folder!
    2
    Good guide! :)

    It can help some guys with the first look in HTC devices :)
    1
    yeah, HTC has changed the encryption method with the latest HTC One RUUs so it is also needed for the Devs that are jumping onto it ;)
    1
    Thanks Matt, great guide, anyway, i will pm you again for this task:p:D

    SkyDragon© You Are Not Allow To Lick My Banner, Stay Away!
    1
    Thanks Matt, great guide, anyway, i will pm you again for this task:p:D

    SkyDragon© You Are Not Allow To Lick My Banner, Stay Away!

    ahaha no problem :)