yashsingh1/xdaforums huggingface dataset:
[Android] dsixda:
This question has been asked 10 times already, literally. Please read the FAQ. Thank you
[Android] cTnko:
dsixda are you on twitter ?
[Android] aniceone:
Thanks for the fast reply. It worked, almost.

Ensure you have your new system.img and boot.img under the
img_files folder.

Any existing working folders under the main folder will be
automatically backed up under folder OLD_WORKING.

Press Enter when you are ready

Found img_files/system.img
Found img_files/boot.img

Building working folder WORKING_021910_131315 ...

Copying update-script ...

Copying boot.img ...

Extracting contents of system.img ...
scripts/make_kitchen: line 109: ../../tools/unyaffs: The file or directory does not exist

Deleting symbolic links (don't worry if files are missing) ...
# CUT OUT
# Due to massive listing of directories

Listing of WORKING_021910_131315:
totalt 1760
-rw-r--r-- 1 danne danne 1794048 2010-02-19 13:13 boot.img
drwxr-xr-x 3 danne danne 4096 2010-02-19 13:13 META-INF
drwxr-xr-x 2 danne danne 4096 2010-02-19 13:13 system

Done setting up kitchen!

Press Enter to continue

It's unable to run "unyaffs", verified that the file is executable and that it exists. Contents of kitchen/tools/

danne@ubuntu:~/hero/kitchen/tools$ ls -l
totalt 4276
-rw-r--r-- 1 danne danne 1868920 2009-11-30 18:46 busybox
-rw-r--r-- 1 danne danne 125894 2010-02-18 00:02 com.keramidas.TitaniumBackup.apk
-rw-r--r-- 1 danne danne 1730369 2010-02-10 02:20 com.metago.astro.apk
-rw-r--r-- 1 danne danne 461847 2010-02-11 22:07 com.wsandroid.apk
-rwxr-xr-x 1 danne danne 1053 2010-02-15 06:00 deleteextras
-rwxr-xr-x 1 danne danne 744 2009-05-01 00:28 extract-kernel.pl
-rwxr-xr-x 1 danne danne 1248 2009-05-01 00:28 extract-ramdisk.pl
-rw-r--r-- 1 danne danne 1689 2010-02-18 19:25 init.rc.patch
-rwxr-xr-x 1 danne danne 24302 2009-09-20 07:05 mkbootfs
-rwxr-xr-x 1 danne danne 23798 2009-09-20 07:05 mkbootimg
-rw-r--r-- 1 danne danne 53 2010-02-16 03:49 mns_map.xml
-rw-r--r-- 1 danne danne 34612 2010-01-22 18:11 su
-rw-r--r-- 1 danne danne 16967 2010-01-22 18:11 Superuser.apk
-rw-r--r-- 1 danne danne 13480 2009-01-01 10:37 testsign.jar
-rwxr-xr-x 1 danne danne 10179 2010-02-07 07:47 unyaffs
-rwxr-xr-x 1 danne danne 2827 2010-02-17 06:24 unyaffs.c
-rwxr-xr-x 1 danne danne 3729 2010-02-17 06:24 unyaffs.h
-rw-r--r-- 1 danne danne 2398 2010-02-18 06:41 update-script
-rw-r--r-- 1 danne danne 13299 2010-02-18 06:42 update-script-busybox

Regards /D
[Android] dsixda:
Really? I'm using 0.9 and it works fine right now.

Are you using Ubuntu? Make sure you deleted all the files from the previous kitchen version, before using the files from the new one.
[Android] dsixda:
Thanks! Is this a recompiled version of testsign.jar? We could add this to the kitchen if you'd like.
[Android] mr.bang:
yes! it is recompiled! now it just run on Win, Linux, Mac (bsd)!!

can u add the script into the kitchen?
[Android] TheAshMan:
Will this not work on 10.6 then?

I've only got Snow Leopard...
[Android] mr.bang:
yes it work with mac java jdk! u do not need Soylatte!

soylatte is required only on mac 10.3 10.4 10.5
[Android] TheAshMan:
Awesome, I've still not had a chance to try it. Hopefully after work tonight...
[Android] dsixda:
Interesting, is it confirmed to work on Linux now?

Can someone try flashing a Rom with this version of testsign.jar with Linux?
[Android] mr.bang:
i can't now! sorry!

but i think it's ok because i do not modified the source code!

waitin for test!
[Android] dsixda:
Oh, so you mean the testsign.jar uses same source code, but only re-compiled in Mac?

What if we put the testsign.jar in the AndroidSDK folder, is that allowed, or does it have to be in the same folder as the script?

What about users of the 10.6? They can use the old version of testsign.jar?

Thanks
[Android] dsixda:
I just have a private twitter account, which I use mainly to check news stories, I don't really use it for xda stuff.
[Android] mr.bang:
there isn't old or new version! i only debug testsign.jar and i discovered that it need recently jdk to be runned!

the script require testsign.jar in the same folder.. but if you want u can just modify the script!

MAC OSX 10.6 users can run testsign.jar normally! because 10.6 have recently jdk by apple!
[Android] cTnko:
damn! :)

i am wondering, you know that after a wipe and flash of the new rom, phone usually starts with mobile connection ON (and so starts transfer of data), can we somehow force this OFF ?

(i only asking because there are some providers that would charge you pretty nice for transfer of 15kb...)
[Android] mr.bang:
u have to edit the apns-config.xml file!
[Android] idflood:
Yeah! I can finally cook on osx 10.6 :)

The problem was with the file system not beeing case sensitive. I think this step is needed for most osx user. To resolve this you can simply created a .dmg with the disk utility application. Open "/Applications/Utilities/Disk Utility" and click on the "New Image" button. Set the size to at least 500MB (minimal, not sure it will work, I would recommend 1go) or more and for the format choose "Mac OS Extended (Case-sensitive, Journaled)". Now open the newly created .dmg and put the Kitchen in it.
[Android] mr.bang:
BUG_REPORT

version: 0.9

type: bad compression update.zip

desc: using build_rom result 340 MB, using manual right click compress result 80 MB

OS: Mac OSX 10.5.2

info: manual WORK_DIRECTORY directory listing, no bad file, no unknow file.

anyone check the same problem?
[Android] TheAshMan:
Hey man, which file did you need to delete?

I'm trying out the kitchen on OSX 10.6 but my signed_021910_184330.zip file comes out just over 400MB.

My working folder is only 140MB (I used the image files from a stock ROM for testing).

EDIT: Just noticed your previous post (probably whilst I was typing this one).

Can confirm the bug you've reported!
[Android] mr.bang:
with terminal i listed work_directory with "ls -a"

so i deleted all hide unknow files, they were in META-INF

but now i have the same problem!

working directory 140 MB, update.zip by kitchen 300MB, update.zip by right-click 80 MB
[Android] dsixda:
Maybe the "zip" command requires a different parameter for Mac. Are you able to find out what type of 'zip' command the right-click option uses for compressing the files?
[Android] dsixda:
The FAQ

....
[Android] TMartin:
I honestly haven't had any problems signing Google apps with our kitchen.
[Android] dsixda:
No I mean, you have to know which apps to sign, rather than signing all of framework, etc. Anyways this is not my area so I cannot comment too much on it.
[Android] dsixda:
Yeah my script already deletes symbolic links found in a system.img or nandroid backup - including busybox - and puts them into the update-script.
[Android] BlaY0:
What I was talking about were hard links not symbolic. Yaffs itself supports hard linking but FAT32/NTFS and zip archive don't. So when you unyaffs image with hard links to FAT32/NTFS partition, you get bunch of big fat files. If you unyaffs to let say EXT2/3/4 or any decent partition that supports hard linking it's OK but as soon as you make an update zip archive you get the same efect as on FAT32/NTFS.
[Android] BlaY0:
Besides you have different busybox executables (one can compile own variant) and your script doesn't count on that... it just deletes all the symlinks and replace them with static predefined update-script ones.

Maybe, just maybe it would be wiser if you leave that linking part out of update-script and put in the run command that would run "busybox --install -s /system/xbin".
[Android] OMJ:
nice, thanks! this fixed my error too.....though the error had no affect on my cooking, it was just annoying me :)
[Android] fr4nk1yn:
Sorry, Should've looked for the FAQs. chmod -R 777 <directory> of course "fixed" my permission issues.

I still have much Linux to learn.
[Android] dsixda:
How do I do that? EDIT: Ah, nevermind, I see some scripts on the internet that show how to install it.. hmm..

I don't recommend creating a ROM with Nandroid backups, it's not going to work 100% anyway, because of the guessing that's involved to create the update-script from scratch. I just have it in the kitchen as a fall-back in case someone really needs to do it.
[Android] dsixda:
I'm having a hell of a time trying to get my new implementation of busybox working.

I have a script called "installbusybox" which is launched by my update-script, and contains this:

#!/system/bin/sh
busybox --install -s /system/xbin

It installs all the busybox references fine under /system/xbin, but Titanium Backup doesn't see it.. :confused:
[Android] Alex-V:
First i must say big big thanks for this great kitchen....works very good with my HTC Desire...also in windows with the virtual machine... :)

Only one question:

How can i add app2sd+ ...with dalvik cache...instead of app2sd..?

with kind regards...Alex
[Android] BlaY0:
Maybe it runs over your /xbin/su... remember, busybox has its own su. Try running that command first, then remove /xbin/su and replace it with the right one.

Android powah!
[Android] nerdo:
Search this thread for Darktremor, scattered posts but will give you a fair idea

about to do to move dalvik cache to sd card.... good luck!
[Android] dsixda:
Ok.. I figured it out.. I had to put "chmod 755 /system/xbin/busybox" before the install command. LOL what a joke..
[Android] BlaY0:
What do you mean? You had to change permissions from 4755 to 755? Or did you have a wrong order of commands in update-script?

Android powah!
[Android] dsixda:
No, there were no permissions to start off with ;) So I had to set them in the script (or you could even do that in the update-script instead with 'set_perm'). Wasted a couple of hours for a silly oversight.

#!/system/bin/sh
cd /system/xbin
/system/bin/chmod 755 busybox
./busybox --install -s /system/xbin
[Android] dsixda:
Ok guys, 0.73 is up. Have fun!

Now I will go enjoy my weekend :-)
[Android] Alex-V:
thanks for the tip...works...only one thing..can you explain how i can add the command "a2sd cachesd" to a script before i make the rom....

Sorry i´m a newbe to android rom development...In the past i make roms for windows mobile

big thanks for " new supervisor function "

with kind regards..Alex
[Android] lambrospower:
hey i created a modded rom with modaco custom rom r6 as base but the custom bootanimation option doesn't work and the apps i have in /data/app do not get installed......why is that ????

also i had to sign all the apks for the rom to boot
[Android] dsixda:
Did you use the latest kitchen? Previous versions had issues with data/app and boot animation existing together. Make sure you start from scratch so that the errors from the older kitchen are still not there.

If you are still having problems then please be specific about the issue and post your completed update-script file.

Lastly, if you are using symbolic links and stuff like that for your boot animation (as I notice you mentioned in another thread but not here), then make that clear as well, as I can only assume you are talking about a regular configuration.

Thanks
[Android] h0llyw00dj0e:
doesnt seem to be able to cook for the aria. anyone had any success?
[Android] dsixda:
What do you mean by doesn't cook?
[Android] h0llyw00dj0e:
every rom that i have cooked with the kitchen results in a boot loop.
[Android] dsixda:
What options did you use in the kitchen?

Also when you chose the 'root' option, what did value did it use at the end of the output, where it says it's trying to find the kernel base address?
[Android] andrewwai18:
logcat reports for a2sd

I've setup the v0.73 kitchen with cygwin in Win XP and have created a rom based on the HK_WWE_3.34.721.1 ruu and added root/a2sd. The rom boots and everything is fine except for the following output from logcat:

In the a2sd script is it calling e2fsck as stated. Where is the e2fsck binary located?

Thanks.

Edit: Looked at this a bit more... is e2fsck suppose to be in stock android by default as it is not in the system folder? I can see my ext2 partition with mount and ls -l /data show links so it looks like my ext2 partition is mounted. If so, doing a filesystem check on a mounted filesystem is no really a good idea.
[Android] dsixda:
You didn't mention your device (I don't know what HK_WWE is, could be any device), plus, why are you using ext2 when the menu specifically says you need ext3?

Hmm, I wonder if we need to add e2fsck to ROMs that use a2sd.
[Android] andrewwai18:
Sorry, device is a hero. I will try with ext3. Do I need to compile e2fsck as a2sd use this to do check? Thanks.
[Android] dsixda:
Sorry man, I never use a2sd but relied on testing from others to introduce it in the kitchen.

Try adding e2fsck to system/xbin:

http://www.mediafire.com/?tzwwjyz2t2r

If it is downloaded as e2fsck.txt then rename it without the txt extension.

Thanks!
[Android] andrewwai18:
Cheers. Will give it a try when I get home. Regarding ext2/ext3, I thought that ext2 was sufficient as ext3 is just a journalled ext2. Thanks for the great kitchen BTW.
[Android] dsixda:
Another thing I forgot is that you have to put the following in the update-script after you add e2fsck to /system/xbin:

set_perm 0 0 0777 SYSTEM:xbin/e2fsck

You can put it near all the other set_perm statements in the update-script.

If anyone can try this with the kitchen's apps2sd option, that would be great, thanks!
[Android] dsixda:
Actually, never mind ;) I have uploaded a new version, 0.74, with these changes for the apps2d feature. Please provide feedback, thanks! :-)
[Android] Kanzie:
I'm having problem trying to zipalign my apk files. Whenever I run the zip align step, I get something like the following for every apk file I have:

Zipaligning ./system/app/WidgetDownloadManager.apk ...
scripts/do_zipalign: line 62: ../tools/zipalign_files/zipalign: No such file or directory
Error: Unable to zipalign

I've tried running zipalign manually, and I still get the No such file error.

/media/kitchen$ ls
dsixda_Android_Kitchen_0.74.zip OLD_WORKING scripts
lost+found original_update tools
menu OUTPUT_ZIP WORKING_072710_065240

/media/kitchen$ ll tools/zipalign_files/
total 1912
-rwxr-xr-x 1 me me 86528 2010-04-09 05:30 mgwz.dll
-rwxr-xr-x 1 me me 185581 2010-04-09 05:30 zipalign
-rwxr-xr-x 1 me me 1447375 2010-04-09 05:30 zipalign.exe
-rwxr-xr-x 1 me me 228936 2010-04-09 05:30 zipalign.mac

/media/kitchen$ cat ./tools/zipalign_files/zipalign
(works - I got some binary output)

/media/kitchen$ ./tools/zipalign_files/zipalign
bash: ./tools/zipalign_files/zipalign: No such file or directory

Is it a problem with my Ubuntu (on VBox) installation or does it have anything to do with zipalign itself? I've never had any similar problems on my VM before. I've also ran fsck on that volume (ext4) and it's clean.
[Android] dsixda:
Dude... please use Google for these types of questions, I am not a Linux expert. ;)

http://ubuntuforums.org/showthread.php?t=287346
[Android] mycomputerisjunk:
I use this app on my mac and everything seems work and I don't get any errors in the ROM creation process. However, I do notice that a need to disable signature verification in recovery to be able to install a ROM.

I saw your change log and it seemed that .74 fixed some mac issues, but the ROM still seems to be unsigned. Any ideas?

I use:

10.6.4

Kitchen .74
[Android] andrewwai18:
Updated to v0.74 and restarted from scratch to test your changes. e2fsck is now executable but now logcat reports

I//system/bin/sh( 1631): --- Checking ext filesystems
I//system/bin/sh( 1631): link_image[1721]: 1633 could not load needed library 'libext2fs.so' for 'e2fsck' (load_library[1051]: Library 'libext2fs.so' not found)CANNOT LINK EXECUTABLE
I//system/bin/sh( 1631): +++ Apps-to-SD successfully enabled
I/logwrapper( 1631): /system/bin/sh terminated by exit(0)

Under the android limited version of linux it's no possible to find what library files are required for e2fsck, no ldd. No libext2fs.so in /system/lib.

I will comment out the e2fsck and error code and try, no need to do a filesystem check on every boot.

Thanks
[Android] dsixda:
Arghhh.. Thanks for trying it out. I'll probably just blow it all up and use the DarkTremor method tomorrow. I'll hold my breath and try it on my own Nexus One... As long as I back everything up it should be alright ;-)
[Android] Kanzie:
Sorry about that - I've been searching for it, but I never thought to drop the "zipalign" keyword from my searches... It's now working properly.
[Android] dsixda:
No problem! Did my link help?
[Android] Kanzie:
Yep - exactly what I need. Now, I just need to work out what those symlink issues (was having trouble flashing the rom before, but I wanted to make sure all the tools are working properly before asking for help) are when I get home.
[Android] andrewwai18:
No problems. I'll wait for your update before I try again. Good luck!;)
[Android] dsixda:
I have now implemented the new DarkTremor apps2sd... everything seems to have been set properly, i.e. the init.rc, update-script and all the files. So now I just have to test it.

I have partitioned my SD card and backed up everything, so I can now flash the new ROM with apps2sd. However, I'm going to restore all my files back to my SD first, and that's going to take a while ;-)
[Android] nerdo:
Looking forward to the new addition... been adding Darktremor manually

Question... why haven't you used A2SD on your own device until now?
[Android] dsixda:
I haven't really had a need for it, although lately I've been having a lot of storage issues due to too much cache. I am using Dolphin browser now, which stores cache to SD, so that helps a bit. But Facebook and Twitter doesn't help matters ...
[Android] andrewwai18:
Wow that was fast...was thinking of doing the manual method! Look forward to doing a bit testing with this setup later, thanks again.
[Android] dsixda:
I'm flashing it now :)

After that I'll post results ... if all goes well then I'll upload it, and then go to bed.
[Android] dsixda:
Ok, I need a quick response. ;)

How the heck do I know it has been installed to SD? With ConnectBot I can see that /data/app is pointing to /system/sd/app... But then that folder doesn't point to any folder on the SD card. Sorry if I sound noobish here, it's my first time with apps2sd ;)
[Android] andrewwai18:
In adb shell, "mount" will show if the sd card ext partition is mounted...

With my hero I get ~140MB free with a2sd (it mounted successfully in 0.73.. just the e2fsck issue)
[Android] BesFen:
if you use darktremor, in adb shell type:

a2sd check
[Android] dsixda:
This post seems to confirm it for me:

http://xdaforums.com/showpost.php?p=4626805&postcount=4

I got:

/dev/block/mmcblk0p2 572.0M 82.1M 459.4M 15% /system/sd
[Android] dsixda:
it has "Mounted as EXT2" checked off... but the rest are unchecked..

"Linked to SD Card" is not checked. :confused:
[Android] dsixda:
BTW the available space on my internal storage is 110 MB. After moving Dalvik-Cache to SD card, I get 163 MB free! I think it is working, because without Apps2sd I had about 85MB free...
[Android] BesFen:
I already tried darktremor in my legend, so if I follow the tutorial in darktremor thread, my legend unboot (Maybe desire have same problem with Legend)

So, I did it:, I use your 0.73 Kitchen, enable app2sd from your kitchen and copy this file in my working folder and replace existing file in your kitchen. No need to modify init.rc again.

http://www.4shared.com/file/io5NrKq_/APP2SD.html (this is a RC1 of darktremor)

my ROM boot normally like official without delay.

__________________
[Android] dsixda:
Crap, he has an RC1, but I don't see the link in his signature. I am using 2.7.5 preview 4a.
[Android] BesFen:
Yes, i ever see his post, not in first page, but when i search it again, it gone.:D:D:D
[Android] dsixda:
Your download doesn't have the update-script.

Anyways, I'll upload what I have. Seems to be working fine now :-)

Speed is great, no noticeable difference yet compared to internal storage, which is a good sign.
[Android] BesFen:
Here is the original file: http://www.4shared.com/file/k9eeYOKh/dtapps2sd-275-rc1-preview-sign.html
[Android] dsixda:
Damn, you really had to do that now, while I was uploading the kitchen? ha ha LOL..

I will have to upload a newer version then.

Thanks
[Android] BesFen:
wait, do you use modification in init.rc like darktremor tutorial???

If yes, app2sd will not work on legend and (maybe desire too) as i told you before.

You need to make 2 version of app2sd:D:D:D
[Android] andrewwai18:
great...should be ok then!
[Android] dsixda:
Screw that, I'm using the first version ;) The one that calls "a2sd" in init.rc.

I guess I'll worry about it later... need sleep!
[Android] BesFen:
OK..OK ...take a rest is important... Go sleep, if necessary go for vacation, but make a new version first LOL...:D:D

Here is my init.rc

start a2sd
class_start default

service a2sd /system/bin/logwrapper /system/bin/sh /system/bin/a2sd
disabled
[Android] antz88c:
i think i'm the first one to downloaded .75 :)
[Android] BesFen:
LOL very fast.... do you leave your finger on the mouse?.....LOL:D:D
[Android] dsixda:
Yes, the only thing you have missing is that command after start a2sd. But the darktremor guy told you that it messes up the dalvik-cache operation, no?
[Android] dsixda:
Yes, I noticed the download only a few seconds after I uploaded it! :D
[Android] dsixda:
Going to bed now.. Try it if you have time. Thanks!
[Android] BesFen:
I will try it tonight (GMT +7 here)
[Android] mycomputerisjunk:
With .75 I am getting the following errors on my Mac that I don't recall seeing before:

Check sed

---------------------

sed: illegal option -- -

usage: sed script [-Ealn] [-i extension] [file ...]

sed [-Ealn] [-i extension] [-e script] ... [-f script_file] ... [file ...]

Check od

---------------------

od: illegal option -- -

usage: od [-aBbcDdeFfHhIiLlOosvXx] [-A base] [-j skip] [-N length] [-t type]

[[+]offset[.][Bb]] [file ...]

Would this have anything to do with signing the ROM? I ask because in order for me to install this ROM from recovery I need to disable signature verification.
[Android] dawynkoop:
if you even need help testing a new version dsixda just shoot me a PM, I'm at a computer all day at work and usually have enough fee time to try things out.
[Android] dawynkoop:
Has anyone else had issues trying to cook in the new wireless tether (wireless_tether_2_0_5-pre3.apk) the one that allows it to act as an AP rather than Ad-Hoc?

Every time a cook it in to my rom when I try to open it, it constantly force closes. If I leave it out and then install it manually everything seems to work just fine.
[Android] dsixda:
Those two commands are just checking the version numbers of their respective binary. The commands otherwise should work. "sed" is used everywhere in the kitchen and "od" is used when you build a boot.img. You would see errors if there was a problem when creating a ROM.
[Android] dsixda:
Thanks for the offer. Maybe you can try this --

I had a problem last night with one of the ROMs I cooked. I had already flashed apps2sd and it was working fine, but I wanted to flash a new ROM that had some changes. It also had apps2sd, and I didn't do a wipe before flashing it this time. While flashing, however, it stopped and gave an error at the line "copy_dir PACKAGE:data DATA:".

I'm not sure why it gave an error there, probably because there was still data there with apps2sd dependencies, and I didn't do a wipe? If a wipe is required every time, then I am not too keen about flashing an apps2sd ROM... :confused:
[Android] dawynkoop:
Do you have copies of the ROMs available I can try?

FWIW: I usually never build a ROM with apps2sd installed, I find the incredible has more than enough space for all of the apps I install, I like to save my SD card for music and pics.

Also have you noticed any issues with the new Hydra Kernels? I've created a rom with the stock speed undervolt kernel, but anytime I include the Wireless Tether in my rom the app constantly force closes. If i remove it from the rom and re-flash it and install the app manually it works fine.