Howto extract system.img on win7 64bit - Nexus S Q&A, Help & Troubleshooting

Is there an easy way to extract system.img ? I have tried uniyaffs but that didn't work .. There is also the htc kitch but requires cygwin etc .. I was wondering if there is an easier way ?

Bandis710 said:
Is there an easy way to extract system.img ? I have tried uniyaffs but that didn't work .. There is also the htc kitch but requires cygwin etc .. I was wondering if there is an easier way ?
Click to expand...
Click to collapse
If you're talking about the Android Kitchen, the entire custom Cygwin package is included in the download file.. it is really not that hard to set up. Five minutes.

Related

Old cooker want to cook something

After many many tweaking and cooking ROMs for WinMo I want to do same with Android. The reason I cooked for WinMo was speed, but since it is not an issue with mine Desire(but it can be better I want to customize ROM a little bit, so remove some stuff and later maybe add few apps. If this want be a problem I will try to tweak too.
However in WinMo I have always have served kitchen, I just tweaked removed and add few things and job done but here there are no kitchens..yet(I hope somebody will sooner or later post it
So is there anybody who can help to set up kitchen so that I can cook few roms for me and this community?
So if I understanded correctly I need following to start cooking
android sdk
java jdk
signing tool
stock ROM
I have downloaded them all, extracted SDK in D:\HTC Desire\Android SDK, installed Java JDK in C:\Program Files (x86)\Java and I don't know what to do next?
Extract ROM, where(?), extract system.img which is in rom.zip if yes how and where?
Thanks for your help
Benko, you can extract the ROM anywhere you want. But, you don't want images. You should look at Pauls rootedupdate.zip as a starting point. Unzip that.
eViL D: said:
Benko, you can extract the ROM anywhere you want. But, you don't want images. You should look at Pauls rootedupdate.zip as a starting point. Unzip that.
Click to expand...
Click to collapse
Ok extracted that rootedupdate.zip and found a lot of apks and obexes so after I delete those files that I dont want how to put that all back together to file that is flashable?
You'll have to resign the zip after removing stuff, otherwise it will give verification errors when trying to flash.
You need to remove the current certificates from the file, there are three files in the META-INF folder - delete those, but keep the update script (the COM folder inside), it's needed for flashing.
I use this little thingy for signatures: http://android-dls.com/wiki/index.php?title=Generating_Keys
Hope this helps!
PS-beware of any dependencies between the various apk's and any framework modding that might be needed, otherwise you'll get more fc's than you can carry; I know I did
PS2- if you want a served kitchen, you'll find one over at Modaco, for a CyanogenMod port (a link is posted in a thread here) - see if that suits you're needs.
PS3- check out the Chef Central sticky here, too - it should be easier to get quicker/more accurate info from the seasoned cooks there
benko286 said:
Ok extracted that rootedupdate.zip and found a lot of apks and obexes so after I delete those files that I dont want how to put that all back together to file that is flashable?
Click to expand...
Click to collapse
Rezip the folders: meta, system & boot.img.
Then resign them. You can then transfer it to sd and try to flash. If it doesn't boot, then you have to troubleshoot.
May I know that how to change layout of the home screen?
e.g. HTC sense has news/mail widget where first installed and booted.
Where can I change these settings?
Also , I want to know if I made my own rom, and updated to my desire.
If it doesn't boot or anything, can I updated the rootedupdate.zip from Paul to get the desire back working?
Thanks
eViL D: said:
Rezip the folders: meta, system & boot.img.
Then resign them. You can then transfer it to sd and try to flash. If it doesn't boot, then you have to troubleshoot.
Click to expand...
Click to collapse
kevin612 said:
May I know that how to change layout of the home screen?
e.g. HTC sense has news/mail widget where first installed and booted.
Where can I change these settings?
Also , I want to know if I made my own rom, and updated to my desire.
If it doesn't boot or anything, can I updated the rootedupdate.zip from Paul to get the desire back working?
Thanks
Click to expand...
Click to collapse
Ok zipped those folders(META-INF, system, boot.img) in rootedupdate.zip, used autosign.bat to manually sign that .zip and now it should be flashable?
@Kevin-yes if it is not bootable you can flash Pauls rom again
benko286 said:
Ok zipped those folders(META-INF, system, boot.img) in rootedupdate.zip, used autosign.bat to manually sign that .zip and now it should be flashable?
@Kevin-yes if it is not bootable you can flash Pauls rom again
Click to expand...
Click to collapse
Hopefully. After a few hundred times you'll get the hang of it. ;P
If it boot loops, it won't boot. Try again. Always remember what you're adding and subtracting. Maybe start out with only a couple things.
eViL D: said:
Hopefully. After a few hundred times you'll get the hang of it. ;P
Click to expand...
Click to collapse
OK Since I returned my device to my store because of warranty can you try that ROM, I will upload it for you ?
benko286 said:
OK Since I returned my device to my store because of warranty can you try that ROM, I will upload it for you ?
Click to expand...
Click to collapse
Sure, why did you return it?
Uploading it now
Some very very bad battery leaking...80% in one night and sync was off!
Thank you so much eViL D: and everybody else for help
Ok I also want to create my own rom but I don't know how to sign it..
Any help would be most appreciated.
ROM Link here
http://www.mediafire.com/?zt4ymz42jzj
I hope it works
So for now I even don't need Android SDK?
I downloaded the rom kitchen from Chef Central...Does the rom need to be sign after I built them out in Linux?
Also there are some folders I not understand yet....
Inside system folder - customize, etc, framework, usr and xbin I dont understand yet.
Cause looking at eVil D:'s rom and paul's rom is very different in those. And even paul's rom doesnt have customize folder.
Would like to understand all and see if I can make a rom out.
Thanks
Anybody tried my ROM ?
benko286 said:
Anybody tried my ROM ?
Click to expand...
Click to collapse
Got corrupted DL. Will have to try again.
kevin612 said:
I downloaded the rom kitchen from Chef Central...Does the rom need to be sign after I built them out in Linux?
Also there are some folders I not understand yet....
Inside system folder - customize, etc, framework, usr and xbin I dont understand yet.
Cause looking at eVil D:'s rom and paul's rom is very different in those. And even paul's rom doesnt have customize folder.
Would like to understand all and see if I can make a rom out.
Thanks
Click to expand...
Click to collapse
the kitchen signs the rom automatically. run the menu from terminal ( using linux) and u will see all the what the kitchen is doing.
do not try to compare custom roms ... they are different. some have extrafiles & folders depending on their customisations.
best thing is to compare with an original rom for the desire. and u see what has been added to get X and Y. involves a lot of trials and errors.
eViL D: said:
Got corrupted DL. Will have to try again.
Click to expand...
Click to collapse
I will try downloading too, if it wont work I will reupload it
I know that this can sound wierd but can anybody of you upload his kitchen?
Thank you all for help!
EDIT: File is corrupted, uploading again!
Reuploaded and tested, RAR file is ok
http://www.mediafire.com/?w5wommomzmk
Please somebody try ROM
Thanks
benko286 said:
Reuploaded and tested, RAR file is ok
http://www.mediafire.com/?w5wommomzmk
Please somebody try ROM
Thanks
Click to expand...
Click to collapse
Anybody tried ROM ?
P.S anybody has link to CyanogenMod port, anybody uses that kitchen?

[Q] What tools linux, mac, windows for extracting android img files?

I want to learn a little bit about android and want to ask what tools do you guys use to extract and repack img files. I've been messing around with unyaffs in linux.
Thanks
http://androidforums.com/behold-2-all-things-root/56517-extracting-img-files.html
http://androidforums.com/behold-2-all-things-root/54424-creating-custom-roms-backups-odin.html
Wondering this as well, still digging
phfaty said:
I want to learn a little bit about android and want to ask what tools do you guys use to extract and repack img files. I've been messing around with unyaffs in linux.
Thanks
Click to expand...
Click to collapse
I'm on ubuntu 10.04 and use unyaffs to unpack and mkfs.yaffs2 to repack.
prscott1 said:
I'm on ubuntu 10.04 and use unyaffs to unpack and mkfs.yaffs2 to repack.
Click to expand...
Click to collapse
Thanks that is what I'm also using. I'm wondering if there are other similar tools on Windows 7 and OS X.
I'm an Ubuntu user as well, so I'm not certain - if you can't find anything native, you could run a Linux VM to get around this (or maybe even something like cygwin, if you are fairly technical).
phfaty said:
Thanks that is what I'm also using. I'm wondering if there are other similar tools on Windows 7 and OS X.
Click to expand...
Click to collapse
both Windows and OS X have versions of those tools....
Some tools can also be found here - http://jiggawatt.org/badc0de/android/index.html

[Q] Is there any APK to exact the boot.img in the phone

I want to unpack the img but don't want to use in my pc(too confused).
so I want to unpack by the phone,
thank you
ytyyutianyun said:
I want to unpack the img but don't want to use in my pc(too confused).
so I want to unpack by the phone,
thank you
Click to expand...
Click to collapse
I don't think there is. Maybe I'm wrong too.
Basically all these boot.img tools are written in shell/bash and is made specifically to run in Linux distros.
Anyways there is an Android app called, Complete Linux Installer that lets you install any Linux OS in your phone. But I doubt whether boot.img tools work, as it needs various library files for it to work.
On a side note, I guess it would be more complex to do it in phone rather than in PC, if there is some way for it to work.
coolsandie said:
I don't think there is. Maybe I'm wrong too.
Basically all these boot.img tools are written in shell/bash and is made specifically to run in Linux distros.
Anyways there is an Android app called, Complete Linux Installer that lets you install any Linux OS in your phone. But I doubt whether boot.img tools work, as it needs various library files for it to work.
On a side note, I guess it would be more complex to do it in phone rather than in PC, if there is some way for it to work.
Click to expand...
Click to collapse
Thank you for your reply, but do you feel strange that the IMG is created by the recovery, so it is rational that there is a tool about IMG building. then why there is no apk. I mean some professional can extract just from the CWM recovery, I think.
need root
if you wanna get boot.img i think you must be rooted.
k0tsompakos said:
if you wanna get boot.img i think you must be rooted.
Click to expand...
Click to collapse
yes, I root, so I can use the recovery to back and restore,
I think any app that can access zip files in the internal and external memory can extract boot.img.
Like ASTRO File Manager and stuff...
recovery?
You wanna install a rom?
or recovery??
or we speak about boot.img? (Boot img is the boot animation when you turn on your phone.)
k0tsompakos said:
You wanna install a rom?
or recovery??
or we speak about boot.img? (Boot img is the boot animation when you turn on your phone.)
Click to expand...
Click to collapse
Nooooo
boot.img is the kernel (zImage + Ramdisk packed into an image file) that lies in the /boot partition
@ OP - If you want to extract boot.img itself, there are various methods and from CWM recovery like you said. I thought you were mentioning about how to unpack the contents of the boot.img say like zImage, Ramdisk and other files.
0ops
0ops yeah... :silly:
Searching for 1 minute and found this tool :good:
--> [TOOL] Boot.img tools [unpack, repack, ramdisk] <--
( I do not send link cause i am new here and can't :angel: )
It works. Have a nice day
k0tsompakos said:
0ops yeah... :silly:
Searching for 1 minute and found this tool :good:
--> [TOOL] Boot.img tools [unpack, repack, ramdisk] <--
( I do not send link cause i am new here and can't :angel: )
It works. Have a nice day
Click to expand...
Click to collapse
Yes, that's the tool and it works :good:
But as OP mentioned, he wanted to do it within phone, I highly doubt though.
coolsandie said:
Yes, that's the tool and it works :good:
But as OP mentioned, he wanted to do it within phone, I highly doubt though.
Click to expand...
Click to collapse
It could be done using this post http://forum.xda-developers.com/showpost.php?p=20227868&postcount=1124 and a hex editor from play store on your phone. But would be even more fiddly than on pc I would imagine, unless your phone has a largish screen. It could be done though.
If editing the ramdisk, you would need to unpack and repack after editing, which usually requires linux. I recently found http://forum.xda-developers.com/showthread.php?t=2036528 for PC, but have not had a chance to try it yet, seems best solution for OP
coolsandie said:
Yes, that's the tool and it works :good:
But as OP mentioned, he wanted to do it within phone, I highly doubt though.
Click to expand...
Click to collapse
thank you coolsandie, the android is based on linux, isn't it, and if I can, I can install busybox.and using the terminal like Android Terminal Emulator, but I do not know the procedure. like you, it's more complex,
Robbie P said:
It could be done using this post http://forum.xda-developers.com/showpost.php?p=20227868&postcount=1124 and a hex editor from play store on your phone. But would be even more fiddly than on pc I would imagine, unless your phone has a largish screen. It could be done though.
If editing the ramdisk, you would need to unpack and repack after editing, which usually requires linux. I recently found http://forum.xda-developers.com/showthread.php?t=2036528 for PC, but have not had a chance to try it yet, seems best solution for OP
Click to expand...
Click to collapse
it's good tool, it can unpack the boot.img, but as to the kernel, I don't know how to unpack. but this tool add to my favorite, thanks Robbie.
OK, I find the app, names: yaffs, the author I don't know because I found in the search engine. so I also cannot find the course
then the app,

[Q] how to unpack boot.img or recovery.img

I want to unpack boot.img of my phone, i did it earlier when i was in kitkat but now after upgrading to lollipop that method doesnt work..
Manu11 said:
I want to unpack boot.img of my phone, i did it earlier when i was in kitkat but now after upgrading to lollipop that method doesnt work..
Click to expand...
Click to collapse
@Manu11, are you referring to extracting the boot.img from the firmware?
Manu11 said:
I want to unpack boot.img of my phone, i did it earlier when i was in kitkat but now after upgrading to lollipop that method doesnt work..
Click to expand...
Click to collapse
I can't catch u while do u want to extract boot.IMG from device
R do u need the unpacking software
Manu11 said:
I want to unpack boot.img of my phone, i did it earlier when i was in kitkat but now after upgrading to lollipop that method doesnt work..
Click to expand...
Click to collapse
Unpack with Android kitchen
ravi.vydianathan said:
@Manu11, are you referring to extracting the boot.img from the firmware?
Click to expand...
Click to collapse
mohamed786 said:
I can't catch u while do u want to extract boot.IMG from device
R do u need the unpacking software
Click to expand...
Click to collapse
No no i wanna unpack boot.img so i can change its contents or in simple way create a insecure boot.img
@Manu11, I have seen few such tools but frankly I have no idea and no experience in this regard.
Manu11 said:
No no i wanna unpack boot.img so i can change its contents or in simple way create a insecure boot.img
Click to expand...
Click to collapse
there are a lot of guides available for unpacking and repacking a boot.img a simple google search would have helped u
Bass_Face said:
there are a lot of guides available for unpacking and repacking a boot.img a simple google search would have helped u
Click to expand...
Click to collapse
I unpacked my boot.img with android kitchen, but on recompiling its size went 5mb less and on flashing it directly enters fastboot.
The android kitchen is no longer continued from 2011, so the binaries haven't been updated since then.
I suggest you use "android image kitchen"

custom rom lg g4

Hellooooo . . . ! ! !
First: I want a system dedicated to the LG G4 H818P and no bootloop problem
Second: How to run the ROM phones on the computer directly through the simulator such as Qemu-System-Aarch64 such as LG G4 KDZ
.... .... ..... ..... .... ..... ..... ...... .... End .... .... ..... ...... ..... ...... ...... ...... .....
maherGood said:
Hellooooo . . . ! ! !
First: I want a system dedicated to the LG G4 H818P and no bootloop problem
Second: How to run the ROM phones on the computer directly through the simulator such as Qemu-System-Aarch64 such as LG G4 KDZ
.... .... ..... ..... .... ..... ..... ...... .... End .... .... ..... ...... ..... ...... ...... ...... .....
Click to expand...
Click to collapse
1) It looks like you know what kind of ROM you want, now it's just up to you to try some ROMs until you find the one that suits your purposes. You can do that for yourself, we don't need to help you with that, it's your device and you are the one that wants the ROM, if you are serious about it then you should be willing to do that work for yourself.
2) do some Google searches for"
"How to install android emulator"
Or
"How to install ROMs in android emulator"
If you're trying to run the stock kdz file in the emulator, I'm not sure that works. You probably need to extract the boot.img, system.img and cache.img from the kdz file then try running that in the emulator.
Sent from my LGL84VL using Tapatalk
Droidriven said:
1) It looks like you know what kind of ROM you want, now it's just up to you to try some ROMs until you find the one that suits your purposes. You can do that for yourself, we don't need to help you with that, it's your device and you are the one that wants the ROM, if you are serious about it then you should be willing to do that work for yourself.
2) do some Google searches for"
"How to install android emulator"
Or
"How to install ROMs in android emulator"
If you're trying to run the stock kdz file in the emulator, I'm not sure that works. You probably need to extract the boot.img, system.img and cache.img from the kdz file then try running that in the emulator.
Sent from my LGL84VL using Tapatalk
Click to expand...
Click to collapse
Thanks brother for your interest in the subject :good:
But can you provide me with information about how to run KDZ on the QEMU emulator using the files you mentioned (boot.img, system.img and cache.img)
Does this need the Kernel and initrd file to run it and take off if you can write these commands to me because i have not used qemu before in depth
maherGood said:
Thanks brother for your interest in the subject :good:
But can you provide me with information about how to run KDZ on the QEMU emulator using the files you mentioned (boot.img, system.img and cache.img)
Does this need the Kernel and initrd file to run it and take off if you can write these commands to me because i have not used qemu before in depth
Click to expand...
Click to collapse
I have no clue, I just know that the kdz file probably isn't compatible with android emulator. Usually, android emulator is used to test ROMs while they are in the build/debugging process, custom ROMs usually only contain a system.img and sometimes a custom boot.img, that is why I suggested extracting from the firmware to use those parts.
I'm just trying to help you narrow down what you need, you'll have to figure the rest out.
Sent from my LGL84VL using Tapatalk
Droidriven said:
I have no clue, I just know that the kdz file probably isn't compatible with android emulator. Usually, android emulator is used to test ROMs while they are in the build/debugging process, custom ROMs usually only contain a system.img and sometimes a custom boot.img, that is why I suggested extracting from the firmware to use those parts.
I'm just trying to help you narrow down what you need, you'll have to figure the rest out.
Sent from my LGL84VL using Tapatalk
Click to expand...
Click to collapse
:good::good:

Categories

Resources