yashsingh1/xdaforums huggingface dataset:
[Android] fotone:
DESIRE HD.

Kitchen, stock rom (rom.zip), Ubuntu 10.10, SUN Java sdk, VM VirtualBox.

Extracting contents of system.img ...

Error: /system folder is empty!

Unfortunately unyaffs cannot open this system.img. The file format

used in the .img file may not be supported.

:(

mike1986 can help me?

thanks

P.S.

java version "1.6.0_22"

Java(TM) SE Runtime Environment (build 1.6.0_22-b04)

Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03, mixed mode)
[Android] r8zer:
hi can anyone tell me how to get the base kernel address, as im trying to use kitchen for the advent vega but got the message cannot mnt boot.img,
[Android] Bladyle:
I use windows version for some time but today when update my JDK, I have this error:

$ menu
bash: menu: command not found
[Android] mike1986.:
This kitchen doesn't support Desire HD :rolleyes:
[Android] fotone:
There is a kitchen that supports it?
[Android] viper786:
Anyone know if this will work with the Samsung Epic?
[Android] TMartin:
The command is:

./menu

Not just:

menu
[Android] Bladyle:
thanks it's work now :) Strange is before I update my SKD and JDK I start it with "menu" only
[Android] alain57:
hum ... i used the kitchen with a desirehd, didn't had that error, but the update.zip doesn't worked, know i know why ^^

but liked i say i had no error in the opening or creating process

but my zip was not the stock firmware, but the revolution HD v1.9 (i tried porting the MIUI ROM from desire to desire HD
[Android] alain57:
by the way mike, you created the revolution rom

can you please explain me how you did it

In the topic you thank this kitchen, so i guess you modded it or create youre own
[Android] ali_loly10:
i have been using this kitchen for a while now it's amazing

but i have a ques

with this kitchen could i port any rom from any device to my htc desire (that'll be awesome)

example: porting touchwiz from galaxy s to desire
[Android] ali_loly10:
and when will you add data2sd support
[Android] frostincredible:
Java JDK

I'm running Mac OS X 10.6.5 and I can't find a way to get the SUN Java JDK working. Can someone please post links to download and instructions to install? Thank you.
[Android] alain57:
didn't you know that under MAC OS X java sdk is preinstalled ??

seriously, if it is not preinstalled, try opening the software update tool (the apple menu on the top screen)

but it must be installed by default (at least one good thing on mac)
[Android] mercury700ir:
Dear DSIXDA, I tested your latest kitchen on LINUX MINT 10 (32Bit) and it works perfectly and very very easy without those hard steps for installin java and ...

You just need to do as this:

1- install linux mint with latest version of Virtual Box

2- open updates, select sun java jre, sun java bin and sun java plugin and press install ( it is like a windows update)

3- install guest additions and after these steps yu can have all the features:

- go to COMPUTER icon on your desktop and open "CD/DVD Drive: VBOXADDITIONS_3.2.12_68302" with double click, at the top of the explorer you can see a notification, just press "OPEN AUTORUN PROMPT", then "RUN", and tehn enter your password and let it do other steps itself.. ;)

after the previous step you have to restart and now you can have your linux in fullscreen mode...

4- extract your kitchen everywhere you want and have fun.. ;)

---------------------------------------------------------------
[Android] lpasq:
dsixda....

Have a great vacation! While you are away from the Android chef scene, we'll try cooking some Gingerbread in your kitchen and see how it tastes ;)

Sent from N1...
[Android] lovethyEVO:
The unlocker link tells you the same instructions for ubuntu in virtual box. Really, you basically posted something that is already avaiable.
[Android] mercury700ir:
in UBUNTU you can not use in full screen mode very well, because of the scrollbars that you can find after installing GUEST ADDITIONS in your desktop...

You can not see your desktop completely if you use a laptop or something like that...

I tried Maverick meerkat, Mepis and Kubuntu (based on maverick meerkat) and all of them havae their own bugs...

Except Ubuntu 9.xx that the kitchen and every other things go well on it, I just find MINT 10 useful ( that also, this distro is based on Ubuntu maverick meerkat too but without those bugs)...
[Android] lovethyEVO:
Honestly I never noticed this problem because I use multiple monitors on my tower. Also I use any vm in window mode so that I can quickly switch between host and vm.

To be fair you could have stated that the directions were for installing a fullscreen vm.
[Android] dsixda:
Actually I use Ubuntu on Virtual Box in fullscreen mode on my netbook. I did that with the Guest Additions, as I stated in the FAQ. No scroll bars.
[Android] dsixda:
Hope to see Gingerbread working with this kitchen! I'll be away for a while.
[Android] Morpheus90:
Does this kitchen work with Lg Optimus One? ;)
[Android] knzo:
E:Error in installbusybox (Status 32256)

E: Failure at line 28: run_program PACKAGE:installbusybox

Installation aborted.

No errors @ update-script. Busybox version: 1.17.3.

Folder system/xbin exists and I've only added root+busybox in the kitchen before the build.

Ideas?
[Android] robocik:
small donation ;)

Hi man!

10$ just flown to you.

Thanks for your great work !
[Android] Konnichy:
Hello dsixda,

Although I said 'y' to have dalvik-cache on SD on my ROM, it stayed on the data partition until I type 'a2sd cachesd'. While investigating, I found 2 problems. Fixing them solved the situation, but I'm not sure which one is the real faulty one.

1/ Since this one is related to dtapps2sd v2.7.5.2, I detailed it in the appropriate thread: http://xdaforums.com/showpost.php?p=9895548&postcount=524

2/ From the 5 commands in the 'move_cache_sd' script, I noticed '/system/bin/cp' doesn't exist. To fix that, I changed all 5 commands to their busybox equivalent. Here is the patch I used:

--- ORIG/move_cache_sd 2010-12-17 22:52:20.000000000 +0000
+++ WORKING_121610_003505/move_cache_sd 2010-12-17 22:52:59.000000000 +0000
@@ -1,9 +1,9 @@
#!/system/bin/sh

-/system/bin/mkdir /system/sd/dalvik-cache
-/system/bin/chmod 777 /system/sd/dalvik-cache
-/system/bin/cp /data/dalvik-cache/* /system/sd/dalvik-cache
-/system/bin/rm -rf /data/dalvik-cache
-/system/bin/ln -s /system/sd/dalvik-cache /data/dalvik-cache
+/system/xbin/busybox mkdir /system/sd/dalvik-cache
+/system/xbin/busybox chmod 777 /system/sd/dalvik-cache
+/system/xbin/busybox cp /data/dalvik-cache/* /system/sd/dalvik-cache
+/system/xbin/busybox rm -rf /data/dalvik-cache
+/system/xbin/busybox ln -s /system/sd/dalvik-cache /data/dalvik-cache
echo x > /data/.dalvikcache

Hope this helps,

Yann
[Android] Droidzone:
Am very new to Cooking.

Tried Running the Kitchen from a Ubuntu Virtual machine.

At the last step "Build rom from working folder", I get an error:

Making update.zip ...

update.zip created, ready for signing

Signing update.zip as signed_121810_113716.zip ...
cp: cannot stat `../tools/signapk_files/testkey.*': No such file or directory
cp: cannot stat `../tools/signapk_files/signapk.jar': No such file or directory
Unable to access jarfile signapk.jar

Was not able to create signed_121810_113716.zip!

Ensure you have a recent version of the Sun Java JDK

I do have the latest version of Java SDK. Am I supposed to get the signapk.jar from somewhere?
[Android] westy4096:
Brilliant effort - just pinged you $10 for all the great work!

As an aside, I have a Mac and separate Linux box: the mac kitchen (whether inside dmg or not) seems to have a problem with certain (?!) ROMs on the desire. All were fine with ROMs up to 2.10, but 2.29 just wont take A2SD etc and will boot-loop: the Linux build is fine btw so no issues here...?? Just a curious one to me :)

Thanks

Westy
[Android] .ili.music.ili.:
I just tried to modify CM 6.1 for the HTC dream, and I got a Syntax error in the update script. What did I do wrong? I chose option 1 when it asked me about the update script.
[Android] Ein Alexander:
Cannot deodex...

While trying to deodex system/app and system/frame it fails on 2:

*android.policy

*services

Any reason to why the kitchen fails on these 2.

My steps:

1) select HTC-ACE.zip

/

2) option 0

/

3) option 11

/

4) deodex both app/frame from system

/

*android.policy

*services

FAIL

/

All apps deodex and all other framework deodex, but not these two. Please help!
[Android] nickiberli:
Zipalign doesn't work for me:

Is that my fault?
[Android] dsixda:
Hi guys, I've been on vacation and haven't kept up with this thread. Anyways, hope you all have a great Christmas holiday.
[Android] capychimp:
dsixda, is it possible to correct the deodexing for dhd roms and touch4g and z?

evil d said it is something with the classpath that has to be different
[Android] webstar1:
Hi again, can you please release a update so we can deodex gingerbread roms as I tried and it doesn't work, if just can't deodex any framework file or app. And im using galaxy s not a nexus s lol.
[Android] scienty:
Small issue to note

Hi dsixda,

I found a small scope for improvement which would be good to consider.

When I take the system.img of the stock rooted phone in kitchen, it will already have superuser.apk with small "s" and when I add the root from kitchen, it add's Superuser.apk with capital "S" without deleting the earlier superuser.apk with small "s", simple fix and avoids some issues to novice like me.

Keep up the great work.

Regards,

Scienty
[Android] chingy51o:
hey guys. im having trouble installing the gnu version of sed on my mac. ive tried multiple things including fink but its still a no go. can someone please help me out with this. thanks!
[Android] he8us:
Kitchen Update for Desire HD

Hello guys,

I modified the scripts inside the kitchen to handle the desire hd stock roms.

=> the new system.img are in ext3 and not anymore in YAFFS.

I put my update on my server: he8us.be/android/kitchen_he8us-modif.zip Sorry but I don't have the right to put active links outside of xda-dev...

It works on my mac but I had to install MacFuse(code.google.com/p/macfuse/) and fuse-ext2 (alperakcan.org/?open=projects&project=fuse-ext2). I will try to put them into the tools folder to compile it automatically if you don't have it already installed.

I created the script part for linux but I don't have any under the hand, i will install a VM to test. So it works under MacOS and theoretically under linux. I didn't find anything to read ext3 partitions under Windows so, if you have something, I can add the functionnality...

dsixda, I modified "scripts/img_files_to_working_folder". I put my modification between comments (#he8us modifications).

If you see any problem, you can ask why I did it like that...
[Android] webstar1:
Anyone modify the kitchen for gingerbread please
[Android] azure89:
Hi there! First of all, thanks for making this Kitchen, it's really useful and easy.

I've got a problem, i need to deodex a ROM Update, but i could not load as working folder.

The Kitchen gives me this error.

What should I do?

Anyone could help me, asap? =)
[Android] Treken:
will try this and see if I can get it working!
[Android] lpasq:
+1........
[Android] mattiadj:
Hello to all.

I'm a very new chef and so i have some problems!!

I'm trying to modify a rom (i can name it as ROM A) to make it similar to another rom (ROM B)

I have made the same file structure of the ROM B in ROM A but i don't understand how generate the update-script file.

I made all changes in update script file of ROM A similar to ROM B's update script file but i have an error during rom installation.

After copying files i have error on set_perm 2000 2000 0771 DATA:local can't chown/mod /data/local and installation aborted.

Now...how can i fix it?How can i generate a good update script file for my rom??

Thanks!
[Android] lpasq:
probably not of much value to you guys wanting to port nexus s rom to your device but we are able to cook a flashable 2.3 rom using either of the nexus s roms posted around. both the modaco r2 and cm7 can be cooked in v0.110 to flash to nexus s if you don't mess with the update/updater options and select option 3 (do nothing). good luck
[Android] jentzschman2000:
So I downloaded virtual box and then ubuntu as directed by the video tutorial from Un Locker. After ubuntu downloaded, I went to start as directed and it gave me the prompt about cntrl. After that, it started to load then got a error. Fatal: no bootable medium found.

So , what did I do wrong or what happened?

Thanks.
[Android] Droidzone:
@dsixda,

I'm trying to merge the latest OTA from HTC on my Stock RUU zip. How do I do that in the kitchen?
[Android] TMartin:
Are you trying to take files from an OTA zip?? If so, normally you can't and should wait for a RUU to be leaked. This is because HTC doesn't just include new files in an OTA, there are mostly patch files that patch files that already are on your device.
[Android] Droidzone:
Yes I was. :) And the new RUU came up a few hours of posting this! Still there are certain regions whose updated RUUs are yet not available, and I was hoping that the kitchen would help me compile a sort of Rooted RUU. I never realized using the Kitchen could be so easy. :) Love this..

So I guess my only option in case I want to integrate OTAs would be to install the OTA myself, and make the kitchen work on my updated Nandroid backup? The kitchen seems to caution against working with nandroid backups. Has anyone else tried them? Is it reliable?
[Android] lpasq:
anyone else cook a nexus s rom? does it look like the nexus s update scripts are updater-script and update-binary?

...sent from Nexus S
[Android] mike1986.:
smali/baksmali v1.2.6 is out, with support for gingerbread odex files
[Android] Karl:
how about making a feature when unpacking boot to extract kernel to make it be able to build flashable zip and not just repacking to boot img
[Android] vin255764:
Dsixda,thank you very much for Windows compatible Droid Kitchen.Its perfect.

I tryed virtual box & Ubuntu,its not bad,but starting from the scratch is a pain.

1 question.Can somebody tell me how to edit .apk?

For example if I want to change few .pngs.I tryed opening them with winzip,but after I changed few images,it makes apk non-installable...

Same thing with my custom animation.Seems like something wrong with the zip compression???
[Android] Droidzone:
Apks are zips of compiled files. Decompile them with apktool.
[Android] Xpload:
How can I remove stock apps (like Footprints) form the final product?

Thank you
[Android] Droidzone:
Just delete the deodexed apk from the project folder and then compile
[Android] kirpeace:
./menu no such file or directory for cygwin
[Android] webstar1:
Have you cd to the directory you installed the kitchen?? Or you might not have installed the kitchen. that is a self explanatary error.
[Android] UKseagull:
Well in typical 'me' fashion I failed to get the Cygwin ./menu to launch, I get a message '.' is not recognized as an internal or external command, operable program or batch file.

I using Win 7 32 bit
[Android] kirpeace:
thanks i had not installed kitchen. i tried to add apps2sd on my stock 1.6 rom. formatted the sdcard with clockrecoverymod but did not select swap during formatting. then i install the update.zip the phone starts but the apps dont go to sdcard. i even cleared data. i even added 16 a, 17 from advanced by pressing 0. pressing 10 shows that apps2sd is installed.

i think i got it working
[Android] cmyasika1:
Does this kitchen work on LG Optimus s?
[Android] RMGeren:
FYI, I am starting a more Samsung friendly version of this kitchen. It's not ready to post on XDA yet, but it is at my github site: git://github.com/rmgeren/Android-ROM-Kitchen.git

I have the htc version up and am working on the Samsung version in the master branch.

Thanks dsixda for this incredible product!
[Android] EternalSoil:
Ok, I feel like an idiot.

Assuming I had already had the Java JDK (because I had, or so I thought), I just installed Cygwin. For some reason it took a bit to get the packages to show up correctly.

After trying the stuff below, I did download and install the Java JDK and had the same results.

I tried typing "./menu" and got "./menu: No such file or directory"

Searched and found that I needed to switch to the Kitchen directory so I tried "cd :\cygwin" and it shows my computer name then "/cygdrive/c/cygwin" then "$" on the next line. I try "./menu" again and get the no such file or directory error.

Seems like I'm missing something.

Ok, I was an idiot; didnt get the kitchen at all.

Thanks
[Android] OMJ:
hey dsixda....any plans for the kitchen to have the ability to create updater-scripts?

This is why I ask....
[Android] honentan:
perl -pi -e 's/format SYSTEM:/format SYSTEM:\n\ndelete SYSTEM:xbin\/busybox\ndelete_recursive SYSTEM:xbin\n/' update-script

modified to

perl -p -e 's/format SYSTEM:/format SYSTEM:\n\ndelete SYSTEM:xbin\/busybox\ndelete_recursive SYSTEM:xbin\n/' update-script
[Android] honentan:
in script/add_busybox_to_update_script
[Android] DonBartal:
last step does not work. :(

Hi Everyone,

I tried to make my 1st rom following the steps carefully. I only got stuck at the very last point.

I am getting the below error message. Please help.

Cheers,

Akos

Making update.zip ...

update.zip created, ready for signing

Signing update.zip as signed_010711_220738.zip ...

Exception in thread "main" java.lang.NoClassDefFoundError: com.android.signapk.SignApk

at java.lang.Class.initializeClass(libgcj.so.10)

Caused by: java.lang.ClassNotFoundException: sun.security.x509.AlgorithmId not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:signapk.jar], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}

at java.net.URLClassLoader.findClass(libgcj.so.10)

at gnu.gcj.runtime.SystemClassLoader.findClass(libgcj.so.10)

at java.lang.ClassLoader.loadClass(libgcj.so.10)

at java.lang.ClassLoader.loadClass(libgcj.so.10)

at java.lang.Class.initializeClass(libgcj.so.10)

Was not able to create signed_010711_220738.zip!

Ensure you have a recent version of the Sun Java JDK

Press Enter to continue
[Android] Didiasco:
http://xdaforums.com/showpost.php?p=5626300&postcount=3

Install Sun Java SDK ^^
[Android] lovethyEVO:
+1 but really want you want (and so do I) is for the kitchen to be able to somehow convert existing scripts to edify or create edify scripts from scratch based on the rom.

I'm pretty sure this is going to take alot for dsixda to implement so we may have to look into manually updating our own scripts for the time being.
[Android] RMGeren:
Ive been looking at it for a couple days and it is a huge PITA. Tons of extra symbols in edify, so dealing with sed and grep is very frustrating. There is a script to convert updater to update, and I'm using that as my rosetta stone for now.
[Android] lovethyEVO:
Good luck on it. I will keep an eye for it if you ever finish/release it.
[Android] DonBartal:
Sorry but that is installed, and is the most recent as per ubuntu. Any better idea?
[Android] Didiasco:
Nope sorry, it worked "out of the box" for me both on Win7 and Mint :)
[Android] CRACING:
Hello guys,

I don't know you all play so easy with android developer but me, how harder I'm trying to understand its getting more and more harder.

I had been with Windows Mobile development since 2+ years and cooked lots of ROMs. It was so easy. All the files were sorted so nicely and was so easy to change the builds.

But in linux/android, pff its 100times complex. So many strange files, folders, formats and etc :confused:

I tried to dig lot in google. Each guide says different story and too much about depth then the basic things. :(

Not sure its due to Windows I using to cook android via Cygwin and I have doubt that whether windows and cygwin has all the options for cooking android ROM.

I can shift to Linux in hours via VM but I'm afraid it will be more complex then Windows.

Anyways, back to the topic. I have HD2 and as you all know already it has finally got nand bootable android and WM is almost dead. So I though to move over Android Development/Cooking.

MAGLDR flashing uses Boot.img and System.img and I think its the thing used by all android based devices.

I have successfully dumped the System.img (Leo stock desire ) and understood most of things about how it works. i.e adding apk, file/folder structure but not totally.

Now I would like to update or change the kernal build. I have downloaded zImage-20110108_000001-htcleo and modules-20110108_000001-htcleo.gz from http://oe.netripper.com/files/

As per dsixda kernel updating guide here, I tried but suck on boot.img-ramdisk which I couldn't find anywhere to repack the boot.img. :confused:

then I got angry and removed the kitchen folder from Cygwin. :p

Can any body please help me to get started with cooking android (Guide)? It should suit windows and Cygwin. If its impossible to work totally on windows, then I will shift to linux.

Thanks a lot...

Best Regards
[Android] maharaskal:
NOTE2: If you had installed Java after Cygwin, then Cygwin may have issues finding the Java executable file, which will require an edit of the .bash_profile file.

Error: The application 'java' is not installed. The kitchen

will not function properly without it. Refer to the

FAQ for the HTC Android Kitchen at xda-developers.com

for assistance on installing the binary for 'java'.

I getting the Java error, anyone can guide me how to solve it?

I already install the Java.
[Android] ragin:
Is an update for SGS planned?
[Android] 2fast4u88:
The ones having problems are you on linux? As it works perfect for me. I think I got that same problem but can't remember exactly what I did at the moment.

As for the boot image and depending on what you want to do I can give a hand.
[Android] Alex706:
please build HD2 Android Kitchen...
[Android] seatone:
Same here my friend :(

Although I don't try to cook for Leo, just for zte, but I'm stuck on rebuilding the boot.img...

In case you find something that could help, please pm me ( I'll do in the same way).

Cheers,

/s1
[Android] schizopunk:
Are there plans to update the kitchen to work with edify scripts now that the new ClockworkMod no longer supports Amend scripts?

I'd love to have the ability to work on my Nexus S stuff but the kitchen doesn't do much for me now.
[Android] dsixda:
Nothing planned right now because it is too ambitious a project for me and I don't have the time. However, someone may have already started work on something like that. In the meantime you can use the updater-script conversion tools already found in the kitchen.

BTW I am on vacation till the 15th so I won't be working on the kitchen for a while, as I recover from one month off work ;)
[Android] TMartin:
How does edify handle the two run program commands for check data & add busybox??

EDIT: I know the actually commands, just don't know if they work correctly with edify.
[Android] Alex-V:
I don´t know if this is posted allready but

a desire hd support would be nice....i can not extract the rom.zip of it...(i read something about the system.img is packed in another format...)

offtopic: please don´t give up...love your kitchen :)

with kind regards...Alex
[Android] OMJ:
I just discovered this myself thx to TMartin :). the system.img uses ext3 format, you can mount it in linux or use Explore2fs in windows to extract it.
[Android] Alex-V:
Cool :) Thanks for the tip´s

with kind regards..Alex
[Android] jeremyward420:
Help

Hi there, I'm using windows xp sp3 fully updated and when i try to run the cygwin shortcut on desktop it says im missing some dll files and when i try to add them i need another one. i was only able to find the first two on google so i dont know if i need anymore or not. the three files were cygintl-8.dll, cygiconv-2.dll and cygreadline7.dll in that order. i have the JDK installed first too so thats not the problem. I dont think anyway.

Has anyone had this problem and if so how'd you fix it. any help would be greatly appreciated.

Cheers,

Jeremy
[Android] itje:
had similar problem on win7

but then I run the cygwin installer as admin, and it installed fine

hope it helps

@DSIXDA

Hoping for desire HD support in your kitchen soon :-)

cheers