[Q] How to edit system.img - Samsung Galaxy Nexus

I downloaded factory image from code.google.com,and I extracted a file who name is system.img,but I don't know how can I unpack it.
I don't know unpack it with what software,Is not always able to unpack the file when I
tried some softwares.(yaffs2img,winimage,winRAR and something else)
what is a right way to extract and edit it?
Thank you!

you don't extract .img files.... you flash the img file through fastboot.
google on how to use fastboot for more details.

You can extract them just fine. I used dsixda's kitchen to extract system.img so that I could pull the gapps.

zephiK said:
you don't extract .img files.... you flash the img file through fastboot.
google on how to use fastboot for more details.
Click to expand...
Click to collapse
I just want make it into zip file and flash it with recovery,facilitate I edit a rom.

zephiK said:
you don't extract .img files.... you flash the img file through fastboot.
google on how to use fastboot for more details.
Click to expand...
Click to collapse
mwalt2 said:
You can extract them just fine. I used dsixda's kitchen to extract system.img so that I could pull the gapps.
Click to expand...
Click to collapse
Dsixda's kitchen? Can it unpack the system.img? Actually,I want delete some gapps and edit this rom.

8723045587230455 said:
Dsixda's kitchen? Can it unpack the system.img? Actually,I want delete some gapps and edit this rom.
Click to expand...
Click to collapse
Yes, it works ok. Just put the system.img in the original update and choose to make a rom from that file. It will guide you through extracting the system.img. You might be able to get it to build the entire rom if you just zip all of the .img's together and choose that for the input file.

Thank you so much and I'll try. ^^

You can use http://forum.xda-developers.com/showpost.php?p=15333542& postcount=135 to convert the image to an .ext4.img and then use http://www.diskinternals.com/linux-reader/ to mount (if you are using Windows).
Sent from my Galaxy Nexus using Tapatalk

efrant said:
You can use http://forum.xda-developers.com/showpost.php?p=15333542& postcount=135 to convert the image to an .ext4.img and then use http://www.diskinternals.com/linux-reader/ to mount (if you are using Windows).
Sent from my Galaxy Nexus using Tapatalk
Click to expand...
Click to collapse
I'm glad i found your post on here. Greatly appreciate it! :victory:

Related

[10 JAN][SCRIPT]IMG2CWM Converter 1.2.2

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 Info​How 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.
Downloads​v1 >>> 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)
Addons​arif-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
License​BSD 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

How to convert .img from backups

Hi quick question once I done a back up what can I use to change them from .img files so I can read them on my Windows pc as folders
Thanks in advance
E=Mc2
Anybody ????
E=Mc2
Hello.
Put the system.img file over the exe file.
This is only work with backed up system.img's and not with the official one taked from rom.zip.
Thank's
ausdim said:
Hello.
Put the system.img file over the exe file.
This is only work with backed up system.img's and not with the official one taked from rom.zip.
Thank's
Click to expand...
Click to collapse
Thank you mate will give a whirl when I get up
E=Mc2
hi i really need to convert the kernel( which is .img ) to .ftf so i can flash it please help

kernel from latest 4.04 update

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).

[SOLVED] Extracking CM-10.1-20130316-STAGING-5-endeavoru from rar

Ok, maybe stupid question, but when unraring the cm-10.1-20130316-STAGING-5-endeavoru Rar ask me to replace existing files? Do i need click yes(yes to all) or no(no to all)?
P.S. I unrar in clean folder, not in same folder over and over again!
Thanks
Re: Extracking CM-10.1-20130316-STAGING-5-endeavoru from rar
Why do you unrar it ?
Mr Hofs said:
Why do you unrar it ?
Click to expand...
Click to collapse
I assumed that i need extract files before flashing to phone, i own several android devices , and for example lg use kdz files, and people just rar it for less space or , uploading server rules! This is my frist HTC wich i want to "customize",and for other devices i used to extract files from .rar before flashing! From your's reaction i think that i use .rar to flash with?
Re: Extracking CM-10.1-20130316-STAGING-5-endeavoru from rar
Firstly, the file is a zip archive.
Secondly, yes, you flash them just like that, without unzipping or extracting.
Sent from my One X using xda premium
Re: Extracking CM-10.1-20130316-STAGING-5-endeavoru from rar
The only file you need to extract from the rom.zip is the boot.img file. It must be flashed with fastboot commands
Mr Hofs said:
The only file you need to extract from the rom.zip is the boot.img file. It must be flashed with fastboot commands
Click to expand...
Click to collapse
I got it now, thanks! All good! Extracting rom.zip cofused me! Thanks button thanks!
TToivanen said:
Firstly, the file is a zip archive.
Secondly, yes, you flash them just like that, without unzipping or extracting.
Sent from my One X using xda premium
Click to expand...
Click to collapse
Sorry, yes its zip archive, i only use rar windows app! Thanks also!

Unzipping the .img file with winzip

I'm having real problems unzipping the above file to show the .img file. The error I keep getting is "Winzip only supports IMG files that are in the ISO format" I have tried to downloading Winrar and 7 Zip file manager but still cannot get it unzipped.
Please, can anybody help, i'm so frustrated!
Thanks
Matt:fingers-crossed:
Are you trying to open a img file with winrar for see the code/stuff into it?
Guich said:
Are you trying to open a img file with winrar for see the code/stuff into it?
Click to expand...
Click to collapse
Hi, I'm trying to put it in my drive so I can flash it, if that makes sense. Really sorry, I'm new to this!
The Mackem said:
Hi, I'm trying to put it in my drive so I can flash it, if that makes sense. Really sorry, I'm new to this!
Click to expand...
Click to collapse
Ah, you will extract this for put into adb/fastboot folder for flash
So, when you have the winrar windows, drop the file and put it into the folder or the desktop.
Now you can flash/use it
vywood which
Guich said:
Ah, you will extract this for put into adb/fastboot folder for flash
So, when you have the winrar windows, drop the file and put it into the folder or the desktop.
Now you can flash/use it
Click to expand...
Click to collapse
Hi, Guich, Am I actually trying to unzip the file to see to the image??? is this what I need to put it in the db/fastboot folder for flash :good:
I have tried that but I'm still getting the same error message!
The Mackem said:
Hi, Guich, Am I actually trying to unzip the file to see to the image??? is this what I need to put it in the db/fastboot folder for flash :good:
I have tried that but I'm still getting the same error message!
Click to expand...
Click to collapse
I can't do some screen now, however, it's strange.
Can you post a screen of your prob?
Guich said:
I can't do some screen now, however, it's strange.
Can you post a screen of your prob?
Click to expand...
Click to collapse
View attachment Book1.xlsx
Hope this helps??
The Mackem said:
Hi, Guich, Am I actually trying to unzip the file to see to the image??? is this what I need to put it in the db/fastboot folder for flash :good:
I have tried that but I'm still getting the same error message!
Click to expand...
Click to collapse
dude, the .img IS THE 'image' file. You don't need to unzip it or anything, just flash it through fastboot.
It's not a compressed .zip file -__-
The Mackem said:
View attachment 1997963
Hope this helps??
Click to expand...
Click to collapse
But the boot.img is in img already...
Now you have to flash it
tomascus said:
dude, the .img IS THE 'image' file. You don't need to unzip it or anything, just flash it through fastboot.
It's not a compressed .zip file -__-
Click to expand...
Click to collapse
Thank you, I'll give it a go.......................talk about totally frustrated!!!
GGGGGGGGGGGRRRRRRRRRRRRRR!! lol
:shakes head in a disappointed manner:
Really guys? REALLY?
Just help the OP out if you can, if not, move along.
Thread cleaned.

Categories

Resources