yashsingh1/xdaforums huggingface dataset:
[Android] tommytomatoe:
Based on the op, there are three MOTO devices that work but at unconfirmed. Cliq, Droid, and Milestone. I would five it go then cone back with your findings. :-)
[Android] spykid9x:
i want to learn cook rom.who can help me?thanks
[Android] vladtdr:
Java not installed

after I do "cd kitchen" (which works fine), "./menu" gives me an error message saying Java is not installed, i have reada that this has to do with the .bash_profile file and i tried adding that line but with no succes i cant sign my rom, please help upload your working .bash_profile file or something help!!!
[Android] tommytomatoe:
Hey vlad. Which OS are you working from?

Here is how you can troubleshoot from where you are now.

Type "java -version" (no quotes please) in terminal. You should see this output.

Last login: Sat Jun 11 09:07:31 on console
Tommy-Nguyens-iMac:~ Tommy$ java -version
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07-334-10M3326)
Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02-334, mixed mode)
Tommy-Nguyens-iMac:~ Tommy$

If you get an error, then you will need to install Java. If it works, then proceed to next step to set up .bash_profile. I assume you're on Mac or Linux. In terminal, type:

echo $HOME
cd ~
touch .bash_profile
gedit .bash_profile {this opens a text file - if LINUX}
open -e .bash_profile {this opens a text file - if MAC OS X}

Inside the file, copy and paste this line (For LINUX):

export JAVA_HOME=/usr/java/java-current
export PATH=${PATH}:$JAVA_HOME/bin:$HOME/android-sdk/tools:$HOME/android-sdk/platform-tools:$HOME/Kitchen

copy and paste this line (For MAC OS X):

export JAVA_HOME=/Library/Java/Home
export PATH=${PATH}:$JAVA_HOME/bin:$HOME/android-sdk/tools:$HOME/android-sdk/platform-tools:$HOME/Kitchen

Now, save the file.

Go back to terminal

type: "source .bash_profile"

Just a little info on what you jsut did there. You directed your bash shell to look for other directories for binaries and executables. Please have android sdk installed. It should be renamed "android-sdk", or you can modify the bash_profile above. Also, for funsies, I added the Kitchen to your path. Now, you won't have to type ./menu. Just type menu. You should also rename kitchen to "Kitchen" and it should be placed in Home folder.

edit. I should add that for me, when I installed latest Java, I got my java binaries in usr/bin as well, which is normally in your PATH by default...
[Android] vladtdr:
i am running windows 7, where should i write java -version?in windows cmd? i get error that is not recognized as a command
[Android] dastin1015:
Windows 7 cannot natively run this kitchen, but must run using a Linux environment inside of Windows.

Sent from my Hero that never dies! ;D
[Android] JynxRD:
Is there an option I'm missing somewhere to replace native system apps? If I want to say use the stock HTC Evo rom but add apps from a different version of HTC Sense.
[Android] tommytomatoe:
What dastin said. You need to install cygwin. But a better alternative...virtual box ubuntu or just install ubuntu clean.
[Android] tommytomatoe:
Just do that manually. :-)
[Android] JynxRD:
I tried that. in my cace I took as a test the messaging apk from sense 3.0 to the HTC Evo stock 2.3.3 which is sense 1.0 and it doesn't work that way. I'm not sure what all needs changed or editing just to make that work, if I can figure that out then I'll figure the rest out.
[Android] tommytomatoe:
Aww. That takes a lot of modding and quite a bit of experience to port different sense versions to work with one another. It's not something that is easy that the kitchen can incorporate. It's quite complex. But good luck!
[Android] JynxRD:
Yea that's what I'm learning. Might start with some easier things
[Android] dsixda:
Updated kitchen to 0.166. Please see Release Notes for details.. Enjoy
[Android] tommytomatoe:
I agree. Try simply taking a RUU or ROM dump and make it rooted and bootable. That's great practice!
[Android] twrock:
Bug in 0.166. After rooting with ChainsDD, I got this error while attempting to add busybox:

"'su' binary not found under working folder!"

Thanks.
[Android] dsixda:
No problem here.. i already tried with multiple shipped ROMs. Do you actually have /system/bin/su in your ROM?
[Android] Silverexp:
Having the same problem when using option #2... Using CM Nightly for the Nexus One, have a habit of updating the SU file in the roms.

Overwriting old 'su' and Superuser.apk ...

removed `./xbin/su'

removed `./app/Superuser.apk'

`../../tools/su_files/chainsdd/Superuser.apk' -> `app/Superuser.apk'

cp: cannot stat `../../tools/su_files/chainsdd/current/su': No such file or dire

ctory

Error: /system/xbin/su and /system/bin/su not found!

http://download.cyanogenmod.com/?device=passion&type=nightly

Would it be possible to update the BusyBox file in the option #3? Usually I just manually overwrite the file in the \system\xbin location.
[Android] dsixda:
Ok nevermind, I noticed that GitHub didn't add the new Superuser folder to the tools directory. You can try re-downloading 0.166 now. Sorry about that.
[Android] dsixda:
http://xdaforums.com/showpost.php?p=11538458&postcount=3593

-----------------------------
[Android] Silverexp:
Re-Update works perfect... thanks on the BusyBox reply... :)
[Android] twrock:
Ok, that problem is fixed. But now, a2sd is not being installed.

I wish I could tell you the exact sequence I used to try to build the rom, but I don't remember. Basically I just work my way through the options in the order they are presented, picking the ones I want:

root

busybox

disable sounds

change name

data/app

a2sd (no cachesd, but add busybox runtime method)

custom boot animation

build the rom

I see no script to install a2sd in the root directory of the finished rom. (Nothing like installbusybox.)

During installation, I get the error:

E:Can't chown/mod /system/xbin/a2sd

(No such file or directory)

E:Failure at line 89:

set_perm 0 0 0777 SYSTEM:xbin/a2sd

Installation aborted

Thanks.
[Android] dsixda:
There isn't supposed to be a script in the root directory for a2sd. Just start all over again from the beginning, your earlier issues with su may have broken the ROM. There hasn't been any kitchen revisions or issues with a2sd since December.
[Android] SXUsr:
Here's the text from the bash file...

# 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}
# fi

...here's the path to my Java...

C:\Program\Files\Java\jre6\bin\java.exe

I'm a little lost as to where I am supposed to be adding it? I've had it working before but since reinstalling can't get it working.
[Android] dsixda:
Pay attention to the part you just quoted, I had said to put it at the end of the file.

Also, you installed the JRE not the JDK. I don't know if that's going to work. Remember to follow the instructions carefully without rushing, so that you don't follow the procedure in the wrong order or incorrectly.
[Android] SXUsr:
Yeah, just retracing my steps, I do have the jdk installed but x64 so starting from scratch.
[Android] SXUsr:
Uninstalled all Java, rebooted, reinstalled 32bit Java SDK, followed the guide, rebooted, added line to end of file but still no joy.

# 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}
# fi
PATH=/C:\Program\Files\(x86)\Java\jdk1.6.0_26\bin\java.exe\${PATH}
[Android] dsixda:
No no no no.... come on, dude. :P Look at my example that you quoted. Why are you even using "java.exe" and "C:" in the path?

This is what I said to use:

Using that example, it means yours will look like this:

PATH=/cygdrive/c/Program\ Files/(x86)/Java/jdk1.6.0_26/bin:\${PATH}
[Android] SXUsr:
Thanks for that, but I've just dug out 0.110 and it's fired up straight away, so will just stick with that for now as it works.
[Android] dsixda:
0.110?? ;) That's VERY old and buggy.

It also may not have the check for the Java version at the start, so it will only tell you about the Java error while you're building, which is too late.
[Android] SXUsr:
Did the job before ok so I'll stick with it for now. Thanks again.
[Android] PalmerCurling:
i downloaded the most recent stable DInc build of CM7 from their site.

what i said last time was the screen output lol. not much help for me to go looking, otherwise i would have tried something myself.

the update.zip has a system folder in it, and all the files look correct. i flashed this same update.zip to my phone so i know it works. however i try to run the kitchen and this is the error i get now...

Extracting ROM ...

Error: No system folder found!

Press Enter to continue
[Android] twrock:
Ah yes, until a couple of days ago, I was still using v100. So I guess things are quite different now.

However, I did start completely over after downloading the newest 166. But I'll try again, and if I still have problems, I'll just revert to an older version.

Thanks.
[Android] dsixda:
As i have said already, do *NOT* use an older version of the kitchen. You will run into more issues.
[Android] dsixda:
Ok,

Got out of bed, Googled for the ROM, downloaded the ROM, tried it out...

Selected update-cm-7.0.3-Inc-signed.zip

The new working folder will be named WORKING_061411_002935
Change the name (y/n)? (default: n):

Creating working folder WORKING_061411_002935 ...

Extracting ROM ...

=======================================================

Found an updater-script but not an update-script. For
compatibility with the kitchen scripts, only update-
scripts are used in the kitchen.

Choose an option number:

1 = Convert it to update-script (recommended)
2 = Do nothing, keep the updater-script

- Option #1 will do a conversion of the updater-script
(Edify) into an update-script (Amend). It can be
changed back to Edify format when you build the ROM.

- Option #2 should only be used if you wish not to use
any of the options in the kitchen other than to
build the ROM or to convert to update-script later.

? (default=1)

Looks good to me. What OS are you using??

Going back to sleep ;-)
[Android] spotopolis:
Is there a way to set up ware and what widgets are displayed on the rom? I did a search and didnt find anything related...
[Android] redbullcat:
Sorry if this has been asked already, I did do a search but didn't find anything relevant :)

Short question: will you be adding support for the HTC Sensation when it has S-OFF?
[Android] sonblack:
Thank you so much the kitchen. It work great.
[Android] twrock:
Alls well that ends well. I started over with 166 one more time, and built a working rom.

Thanks.

Incidentally, there is a known issue with every 2.1 Pulse/Huawei U8220 rom built with the kitchen. (I don't know if it affects 1.5 roms.) Maybe it's not anything you can do something about, but maybe no one has ever mentioned it.

For some reason on newly built roms, our wifi won't work until we do the following:

1. Delete the /system/etc/wifi file

2. Create a /system/etc/wifi directory

3. Copy the /system/cust/hw/default/wpa_supplicant.conf file into the newly created /system/etc/wifi directory

I suppose this is something that can be solved via a symlink or something, but this was the solution I was told, and it just works.
[Android] danalive:
Hi All,

I have searched this thread and other forums to fix an issue I'm having with /data/app functionality. I've run a logcat on the ROM installation (based on CM7 nightly #94) and have the following line appear under each app in /data/app:

W/PackageManager( 1328): Cannot install platform packages to user storage

Could this be a mount issue of some sort?

Any help would be greatly appreciated (this is my first ROM!) :)

Cheers,

Dan.
[Android] Phildu91:
please can someone uploading file ".bash_profile" for windows XP
[Android] dastin1015:
You must run a Linux environment within Linux to use this kitchen and a bash_profile is for Macs.

Sent from my Hero that never dies! ;D
[Android] Tricky103:
UNEXPECTED TOP-LEVEL EXCEPTION:
org.jf.dexlib.Util.ExceptionWithContext: Unknown opcode: e4
at org.jf.dexlib.Util.ExceptionWithContext.withContext(ExceptionWithCont
ext.java:54)
at org.jf.dexlib.Code.InstructionIterator.IterateInstructions(Instructio
nIterator.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(Instructio
nIterator.java:51)
... 6 more
Error occured at code address 4
code_item @0x3bc84

WARNING: Cannot deodex MobilePrint.odex

Reverting to newer baksmali/smali:
baksmali-1.2.6.jar
smali-1.2.6.jar

ERROR: Aborting MobilePrint.odex

Finished system/app
Could not deodex the following (try to deodex these files again):
Email.odex MobilePrint.odex

Hi. This is the error I get on deodexing any SGSII rom.. This is on the email.apk and the mobile print apk + odex.

I have attached the 4 files as a zip. Please let me know your progress.

Many Thanks

Tricky103
[Android] :
Hi dsixda,

is it hard to add an option to format partition to ext4 when updater-script is being made?

If it is kindly ignore my question.

Thanks!
[Android] dsixda:
Yes. Or just copy /tools/edify_defs/ace to new file /tools/edify_defs/pyramid

I can add that fix in next release, thank you very much.

Why don't you try to rationalize the error message -- It probably tells you that you can't install platform-dependent or system-only packages to user data partition. I don't know what APKs you are using. Again, I'm not an Android expert, I just write scripts.. so your guess is probably as good as mine.

You don't need a Linux environment, I think he meant Cygwin.

Why are people installing the JDK and Cygwin in the wrong order so many times recently? I have mentioned this warning very clearly in the FAQ. Some guys are jumping too fast without reading carefully and depending on me to cover for their errors.. I'm not much of a Linux/Cygwin/Mac expert.

You can't deodex any random files without their framework folder. You need to provide a link to the ROM's /system/app and /system/framework folders - I can take a look at that later.

I also replied to this 11 days ago:

http://xdaforums.com/showpost.php?p=14387338&postcount=4853

(EDIT) Or you can see this thread (found with Google search):

http://xdaforums.com/showthread.php?t=1061058

Yes just modify the appropriate formatting definitions under /tools/edify_defs/<your device> ... but your ROM probably needs a kernel that supports ext4.
[Android] danalive:
Thanks for your feedback, I will give it another go.
[Android] tommytomatoe:
You can also use bash_profile for Linux as well. It's a Unix thing, not a Mac thing. :-)
[Android] dastin1015:
You learn something new everyday. Thanks! :)

Sent from my Hero that never dies! ;D
[Android] gianluca.tomat:
I have a problem: I installed the SED GNU drivers but I get this error in my terminal ( I use OS X 10.6)
[Android] tommytomatoe:
Look at this post I made earlier about bash profile and sed migration.
[Android] tommytomatoe:
Btw, you really only need the info to rename the old sed out of all that. Once its renamed, the gnu sed will be called automatically.

Reason is usr/bin is in front of usr/local/bin in the PATH.
[Android] gianluca.tomat:
thanks a lot tommy!! I'll try that out asap!! :)
[Android] gianluca.tomat:
REally thanks a lot tommytomatoe I finally got it working!! :)
[Android] tommytomatoe:
Any time! Glad you got it to go. :-)
[Android] Tricky103:
Hi

I read the reply, the code I provided was from your latest 166 kitchen. I thought you could use the apk's + odex files.

Unfortunately the only link I have is for a whole rom http://hotfile.com/dl/120764162/0c064b1/I9100XWKF1.rar.html

I read the other thread and they also do not solve the fix on the email.odex or mobile print.. I don't expect you to give me the files. I would just be happy with some guidance on what I need to do :)

Many Thanks
[Android] :
Thanks dsixda! You sir are one of the legends here. Keep up the good work.
[Android] rsxtypes72:
Just wanted to say thanks for the kitchen. I just cooked up a rom for my old g1. Still no luck trying to cook a rom for my g2
[Android] :
I have a question. How come I get "permission denied" when I type ./menu with 0.166?

It was working alright with 0.165.

EDIT:

Bad download. Re-downloaded and all is fine. Thanks dsixda!
[Android] dsixda:
This is the first question in the FAQ. Come on dude.
[Android] rsxtypes72:
Thank you. I solved my problem by creating an edify_def for my G2. Thanks again
[Android] :
Sorry. I do apologize.

Here you go 93H00871DJ529291E

sorry for my dumb ass question.
[Android] dsixda:
Can you post it here? Thank you in advance

EDIT: Never mind, I figured it out.

No need for that, but thanks.
[Android] dsixda:
Just look at the error message and see what library name it refers to.. Find a framework JAR file that may contain it. Use the single file deodex option to test it out.

You mean you don't have the app and framework files? Then how did you build your ROM??
[Android] lovethyEVO:
dsixda,

I noticed something that could make things easier when using system.img and boot.img when working with roms.

As it is now system and boot imgs have to be placed in the root of the original update folder in order for the kitchen to see and use them.

The imgs can't be seen if I place them in a subdir inside original_update.

It would be great if I/we could place system and boot imgs inside subdirs that are named according to what they are to keep track of what rom/device the imgs correspond to.

Just a thought.
[Android] dastin1015:
Or you could just compress the system.img and boot.img into a zip file and name the zip to whatever label you wish to give it.

Sent from my Hero that never dies! ;D
[Android] lovethyEVO:
I could but thats still the same as creating a folder with the name I want then dragging the system and boot imgs out of one zip and into the folder I created except it has to be zipped again.

I editeded the script to check subdirs in the kitchen but thought this would be a great help for the newbies for whom this kitchen is directed at.

I'll just go back to my cave and let this kitchen work the way it does now. I have noticed some flaws in the updater to update conversion but I guess bringing that to light would be too much. Shoot I root my roms manually and only really use this kitchen to unpack images since it's faster.
[Android] dsixda:
Yeah I was going to propose the zip file as well.

What is the flaw in the conversion script? You need to let me know, what do you mean by 'too much'??
[Android] JOSEunit10:
I made a backup with ClockworkMod 2.5 in recovery from my original rom, or stock rom.

I can have problems?.

There is no original rom for my phone to download. Huawei um840

thank you very much for this excellent kitchen!.
[Android] dsixda:
I don't think it will be a problem if from stock.
[Android] dsixda:
Updated kitchen to 0.167. Please see Release Notes in post #2 for details.
[Android] jerrylzy:
The superuser.apk version is 2.3.6.1?
[Android] dsixda:
Oops! Good catch... yes I accidentally used an older version. I apologize. Please re-download 0.167 for the real 2.3.6.3 Superuser.
[Android] Bladyle:
Hey dsixda did you make any changes to "tools for boot image"? From several version I have problem with it. Maybe something with compression ..

I put working boot.img in working folder and just extract it and then build it w/o any changes and then flash it via fastboot but phone don't boot. When I did this boot.img change from 2.5mb to 1.8mb also. I make a compare of files after this with original boot.img and one rebuilded with kitchen and there is no difference ...any idea ??

The phone I use is HTC Magic.
[Android] dsixda:
I haven't touched how a regular boot.img is built in over a year. -- Just read the release notes.
[Android] :
Help?

Okay I have been looking for my solution on google but I can't seem to find any similar situation I have.

Could someone please post link or point me to the right direction? Okay I have followed this http://xdaforums.com/showpost.php?p=7628768&postcount=1664 method to insert a kernel in the stock 2.37 and 2.36 rom.

If I don't touch the boot.img the phone boots okay but since I wanted the ROM to mount as ext4 I had to change the updater-script (by editing the "ace" file in /tools/ edify_defs).

After doing this my phone will just stay at the HTC logo. I had a look at the logcat and it says "exec /system/bin/sh failed, no such file or directory (2)".

So what am I missing here? Can anyone point me in the right direction?

Thanks in advance.
[Android] dsixda:
That error message is answered in the FAQ.. it means nothing was flashed to the /system partition.

Logcat is not enough. Like I said in the FAQ about non-booters, look into the recovery log to see why it couldn't flash it.. Try to flash again and check the log immediately afterwards.
[Android] jomeister15:
Whenever I run option 9 (the test update-script option) it works down to line 83, where it runs "copy_dir PACKAGE:updates TMP:/updates" and returns the error "WARNING: TMP:/updates not found in working folder". I know this isn't a problem with the kitchen itself, but I was wondering if I could get some help on the subject. Side Note: I already have an updates folder with the necessary packages in my TMP. Any advice?
[Android] dsixda:
Yup, the same thing happens to me, I need to use 7zip. Maybe I should mention this in the FAQ.

BTW for the other issue with not getting the system folder extracted, maybe you need to re-compile unyaffs under the tools folder.

Just go into tools/unyaffs_files folder on your Mac and type: gcc -o unyaffs.mac.new unyaffs.c

Let me know if that helps.
[Android] colonel_lp:
Thanks for your help, but using gcc 4.0 or 4.2 on my mac i just get a load of errors stating missing lots of missing .h files and errors...
[Android] dsixda:
In the kitchen, did you get extraction-related errors/warnings when you were using the option to create the working folder?