yashsingh1/xdaforums huggingface dataset:
[Android] pimpmaneaton:
Awesome thank you for the reply. Also I think I found one of my problems and my Tom is not getting zipped correctly. I tried to open using astro and gives an error where as all other open fine( not created by me). Astro states its a Java.zip. error. Problem must be on my side will look into that.

But also it did get converted to an updater script. I just posted part of the update script just because that is basically what it starts from and then converts. Your program is freaking amazing. Just need to teach myself some more stuff.
[Android] AngelDeath:
Any idea on my issue? Has it been overlooked, or has that been answered previously and I didnt catch it in the 92 pages I read?
[Android] dsixda:
Are you asking me? I don't know man, I'm no Android expert, I just write the scripts.
[Android] leith51:
I have a question, well more like confirmation.

Option 22 sign apk...

Am I right in saying that if I modify an apk outside the kitchen with say apktool, and the apk is framework-res.apk. then option 22 will sign the apk with the resources from the working folder, are am I wrong in assuming this?

Sent from Levo v1.3
[Android] dsixda:
What resources? All I do is a sign command on an apk.
[Android] zooz11:
Sorry for the silly question, but:

what are the benefits of signing any file?!
[Android] jerrylzy:
Hi,dsixda! I wonder how i can repack boot files into boot.img,thanks :D
[Android] zooz11:
you can use option no. 20 - tools for boot image (unpack/repack)
[Android] jerrylzy:
Yes,but i can only find extract option and exit option
[Android] dsixda:
It won't have a repack option unless you have a BOOT-EXTRACTED folder and has a copy of the original boot.img so that it knows its base address, command line and page size so that it can rebuild it.
[Android] dsixda:
It prevents impotence

Just kidding. It basically puts it into a format that Android recognizes and ensures it is a safe zip to flash. There are other reasons as well but that's the simplest one.
[Android] AngelDeath:
I understand that, but I'm wondering if it might be a bug in the kitchen/script, taking a cwr magdlr rom and when rebuilding it I choose option #2 for clk loading. Because the only difference between magdlr and cLK is the way the boot is handled/created. And when I extract the rom I choose to convert updater-script to update so that it can write the command during rom re-building into the update-script so its there when it converts it back to updater-script. I am doing this for the HD2 if that matters.
[Android] dsixda:
I don't know, you'll have to determine what the issue is. Frankly there are probably a hundred different things that probably are not perfect with the kitchen, but there are other things that may not have to do with the kitchen. I just hope you can figure it out. I don't own all these devices and I have already spent way too much time debugging things on my own that ultimately lead to nowhere. Hope you understand..

Also guys please don't obligate me to reply to every single post.. ie. If you don't see me reply then please understand I have other things to take care of, and do not repost. There are forums for your device on xda where people can help you as well. Thanks
[Android] leith51:
So it would be a good idea to sign an apk after modifications using a tool that doesn't do signing after building it

Sent from Levo v1.3
[Android] econcep:
My HERO! LOL ;)
[Android] jerrylzy:
Thanks!I'll try it later..
[Android] dsixda:
I'm honestly not an expert on signing APKs... I just write the scripts. I only sign my ROMs.

Just search the thread for 'signing'... there is lots of information on when to sign what.
[Android] dsixda:
Ok, so I have uploaded Kitchen version 0.161. The issue above has been fixed... the kitchen will look for the new filesystem types (ext4) on the Ace and other devices, while still handling the older filesystem (e.g. ext3) if it applies.

I've also made several other updates in 0.161, so please read the Release Notes in post #2 for details. Thanks to those who helped out and offered feedback.
[Android] purple1:
why am i getting errors? "no roms found under original_update folder!"?!?!?!
[Android] ciolnadu:
i just love this one :D

Added more help text in some places, to prevent the same questions being asked over and over ;-)
[Android] dsixda:
Because you have nothing under the folder called original_update
[Android] leith51:
Man you update so regular Im still on 0.159 great work

Sent from Levo v1.3
[Android] freak69ize:
Ok so i jus ported a GSM rom ( Leedroid ) successfully to my CDMA Desire.. only thing is.. no data connection.. hmm didnt think about that.. lol gonna make a back up though and go pick up a wireless router tomorrow and see how that goes.. well nevermind.. caught a weak signal and downloaded something so wifi works.. gonna try apn back up and restore and see what that does.. but anyways im rambling.. lol Awesome kitchen!!
[Android] ldrifta:
haha nah im just an idiot.. i unziped it but not straight to the host folder.. it went to its own folder. and that folder was inside the host folder, but the files need to be in the host folder themself. lol sorry if that sounds retarded but i figured it out.. lol thank you though haha wasnt even sure if anyone answered it because i figured it out right after i posted that... :D
[Android] timreams:
ok so i am pretty new to this whole thing and just have a couple questions.

1. if i am working from someone else's custom ROM as a base will all of the hardware work by default or do i need to make any changes?

2. i may be missing something but is there a way to remove APKs from the ROM? i assume i can just delete them from the data\app in the working folder before i zipalign and build but i dont know if this will cause issues?

3. to add APKs is it required that i do it via the kitchen or can i just drop a downloaded APK into data\app directory?
[Android] stlouie65:
I followed the instructions, setup my linux box, when I run the Kitchen, I don't have any Advanced Options but 99? How do I get the rest of them like posted in the OP?
[Android] zooz11:
Just enter 0 then (enter)
[Android] stlouie65:
Thanks zooz... I'll give that a try
[Android] leith51:
1.depends if the custom Rom works in the first place and you have permission to use it

2.some apks can be removed without issues best way is to remove them while on your phone then you will know

3. There isn't an option via kitchen?? And once again depends which apks your using if its a paid apk then you need permission from the person who made it

Sent from Levo v1.3
[Android] dsixda:
Questions 2 and 3 are already answered in the FAQ, under the user instructions. So please read the FAQ before you ask questions, as directed in post #1. Have fun
[Android] timreams:
thanks leith...as far as #3 goes i was aware of the option to add via the kitchen i was just curious as to whether it matters if i add them via kitchen or just drag and drop into the working directory data\app folder
[Android] Yekxmerr:
I've a question that is bothering me alot. What's the difference in our development workspace ? ( OSX vs Windows vs Linux ) Im a windows 7(x86) user and i would like to know if i gain anything if i decide to develop in Linux.

Regards
[Android] dsixda:
You mean in terms of using the kitchen? It runs noticeably faster in Linux, and also none of those third party applications are required when extracting folders from newer HTC system.img files.
[Android] Yekxmerr:
So Linux is slightly superior as a workspace (In rom development). Thank you.
[Android] reef2009:
Hi dsixda,

I got some errors signing update.zips.

The errors are becouse of spaces in the name of the zipfiles.

Maybe its posible to auto rename the zipfiles so the get signed like the roms when creating a working folder.

e.g. "update v1.zip" got errors

e.g. "updatev1.zip" got no errors

result signed-updatev1.zip.

Maybe this is usefull to you.
[Android] dsixda:
Why are you still using spaces in file names ;) this was discussed a lot already in this thread.

I could fix it but it will require a re-write of that whole script. :(
[Android] jaykresge:
Just wanted to say that I've been using the kitchen in Ubuntu via VirtualBox for several months. Switched to the Cygwin method (not sure when you started supporting that) and love this. Ubuntu was high maintenance via VM for a guy like me who doesn't generally care for Linux (even though I know I'll have to eventually make a full switch on my Laptop if I want to get more serious about this sort of thing).

Anyway, just wanted to thank you again.
[Android] reef2009:
Haha oké don't do it!

Iwillremovemyspacebar :)
[Android] dsixda:
Sure, if you're naming a unix-based file, but not a post on a message board.
[Android] Gemgem:
Hi, I have a problem setting up my working folder :

[: 5: unexpected operator
[: 122: 0: unexpected operator
[: 135: unexpected operator
[: 135: Elelinux-7.1.0-Hero-v2.3.zip: unexpected operator
scripts/choose_rom: 135: file_array[1]=Elelinux-7.1.0-Hero-v2.3.zip: not found
[: 135: Elelinux-7.1.0-Hero-v2.3.zip: unexpected operator

With the last version of Elelinux ROM I got no error but now when I re-copy older versions I get this :

[: 5: unexpected operator
[: 122: 0: unexpected operator
[: 135: unexpected operator
[: 135: Elelinux-7.0.0-Hero-v2.0.zip: unexpected operator
scripts/choose_rom: 135: file_array[1]=Elelinux-7.1.0-Hero-v2.1.zip: not found
[: 135: Elelinux-7.1.0-Hero-v2.1.zip: unexpected operator
scripts/choose_rom: 135: file_array[2]=Elelinux-7.0.0-Hero-v2.0.zip: not found
[: 135: Elelinux-7.0.0-Hero-v2.0.zip: unexpected operator
scripts/choose_rom: 135: file_array[3]=Elelinux-7.1.0-Hero-v2.3.zip: not found
[: 135: Elelinux-7.1.0-Hero-v2.3.zip: unexpected operator

I'm running under Ubuntu 11.04, and so maybe it's about 10.10 to 11.04 ??? (I didn't remember if under 11.04 it' was working or not...)

If someone have a solution...

PS I already try deleting the dashes...
[Android] CH3NO2:
so i just read through about 20 pages of this thread in the past 45 minutes (i'm typing a paper at the same time) and i've been learning how to port a rom a bit here and i was wondering what are some common problems that cause a rom to boot back into recovery when porting a rom?

just common problems so i can have an idea of what to be looking for. i'm still new to this so ANY thing you say about this is considered valuable info lol
[Android] Ameet:
hey brother.. would soon be eating ur brains out on android stuff :D planning for htc desire.. heard its good :)
[Android] dsixda:
Whoaaa.. where have you been?

Hope you can come up with some Android tricks like you did in the WinMo days.. :D
[Android] Ameet:
:) After I got married, found no time to stick around experimenting on ROMs without killer stares from the wife :D

Well, I bought Desire S just today, so kinda going through the posts :)
[Android] indagroove:
Try having kids. Really no time then..
[Android] dsixda:
Yeah in my case my free time is after midnight :D
[Android] JGW310:
i am running OSX and when i start the kitchen it says that i dont have the right version of SED installed, but i DO AND I HAVE RE INSTALLED IT 9999999999 times on my mac!!!

help please!!!!!!!!!!!!!!!

i think this error also prevents the kitchen from extracting a rom, because when i tell it to go on without SED, it will work fine but it wont extract a ROM (which is an obvious issue)
[Android] dsixda:
What does it show when you type: "sed -version"

And: "which sed"
[Android] JGW310:
this is what i get when i type sed -version....

MacBook-Pro:~ JGW$ sed -version
sed: illegal option -- v
usage: sed script [-Ealn] [-i extension] [file ...]
sed [-Ealn] [-i extension] [-e script] ... [-f script_file] ... [file ...]

i guess i must be installing the GNU version of it wrong, but i dont know how, when i download it, i use "installer" that automatically pops up to assist with installation, so yeah... :|

WAIT

I HAVE AN IDEA, SINCE IT IS RUNNING OFF OF A DISK IMAGE I THINK I HAVE TO INSTALL SED ON THE DMG... ONE SEC!!!!!!!!!!!!!!!

nevermind, it didnt work :(

PLEASSEEE HEELLLPPPPP!!!!!!!
[Android] TMartin:
My free time for phones only comes while I'm at work. It definitely makes my day go by a lot faster.

Posted from my HTC Evo 4G on Tapatalk Pro!
[Android] dsixda:
Since it gave an error it means it didn't detect the GNU version, which supports the "-version" parameter (actually, it's probably "--version", I forget now).

The default sed that comes with the Mac is NOT the GNU version. Follow the instructions in the FAQ as they are written, don't take shortcuts. There is already lots of info in the FAQ about your issue, don't overlook it --- people ask this same question over and over again without reading the FAQ first.

You didn't post the output of the second command I mentioned.
[Android] TJinWV:
LOL, glad I'm not the only one. :D
[Android] TMartin:
Hey dsixda,

Strange issue. I went to setup a new working folder from the boot.img & system.img from RUU_Saga_Telstra_WWE_1.36.841.3_Radio_20.28d.30.08 05U_3805.04.02.01_M_release_184558_signed and everytime after I enter my sudo password, it just hangs. I've exited out of the terminal box and tried deleting the working folder but it hangs up on the hidden .fuse file. If I delete the .fuse file it adds itself back ie if the fuse file is .fuse_hidden000abb4c00000013 and I delete it, it will come back as .fuse_hidden000abb4c00000014. I have tried sudo rm -rf and it keeps telling me the folder isn't empty. Any help?

I'm on Ubuntu 11.04
[Android] dsixda:
Have you seen this?

http://ubuntuforums.org/showthread.php?t=550145

Maybe you something else using the file.
[Android] JGW310:
i did read the FAQ, i didnt see anything about my issue.....................
[Android] Kangburra:
What is using the file? Use lsof to find out why it can't be deleted.
[Android] dsixda:
At the top of the FAQ where it talks about Macs, with an ENTIRE SECTION about SED.
[Android] Gemgem:
Hi all,

About my problem here, I finally found the solution...

I was launching the kitchen typing

$ sh menu

instead of

$ ./menu

Sorry for that, I'm not a long time Ubuntu user...
[Android] JGW310:
i read that, and tried it all :( to no avail
[Android] mmarks9156:
I am trying to cook my first ROM and I want to use VR Kingdom port as my base. I keep receiving error unable to extract ROM. Any ideas? I did a search on this thread and no answers.:)
[Android] jaykresge:
Start small. Cook a stock ROM and root it. Get more adventurous from there. Porting requires more know-how than just picking the portion options and then compiling it.
[Android] dsixda:
That's why you are supposed to read the FAQ to set up and run the kitchen for the first time ;)
[Android] dsixda:
You need to be more specific... copy and paste the entire message and stuff leading up to it.
[Android] dsixda:
You still have not answered my second question from the original reply.
[Android] JGW310:
when i type "which sed" it says "/usr/bin/sed"................................
[Android] dsixda:
Where did you install the gnu sed, if you had installed it? If you didn't install it then read the FAQ .. all the information has been there for some time.
[Android] bigheart2010:
Language files from rom to other

Hello

i read the whole posts and i didnt find an answer for my question

my 1st question

if i have a rom that supports some languages like chinese

and i want to take the language file from this rom to put in my cooking rom how i can do that , ie i have an hd desire rom with languages support and i want to add this support to another rom with same android 2.3

my 2nd q

if i have a rom 2.3 for incridible s with full language and i want to take this language to my cooked desire hd rom 2.3 android , can this be done and which files i must take from the original rom to the new cooked rom and where to add

kitchen is working perfect with me

thanks in progress
[Android] dsixda:
Dude, please refer to the forum rules regarding re-posting, and have patience. Also, I was sleeping, people are not going to reply to you immediately. :P

Regarding your question, I don't know but there are a lot of answers with a Google search. Maybe someone else has an answer for you, but please wait.
[Android] Jbcarrera:
hey guys I am having problems with the boot animation after cooking the rom any help would be greatly appreciated thank you
[Android] dsixda:
You need to be specific, what's the problem?
[Android] Jbcarrera:
I enable the custom bootscreen option on the rom and place the file in data local like it says and I get the stock android bootscreen you know the one that just has the silver work android flashing. I have tried also to replace the bootanimation files in the resources file as well and it never works none of the bootanimations I have tried load up they all default to the regular android screen
[Android] dsixda:
What device is it?

Flash the ROM again and check the recovery log for any issues with the bootanimation.zip. See FAQ for details.
[Android] wachw:
Getting rid of that bootscreen is complicated because it is stored within the framework-res.apk. haven't figured out how to do it yet but at someone else might.
[Android] TMartin:
Ok well I finally got rid of the .fuse files and was able to delete the working folder to start fresh. I'm still having the issue with dumping that certain Desire S boot.img/system.img. After I type in my sudo password it just hangs. I can see the 585mb filesystem and everything seems to get moved over to the system folder in the Working folder. It almost seems like it's hanging when unmounting. It will not let me try to remount or unmount from terminal. I hope this is enough information. Thanks for any help dsixda
[Android] Jbcarrera:
Its and EVO4G Thanks I will check it out and post the log a little later
[Android] dsixda:
OK good.. make sure you first read the log yourself to figure out the problem.
[Android] dsixda:
Sorry, I have no idea.. you'll need to ask a Linux expert for your strange issue, I just write the scripts ;)
[Android] TMartin:
Yea really don't understand why it's doing it. I wonder if it's this ext4 system.img

Thanks for taking a look.
[Android] dsixda:
Yeah I had no issues with ext4 system.img in Ubuntu, but if you find out the reason let us know.
[Android] paok96:
Important

Hey guys do anyone know how to edit the kernel??

I want to make some changes in my rom..

It's really important if anybody know plz tell me or send a pm or an e-mail or sth i'll appreciate your help!!
[Android] dsixda:
If you want to swap out the kernel in the boot.img then read the FAQ, but if you want to re-compile the kernel then you need the Android source code and then have to rebuild the boot.img with the kitchen.
[Android] medmed12:
I did my rom but it's reboot on the splash.

I saw the FAQ but i don't understand what i have to do ?
[Android] dsixda:
OK you need to be more specific than that.

What did you do to your ROM? What device is it?

What part don't you understand? Do you understand English?
[Android] medmed12:
So I've got a Desire HD ( Ace ).

I deodoxed, rooted, zipaligned my ROM.

And i do to the ROM can support bash commands, nano text editor etc...

And i'm not good on SDK, i don't know where i can find the log :s

It's maybe because of the advanced options i use no ?

Yes i understand english.

But i understand french better
[Android] dsixda:
Everything is explained in painstaking spoonfed detail in the FAQ, you shouldn't be wondering how to obtain the SDK or logs. Just read it, man.

This doesn't sound like a kitchen issue to me -- Make sure you did a wipe of the cache and/or data before flashing. Desire HD worked fine for me with the kitchen. If you're coming from a non-stock ROM you must do a wipe first.
[Android] medmed12:
It's a Kitchen Issue but i don't know where because now it's working.

But i add some things and now not working....
[Android] dsixda:
Did you add apps2sd? That won't work on the newer HTC devices. Only way to tell your problem is if you generate the recovery log and/or the logcat.
[Android] Stuke00:
I am having some issues here. I am a novice user, so keep that in mind.

I am trying to use the porting features.

I go through the kitchen steps and everything seems okay. I turn the updater-script into an update-script like it suggests. And then I turn it back into an updater-script before building the ROM.

While flashing my newly created zip file,

I get

format() expects 3 args, got 2
(status 7)
installation aborted

This is what the script is

format("MTD", "cache");
format("MTD", "boot");
assert(package_extract_file("boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "boot"),
delete("/tmp/boot.img"));
format("MTD", "userdata");
mount("MTD", "userdata", "/data");
package_extract_dir("data", "/data");
set_perm(1000, 1000, 0771, "/data");
set_perm_recursive(1000, 1000, 0771, 0644, "/data/app");
format("MTD", "system");
mount("MTD", "system", "/system");
package_extract_dir("system", "/system");

I try taking out the format lines, and I get the same error except on mount() this time.

Any ideas or suggestions? Remember, novice user here trying to learn!
[Android] dsixda:
If you are a novice user, why are you porting right from the start?? Those options are all in the Advanced menu. Start with a basic stock ROM and work on getting that right first. Everything is written and explained in the FAQ for new users.

You are also not being specific about the ROMs being used and which devices. Anyways, use the basic options and don't port if you are using the disclaimer of novice user ;-)
[Android] freak69ize:
After all.. Rome was not built in a day.. I had to start small myself and am starting to get a better understanding of how things work.. long way to go though for me.. lol
[Android] dsixda:
I've uploaded version 0.162 of the kitchen. Just minor updates, but should help in preventing some common issues we've seen lately. Please see Release Notes in post #2 for details.

Thanks
[Android] dsixda:
Couldn't have said it better myself :-)

Did you fix the issues you were having earlier with porting GSM to CDMA version of ROM?
[Android] freak69ize:
I used a rooted CDMA stock rom and tried to port LeeDroid.. had everything working except data connection wich im guessing was because of the apns and all.. im not sure though. Kinda put that aside for a bit to learn how to use Android Flasher and change my splash screen.. havent figured it out yet though.. but im not giving up. lol
[Android] Stuke00:
Seemed pretty straight forward from the porting options in the kitchen :) I will start off smaller... thanks!

But any idea on that format error? I swear the syntax is right :(

My device is the HTC EVO 4G btw. Running Amon RA recovery
[Android] dsixda:
Your recovery may not support updater-script.
[Android] Stuke00:
I have flashed another rom that uses the same format in their script. But then again, this is all new to me :) I will keep playing around. Thanks for the feedback!
[Android] dsixda:
The other reason is you're using the wrong update-binary, see the original error message regarding the number of arguments.
[Android] dastin1015:
Amon RA does NOT support edify. CWM does.

The Hero never dies! ;D
[Android] surviveland:
great write up , i will spend my day on this stuff. . it seems Linux is more attractive than windows .LOL
[Android] tommytomatoe:
Just a bit of correction, amon ra for the supersonic supports amend and edify scripting.

:-)
[Android] dsixda:
Could you also post the original updater-script in the ROM (before the conversions)?
[Android] dastin1015:
You learn something new everyday. :)

The Hero never dies! ;D
[Android] Stuke00:
I will if I decide to pick this up again. I am going to start on probably just an update.zip file for a theme or some other add-on and learn the scripting language that way. A lot of this is still new to me, but I learn better hands-on and asking questions. Thanks for the help guys :)
[Android] famonaco:
hi guys, the kitchen when i rebuild an ext4 rom give me always an error if i flash it , doesn't support ext4 script?????

thx in advance
[Android] dsixda:
Yes it does, read the release notes. What ROM, what device, what error? You'll need to be specific.