How to unpack and repack system.img file - Galaxy Note5 Q&A, Help & Troubleshooting

Hope you good actually i have extracted system.img file i have made a little change deleted some apls from the file but now the problem is repacking i couldn't find a way to repack the file please help me im stuck here......

Related

Why do i get a tar file instead of a img file

Why do i get a .tar file instead of a .img file when unzipping tar.gz files
I've tried winraw and bitzipper run as admin or not
The files I'm trying to unzip are these
http://forum.xda-developers.com/showthread.php?t=922870
I've been browsing these forums all day trying to find someone thats had the same problem, guess I'm out of my league here
Thanks in advance
*.tar.gz files are. Zipped (the .gz) and Tar'd so it's a 2 step process.
Basically TAR is a grouping of the files and GZ is the compression.
Check out 7-zip:
http://www.7-zip.org/
Un-Gzip the file you have a *.tar file. Un-Tar the file and you have all the files.
YES! Thanks
I had tried to winrar and bitzipper them twice but the file was useless
But with 7-zip Ive got a img. file, seems like all the instructions I've been following said uncompress but I guess the assume that you know to do both
Now I can get on with my next nightmare getting this NC back to stock
Thank you

[Q] Extracting one package file

I´ve read about extracting one package file and I noticed that when we extract that, it won´t generate the file BOOT.tar.md5
What is this file? Is the kernel?
I wouldn´t have problem if I installed a rom stock without this file, correct?
Thanks...sorry my bad english.
If someone want to know. After search, i found the file BOOT.img.tar is the kernel!

[Q] Unpacking CM boot image

Hello guys, I've been struggling since two and a half hours now to unpack boot.img taken from cm10.1 zip (get.cm). I have an error about the magic header, here it is.
Code:
Android Magic not found in boot.img. Giving up.
Fyi, I need to unpack/repack the boot image to change the bootlogo and kernel.
I've tried with any tool available (dsixda kitchen, championswimmer kernel kitchen, simple mkbootimg or unmkbootimg, xperia boot tools and more), no results. Anyone please?
Try asking in the question and answer section, that may help
Sent from the luxury of my tent
That's actually a kernel.elf, not boot.img Rename it to kernel.elf, and use the kernel kitchen to extract it's contents.
..
NuriJ said:
That's actually a kernel.elf, not boot.img Rename it to kernel.elf, and use the kernel kitchen to extract it's contents.
..
Click to expand...
Click to collapse
Thank you man, you're a lifesaver. It works.
NuriJ said:
That's actually a kernel.elf, not boot.img Rename it to kernel.elf, and use the kernel kitchen to extract it's contents.
..
Click to expand...
Click to collapse
Hi.. I found this dead thread when i googled for the same thing that OP also had,, I managed to unpack the kernel's boot.img by renaming it to kernel.elf.. I have to edit init,rc file in order to get bootclasspath lines from a cm10 fxp kernel and put it in my port ROM's init.rc and replace the bootclasspath.. But i never found init.rc file anywhere, there is an init file which doesn't have a bootclasspath but only PATH.. Can u help me with this?
tOrNadO_007™ said:
Hi.. I found this dead thread when i googled for the same thing that OP also had,, I managed to unpack the kernel's boot.img by renaming it to kernel.elf.. I have to edit init,rc file in order to get bootclasspath lines from a cm10 fxp kernel and put it in my port ROM's init.rc and replace the bootclasspath.. But i never found init.rc file anywhere, there is an init file which doesn't have a bootclasspath but only PATH.. Can u help me with this?
Click to expand...
Click to collapse
Are you looking in ramdisk?
NuriJ said:
Are you looking in ramdisk?
Click to expand...
Click to collapse
Yes.. I did that too.. Unfortunately all the methods didn't work.. One simple method worked though.. Change the permissions of all the unpacked files and mount the ramdisk.img and then extract it and change contents of any file of your choice and then repack it.. It works like a charm..

[Q] Edit boot.img

Anyone got a set o tools that can unpack and repack our current boot.img ?
I need to edit some files there, and most tools are failing with Android Magic not found in boot.img.
Me too.

How to unpack a SYSTEM.IMG file? Older tools won't work

Hi! I need a very specific system dump to try some mods, Unfortunately most of the tools I used no longer work. I tried with Ext2explore, Ext4Unpacker and some others but they all give a error message. What is the correct method for doing a Samsung system dump? I'm on Windows 8.1 (x64)
I guess I found the perfect tools right here on XDA: https://forum.xda-developers.com/s6...ol-tools-file-extraction-img-tar-md5-t3236605
Download the tool and unzip. Extract the system.img file using WinRAR o 7zip. Drag and drop system.img into NEWIMG2EXT2 This will convert the .img into a .ext4, to be opened with Ext2explore. Now that you have a complete dump you can deodex and start tinkering.

Categories

Resources