Extract system.img - Android Software Development

boot.img and recovery.img can be extracted, anyone can share/guide how to do this to system.img ?

hdubli said:
boot.img and recovery.img can be extracted, anyone can share/guide how to do this to system.img ?
Click to expand...
Click to collapse
what phone? usually the "dd" command works since its low level copying.
usage is:
#dd if=/system of=/sdcard/system.img
Click to expand...
Click to collapse
it may take a while.

one word.....unyaffs

get ahold of a unyaffs.exe, place the boot.img in the folder, and voila.

Related

[GUIDE] Noobs guide to extract Galaxy S3 stock firmware(.img) !!

Hi all !!
We now have the stock I9300XXALE8 firmware of Samsung Galaxy S III.
Download here - thread
So, if you had downloaded it and wanted to view stock the apps & something like that, you need to extract the system.img.
Pre-requisites:
* 7-zip
PROCEDURE:
--When you extract the ROM .zip , you'll find 3 .md5 files. With help of 7-zip, extract each of the .md5 file. When extracting the .md5 file, 7-zip may show some error, but you can neglect that and continue extracting.
Click to expand...
Click to collapse
--When you have completed extracting all of them, you'll find many files including many .img files. For Apps you need to extract system.img. Unlike normal nandroid backup's system.img file which in yaffs, this stock one in different. So, unyaffs tool can't unpack the system.img
Click to expand...
Click to collapse
--To extract the system.img, download this tool: sgs2toext4 (created by drphrozen). On extracting it you'll have sgs2toext4.jar file.
Click to expand...
Click to collapse
--Open a command window and set the directory where you have .jar file.
Click to expand...
Click to collapse
--Now type sgs2toext4.jar and press enter.
Click to expand...
Click to collapse
--The .jar will run in a new window & will ask you to drag & drop the system.img file there. Do the same and wait till the process completes.
Click to expand...
Click to collapse
--When the process completes, you'll find a file named system.ext4.img in the same folder where you had the system.img file.
Click to expand...
Click to collapse
--Now download Diskinternals Linux Reader and install it. Then open the program --->> Drives --> Mount Image --> select system.ext4.img > Mount
Click to expand...
Click to collapse
--It will show you all its contents. Now select all the things displayed --> right click --> save and select a folder to save them. There you'll find the extracted system.img !!!
Click to expand...
Click to collapse
Click to expand...
Click to collapse
You can try extracting cache,data,boot.img with the same method.
If you want to de-odex the rom, try using AutoDeoTool(created by xavierjohn22 - thread)
Credits: (don't forget to thank them!)
efrant - post's link
drphrozen - post's link
---Information gathered from this post & things in blue text under How to Flash).
Try n reply !!
Hit THANKS if you find this useful !!
Thanks for your contribution .
is this one among the various forums?
http://forum.xda-developers.com/showthread.php?t=1662184
bala_gamer said:
is this one among the various forums?
http://forum.xda-developers.com/showthread.php?t=1662184
Click to expand...
Click to collapse
Not at all !!
This thread (especially the How to Flash in blue text): http://forum.xda-developers.com/showpost.php?p=20843237&postcount=1
Thank You Very Much ,, It was very useful for me
Guys, here's a simple tool to extract cache.img file from any Samsung rom without conversions and mounting!
http://forum.xda-developers.com/showthread.php?p=27219721#post27219721
Enjoy!
PS: OP, please update first post!
really helpful..thanks!
thank for your guide
hello i follow your guide i done with unpack and i can edit it, but m a new and i wonder if i can make it back to tar or md5 for odin flash thank you guys...for your reply
iihito702 said:
hello i follow your guide i done with unpack and i can edit it, but m a new and i wonder if i can make it back to tar or md5 for odin flash thank you guys...for your reply
Click to expand...
Click to collapse
I dont have any idea.........try creating ashable zip.....it will be easy!
Sent from my GT-I9300 using xda app-developers app
Thanks for the guide -- it helped me out.
guys not working for me, nothing happens in cmd window after typing sgs2toext4.jar
wajiman said:
guys not working for me, nothing happens in cmd window after typing sgs2toext4.jar
Click to expand...
Click to collapse
Don't mean to make you look noobish but have you set the directory in command prompt to where the .jar file is saved before executing sgs2toext4.jar?
Sent from my GT-I9300 using xda app-developers app
wajiman said:
guys not working for me, nothing happens in cmd window after typing sgs2toext4.jar
Click to expand...
Click to collapse
Java runtime is missing, you need to install it first.
Drag & Drop sgs2toext4.jar
Hi! Has someone try it out sgs2toext4.jar in linux? I'm using Ubuntu 12.04 and the step of drag & drop doesn't work...
Thanks mate really helpfull
how long does sgs2toext4.jar it take to convert a file?
t3project said:
how long does sgs2toext4.jar it take to convert a file?
Click to expand...
Click to collapse
It depends on the size of the file.....normally takes 3 mins if your computer is not the latest...
Sent from my Micromax A110 using xda app-developers app
balamu96m said:
It depends on the size of the file.....normally takes 3 mins if your computer is not the latest...
Sent from my Micromax A110 using xda app-developers app
Click to expand...
Click to collapse
then it obviously isnt working for me. i get this after dragging an img into sgs2toext4
Code:
drop a samsung ".img" file here
output will be <inputname>.ext4.img
Added: C:\stock_ma5_img\system.img
system.img 32 B 32 B/s
system.img 32 B 0 B/s
system.img 32 B 0 B/s
system.img 32 B 0 B/s
system.img 32 B 0 B/s
system.img 32 B 0 B/s
system.img 32 B 0 B/s
system.img 32 B 0 B/s
system.img 32 B 0 B/s
system.img 32 B 0 B/s
system.img 32 B 0 B/s
system.img 32 B 0 B/s
system.img 32 B 0 B/s
system.img 32 B 0 B/s
system.img 32 B 0 B/s
system.img 32 B 0 B/s
system.img 32 B 0 B/s
any ideas? what's the deal here?
same here right the same
wrong topic sorry

how to flash/edit system.img

on p8 lite ale-l21, when i want to flash system.img, size is more than 1.5gbs, the adb refuse with these sentence;
TARGET REPORTED MAX DOWNLOAD SIZE OF 471859200 BYTES,. what anyone guide how to flash system.img.
Q.2: i extracted update.app, it has files with .img extension, how to edit/repack these and make a flashable.zip file?
huawei2016 said:
on p8 lite ale-l21, when i want to flash system.img, size is more than 1.5gbs, the adb refuse with these sentence;
TARGET REPORTED MAX DOWNLOAD SIZE OF 471859200 BYTES,. what anyone guide how to flash system.img.
Q.2: i extracted update.app, it has files with .img extension, how to edit/repack these and make a flashable.zip file?
Click to expand...
Click to collapse
Try with Minimal ADB & Fastboot... Default ADB & Fastboot cannot flash large files...
it just failed.
huawei2016 said:
it just failed.
Click to expand...
Click to collapse
Even with Minimal AFB & Fastboot?
That shouldn't happen..
Put the system.img in Minimal ADB & Fastboot folder (C:/Program Files (x86) / Minimal ADB & Fastboot) and then try to flash.. That should do the job...
i'll tell later, this worked or not. thanks
Now i tested, it also failed. but no problem.
i just flashed the whole update.app.
but curious, how to modify system.img and make flashable zip of rom.

(Solved) How to unpack and modify a "boot.img" file in Windows (or Linux)?

I'm trying to modify ramdisk from a boot.img file. But when I use Zenfone-boot-tools from @Shakalaka, the "ramdisk.cpio.gz" file that I get can not be decompressed.
When I use gzip (in Linux), it said that the file is not gzip format.
Could anyone help me please?
Use this tool : https://basketbuild.com/filedl/devs?dev=dgadelha&dl=dgadelha/ASUS_T00F/Tools/AndImgTool.exe
Command (Paste in CMD) Also copy boot.img to same folder
AndImgTool boot.img foldername
rkj911 said:
Use this tool : https://basketbuild.com/filedl/devs?dev=dgadelha&dl=dgadelha/ASUS_T00F/Tools/AndImgTool.exe
Command (Paste in CMD) Also copy boot.img to same folder
AndImgTool boot.img foldername
Click to expand...
Click to collapse
Thanks a lot
It works like charm, but how about repack?
nheolinkin said:
Thanks a lot
It works like charm, but how about repack?
Click to expand...
Click to collapse
AndImgTool foldername bootnew.img

How can we dump the img we need?

So I did the step to here.But do not know how to get system.img/boot.img/bootloader.img(most want).Any developers help?
jackzhu said:
So I did the step to here.But do not know how to get system.img/boot.img/bootloader.img(most want).Any developers help?
Click to expand...
Click to collapse
You could try this not sure if it work haven't tried yet use terminal emulator
Run this first and it will list your img you want
ls -al /dev/block/platform/soc/1da4000.usfhc/by-name
dd if=/dev/block/platform/soc/1da4000.ufshc/by-name (the img you want) of=/sdcard/ (your img)
You can use this command to dump any partition updated command
tattedup said:
You could try this not sure if it work haven't tried yet use terminal emulator
Run this first and it will list your img you want
ls -al /dev/block/platform/soc/1da4000.usfhc/by-name
dd if=/dev/block/platform/soc/1da4000.ufshc/by-name (the img you want) of=/sdcard/ (your img)
You can use this command to dump any partition updated command
Click to expand...
Click to collapse
You mean xxx_a.img is same as xxx_b.img?
jackzhu said:
You mean xxx_a.img is same as xxx_b.img?
Click to expand...
Click to collapse
If you flash the stock restore from invisiblek yes the a and b img should be the same, I think not positive not much knowledge on a and b partitions. But what I got from invisiblek's post is that is correct.
tattedup said:
If you flash the stock restore from invisiblek yes the a and b img should be the same, I think not positive not much knowledge on a and b partitions. But what I got from invisiblek's post is that is correct.
Click to expand...
Click to collapse
Thank you, I will dump it for try .
jackzhu said:
Thank you, I will dump it for try .
Click to expand...
Click to collapse
I'm sure I get the boot.img. do you know which is/are bootloader.img?

i need persist.img partition. my 6t all sensor broken.

I accidentally flashed persist partition on another phone.
As a result, all sensors are not working now.
I haven't backed up that partition.???
Therefore i would like to ask someone to backup persist partition and share the image file with me.
parklrain said:
I accidentally flashed persist partition on another phone.
As a result, all sensors are not working now.
I haven't backed up that partition.
Therefore i would like to ask someone to backup persist partition and share the image file with me.
Click to expand...
Click to collapse
How can I do a backup for you?
see attach, unzip and flash using dd command
foobar66 said:
see attach, unzip and flash using dd command
Click to expand...
Click to collapse
Thanks!
But I don't know how to use the dd command.
Can I use fastboot command to flash?
abenssss said:
How can I do a backup for you?
Click to expand...
Click to collapse
I don't know exactly how, but you can use dd command to back up.
I don't know the exact file path.
foobar66 said:
see attach, unzip and flash using dd command
Click to expand...
Click to collapse
Thank you very much!
The img.persist file was renamed to Persist.img, and the bootloader flash using the fastboot command, and the sensor returned to normal.
My cell phone is alive.
Thank you!!
parklrain said:
Thank you very much!
The img.persist file was renamed to Persist.img, and the bootloader flash using the fastboot command, and the sensor returned to normal.
My cell phone is alive.
Thank you!!
Click to expand...
Click to collapse
i have the same problem. Which code do you type in the shell?
foobar66 said:
see attach, unzip and flash using dd command
Click to expand...
Click to collapse
for what type of phone?

Categories

Resources