[DEV_TOOL] HTC ROM EXTRACTOR * UNRUU | DECRYPT/ENCRYPT rom.zip I REPACK system.img *

A.S._id

Inactive Recognized Developer
Sep 21, 2010
1,211
2,574
153
[DEV_TOOL] HTC ROM EXTRACTOR​


Tools for working with firmware HTC in LINUX

fit Kenny Millington Source kmdm

(HOW TO)
PUSH THE BUTTON


! Requirements (libunshield v0.7 or higher):

Code:
$ sudo apt-get install automake
$ git clone https://github.com/kmdm/unshield.git
$ cd unshield/
$ git checkout -t origin/v18\_wip
$ ./bootstrap
$ ./configure --prefix=/usr
$ make
$ sudo make install


1. Extract from the zip and put the RUUXXXXXXXXX.exe to a folder with the tool;
2. Run in Terminal rom-extractor file and select the option:

MAIN MENU

u - UNRUU EXE TO ZIP - extract from the file rom.zip RUU.exe
d - DECRYPT MENU > DECRYPT MENU ROM.ZIP > OUTPUT.ZIP
r - REPACK MENU > REPACK MENU
e - ENCRYPT MENU >
c - CLEAN TOOL - Unmount and remove temporary files
x - exit

> DECRYPT MENU ROM.ZIP > OUTPUT.ZIP

1 ... 24 - decode the file rom.zip output.zip (select the target device)

> REPACK MENU

e - EXTRACT ZIP ROM - to extract the firmware from the ROM folder output.zip
m - MOUNT SYSTEM (EXT4 ONLY) - mount the partition image system.img in the folder system (you can add \ remove the firmware files)
d - DESPARSE SYSTEM.IMG (EXT4 ONLY) - uncompress the sparse image system.img (depending on the device - some zhaty, some not (determined EXPERIMENTAL)) and mount the partition image system.img in the folder system (you can add \ remove the firmware files)
s - MAKE SPARSE SYSTEM.IMG (EXT4 ONLY) - the creation of a sparse image sistem.img (you must specify the size of the partition XXXXM (device) - for example ONE X = 1280M)
n - UNMOUNT SYSTEM - dismount and delete the folder system
z - ADD SYSTEM.IMG > OUTPUT.ZIP - add new edited system.img into output.zip

> ENCRYPT MENU OUTPUT.ZIP > ROM.ZIP

1 ... 24 - create encrypt new rom.zip from output.zip



 

Attachments

Last edited:

lauri_ylonen

Senior Member
Mar 5, 2013
229
14
0
hannover
[DEV_TOOL] HTC ROM EXTRACTOR​


Tools for working with firmware HTC in LINUX

fit Kenny Millington Source

(HOW TO)
PUSH THE BUTTON


! Requirements (libunshield v0.7 or higher):

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

1. Extract from the zip and put the firmware. Exe to a folder with the tool;
2. Run in Terminal rom-extractor file and select the option:

u - extract from the file rom.zip RUU.exe
1 ... 21 - decode the file rom.zip output.zip (select the target device)
e - to extract the firmware from the ROM folder output.zip
m - mount the partition image system.img in the folder system (you can add \ remove the firmware files)
n - dismount and delete the folder system
c - Clean all tools
x - exit
d - uncompress the sparse image system.img (depending on the device - some zhaty, some not (determined EXPERIMENTAL)) and mount the partition image system.img in the folder system (you can add \ remove the firmware files)
s - the creation of a sparse image sistem.img (you must specify the size of the partition XXXXM (device) - for example ONE X = 1280M)




i can not work and i can not runnig
 

Attachments

A.S._id

Inactive Recognized Developer
Sep 21, 2010
1,211
2,574
153
Are there plans to add the One S?

Nm. Just looked at the source.... Oops.
INFO FOR ALL...
If your device is not supported and you would like it supported please open an issue in the tracker with the device name, codename and a link to the most recent hboot file for the device. (Not a link to the full RUU!)
Kenny Milington https://github.com/kmdm/ruuveal

anything more?.. :)

I promise to add new binaries in my instrument as we update source :)
 
Last edited:

A.S._id

Inactive Recognized Developer
Sep 21, 2010
1,211
2,574
153
Fixed a typo in paragraph 21
HTC One VX (tc2) > HTC One S (ville)
add
HTC_ROM-EXTRACTOR_v.0.0.3_x64
 
Last edited:

andrewschumi

Senior Member
Aug 2, 2012
85
70
0
it seems that I'm doing something wrong.

[email protected]:~$ git clone https://github.com/kmdm/unshield.git
Cloning into 'unshield'...
remote: Counting objects: 569, done.
remote: Compressing objects: 100% (208/208), done.
remote: Total 569 (delta 370), reused 545 (delta 346)
Receiving objects: 100% (569/569), 116.31 KiB | 204 KiB/s, done.
Resolving deltas: 100% (370/370), done.
[email protected]:~$ cd unshield/
[email protected]:~/unshield$ git checkout -t origin/v18\_wip
Branch v18_wip set up to track remote branch v18_wip from origin.
Switched to a new branch 'v18_wip'
[email protected]:~/unshield$ ./bootstrap
Creating configure.ac...done.
+ aclocal -I m4
./bootstrap: 29: ./bootstrap: aclocal: not found
[email protected]:~/unshield$
can anyone help?
Maybe a more step-bystep guide,
Sorry for been noob
 

Tilde88

Senior Member
Nov 5, 2008
2,245
1,522
183
ADDED v.0.0.5

REBUILD TOOL
ADDED ENCRYPT MENU!!!
Could you please help? unruu never completes. It gives me this

Extracting temporary files...
Extracting rom zip files...
./unruu_exe: line 8: 4379 Aborted (core dumped) ./unruu ruu.exe
failed to open source zip: No such file or directory

That last line fails because decrypt is looking for a zip that was never made.
If i do ./unruu ruu.exe , I am given the following
[email protected]:~/Desktop/HTC_ROM-EXTRACTOR_v.0.0.5/tools$ ./unruu ruu.exe
Extracting temporary files...
Extracting rom zip files...
Aborted (core dumped)
this was done as root with the same result.

Perhaps I need to switch to all i386 binaries? Ill try that, but i was trying to avoid it, as it will break my current nvidia driver setup. ohwell
 
Last edited:

A.S._id

Inactive Recognized Developer
Sep 21, 2010
1,211
2,574
153
Could you please help? unruu never completes. It gives me this

Extracting temporary files...
Extracting rom zip files...
./unruu_exe: line 8: 4379 Aborted (core dumped) ./unruu ruu.exe
failed to open source zip: No such file or directory

That last line fails because decrypt is looking for a zip that was never made.
If i do ./unruu ruu.exe , I am given the following

this was done as root with the same result.

Perhaps I need to switch to all i386 binaries? Ill try that, but i was trying to avoid it, as it will break my current nvidia driver setup. ohwell
Did you do this?

! Requirements (libunshield v0.7 or higher):

Code:
$ sudo apt-get install automake
$ git clone https://github.com/kmdm/unshield.git
$ cd unshield/
$ git checkout -t origin/v18\_wip
$ ./bootstrap
$ ./configure --prefix=/usr
$ make
$ sudo make install
 
Last edited:

Tilde88

Senior Member
Nov 5, 2008
2,245
1,522
183
Did you do this?

! Requirements (libunshield v0.7 or higher):

Code:
$ sudo apt-get install automake
$ git clone https://github.com/kmdm/unshield.git
$ cd unshield/
$ git checkout -t origin/v18\_wip
$ ./bootstrap
$ ./configure --prefix=/usr
$ make
$ sudo make install
;) lol yes of course
 

A.S._id

Inactive Recognized Developer
Sep 21, 2010
1,211
2,574
153
;) lol yes of course
OK, try to extract some different rom, may be you has problem from invalid ruu.exe..
and more, what size have your ruu.exe? - x32 systems, can't handle files largest 2GB...
 
Last edited:

Tilde88

Senior Member
Nov 5, 2008
2,245
1,522
183
OK, try to extract some different rom, may be you has problem from invalid ruu.exe..
and more, what size have your ruu.exe? - x32 systems, can't handle files largest 2GB...
im running x64, tried with x64 binaries, and i also tried using 32bit binaries. furthermore, my RUU is onlt 1.15GB. Also, x86 (there is not such thing as x32) can handle 3gb files.
thanks so much for the tool though, everything else workes, I juse used a script I found from another developer to get the .zip, then used your tool for all the other features.
 

A.S._id

Inactive Recognized Developer
Sep 21, 2010
1,211
2,574
153
im running x64, tried with x64 binaries, and i also tried using 32bit binaries. furthermore, my RUU is onlt 1.15GB. Also, x86 (there is not such thing as x32) can handle 3gb files.
thanks so much for the tool though, everything else workes, I juse used a script I found from another developer to get the .zip, then used your tool for all the other features.
Well then stay one variant - you doesn't installed "Unshield", try run terminal and input 'unsield'
here the correct conclusion:
Code:
~$ unshield
No action provided on command line.

Syntax:

	unshield [-c COMPONENT] [-d DIRECTORY] [-D LEVEL] [-g GROUP] [-i VERSION] [-GhlOrV] c|g|l|t|x CABFILE [FILENAME...]

Options:
	-c COMPONENT  Only list/extract this component
	-d DIRECTORY  Extract files to DIRECTORY
	-D LEVEL      Set debug log level
	                0 - No logging (default)
	                1 - Errors only
	                2 - Errors and warnings
	                3 - Errors, warnings and debug messages
	-g GROUP      Only list/extract this file group
	-h            Show this help message
	-i VERSION    Force InstallShield version number (don't autodetect)
	-j            Junk paths (do not make directories)
	-L            Make file and directory names lowercase
	-O            Use old compression
	-r            Save raw data (do not decompress)
	-V            Print copyright and version information

Commands:
	c             List components
	g             List file groups
	l             List files
	t             Test files
	x             Extract files

Other:
	CABFILE       The file to list or extract contents of
	FILENAME...   Optionally specify names of specific files to extract (wildcards are supported)
 

hacktrix2006

Senior Member
Jan 15, 2011
1,681
566
0
hi is there any chance to add the Desire HD. As i am trying to merge a Orange UK RUU for Desire DHD and they never released the last RUU with all the OTA's to make a New RUU with all the OTA's included.

I have made a Nandroid backup after all the OTA's was installed to the phone i even have all the OTA's just need a way to extract the rom.zip (easy from exe file not a issue) add the changed .img files such as radio, system, hboot recovery rcdata lib.img and make a new rom.zip and ruu.exe any way this can be done just tried with your tool and got invalid htc aes encrypted zip.

Thanks in advance