yashsingh1/xdaforums huggingface dataset:
[Android] puertoblack2003:
i like this utility and i used it for flipz rom,I customized how i want my rom to be.But i noticed that i was having issue when i flashed it then reboot i was getting htc sense force close.The only way it would work properly with out any issue is i have to install flipz rom then my rom and the force close will go away.Should i be looking for something.I hate depending on a rom to make my rom work.

thanks. i will be donating to you this is a useful tool.
[Android] dsixda:
Thanks, will consider it for future versions. :)
[Android] dsixda:
Did you do a wipe before flashing?
[Android] puertoblack2003:
yes i've done everything possible i even had a friend test it out and had the same issue. can a zip align cause that issue?
[Android] dsixda:
Are you using Cygwin? and what is Flipz ROM?
[Android] CGCampbell:
hey guys so i am using this kitchen and well i am running an HTC EVO and we had an OTA update well Calk has release a rom a shiped rom i guess with an ota update here is a link you can look http://xdaforums.com/showthread.php?t=712695

anywho if i download this to use as a base what option would be best to use this to make a working folder
[Android] dsixda:
You can use any shipped ROM, rooted or not.
[Android] CGCampbell:
yea but when i put it into the original folder do i do option 1 then like option 1 or 2 or 3 to make a working folder
[Android] dsixda:
Huh? ;) Did you read the FAQ? Option 1 is all you need to make a working folder. If you need to root or whatever then select the other options afterwards.
[Android] dsixda:
Cool, just tried out Nano, it looks a lot like the beloved PICO from my university days :) Awesome.

EDIT: Hey.. the cursor keys don't work if you use Nano with adb shell in Ubuntu. Instead of moving around the page, they bring up previous commands. ?? If I press SHIFT at the same time, then they work. The ENTER key doesn't work either when saving :mad:

Works well in ConnectBot on my Nexus One, as long as you remember that clicking on the trackball emulates the Control key. ;)
[Android] dsixda:
Alright, version 0.56 is now up... A couple of new features have been added, and a couple of bug fixes have been made. More details are in the Release Notes in Post #2. Thanks for all the feedback and help.

Hope all you Canucks had a great Canada Day ;-)
[Android] dsixda:
This is actually a good thing to have, I am starting to notice how useful it would be to bring up previous commands with the Up arrow key in ConnectBot.

EDIT: I've updated version 0.56 to include the Bash shell. I apologize to the 5 people who had already downloaded the earlier version of 0.56!
[Android] gnarlyc:
I installed BASH with the script on a different ROM, and it does appears to need -

in order to work... I'm not sure why one ROM would need that and another not, unless the dev already had that declared somewhere in the first one. So, if anyone has trouble with BASH, try that. There's also some code for .bashrc to make the terminal multi-color, but I haven't tried that yet. It's in the post that I linked to before.

dsixda, I'm glad you have found these useful and made them official.

I'm also looking at 'ls' from coreutils and a few other things like 'grep' and 'dropbear' (i.e. sshd, which some others have working on their ROMs).
[Android] fastludeh22:
Sorry if this has been answered, but im at work and can't read 93 pages, ill look though it better tonight, but i have a question:

Can this be used to build a kernel from source? I had a working rom, extracted the boot.img+ ramdisk option. Removed boot_kernel.img from extracted folder put in my zimg, renamed proper name that kitchen was expecting. Used remake boot img option, no errors. Then made rom img. No errors. Flashed to phone and got a faild to write boot error, i forgot the number it was 1 am, and out of space error. Just wondering what i need to do.

Thanks for this though, its def the thing i needed to help me get into this side of things. I was doing this in cygwin on win 7 last night, but i started to setup a vm after i got errors in case i can only do this in ubuntu or equivalent.

Thanks again guys!
[Android] dsixda:
If you can find out why this happens, that would be great.
[Android] dsixda:
No you can't use this kitchen to build a kernel from source. But you should be able to use your own zImage and put it into a boot.img with this kitchen.
[Android] fastludeh22:
Thanks for the response. Like I said I'm new to this side of things, so maybe I'm using the term zimg wrong. I dl'ed a file called custom_kernel-2.6.xx.xx.tar.bz2, from my error I'm assuming that is source and not a zimg.

Last question (ya right, lol) the custom script option is that for doing things like just adding busy box? Select custom option, and run one of the installed scripts? I had a rom last night, it was rooted, but no busy box. I setup working folder, and extracted boot img. Edited init to setup the min/max cpu speeds, then selected add root option, it installed busybox and rebuilt rom fine. Flashed and my cpu scale changes worked, but setcpu said I didn't have root access, so I'm assuming I messed something up when adding root to an already rooted rom. Thanks again!
[Android] dsixda:
The custom script option is for making your own scripts, just look at the example I had given in there. For example, you can use it as a batch file to call all the scripts you need to cook your ROM instead of having to press Option 1, Option 2, Option 4, Option 6, etc. every single time.
[Android] gnarlyc:
The only good solution that I can think of is to modify the script to add those two lines to the init.rc or init.productx.rc 'on boot' section. Having never done that, it will take me a few minutes to poke around in the existing scripts and figure it out.

Good stuff!
[Android] dsixda:
I found this in the init.rc of the Modaco Nexus One ROM:

export TERMINFO /system/etc/terminfo
[Android] gnarlyc:
You can take a look at my Android Builder. It's really for AOSP on Eris and is still very much a work in progress. The idea with it is to compile AOSP, compile the kernel, put it all together, and throw it in the kitchen. You might find the code helpful.

There is also some work being done on a similar project geared for CM and multiple devices. It's not my project, but what I've seen looks really good.
[Android] gnarlyc:
Ah ha! That might explain it then.

So, we should be able to change the 'add_bash' script to bust out the boot.img and mod the init.rc, right?
[Android] dsixda:
Yes, you can. The 'export' definition is found at the top of the file, like this:

on init

sysclktz 0

loglevel 3

# setup the global environment
export PATH /usr/bin:/usr/sbin:/bin:/sbin:/system/sbin:/system/bin:/system/xbin:/data/xbin
export LD_LIBRARY_PATH /system/lib
export ANDROID_BOOTLOGO 1
export ANDROID_ROOT /system
export ANDROID_ASSETS /system/app
export ANDROID_DATA /data
export EXTERNAL_STORAGE /mnt/sdcard
export ASEC_MOUNTPOINT /mnt/asec
export BOOTCLASSPATH /system/framework/core.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/android.policy.jar:/system/framework/services.jar
export TERMINFO /system/etc/terminfo

Can you see if just adding that TERMINFO line makes Bash work on the ROM you were having trouble with?
[Android] dsixda:
By the way, the version number you see in the menu says 0.57, which is wrong. It should read 0.56 ;) I'll change that and re-upload the updated version number, to prevent confusion...
[Android] antz88c:
@dsixda

been awhile since the last time i cooked.

i just cooked from stock Desire ROM with now issues. thanks.
[Android] dsixda:
Ok, fixed this for you. If you add Nano but TERMINFO is not defined in init.rc, then it will add it to that file.

Release 0.57 includes this fix plus more! :-)
[Android] puertoblack2003:
I love this utility,I ran some beta rom,But i'm having issue with the permission.For example when i install titanuim backup and open it up i was getting a black screen.So i checked the logcat and it said that it was searching for /system/bin/sh and file not found.But the file is there.

Can you point me to the right direction.
[Android] dsixda:
Have you enabled USB Debugging under Settings?
[Android] puertoblack2003:
yes i have..i rebuild another test beta and still no luck.The phone is functioning, but that permission is causing issue I'm trying to narrow it down.

:confused:
[Android] puertoblack2003:
ok i narrowed it down to the superuser.apk. I had changed the superuser.apk to the updated app and i guess its not compatible for the evo stock rom.So i put back your superuser.apk app back and now its working....:D
[Android] dsixda:
Yeah that's why I don't use that one in the kitchen. There are too many versions and it is difficult for the kitchen to determine which one to use for each ROM.
[Android] tcberg2010:
Will be upgrading to v0.57. I'm still using v0.47 i believe but i can verify that it works for the Incredible.
[Android] NeoS:
It's probably not really needed, since this thread is quite popular, but I feel this needs to be stickied. ;)
[Android] dsixda:
Done! :-) It's now in the new version 0.58. Thanks for the idea.
[Android] dsixda:
BTW, for those of you still having trouble setting up Ubuntu with Java, I have updated the FAQ with some info on which version of Ubuntu works best.

Of course, if all else fails, just use the Cygwin installation, which is much easier...
[Android] brian6685:
Is there a way to change colors, etc.. modify framework on this kitchen?
[Android] dsixda:
Nope. Please read the FAQ.
[Android] elegantai:
This is absolutely lovely. Thank you so much for this useful utility :D:D:D
[Android] bver:
Merge OTA update with Stock ROM

I'm coming from WM and new to Android/Linux, so I appoligize for the noob quesion, but are there any resources or tutorials explaining how to merge an OTA update with a stock ROM. I've extracted the stock ROM using the kitchen, but I can't figure out how to combine (or add) the OTA updates with stock ROM from within the kitchen. I've searched everywhere, but no luck. Any help or direction is greatly appreciated.
[Android] tnpapadakos:
youre talking apples and oranges

the OTA updates update the stock roms

the kitchens allow you to take what the stock roms are actually based on, the AOSP, or another rom someone made, and modify it to your liking

someone correct me if im not exactly accurate here, it wouldnt be the first time:)
[Android] bver:
Thank you for the quick response. I think I get what you're saying, but how then does Calkulin, for example, release a fully rooted and complete ROM including a recent OTA update?

h t t p://xdaforums.com/showthread.php?t=712695

Thanks
[Android] robocik:
Thanks for a great kitchen :) just gave it 5 star.

Thanks again.
[Android] lpasq:
thanks so much for tackling the busybox bug-a-boos!!!
[Android] dsixda:
What problems were you having with busybox? I think there may still be room for improvement in that area.
[Android] lpasq:
i will update you on errors/issues as they arise since i am beginning a new n1 rom compiled from aosp froyo. i'll let 0.59 build from boot.img and system.img and use your root and see how the output .zip flashes and runs.
[Android] t2noob:
Idk if this is possible but can you add deodexing script to the kitchen?

I really don't know how deodexing works but I hear devs always saying they deodex their rom

So i would like to know if its possible to implement into your kitchen.
[Android] dsixda:
Just search the thread

http://xdaforums.com/search.php?searchid=39778342

Maybe in the future if I figure it out ;)
[Android] dsixda:
Just to let you guys know, I'm working on a script to deodex a ROM. I have been successfully able to boot when deodex'ing the system/app/*.odex files, but am having boot loops when I try to do the system/framework/*.odex files as well.
[Android] t2noob:
Awesome can't wait.

I had the same problem when trying to deodex the framework files, thats why I wanted to know if you could added to your kitchen lol.
[Android] dsixda:
Yeah.. I have read that a lot of people had problems with the framework, although I have only tried with the FRF50 ROM for the Nexus One. I think Paul (MoDaCo) got it fully deodex'ed. Maybe I'll ask one of those devs.

I have also tested and fixed the deodexing script to make it work for HTC Sense ROMs and regular Android.
[Android] t2noob:
That's awesome because I'll be using it on stock htc 2.1 eris rom.
[Android] dsixda:
I wonder if the BOOTCLASSPATH files need to be deodex'ed first before the other framework jars and apks are deodex'ed. Because I read that changing any of the BOOTCLASSPATH files invalidates all the other files that depend on them:

From here: http://code.google.com/p/smali/wiki/DeodexInstructions, I'll quote -

Or am I reading that wrong?
[Android] dsixda:
Anyways.. I have uploaded a new version of the kitchen with the deodexing option. Spent two whole nights on it, I need a break.. and a life now ;-) Hope it works out for most of you. Feedback will be appreciated, thanks!
[Android] t2noob:
WARNING: The deodexing pocess usually takes several minutes.

Just noticed the typo pocess should be process.

Not a big deal but thought you should know.
[Android] dsixda:
Ha, I knew something like that would creep up! ;) Thanks for the heads-up, I'll upload it again with the extra "r" :-) Good night.
[Android] cougar694u:
When using the task killer option, I get this:

CURRENTLY:
setprop ro.FOREGROUND_APP_MEM 1536
setprop ro.VISIBLE_APP_MEM 2048
setprop ro.SECONDARY_SERVER_MEM 4096
setprop ro.HOME_APP_MEM 4096
setprop ro.HIDDEN_APP_MEM 5120
setprop ro.CONTENT_PROVIDER_MEM 5632
setprop ro.EMPTY_APP_MEM 6144

You will now be asked to change each of the values above. If you
want to enable the task killer tweak but are unsure of what values
to use, then simply press Enter at the prompts and the script
will do it for you.

Type x at any time if you want to cancel and exit. None of the
values will be saved if you cancel.

FOREGROUND_APP_MEM (default for tweak: 1536):
VISIBLE_APP_MEM (default for tweak: 2048):
SECONDARY_SERVER_MEM (default for tweak: 4096):
HOME_APP_MEM (default for tweak: 4096):
HIDDEN_APP_MEM (default for tweak: 5120):
CONTENT_PROVIDER_MEM (default for tweak: 15360): 5632
EMPTY_APP_MEM (default for tweak: 25600): 6144

CURRENT VALUES ARE NOW:
setprop ro.FOREGROUND_APP_MEM 5632
setprop ro.VISIBLE_APP_MEM 6144
setprop ro.SECONDARY_SERVER_MEM 4096
setprop ro.HOME_APP_MEM 4096
setprop ro.HIDDEN_APP_MEM 5120
setprop ro.CONTENT_PROVIDER_MEM 15360
setprop ro.EMPTY_APP_MEM 25600

I had this problem on 0.54, so I wanted to test on 0.60 to see if it would take the settings I gave it, or use the defaults. All I did was open the chromatic rom and go here to test.

FYI
[Android] dsixda:
Ok thanks, I'll take a look.... but what's a chromatic ROM?
[Android] cougar694u:
http://xdaforums.com/showthread.php?t=679135
[Android] gnarlyc:
Get some rest! If you're going to be such a machine, at least do it in spurts... Thanks for all of the work. The kitchen is really nice. I think it's moved beyond the 'basic' kitchen that you intended though. That's not a bad thing at all. Just don't let it get the best of you.

Maybe the next thing you should think about adding is a plugin/add-on system, so that all of the other devs can easily add their scripts without you having to support them!

Maybe the init script greps through a folder looking for keywords in the comments in order to build the new menu? Something like that... Just a thought. I feel like I've mentioned this before because I've started to post this once or twice, and never have. (I think anyway.) I'll be glad to take a little time away from other things and help. Creating and sending you the basic code for that is actually on my list, it just hasn't made it to the top yet! I Ramble On...
[Android] dsixda:
That's a great idea. I do have the "Run your own custom script" option, but I could change that so that it looks under a specific folder, e.g. /scripts/extra, then lists them in a new menu, and makes them selectable. I'll leave that for a future day... that would be a fun project for me to do, not that hard.

In the meantime, I have fixed the Task Killer issue mentioned above, and also made some other minor changes to it. That will come out tonight. BTW I prefer releasing frequent small updates, rather than one big one, because I'd rather have you guys have the bug fixes right away, rather than wait a while for a big update.

Ha, probably a good idea to rename it from "HTC Android Basic Kitchen" to just "HTC Android Kitchen" ;-) What do you guys think?
[Android] robocik:
Thanks once more time for your great kitchen! i use it since 0.18 and it is better and better each release, very nice.

i customize the menus a little, i changed the exit to 10 and advanced menu to 0, so i get in and out from advanced menu with the same "button" and i added the build rom in advanced menu, just like it to have in both places so i dont need to go back from adv.menu to cook them rom... ;)

Cheers mate!
[Android] dsixda:
Thanks for the feedback, that actually makes more sense than my setup ;)

I'll incorporate your suggestions in the next update, hopefully tonight or Saturday.
[Android] robocik:
Actually i also added "extract kernel from current working folder" and "build a new boot.img" to the main menu... then i have the features that I use most often in one place ;)

glad i can help man, you are making the cooking much nicer AND easier job!
[Android] dsixda:
I just realized you can run this kitchen on your phone with ConnectBot.. lol. But you have to put "sh" in front of every script file name; eg. 'sh menu'. Probably can't do all tasks, but it makes me appreciate how flexible Android can be!
[Android] robocik:
have not used connectbot yet... and what if you change the name from menu to menu.sh ?
[Android] dsixda:
No difference, you need "sh" in front.
[Android] robocik:
ok...

i see new kithen ;) nice. Thanks.

EDIT:

maybe a abort possibility, whe you whant to for example set up working folder, it waits until you press return to continue, maybe aborts when using another key ? just pressed "1" by mistake and noticed that you cant abort it, you have to continue.

I know you can just pres ctrl-c and star menu once again but ... hehe ;)
[Android] nickiberli:
hi,

your kitchen is very cool :D

But i think the deodex options don't work for htc desire roms :(

If i try it:

Only the /system/app folder: Boot-loop.

Both folders: The phone starts up and i just see the htc screen... it doesn't boot.

I hope can fix it :)
[Android] furniel:
Hello, your kitchen is great, but is it possible to add such option as "odex your rom"?
[Android] mr.bang:
in a few hours i'm going to comlete the test of macport kitchen..

this evening (Italy GMT) i will post the results..

great 0.6 ! thanks dsixda
[Android] dsixda:
Yeah I thought so :) I was just too lazy to download everythimg, just to compile those two files!
[Android] dsixda:
Thanks.....make sure you also specify the version of the Mac OS you are using. Perhaps you can give instructions for compiling for the other Mac versions.
[Android] dsixda:
Hi guys,

Just made an update to the kitchen. Made a few minor adjustments.

In addition, for all you Windows users, there should be better support for Cygwin now... please read the information on the first page regarding Cygwin.
[Android] dsixda:
Hey man, how's it coming along? Are you still having trouble with using the regular testsign.jar path? In cygwin I had a problem with the path too when using the "classpath" parameter; however, there was a special command that converts the cygwin path to a Windows path.

e.g.

java -classpath C:\AndroidSDK\tools\sign\testsign.jar ... Didn't work

java -classpath /cygdrive/c/androidsdk/tools/sign/testsign.jar ... Didn't work

java -classpath `cygpath -wp /cygdrive/c/androidsdk/tools/sign/testsign.jar` ... WORKED!

The 'cygpath' command converts the Cygwin path into a Windows path. However, I don't know how Step 3 differs from Step 1! Nonetheless, I am just happy it worked. :)

So maybe there is a similar method for Mac.
[Android] mr.bang:
Damn.. i can't sign whit testsign.jar yet!

I'm going to try it on a Linux machine
[Android] dsixda:
Look here, they have a solution ..

http://xdaforums.com/showthread.php?p=4763231
[Android] mr.bang:
sorry for OT but if anyone can help me i will very gald

look at the screenshot
[Android] dsixda:
Maybe you need to upgrade your JDK?
[Android] idflood:
Maybe it's just a problem of Java version. If i remember I had similar problems while trying to compile the android sources, and had to install manually an older version.

What is your java version? You can try to change the order of java versions in /applications/utilities/Java Preferences
[Android] mr.bang:
java version "1.5.0_13"

Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13-b05-237)

Java HotSpot(TM) Client VM (build 1.5.0_13-119, mixed mode, sharing)
[Android] dsixda:
I just notice your JRE (Java Runtime Environment) version, you need the JDK too. Or maybe the info below also includes JDK version?
[Android] idflood:
this is what i have ( working ).

java version "1.6.0_17"

Java(TM) SE Runtime Environment (build 1.6.0_17-b04-248-10M3025)

Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01-101, mixed mode)

it seems that the "Java Preferences" app doesn't really change the java version used from terminal.
[Android] mr.bang:
YAY =) i ve updated java! now it's ooook!!!

ok guys i post soylatte link! so if anyone have the same problem he can solve it!

Soylatte (java for Mac, mod edition)

http://blog.adsdevshop.com/2008/02/26/installing-the-jdk-16-on-mac-os-x/
[Android] dsixda:
Good job!

If you get everything built, can you post the full instructions here? Maybe we can integrate everything into the kitchen so that users don't have to download anything from another site (just like I did for Cygwin).

Also, what do you get if you type "uname" on your Mac? Because, in Ubuntu it gives us "Linux" and on Cygwin it gives "CYGWIN_NT-5.1". So in my "make_kitchen" and "build_rom" scripts I look for "CYGWIN" if I need to do special things for unyaffs and java.
[Android] mr.bang:
uname command returns the *unix Name , in my mac (h*a*c*k) i get "Darwin" i do not know if on a MAC return the same word!

i don't think u have to do special thing in the those script

because if the unyaffs is compiled for Linux it SHOULD be run even on a Cygwin!

i hate cygwin! it does what it want when it want!
[Android] dsixda:
No, unyaffs Linux binary doesn't work in Cygwin, it gives an error, so I have to recompile it to unyaffs.exe.

Yeah I hate Cygwin too, even worse than Linux LOL..

Yeah, probably that is the case. I could just check like this:

if [ `uname | grep CYGWIN` ]
then
# Do Cygwin stuff

elif [ `uname | grep Linux` ]
then
# Do Linux stuff

else
# Do Mac stuff
fi

BTW, on what PC are you running your "Hackintosh" on? I have an MSI Wind with both XP and Ubuntu.. was thinking of adding Mac too...
[Android] dsixda:
Ignore this post... I have moved everything here.
[Android] mr.bang:
Acer Aspire 5920G .. but i have some issue with lan/wifi card, 56Kmodem, sdCard Reader and synaptic touchpad!

but this hackintosh is great! =)

i think you need lastest version of mkbootmg ! now i'm looking for!
[Android] dsixda:
Well, I did do a "repo sync" so I'm pretty sure I got the latest version of mkbootimg. The problem is that the Android SDK cannot be built with Cygwin, although, apparently some tools should be able to compile.

I also haven't used C in a long time, so the Makefile for mkbootimg is kind of confusing to me, if it really matters.

All I did was: gcc -o mkbootimg mkbootimg.c .. Do I need to add any library parameters?
[Android] dsixda:
That would be kind of hard. Why would you want to do that?
[Android] dsixda:
Oh that's too bad. I'll work on it. Can you show me the logcat output? If you don't know how to do it then read about it in the FAQ ... thanks.
[Android] codyppc:
Thanks for all your hard work. Good to see you being so active with it.

Cody
[Android] furniel:
I think that it would be very usefull for people who want use custom roms without a2sd but they don't want lose space in data partition.