How to unpack boot.img - Android Q&A, Help & Troubleshooting

hi i know this seems like a over asked question but my case is different at least i could find a solution .. i did look for it
so i need to unpack a boot.img and i did try with dsixda's kitchen and championswimmers kitchen but no hope .. they both say android magic header not found and doesn't unpack it.. i need to edit the bootclasspath of the kernel but there isnt a way i can without unpacking yeah ? i even tried re-naming to .elf and extracting with flashtool but that dosent give me an output either ..
does anyone know how i can do this ? or atleast a workaround ?

androidous said:
hi i know this seems like a over asked question but my case is different at least i could find a solution .. i did look for it
so i need to unpack a boot.img and i did try with dsixda's kitchen and championswimmers kitchen but no hope .. they both say android magic header not found and doesn't unpack it.. i need to edit the bootclasspath of the kernel but there isnt a way i can without unpacking yeah ? i even tried re-naming to .elf and extracting with flashtool but that dosent give me an output either ..
does anyone know how i can do this ? or atleast a workaround ?
Click to expand...
Click to collapse
Try using this tool found here http://forum.xda-developers.com/showthread.php?t=2073775
it has worked very well for me. If this doesn't work for you then I can suggest some Linux alternatives.
Sent from my SCH-I535 using XDA Premium 4 mobile app

shimp208 said:
Try using this tool found here http://forum.xda-developers.com/showthread.php?t=2073775
it has worked very well for me. If this doesn't work for you then I can suggest some Linux alternatives.
Sent from my SCH-I535 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Hey thanks but ive tried that kitchen before and no luck
i figure the problem is
caused because the boot.img 's are not of standard type and do not have the standard ANDROID header therefore that kitchen wouldnt work
Okay, unpackbootimg crashes trying to unpack the boot.img from FXP204-cm-9-20130126-UNOFFICIAL-kumquat because it has the wrong "magic" at the top. trevd pointed this out as a definite incompatibility for some devices a couple pages back. Trying trevd's split_img from the first page, it actually reports the "Wrong magic" error and shows that the file has an ELF header not an ANDROID!. Opening in HxD shows that there is no ANDROID! header later on as with some HTC devices, so ELF is the only header, and we're basically dealing with a different, unsupported filetype here. On the upside, there is no real gap in the data, so there might not be a ramdisk packed with it anyway.
Click to expand...
Click to collapse
enlighten me on the linux alternatives please

androidous said:
Hey thanks but ive tried that kitchen before and no luck
i figure the problem is
caused because the boot.img 's are not of standard type and do not have the standard ANDROID header therefore that kitchen wouldnt work
enlighten me on the linux alternatives please
Click to expand...
Click to collapse
These are the linux alternatives they may or may not work based on what you said but might as well give them a try.

Related

[Q] i need a litle help...

i all,
sorry this is not me byng lazy,but i never could make gygwin work on my windows
at least not with kitchen and i cant use cygwin to decompress .dzfile too,so in android 2.2x i always get the original firmware only with root and thats fine for me after that i use kitchen in ubuntu to make some changes i like more OFW in CFW always misses something or have something i dont like,i have v20g but i woold like to get my hands on v20c without the all flash process its a bit scary lol, so i ask if coul anyone pelase give me,system.img and boot.img for i use in kitchen just for my personal use no need rout anithing just the .img files,again is not me being lazy i just cant turn system.mbn in system.img,or cygwin work and i try a lot of times...
coould some one do this for me if not thats okay i m just asking no need for no one be rude...
thanks a lot and sorry for my english people...
You don't need kitchen to extract kdz than dz. After dz also you don't need kitchen to get the .img files from .mbn.
Sent from my LG-P500 using XDA Premium App
4silvertooth said:
You don't need kitchen to extract kdz than dz. After dz also you don't need kitchen to get the .img files from .mbn.
Sent from my LG-P500 using XDA Premium App
Click to expand...
Click to collapse
yes i now i need other program i dont remember the name now but my problem is that in windows cygwin i couldnt make it work heaven for that program but in ubuntu at least kitchen i can make work
the program i need to turn system.mbn in .img is on this thread
http://forum.xda-developers.com/showpost.php?p=6303911&postcount=827
but this only work in cygwin and i cant make it work on my windows i need to clean my pc and the only way is by formating but i cant do that for now could please some one tell how to use unyaffsmbn in ubuntu....

boot.img creation from the stock ftf

Hi everyone,
I'm noob here. I'm using Xperia S. And now learning mote about android.
However I have a question, how can I make boot.img from my ftf file?
Sure, I extracted the ftf, decrypt the kernel.sin into kernel.elf.
From kernel.elf, I decrypt it again and get 4 files, one image (I suppose it is kernel zImage), one ramdisk.gz, one file forgotten and another is elf.4.
Okay, now the problem comes.
The main purpose of me is to change the bootlogo of my Xperia S.
I searched for a day to change the bootlogo, most need to add the rle file into boot.img file (ramdisk).
For sure I read through the site how to unpack, edit and repack the boot image.
The kernel and ramdisk of mine are extracted from ftf but not existing custom Rom,
1. Can I directly use the mkbootimg program to create boot.img? Will it work out?
2. Do I need to aware of any parameters or setting for Xperia S? Since I worried that different devices have diff setting.
3. Is it better to make it on linux? I found mkbootimg.c in c language file but not precompiled program as tutorial, the link given is broken. Can work also?
Sorry, I'm really quite new and very noob, I tried searching and many other things, but still can't figure it out.
Hope that pros here can help me...
Sent from my LT26i using xda app-developers app
Trevor Chuah said:
Hi everyone,
I'm noob here. I'm using Xperia S. And now learning mote about android.
However I have a question, how can I make boot.img from my ftf file?
Sure, I extracted the ftf, decrypt the kernel.sin into kernel.elf.
From kernel.elf, I decrypt it again and get 4 files, one image (I suppose it is kernel zImage), one ramdisk.gz, one file forgotten and another is elf.4.
Okay, now the problem comes.
The main purpose of me is to change the bootlogo of my Xperia S.
I searched for a day to change the bootlogo, most need to add the rle file into boot.img file (ramdisk).
For sure I read through the site how to unpack, edit and repack the boot image.
The kernel and ramdisk of mine are extracted from ftf but not existing custom Rom,
1. Can I directly use the mkbootimg program to create boot.img? Will it work out?
2. Do I need to aware of any parameters or setting for Xperia S? Since I worried that different devices have diff setting.
3. Is it better to make it on linux? I found mkbootimg.c in c language file but not precompiled program as tutorial, the link given is broken. Can work also?
Sorry, I'm really quite new and very noob, I tried searching and many other things, but still can't figure it out.
Hope that pros here can help me...
Sent from my LT26i using xda app-developers app
Click to expand...
Click to collapse
how did you decrypt kernel.sin ? can you explain step by step ? Im also a noob
ShivangDave said:
how did you decrypt kernel.sin ? can you explain step by step ? Im also a noob
Click to expand...
Click to collapse
For how to decrypt the kernel.sin, you can use Flashtool (not Sony official one)
Under Tools (perhaps I remember correctly), there is a option about decrypt SIN, and then you can choose the kernel.sin you want to decrypt.
Have to tried kernel kitchen?
neectron said:
Have to tried kernel kitchen?
Click to expand...
Click to collapse
Yes, I tried Kernel Kitchen by champion at that time after I asked this question since nobody answer this thread.
I use command way to perform this boot.img creation also. It work that time. now forgot some part dy.
Trevor Chuah said:
Yes, I tried Kernel Kitchen by champion at that time after I asked this question since nobody answer this thread.
I use command way to perform this boot.img creation also. It work that time. now forgot some part dy.
Click to expand...
Click to collapse
Oh,now I see question is so old
neectron said:
Oh,now I see question is so old
Click to expand...
Click to collapse
yeah, very old. haha
Anyway, thank you for your kindly reply.
Moving my way toward developer (super noob developer). haha

Extracting boot.img

How do I extract boot.img from Xperia U
I already got many images but while unpacking they all say android magic header not found stopping using many tools
I used android kitchen and all
one more thing
i made rom using android kitchen and then when i boot
wifi,bluetooth and phone aint working
Help Me
:crying:
jatinrungta said:
How do I extract boot.img from Xperia U
I already got many images but while unpacking they all say android magic header not found stopping using many tools
I used android kitchen and all
one more thing
i made rom using android kitchen and then when i boot
wifi,bluetooth and phone aint working
Help Me
:crying:
Click to expand...
Click to collapse
Have you tried this link? I find it helpful for the single core A8 Cortex (Polaroid) tablets when I have to access the boot.img. Look about halfway down for the "Boot partition" section.
Hope this helps.
https://www.miniand.com/wiki/Allwinner/Unpacking+and+building+LiveSuit+images
jatinrungta said:
How do I extract boot.img from Xperia U
I already got many images but while unpacking they all say android magic header not found stopping using many tools
I used android kitchen and all
one more thing
i made rom using android kitchen and then when i boot
wifi,bluetooth and phone aint working
Help Me
:crying:
Click to expand...
Click to collapse
Use championswimmer tool http://forum.xda-developers.com/showthread.php?p=26229528
Sent from my GT-I9100 using xda app-developers app
rename it to kernel.elf and it can be extract either via flashtool or kitchen (kernel tools etc)

[Q] Edit .apk wirh winRAR possible?

Hey guys,
I was searching for a tool to edit an apk file and i found Apk Tool on xda but i think it's not
that much easy to work with this program. (for a n00b, like me.. )
I managed to open and edit te file with winRAR,
but is this program also capable of proper compiling the app again, ready to use?
I tried it and it worked well i think, but is this possible with any app or other kinds of changes?
If this is stupid or something, please tell me. I am not very experienced in these kinds of things.. (neither in english, sorry.. )
Somebody any ideas?
Thanks in advance!
bart1996 said:
Hey guys,
I was searching for a tool to edit an apk file and i found Apk Tool on xda but i think it's not
that much easy to work with this program. (for a n00b, like me.. )
I managed to open and edit te file with winRAR,
but is this program also capable of proper compiling the app again, ready to use?
I tried it and it worked well i think, but is this possible with any app or other kinds of changes?
If this is stupid or something, please tell me. I am not very experienced in these kinds of things.. (neither in english, sorry.. )
Somebody any ideas?
Thanks in advance!
Click to expand...
Click to collapse
It all depends on what you edit,obviously you didnt make a fatal change,so it must have been small,no its not possible to edit anything else as far as the manifest and xml files.You'll get a parsing error.
Diablo67 said:
It all depends on what you edit,obviously you didnt make a fatal change,so it must have been small,no its not possible to edit anything else as far as the manifest and xml files.You'll get a parsing error.
Click to expand...
Click to collapse
Okay, that's true i only changed those kinds of files and it wasn't a problem yet.
I changed somethings in an demo version of an app and now it recognizes it as the full version so winRAR can be pretty usefull for apk edit if you keep things simple like this..
bart1996 said:
Okay, that's true i only changed those kinds of files and it wasn't a problem yet.
I changed somethings in an demo version of an app and now it recognizes it as the full version so winRAR can be pretty usefull for apk edit if you keep things simple like this..
Click to expand...
Click to collapse
It only really works for editing images.
Admitting this is a nice way to get banned
Wayne Tech Nexus

Need help repacking boot.img

Hi, anyone here who can help me replacing the kernel from the attached stockboot.img to the boot.img ?
I cant find any boot.img repacker tools and ima beginner, maybe someone can help me out ?
Keiko87 said:
Hi, anyone here who can help me replacing the kernel from the attached stockboot.img to the boot.img ?
I cant find any boot.img repacker tools and ima beginner, maybe someone can help me out ?
Click to expand...
Click to collapse
Use Android image Kitchen. Search it on google.
Start here. https://forum.xda-developers.com/ap...chen-superr-s-kitchen-v1-1-50-v2-1-6-t3597434 You will need to use Linux or Windows but linux is your best bet if you are a beginner.
Sent from my SM-J327P using Tapatalk
Sands207 said:
Start here. https://forum.xda-developers.com/ap...chen-superr-s-kitchen-v1-1-50-v2-1-6-t3597434 You will need to use Linux or Windows but linux is your best bet if you are a beginner.
Sent from my SM-J327P using Tapatalk
Click to expand...
Click to collapse
Awesome aririririgatou, worked for me ヅ
Keiko87 said:
Hi, anyone here who can help me replacing the kernel from the attached stockboot.img to the boot.img ?
I cant find any boot.img repacker tools and ima beginner, maybe someone can help me out ?
Click to expand...
Click to collapse
has several tools,,, but, what's the point, if they close the file, half the size
i have a boot_b.bin weighing 40mb when I open and close, it gets 17mb, never that the systema will accept such a deal.

Categories

Resources