MultiROM Makes its Way Over to the HTC One (M8)

While browsing our forum, you will undoubtedly find more than a few enticing ROMs available … more

Welcome to the New XDA-Developers Portal!

You may recall that a few weeks ago, we opened up the XDA-2015 forum themesto intrepid users … more

An Android Enthusiast’s Apple iPhone 6 Challenge

The media has gone batty again over Apple “revolutionizing” smartphones. … more

Sony to Extend its AOSP Program to Other Devices

Sony will be offering its users the possibility to use AOSP ROMs as an alternative to the … more
Post Reply

[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: 5
 
423 posts
Join Date:Joined: Sep 2008
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: 5
 
423 posts
Join Date:Joined: Sep 2008
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: 5
 
423 posts
Join Date:Joined: Sep 2008
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: 5
 
423 posts
Join Date:Joined: Sep 2008
More
°°°reserved°°°
19th June 2010, 01:08 PM   |  #5  
nikoan89's Avatar
OP Senior Member
Flag Bari
Thanks Meter: 5
 
423 posts
Join Date:Joined: Sep 2008
More
°°°2nd reserved°°°
19th June 2010, 01:09 PM   |  #6  
nikoan89's Avatar
OP Senior Member
Flag Bari
Thanks Meter: 5
 
423 posts
Join Date:Joined: Sep 2008
More
°°°3rd reserved°°°
21st June 2010, 03:24 AM   |  #7  
roirraW "edor" ehT's Avatar
Senior Member
Flag Columbus, OH
Thanks Meter: 1,738
 
3,370 posts
Join Date:Joined: May 2010
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
 
9 posts
Join Date:Joined: Sep 2008
mark

i will see

!!!!!!!!!!!!!!!!111
25th July 2010, 03:08 PM   |  #9  
ddotpatel's Avatar
Senior Member
Flag Leeds, UK
Thanks Meter: 7
 
1,161 posts
Join Date:Joined: Mar 2010
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: 843
 
3,324 posts
Join Date:Joined: Jan 2008
Donate to Me
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
Display Modes


Top Threads in Android by ThreadRank