[Tutorial] How to extract System.img on Windows - Android General

How to extract system.img
Requirements:
* Windows XP or newer
* Ext4 Unpacker
* Ext2Explore
* System.img of your choice
Click to expand...
Click to collapse
Step 1:
The first thing you need to do is to launch the Ext4 Unpacker software and then you need to select the open button.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Step 2:
Select the system.img you want to extract.
Step 3:
Press the "Save as EXT4" button.
Step 4:
Select where you want to save the .ext4 file and enter a name with the extension .ext4, then press Save.
Step 5:
Wait while the ext4 image is being unpacked.
Step 6:
Launch the ext2explore software as a Administrator (Do that or it wont work!) and then select File then Open Image.
Step 7:
Select the file you saved earlier with Ext4 Unpacked software and then select "Open".
Step 8:
Now highlight the file you just have imported in EXT2Explore and then press the "Save" button.
Step 9:
Select where you want the unpacked system files to be placed.
After that is done just go to the folder and voila! The android system files should be in the folder.​

wow!!! seems extremely helpful !!!

ayushrox said:
wow!!! seems extremely helpful !!!
Click to expand...
Click to collapse
Thanks, I am going to make more noob friendly tutorials also later

devstaff said:
How to extract system.img
Requirements:
Step 1:
The first thing you need to do is to launch the Ext4 Unpacker software and then you need to select the open button.[/SIZE]
Step 2:
Select the system.img you want to extract.
Click to expand...
Click to collapse
Trying 3 times to unpack an system.img file from my HTC One SU T528W but the ICS/JB/Ext4 unpacker everytime gives me same error: "List index out of bounds (327680)".
And it stuck there.
Why?
What's happened?
Thanks for your answer.

Thanks. This thread helped me. I overwrote my systemui and needed it back. Is able to use this method to extract it from the Google factory image for my galaxy nexus. You do it once and it's pretty straight forward.
Sent from my Galaxy Nexus using xda app-developers app

And how do you pack things back ????

fratzeskos said:
And how do you pack things back ????
Click to expand...
Click to collapse
Make a update.zip, easiest way to do it.
Sent from my Nexus 7 using Tapatalk 2

devstaff said:
Make a update.zip, easiest way to do it.
Sent from my Nexus 7 using Tapatalk 2
Click to expand...
Click to collapse
I need to pack files back into a system.img file and it can't be an update.zip file. I need it for emulation purposes.

Cytality said:
I need to pack files back into a system.img file and it can't be an update.zip file. I need it for emulation purposes.
Click to expand...
Click to collapse
I have no idea, google it.
Sent from my Nexus 7 using Tapatalk 2

Do u use Ubuntu in Ubuntu u have to to be familiar with yaffs and unyaffs command Google or search for a thread in our xda forum u will get a thread explaining it
Sent from my Galaxy Nexus using xda premium

Thank you very much for the tutorial, it works good with N4 factory image

thanks brother....
thanks brother.... really super applications...

It gives error message that "Unknown File Format"

Nice guys :thumbup::thumbup:
Send from my AMOI N828 using Xda Premium

not works
i dont think it works for gingerbread system images, .....tried it a number of times and failed........

Great Thread thanks!

I think for gingerbread system, you should try the attached. gingerbread is still using ysffs2 instead of ext4.
abidaddy said:
i dont think it works for gingerbread system images, .....tried it a number of times and failed........
Click to expand...
Click to collapse

not work

Unknown File Format
I have 4.3 stock rom note III .. but it say that "Unknown File Format"

Related

zipping problem

hi friends,
i have a big problem with my pc,
i have tried many zipping softwares but every time i want to install .zip files from the recovery it shows:"installation aborted"!
it's really bad for me because i should zip folders with my phone! & sometimes i can't...
can you help me pls?
You are not making things clear?!!
firstly,your PC can't zip files or your phone?
and what has zipping softwares gotta do with your phone's recovery???
you can't just zip any folder and apply it your recovery!
if you are having issues with recovery, follow this guide and install latest recovery.
if you have issue with zipping software in PC check you antivrus first..maybe it isn't allowing you to create .zip/.rar
Or just make a virtual machine on pc and zip your folders if you don't want to re-install the whole OS again.
Harryhades said:
You are not making things clear?!!
firstly,your PC can't zip files or your phone?
and what has zipping softwares gotta do with your phone's recovery???
you can't just zip any folder and apply it your recovery!
if you are having issues with recovery, follow this guide and install latest recovery.
if you have issue with zipping software in PC check you antivrus first..maybe it isn't allowing you to create .zip/.rar
Or just make a virtual machine on pc and zip your folders if you don't want to re-install the whole OS again.
Click to expand...
Click to collapse
Thx
I can zip any folders in my pc,but always recovery writes:"installation aborted" , it's because of my pc not my phone because i have flashed over 50 roms till now.
I have tested with windows7 & xp but problem is still there.
And it's for everything if i extract any rom for example a then i zip i will get this error too.
Thx for your help
***
torbatepak said:
Thx
I can zip any folders in my pc,but always recovery writes:"installation aborted" , it's because of my pc not my phone because i have flashed over 50 roms till now.
I have tested with windows7 & xp but problem is still there.
And it's for everything if i extract any rom for example a then i zip i will get this error too.
Thx for your help
***
Click to expand...
Click to collapse
A zip file has to be "flashable" for it to successfully install anything to your phone through recovery (with an update script, etc, etc).
Also, English only please.
TeeJay3800 said:
A zip file has to be "flashable" for it to successfully install anything to your phone through recovery (with an update script, etc, etc).
Also, English only please.
Click to expand...
Click to collapse
it has them all
& that was meant : "sent from tapatalk2 using GT-S5670 "
but sorry for this.
i have tested.if i just extract the rom & zip it myself i will get this error.
What compression method do you choose?
- Via xda premium
a.cid said:
What compression method do you choose?
- Via xda premium
Click to expand...
Click to collapse
i have tried , this time it worked with deflate compressation method via 7zip, storing without compressing via 7zip,zipping using windows, & store by winrar.
it is strange!
but it didn't work by bzip2,deflate64, lzma & ppmd methods.
i should try with something else too.
thx
& also if i just decompile an apk file & then compile it without any changes,then it won't work!:crying:
try 7-zip 7-zip.org or use xplore app for android https://play.google.com/store/apps/details?id=com.lonelycatgames.Xplore&hl=en to dicomplie or make flashable zip this app is working great for me.
Sent from my GT-S5360 using xda premium
Harryhades said:
You are not making things clear?!!
firstly,your PC can't zip files or your phone?
and what has zipping softwares gotta do with your phone's recovery???
you can't just zip any folder and apply it your recovery!
if you are having issues with recovery, follow this guide and install latest recovery.
if you have issue with zipping software in PC check you antivrus first..maybe it isn't allowing you to create .zip/.rar
Or just make a virtual machine on pc and zip your folders if you don't want to re-install the whole OS again.
Click to expand...
Click to collapse
I installed another windows but the problem is still there!
no help?
really confused...
With WinRAR:
Mark files for zip. The right click on it.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
With 7Zip:

[Q]Is there a way to get out of fastboot?

Sorry if the question isnt clear, here is my delemma
So My N5 I had deleted the system partition (or folder) and I no longer had a rom, now my problem is that I cannot get a new rom installed.
I have TWRP as my recovery but no roms.
I also cant do adb sideboot, It always says: Error: Device not found
What Can I do about this?
Does adb Sideboot need usb debugging enabled?
Thanks!
Sounds like you may have to install the drivers for adb on your computer
Sent from my Nexus 5 using XDA Premium 4 mobile app
kevkid said:
Sorry if the question isnt clear, here is my delemma
So My N5 I had deleted the system partition (or folder) and I no longer had a rom, now my problem is that I cannot get a new rom installed.
I have TWRP as my recovery but no roms.
I also cant do adb sideboot, It always says: Error: Device not found
What Can I do about this?
Does adb Sideboot need usb debugging enabled?
Thanks!
Click to expand...
Click to collapse
Why not just flash the factory images from fastboot?
So I tried to using this: http://forum.xda-developers.com/showthread.php?t=2509428 one of mthe multi tools, and it seems to go through and it stays boot looping in the boot animation.
hrmm.... very weird
EDIT: Ok I was able to flash stock via the direct google link, Now a question about adb sideload, How does that function? Do I have to have usb debugging enabled?
kevkid said:
So I tried to using this: http://forum.xda-developers.com/showthread.php?t=2509428 one of mthe multi tools, and it seems to go through and it stays boot looping in the boot animation.
hrmm.... very weird
Click to expand...
Click to collapse
1. Go here: https://developers.google.com/android/nexus/images
2. Download the Nexus 5 Android 4.4 (KRT16M) image.
3. Unzip.
4. Run the .bat file while in fastboot.
That's it. It's going to wipe everything but atleast it will work.
bahnburner said:
1. Go here: https://developers.google.com/android/nexus/images
2. Download the Nexus 5 Android 4.4 (KRT16M) image.
3. Unzip.
4. Run the .bat file while in fastboot.
That's it. It's going to wipe everything but atleast it will work.
Click to expand...
Click to collapse
Thanks worked!!
bahnburner said:
1. Go here: https://developers.google.com/android/nexus/images
2. Download the Nexus 5 Android 4.4 (KRT16M) image.
3. Unzip.
4. Run the .bat file while in fastboot.
That's it. It's going to wipe everything but atleast it will work.
Click to expand...
Click to collapse
Having a little trouble I was hoping you could help clarify how to run the .bat file while in fastboot. I tried to flash the image and I am still stuck on a bootloop. Thanks
capathy21 said:
Having a little trouble I was hoping you could help clarify how to run the .bat file while in fastboot. I tried to flash the image and I am still stuck on a bootloop. Thanks
Click to expand...
Click to collapse
Open a new command prompt, drag and drop the bat file into the terminal window, press enter.
bahnburner said:
Open a new command prompt, drag and drop the bat file into the terminal window, press enter.
Click to expand...
Click to collapse
I am having trouble with what the bat file is. When I unzip the download I have
bootloader-hammerhead-HHZ11d(disc image file).
flash-all(windows batch file)
flash-all.sh(SH File)
flash-base.sh(SH File)
image-hammerhead-krt16m(WinRar zip archive)
radio-hammerhead-M8974A-1.0.25.0.17(Disc Image File)
I am not seeing anything that says .bat file.
Sorry for being so ignorant on this.
capathy21 said:
I am having trouble with what the bat file is. When I unzip the download I have
bootloader-hammerhead-HHZ11d(disc image file).
flash-all(windows batch file)
flash-all.sh(SH File)
flash-base.sh(SH File)
image-hammerhead-krt16m(WinRar zip archive)
radio-hammerhead-M8974A-1.0.25.0.17(Disc Image File)
I am not seeing anything that says .bat file.
Sorry for being so ignorant on this.
Click to expand...
Click to collapse
Windows batch file = .bat file. If you're going to screw with your phone, at the very least you should probably make sure explorer shows all file extensions...
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
bahnburner said:
Windows batch file = .bat file. If you're going to screw with your phone, at the very least you should probably make sure explorer shows all file extensions...
Click to expand...
Click to collapse
Thanks for the help! Sorry to annoy. I've been rooting and such for several years but was just a bit lost.

[GUIDE] Deodexing your custom rom the easy way

Hello Guys,
@android.zealot.fervor wanted me to post this guide so why not
There is already a guide by Panda00 but that one is a bit outdated...
Requirments:
- A Windows PC
- Zip opener (7zip,winrar,winzip)
- Dsixda's kitchen and cygwin
- sgs2ext4.jar
- linux reader
- A Brain and hands
So let's begin:
Step 1)
- Download the stock firmware from sammobile samsung-updates search for yourself and open the file with 7zip inside the file you will find a md5 file open that with 7zip it should give you a error ignore that! Take out the system.img and open up sgs2ext4.jar and drop the system.img into there now after some time the system.img.ext4 will be placed onto your desktop!
Step 2)
- Open up Linux Reader and mount the system.img.ext4 drive open it up and take out only the app and framework folder save them to your desktop!
Step 3)
- Now make a WORKING_DEODEX folder name it exact as i say you and make inside that folder a system folder! drop the app&framework folder in the system folder and copy WORKING_DEODEX to C:/kitchen or where ever you have kitchen on your PC!
Step 4)
- Open up kitchen with cygwin by typing in the following:
cd C:/kitchen and hit Enter! (I take the C drive as example but your drive letter could be diffrent!!!)
sh menu Hit Enter again!
Now it should load up kitchen if not do not ask me!
go in kitchen to advanced options by typing in 0 and after that go to 11 now select the correct api version it should be 17!
Now type in b for deodexing both folders! let kitchen do his work here this can take up to 20min!!!
Step 5)
When kitchen is done go back to your C:/kitchen drive and take out the system folder of the WORKING_DEODEX and drop it onto your desktop!
What you need to do now is download the zip file from the attachments and drop the system folder in it!
Step 6)
Copy the zip to your device and flash enjoy your deodexed phone!
Credits:
Panda00 for his zip file
CoolDevelopment for his CWM
Some things you need to know:
1) secemail_j will not deodex!!!
2) you must be on the firmware you are deodexing!
3) Install custom recovery for flashing
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
android.zealot.fervor said:
Click to expand...
Click to collapse
Thanks man if you want more guide's etc just ask
safariking said:
Thanks man if you want more guide's etc just ask
Click to expand...
Click to collapse
Thanks a lot. That's so generous of you. Well i just want to ask right now....in your guide i couldn't found the ZipAlligning step.Is zipalligning necessay after deodexing. Thanks
android.zealot.fervor said:
Thanks a lot. That's so generous of you. Well i just want to ask right now....in your guide i couldn't found the ZipAlligning step.Is zipalligning necessay after deodexing. Thanks
Click to expand...
Click to collapse
not needed to zipalign btw: new link for deodex xxbml1
safariking said:
not needed to zipalign btw: new link for deodex xxbml1
Click to expand...
Click to collapse
Thanks.....well i already fixed the update-script and it worked.
Thanks once again for your efforts.

Change Background Image Of Your CWM Recovery - THE EASY WAY

Only For Windows Operating System .. !!!
So It is a post for beginners who want to just look inside the recovery.img and do some modification like changing the default background image to a custom image. So without wasting any time here We Go....
Requirements :
Recovery.img (Most Important)
Boot/Recovery repack utils for WINDOWS by @michfood
Any Image editor Like Photoshop Or GIMP .
Click to expand...
Click to collapse
Procedure :
Just place the recovery.img in the same folder where You extracted The boot/recovery repack tool.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Drag and drop recovery.img on MTK_Unpack and it will split the recovery into its parts.
Now browser into recovery > rmdisk > res > images open the images edit them or replace them with your desirable .png's.
Now again drag the recovery folder and drop on MTK_pack after Modification.
Click to expand...
Click to collapse
Voila .!!!!!!!!
You are Done with changing the background of your custom recovery.
*/ Just Flash This Recovery In FastBoot.
PLEASE PRESS THANKS INSTEAD OF TYPING :fingers-crossed: THANK YOU FOR UNDERSTANDING
Nice man - good work
it's good for me as a nobie.
Thanks my freind.
DON AMIGO said:
Nice man - good work
it's good for me as a nobie.
Thanks my freind.
Click to expand...
Click to collapse
ThanX Share It so That Other Olso LeaRn to Do It... (
navneetasnavi said:
ThanX Share It so That Other Olso LeaRn to Do It... (
Click to expand...
Click to collapse
I dont know why ts not working for me. After re-packing, it gives a file "new-image.img" and not "recovery.img". And also reccovery folder gets a "new-image.img" automatically. If it is supposed to work like this. Even this I tried to flash it on my mobile (MI3), it loses CWM whole and goes directly into fastboot. Thanks it didnt brick my mobile but something is definitely odd when repacking.
pkb_always4u said:
I dont know why ts not working for me. After re-packing, it gives a file "new-image.img" and not "recovery.img". And also reccovery folder gets a "new-image.img" automatically. If it is supposed to work like this. Even this I tried to flash it on my mobile (MI3), it loses CWM whole and goes directly into fastboot. Thanks it didnt brick my mobile but something is definitely odd when repacking.
Click to expand...
Click to collapse
bro see as per the repacking script it will create a new image u need to rename it to to recovery.img and more over the image that u are using in it that is to be edited in Gimp ... other i haven't used personally... and try to flash it using flashify.
post ur results too.
navneetasnavi said:
bro see as per the repacking script it will create a new image u need to rename it to to recovery.img and more over the image that u are using in it that is to be edited in Gimp ... other i haven't used personally... and try to flash it using flashify.
post ur results too.
Click to expand...
Click to collapse
Sure, I renamed the "new-image.img" as recovery.img and put it back into old Cwm.zip And got the fastboot. Lost recovery completely two times. Thanks for reply though.
pkb_always4u said:
Sure, I renamed the "new-image.img" as recovery.img and put it back into old Cwm.zip And got the fastboot. Lost recovery completely two times. Thanks for reply though.
Click to expand...
Click to collapse
i dont know where you aredoing the things wrong b'coz it has always worked for me. just PM me.. :/
Your post really helped man!
technochatter said:
Your post really helped man!
Click to expand...
Click to collapse
Just press thanks its easy than to type it in @technochatter
Sent from my AO5510 using XDA Premium 4 mobile app
Sure

Delete

Delete
Thank you very much for sharing
Thanks for sharing. But I can not see any system img files via 7zip without previously repaired. May I use repaired system img files?
You must be doing something wrong. I've tried WWE and Orange PL and both extract without repairing.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Thanks for sharing.
thank u!
Thanx mate later that day ill extraxt System dump an share it with you guys.
Thanks for the DiskInternals thingy
Since i never needed to extract a System.img I never looked for a method but I will remember this. Seems fairly straightforward.
And thanks for the creds.
I will try this one.
Btw, i made a backup with twrp. Ia there any way to get the backed up system.emmc.win file extracted? Renaming it to .tar doesn't work.
What I try to achive is an extracted ROM so I can deodex the apks
DroidShift79 said:
I will try this one.
Btw, i made a backup with twrp. Ia there any way to get the backed up system.emmc.win file extracted? Renaming it to .tar doesn't work.
What I try to achive is an extracted ROM so I can deodex the apks
Click to expand...
Click to collapse
add .tar to the end of each image and under Linux or cygwin use tar -xvf xxxx.tar
Hmm... Hoped there's anything for win 8.1
...setting up cygwin
Edit: @LeeDroid
Nothing happens when doing the command in the cygwin window...
Worked like a charm
I did have to edit the ConvertHima.bat and remove the line set wf=%cd%\ for it to work
but everything else was spot on .. thanks!!
Anyone need the 0PJAIMG_HIMA_UL_L50_SENSE70_ATT_NA_Gen_Unlock_1.32.617.6_R2_Radio_01.01_U11440221_59.04.50303G_2_F_release_426167_signed.zip
System.img or Dump
Worked great I think. I did get an error, and I received this error 4 times for sparse.img, 2,4,6,8. Here is the error: - "1 [main] sparse2img 7912 find_fast_cwd:". It also says "WARNING Couldn't compute FAST_CWD pointer. Please report this problem to the public mailing list [email protected]". I wrote cygwin, and got a reply from a Marco stating, "Dear Hal, Same answer as given last month to another guy". Then gave me this link https://cygwin.com/ml/cygwin/2015-05/msg00318.html. Followed by, "Please report the solution to whom provided the ConvertHima.bat". The answer in the link basically says a utility called rsync is being used, and the person who provided it is bundling it with an old version of the cygwin kernel. I did however get a new system_hima.img, and I started ConvertHima.bat. After completion I have what appears to be a complete system image. It's 3.53Gb in size, and has the folders - app, bin customize, etc, fonts, framework, lib, lib64, lost+found, media, priv-app, tts, usr, vendor, xbin, and has the file build.prop. It appears to have all the Deodexed APK's in app and priv-app. This is from the T-Mobile RUU. I'm using Window 8.1.
I'm trying to create a system dump (1.40.708.9)but was stuck at step 2. Where can I download my ROM.zip?
xunus said:
I'm trying to create a system dump (1.40.708.9)but was stuck at step 2. Where can I download my ROM.zip?
Click to expand...
Click to collapse
i think you misunderstand what this is for
flex360 said:
i think you misunderstand what this is for
Click to expand...
Click to collapse
That could be true. Seems like this is to extract M9's rom from an RUU and not from the phone itself.
Mr_Bartek said:
You must be doing something wrong. I've tried WWE and Orange PL and both extract without repairing.
View attachment 3226483
Click to expand...
Click to collapse
Can you send me the file system.img_01 ?
htsang08dqt said:
Can you send me the file system.img_01 ?
Click to expand...
Click to collapse
https://forum.xda-developers.com/one-a9/development/decrypt-ruu-ruu-decryption-script-htc-t3282562
Is there a Linux version of the sparse2img.exe? I am in need of this because I don't have the system.img but I have the system.img_xx chunks from the RUU ZIP.

Categories

Resources