yashsingh1/xdaforums huggingface dataset:
[Android] Grezvany13:
I don't really want to have multiple working folders at the same time (since you can only create one rom at a time), but I do want to have multiple files /original_update/, without having to extract them every time I want to cook one. So I would like to have multiple instances of the working folder, or pre-extracted base roms.

This is just something I can try to fix myself by setting or sending a variable to the script so it knows which working folder it should use.

The moment I figured out which settings I need (and tested of course) I'll send a commit request :D
[Android] kaibird:
my bad~~

Problem is solved and it's working properly now

I chose wrong Local Package Directory

should be like this

c:\HTC Android Kitchen\cygwin_packages\cygwin_packages

not this

c:\HTC Android Kitchen\cygwin_packages

that's why Kitchen is not downloading anything~~
[Android] dsixda:
Downloading what? The kitchen doesn't download anything other than new versions from github. My cygwin installer has all the required files already included inside.. it doesn't download anything either.

As the instructions said in the cygwin README file, *don't* use spaces in the folder names, otherwise tthe kitchen won't start.
[Android] dsixda:
You can build a ROM zip file with option 99 and put multiple versions of it under the original update_folder.. So that you have pre-made base ROMs (as ZIP files) ready for use... is that what you're asking about?
[Android] Grezvany13:
Almost, except that I would like to have normal folders (unzipped update.zip) so it doesn't have to run /scripts/*_files_to_working_folder (to improve speed).

The reason is because it takes some time to unpack and check the roms, while unneeded if already done (since it's closed from the outside, so can't be modified).

As far as I can see this only affects /scripts/choose_rom by adding a new option next to *.zip, *.app and boot.img/system.img, namely /[folder_name]/* (only check if has valid content) and a simple script (like *_files_to_working_folder) to copy the contents to the "real" working folder.

Although, the more I read the code the more I see things I miss. eg. it's not possible to cook a complete rom with just one line of code (eg. "./cook -rom NI_Adam_HC14 -root -market -adhoc -app2sd -apps maps;winamp;laucher7"), which for me is more usefull due the extra PHP layer. Atleast not without a lot of modifications.

Guess I'll have to modify a lot to make it the way I would like to use it ;)

So my next step would be to create a fork and start from scratch but with the knowledge of this kitchen :D If I may ofcourse :p
[Android] biscoitu:
Well...I gonna try this with Persia x8....never made anything like that, but...always things have a start. So, let´s go...and thx for the share...
[Android] dsixda:
That could be a good idea, to include a folder option. For example, all working folders under the "OLD_WORKING" folder could be shown there.

Well you could write a plugin script that uses command-line arguments, and for each argument it could call the appropriate script file in the kitchen.

Well, sure, but good luck.. It took me 15 months of sleepless work to finally get it right ;-)
[Android] ALPTEKİN_:
Great Jobs..

Thanks...
[Android] dsixda:
Ok, kitchen 0.165 is now up. Please see Release Notes in post #2 for details.
[Android] tommytomatoe:
Dude. For someone who is tryong to be done with this script writing thing....Hehe.

Great work sir.
[Android] tommytomatoe:
It appears I can't send you a pm...

On a totally different note. I am writing a tool (kind of inspired by your kitchen) that kind of will work side by side with it. Yours builds roms, mine will do everything else android related that I can script for... Apk modding, rooting, adb, git, repo, nandroid, flash_image...et cetera.

Anyways I would like ask you if you could look it over when I am finished. There is a link in my signature for requests and what not for folks input.

Android utility questionare.

I am really impressed at your kitchen. I mean super duper. I've written three parts of my tool and its taken me weeks (with work and real life in between). Id really like to know what you think. Thank you. Have a great night.

Tt
[Android] Tricky103:
Hi.

2 things. 1st 0BF57293R0425825J don't spend it all at once :)

2nd. On sgs2 email.apk and mobile print.apk both fail to deodex.

Edit. I haven't read back a page or two. I will do that now :)

Thank you for your work. App is great.

This is the error msg

UNEXPECTED TOP-LEVEL EXCEPTION:

org.jf.dexlib.Util.ExceptionWithContext: Unknown opcode: e4

at org.jf.dexlib.Util.ExceptionWithContext.withContext(ExceptionWithContext.java:54)

at org.jf.dexlib.Code.InstructionIterator.IterateInstructions(InstructionIterator.java:87)

at org.jf.dexlib.CodeItem.readItem(CodeItem.java:157)

at org.jf.dexlib.Item.readFrom(Item.java:76)

at org.jf.dexlib.OffsettedSection.readItems(OffsettedSection.java:48)

at org.jf.dexlib.Section.readFrom(Section.java:143)

at org.jf.dexlib.DexFile.<init>(DexFile.java:431)

at org.jf.baksmali.main.main(main.java:250)

Caused by: java.lang.RuntimeException: Unknown opcode: e4

at org.jf.dexlib.Code.InstructionIterator.IterateInstructions(InstructionIterator.java:51)

... 6 more

Error occured at code address 16

code_item @0xaa4b0

WARNING: Cannot deodex Email.odex

Reverting to newer baksmali/smali:

baksmali-1.2.6.jar

smali-1.2.6.jar

ERROR: Aborting Email.odex
[Android] bertans:
For some reason I can't extract UPDATE.APP (from Huawei)... with previous build everything is working! ;)

I'm doing something wrong (for sure) but I don't know where and when. I put the file in the proper directory and then I run the kitchen. If I can help you... I'm here for further tests! :o
[Android] vin255764:
This is probably best place to ask,which smali responsible for unlocking sprint tethering in framework.jar?

Comparing 60Mb of smali takes days.I compared like 100 of them and started giving up lol

Please shoot me a PM.
[Android] dsixda:
I know, but everytime I think I am done, someone asks for a new feature, so then I decide to implement it... which ends up breaking something else ;) So then I spend the next few days fixing that... and so on.
[Android] dsixda:
Yes, I disabled PMs a long time ago. I was getting way too many PMs daily from different people who refused to read and expected me to be their personal slave for help. So I had to put a stop to it ;-)

Wow that looks pretty slick. There are better people who can give you opinion on interface design, I'm just a newb ;) Just show us more screenshots..

thanks

EDIT: BTW has the multi-quote feature been broken? I can flag certain posts for quoting, but then when I reply they don't get quoted anymore ... :(
[Android] dsixda:
Thanks ;)

You'll need to give me a link to the ROM, I don't like to hunt around for them, cos I always end up downloading the wrong one and wasting time. But did you see any other errors before that? It looks like the error was for smali/baksmali 1.2.5. Did it attempt with 1.2.6? If it couldn't do either then it may be a smali/baksmali issue which I don't have control over -- that's JesusFreke's tool.
[Android] dsixda:
What do you mean you can't extract? What is specifically shown on the screen? I tried an UPDATE.APP and it extracted fine.
[Android] xHausx:
Yup, I haven't been able to use it for a few months now.
[Android] tommytomatoe:
Thanks dsixda.

And yes, like xhaus said, its been some months since we've had multi quote.
[Android] Yay 4 Juggs:
not sure if this has been asked or not search provided too many different results to decipher...how can i add zipalign at boot to my rom within the kitchen?
[Android] Droidzone:
Edit..... add it to init.d
[Android] Yay 4 Juggs:
will it be needed to be added to the script or will the script get written for it?
[Android] dsixda:
I'm not writing any more scripts like that ;-)

Darktremor's apps2sd has a feature that does zipalign on boot. You have to set it from the command line.
[Android] DrRyder:
Multi-quote work-around

Click the multi-quote button for each post then on the last post, click multi-quote and click the quote button. This will make the multi-quote work properly. I found this out a while ago when I tried using multi-quote and hit post reply and it has noquote=1 in the URL.
[Android] tommytomatoe:
Thanks for the info! But I think this is how I usually do it but it stopped working some months ago....mmmm. I'll try next time I get to a computer.
[Android] traumahawk:
i see you have thunderbolt as an acceptable phone... will this work to deodex the "gingeritis" rom??? (gingerbread based tbolt rom)
[Android] jerrylzy:
Can not deodex sensation's rom
[Android] traumahawk:
Why not? What is so different about them that prevents them from being able to be deodexed? I'm quite experienced at theming on deodexed roms from all the work on my epic (very active member over on Android central, so while I look like a novice on here I'm not), am decent at working with xml, png, .9png, and otherottle tweaks, but I don't know how to work with those odex files and don't want to break my Rom. Where can I learn how to theme an odexed Rom, or how can I go about making sensation roms deodexable?
[Android] Droidzone:
Why dont you try theming the deodexed rom, and then odex it? Here's some lines of code:

http://xdaforums.com/showthread.php?t=1091508
[Android] jerrylzy:
0.163 works fine but 0.165 can't deodex..I don't know why..
[Android] traumahawk:
So which should i do? Theme and then odex, or use the older version of kitchen?
[Android] dsixda:
There was nothing changed for deodexing in several months.
[Android] dsixda:
Always use the latest version of the kitchen. I don't know anything about theming.
[Android] skifyr123:
This tool is only for HTC devices? Is there a tool like Android Kitchen for other Android based devices? Have tried to search the forums, but could not find anything.. ^^

Edit. I see it work for some other phones as well. I got a huawei u8800, possible to make support for that one? :D
[Android] dsixda:
You can try it on your device ROM to see if it works. I usually don't need to modify the kitchen to support a certain non-htc device.
[Android] franky_402:
so i dont know if im retarded today or what but no matter what i cannot get gnu sed to work, ive created a .bash_profile and added the line that is showed in the faq but it still will not work, its very unclear as to what your suppossed to do with the bash_profile file. would anyone care to show what there file looks like so i can get an idea of how to make it!! Running mac osx 10.6 btw
[Android] dsixda:
What do you mean by "will not work"? You need to be more specific, this doesn't give others any idea about your problem.

I don't have a Mac but my intention is to make the instructions clear for a new user, not to make them very unclear. Did you follow all the detailed steps -- What was not very clear?
[Android] franky_402:
when i open terminal and cd to the kitchen folder, i type ./menu and it spits the error out complaining about sed..

I had downloaded gnu sed and installed, when i am in terminal and type sed --version it spits out the error --version : illegal option

i have made the .bash_profile and added the line from the code box in the mac faq, this however does nothing different.

Im not sure of formatting for the bash_profile??? and the part in bold confuses me it just doesnt make any sense to me!

Thanks for the help
[Android] titans808:
Hello,

I tried to install your kitchen on windows 7 64 bit. I followed the directions: I installed Java 6 JDK (for 64 bit) on my computer, then used your cygwin_packages.zip to install cygwin (followed all directions in the readme). Before that I had installed cygwin before Java, but then saw your note about how cygwin might not work properly if installed before java, so I went into c:\, deleted my cygwin folder, then installed Java, then cygwin (from the cygwin_packages.zip following the readme directions).

However after I do "cd kitchen" (which works fine), "./menu" gives me an error message saying Java is not installed. I tried reinstalling java but that didn't work. I tried searching but I couldn't find an answer. Thanks
[Android] dsixda:
First, install a Unix-compatible text file editor such as GVim for Windows. Do not use Notepad or Wordpad for the following step!

In the file .bash_profile (located in the folder that Cygwin starts up in, e.g. c:/cygwin/home/john), add to the **end** of the file:

PATH=/cygdrive/c/Program\ Files/Java/jdk1.6.0_18/bin:\${PATH}

Modify the line above so that it matches the actual path to your installed Java (don't remove the ${PATH}). Add a "\" character before any spaces in your path, as shown above.

Don't add the word "java.exe" to the line above. And replace drive letters with "/cygdrive/drive_letter" as shown in the example above.

Then restart cygwin..

-----

e.g.

C:\Program Files\(x86)\Java\jdk1.6.0_26\bin\java.exe

Becomes

PATH=/cygdrive/c/Program\ Files/(x86)/Java/jdk1.6.0_26/bin:\${PATH}
[Android] dsixda:
The part in bold says to add the stuff in front of $PATH, as shown in the example.

The .bash_profile must be located in the folder that your terminal starts up in.
[Android] titans808:
Thanks will try later today
[Android] tommytomatoe:
Hey franky. I use Mac. Here is what I do. I am not 100% sure what your issues are...since I've only read this post. But here is what I do.

Open Terminal.

Type these commands.

Tommy-Nguyens-iMac:~ Tommy$ cd ~
Tommy-Nguyens-iMac:~ Tommy$ touch .bash_profile
Tommy-Nguyens-iMac:~ Tommy$ open -e .bash_profile

"open -e" will open your ".bash_profile" in your default texteditor (probably TextEdit). Inside the text file, make it look like this format, of course, change the necessary information, unless your Name is also Tommy Nguyen...

export PATH=${PATH}:/usr/local/git/bin/:/Users/Tommy/android-sdk/platform-tools/:/Users/Tommy/android-sdk/tools:/Users/Tommy/android-utility/:/Users/Tommy/android-utility/utility/

Save the file.

Then Type.

Tommy-Nguyens-iMac:~ Tommy$ source .bash_profile

Here is the basic info on .bash_profile, as I understand it.

Depending on where your terminal starts up as (ie, $HOME directory), there is a file (.bash_profile) that tells the Mac to look for binaries and other stuff in addition to the PATH. What you are doing is adding on to the PATH with the command "export". In the above code, "export PATH" brings up your PATH, then all the directories after "${PATH}:" are going to be added to PATH. If you want to know what is in your PATH, type "echo $PATH". By default most of your usr/bin and usr/local/ stuff are included. Each directory begins with a "/" and ends with a "/", and to add multiple directories, they are joined with a colon ":".

So for example, after you've installed GNU sed, keep note of your where you installed. I recommend /usr/local/bin/ (which theoretically is already in your PATH), but it doesn't matter really. Next step, go into /usr/bin/ and rename current "sed". Name it "sed-old". To rename sed in usr/bin, you need su permissions. Type this.

Tommy-Nguyens-iMac:~ Tommy$ sudo mv /usr/bin/sed /usr/bin/sed-old
Password:
Tommy-Nguyens-iMac:~ Tommy$

Now, in .bash_profile, here is what I would type, if I were to place new sed in a folder called "sed" in my Home.

export PATH=${PATH}:/Users/Tommy/sed/

Feel free to pm if you continue having issues. :-)

EDIT. All commands that I told you to type in terminal, only type things that are after $. Like this:

Tommy-Nguyens-iMac:~ Tommy$ cd ~

You should only be typing

cd ~

I just posted the entire output to show you how it would look. :-)
[Android] franky_402:
thanks for the help, i got it to work but in my own way before i read this post. i went to /usr/bin and renamed sed to sed-old and then i went to /usr/local/bin and grabbed gnused from there, renamed it sed and put it into /usr/bin and now the kitchen works fine! Thanks for all the help everybody
[Android] alsatea:
Thanks tommytomatoe I fixed it by your way :)

but when I try to cook my rom that error appear in final step I guess help me plz:

Was not able to create GT-I9000_signed_060611_221708.zip!

You may need to install SoyLatte for Mac OS X (to replace the standard

Java JDK)

I'm waiting your answer my friend.
[Android] titans808:
Thanks for the help, I navigate to c:\cygwin and there is no .bash_profile file there. I found it under c:\cygwin\home\owner, and figured that was the right file to edit. I edited it with notepad, and I am using jdk1.6.0_25. I am still getting the java not installed error. Do I have to find and install version 18? Thanks
[Android] dsixda:
Like I said, the .bash_profile is found in the folder that Cygwin starts up in, which is the folder that shows up when you click on the Cygwin shortcut on your Windows desktop. So yes, it's cygwin/home/owner.

Restart Cygwin and try again, as I said earlier.

If that doesn't work then type "source .bash_profile" and look for any error messages.

If no error messages, then type: echo $PATH

Tell us what you see from that output. Then, post your .bash_profile so we can see it.

And no, don't install an older JDK.
[Android] titans808:
Sorry I'm a newbie to this and while above the average person, I'm not as good as computers as some of the users here so I'm trying your directions carefully.

When I type "source .bash_profile" in cygwin, nothing pops up. When I type "source .bash_profile" in kitchen, it says there is no such file or directory. I have navigated to c:\cygwin\home\owner and confirmed that the ".bash_profile" file is in there. Not sure if this is an issue, but after editing my .bash_profile with notepad, the name of the file disappeared. I have since renamed the file ".bash_profile tried again, still tells me java is not installed

My echo $PATH shows many different directories, doesn't seem like there is an error.

My bash profile reads:

# base-files version 3.9-3

# To pick up the latest recommended .bash_profile content,
# look in /etc/defaults/etc/skel/.bash_profile

# Modifying /etc/skel/.bash_profile directly will prevent
# setup from updating it.

# The copy in your home directory (~/.bash_profile) is yours, please
# feel free to customise it to create a shell
# environment to your liking. If you feel a change
# would be benifitial to all, please feel free to send
# a patch to the cygwin mailing list.

# ~/.bash_profile: executed by bash for login shells.

# source the system wide bashrc if it exists
if [ -e /etc/bash.bashrc ] ; then
source /etc/bash.bashrc
fi

# source the users bashrc if it exists
if [ -e "${HOME}/.bashrc" ] ; then
source "${HOME}/.bashrc"
fi

# Set PATH so it includes user's private bin if it exists
# if [ -d "${HOME}/bin" ] ; then
# PATH=${HOME}/bin:${PATH}
# fi

# Set MANPATH so it includes users' private man if it exists
# if [ -d "${HOME}/man" ]; then
# MANPATH=${HOME}/man:${MANPATH}
# fi

# Set INFOPATH so it includes users' private info if it exists
# if [ -d "${HOME}/info" ]; then
# INFOPATH=${HOME}/info:${INFOPATH}
# fiPATH=/cygdrive/c/Program\ Files/Java/jdk1.6.0_25/bin:\${PATH}

Thanks
[Android] dsixda:
Why do you have #fi in front of the line??
[Android] titans808:
Hm not sure, it must have been in the bash file before i dropped your line in..i'll try deleting it and see what happens
[Android] titans808:
# base-files version 3.9-3

# To pick up the latest recommended .bash_profile content,
# look in /etc/defaults/etc/skel/.bash_profile

# Modifying /etc/skel/.bash_profile directly will prevent
# setup from updating it.

# The copy in your home directory (~/.bash_profile) is yours, please
# feel free to customise it to create a shell
# environment to your liking. If you feel a change
# would be benifitial to all, please feel free to send
# a patch to the cygwin mailing list.

# ~/.bash_profile: executed by bash for login shells.

# source the system wide bashrc if it exists
if [ -e /etc/bash.bashrc ] ; then
source /etc/bash.bashrc
fi

# source the users bashrc if it exists
if [ -e "${HOME}/.bashrc" ] ; then
source "${HOME}/.bashrc"
fi

# Set PATH so it includes user's private bin if it exists
# if [ -d "${HOME}/bin" ] ; then
# PATH=${HOME}/bin:${PATH}
# fi

# Set MANPATH so it includes users' private man if it exists
# if [ -d "${HOME}/man" ]; then
# MANPATH=${HOME}/man:${MANPATH}
# fi

# Set INFOPATH so it includes users' private info if it exists
# if [ -d "${HOME}/info" ]; then
# INFOPATH=${HOME}/info:${INFOPATH}
PATH=/cygdrive/c/Program\ Files/Java/jdk1.6.0_25/bin:\${PATH}

With this new bash_profile it unfortunately still does not work.
[Android] PalmerCurling:
when i try to breakdown say a CM7 download to use in here, i get the following error:

Error: No system folder found!

its in its update.zip format.
[Android] dsixda:
Then there is nothing more I can do to fix up your mistake when you installed in the wrong order. I'm not a cygwin expert, just saying what worked for others and myself.
[Android] dsixda:
OK you need to be more specific..

link to rom

device

whether contents of update zip has system folder

screen output

etc

I haven't had issues with CM ROMs lately on the supported devices listed on Post 1.
[Android] titans808:
Thanks anyway
[Android] titans808:
Anyone here ever had ubuntu karmic koala (9.10) in virtual box forget everything? I had everything set up for kitchen, downloaded some roms, worked with the kitchen, saved state and closed virtualbox, and now when I try again, my username/password I set is gone, everything I downloaded, setup, etc is gone.
[Android] tommytomatoe:
@dsixda,

Hey friend. I am curious about something. Which function of the GNU sed does your kitchen use that the Mac OS X version not have? Thank you in advance,

mmm. I am not 100% sure what your issue is. Are you using your kitchen from a dmg?
[Android] dsixda:
I don't remember anymore, the reason was a year ago in this thread. The non-GNU version uses a different format for expression matching, I think.

EDIT: Here's my explanation from back in September:

http://xdaforums.com/showpost.php?p=7956532&postcount=1879
[Android] kapasiki:
i can not make the app active when move them into data/app or system/app

Hello ,how are you

i have used the newest version of kithen to kitchen my zte blade them ,wether i enble the data/app function and move app to data /app , or move app to systerm /app .the rebuild the rom and flash it ,no my self app in the device ,why ,some need the lib so file i move them into the system/lib dircter ,but always no action when i flash the rom i am kitchen !
[Android] dsixda:
I am kitchen?

The problem is probably that the ROM was not flashed. Read the FAQ to find out how to obtain the recovery log... This will tell you what was happening during the flash of the ROM.
[Android] kapasiki:
dear dxdia

thanks for your reply and your advise

that i have started the kitchen agin of version 1.65 of yours and make a new rom ,the CyanogenMod rom for ZTE blade , and enable the function of data/app

but when i flash the build one rom by kitchen output zip file and flash to my device ,althoug no my putting apps ,working ,i am confused and also as your advise ,check the recovery log , there is nothing ,just said ,install from sdcard successfully , i am confusing and need your help:mad:
[Android] dsixda:
As I said in the FAQ, check the recovery log immediately after you flash, not after you have already flashed and rebooted.

I don't have the ZTE so I can't help any further.
[Android] jerrylzy:
actually 0.163 works fine but 0.165 can not deodex sensatipn's rom
[Android] dsixda:
As I said earlier, I have not made any changes to the deodex routine in several months.
[Android] jerrylzy:
So that is too strange..Maybe there is something wrong with my computer..
[Android] erlucky:
baksmali

Hi dsixda

Is possible add this feature baksmali in this programm????

smali/baksmali is an assembler/disassembler for the dex format used by dalvik, Android's Java VM implementation.

Bye.
[Android] dastin1015:
Those are already present in here as they are used to deodex.

Sent from my Hero that never dies! ;D
[Android] pjgowtham:
Motorola defy

I want to know whether it works for motorola defy............