Backup+ Lets You Backup Your App Data on Android Lollipop

Even though Android 5.0 Lollipop hasn’t yet seen its official release, quite … more

TechTalk Compiles All the Android News You Need in One App

If you’re as obsessed with mobile devices as the vast majority of our forum … more

Android App Review: Google Inbox to Improve Your Life – XDA TV

Recently, Google+ exploded with the announcement of Google Inbox, as … more

Damp the LG G3 Thermal Throttling

As our mobile devices grow thinner and more powerfulwith each passing generation, it’s inevitable … more
Post Reply

[TUTORIAL] How to unpack Android ROMs on Windows

OP nikoan89

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,754
 
3,385 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: 844
 
3,326 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 Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Android by ThreadRank