How To: Create Your Own Custom ROM for Android, Part 1 – Setting Up The Android Kitchen
So you love loading custom ROMs, but you just wish you could choose what features you wanted in the ROM or even grab a ROM from another device and port it to your phone? Well, thanks to DsiXDA over at XDA Developers, there is a neat little program that can help you do just that. And best of all? No programming skills required. So here’s how to setup the program and get started on your first custom ROM!
I. Before You Begin
1. This ONLY works for HTC Android devices at the moment, later versions might support others (check here for an update when it does).
II. Download a Virtual Machine and Set It Up.
1. Download VirtualBox for free from here (the one for Windows Hosts at the top). Then click next on the setup process until it installs.
2. Open VirtualBox and click on New.
3. Name the New Virtual Machine whatever you want (we named it Linux for simplicity’s sake).
4. For Operating System choose Linux, then choose Ubuntu for Version and click next.
5. Click Next again leaving the Memory Setting at what it is preselected at (should be 384mbs).
6. Click Next on the Boot Disk screen as well leaving boot hard disk and create new hard disk both selected.
7. Keep clicking Next until you get to the slider that asks how much space to set for the Linux. Move the slider to 8Gbs and click next.
8. Click next until it is done and shows you the original screen you started on but now with the Linux Machine Powered Off on the left.
III. Install Linux Ubuntu on the Virtual Machine
1. Download Ubuntu from here.
2. Once it is downloaded, in the VirtualBox program, click the Start button at the top.
3. Close out all the warnings that come up.
4. Then click on Devices > CD/DVD Devices > More CD/DVD Images… then select the .iso image for Ubuntu you downloaded.
6. Follow the prompts on the screen to install Ubuntu on your Virtual Machine.
7. Once it is installed and reboots, goto Applications > Accessories > Terminal and type this line with hitting enter at the end:
sudo apt-get install sun-java6-bin sun-java6-jre
It will ask you for a password, type in the password you created when you went through the Ubuntu installation process (it asked you for it before finishing the install).
Then it will ask you y/n. Hit y then enter. Then when it shows you the terms and conditions, hit right arrow on your keyboard and click enter to select ok. Then hit left arrow on your keyboard and enter to select Yes.
*NOTE – Your keyboard and mouse will not function on your regular computer once you use them in the Ubuntu virtual machine. To re-enable them, click the Ctrl button on the right side of your keyboard.
**IF YOU GET AN ERROR INSTALLING THE JAVA FILES,
Download the java files manually FROM INSIDE THE EMULATOR/LINUX using Firefox here:
Then open the Terminal App in Ubuntu and type this with hitting enter at the end of the line:
sudo dpkg -i sun-java6-jre_6.18-4_all.deb sun-java6-bin_6.18-4_i386.deb
And that should fix it.
IV. Download and Setup The Android ROM Kitchen
!THIS NEXT SECTION NEEDS TO BE DONE WITHIN THE UBUNTU VIRTUAL MACHINE!
1. Click on the Firefox logo at the top of your Ubuntu installation (in the Virtual Machine).
2. Type this into the url box:
theunlockr.com/2010/03/26/how-to-create-your-own-custom-rom-for-android-part-1-setting-up-the-kitchen (to navigate to this page from within the virtual machine).
3. Now download the latest version of the kitchen file  in the first post from the link below(again from inside the Ubuntu installation on the virtual machine. We are doing this because we want to save this file in our Ubuntu Virtual machine, NOT our regular computer).
4. Again on the Ubuntu machine, Find the .zip file you just downloaded, right click it and click open with Archive Manager and then click Extract at the top.
5. Once you click Extract, it will ask you where. Double click the folder that has the name you created when you installed Ubuntu (my username was theunlockr so my folder is called theunlockr. It is the first folder under recently used in the list on the left). Then click Extract at the bottom right.
V. Run the Android ROM Kitchen
1. To run the Android ROM kitchen, click on Applications at the top of Ubuntu > Accessories > Terminal then type the following and hit enter:
./menu
2. You will now be greeted by the simple text menu of the application. Enjoy!
VI. Create Your First Custom ROM
Head over to our How To: Create Your Own Custom ROM for Android, Part 2 – Creating Your First ROM





I figured it out!
tried to install the java files both ways and keep getting an error. command not found and package not found. need help.
I had to update the ubuntu i downloaded with the update manager. after you install and reboot your “machine” the os will prompt for some updates. that seemed to assist in the proper install of the java files so you don’t need to process the manual install.
Hey … just wondering will this work for OpenSUSE, its also a type of linux?
when i downloaded the virtualbox it wont open, it finished the installation but wont show up. what wrong
When i attempt to download linux from the link you posted, it always hangs and quits at about 6M.
Do you have a different mirror or anything?
go to http://www.ubuntu.com i believe it is havent used sence 2010 sometime should be able to download older versions as well or go to rapidshare mediafire or try the pirate bay and utorrent utorrent.com to get utorrent istall then the pirate bay.org all one word search under software ubuntu x.x.x for the one you want make sure its an iso file and that its got seeds …….KILL ANTI-VIRUS so it doesnt block utorrent or grant utorrent access/permitions
i downloaded the virtualbox program, but cant get it to open, what should i do?
you should get vmware player instead
you should get vmware player instead
You can download the newest version of ubuntu from their site (http://www.ubuntu.com). just make sure you download the desktop version
I downloaded everything and set out to start set-up, but when I go to put the ubuntu program into the CD/DVD folder it won’t allow me to. Suggestions? Back doors?
(P.S. – I’m working on a MacBook. If that’s important.)
So I DL VB then ubuntu. After it DL I went to start, got the message about using ctrl blah blah blah…. and then i get this message: FATAL: No bootable medium found! System halted.
So what happened?
You didn’t specified or deleted the created hard drive, or you didn’t put Ubuntu .iso to boot, that’s why it ended up in the nothing, redo the process, it used to happen to me, and only redoing the process correctly helped.
can you write the commands again Please,
how would you do the settings for creating the ROM on windows 7 (64 bit)
how would you do the settings for creating the ROM on windows 7 (64 bit)
Im running 10.04 LTS and none of theses steps are working out for me. Any lists of instructions for the kitchen on 10.04?
TO ALL HAVING TROUBLES WITH JAVA INSTALLATION OR ANYTHING AT ALL WITH UMBUTU DO THIS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! IT WILL WORK 100%!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
3 STEPS; YOUR ALL WELCOME; TOOK ME THREE DAYS TO FIND THIS SITE
1ST: UPGRADE/DOWNLOAD UMBUTU LTS 10.04
2ND: GO TO http://xtremediary.blogspot.com/2010/04/to-do-after-installing-ubuntu-1004.html; IF U CANT TRY SEARCHING FOR XTREMEDIARY.COM AND THEN IN SITE NAVIGATE TO : to-do-after-installing-ubuntu-1004.html
3: BASICLY COPY/PASTE EVERYTHING HE SAYS TO
4:DONE
i got ubunto as mi deafult operation system… this is only for virtual machine?
me too, I use Ubuntu Linux as my main OS but this’ll work
Java 6 is old, which java should I DL?
followed this every step and get bash: file or directory does not exist so not working plus the video tut aint the same as the thread it directs to on the thread for the kitchen
can this guide been improved on as it not working
hI David …………
I have the less popular android device Named as Micromax A60……..
can u please make some effort to tell ,how to create a custom rom for it……….
I have a dumped zip of this phone whose link is http://www.multiupload.com/VZPRKLQH3T
I am having problems with the Terminal, it always says somethings wrong with the java and ive also tried the alternatives , but nothing mre…. help please
Guess this doesn’t work with anything above 9.10?
Does anyone have this working with newer os’s?
I am still stuck at step 5, telling me the menu can not be located, i tried following the thread andstill no success
felix@felix-desktop:~$ ./menu
bash: ./menu: No such file or directory
this is what i see when i type it in
open terminal leave open then go to your home folder find android kitchen right click and choose open, find menu file then click and drag to terminal then press enter. Worked for me, good luck
thanks it worked, but now i have another problem, my thing updated and now it cannot locate the java file to run the kitchen
the files have to be out of the kitchen folder when you extract it
I had the same problem and i tried what he did however, the was a message afterwards saying that Ensure you run this file from the same folder as where it was installed. otherwise the kitchen will have problems running the scripts. Start the kitchen with the ./menu command idk what to to after draging it into the terminal the file menu
i figure out all i didnt do is to extract all the files on the name that i had put on the ubuntu os
I don’t remember ever naming ubuntu. I named the VM but that still does not work. I am stuck at this step because ./menu is not working for me. Getting the same error as you all. Any advice?
you mean , the folder…where is the ubuntu os ?
it doesnt work for me
Hey guys. Once you get Java installed and the .zip folder extracted to your Home folder just double click the Menu txt file and then “run in terminal”. The menu opened up just like it says here on this page. Good luck
I got as far as extracting the kitchen, but when I try to extract, and error comes up and says “failed to extract”. Please help???
i tried… running sun java in the terminal but still getting errors. asks for my password and after i type it in it gives an error saying not found. so i tried downloading the file from inside the emulator and it still says file not found fml. plz help
I get the same thing, does anybody know how to work around this?
Thank you for the tutorial and the step by step on setting up from the beginning to the end, as always will gladly donate to the Developer from XDA for sharing tools and “how to” in creating custom’s made Rom’s! 🙂
Does it have to be Ubuntu 9.1? cuz I already have Ubuntu 11.6 loaded up on my PC
I type in the JAVA fix, but it comes up, saying, [sudo] password for …:
I try and type it in, and it won’t let me, what do I do?
Since it is a password you can’t see it but you are typing, finish and hit enter.
hey at then end . when i type the command, I get nothing . help pz
Does the procedure shown above for creating custom roms support Android Honeycomb (3.0 and above)? I want to create a custom rom for tablets such as Acer Iconia A500 or Samsung Galaxy Tab 10.1
Trying this now, have VB and Ubuntu 11.6 installed, having a hard time with Java…any help would be appreciated.
need help installing java
need help installing java
i’m getting no such file or directory, when typing in terminal .:/menu. i followed all the steps thru extraction point. what did i do wrong?
Hi man !
I got the same problem on the first attempt.
You mustn’t extract the archive on your desktop on Ubuntu.
Extract it in your home folder and it will go on !
nvm i got it working had to double click menu in the kitchen folder and opened it….automatically opened on terminal
To install java you must move file to home by right click file you want to move and choose move to home. Then type terminal code like above, this should work
The file download by firefox in download folder just in case you guys don’t known where it is
Hey, Can I grab a rom from wildfire or any htc devices and port it to my htc tattoo?? plz help me!
I tried mounting the image (part III. step 4.) and got this error:
E_FAIL (0x80004005)
Component:
Medium
Interface:
IMedium {aa8167ba-df72-4738-b740-9b84377ba9f1}
Callee:
IVirtualBox {2158464a-f706-414b-a8c4-fb589dfc6b62}
I wouldn’t mind installing ubuntu/linux (whatever its called, I’m really new with all these modding stuff)
on my physical hard disk drive.
I’m running Win 7 x64, is that a problem?
When I try step III, Part 7 (trying to install Java):
To run a command as administrator (user “root”), use “sudo “.
See “man sudo_root” for details.
michael@michael-laptop:~$ sudo apt-get install sun-java6-bin sun-java6-jre
[sudo] password for michael:
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Couldn’t find package sun-java6-bin
michael@michael-laptop:~$
what do I do? Anything I can do? I have tried to use the direct download links provided but one doesn’t have anything to download with it and the other that actual says it has a file, none of the links go to a page that actually works. Is this just too old now?
the java files are not there
the java files died?
does this work on windows 7 becuse everything you guys talk about is linux
just change the directory that is containing the menu file using
$ cd
then type
$./menu and hit enter !!
arunkumar@arunkumar-VirtualBox:~$ cd dsixda-Android-Kitchen-68eb908
arunkumar@arunkumar-VirtualBox:~/dsixda-Android-Kitchen-68eb908$ ./menu