yashsingh1/xdaforums huggingface dataset:
[Android] theintelligent:
Well I have tried this approach and I must say it works flawlessly, but there is a small problem. There is a script called 02cache which do not run. It gives me the following error.

I//system/xbin/sysinit( 62): run-parts: can't execute '/data/local/init.d/02cache': No such file or directory

I have checked the permissions and they seems to be fine. I have also tried changing the sequence but with same error.

I//system/xbin/sysinit( 62): run-parts: can't execute '/data/local/init.d/03cache': No such file or directory

Any clues?
[Android] firestrife23:
sweet, thx checking it out now.
[Android] BlaY0:
Hmm, how did you make that check? Via adb shell? Did you try to run that script manually?

Are you sure it's not a link pointing to some nonexistent location (relative link). Maybe the cell (containing that script) on nand chip has worn out? Try to cat contents of that script and paste it here. I have no other idea for now...
[Android] theintelligent:
Well I tried running the script manually, and it gave me errors. Below are the content of the script.

#!/system/bin/sh

# quick and dirty (how I like 'em) dalvik cache to /cache script

PATH=/system/bin:/system/xbin

rm /data/dalvik-cache

mkdir /data/dalvik-cache

mkdir /cache/dalvik-cache

cd /cache/dalvik-cache

for filename in data*

do

if [ ! -L $filename ]

then

mv $filename /data/dalvik-cache/$filename

fi

done;

for filename in system*

do

if [ ! -L $filename ]

then

ln -s /cache/dalvik-cache/$filename /data/dalvik-cac

he/$filename

fi

done;

cd /data/dalvik-cache

for filename in system@framework*

do

if [ ! -L $filename ]

then

mv $filename /cache/dalvik-cache/$filename

ln -s /cache/dalvik-cache/$filename /data/dalvik-cac

he/$filename

fi

done;
[Android] BlaY0:
Haha, first of all... you shouldn't manually run script that moves dalvik-cache while system is already running.

Second... you haven't told me where exactly did script exit!

Third... this approach for moving dalvik is all wrong and it leaves stale links etc. Why won't you do it directly in init.rc by making /cache/dalvik-cache directory, and linking it back to /data/dalvik-cache? It is static but also clean and simple.

Find dalvik-cache section in init.rc and replace it with:

# create dalvik-cache and double-check the perms
mkdir /cache/dalvik-cache 0775 system system
chown system system /cache/dalvik-cache
chmod 0775 /cache/dalvik-cache
symlink /cache/dalvik-cache /data/dalvik-cache

...make new boot.img and flash it over. While still in recovery mode do adb shell and remove /data/dalvik-cache and /cache/dalvik-cache.

I'm using this approach and it is working for me. You just have to watch not to fill up your cache partition with dalvik-cache files!
[Android] theintelligent:
Well I have tried the approach, you have suggested but it had a strange behavior. The Htc lock screen was replaced by the stock lock screen and Htc Sense launcher didn't launch.

Right now I have reverted back to the previous one but removed the 02cache script from the init.d folder.

Any suggestions?
[Android] BlaY0:
Hmm, dunno.

It should work... plain and simple. Let's review the steps.

remove cache script from init.d

prepare your new boot.img with tweaked init.rc and put it on sdcard

boot into recovery mode and connect your phone to PC via USB

flash boot.img from sdcard

fire up adb shell

remove /data/dalvik-cache and /cache/dalvik-cache

sync and exit shell

execute adb reboot or reboot via phone

After reboot new init.rc kicks in and makes /cache/dalvik-cache directory and place dalvik-cache symbolic link into /data that points back to /cache/dalvik-cache. After that /cache/dalvik-cache is populated with dex files (it will take some time).
[Android] settlethestorm:
Type chmod +x menu

Then run ./menu again

I hope that helps. I had the same problem and it worked after that

Sent from my Eris
[Android] dsixda:
I'm not sure why people still refuse to read the FAQ instructions regarding the chmod thing. It's clearly spelled out in the FAQ :(

On the first page, directly below the download link, it says to READ THE FAQ if you have questions. The least you can do is search the thread.
[Android] aamikam:
linux is kinda annoying and complicated compared to windows... i think a lot of people are not used to doing more than than just a simple install or unzip.

thats why personally i hate linux... its a programmer paradise but a simple user hell.
[Android] dsixda:
This is no necessarily a Linux problem, it's a reading comprehension thing. ;) :rolleyes: The majority of applications (ROMs, etc.) on xda-developers involve more than just a simple install and unzip. You have to read stickies and do a lot of searching to get what you want. I created the kitchen ironically to alleviate the problem of searching around to find all the info to create a ROM.

If a person is able to get through the instructions and install Linux, then figuring out why the permissions don't work is a trivial task in comparison. Funny thing is, in the instructions where I say to "run ./menu to launch the kitchen", I also follow it up with "if you have problems with permissions, then do a chmod +x"....

Anyways, enough of my ranting ;)

If I had zipped up the kitchen in Ubuntu instead of in Cygwin then we wouldn't have the permissions question... but it is too much trouble for me to do it everytime, or in places where I don't have Ubuntu installed. The thing is, the problem is answered 2 or 3 times in the FAQ yet it gets asked every 2nd page of this thread ;)

There is also the Cygwin option if Linux is a hassle. Much easier to install and use in Windows..
[Android] :
Why don't any of my ports work?
[Android] dsixda:
Again, you'll need to be more specific when you say "don't work". What doesn't work?

The porting option is more experimental than a sure thing.. it also requires the user to know what needs to be done to do a successful port. There are topics about this in this subforum.
[Android] BlaY0:
Then why the hell are you using phone that is based on Linux??? You should buy Windows Mobile phone where you can build a ROM and make a coffee with one click on exe file.

Android powah!
[Android] TheAshMan:
Cheers, did another clean install of kitchen, added new files and it works perfect.

Now I can finally try cooking up my own custom ROM!
[Android] madsborelli:
If I were you, I'd call the 0.10 version 1.0.

0.10 < 0.9 (in math).

Just a suggestion.
[Android] kendong2:
well, this is versioning, not math... 0.10 is not zero point one zero, but zero point ten, which is larger than zero point nine.

a version 1.0 would indicate a stable, fully tested, fully featured version, which this isn't (with all due respect, it is great work, but work is still ongoing).
[Android] dsixda:
Yeah I was aware of the numbering, should have started at 0.01 to avoid the confusion ;)

We don't have a fully working version for Mac or Cygwin yet, so no 1.0 at this point. But it IS like a 1.0 in the eyes of Linux ;)
[Android] dsixda:
Thanks guys, I fixed the script and also updated the first post with the Mac instructions!
[Android] cTnko:
how about the mobile network disabler during 1st setup that i mentioned any ideas dsixda?
[Android] dsixda:
I thought all the APNs were already cleared in some of the apns-conf.xml files.

You can try to clear all the apns in /system/etc/apns-conf.xml of the shipped ROM that you are cooking.
[Android] cTnko:
so just to be clear, i have to replace this

<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2008 The Android Open Source Project

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->

<!-- This file contains fake APNs that are necessary for the emulator
to talk to the network. It should only be installed for SDK builds.

This file is not installed by the local Android.mk, it's installed using
a PRODUCT_COPY_FILES line in the sdk section of the toplevel Makefile.
-->

<!-- use empty string to specify no proxy or port -->
<!-- This version must agree with that in apps/common/res/apns.xml -->
<apns version="6">
<apn carrier="Android"
mcc="310"
mnc="995"
apn="internet"
user="*"
server="*"
password="*"
mmsc="null"
/>
<apn carrier="TelKila"
mcc="310"
mnc="260"
apn="internet"
user="*"
server="*"
password="*"
mmsc="null"
/>
</apns>

with this

<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2008 The Android Open Source Project

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->

<!-- This file contains fake APNs that are necessary for the emulator
to talk to the network. It should only be installed for SDK builds.

This file is not installed by the local Android.mk, it's installed using
a PRODUCT_COPY_FILES line in the sdk section of the toplevel Makefile.
-->

<!-- use empty string to specify no proxy or port -->
<!-- This version must agree with that in apps/common/res/apns.xml -->
<apns version="6">
</apns>

and on first setup phone will be with mobile network disabled ?
[Android] dsixda:
I have no idea man, why don't you just take out your sim.
[Android] dsixda:
Hi Idflood, can you do me a small favour and edit this post of yours below, to remove the attachment, because I have already added them to the kitchen. I have linked your instructions for the file system, but I don't want to confuse users into thinking they need to add those binaries in the attachment. Thanks!
[Android] TheAshMan:
I tried using a stock ROM and adding root permissions to it, this is what I get:

The check at the point is obviously giving wrong results, I'm using Snow Leopard (10.6.2) so it should be trying to use .mac.new files.

I tried investigating this and found that

sw_vers | grep -o 10.5

returns:

10C5

Which is part of my OSX build version included in the results of sw_vers:

This is because by default the . is a wildcard which matches any single character in grep. Using

"10\.6" (with the quotes) fixes the problem by escaping the period.
[Android] dsixda:
Argggh... thanks for the tip. I had a chance to try my grep command on an OS X 10.6 machine yesterday at the Apple store ;) but had no problem (or maybe my build # was different). I guess different people have different results. I will fix this soon in the next update.
[Android] mr.bang:
great kitchen dsixda! now i try it completely
[Android] dsixda:
Just added another update to the kitchen. Now you can enter your own custom values for the task killer. If you just press Enter it will use the default values, which were used in previous versions of this kitchen.
[Android] TheAshMan:
Sounds really good, I added a script which can create a backup of your working folder.

It allows optional prefix of your choice which can be used for tagging for example: "Prior to a2sd" so that it easier to revert back to an older version when needed.

Still working on my custom ROM - to be honest I can't get a2sd to autoload on startup.

Most of my other tweaks seem to work fine, it's really bizarre!
[Android] dsixda:
Is the 'patch' command working on your machine?
[Android] TheAshMan:
Yup, when I select the apps2sd option it says its all applied - no errors. If I run it again it even tells me that it's made the changes already and if I want to proceed again.

Whenever I cook and flash the ROM though no apps are actually loaded from the SD Card - even though it's got over 100 on it!
[Android] mr.bang:
dsixda i need talk to u.

have u got gtalk?

sorry for OT

so.. i have bug while adding a2sd ! mkboot* aren't compile for mac!

M
[Android] dsixda:
What's your OS?
[Android] dsixda:
I think it worked for someone else. Did you make any manual changes to any files?
[Android] settlethestorm:
Haha I was thinking the same thing. I may be new to Linux (well besides my Eris lol) but it seems like a great option for learning how to program and develop.

@dsixda, I got it all working, deodexed my Rom, zipalligned it, then exported it. It says it signed the Rom, but when I try to flash in recover its gives me error cannot flash E:"nameofthefile".zip (bad). I'm gunna start searching for answers but thought you may know what the problem is off the bat. BTW this kitchen is AWESOME. I'm still having my noob troubles lol, but this is truly great work. Thank you for spending the time creating it, and helping all of the ppl like me that really wanna start developing, but need an easy starting point. Much appreciation :)

Sent from my Eris
[Android] dsixda:
Again, the answer is in the FAQ, someone else asked the same question a day or two ago.

P.S. Thank you for the comments
[Android] BesFen:
LOL......:D :D :D, WM is diying now.
[Android] settlethestorm:
I checked that out earlier, but I already have amon. I think that having clockwork on my Eris messed it up. I'm gunna use a post on how to safely flash amon from clockwork again and give it another shot. Thank you for all the help

Sent from my Eris
[Android] settlethestorm:
Well, I properly flashed AR on my phone, same error message. So I decided to try it out on my bros Eris that's only had amon since root.. same error message. Any other insight as to what may be going wrong?

Sent from my Eris
[Android] dsixda:
If you are having a device-specific issue then ask in your device's Development forum in XDA. I cannot offer any advice - other than the FAQ - since I only write scripts and am not an expert.
[Android] settlethestorm:
Sounds good man, thank you.

Edit- it may be my partitioned SD card. I'm gunna try to wipe to fat32 with no partitions to see if it works. If it does maybe you can add that to the FAQ.

Sent from my Eris
[Android] dsixda:
Added update 0.87 :-)

This update should help those using non-HTC devices.. Please see Release Notes in Post #2 for details.
[Android] Deedend:
No hope to see in the next future a Galaxy S compatible kitchen?
[Android] dsixda:
I don't have a Galaxy S, what needs to be done?
[Android] settlethestorm:
Well that's a no go. Looks like I wiped and formatted the SD for nothing lol. Im still gunna try to figure this out, cause its strange that Im using two Eris to try this Rom and neither work. I'll download the update, but I don't think it'll help my problem much, but anything is worth a try! Btw dsixda, Rom manager gave me an error log when trying to flash through clockwork (i figured if amon wasn't working, maybe try that). If I posted it do you think you could spot the problem?

Sent from my Eris
[Android] dsixda:
No I never use ROM manager, and my guess will be as good as anyone else's cos I only write scripts and am not an expert. ;) If you know how to do a logcat, then it's not difficult for you to locate the problem based on the errors that are in the output.
[Android] settlethestorm:
I saw how to set that up in the FAQ, ill do it in a little while and hopefully figure this out once and for all! ;) thanks again for all the help.

Sent from my Eris
[Android] settlethestorm:
This is gunna sound wicked noob, but i did the logcat, but the problem doesn't happen when I'm booted up fully, and it doesn't seem like the logcat registers anything I do on my recovery.. :confused:

Sent from my Eris
[Android] dsixda:
I don't get it, so you don't have a problem??
[Android] settlethestorm:
No, I'm still getting the same error, but your directions for logcat say that you should turn the phone off, type the command, plug the phone in, and boot back up. Then you said when the phone runs into the error again to check the logcat, but my error only happens in recovery and it doesn't seem like the logcat is outputing anything when I'm in recovery. Would the first logcat I got from booting the phone back up already have the error in it?

Sent from my Eris
[Android] RyanLee:
I have a question about swapping files that are included in the kitchen but are also in my original_update file.

In particular, I want to use the Superuser update in the .87 kitchen. However, the Superuser.apk (with the Ninja) and the su file are both in my original file so when I do "Show info", I already have root permissions. How can I replace the files, properly, once I've designated my working folder?

Would I better to remove them from the original_update file first?

Oh, it's HTC-OTA-3.26.651.6-Final-Froyo-Rooted-Odexed-netarchy-signed.zip

Everything else works perfectly for me. I sing your praises in every other forum I visit.

Thanks!

EDIT: Nevermind I figured it out, for BusyBox too.
[Android] Fenopy:
So I had the kitchen working fine, rebooted my computer and now it is broken.

I have no idea what happened.

When I send ./menu I get the following:

Check gcc
---------------------
3.4.4

Check java
---------------------
scripts/check_binaries: line 19: java: command not found

Error: The application 'java' is not installed. The kitchen
will not function properly without it. Refer to the

Check gcc
---------------------
3.4.4

Check java
---------------------
scripts/check_binaries: line 19: java: command not found

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'.

Ignore and proceed anyway? (y/n)? (default: n):

I tried adding

PATH=/cygdrive/c/Program\ Files\ \(x86\)/Java/jdk1.6.0_20/bin:${PATH}

to my .bash_profile file, which doesn't seem to do anything. :(

I have uninstalled Cygwin and Java JDK.

Reinstalled the JDK, then reinstalled Cygwin multiple times to no avail.

Any Suggestions?

EDIT:

OS: Windows 7 64-Bit
[Android] preludedrew:
I'm in the same boat as you. I add the correct line to the bottom, but then comes up with errors. In the mean time I use this to at least work until i can figure out what im doing wrong.

at the cygwin prompt type

export PATH=/cygdrive/c/Program\ Files\ \(x86\)/Java/jdk1.6.0_20/bin:${PATH}

Just make sure that the version for the folder is correct (mine is 1.6.0_21, thats why i say that). And also, you're on 64 bit windows 7, did you install the 64 bit version of the jdk? If so then you'll need to remove the (x86) out. The only problem is, you'll have to run that line every time you want to open the kitchen...like i said a temporary fix.
[Android] dsixda:
Can you be more specific, about where it complains about the 'Syntax error'?

Ok, here is a 'common sense' question: ;)

Why is the 'set_perm_recursive' line for SYSTEM: (in bold) coming after those two lines you added? If you do that then it will undo whatever you had in the first two lines.

By the way, I have updated those kernel instructions, so maybe that will help you.
[Android] :
Does this work with the latest ubuntu or just the ine mentioned in the op....i already have this working on windows/cygwin, but i am trying to migrate all my dev work to ubuntu (im dual booting)
[Android] dsixda:
Yes, as long as you can get java installed successfully.
[Android] :
Thx...what about fedora?
[Android] settlethestorm:
In the FAQ he said that it was made for Ubuntu, and that It may work on other Linux OS's but they haven't been tested
[Android] :
I guess it doesnt matter if it uns on fedora, as i am devving on win7 and ububtu
[Android] dsixda:
Search the thread please - someone said he had success
[Android] Fenopy:
Worked perfectly! Thank You!

I guess I will just have to do that! At least it is working tho! haha.
[Android] dsixda:
Yeah, those were the old .bash_profile instructions I put up for setting up Cygwin (you put that line at the end of .bash_profile so that it gets set automatically on startup). They are no longer required if you had installed Java before you install Cygwin.

How did you get to that error state?
[Android] -Mr. X-:
Very nice kitchen, thanks for the work on it.
[Android] infido:
Hi ,if try to flash in my desire a cooked rom based on official rom.zip 2.2 make with this kitchen i have this error:

deleting file...

deleting file...

deleting file...

E:Can't find check_data_appncopy_dir

E:Failure at line 36

Can you helpme?

thanks
[Android] preludedrew:
Post your update-script. It looks like the script is missing a return after the

run_program PACKAGE:check_data_app.
[Android] -Mr. X-:
any one else having issues with the a2sd cache moving back to device?
[Android] dsixda:
Are you using Ubuntu / Cygwin or Mac? Please reply, thanks
[Android] dsixda:
His operating system somehow misinterpreted the character "\n" (carriage return) as just "n".
[Android] infido:
Snow Leopard,dmg with case sensitive file system
[Android] dsixda:
Looks like a problem Mac OS X has with the 'sed' command

http://discussions.apple.com/thread...BB74AFB04E.node0?messageID=11613425&#11613425

I will look into it later. Damn, it will take some time to take care of EVERY instance in the scripts :(

I wish someone would have reported this months ago ;)

EDIT: from reading the comments in the following URL, a workaround for Macs is to install the Fink version of sed:

http://muzso.hu/2008/08/24/sed-in-darwin-leopard-is-crippled-in-many-ways

OR THIS: http://rudix.org/packages-rst.html#sed

Anyone want to try?
[Android] dsixda:
Question for you Mac OS X users using 10.5 or lower: do you guys still need to install SoyLatte for Java to work properly? A few weeks ago I changed the requirements so that both Java 5 and Java 6 are allowed (it used to be just Java 6)....

Thanks
[Android] BlaY0:
Maybe it's time to rewrite your scripts to better suit all systems. The approach would be to detect or manually set on which system scripts are being used and then use preloaded system dependent functions in all scripts. There are too many exceptions in current set of scripts. Just a suggestion.
[Android] dsixda:
What are the exceptions other than sed? I think I already make as many platform-specific checks as possible in the scripts.
[Android] Evo_Ace:
I need help with my kitchen in linux

Alright I have post several times else where regarding this issue and nobody wants or can help me with an answer.

I am trying to start how to create,modify roms with Kitchen Version 0.87 in my Linux not in Virtual Box Though I've tried both still dont work.

Ok first I have done everything accordingly including Installing Java in the Terminal to Run Kitchen.

Here are my Errors Reports;

Note: (This Happens On any Rom I put in my Update Folder)

Make sure the ROM is under the original_update folder. The format

may be one of the following:

– A ZIP file for a cooked ROM (e.g. update.zip)

– A ZIP file containing *.img (e.g. rom.zip from shipped ROM)

– boot.img + system.img (e.g. from shipped ROM or Nandroid)

Press Enter to continue

[: 75: 0: unexpected operator

[: 34: DamageControl-3.5-final.zip: unexpected operator

scripts/choose_rom: 73: file_array[1]=DamageControl-3.5-final.zip: not found

[: 73: DamageControl-3.5-final.zip: unexpected operator

Available ROMs:

(1) DamageControl-3.5-final.zip

Enter file number (0 = cancel)[/COLOR]:
[Android] BlaY0:
Yes, but right now you have to edit several scripts that use sed and in my approach you would just add/edit system specific function in one "functions" script.

Android powah!
[Android] dsixda:
Take the dashes out of the file name??
[Android] dsixda:
Ok I see what you mean now, and it makes sense... but it's too late to change 60 files by hand :D. A search and replace script could work, where sed becomes perl in certain cases..