Hi,
how to extract the files of a ROM Image?
What utility i need and where can I download it?
Trax
PS: I dont have linux, i need a windows Program.
Fist- You can run .EXE ROM file in your PC- OS windows
Than you can see in C:\Program Files: the folder, which has all extract files from ROM Image
use 'dumprom' http://www.xs4all.nl/~itsme/projects/xda/dumprom.html
Thx
How extract bin,img,nb1 !!!
Hello.
I have with rom image. Now I want change some files.
How can I extract files to edit resources ?
I download resoures using TestWM5 from SGH-i600 and some files dosen't have.
example: bbres.dll.
I wrote program in C# to read file to memory using MemoryStream, when
i want read file i have error : UnauthorizedAccessException - it's problem with privileges?
birkoffsjunk's HD2 IMG2CWM Converter
A simple windows batch script to convert DAF builds to Clockwork Recovery ZIPs.
Originally designed for MDJ's Gingerbread NAND and posted here. Results may vary!
Instructions
Download DAF based NAND ROM
Download & Extract this script
Place Boot.img & System.img into the 'in' folder
Double click 'RunMe.cmd' (not as admin)
Manually make any changes you wish (when prompted)
Once done, update.zip will be in the same location as 'RunMe.cmd'
META-INF InfoHow to: Create Clockwork Recovery flash files
How to Create Android Update Zip Package
An updated updater-script (META-INF\com\google\android\updater-script) is required for various other Builds.
Downloadsv1 >>> here <<<
v1.1 attached (7z changed to 9.20 (ghostkid2010) & renamed out folder to temp)
v1.2 attached (Added error checking & support for system.img only)
v1.2.1 attached (Specified xcopy path & removed old 7z.exe)
v1.2.2 >>> here <<< (arif-ali's linux bash script)
Addonsarif-ali's NexusHD2-Gingerbread_V2.0 updater-script
TODO
Add error checking
Add support for system.img only
META-INF Information
Most importantly keep it simple
LicenseBSD License for the script not the tools
7zip is GNU LGPL
unyaffs is GNU GPL v2
same post from MDJ
Your script works great extracting the .img file. But it's not able to create zip file. Let me edit your script with the missing file/info.
Download this file and put in folder tools;
http://downloads.sourceforge.net/sevenzip/7za920.zip
change this line;
"%LOC%\tools\7z.exe" a "%LOC%\update.zip" "%LOC%\out\*"
to;
"%LOC%\tools\7za.exe" a "%LOC%\update.zip" "%LOC%\out\*"
and it should work. it will create a zip file.
Enjoy
how it works?
How does it use? What things do I have to put in the folder "IN"?
sathara said:
how it works?
Click to expand...
Click to collapse
let you extract system.img and boot.img from android build, once you extracted all the fill, it will put all the file into a zip file so you can load via CWM
VuNhatVan said:
How does it use? What things do I have to put in the folder "IN"?
Click to expand...
Click to collapse
boot.img & system.img
It has a function to edit apk. But how do you use that function and where do you add your own apk?
10507 said:
It has a function to edit apk. But how do you use that function and where do you add your own apk?
Click to expand...
Click to collapse
it does not have a function to edit apk (correct me if i'm wrong). once you extracted all the files, go into app and add your apk there.
ghostkid2010 said:
let you extract system.img and boot.img from android build, once you extracted all the fill, it will put all the file into a zip file so you can load via CWM
Click to expand...
Click to collapse
In the Build MDJ_FroYo_Revolution_v._2.2_NAND, there is only system.img, no boot.img. How could I have boot.img?
what a usefull tool, thank you!!
VuNhatVan said:
In the Build MDJ_FroYo_Revolution_v._2.2_NAND, there is only system.img, no boot.img. How could I have boot.img?
Click to expand...
Click to collapse
If there's no boot.img, it should still work. all the boot file is already in the system.img
Let me download that build and I can tell you for sure on how to do it.. I smell that a new version of this script will be out..
Yeah it's very much a work in progress, please feel free to attach updated versions... I'll add them to the first post with accreditation
ghostkid2010 said:
If there's no boot.img, it should still work. all the boot file is already in the system.img
Let me download that build and I can tell you for sure on how to do it.. I smell that a new version of this script will be out..
Click to expand...
Click to collapse
Is it work if there is only system.img?
drizztzou said:
Is it work if there is only system.img?
Click to expand...
Click to collapse
with a little bit of editing yes
ghostkid2010 said:
same post from MDJ
Your script works great extracting the .img file. But it's not able to create zip file. Let me edit your script with the missing file/info.
Download this file and put in folder tools;
http://downloads.sourceforge.net/sevenzip/7za920.zip
change this line;
"%LOC%\tools\7z.exe" a "%LOC%\update.zip" "%LOC%\out\*"
to;
"%LOC%\tools\7za.exe" a "%LOC%\update.zip" "%LOC%\out\*"
and it should work. it will create a zip file.
Enjoy
Click to expand...
Click to collapse
can u more detail about "change this line" location ? u mean u have done it already or i have to do it myself ? which file should i edit ?
ikkon said:
what a usefull tool, thank you!!
Click to expand...
Click to collapse
YEAH! Your not kidding man...i was stoked while playing with it...Id also like to know from here...Is there a similar script for SD->NAND bc my favbe ROM has always been CORECells builds of EVO/HD based...Gave me the best batttery of all SD except for the now current NAND builds. So i figure maybe itll be even better on NAND! TAHNKS again so much for your pos t BIRKOFF! ANYone know of the SD->NAND question?
psuser said:
can u more detail about "change this line" location ? u mean u have done it already or i have to do it myself ? which file should i edit ?
Click to expand...
Click to collapse
YOU have to add an "a" after the z in 7z WITHIN the RUNME script...you have to right click it and open with NOTEPAD on PC and add the "a"
psuser said:
can u more detail about "change this line" location ? u mean u have done it already or i have to do it myself ? which file should i edit ?
Click to expand...
Click to collapse
download the new version on page 1, its fixed
Really cool idea!! I gave it a shot, it just reboots after the MAGLDR screen showing the HTC logo over and over until you boot back into recovery. It flashed fine but just wouldn't boot.
VuNhatVan said:
In the Build MDJ_FroYo_Revolution_v._2.2_NAND, there is only system.img, no boot.img. How could I have boot.img?
Click to expand...
Click to collapse
Use the following "RunMetest.bat"
http://hotfile.com/dl/95408413/0c085bd/RunMetest.rar.html
I tested with different build, system.img only, both boot.img and system.img, it was able to create a zip with all the file.
I'm not uploading the whole folder since this was started by birkoffsjunk, I'm just helping
Test it out
Hi,
please could someone tell me how to extract the kernel file from sbf and custom roms??
Inside sbf there are smg files.
But which is the kernel file?
And how can i extract it?
How can i insert a custom kernel into nandroid backup?
Realy thanks!
those smg files are a jffs2-image. I can give you only this one hint, as I'm stuck at the same problem.
One solution can be:
- install Linux (a virtual one should be enought)
- use jffs2-mount to mount the image to a location of your choice
If you success or find another solution or more better/right information...plz post
djsven said:
Hi,
please could someone tell me how to extract the kernel file from sbf and custom roms??
Inside sbf there are smg files.
But which is the kernel file?
And how can i extract it?
How can i insert a custom kernel into nandroid backup?
Realy thanks!
Click to expand...
Click to collapse
Hi,
I read this from other post, hope can help:
CG35 & 47 both contain the kernel, maybe one is for recovery.
The file structure is: first 2048 bytes are header. Then the region contains the kernel (I am not sure , the format is unknown). Search \x00\x00\x00\x00\x1F\x8B, then from 0x1F 0x8B to end of the file is a gz file (I dumped that, it is a simple ramdisk).
I am not sure if you can replace the kernel in nandroid.... Isn't it RSA signed?
is there a way to extract the kernel from the latest update,or does someone already have it,thanks or will someone extract it for me,thankyou
nutpn said:
is there a way to extract the kernel from the latest update,or does someone already have it,thanks or will someone extract it for me,thankyou
Click to expand...
Click to collapse
You can extract it using 'adb shell dd' command. You need to know the mount point and there is more syntax to the command. I've attached it for you though.
kernel
Can I flash this zip
nutpn said:
Can I flash this zip
Click to expand...
Click to collapse
The simple thing to do is open the .zip and see if it looks like a flashable one (ie is there a META-INF folder)...and no it's not flashable. It's simply boot.img (zImage + RAMDISK).
Hi all!
I try to combine three flashable .zips (ROM, kernel and Gapps) into one flashable zip. I extract the files from corresponding zips and put it it into them own folders in my project. (see attachment).
I made a updater-script for it but it's giving me error in recovery (Error 6) and I can't work out it in any ways.
I attached structure of my project and META-INF folder for revision.
BTW: It is possible at all?