yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Themes and Apps] aryan1312:
Android 'magic' header not found

Hi Guys I keep running into this error when trying to build a rom... i am a noob trying using kitchen 1st time... any help please thnx in advance

Working folder found

Android 'magic' header not found at start of boot.img
Checking if it exists elsewhere ...
Warning: Android header not found in boot.img (unsupported format)

If i ignore this and goes on building the Rom the rom doesn't flash it stop with an error :(

I tried searching this but don't find any productive reply
[Galaxy S II Themes and Apps] dsixda:
You don't need to search, just read post #1. Stock firmware does not have boot.img.
[Galaxy S II Themes and Apps] aryan1312:
Sorry to bother u again... but i am not adding stock rom i was trying to add few apk to CM10.1... even jst for xprmental purpose i tried jst adding rom to working folder then jst rebuilt it without any change simply... results are same ... same android "magic" not found :( i am missing something ...
[Galaxy S II Themes and Apps] dsixda:
This is why you need to read the instructions in post 1..

You are using the wrong type of ROM. If you are just adding and removing apks then use WinZip by itself.
[Galaxy S II Themes and Apps] aryan1312:
thanks for the support... ur views r very helpful... i read the instruction.. forget to implement them
[Galaxy S II Themes and Apps] leonardodettoileo:
I have a question very stupid... But this software is a very very good software... This software is compatible with galaxy nexus? And with android 4.3? thanks for answers! :D
[Galaxy S II Themes and Apps] zscomp:
http://xdaforums.com/showthread.php?p=5626292

Check the supported devices.
[Galaxy S II Themes and Apps] leonardodettoileo:
Thanks so much! But it supported android 4.3 too? Thanks

Inviato dal mio Galaxy Nexus utilizzando Tapatalk
[Galaxy S II Themes and Apps] famonaco:
Hi, good work,can i use it for my Asus padfone 2 ?

Cheers
[Galaxy S II Themes and Apps] zscomp:
just 2 posts above yours.
[Galaxy S II Themes and Apps] famonaco:
Ops thx,another question,how to support padfone 2 in the kitchen? :)
[Galaxy S II Themes and Apps] zscomp:
Post 3 of the above link
[Galaxy S II Themes and Apps] famonaco:
Thx i'|l try :)

See ya
[Galaxy S II Themes and Apps] Yokosa:
Help with errors

Hello.

I try to do my device port for Lenovo A850. But I have a problem with some errors in the updater-script. When I check the update-script for errors, I have 5 errors. I was looking for visual feedback but nowhere any advice not found.

I have no idea how to fix it. Please help me :confused:
[Galaxy S II Themes and Apps] no6969el:
Will this work with the Tmobile version? Just following the directions im to assume that I can use the tmobile version phone just by adding the SGH-T989 file to the sgs2_variants folder and then make sure the file contains the same info as the others.
[Galaxy S II Themes and Apps] dsixda:
That should work. I believe someone else had luck with the same phone.
[Galaxy S II Themes and Apps] TecQuality:
it's time to cook something!!!! :D
[Galaxy S II Themes and Apps] alesscam:
Hi mate

if interest,your kitchen work propely also for Galaxy Note ;)
[Galaxy S II Themes and Apps] dsixda:
Cool, what did you have to do?
[Galaxy S II Themes and Apps] phone_user:
@dsixda

Thanks for your great work.

"dsixda's Android Kitchen" supports ICS roms? The thread closed. How about updating the needed files for ICS? I'm a Nuxus S user.
[Galaxy S II Themes and Apps] alesscam:
Same work like Sgs2.... seems to be no difference

Inviato dal mio GT-N7000 usando Tapatalk
[Galaxy S II Themes and Apps] dsixda:
Please read the big paragraph at start of that thread. I am unable to continue anymore. Also please keep discussion on topic (Samsung GS2 here only, not Nexus). Thanks
[Galaxy S II Themes and Apps] dsixda:
But you had to add the device name to the sgs2 variants folder, right??
[Galaxy S II Themes and Apps] alesscam:
i have tryed without and with device name....dump and rebuild rom work anyway
[Galaxy S II Themes and Apps] phone_user:
Sorry, Thanks anyway :)
[Galaxy S II Themes and Apps] bhowanidin:
I have a T-Mobile SGSII (SGH-T989). Do I simply copy and paste the information from the other SGSII (GT-I9000 uses an Exynos, though) and just save the file as SGH-T989 with this information in the file:

# Samsung Galaxy S GT-I9000

change_mnt=yes

param1=yaffs2

param2=MTD

param1_sdcard=vfat

param2_sdcard=MTD

sys_mnt=\/dev\/block\/stl9

cache_mnt=\/dev\/block\/stl11

boot_mnt=\/dev\/block\/bml7

data_mnt=\/dev\/block\/mmcblk0p2

sdcard_mnt=\/dev\/block\/mmcblk0p1

modem_mnt=\/dev\/block\/bml12
[Galaxy S II Themes and Apps] dsixda:
I lost you.. Why are you mixing up info from the Galaxy S with the S2?
[Galaxy S II Themes and Apps] bhowanidin:
I meant to originally put GT-I9100 in the post. But opening the file in sgs2_variants shows that each file is using the information from the Gt-I9000. Am I missing something here?

I know to add my SGH-T989 I need to create a file with that title, but the information inside is throwing me off. I am skeptical to add the information from the other SGS2 variants because mines runs off of a Qualcomm processor not an Exynos.
[Galaxy S II Themes and Apps] dsixda:
Hmmm there probably shouldn't be anything inside each file in the sgs2_variants folder. They should be empty. May be my mistake, sorry.

Edit: fixed now. Thanks dude!
[Galaxy S II Themes and Apps] bhowanidin:
No problem, thanks for the great kitchen.
[Galaxy S II Themes and Apps] dsixda:
Hi guys, I've made a rare update to the kitchen. Please visit the main kitchen thread (linked in Post #1) for the download link and release notes.
[Galaxy S II Themes and Apps] Tricky103:
I was nearly cracking open champagne then. 'Woot dsixda is back from retirement'
[Galaxy S II Themes and Apps] bhowanidin:
Was it just the Galaxy S amd SII mix-up I came across?

Sent from my Juggernaut SGSII or Galaxy Tab 10.1 now "In Paris"
[Galaxy S II Themes and Apps] dsixda:
No, that update for you did not affect any functionality, it was just superficial.

The latest version has several important changes. Just read the release notes in the main thread as I mentioned above.
[Galaxy S II Themes and Apps] creezalird:
i've been using ur kitchen since my old htc magic and it always worked.

i've just upgraded to samsung galaxy s2 i9100G variant and somehow everytime i finished editing,packing,signing and flashing with CWM. the process ended abruptly in the middle of progress bar and said update successfully.

but of course, my phone is not bootable and stuck with black screen, need to pull battery out to get back into CWM and restore backup.

anyone is experiencing the same like me? thanks
[Galaxy S II Themes and Apps] dsixda:
What did you do in your ROM?

Check the recovery log as mentioned in the FAQ. For the sgs2 it is normally under /cache/recovery/last_log.

Also if you're flashing a new ROM that came from a different base ROM from the one currently on your device then you need to wipe the device first.
[Galaxy S II Themes and Apps] Faryaab:
Whenever I try to deodex a ROM some files always left behind any solution??
[Galaxy S II Themes and Apps] dsixda:
You need to be more specific..ie. ROM version, error messages etc. Also update your kitchen.
[Galaxy S II Themes and Apps] creezalird:
ops, i think i've already lost the log as clean wipe everything again. i will try again and see the log

btw, i am using the same rom base,exactly the same..stock 2.3.6

just add root,busybox,CWM app,deodex (but using xultimate, because yours have problem deodexing maps.apk and voicesearch.apk),zipalign,csc extracted,build.prop edited,zimage replace with pre-rooted zimage with CWM support.

i think thats all I did. but sure i will try again and see the log file

ps: i always wipe everything as i prefer it to be clean :)
[Galaxy S II Themes and Apps] dsixda:
I have exactly the same as yours but I never deodex my ROMs. You also edited your build.prop so make sure that is not introducing errors. Always start from a basic configuration to debug your issue when you have a problem.

Edit: why are you adding the cwm app when the pre-rooted zimage already supplies it (and likely a newer cwm version)?
[Galaxy S II Themes and Apps] Faryaab:
Exactly! the kitchen is not able to deodex Maps.apk and Voicesearch.apk.
[Galaxy S II Themes and Apps] creezalird:
the build.prop is working so far in my current rom. so i dont think any problem with that

the pre-rooted rom only supplies CWM recovery, not the app, as this is not cf-root, just a rooted kernel with CWM recovery. because from the kitchen, clearly u said, it should be possible right?

most of the adjustments are already implemented directly to my current rom, it just that i want to cook a rom for future use and also for flashing another sgs2 (like for my fiancee)
[Galaxy S II Themes and Apps] dsixda:
Sorry, didn't realize you used a non-CF-Rooted kernel. I have no idea, sorry.. you'll need to do find the recovery log first. I'm struggling as it is with using a computer keyboard due to my injury so there's little I can do at the moment.
[Galaxy S II Themes and Apps] dsixda:
What are the error messages?
[Galaxy S II Themes and Apps] :
That's been there for many sammy releases, but not a big deal becoz both are available in market.
[Galaxy S II Themes and Apps] twopumpchump:
I used the .6 version of smali-backsmali on Maps and Voice Search and they deodexed fine.
[Galaxy S II Themes and Apps] dsixda:
Yeah I was afraid that was going to happen (ie. older smali/baksmali working better) after I caved in to people's demands to come out of retirement to update those tools ;)

If you really want it to work then I suggest you use kitchen version 0.179 for now.
[Galaxy S II Themes and Apps] Faryaab:
That doesn't work too.
[Galaxy S II Themes and Apps] alesscam:
yes...don't work with any kitchen version(backsmali/smali)

but the problem is new maps and voicesearch apk..

for solve, download this apk from market,do backup from your phone and put in system/apps
[Galaxy S II Themes and Apps] dsixda:
Oh well. :)

I'll look into it later. It's neverending!
[Galaxy S II Themes and Apps] creezalird:
here is pastebin to my recovery.log http://pastebin.com/Fvu0tSPX

i've tried to read it but can't seem to understand it very much. hope u or anyone can help :)
[Galaxy S II Themes and Apps] dsixda:
It says your system partition is busy and thus cannot mount it. Did you flash from internal storage or from external SD?
[Galaxy S II Themes and Apps] creezalird:
i flash it from internal sd partition. should i flash it from external sd then?
[Galaxy S II Themes and Apps] dsixda:
No it is recommended to flash from internal. I've had similar issue as yours when flashing from external SD, that's why I asked. I don't know what your problem is though. I am not an expert in those kinds of things... it seems more an issue with the phone usage than the kitchen.

Another thing to try is to unmount the system and data partitions in CWM before flashing. Are you using update-binary from kitchen?
[Galaxy S II Themes and Apps] creezalird:
yes, i am using fully from zero, update-binary from kitchen.

maybe it is something to do with i9100G variants. i will ask around.

thank you so much, even though you said u retired already,hope u are recovering soon :)
[Galaxy S II Themes and Apps] dsixda:
Try the unmount commands from the CWM menu before flashing.
[Galaxy S II Themes and Apps] dsixda:
Yeah that is only a workaround, not a fix.

Can you guys go to the menu option that lets you "Deodex a single file", and for each of those bad APK files (maps.apk, voicesearch.apk, phonesky.apk) type the word: ignore

It seems that those APK files are referring to non-existent library files, so it may work if we just ignore those errors and de-odex them that way. Please let me know if the Maps and Voice Search work after you flash it with this method (if you do try my suggestion). Thanks
[Galaxy S II Themes and Apps] firefds:
I managed to deodex the maps.apk withe ICS framework.

haven't tried voicesearch.apk yet
[Galaxy S II Themes and Apps] D3@TH:
How do I update my sed you gave a link to a google code site that has downloads for stuff that i have no idea on what it is so how do I update it. It keeps telling me that it's not the current version I want a direct download to the actual sed update. Will this work with the Samsung Galaxy S 4G?
[Galaxy S II Themes and Apps] dsixda:
1) Google for the "GNU version of sed" as already indicated in the FAQ. If you are not sure what you are doing then this is probably not for you. Make sure it is the GNU version.

2) This thread is for the Galaxy S2.

The Galaxy S thread for kitchen - http://xdaforums.com/showthread.php?t=1257297
[Galaxy S II Themes and Apps] D3@TH:
I'm new to this I've designed stuff for the iDevices so I wanted to do this to the link you give in you FAQ goes to a lot of other downloads on Google code you didn't mention in the FAQ with that download link on what to install from that site you linked in step 2 for the MAC users
[Galaxy S II Themes and Apps] dsixda:
Please, can you add some punctuation, I cannot understand this.. why are you doing that when you're asking for help?

You are right, that link goes nowhere... it has been outdated after some time but unfortunately I cannot modify the FAQ anymore due to loss of my moderator status. You will need to Google the GNU sed.

When you're in xda you will need to do a lot of research and Googling, everything is not going to come on a silver plate. Anyways have fun and good luck.
[Galaxy S II Themes and Apps] D3@TH:
yea i know that i was up until 7am trying to find the update for this and i been searching all day for this I really want to make roms and i was pointed to your Android Kitchen to make the roms I don't know any other way of making a rom and I can't find that update.
[Galaxy S II Themes and Apps] :
Does this help?

http://www.gnu.org/s/sed/

or

http://code.google.com/p/rudix/down...aded+ReleaseDate+Size+DownloadCount+OSX+Rudix

or

http://code.google.com/p/rudix/downloads/detail?name=sed-4.2.1-1.dmg&can=2&q=
[Galaxy S II Themes and Apps] twopumpchump:
That has to be the longest sentence i have ever seen :rolleyes:

@dsixda: I edited your FAQ with the correct link, i'm not sure why you aren't able to edit it since you are the owner.
[Galaxy S II Themes and Apps] D3@TH:
i installed that 4.2.1-1 and it says:

---------- Post added at 11:05 PM ---------- Previous post was at 11:04 PM ----------

lol we aren't in school so it shouldn't matter
[Galaxy S II Themes and Apps] chetan_mohanty:
Wow..awesome application i have ever seen.Now, i have few queries

i)How do i add jkay support?Only copying the files from an extracted Jkay zip to relevant folders will do?

ii)How do i change Kernel.It was suggested to replace the kernel in the BASE(Does this refer to the zImage present inside the base folder).Didnt get it what is base?I have for the time being unpacked bootimage and put the zimage from siyahkernel inside it.

iii)How do i add multi csc.I downloaded a multi csc package from intratech's thread.Unzipped it ,but cant extract csc file from cache.img.Can i just copy a folder CSC(with multi csc) from another ROM and keep it in system folder?Will that help?
[Galaxy S II Themes and Apps] creezalird:
just tried that and it still wont boot and the flashing still ended abruptly in the middle of progress bar.

here is the new recovery.log : http://pastebin.com/Sa7GJ5y9
[Galaxy S II Themes and Apps] dsixda:
I don't see any errors in there. What did it say in the recovery menu when you flashed it?
[Galaxy S II Themes and Apps] creezalird:
it said nothing suspicious like errors or what.

just that installing something like that, and the progress bar moved to about 50% and said install succesfully. thats all. no process of copying like when doing backup restore.
[Galaxy S II Themes and Apps] Faryaab:
Try flashing a stock ROM from odin and then try flashing your own.
[Galaxy S II Themes and Apps] creezalird:
i will try if i have time, but surely not tonight, as after flashing stock with odin, need to root it back with zergrush and then flash rooted kernel and after that can flash custom firmware.

are u suggesting this based on experience or guess? thanks
[Galaxy S II Themes and Apps] Faryaab:
It used to happen to me on the Galaxy S I9000.
[Galaxy S II Themes and Apps] creezalird:
unfortunately still not working, reflash stock with odin, root it to get cwm access, flash my custom rom, and blank screen while booting..
[Galaxy S II Themes and Apps] dsixda:
Have you checked the logcat while it's booting?
[Galaxy S II Themes and Apps] creezalird:
no, because i dont really know how to get the booting logcat, without a running rom. should i be using adb during booting?

ignore that just found ur great post about logcat :)
[Galaxy S II Themes and Apps] dsixda:
Quick question.. are you using the original S2 or one of the variants like the Skyrocket? EDIT: Nevermind you have a I9100G.

Twopumpchump has just told me that those ROMs have a boot.img, and it needs to be patched if you modify and rebuild it through the kitchen. The original S2 ROMs use a zImage by itself (even the Nandroid backup's boot.img is actually a renamed zImage) so I don't mess with any boot.img.
[Galaxy S II Themes and Apps] rtfpessoa:
@dsixda, can you give me a little help...

MIUI have an extra framework in ICS, during deodex do i need to add his name anywhere?
[Galaxy S II Themes and Apps] creezalird:
i think the i9100G also still use zimage as when flashing new kernel, it will take only zimage. besides in the stock firmware file, no boot.img is found and only zimage is there.

i will try later on again and with booting logcat too.
[Galaxy S II Themes and Apps] creezalird:
this is the logcat, which in my eyes looks like nothin T_T

* daemon not running. starting it now on port 5037 *
* daemon started successfully *
--------- beginning of /dev/log/main

D/DEVENC ( 1): essiv=0

D/DEVENC ( 1): get_batchcrypt_status [sdcard][sdcard][6/5][NULL]

I/DEBUG ( 1557): debuggerd: Oct 21 2011 19:47:14

D/LPM ( 1560): test apple start

D/LPM ( 1560): ===== sec_key = event2

D/LPM ( 1560): ===== sec_key = 2

D/LPM ( 1560): PWRKEY_EVENT_NODE : /dev/input/event2

D/LPM ( 1560): Setting LCD to on

D/LPM ( 1560): poll event : 1

D/LPM ( 1560): key events happen

D/LPM ( 1560): syn keycod: 0x0, value: 0

D/LPM ( 1560): poll event : 0

D/LPM ( 1560): poll event : 0

D/LPM ( 1560): poll event : 1

D/LPM ( 1560): key events happen

D/LPM ( 1560): Setting LCD to on

D/LPM ( 1560): Setting LCD to 200

D/LPM ( 1560): keycod: 0x74, value: 1

D/LPM ( 1560): poll event : 1

D/LPM ( 1560): key events happen

D/LPM ( 1560): syn keycod: 0x0, value: 0

D/LPM ( 1560): poll event : 0

D/LPM ( 1560): BATT Voltage Check : Normal(3863000)

D/LPM ( 1560): Current Voltage : Normal - allow power on
[Galaxy S II Themes and Apps] dsixda:
LOL :-D. Apple ... that is your problem

That's it? Maybe you should try to eliminate some configurations to figure out what introduced the issue. Replace your custom zImage with the CFROOT one and try again. It looks like a kernel issue because it cannot start up properly.
[Galaxy S II Themes and Apps] dsixda:
Add it to the framework folder.. the kitchen will try to include your new file automatically when it retries to deodex a problematic apk. Are you trying stock 2.3.6? Let me know the files you used if successful.
[Galaxy S II Themes and Apps] rtfpessoa:
The deodex runs fine, i just have problems in decompile/compile with apktool, i though that the problem could be in some mistake that i made not including this special framework in one of your scripts.
[Galaxy S II Themes and Apps] dsixda:
What's the special framework - what files did you use? Did you just drop them in the /system/framework folder and deodex all files together?
[Galaxy S II Themes and Apps] rtfpessoa:
MIUI ICS have two apk in system/framework: framework-res.apk and framework-miui-res.apk

Now i'm using your script to decompile both folder just like your kitchen does.

But im having problems after that, and i don't know why so i'm trying to understand where they come from.

Any sugestion?
[Galaxy S II Themes and Apps] dsixda:
Are you talking about the Samsung Galaxy S2??
[Galaxy S II Themes and Apps] creezalird:
LOL, so they are really co-operationg, the devil apple and slimy monster..lols

so far, i've tested with almost stock, except zimage replaced with rooted one.

no cfroot has been released yet for i9100G version. T_T

i will try with another kernel. thanks for ur care
[Galaxy S II Themes and Apps] rtfpessoa:
Not yet.

MIUI ICS is just out for Nexus but in near future for SGSII but i think the problem is not in deodex, After some tests i think is in other thing..will continue testing.
[Galaxy S II Themes and Apps] dsixda:
Doh... you confused me into thinking you were talking about the 2.3.6 GS2 stock ROM ;( :P Please stick to Galaxy S2 discussion only in this thread. Because I closed the main thread doesn't mean other device talk can be posted on this thread now. Thanks
[Galaxy S II Themes and Apps] dsixda:
For those with the newer S2 variants, such as the Skyrocket and SGH-T989 (4.5" screens), I have added support for those devices in the latest release. Please go to the link posted on the first post of this thread for details.

Edit: Here's the link -

http://xdaforums.com/showthread.php?t=1390903
[Galaxy S II Themes and Apps] shahulvm:
Thanks for this post dsixda ....helps the newbies for creating roms...
[Galaxy S II Themes and Apps] dsixda:
Hey man, any progress?
[Galaxy S II Themes and Apps] creezalird:
so far none, even by excluding the zimage and modem,

it seems stuck after with black screen.

but i managed to get a much longer recovery.log, maybe u can found something from it.

http://pastebin.com/ayWeJAGg
[Galaxy S II Themes and Apps] dsixda:
Have you read through the log? I'm not much of an expert myself, but that's how we learn. You have some errors there about BAD_DISPLAY... Doesn't the I9100G use a non-AMOLED screen? Are you flashing a non-I9100G ROM?
[Galaxy S II Themes and Apps] creezalird:
i do read it and saw that one too. i am flashing the stock firmware itself.

just using the kitchen, for unpacking, and repacking. totally zero of mods, so that i can conclude where the problem lies.

as far as i am concerned, the i9100G use super amoled plus which i think still the same like in normal i9100 right?

---------- Post added at 02:17 AM ---------- Previous post was at 02:15 AM ----------

i am suspecting maybe i have a corrupt downloaded firmware, but the firmware seems to be OK when flashed directly with odin.

just for info, the firmware file is actually a .tar.md5 file, so to get the kitchen to recognize it, i just renamed it to .tar
[Galaxy S II Themes and Apps] dsixda:
Shouldn't be a corrupted file since the kitchen can extract the files and build a ROM with it. I really don't know what could be the issue.
[Galaxy S II Themes and Apps] creezalird:
i will try to test around and report it if anything changes. thanks for ur concern..
[Galaxy S II Themes and Apps] foxtd:
In ver.182 no work deodex
[Galaxy S II Themes and Apps] dsixda:
Read the menu options. Hint: second one says "Important!"
[Galaxy S II Themes and Apps] foxtd:
Working on Ubuntu

ver.180 -- work

ver.182 -- no work

Command start both version equal
[Galaxy S II Themes and Apps] dsixda:
Ok, I don't understand caveman talk. ;) Just kidding. You need to provide details like actual screen output, not "no work" or "it work".

If you are using Linux, there was a minor change I made earlier today to fix a carriage return issue in one of the text files in the tools folder, that may help with your problem. So just re-download 0.182 if you are using Linux.
[Galaxy S II Themes and Apps] foxtd:
ver 182 cannot find baksmali.jar and mali.jar

ver 180 -- find...

---------- Post added at 07:57 PM ---------- Previous post was at 07:41 PM ----------

re-download 0.182 -- all work

thanks
[Galaxy S II Themes and Apps] teshxx:
I am using Tmobile's Galaxy SII (T989). Can anyone please tell me how to deodex Maps.odex, Phonesky.odex, Voicesearch.odex, and ims-service.odex ??

I keep on getting errors on these.

Thanx
[Galaxy S II Themes and Apps] Jwtiyar:
Any Isntruction to how Using Porting Tools ? its needed .