[GUIDE][UBUNTU]Decrypt HTC RUUs

Search This thread

matt95

Senior Member
Aug 8, 2010
5,962
2,370
Milan
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!
 
Last edited:

matt95

Senior Member
Aug 8, 2010
5,962
2,370
Milan
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 ;)
 
  • Like
Reactions: dragonesdenano

ravike14

Senior Member
Feb 9, 2013
1,307
1,077
Colombo
when i insert ./autogen.sh i get this error

./autogen.sh: line 10: autoreconf: command not found
it's my 1st time i'm kinda lost in here :/


EDIT: all good i i forgot to installl the libmcrypt-dev package that was the reason..
 
Last edited:

tqf

Senior Member
Aug 17, 2012
50
13
Targoviste
desire hd?

hi matt95,

could you please make this available for Desire HD? it it's not too much hassle?
thank you!
 

matt95

Senior Member
Aug 8, 2010
5,962
2,370
Milan
hi matt95,

could you please make this available for Desire HD? it it's not too much hassle?
thank you!

That's bigger than me mate :) i didn't make this tool so i cannot make it available for the DHD. I'm sorry to tell this but probably you won't see this for it cause it is an outdated device nowadays...
 

tqf

Senior Member
Aug 17, 2012
50
13
Targoviste
well, that's unfortunate! :(
BUT if I open this rom.zip, get the system.img and flash it through the recovery WILL it work? what are the risks of doing this?
 

Guich

Senior Member
May 18, 2012
4,412
3,334
Somewhere
well, that's unfortunate! :(
BUT if I open this rom.zip, get the system.img and flash it through the recovery WILL it work? what are the risks of doing this?

Nope.
1) you can't flash an image (.img) in recovery
2) There are a lot of risk, don't so this.
3) Rom.zip is the base for develop a custom rom.
You have to extract the folder with all the folder and libs from it...

Sent from One with XDAHoloApp
 

tqf

Senior Member
Aug 17, 2012
50
13
Targoviste
OK, I see. But what if I extract and then repack the contents of system.img?
Sorry for being so pushy and/or ask stupid questions but I want to have some kind of closure of this issue. :)

Thanks!
 

Guich

Senior Member
May 18, 2012
4,412
3,334
Somewhere
OK, I see. But what if I extract and then repack the contents of system.img?
Sorry for being so pushy and/or ask stupid questions but I want to have some kind of closure of this issue. :)

Thanks!

When you have the rom.zip you can build a rom with the kitchen or other thing..
Which issue?
 

tqf

Senior Member
Aug 17, 2012
50
13
Targoviste
When you have the rom.zip you can build a rom with the kitchen or other thing..
Which issue?

The issue is if I can flash an original HTC rom... not the entire RUU, as it contains some other stuff which I don't want to change... recovery, splash, Hboot, radio...
the reason is, when I flash a new ROM and something doesn't work or stops working, I would flash this "stock" rom and test whether the hardware works or not. I know there is Android revolution HD which is basically a stock rom, but it has also some tweaks which I'm not interested in.
Hope I'm clear about what I want to accomplish.
 

Guich

Senior Member
May 18, 2012
4,412
3,334
Somewhere
The issue is if I can flash an original HTC rom... not the entire RUU, as it contains some other stuff which I don't want to change... recovery, splash, Hboot, radio...
the reason is, when I flash a new ROM and something doesn't work or stops working, I would flash this "stock" rom and test whether the hardware works or not. I know there is Android revolution HD which is basically a stock rom, but it has also some tweaks which I'm not interested in.
Hope I'm clear about what I want to accomplish.

So there isn't any issue.
And we are totally ot here, because this thread talk about how to decrypt a ruu.
When you have the rom.zip, you have to use this kitchen and build the stock rom.

p.s. Probably the rom you flashed aren't fully compatible with the hboot/kernel that you have.
In fact, is better use the full ruu.
If you're s-off, is the better choise, because you can flash the splash screen, the hboot and other thing in 2 min ;)

Mine is only an advice :)
 

demkantor

Inactive Recognized Contributor
Nov 10, 2011
6,860
3,765
mpls
If once extracted you end up with a system.img you can flash this through fastboot just fine. You can also change the contents inside, remove and add things but it may not flash unless you are s-off.
And you can flash an image in recovery but you need to create the proper updater-script to do so.


Sent from my Nexus 4 using Tapatalk 2
 
M

Modding.MyMind

Guest
Nice guide. I had to do it a little differently (running on Ubuntu 13.10 x64). Now if only I can find the right places in the open source to manually add K2_CL. Been reviewing the updates made on git and reviewing all the most recent changes given by dates in hopes to see what is added when support for a device has been implemented. Issue has been sent, but I'm getting impatient. Really need it for my project. :-/
 

an0ther

Senior Member
Sep 21, 2013
671
267
What would it take to get this to work with the htc one m8? I would like to decrypt the rom.zip out of the official at&t 1.58 ruu. I have already grabbed the rom.zip out of the exe, but seeing as m8 is not listed here I was wondering if m7 or anything else might work for this. A lot of people are asking for the decrypted ruu so they can flash through fastboot. Thanks in advance for any advice.
 
M

Modding.MyMind

Guest
What would it take to get this to work with the htc one m8? I would like to decrypt the rom.zip out of the official at&t 1.58 ruu. I have already grabbed the rom.zip out of the exe, but seeing as m8 is not listed here I was wondering if m7 or anything else might work for this. A lot of people are asking for the decrypted ruu so they can flash through fastboot. Thanks in advance for any advice.

You need to grab the ruu for that specific device and you also need to grab your devices' HBoot image. Send both to the developer and he can add support.

Sent from my C525c using Tapatalk
 

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 :)