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.
Related
My default browser went foobar on me when i tried to go into the about menu.
Could someone upload the 2.1 apk and odex pls.
Thanks
EDIT: Changed the topic name to reflect the newly found utility that helped me recover my files since. I had no current backup and did not want to start from scratch. Figured it could help if you ever find yourself in that situation or want to extract files from other rom backup.
nm 10 chars
Unyaffs
Did some digging around and found a nice utility to extract the files from the .img. Extracted the system.img from the stock rom unpackaged it with unyaffs.
Here's the utility
Code:
Usage: unyaffs name_of_file.img
WARNING **This will extract all the files in the working directory**
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..
Hello,
I search to unpack the boot.img to change files but impossible, I tested all, no program can unpack ... could you pleased help me ?
Thank you in advance.
The RAZR I one? Look in the development section. It will extract it very easy.
Sent from my XT890 using xda app-developers app
I don't find thé hex dump tool ans didn't understand the tuto..
Search in the dev section for:
Unpacking RAZR I boot.IMG from turl.
Our boot image isn't the same as others. There is no way u can extract things without the needed files. If u can't do anything with the topic about the boot.IMG in the dev section, I can't help u.
Sent from my GT-P5110 using XDA Premium HD app
I have find this.. But i don't understand what is the ''tool'' when you use...
can you give me all the URL of files and tool and... For editing the boot.img please ?
Thank's..
Up...
The only way (as far as i know) to unpack a boot.img from the Razr I is to use an linux powered PC. The tools in the topic that are provided need to be build first. And for it to build u need a linux (ubuntu) operating system. I will upload (when i have the time) my tools to unpack and repack the boot.img with a description on how to use them, but they only work on linux.
p.s. don't bump the post if it isn't answered in 1 day. Sometimes someone that will reply isn't online or is doing other things and didn't noticed it. If it were 3 or more days, oke. Just my opinion
Hazou
Bootimage tools
Here u go. My bootimage extract and pack package. It only works on linux. See the zip, and extract it somewhere in your linux distribution.
Instructions:
1. Put a boot.img in the root of the extracted bootimage packages (where the folders Ramdisk, Bootimage, Kernel, Tools are)
2. Execute the file extract.
3. Kernel can be found under the map kernel
4. Ramdisk can be found under the map Ramdisk/ramdisk
5. Modify your things
6. Pack the files by executing create.
Notes:
In the map Bootimage is a bootstub (bootold.img) needed for rebuilding the boot.img and some old scripts
In the map Kernel will be the extracted kernel. The file bzImage will always be used for rebuilding.
In the map Ramdisk will be the extracted ramdisk in the map ramdisk. The map 'ramdisk' will always be used for rebuilding,
In the map Tools will be the tools needed for extracting and creating.
If u have some questions about this tool, ask!
Credits to Turl1 for the tools
Hazou
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.
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......