yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Themes and Apps] dsixda:
Hmmm, I had the exact same issue as you, back in January (see discussions on the 15th and 16th of that month), where the su would fail to work and wireless would not connect. It does seem like a kernel issue. I don't know what was the reason for it, but when I flashed again the problem went away :confused:

The reason you see fewer symlinks in the new update script is that when you copied the bin folder in Root Explorer it made copies of the target binaries rather than symlinks (shortcuts to the target binaries), so the kitchen didn't see any symlinks to add to the update script.

I'll try to debug your issue further. Thanks for the help
[Galaxy S II Themes and Apps] dsixda:
OK, I see one problem here when comparing your files.

Your update-script is missing the symbolic link for /bin/sh which points to /bin/mksh, e.g.

symlink mksh SYSTEM:bin/sh

I am using using LP9 ROM with a Mac and this entry was created. I will try with Cygwin next.

EDIT: Ok, so I have used Cygwin. I see why the problem happens now. I can make a fix in the kitchen so that if it sees the file "/bin/mksh" in the working folder, it will automatically create a symlink for "/bin/sh" (if it doesn't exist).
[Galaxy S II Themes and Apps] dsixda:
OK, can you unzip this file and overwrite your current files with the ones enclosed. Hopefully this fixes it. The factoryfs.img extraction behaviour in Cygwin should now be equivalent to that in Linux/Mac.
[Galaxy S II Themes and Apps] :
lol thanks man, i will give it a go and report back, and sorry for all the inconvenience :)
[Galaxy S II Themes and Apps] dsixda:
No man, sorry for MY inconvenience ;)
[Galaxy S II Themes and Apps] :
Bravo sir, everything seamless as can be :) No errors at all, root working fine as well as wireless, hehe Appreciate your help :)
[Galaxy S II Themes and Apps] dsixda:
Bravo!!!

I'll update the kitchen version with the new changes. Thanks a lot for your patience.
[Galaxy S II Themes and Apps] dettofatto:
Yes.. I know... I don't have any samsung galaxy, but only a motorola droid pro...

I've done a simple rom.zip from my nandroid backup and it is good!

But... I've seen that i've a lot of symlink in other folders (not only under xbin, or bin)...

And so Android kitchen give me a semi blank file (for understanding if i open one of these files i can see this:㰡祳汭湩㹫﻿/system/usr/keylayout/xxxx)..

Can I add an instruction for searching symlink everywhere?

for example If I replace one of these files with a right symlinks my keboard (yes i have the harware keyboard...) run...

Anyone have a litlle suggestion? For a little phone with a strange hard keyboard...? ;-)

Thank You, and I'm sorry for my intrusion...
[Galaxy S II Themes and Apps] jorsolano:
Hello dsixda,

i have a recommendation/suggestion either for the guide or for the kitchen menu, if you do not mind.

I assume most of the people like to use the same CSC. That could mean that all the kitchen users have extracted and save :confused: a copy of the "sec_csc.zip" file.

The text could be: "if you already have the sec_csc.zip file, extract its content to...."

Thank you.
[Galaxy S II Themes and Apps] WhoIsJohnGalt1979:
Anything new post this?:victory:
[Galaxy S II Themes and Apps] Rueben_:
Hi GUys I keep running into this error when trying to extract boot img any help please :)

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)

Kernel found at offset 24061976 in boot.img
Making folder BOOT-EXTRACTED ...

Extracting kernel ...
Error: zImage is empty!
Extracting ramdisk ...
Error: No ramdisk folder found!
[Galaxy S II Themes and Apps] dsixda:
There is no boot.img in the stock ROM of an I9100. Are you sure you have the correct ROM??
[Galaxy S II Themes and Apps] Rueben_:
Hi I am using my own ROM for the Samsung Galaxy S WiFi 5.0 the boot.img is attached :) The boot.img is present as i have it below and can clearly see it in the ROM.
[Galaxy S II Themes and Apps] dsixda:
Galaxy S Wifi? This thread is only for the I9100. Please don't confuse the users of this thread, you'll need to ask your question in Chef Central. The first post of the main kitchen thread also lists the supported devices.
[Galaxy S II Themes and Apps] Rueben_:
Ok sorry ive asked there then :)

EDIT: The main thread has been closed though :(
[Galaxy S II Themes and Apps] dsixda:
I said Chef Central forum
[Galaxy S II Themes and Apps] RomsWell:
Anyone have any idea why my output.zip is so much larger then my source files?
[Galaxy S II Themes and Apps] dsixda:
Is there a factoryfs.img file still in the new ROM?? Are you using Windows? Did you remember to close the factoryfs image extraction application when it told you to?
[Galaxy S II Themes and Apps] RomsWell:
Thanks for the reply. Naw ima retard API was wrong. Lol all is well
[Galaxy S II Themes and Apps] GJ123:
Trying to make a release using XWLPG and I replaced the zImage with the zImage of NEAK, but root and busybox fail says the kitchen.

Or are those options only for stock kernel?
[Galaxy S II Themes and Apps] WhoIsJohnGalt1979:
I had used the zimage of cf root xwlpg..had worked perfectly fine...please try and revert.
[Galaxy S II Themes and Apps] Siberian Tiger:
You put the zimage in the original update folder or in the working folder ?

Thanks :)
[Galaxy S II Themes and Apps] GJ123:
In the original rom folder, is that a problem?
[Galaxy S II Themes and Apps] WhoIsJohnGalt1979:
Original update folder:)
[Galaxy S II Themes and Apps] Xroom01:
Please master dsixda!

a correct update.zip for start to deodex stocks roms please

EXCELLENT WORK!

all works super fine!
[Galaxy S II Themes and Apps] Sherlocks:
i have a problem in mac

Welcome to dsixda's Android Kitchen

Please wait .......od: illegal option -- -

usage: od [-aBbcDdeFfHhIiLlOosvXx] [-A base] [-j skip] [-N length] [-t type]

[[+]offset[.][Bb]] [file ...]

Error: You do not have the correct version of 'od' installed.

Refer to the FAQ for the Android Kitchen at

xda-developers.com to ensure you have installed the GNU

version of od.

Sherlocks-MacBook-Pro:android-kitchen Sherlocks$

i used Mac OS X lion

i installed MacPort

i dont have file (usr/bin/god)

maybe macport isnt lnclude god file

where can i get this file?:crying:
[Galaxy S II Themes and Apps] dsixda:
Download and build the gnu version of od from gnu.org
[Galaxy S II Themes and Apps] skudo101:
How can use tool to cook with Kernel Xperia 2012, Kernel is *ELF file :( not *IMG, Please help me!
[Galaxy S II Themes and Apps] DarkCento:
hi!

I have read in this post that this program works with galaxy note n7000. If it is not like that correct me please.

The problem is that when I am creating the folder of work this message jumps me:

Warning: A valid boot.img is not found. You have the option to add a 'fake' boot .img so that the features of the kitchen can still function normally.

This boot.img will be automatically removed from your ROM's ZIP file when it is built.

Add boot.img (y/n) (default: Y)

I press y or n ¿??:

Which is the problem?

Thank you in advance.

P.S. Sorry for my english. I use google translator.
[Galaxy S II Themes and Apps] dinuvali:
Hello,

First off, i've read all the FAQs and all the posts i could find and tried all the solutions that you gave to this issue:)

My error is Status 6 while flashing.

I took a very slightly modified AOSP JB ROM (crespo / Nexus S) (http://xdaforums.com/showthread.php?t=1843301) and added root, busybox and init.d via your kitchen. It wouldn't flash.

I took a look at both updater-scripts side by side and copied the format and mounts from the original to the cooked one. It wouldn't flash.

I deleted the assert at the end of the cooked updater-script and it wouldn't flash.

If i check the update-script (option 9 via kitchen) it says that package_extract_file is not found, but the original updater-script does contain it.

I'm using Ubuntu and gedit while editing the files.

What else can i try?

Thanks
[Galaxy S II Themes and Apps] neuropass:
is this working for Galaxy SIII ?
[Galaxy S II Themes and Apps] sarf2k4:
newbie in cooking

Hi, I am new to cooking a ROM and I am using GT-N7000. I believe both i9100 and n7000 ROMs are basically the same since dsixda pointed the n7000 guide into this thread.

I am trying to replace the default kernel from a stock odexed ROM with the kernel I downloaded that is flashable with cwm and I am confused by this instruction by dsixda http://xdaforums.com/showpost.php?p=7628768&postcount=1664

The quoted text above, I assume we just replace the zimage file in the ROM root folder? for example:

\data

\meta-inf

\sdcard

\system

boot

flash_image

modem.bin <== I think this is the modem/baseband and I replace this with the modem I wanted right?

zimage <== I assume this is the kernel and I just replace this and other files included from the cwm flashable right?

I couldn't find an exact answer to my question, sorry to have this posted again if there is any

Thank you in advance
[Galaxy S II Themes and Apps] zscomp:
Yes

Correct.Your steps must be:

1. Put your rom files in the original_update folder.

2. Replace the zimage in original_folder with the zimage you want.

3. Start kitchen :)
[Galaxy S II Themes and Apps] sarf2k4:
Ok, I've done most of the de-odexing parts and I wanted to know how can I replace the kernels. As for the modem, there are two files, flash_image and modem.bin. I replace both of these as well right? meta-inf isn't necessary was it?

The cwm flashable kernel I downloaded also included some \bin and \system folder. I include these as well?
[Galaxy S II Themes and Apps] zscomp:
If you allready started, put only zimage and modem.bin to working folder before you make the final zip.
[Galaxy S II Themes and Apps] sarf2k4:
I have replaced the ls3 modem but when i flashed it on to my phone, still shows the ls1 baseband version. Any ideas?
[Galaxy S II Themes and Apps] zscomp:
Be sure that flash_image and modem.bin are in the root directory of zip file and in the updater-script exists the following lines:

package_extract_file("flash_image", "/tmp/flash_image");

set_perm(0, 0, 0777, "/tmp/flash_image");

assert(package_extract_file("modem.bin", "/tmp/modem.bin"),

run_program("/tmp/flash_image", "/dev/block/mmcblk0p8", "/tmp/modem.bin"),

delete("/tmp/modem.bin"));

If not, add them :)
[Galaxy S II Themes and Apps] dsixda:
Hi guys, I am on vacation, so I can't offer much help at the moment.

But for instructions, just follow post #1 of this thread. The kernel info in the kitchen FAQ from the other thread is from 2010, so don't follow those, as they involve a boot.img which is not in the SGS2 ROMs.

For the modem, as it says in post #1, replace modem.bin, not flash_image; otherwise you may be using the wrong flash_image that is not provided by the kitchen.

For the kernel, also as in post #1, replace zImage.

Everything will be done automatically by the kitchen, and the updater-script will be updated whether you add or remove the modem/kernel before building.
[Galaxy S II Themes and Apps] sarf2k4:
Erm, I got something almost similar to the above, but here is the code

package_extract_file("flash_image", "/tmp/flash_image");
set_perm(0, 0, 0777, "/tmp/flash_image");
assert(package_extract_file("zImage", "/tmp/zImage"),
run_program("/tmp/flash_image", "/dev/block/mmcblk0p5", "/tmp/zImage"),
delete("/tmp/zImage"));
delete("/tmp/flash_image");
ui_print(" ");
ui_print("Flashing XXLS1 Modem");
ui_print("");
assert(package_extract_file("modem.bin", "/tmp/modem.bin"),
write_raw_image("/tmp/modem.bin", "/dev/block/mmcblk0p8"),
delete("/tmp/modem.bin"));
[Galaxy S II Themes and Apps] sarf2k4:
Thank you for the very useful info. I really had it missed due to following some guides in the chef central section. Guess i had to start over again but it is okay to start over.

May i request for an extended reboot menu for jb release from this thread?

Seems like it is not easy to find this useful mod

Thank you in advance:)
[Galaxy S II Themes and Apps] zscomp:
Both methods are correct.

You shoudnt have problem.

Are you sure the modem.bin is the correct one?

Give a try to my method
[Galaxy S II Themes and Apps] sarf2k4:
Yes, I've replaced both flash_image and modem.bin in my initial ROM cooking so as dsixda said, I only have to replace the modem.bin and zimage in order to include the desired file and flash_image should be used with default and not patched from the cwm flashable modem.

I am going to put this current hobby on-hold a while until I found a better mod/apps and new release pack for my ROM. I am going to miss Rocket ROM though, that is why cooking my own ROM :laugh:

In the meantime, I try to mess with the ROM a little bit :highfive:
[Galaxy S II Themes and Apps] dsixda:
For those who have been asking me why the new I9100 Jelly Bean leak does not boot when customized in the kitchen, it's because the apps in system/app are actually symlinks that point to files in hidden.img. This is not supported in the kitchen. I'm on vacation now too.
[Galaxy S II Themes and Apps] Mirko ddd:
yoshi! we ll add manually missing symlinks xD

stated this morning http://xdaforums.com/showpost.php?p=34257420&postcount=48
[Galaxy S II Themes and Apps] dsixda:
As of version 0.215, I've added support for the recent Jelly Bean leak ROM. It fixes the /preload symlink issue everyone was having.
[Galaxy S II Themes and Apps] cnn888:
thank you for your guide... finally i am able to deodex, slim down, add/change whatever i want... to the samsung rom, myself.... took only 1 hour to build and it's worth it. testing out newly born baby....

once again... thank you....
[Galaxy S II Themes and Apps] Mattix724:
What's different in 0.218????

---------- Post added at 08:17 PM ---------- Previous post was at 08:09 PM ----------

I noticed the preload partition is no longer recognized....
[Galaxy S II Themes and Apps] dsixda:
:P The Release Notes are linked in Post #1.

? You'll need to elaborate, this doesn't help me understand what the actual problem is.

The ROM running now on my device was made with my kitchen from the Jelly Bean leaked firmware.
[Galaxy S II Themes and Apps] mani1999:
How do I change the csc and the kernel which is already in the rom?
[Galaxy S II Themes and Apps] zscomp:
Drag n drop the kernel and the csc folder you want in the working folder of the rom or if allready made the zip, replace the corresponding files in the zip.
[Galaxy S II Themes and Apps] mani1999:
AW: [GUIDE] dsixda's Android Kitchen - Now with SGS2 I9100 support (Windows/Linux/Mac

I replaced the zimage and a other file with the one from the kernel, than I made a zip (just typed 99 in dsixda kitchen) and flashed it on my device, but now my rom doesn't boot up anymore, when I turn on my device, it shows the bootlogo and than reboots into recovery.
[Galaxy S II Themes and Apps] _Sofos_:
Hmm i've searched abit but with no luck.

I am trying to create a rom with LS8 as base.

When kitchen checks my update-script for possible issues i'm getting this log ->

Any ideas what's wrong?

Thank you in advance.
[Galaxy S II Themes and Apps] dsixda:
Why are you using something in the *Legacy* Options section??
[Galaxy S II Themes and Apps] _Sofos_:
I saw that is it is not recommended but since i couldn't find what's wrong with my build and saw this option thought i could give it a chance.

So what the update-script check said has nothing to do with my issue?

I changed the stock kernel (zImage changed) and csc (changed cache.img and extracted with your tool, even checked if the correct files got extracted correctly into system folder), deodexed and after the bootlogo i got back to recovery menu, didnt even got to the bootanimation.

As we speak i am trying a new one. Changed only the stock kernel, added su and busybox, extracted both system and hidden files, copied the ones from preload folder into system/app and deodexing, everything else = stock.

I will report back.
[Galaxy S II Themes and Apps] dsixda:
I haven't tried modifying the official JB update but had no problems with the November JB leak.. I don't bother with custom roms anymore.

Note that the JB rom requires a hard reset before flashing over ICS.
[Galaxy S II Themes and Apps] _Sofos_:
LS8 Official JB - issue

Done 3 wipes before flashing (allways wiping everything before trying something new).

I tried pretty much everything and the issue still remains, it booted fine but it definately has to do with the deodexing of specific apps cause i keep getting lots of fc's after getting into the first screen. (kitchen doesn't show any errors after deodexing btw).

Also in preload/symlink/.. folder there are some .odex files while there shouldn't since i've deodexed everything. Those files are :

SecSettings.odex

SecPhone.odex

SecMms.odex

SecGallery2.odex

SecEmail.odex

SecContactsProvider.odex

SexContacts.odex

SecCalendar.odex

MobilePrint.odex

The fc's i'm having after flashing are :

com.android.phone

Contacts

Email

android.process.acore

Gallery

I believe it's the exact same problem with some apk files back with 4.0.3 leaked version.

If i manage to fix it i'll post here.

EDIT: Erhm.. the kitchen deodexing was fine BUT for some strange reason it keeps those .odex files i've already said above in preload folder.. if you simply manually delete them from the .zip.. voilla!! Ze Rom!:cyclops:
[Galaxy S II Themes and Apps] zscomp:
Maybe kitchen's script doesnt delete the odex files after finishing deodexing from the preload folder but only from the system/app
[Galaxy S II Themes and Apps] dsixda:
You're supposed to manually *move* all the apks and odex files from /preload to the /system/app folder *before* you deodex, as was already mentioned in the kitchen while you were unpacking the ROM.

You're not supposed to delete odex files in your zip file manually, they belong to apk files. You're going to mess up your ROM.
[Galaxy S II Themes and Apps] dsixda:
Nothing gets deodexed in the preload folder by the kitchen. The kitchen made it very clear in a help dialog that the user has to move them manually to the /system/app folder.
[Galaxy S II Themes and Apps] _Sofos_:
Believe me I did exactly as kitchen told me.. *copied* all the apks and odex files from /preload to the /system/app before deodexing while unpacking the ROM as it is showed in the pic below.

(moving them probably will solve the fc's).

And I deleted them (odex files) after checking in kitchen's log that they were deodexed correctly (their size changed as well :>) so nothing went wrong.

Everything worked as it should.

Yeah but after deodexing kitchen asks you if you want all those apks to get moved back into /preload folder (default option is y) so.. either some specific .odex files don't get deleted from system/app and then they get moved into /preload or.. i got no clue.

Anyway, since i already created 2 fully working roms i'm fine and thank you!!

Just wanted to give you a heads up.
[Galaxy S II Themes and Apps] dsixda:
Hmmm Looks like you found a small mistake on my part. I should have said "moving", not "copying" in the kitchen. The original files should not be left behind int he preload folder. That would make a big difference.

Good to know, but yeah it looks like I should have instructed the user to 'move' the file to /system/app instead of copying. Thanks for letting me know, and congratulations on your first ROM.
[Galaxy S II Themes and Apps] dsixda:
@ _Sofos_:

I've updated the kitchen to version 0.220. This should do all the moving automatically without having to worry about moving anything manually.
[Galaxy S II Themes and Apps] gnvieira:
Stuck at boot

i have a problem here, i.m deodex the xxls8 rom, thas perfect, add some mods, and all working, but only if i hava a custom rom instaled im my phone, if i try installing my rom in an official rooted rom, i get stuck at boot animation screen, i dont know here i fail, because if i do some changes im my rom and flash again over my own rom or another custom rom, this work withouth fails, any help?
[Galaxy S II Themes and Apps] zscomp:
Do a factory reset after you install your rom.

If this doesnt work, consider to change version (LSD is already out) as the ls8 kernel have bootloop problems.
[Galaxy S II Themes and Apps] gnvieira:
ok thnks i wil change the version, tks man
[Galaxy S II Themes and Apps] gnvieira:
Same problem here

Ok i do a factory resetm and nothing, format system and preload before flash the rom, nothing again, build a new rom with the new xxlsd, change the kernel to new philz lsd kernel, and again nothing, i restore my system back to my old rom and flash the new, lsd, and working great, now what can i do? can be a problem with updater-script, i see the recovery.log, and everything is ok, no errors, can be a problem with kitchen?
[Galaxy S II Themes and Apps] :
need for symlink lines system->preload in updater-script ?

@dsixda

Thanks for providing a kitchen running on linux.

I built a zipaligned deodexed ROM zip from

I9100XWLSD_I9100OXXLS6_I9100XXLS8_HOME.tar.md5 with kernel from

PhilZ-cwm6-XWLSD-OXX-4.22-signed.zip and I have a question before I

flash my first dsixda I9100O ROM:

I notice /system/app is (nearly) empty, which is fine since they are

in /preload/symlink/system/app, however, I wonder if I should modify

updater-script to add a line

symlink("/preload/symlink/system/app/FooBar.apk", "/system/app/FooBar.apk");

for every FooBar.apk in /preload/symlink/system/app, or, perhaps this

is not required?

Thanks
[Galaxy S II Themes and Apps] _Sofos_:
Απ: [GUIDE] dsixda's Android Kitchen - Now with SGS2 I9100 support (Windows/Linux/Mac

It is not required, kitchen creates automatically the correct script. Be sure you've downloaded the latest version and that's all.

Edit: Be careful with the kernel versions. There isn't a brick bug but still some bootloops here and there cause of them. It's not kitchens fault, it's definitely the kernel.

Στάλθηκε από το GT-I9100 μου χρησιμοποιώντας Tapatalk 2
[Galaxy S II Themes and Apps] :
Thanks _Sofos_

I asked because I noticed such symlink lines in GT-I9100-XWLS8-FOP-deodexed-by-tedascuen.zip updater-script.

Perhaps create_preload_symlinks is taking care, right?

As for the kernel, I successfully run the I9100XWLSD_I9100OXXLS6_I9100XXLS8_HOME ROM with PhilZ-cwm6-XWLSD-OXX-4.22 combo right now but I wanted to play around and try same combo but deodexed/zipaligned.

have a nice day
[Galaxy S II Themes and Apps] _Sofos_:
Απ: [GUIDE] dsixda's Android Kitchen - Now with SGS2 I9100 support (Windows/Linux/Mac

Don't worry I've deodexed lots of roms in the last few days and I must say there is no need to add or edit anything :)

You can find the Rom already Deodexed and zipaligned in the Android development btw, I've done it myself but with the stock kernel.

I had no stability problems with 4.22 version as well (about the kernel) but I noticed some weird loops after flashing mods etc, that's why I suggested a newer version (could have been a bad mod tho didn't really check it out).

Στάλθηκε από το GT-I9100 μου χρησιμοποιώντας Tapatalk 2
[Galaxy S II Themes and Apps] gnvieira:
ok, i will check the mods and try again, the only thing that's embrace me is the rom works if i flash over another custom rom, or some oficial deodexed, and i ot flash the mods i decompile the apps edit them and compile again, TKS,
[Galaxy S II Themes and Apps] _Sofos_:
Απ: [GUIDE] dsixda's Android Kitchen - Now with SGS2 I9100 support (Windows/Linux/Mac

No you misunderstood me, my answer was for @Nofan Tasi!

About your issues, since it works at some way with custom roms can't be your mods causing the issue. It can't be kitchens fault either.

I believe it's a kernel issue but can't be 100% sure..

Στάλθηκε από το GT-I9100 μου χρησιμοποιώντας Tapatalk 2
[Galaxy S II Themes and Apps] :
Thanks _Sofos_

just one caveat with 4.22 cwm, ... it does not backup /preload, so a custom backup must be chosen, I guess you must know already ;)

have a nice day
[Galaxy S II Themes and Apps] gnvieira:
thks again, man sorry about the trouble, i will work with another kernel, and test.