FORUMS

XDA Picks: Best Apps of the Week (Apr 25 – May 1)

Apps are at the front and center of any smartphone experience, and with over a … more

Lollipop Xposed Framework Alpha 4 Released

Good news to all Xposed Framework fans. XDA Senior Recognized … more

Do You Rock Two Phones?

A few people in the comments were surprised to find out that a number of the XDA staff actually use two phones … more

Brand Loyalty: OEMs Giveth and Then Taketh Away

The majority of users here at XDA will feel fierce brand loyalty for a company, whether … more
Post Reply Subscribe to Thread Email Thread

[TUTORIAL] How to unpack Android ROMs on Windows

19th June 2010, 01:05 PM |#1  
nikoan89's Avatar
OP Senior Member
Flag Bari
Thanks Meter: 6
 
More

As all of you well know, Android is an open source operating system and as such the development and modding are the bread and butter for devices with this OS.
In this thread I'll explain how to extract the firmware partition containing the operating system and programs with a Windows PC.
The purpose of this thread is to share knowledge, so feel free to help me to dump device such as Acer, Samsung and Sony Ericsson, expecially I need someone that help me with Acer's .bin
Last edited by nikoan89; 19th June 2010 at 01:59 PM.
The Following User Says Thank You to nikoan89 For This Useful Post: [ View ]
 
 
19th June 2010, 01:05 PM |#2  
nikoan89's Avatar
OP Senior Member
Flag Bari
Thanks Meter: 6
 
More
1. Unpack the system partition from an HTC ROM

What you need:

Download and install all the tools (Unyaffs it's a prompt executable, so it isn't installable)

Now you need an HTC ROM, download one at your pleasure from Conflipper's site: http://www.shipped-roms.com/shipped/

Once you have downloaded it, right click on the ROM executable and select Extract with UniExtract in the subfolder (v.fig1), select Isxunpack extraction and then clik on the OK button (v. fig2)



Now in the subfolder you have the various files which make up the executable, including data1.cab which is the file that we are more interested in (do not delete other files).
Open ZipScan, go to File -> Open Archive File... and browse until select the data1.cab. You should see something like this:



Extract from the cab only the ROM.zip and open this file with any archives extraction software (eg WinRAR or the same ZipScan). Inside you have various .img files which make up the ROM, but for the purposes of this guide, we need only the system.img.

Copy in a blank folder this file, unyaffs.exe and cygwin1.dll (you'll find it in C:\Cygwin\Bin).

Now open Cygwin from Start -> All Programs to ensure that its functions are integrated to the Windows Prompt and close it.

Open the Windows Prompt (Start -> All Programs -> Accessories) and position yourself in the folder containing the files using the cd command or alternatively install this .reg which allow you to open the Windows Prompt in the chosen folder by command in the context menu (Right click on the folder -> Command Prompt Here).

Now the last thing that you have to do is to give the extraction command: unyaffs system.img

Et voilą, now you have the folders containing the extracted system.

Enjoy
The Following User Says Thank You to nikoan89 For This Useful Post: [ View ]
19th June 2010, 01:06 PM |#3  
nikoan89's Avatar
OP Senior Member
Flag Bari
Thanks Meter: 6
 
More
2. Unpack the system partition from a Motorola ROM

°°°Coming Soon°°°
19th June 2010, 01:07 PM |#4  
nikoan89's Avatar
OP Senior Member
Flag Bari
Thanks Meter: 6
 
More
°°°reserved°°°
19th June 2010, 01:08 PM |#5  
nikoan89's Avatar
OP Senior Member
Flag Bari
Thanks Meter: 6
 
More
°°°2nd reserved°°°
19th June 2010, 01:09 PM |#6  
nikoan89's Avatar
OP Senior Member
Flag Bari
Thanks Meter: 6
 
More
°°°3rd reserved°°°
21st June 2010, 03:24 AM |#7  
roirraW "edor" ehT's Avatar
Senior Member
Flag Columbus, OH
Thanks Meter: 2,231
 
More
Thank you! I had found a different way but this will save some steps.
21st July 2010, 07:09 PM |#8  
Junior Member
Thanks Meter: 0
 
More
mark

i will see

!!!!!!!!!!!!!!!!111
25th July 2010, 03:08 PM |#9  
ddotpatel's Avatar
Senior Member
Flag Leeds, UK
Thanks Meter: 7
 
More
Someone once told me you can just run the .exe file, let it open, use windows to search for the rom.zip that would have been extracted into a temp folder, drag&drop to another location, then cancel the .exe again.

Haven't tried this myself though.

What else can you show us in windows?... Is it at all possible to extract ramdisc thingies from kernels so we can apply one custom kernel to other roms ourself?
... or should I bite the bullet and install/learn how to use ubuntu?
26th July 2010, 02:14 PM |#10  
NeoS's Avatar
Senior Moderator / Recognized Developer - There is no N00b...
Flag Somewhere in NL
Thanks Meter: 851
 
More
Nice initiative. Finish the guides and I'll see to it that it's stickied.
Post Reply Subscribe to Thread

Tags
android, dump, system.img
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes