[GUIDE][UBUNTU]Unruu HTC RUUs

Search This thread

rthomas2150

Member
Feb 16, 2014
5
0
Hey can you please help me!?!?? I get to the ./bootstrap part then it says not found and nothing works can you help me please!?
 

Danny201281

Senior Member
Hi @matt95 I've been trying to set this up on ubuntu but have a problem installing libunshield.

checking for printf format string that works with size_t values... zi
checking if zlib is wanted... yes
checking for inflateEnd in -lz... no
checking zlib.h usability... no
checking zlib.h presence... no
checking for zlib.h... no
checking zlib in /usr... failed
configure: error: either specify a valid zlib installation with --with-zlib=DIR or disable zlib usage with --without-zlib

I've tried as the error suggests adding --with-zlib=DIR and --with-zlib=usr but still get the same where am i going wron?
Thanks in advance
 

Danny201281

Senior Member
If you are having problems compiling and it is saying you need libunshield 0.9 or higher this what I did.

create a .bashrc file and put the following in this file

PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig
export PKG_CONFIG_PATH

then save it, source .bashrc

and ./configure --prefix=/usr

then make

make install

and you should be good

What this does it takes the pkg_config for libunshield that is in /usr/local/lib and tells the configure program that the version is > 0.7

I have already installed libunshield by using git.. but still ve got same error:

checking for UNSHIELD... no
configure: error: unruu requires at least version 0.9 of libunshield

Im running ubuntu i think it's version 12.. could somoene tell me what command i should run to fix that issue, please


I've tried procedure in first quote but still get same error with zlib if i try and continue the process any way i get the same problem as in second quote :( really dont know what to do at this point :confused:

Maybe somebody is able to Unruu this for me? http://www.htc1guru.com/dld/ruu_m7_..._10-38r-1157-04l_release_353143_signed_2-exe/

I just need to extract Recovery System and if possible firmware from this ruu
Thanks for any help in advance
 

scrizo

Senior Member
Dec 3, 2010
85
9
I've tried procedure in first quote but still get same error with zlib if i try and continue the process any way i get the same problem as in second quote :( really dont know what to do at this point :confused:

Maybe somebody is able to Unruu this for me? http://www.htc1guru.com/dld/ruu_m7_..._10-38r-1157-04l_release_353143_signed_2-exe/

I just need to extract Recovery System and if possible firmware from this ruu
Thanks for any help in advance

Are you sure you created that bash file with code contents and sourced it if you're error is about version complaining otherwise you might need to update your zlibs

---------- Post added at 06:21 PM ---------- Previous post was at 06:17 PM ----------

Please try the following as you do not have the correct zlib installed

sudo apt-get install --reinstall zlibc zlib1g zlib1g-dev


Hi @matt95 I've been trying to set this up on ubuntu but have a problem installing libunshield.

checking for printf format string that works with size_t values... zi
checking if zlib is wanted... yes
checking for inflateEnd in -lz... no
checking zlib.h usability... no
checking zlib.h presence... no
checking for zlib.h... no
checking zlib in /usr... failed
configure: error: either specify a valid zlib installation with --with-zlib=DIR or disable zlib usage with --without-zlib

I've tried as the error suggests adding --with-zlib=DIR and --with-zlib=usr but still get the same where am i going wron?
Thanks in advance
 

Danny201281

Senior Member
Are you sure you created that bash file with code contents and sourced it if you're error is about version complaining otherwise you might need to update your zlibs

---------- Post added at 06:21 PM ---------- Previous post was at 06:17 PM ----------

Please try the following as you do not have the correct zlib installed

sudo apt-get install --reinstall zlibc zlib1g zlib1g-dev

Thanks man that seems to have done the trick :) but now i get this

Code:
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for UNSHIELD... no
configure: error: unruu requires at least version 0.9 of libunshield

so i guess i messed up with the .bashrc file
 

scrizo

Senior Member
Dec 3, 2010
85
9
Now you need to see my previous post regarding the .bashrc file and include this in it

PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig
export PKG_CONFIG_PATH

then save the file

and make sure to run source ~/.bashrc

and ./configure --prefix=/usr

then make

make install

and it should be set for you.

Thanks man that seems to have done the trick :) but now i get this

Code:
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for UNSHIELD... no
configure: error: unruu requires at least version 0.9 of libunshield

so i guess i messed up with the .bashrc file
 

Danny201281

Senior Member
Now you need to see my previous post regarding the .bashrc file and include this in it

PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig
export PKG_CONFIG_PATH

then save the file

and make sure to run source ~/.bashrc

and ./configure --prefix=/usr

then make

make install

and it should be set for you.
Thanks once again, there was a typo in my previous bashrc so I copied and pasted it in and sourced it and it seems to have done the job :)

Now I'm getting a recursive changes failed error something about being unable to remove x.x.x.x lib from /usr permission denied.

Then 4 or 5 repeated recursive changes failed errors when I run make install. Unfortunately I've been ejected from my living Room while the missis get the little one settled for bed so didn't get a chance to read or research it yet but I'm almost there thanks for the help so far :highfive:

Sent from my HTC One M7 ARHD 71.1 (Minus Purple tint) :D using TapaTalk
 

Danny201281

Senior Member
Here's my new error

Code:
/bin/bash ../libtool   --mode=install /usr/bin/install -c   libunshield.la '/usr/lib'
libtool: install: /usr/bin/install -c .libs/libunshield.so.0.0.0 /usr/lib/libunshield.so.0.0.0
/usr/bin/install: cannot remove `/usr/lib/libunshield.so.0.0.0': Permission denied
make[3]: *** [install-libLTLIBRARIES] Error 1
make[3]: Leaving directory `/home/daniel/android/unshield/lib'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory `/home/daniel/android/unshield/lib'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/daniel/android/unshield/lib'
make: *** [install-recursive] Error 1
Managed to get through this with

Code:
sudo make install
 
Last edited:

Danny201281

Senior Member
After starting fom scratch all was going well but i was still getting this
Code:
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for UNSHIELD... no
configure: error: unruu requires at least version 0.9 of libunshield

eventually got it to work after installing libunshield with this

Code:
$ git clone https://github.com/twogood/unshield.git
$ cd unshield/
$ ./bootstrap
$ ./configure --prefix=/usr
$ make
$ sudo make install

so i have my rom.zip now off to the decrypt thread :)

Thanks for the help @scrizo and for the tools @matt95 :good:
 
  • Like
Reactions: matt95

lpsrl

New member
Mar 15, 2014
3
0
good . I use.

Code:
root::k-five ~/unruu # ./unruu RUU_ENRC2B_U_JB_45_hTC_Asia_WWE_1.17.707.1_Radio_3.1204.168.32_release_299722_signed.exe
Extracting temporary files...
Extracting rom zip files...
Extracting rom.zip...done.
Cleaning up...
Done!

Code:
root::k-five ~/unruu/romhtc # unzip rom.zip
Archive:  rom.zip
warning [rom.zip]:  384 extra bytes at beginning or within zipfile
  (attempting to process anyway)
file #1:  bad zipfile offset (local header sig):  384
  (attempting to re-compensate)
file #1:  bad zipfile offset (local header sig):  384
file #2:  bad zipfile offset (local header sig):  941686
  (attempting to re-compensate)
file #2:  bad zipfile offset (local header sig):  941686
file #3:  bad zipfile offset (local header sig):  942275
file #4:  bad zipfile offset (local header sig):  942406
  inflating: recovery_signed.img
  error:  invalid compressed data to inflate
  inflating: system.img
  error:  invalid compressed data to inflate
  inflating: userdata_32g.img
  error:  invalid compressed data to inflate
  inflating: splash1.nb0
  inflating: tp.img
  inflating: ramdisk.img
  inflating: wlan.img
  inflating: rawpt_16g.img
  inflating: rawpt_32g.img
  inflating: pg3fs_spcustom.img
  inflating: u32g.hdr
  inflating: u32gr.hdr
  inflating: u64g.hdr
  inflating: userdata_64g.img
  error:  invalid compressed data to inflate
  inflating: userdata_32g_resv.img
  error:  invalid compressed data to inflate
  inflating: rawpt_64g.img
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 14
    Hello guys, this is a very small guide on how to Unruu HTC official RUUs...
    the tool that we are going to use is not mine so all credits go to kmdm, he made this tool!
    i will just explain you how to install it and use it ;)



    WHAT DO I NEED? (I won't explain how to install 3-4-5-6-7, you can retrieve all the infos you need here)

    1- Ubuntu (i'm actually using Ubuntu 13.04 but pretty much every Linux based distro should work!)
    2- libunshield v0.7 or higher
    3- ADB & Fastboot installed (install the SDK and you're done)
    4- Python 2.6 or 2.7 (Android supports only this one)
    5- GNU Make 3.81 or higher ( i have the 3.82 version)
    6- JDK 6 (obviously!)
    7- Git 1.7 or higher

    8- Some experience with the terminal


    HOW TO INSTALL THE PACKAGE

    First we need to make sure that libunshield is installed on our system
    to install it you just have to type these commands
    Code:
    $ git clone https://github.com/kmdm/unshield.git
    $ cd unshield/
    $ git checkout -t origin/v18\_wip
    $ ./bootstrap
    $ ./configure --prefix=/usr
    $ make
    $ sudo make install
    after that you should have that package installed and you're ready to install the real tool


    HOW TO INSTALL THE TOOL

    Create a folder and name it htc_tools (just to make it easier) or whatever you want
    Code:
    $ mkdir htc_tools

    At this point you need to copy the folder of the tool from sources
    Code:
    $ git clone https://github.com/kmdm/unruu.git





    Now you want to type these commands
    Code:
    $ ./autogen.sh
    $ ./configure
    $ make
    $ sudo make install

    You should get something like this





    Ok now you're pretty much done!
    if you want to unruu a RUU you have to paste the RUU itself in the unruu folder and then you simply have to run the following command
    Code:
    $ ./unruu name_of_the_RUU.exe



    OK! you're done! now you should have a file in the unruu directory named rom.zip and that's the file you are looking for :)
    GOOD LUCK DEVS!
    3
    Also good this guide for some new guys! :)
    2
    Now you need to see my previous post regarding the .bashrc file and include this in it

    PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig
    export PKG_CONFIG_PATH

    then save the file

    and make sure to run source ~/.bashrc

    and ./configure --prefix=/usr

    then make

    make install

    and it should be set for you.

    Thanks man that seems to have done the trick :) but now i get this

    Code:
    checking for pkg-config... /usr/bin/pkg-config
    checking pkg-config is at least version 0.9.0... yes
    checking for UNSHIELD... no
    configure: error: unruu requires at least version 0.9 of libunshield

    so i guess i messed up with the .bashrc file
    2
    sudo ./unruu name_of_the_RUU.exe

    hi
    i need this unruu
    not exe,just for ubuntu
    i cant compile in ubuntu.


    Thanks

    Now i got it :D sorry, it took a bit

    I've attached the file
    2
    I've tried procedure in first quote but still get same error with zlib if i try and continue the process any way i get the same problem as in second quote :( really dont know what to do at this point :confused:

    Maybe somebody is able to Unruu this for me? http://www.htc1guru.com/dld/ruu_m7_..._10-38r-1157-04l_release_353143_signed_2-exe/

    I just need to extract Recovery System and if possible firmware from this ruu
    Thanks for any help in advance

    Are you sure you created that bash file with code contents and sourced it if you're error is about version complaining otherwise you might need to update your zlibs

    ---------- Post added at 06:21 PM ---------- Previous post was at 06:17 PM ----------

    Please try the following as you do not have the correct zlib installed

    sudo apt-get install --reinstall zlibc zlib1g zlib1g-dev


    Hi @matt95 I've been trying to set this up on ubuntu but have a problem installing libunshield.

    checking for printf format string that works with size_t values... zi
    checking if zlib is wanted... yes
    checking for inflateEnd in -lz... no
    checking zlib.h usability... no
    checking zlib.h presence... no
    checking for zlib.h... no
    checking zlib in /usr... failed
    configure: error: either specify a valid zlib installation with --with-zlib=DIR or disable zlib usage with --without-zlib

    I've tried as the error suggests adding --with-zlib=DIR and --with-zlib=usr but still get the same where am i going wron?
    Thanks in advance