Now Gesture Tweaks Replaces Google Now with Custom Action

On most modern Android devices with software navigation keys, swiping up from the … more

ToqAN Fixes Android 5.0 Notification Bug on Qualcomm Toq

The Qualcomm Toq is probably one of the lesser known smartwatches on the market … more

How to Root and Unlock the Google Nexus 6 on a Mac – XDA TV

In the past, XDA Developer TV Producer droidmodd3rx has shown you how to … more

Set Up Your MediaTek Device with Comprehensive Beginner’s Guide

As can be seen with the use of MediaTek chips in Android One devices … more

Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[TUTORIAL] How to unpack Android ROMs on Windows

OP nikoan89

19th June 2010, 02: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 02:59 PM.
The Following User Says Thank You to nikoan89 For This Useful Post: [ View ]
19th June 2010, 02: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, 02: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, 02: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, 02: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, 02: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, 04:24 AM   |  #7  
roirraW "edor" ehT's Avatar
Senior Member
Flag Columbus, OH
Thanks Meter: 1,811
 
3,431 posts
Join Date:Joined: May 2010
More
Thank you! I had found a different way but this will save some steps.
21st July 2010, 08:09 PM   |  #8  
Junior Member
Thanks Meter: 0
 
9 posts
Join Date:Joined: Sep 2008
mark

i will see

!!!!!!!!!!!!!!!!111
25th July 2010, 04: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, 03:14 PM   |  #10  
NeoS's Avatar
Senior Moderator / Recognized Developer - There is no N00b...
Flag Somewhere in NL
Thanks Meter: 847
 
3,344 posts
Join Date:Joined: Jan 2008
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