yashsingh1/xdaforums huggingface dataset:
[Android] gtrab:
Searching into this thread for "desire Z" linked nothing, searching for "G2" linked mostly to the other "G2" (Hero), so I started reading from page 1 until I found something about this problem on page 228 (!!!) some minutes ago

I've been struggling for 3 days with this kitchen.

I kind suggestion to the OP: The Ace / Vision uncompatibility should be stated @ front post... huh... :(

Thanks anyway for your efforts dsixda (no irony, sincerely great tool, just not compatible).

PS: BIG THANKS mike1986 for taking the time to reply.

Any suggestions for a working kitchen much appreciated.

I will check the HD (Ace) and G2 (the other Vision) forums to see what others are using.
[Android] mike1986.:
You need to extract those .img files using mount loop in some linux environment. I'm not linux expert so I can't say more. Then you have to zip your extracted system folder + boot.img and place it original_update and then set working folder. You will also need updater-script + update-binary instead of update-script OR you have your ROM with update-script but then you will have to make another zip with boot.img and meta-inf inside with updater-script + update-binary to flash boot.img. The last solution is to flash zip file with system folder and meta-inf only and then flash boot.im via fastboot.

BTW I made mistake. boot.img can be extracted with this kitchen but can't be flashed via update-script. You need updater-script + update-binary to flash boot.img or do it via fasbtoot as I wrote above.
[Android] dsixda:
Thanks for sharing, any noticeable differences with both?
[Android] dsixda:
It's answered in the FAQ

It's in the FAQ ;)

Also in the FAQ :p

In the FAQ

In the FAQ

-------

Guys, before you downloaded the kitchen, it has been mentioned twice on the first page:

Not sure how it can be missed again and again, but just a friendly reminder. I am always here to help out whenever I can, but I don't like repeating answers and cluttering the thread, that's why I put them in the FAQ ;)
[Android] dsixda:
Your answer was specifically addressed in the FAQ, which was linked right before you downloaded the kitchen, along with a warning. ;)

I do not prefer to use the first post as a place to put miscellaneous information. First post should only be used for the Download link and important links such as the FAQ. I see a lot of devs put all of their information in the first post, which makes it cluttered and difficult to find whatever you need. I've seen threads where I cannot even find the link to the ROM because the first post is so full of unnecessary info that the user probably wouldn't understand anyway.

This is why, two or times before anyone downloads the kitchen, I have mentioned to read the FAQ (in big bold lettering) first for problems and questions.

I know I'm being anal here, but that's the way I am - and I'm trying to make the info as accessible and user-friendly as possible.

Anyways, thanks for taking the time to use the kitchen.
[Android] dsixda:
The kitchen has problems with CM ROMs with updater-script, this question has been asked a few times already... Search the thread for Cyanogen and pole ;-)
[Android] dsixda:
Did you finally get it to work? If not, please upload so that I may take a look.

Did you put it at the FRONT of the PATH variable as I said in the FAQ? What shows when u type 'echo $PATH'?
[Android] dsixda:
Why would you want to do that? That will be very difficult to do, to convert the contents of the update-script into actual files and operations and put them in a system.img.
[Android] dsixda:
Open a terminal and type: ls /usr/local/bin
[Android] vickg:
Finally I found a way around for the illegal,bad cpu commands as said in post (1871). Use FINK seriously i wasted 2 days and now DONE with the setting up part on mac. for ppl like me you'll save your self ton of time if you download fink then READ the whole page (finkproject > download) cant post links but its on the download page, so once you have fink installed type sudo apt-get install sed and you can do this for the wget aswell. This is Awesome btw..gonna try this on nexus one!
[Android] snapilica2003:
Hey there,

It's my first time doing this and I can say i got pretty lucky. Thing is, I've used the new 2.29 base for Desire.

I've rooted, added busybox, ap2sd, bash, nano and did no other changes to the rom. I've also did the /data/app part (but left it empty, only with the placeholder file) so basically everything except deodexing. I got no errors in the process.

Flahed the ROM, everything went fine, booted just fine, but after that for some reason I can't seem to install any app from the Market. Every single one failed. The /data/app folder is there and I can't seem to find the problem.
[Android] mike1986.:
They seems to have different structure so the kitchen doesn't found them as symlinks. As a result I had to delete them manually and manually add symlinks command to the update-script.

You can take a look: http://rapidshare.com/files/431547519/symlinks-ace.rar
[Android] wtfriends:
thanks a lot
[Android] DrRyder:
I'm having a problem with a rom I made flashing on a Hardware Version 0004 rom. I keep seeing things about Unrevoked 3 not working on the latest HW version. However, he can boot into recovery and sees the menu and can flash other people's roms. I don't know what could be going on. He flashed Virus's rom, but can't flash mine. Just gets stuck on the HTC EVO 4G screen. Of course, his base would be the 3.30.651.3. I use the 3.29.651.5. I'm only asking here because I'm not sure if this is a kitchen issue or what.
[Android] gtrab:
As I stated, The Desire Z was not listed @ FAQ, only Ace was mentioned.

It wasn't till I read to page 228 that I foud a reference to Ace / Vision sharing the ext3 stuff...

Just trying to help.
[Android] mike1986.:
I think I found another one, which seems to be the best. PM me please.
[Android] okyere:
Thanks for your response. :)
[Android] dsixda:
HTC Ace was mentioned as an example, and of course the error message was the same, so most likely it is the same issue... just use your common sense ;-) I don't want to be spoon-feeding for every single device out there, as I'm not the expert here. But to tell you the truth I thought the Ace was the Desire Z. I appreciate your feedback anyway.
[Android] dsixda:
Just post it here dude.
[Android] dsixda:
Sorry, can't help cos I have no idea what is Hardware 004, Unrevoked or Virus ;) I just have a plain old Nexus One. If you're stuck on boot screen then read the FAQ to see how to use logcat.
[Android] dsixda:
You didn't need to do anything.. you were just wasting your time..

The script automatically compared those EXT3 symlinks under your /bin folder, with the default symlinks list. So it removed the references to symlinks in the update-script that were already found in the /bin folder.

Actually in this case the files were removed from the update-script rather than the symlink files under /bin.
[Android] gtrab:
@dsixda:

I have good news and bad news about the Desire Z :)

The good news is I imported boot.img and system.img from a nandroid backup and your kitchen unpacked the whole system folder OK (apparently), populating eveything

I just added root and busybox, then Option 22: convert update-script to updater-script, and built the ROM.

CWM starts to flash it, and halfway the flashing process it halts and gives error

(that's the bad news)

I am attaching the recovery log

Hope this helps

PS: Curiously enough, I built 3 ROMs using 3 different NANDroid backups (boot and system.img), and the process always halts at the very sme point (all 3 recovery.txt files look the same)

Thanks again
[Android] mike1986.:
http://rapidshare.com/files/431772337/busybox

And a question - is there any difference between placing it in bin or xbin?

So actually I don't need to do anything? They should stay there, in system/bin?

I have also some problem with updater-script. I have this command:

but data/app is not being successfully moved. Update-script command is working but this one not. Should I correct something there?
[Android] mike1986.:
Ok, this might be helpful for you dsixda. update-script to updater-script tool makes bug in converting process. Instead of

it should be
[Android] gtrab:
thanks mike1986

could thie be realted to my problem described at previous page http://xdaforums.com/showpost.php?p=9297684&postcount=2699 ??

or maybe is my prob (flashing always stops at a certain file, as seen on the attached log there) caused because I am not doing a full wipe ??

thanks
[Android] mike1986.:
You should rather post your updater-script then recovery.log
[Android] gtrab:
here it goes
[Android] mike1986.:
Ok, I'll take a look at this. For the moment you can read this: http://xdaforums.com/showthread.php?t=641223 (this is for update-script but anyway good to know these things)
[Android] codyppc:
Mac Noob

I switched from a pc to a mac a few months ago. I got a 13 macbook pro. the switch has went pretty good until i tried loading the kitchen up on it. the "create disk image" was easy. i just can't get past the SED part.

please help a Mac Noob.

questions... some seem silly, but there not.

1. after i download the GNU version of sed from the link in the 3rd post of this thread, where do i install it to? it's either the disk image that we created just before it (where my kitchen was also put), or just on the Macintosh HD.

2. when trying to edit my bash_profile file, how do i find the path? i cant even find /usr/local/bin to verify that the Rudix sed is in there.

3. will the install of the SED create the usr/local/bin file or is this something i am suppose to create and put something in it?

4. will the install of SED create the bash_profile? i ask because some of the post here refer to going to the last line of the file when editing it. someone told me to type "sudo nano ~/.bash_profile" and go to the last line and put in my path. i dont have any lines when i enter sudo nano ~/.bash_profile in terminal.

5. another person said to type "nano .bashrc" to edit the file in terminal. i tried both. neither is working.

Can anyone see what i maybe doing wrong? I sure would love to get this figured out. i've always felt i was pretty savvy with computers until i got this Mac. lol

Thanks, Cody
[Android] dsixda:
Use a google search.. Here are some reasons based on the error message I noticed in your recovery.log:

http://www.google.ca/search?q=Failu...=&aql=&oq=&gs_rfai=&pbx=1&fp=d889988ee2a99b11
[Android] dsixda:
Are you sure? I don't know if that is correct.

I believe the 'mount' command is only used if you had formatted the partition earlier. You also have to follow that up later with 'unmount'.

The other issue you mentioned was introduced by the developer of the ROM:

You didn't specify 'delete_recursive DATA:' in your update-script, so that's probably why you got errors (such as copying over files that already exist on the device).

Guys, make sure you proof-read your own update-scripts first before assuming the kitchen could be wrong. I was worried and making unnecessary changes to my scripts due to the above questions, and realized I probably wasted about 30 minutes. This is based on my own experience from making ROMs... but who knows, I may be wrong as well.
[Android] dsixda:
Probably a good idea to have it in /xbin, because the busybox binaries would otherwise collide with the existing non-busybox binary names under /bin.
[Android] mike1986.:
I made a lot of changes since that post ;) Now it looks like:

mount("MTD", "userdata", "/data"); is necessary, otherwise nothing will be copied to data/app. I'm sure of that :)
[Android] dsixda:
Ok then I will take your word :-) Thanks
[Android] dsixda:
I've updated the kitchen to 0.107. Enjoy
[Android] warttack:
ok I already posted my issue in this tread and no answers so I'm clarifying now.

I'm a mac user, Downloaded the kitchen and did put it on a case sensitive dmg image downloaded the gnu sed file described on the how-to but when i use the kitchen it gives me an error saying no command line because the "od" command cant execute the "--strings" option. Does anyone here, even dsixda knows how to fix this? For the records I already looked everywhere for a gnu/linux port of application and couldnt find one. Thanks in advance.
[Android] warttack:
To codyppc

just doble click the dmg you downloaded and doble click the install package inside of it. it will install the package in /usr/local/bin

add "export PATH=/usr/local/bin:$PATH" (without quotes) to ~/.bash_profile and you're ready to go.
[Android] mike1986.:
I wonder if I can use this commands before mounting partitions or after?

format("MTD", "cache");

format("MTD", "system");

format("MTD", "userdata");

format("MTD", "boot");

EDIT:

Ok, I figured out, that it's better to mount all the partitions at the beginning of updater-script and then use formatting etc. Otherwise the partitions are not available.

BTW unmounting is not really necessary. It can be always done in recovery after flashing new ROM. After reboot device will unmount all partitions automatically.
[Android] areicko:
The download link for the kitchen seems to be dead, does anyone have an alternative ?

Thanks ;-)
[Android] rs125:
With this kitchen can cook Desire for HD?
[Android] r8zer:
hi dsixda,

im at the moment having a play around with your android builder, and im in the process of adding a cyan rom build option, just wondering if any one wishes to help on this, and if it is ok with you to do this.

i have already sorted the menu out just need help with getting compiling right, got it all syc'ed with repo and with cyans git, all folders get setup, im now on to getting and editing the scripts to enable a compile from the kitchen,

i will then add this to the android kitchen menu.

can i ask what you think of this.
[Android] zeroasd:
does this program compatible with the ss fascinate? has anyone try it?
[Android] rs125:
Up..............
[Android] warttack:
@ dsixda

Any help with od command on a mac? I already tried everything I could but still can't use mac od "--strings" option, its non-existent in the mac version.

And I'm sorry for bugging too much is just cause I can't find anything related to it on web.

Thanks again.
[Android] dsixda:
Maybe, but the kitchen can't extract the img file.
[Android] dsixda:
No it won't but there are two people working on a port (two different projects).
[Android] dsixda:
I don't have a Mac so I don't know, but see the info about installing Fink, mentioned in the FAQ.
[Android] dsixda:
I didn't work on the Android Builder, that's someone else's thread (gnarlyc?). But you could ask him there, it's in this Chef forum. If you want to add it directly to the kitchen then you could make a plugin file. Just go to the final option in the Advanced Menu to see how it is used. Then people can just download your script and run it from the plugins menu.
[Android] DearTanker:
When i add app2sd,There seems auto Add /etc/init.d scripts support (busybox run-parts).

So,I think there is no reason for have option 17 in the Advance option.

Please check out.
[Android] dsixda:
No, the option is there for people who don't want apps2sd but want to run scripts, or for those who have apps2sd but don't have run-parts starting it. Read the description of the option.
[Android] frontay:
I would just like to say thanks for all the hard work and the detailed faq. It was easy to setup, I'm so excited. You are awesome

Sent from your girlfriend's Motorola Razor
[Android] rs125:
And you can not do anything?

If I cook as Desire for HD?
[Android] dsixda:
Are you talking about porting a Desire ROM to the HD? I don't understand your question.
[Android] Noonski:
Same here.
[Android] rs125:
No excuse me, I explained bad ...

I want to cook a ROM for my Desire HD and think about your kitchen as I cooked for HTC Buzz:)

So, how do I desire to cook for hd? Not speak English ... so sorry for my errors
[Android] dsixda:
Because the kitchen is unable to extract the hd's system.img, you'll need to find out how to obtain the extracted files. There is information in the FAQ and also in this thread, you'll need to search because it has been asked many times.
[Android] indagroove:
WinImage works.
[Android] dsixda:
Thanks for that, can the files be seen with any Windows software that can mount file systems/ISOs/etc.?
[Android] StenaviN:
Greate!

Everything works fine, but I have a question about installing some application, which requires libs to work. For example, Connectbot.

If I install app from the market, it puts some library under /data/data/org.connectbot/lib/

However, if I just put connectbot.apk to /data/app/ folder, cook and flash my ROM, required libs from apk don't appear under /data/data/org.connectbot/lib/. Therefore Connectbot doesn't work.

So, is there some solution to make such apps (Connectbot, Skype, Google Goddles etc.) to work after they are installed using the Kitchen?
[Android] sohilm:
grdlock.net is down. Can someone setup a mirror so that I can download it?

Thank you

Sohil M.
[Android] :
Hey, It appears that the download link is broken? or is it just me?
[Android] sohilm:
Nope, its down :(
[Android] :
Not cool at all. Anyone have a mirror?
[Android] sohilm:
I posted earlier asking for one, no one has answered so far.
[Android] dsixda:
Relax, nobody is ignoring you, nor do I check this thread 24 hours a day. You realize it's Saturday night in Canada/USA? Most likely people are either enjoying their weekend or spending time with their family, not holed up in their mother's basement fiddling around with a phone. ;-)

Here's a mirror:

http://www.mediafire.com/?6barzj7l0d5ybjh
[Android] hiphopassassins:
I need your help...

i've been trying this for days now using visual box with the ubuntu. i've followed the video but when it gets to the point where i use the terminal

sudo apt-get install sun-java6-bin sun-java6-jre

it say

Reading Packages lists.....Done

Building dependency tree

Reading state information....Done

E: Could'nt find package sun-java6-bin

I'VE search all over for this and no solution

( i'm on windows 7 )

can some one help
[Android] McSpee:
Hello,

when the rom is created, is it possible to test directly under the android emulator?

if so how do you do?

Thank you for your help :D
[Android] DearTanker:
So,You means,if i add apps2sd, there is no need to run "Add /etc/init.d scripts support (busybox run-parts)" this option?
[Android] dsixda:
Just follow the instructions in the FAQ, the video may have old instructions for installing Java.
[Android] dsixda:
You can add it if you want. If you're not sure then just use the default settings in the prompts when asked.
[Android] dsixda:
I was trying too do this once but couldn't figure out how to do it for a specific device.
[Android] lovethyEVO:
Hello dsixda,

I have been using your kitchen for a while (I can successfully build roms that I start).

Recently I have been trying to incorporate the init.d ability without a2sd. I noticed that with a2sd enabled all scripts in init.d work in the rom.

If I choose to enable run-parts without a2sd no init.d directory is created and if I manually create the directory scripts are not executing after the rom is installed. I verified this by using a simple script that writes a file called Hello to the system directory during boot. This file is never created if I enable run-parts without a2sd but it is present with run-parts/a2sd option.

Do you have any ideas as to why this is occuring?

I first thought it might be the rom because I am basically cooking another rom that is already rooted and has busybox installed and is odexed. I am cooking the rom to deodex it and to add some scripts/features/apps/etc. to my liking.

With the precooked rom that has busybox preinstalled, if I enable a2sd the scripts work if I don't enable a2sd the scripts don't run so I know for a fact the preinstalled bbox is not the culprit.

Thanks for any help you can provide on this.
[Android] dsixda:
hmm.. Can you make sure in your init.rc that the runparts command is actually present (you don't need to flash, just extract the boot.img)? If yes, is there any mention of it in in the logcat output?
[Android] lovethyEVO:
I will check this tonight when I make another build attempt.
[Android] lovethyEVO:
I found the problem but I am not sure how to correct it. Hopefully you can steer me in the right direction dsixda.

Enabling busybox run-parts without a2sd:

init.rc correctly edited by kitchen (adds line to start init.d as a service)

updater script correctly edited by kitchen (line is added to set permissions for folder init.d)

The problem lies in the permissions for the scripts. Because the init.d directory is not created without enabling a2sd, when I manually create the directory to include my scripts the permissions on the scripts are not properly set by the kitchen when the rom is built.

I'm thinking this can be accomplished via the updater script to set the permissions for all files in the init.d folder but I have no idea how to do this.

Thanks for any solutions.
[Android] dsixda:
I thought my kitchen automatically adds the script that sets the permissions to the init.d folder.

If you build the rom with an update-script, then this script file is added. I suggest you do this first before converting to an updater-script. Check near the end of the fix_pre_build file for details on what it does for the init.d folder.
[Android] lovethyEVO:
It does set the permission for the init.d folder correctly.

After the rom is completely installed, root explorer shows the script files inside of the init.d folder with different permissions.

The script files inside the folder is where the problem lies. The files, for whatever reason, don't have the right permissions but the folder does.

That's what I am experiencing. I have even tried deleting the updater script and have the kitchen build it as the rom is edited and it still gives the same results. I am still trying to troubleshoot it myself but that is my issues at the moment.

Thanks for the responses so far.
[Android] dsixda:
Can you post your update-script or updater-script here? Just use the CODE tags. It's supposed to do a set_perm_recursive on the init.d folder, which would've set the files inside it.
[Android] dsixda:
Point taken. I can definitely add a check in the update-script verification routine. I will also fix the ordering of the init.d permissions. Thanks for your feedback :)
[Android] lovethyEVO:
No problem. Great kitchen after all and to help make it better is worth the time.

Now I just need to figure out why some apps in the data/app folder force close and others don't. Weird.
[Android] dsixda:
Might be a signing issue with your /data/app apps?

Anyways, Kitchen version 0.108 is now up. Enjoy ....
[Android] Reza WM:
how can i removed hboot update from orginal roms!?
[Android] DearTanker:
dsixda,i really hope you to see those thread

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

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

(I insist!!!!! )

This is a new solution for low phone storage,better than apps2sd.

I hope this option can add to you kichen as fast as you can.

Thank you so much,and hope you have a good day.;)
[Android] NilsP:
Could also be that the apk has a lib in it. Open the apk and see if it has a lib folder and if it does extract a copy of the .so file into the /system/lib/ folder and leave the original in the apk.
[Android] VolcanicSkunk:
I have been trying for several days now to compile a ROM for my myTouch 4G. I keep getting the error

Failure at line 80: write_raw_image PACKAGE:boot.img BOOT : Installation aborted.

I have no idea what I could be missing. I have tried unpacking the boot.img and replacing the boot.img-kernel with a new zimage. Right now I'm about to try to convert the update-script to updater-script to see if that does anything for me. Any help at all would be appreciated! I know it's a new phone and that support for it is asking a lot, but any ideas anyone has I will try! Thanks so much!
[Android] jbrew78:
I've been have this same problem for weeks... Also, there are some files I can't get the kitchen to deodex.