yashsingh1/xdaforums huggingface dataset:
[Android] mskash:
Java6-jre and Java6-bin

Im trying to install the java6-jre and java6-bin files, but I am having problems. I typed: sudo apt-get install sun-java6-bin sun-java6-jre and it said could not find sun-java6-bin. Then I typed: sudo apt-get install sun-java6-bin and still no luck. Last I downloaded the deb files and then typed: sudo dpkg -i sun-java6-jre_6.20-dlj-4_all.deb sun-java6-bin_6.20-dlj-3_i386.deb and it says cannot access archive no such file or directory. What should I try next?
[Android] dsixda:
What do you mean by no luck? Can you be specific, what was the error message? If it says it is missing a package then install that.

Also, when it says it could not find the archive, are you sure those two files were in the same folder as where you executed the dpkg command?
[Android] dsixda:
Hi guys, I am still wondering where you got this line. You said you had a problem with root, but this line was never added by my kitchen.

Was it from a ROM that was in an update.zip that already contained an update-script file?

Please let me know so that I can update the kitchen if necessary, so it doesn't affect other people.

Thanks
[Android] dsixda:
No idea, sorry.
[Android] kiljacken:
Re: [KITCHEN][MAY 28 '10] HTC Android Basic Kitchen, v0.53 [Linux / Mac / Cygwin]

That's impossible, because of the fact that Android runs Linux, while Windows Mobile runs windows.

The only way to do that is to reverse engineer all of them, and that could take years...

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

Sent via the XDA Tapatalk App
[Android] dsixda:
HTC Windows Mobile devices have been running Android for a couple of years now. Check the Vogue / Blackstone / Raphael / Diamond ROM development forums.
[Android] DS36:
I am also having major problems downloading those two files theunlock.com tutorial is a little outdated because there is a newer ubantu and those file are also outdated

could someone please update here on how to get these two files running.....

here is the errors i get......

dion@dion-laptop:~$ sudo apt-get install sun-java6-bin sun-java6-jre

Reading package lists... Done

Building dependency tree

Reading state information... Done

E: Couldn't find package sun-java6-bin

dion@dion-laptop:~$ sudo apt-get install sun-java6-jre sun-java6-bin

Reading package lists... Done

Building dependency tree

Reading state information... Done

Package sun-java6-jre is not available, but is referred to by another package.

This may mean that the package is missing, has been obsoleted, or

is only available from another source

E: Package sun-java6-jre has no installation candidate

dion@dion-laptop:~$ sudo apt-get install sun-java6-bin sun-java6-jre

Reading package lists... Done

Building dependency tree

Reading state information... Done

E: Couldn't find package sun-java6-bin

dion@dion-laptop:~$ sudo apt-get install -f

Reading package lists... Done

Building dependency tree

Reading state information... Done

0 upgraded, 0 newly installed, 0 to remove and 113 not upgraded.

dion@dion-laptop:~$ gksudo synaptic
[Android] dsixda:
Read the instructions in the FAQ, always follow those first.
[Android] DS36:
I did and this is what i got............

dion@dion-laptop:~$ sudo apt-get install sun-java6-bin sun-java6-jre

Reading package lists... Done

Building dependency tree

Reading state information... Done

E: Couldn't find package sun-java6-bin

dion@dion-laptop:~$ sudo dpkg -i sun-java6-jre_6.18-4_all.deb sun-java6-bin_6.18-4_i386.deb

dpkg: error processing sun-java6-jre_6.18-4_all.deb (--install):

cannot access archive: No such file or directory

dpkg: error processing sun-java6-bin_6.18-4_i386.deb (--install):

cannot access archive: No such file or directory

Errors were encountered while processing:

sun-java6-jre_6.18-4_all.deb

sun-java6-bin_6.18-4_i386.deb

dion@dion-laptop:~$ sudo dpkg -i sun-java6-jre_6.20-4_all.deb sun-java6-bin_6.20-4_i386.deb

dpkg: error processing sun-java6-jre_6.20-4_all.deb (--install):

cannot access archive: No such file or directory

dpkg: error processing sun-java6-bin_6.20-4_i386.deb (--install):

cannot access archive: No such file or directory

Errors were encountered while processing:

sun-java6-jre_6.20-4_all.deb

sun-java6-bin_6.20-4_i386.deb

dion@dion-laptop:~$
[Android] dsixda:
I don't think you can install files meant for another architecture (i386), unless your PC is from 1995 :-)

Download another .deb file.

Doh! Sorry, I think I may have given the wrong link? I'm not sure. But it worked for me.
[Android] dsixda:
Try this, assuming you are using Ubuntu 10.4 or equivalent:
[Android] DS36:
btw my laptop is windows vista and i have an AMD turionX2 processor

it may be the problem
[Android] dsixda:
Yeah, I don't know. You'll just need to Google it and let us know if you get it working, I'm not up to date on Linux and all the issues with installations.

The easiest way is to just install the Cygwin method.
[Android] DS36:
i just notice isnt the i386 an intel processor

do i need the amd64 version
[Android] mskash:
Got jre and bin files installed

There was an ubuntu update that I installed. After I installed the updates i typed: sudo apt-get install sun-java6-bin sun-java6-jre and it worked. I was then prompted to enter my password, but it won't allow me to type anything at all.
[Android] cougar694u:
I'm assuming you updated to 10.04 and can't type anything now? Known bug, google is your friend here: http://tinyurl.com/26zyh93

I had the same problem and even the on-screen keyboard didn't work. I did a fresh install and chose the option to install my OS later so it wouldn't do the auto/unattended install.
[Android] abc27:
The download link is no longer working for the kitchen.
[Android] dsixda:
I was expecting that to happen eventually when using someone's server. ;) It will probably come back soon.

Anyone care to post a mirror? I don't have the files at work.
[Android] abc27:
What's the file name?

I'm sure there's a mirror somewhere, i'll just google it and see if I can find anything.
[Android] dsixda:
dsixda_Android_Kitchen_0.53.zip

Also: cygwin_packages.zip

I have cygwin_packages.zip on my work PC, but filehosting sites are blocked here, except for myunspace.com. However, that site just went down while uploading the file :(

Thanks
[Android] abc27:
Found a link for version 0.38 on a spanish forum =/

http://www.htcmania.com/showthread.php?t=104909&page=2

I think i'll wait until someone with 0.53 posts up the mirror! Thanks anyway.
[Android] dsixda:
Yeah I did too, they even have a Spanish translated version of it up there ;-)

I wouldn't use that version, it's too old by now, and has bugs.
[Android] Erik97:
I will try to find the file on my computer.

EDIT: Found it, posted mirror below.
[Android] Erik97:
Here is version 0.53:

Mediafire mirror
[Android] dsixda:
Um, that's the link to the hosting server we were talking about a few minutes ago. :rolleyes:

You weren't paying attention? We were doing a Google search just now. LOL

It's back up now anyway.
[Android] pl_laszlo:
Apk png opt

Can You add something like this http://xdaforums.com/showthread.php?t=560271 to Your kitchen?
[Android] DS36:
YAY i dnot know how i did it but i got the kitchen up and runnung made a few test rom already

MOST EXCELENT WORK OP
[Android] leonnib4:
thanks dsixda for your work, still using your scripts

are the png optimized in zipalign?

I made a script to optimize them, add it as another option etc. but the output file size is the same.

maybe the original_update was already optimized, no?

UP: I have an error on signing:

Invalid crc on data descriptor 3734997098/134695760 on signed_060210_185533.zip

any idea?
[Android] dsixda:
I only do zipalign on APK. I think I stated a reason against PNG a while back in this thread. But I could probably add PNG as an option later.

According to Google, your CRC issue has to do with a badly formed update.zip before you signed it..
[Android] elelinux:
Thanks again for your fantastic work. :D really lowe this tool .:D
[Android] dsixda:
Actually, this is going to be fairly difficult (using optipng)... I'm just going to skip it. The kitchen needs to make it work for 3 different platforms (Cygwin / Linux / OS X) as well as 32-bit and 64-bit systems.

The problem is, optipng does not compile in Cygwin due to missing items. I probably need to add more Cygwin packages.. but at the end of the day it's just too much work for no real benefit. Plus I'd need to ensure it compiles for Mac and Ubuntu as well... some people won't even have all the packages, so then we'll have a whole new set of problems which varies across different people.

You guys can download it and run it for your own specific platform.
[Android] harsha_aithal:
[NEED HELP] java jre and bin are not properly installed.

I have installed the java bin (version starts with 3) but jre requires version 4 or higher. I m able to build the ROM but not able to sign it. Need help

[LOG]

Solved by doing a software update in Ubuntu
[Android] gnarlyc:
dsixda,

Awesome work. Thank you!

I'm creating an add-on menu for your kitchen. It has not left my local machine yet, but it might someday soon. It will be a separate download from your kitchen, and will not actually contain your kitchen. However, I did use some of your code as a starting point in order to make the add-on more like your kitchen. (And, I learned a lot from looking at your code.)

Will it be ok with you for me to release such a thing, as long as I give credit.

Thank you,

gnarlyc
[Android] dsixda:
Hi, is this an add-on (additional menu item to the current kitchen) or it's a new kitchen itself?

My kitchen is mostly a bunch of scripts that eventually call up applications that were already created by other developers.
[Android] gnarlyc:
Well, sort of neither, sort of both. It's a separate menu with new scripts (from me and others with permission) . It 'installs' into your kitchen's folder structure, so the new scripts are in the same scripts/ folder with yours, etc.

The idea is to grab source, compile, and then inject into your kitchen. So, instead of taking existing ROMs and manipulating, it gives the option to git source, build a ROM, and then use your kitchen like normal...

It's not complete (is something like this really ever?), but I'm close to a releasable alpha/test version...

I just don't want to step on any toes, so I'm asking before even releasing to testers. (Although, I can send you what I have of course.)

Thanks again,

gnarlyc
[Android] dsixda:
Yeah sure, go ahead... you should post your progress here too, so we also get to see it!
[Android] gnarlyc:
Thanks! I should post something in the next few days.

gnarlyc
[Android] kiljacken:
Re: [KITCHEN][MAY 28 '10] HTC Android Basic Kitchen, v0.53 [Linux / Mac / Cygwin]

This sounds cool!!

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

Sent via the XDA Tapatalk App
[Android] cTnko:
any idea if this kitchen will work with the new released http://file.geeka.net/Android/G3/RU...io_63.18.55.06O_6.35.15.01_release_signed.exe

??
[Android] dsixda:
It should, it already works with existing 2.1 shipped ROMs for other devices.
[Android] Evilandi666:
I integrated SuperUser 2.1 from ChainsDD to dsixda's Kitchen.

Download: http://rapidshare.com/files/395198208/HTC_Basic_Kitchen.rar

Now the kitchen does add superuser 2.1 instead of the old superuser which was used before.

Not fully tested. Menu items 4) and 5) and all advanced options are not tested. But should work. (Only tested it with HTC Desire!)

thx to dsixda & ChainsDD

Maybe dsixda can add it into his release.:)
[Android] dsixda:
I already said in this thread:
[Android] Evilandi666:
Sry, didn't read the whole thread! ;)
[Android] mnjm9b:
I am also finding this issue with my trials.

need to chmod data on phone in order to fix.

any idea where this is getting hung up at?
[Android] :
Ok

Ok so I need a little help with building a new boot.img with new kernel sources. Can anyone please give me the run down on this?:D
[Android] leonnib4:
what you want is to build a new kernel or unzip/re-zip it with option 15 & 16?
[Android] :
Unzip and rezip with a OC kernel
[Android] :
@dsxida

I could use some help for adding a OC kernel to the boot.img, it would help so much, Thanks!
[Android] dsixda:
- Use step 15 to open up an existing boot.img in your current working folder. It will be in the folder BOOT-EXTRACTED.

- Replace its boot.img-kernel file with the one you want to add (if it is called zImage then rename it to the correct name).

- Run step 16 to build your new boot.img. It will be added to working folder

- Build ROM.

- Voila.
[Android] dsixda:
I just searched ;)

But thanks for suggestion.
[Android] :
I get an error like this-

Found BOOT-EXTRACTED folder, checking contents ...

Found boot.img-ramdisk

Found boot.img-ramdisk.cpio.gz

Found boot.img-kernel

Compiling mkbootfs ...

scripts/build_boot_img: line 63: gcc: command not found

Error: mkbootfs not successfully compiled!
[Android] dsixda:
That means you dont have gcc of course - you have to install it. What platform are you using? The installation steps are in the FAQ.
[Android] :
Mac, and what is gcc?
[Android] dsixda:
Dude just Google it.. haha. Its a C compiler.
[Android] mr.bang:
guys !!

your update.zip size ?

your update_signed size?

generic rom

file: 140 MB

update.zip: 300 MB

what s wrong?
[Android] dsixda:
I am at work now so I don't have an update.zip with me, but my signed_update.zip is about 100 KB bigger, due to MANIFEST and CERT files added under META-INF folder. ROMs should be about 80-85MB in size.
[Android] dsixda:
Did you accidentally drag and drop a large file into a folder, but instead it went inside an .apk file in that folder? This happened to me in Ubuntu.. I find it hard to paste a file inside a folder LOL
[Android] idflood:
yes, I copied the tree files ( mkbootfs, mkbootimg and unyaffs ).

And for the size, if I take the 2.73.405.66_WWE_system_boot as base, the update.zip is only 88.7 MB.
[Android] mr.bang:
LOL i'm stupid.. after 14 hours on this pc

hahaha yay now update.zip is only 80 MB
[Android] dsixda:
Perhaps you need to re-compile the source code for your version of OSX? I'm not very familiar with Macs and how they work.
[Android] mr.bang:
i have not my hero now

here are the signapk.jar and certs

anyone try this manually please

java -jar signapk.jar testkey.x509.pem testkey.pk8 <update.zip> <update_signed.zip>
[Android] dsixda:
This is for Mac only?
[Android] mr.bang:
no! it's jar file... cross-platform ;)
[Android] dsixda:
I won't have a chance to try this till I get home in a few hours.
[Android] deejay300:
Windows

Is there any mercy for Winfags?
[Android] dsixda:
From the first page:
[Android] deejay300:
It was a rhetorical question :D
[Android] dsixda:
haha ok :p But would be nice if it worked easily on Windows!
[Android] dsixda:
The "cannot execute binary file" likely means that the file is not a correct binary for your OS. I see this happened in Cygwin for me. Delete mkbootfs and mkbootimg and compile a working version of them for your specific operating system.
[Android] dsixda:
Android Basic Kitchen in Windows (with Cygwin)

It is much easier to install Cygwin in Windows than to install Ubuntu in a virtual machine. Here are the steps to install the kitchen in Cygwin:

Download and install the Java JDK for Windows 32-bit from here or directly from java.sun.com (requires an email address)

Install the JDK first before you proceed to this step! Download the file cygwin_packages.zip, unzip it and follow the instructions in the "kitchen_readme.txt" file to install a

customized version

of Cygwin. A default install of Cygwin will not work with the kitchen.

NOTE

: If you installed Cygwin before Java then Cygwin may have issues finding the Java executable file.

Cygwin is now set up, so you can install and launch your kitchen!

Unzip the kitchen into your Cygwin folder (e.g. C:/Cygwin/home/<your_user_id>/Kitchen)

Now click on the Cygwin shortcut on your desktop

Go to the folder with the kitchen (e.g. cd Kitchen), and start it up with: ./menu (that's a dot, slash, menu)
[Android] idflood:
It's still not working. I had to compile mkbootfs, mkbootimg and unyaffs. I believe the files from mr.bang are for osx 10.5. I attached the same binaries for osx 10.6 ( they doesn't produce errors but I'm not sure they are working ).(Removed)

I tried to flash the cooked rom with 2.73.405.66_WWE_system_boot as base, but the phone stay at the first "Hero" screen. Any idea of a possible fix? ( i wiped data / cache / ext )

edit: removed binaries, since they doesn't really work. I cooked a rom in linux, with the same base files and it's working...
[Android] shokka9:
Thanks for this....

Missed it completely....i will make good use of this soon enough.

Thanks bro!!
[Android] dsixda:
Can you tell me where you got the source for mkboot*?
[Android] idflood:
I got them from the android sources ( hxxp://source.android.com/download ). I download all the sources and compiled all the android stuff to have those two little binaries.
[Android] :
Wow, I feel like a noob lol sorry :D
[Android] dsixda:
For Mac, just follow instructions in the FAQ for gcc. I used to include the mkbootfs/mkbootimg executable binaries for all the platforms (Mac, Cygwin etc.), but it didn't work for everyone because some people had 32-bit CPUs while others had 64-bit, so I needed every single combination, which is not easy.

So now I just include the source code for these utilities, and gcc will compile it automatically for your specific platform.
[Android] :
Wait, can you just email me the 32-bit version? :rolleyes:
[Android] dsixda:
I don't have it anymore but check the first few pages of this thread.. someone had attached them once. I am out of town and away from my PC right now so I can't help much.
[Android] :
Ok thanks!
[Android] asoccerfreak:
Can get the java to workon ubuntu

even with the alternate method of doing it, it still keeps saying No such file or directory
[Android] dsixda:
I know, I know, it's been mentioned many times in this thread already. The new version of Ubuntu phased out Java 6 installation for some reason, but there is a way. I have an earlier version of Ubuntu so I didn't run into this issue.

Just search this thread, you'll find my workaround, or Google it. Hopefully someone can confirm the solution.
[Android] inkredi:
what should I do???? they are all cooked ROMs and they all have META-INF folder :(
[Android] dsixda:
Read the FAQ, from the first line onwards your Cygwin installation is a fail.
[Android] inkredi:
I'm sorry, I have mistaken. i fixed my installation. now working 100% Perfect kitchen!! thxx
[Android] inkredi:
another issue, im using htc desire. using a custom rom update.zip as a original update. whatever rom i use, the apks i add to system/apps aren't there in the rom when i flash !!!! Am I missing something here? all guides don't mention anything other than adding them to the current working folder and then build... ??
[Android] inkredi:
anybody going to give me some hand??
[Android] dsixda:
I'm at work, man. You can't wait a few hours? ;)

Sorry, I don't have a Desire so I can't help you there.. I'm not sure how the Desire was hacked to enable the custom ROMs, so maybe that affects how a ROM is cooked. Try asking in the Desire ROM Development forum, I am sure the cooks could help you there. Let us know if you get it to work.. good luck!
[Android] inkredi:
i modified the update-script to copy /data/app/ content and it seems to copy 1 file Maps.apk + the only file that got copied that's in system/apps was DroidAmazon.apk :S just some useless files i put to test, other than that i tried LaunherPro, DialerOne but nothing, i tried both folders. nothing happens :confused:
[Android] dsixda:
Did you mean to say you modified the update-script manually, or did you do it through the /data/app menu option of the kitchen?

Some people had problems with the data/app functionality in the kitchen, but that is because they were using a previously-cooked ROM that had the permissions set differently in the update-script. Do a search in this thread for /data/app, for more info.

Also I think the Desire had the system partition hacked for custom ROMs, so I'm not sure how it works from a cooking point of view.
[Android] inkredi:
the only issue is that some of the included apps are installed and the rest are copied but not installed... you ever encountered that? what files control that? where other than the update script choose what to be installed and what not to?

+ Is there a place to choose the default launcher? or i have to write the custom script?
[Android] dsixda:
Like I said earlier, there was a similar issue mentioned in this thread. Sounds like the same problem. It has to do with the permissions in the update-script. I don't recall what the specific part of the script was though. Just search in this thread.

You could probably just remove the Launcher.apk. That's what I did to my Hero (before I sold it) to get the plain vanilla home screen.
[Android] :
@dsxida

Even with the files for mac, I cannot seem to figure them out where to put them? It would help a lot if you could help me...
[Android] :
You told me to get the, from here-

http://xdaforums.com/showpost.php?p=5637773&postcount=29

And with v .53, its different, any help?
[Android] dsixda:
Put them in the "tools" folder.

tools/mkboot + tools/unyaffs or whatever those folders are called.
[Android] stroths:
Works on the HTC Evo

Wanted to let you know that this works great on the Sprint HTC Evo. I have successfully built a few roms off of it. One suggestion for your next build would be to include newest version (pre14 or higher) of the wi-fi tether to work with the Evo as support is now built in.

EDIT: For those interested, I used the Kitchen in a virtual machine running Mint Linux
[Android] dsixda:
Cool, thanks for letting me know. Yeah, I am aware of the new wireless tether app. I am going to add it in the next version.

Good to know it's working on the Evo, didn't even know it was already rooted! ;)

Have you tried to root a shipped Evo ROM, or are you cooking ROMs that were already rooted before?
[Android] dsixda:
For those having problems getting Java installed in newer Ubuntu versions, check my updated instructions in the FAQ. I have just tried them out on a fresh install of Ubuntu Linux, and Java now works.

I have also updated the kitchen to version 0.54 :-)
[Android] OMJ:
dsixda,

I am trying to replace the reboot file w/ this one from here . when flashing I get an error, cant symlink /system/bin/reboot, failure @ line 41. What I did was copy the new reboot file to working folder/system/bin, I could not find the original reboot file....does this have something to do w/ busybox?

thx
[Android] dsixda:
It's telling you it's trying to create a symbolic link called "reboot" but the file already exists in the folder (the one you just added). So just remove the line 41 in the update-script file..
[Android] OMJ:
thx, thats seems easy enough....here's another question:

if I want to set chmod 755 to reboot, would I remove the # from this line?

#set_perm 0 2000 06755 SYSTEM:bin/reboot

sorry, I'm still new to linux
[Android] dsixda:
I'm not an expert either but you are probably correct ;)
[Android] jmz:
Re: [KITCHEN][JUNE 10 '10] HTC Android Basic Kitchen, v0.54 [Linux / Mac / Cygwin]

Yeah that will work.
[Android] jmz:
Re: [KITCHEN][JUNE 10 '10] HTC Android Basic Kitchen, v0.54 [Linux / Mac / Cygwin]

you could remove most of the symlinks by installing busybox on boot instead of all in the update-script.
[Android] OMJ:
thx James....that worked
[Android] kiljacken:
Do you think you could add an option for deodexing with baksmali and smali??
[Android] J-Woo:
How do I open this file to insert these lines? I'm new to this, running cygwin on Windows 7. Do I need to open this file from within cygwin? CMD? Not sure where to go from here...

Thanks
[Android] kiljacken:
Just open it with your favorite text editor...
[Android] CGCampbell:
hey so i love the kitchen and I want to add some new apps that i want built in and someone told me to use Android Mate which is an explorer to navigate to data/app and copy the .apk files. When i paste the files into my sd card they do not show up so is there a better way to get the apk files