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:

Java6 Bin
Java6 Jre

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

Kitchen

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

225 thoughts on “How To: Create Your Own Custom ROM for Android, Part 1 – Setting Up The Android Kitchen”

  1. I am on section III, step 7 and I got an erroe. So I downloaded the two zips from within ubuntu as instructed. However when installing with command, i get :
    sun-java6-bin depends on unixodbc; however:
    package unixodbc is not installed
    dpkg: error processing sun-java6-bin (–install):
    depednency problems – leaving unconfigured

    and a few other lines.. Any Ideas what I am doing wrong. So far I have followed the istructions step by step. I even searched unixodbc but didn’t find a good source.

    Please help!

  2. Leland Cooley

    FWIW I’m a noob @ this, but like a few of you out there I couldn’t get the java zips to install on ubuntu 10.4 like manny says, so I installed ubuntu 9.10 like someone suggested (which appears to be the one in the unlockr video) and everything went as stated in the video.I then upgraded to ubuntu 10.4 and everything still works fine even though the upgrade took an hour. I hope this helps another noob and many thanks to whomever suggested to use ubuntu 9.10 as 10.4 appears to be buggy. Thanks

  3. @ Leland

    Where did you find Ubuntu 9.10? I can’t seem to find it. All I am able to find is 10.4. I will not give up!

  4. Leland Cooley

    Manny, just google ubuntu 9.10 and it will appear. However yesterday I went out with VituralBox running for awhile and when I came back I was greeted with the dreaded “blue screen ” I restarted windows and everything was OK. Left windows up all night and all is well. This am I started up VirtualBox . I will let you know if it happens again.

  5. how do i go back to my Ubuntu tht i was using before., like i installed everything n then i went to the first section of the procedure n then i had to go somewhere n i left my computer running n my bro in law turned the computer off…when i came back n tryed to start the vbox n the ubuntu it said to reinstall ., is there any way i can go back to my old one?
    and also lets say i do reinstall it., how do i save so i can jus go back?

    thankss

  6. Leland Cooley

    I don’t know how to retrieve your old setting.I was having similar problems and I found out when you close out and the triple radio button dialog box comes up and asks you what you want to do, I now chose the first one which says something like ” save machine state” and so far that has worked for me.Hope this helps

  7. thankz cooley it worked., now i have one small question., what happens if i update the ubuntu to 10.04? cuz i jus got the prompt for an update

  8. Ok so after alot of hair pulling, I got the kitchen working with 10.04. If you are still having problems installing the Java files try this:

    In terminal type the following and of course hit enter

    gksudo synaptic

    After that a window came up and stated that there were two damaged files (the java files). dont laugh but I am unsure as to what exactly I did after that, so to not miss-guide anyone i’m not giving any exact instructiond. however, I deselected the two java files and clicked the update icon above. So it updated. That took about 6 minutes. Once it was done, I entered the following while in the terminal:

    sudo apt-get install -f

    It went thru it’s process and after that the kitchen was able to sign a rom I trimmed some unwanted apps out of. If anyone trys this let me know if it works the same for you. Maybe you will pay better attention to detail and can add to this. : )

  9. Leland Cooley

    manny kudos to you . jibbz the first time I upgraded I got the dreaded blue screen after awhile running ViturlBox which I haven’t had for 15yrs.I have windows 7 OS @ this time.This am I’m trying it again and will update you this afternoon.

  10. Leland Cooley

    Everything OK after upgrading to ubuntu 10.4 . Got warning box when upgrading about something like “network manager apt unable to get resources,so won’t install” but I just clicked it off and that was that . Good luck.

  11. Leland Cooley

    Anyone with problems installing Sun Java 6 on Ubuntu 10.4 this was posted by
    gabe neil. Of course you’ll have to add sudo before these commands. Thanks to gabe for this , worked great for me.

    Installing Sun Java 6 on Ubuntu 10.4 Lucid Lynx
    It looked like Canonical was going to totally abandon Sun’s JDK with the release of Lucid Lynx. After heated discussions, however, instead it was merely tucked away even deeper into the recesses of alternative repositories. Now it lives in a partner respository, so as root you’ll need to run

    add-apt-repository “deb http://archive.canonical.com/ lucid partner”
    apt-get update

    to add the appropriate repository. Now you can use apt-get install as before to install the sun-java6-jdk or sun-java6-jre packages. For those curious, this is the “official” way to do this according to the release notes.

  12. I just have to say that if you’re using ubuntu 10.04 in a VM or normal install you’re going to need to Chang the softwared sources to enable backports. Of you don’t you can’t the Java packages you need. If type running another distribution then either use synaptic or the default software manager. Also if you do the VM route make sure you Change the USB settings to 1.0 or you’ll have issues with windows crashing.

  13. I ran the app with Gentoo and it works; however I nneed to test if it builds the ROMs so I will get back to you guys.

  14. “So whenever I go to virtual box, find the Ubuntu iso file and try to add it, it tells me I can’t open it because it is in the wrong medium.

    Result Code:
    E_FAIL (0×80004005)
    Component:
    Medium
    Interface:
    IMedium {aa8167ba-df72-4738-b740-9b84377ba9f1}
    Callee:
    IVirtualBox {2158464a-f706-414b-a8c4-fb589dfc6b62}”

    I get this error too. I donloaded the .iso and this is what i get after i navigate to it, to add it.

  15. PROBLEM:

    Step II. Install Linux Ubuntu on the Virtual Machine

    Tells me:

    FATAL: No Bootable medium found! System halted.

  16. Hello Fellows,
    I just wondering if is possible to port Windows Mobile drivers from a Brand like Eten or another to create a Android OS for them?
    Any idea about how to do that?

    REgards,
    Erick

  17. Got past that but had to d/l both java links… they are different. Need the code updated cause i can’t get it to work

  18. man i have been at those two dam java files alll day
    Mr. Unlockr please please you are the expert can you please update the tutorial for UBUNTU 10.4 and the NEWER JAVA files PLEASE

    Thankyou sooooo much

  19. This guide needs to be updated. I was going crazy for hours over the 2 java files. Here is what I did to get it to work. I added the “deb http://archive.canonical.com/ lucid partner” as a repository under software sources and also placed a check in the other 2 sources so all 3 were checked. After that finally I was able to run the sudo apt-get install sun-java6-bin sun-java6-jre commmand and my update.zip was finally able to be signed. I’m very new at Ubuntu so I hope this makes sense, LOL.

    1. Thanks GrandMstrBud!!!! I’ve been messing with those two files for way too long. This should be updated for 10.04 users in the instructions!

      Thanks

  20. So,
    I’ve gotten to installing java – for some reason I can’t get it to work. It continues to give me errors. I tried installing it the way it lists on this page and also the sudo add from the lucid partner isn’t working… check out my screen shots for my attempts at both… PLEASE if anyone can help me out, that would be AWESOME.
    http://img.photobucket.com/albums/v119/imweird4life/01error.jpg
    http://img.photobucket.com/albums/v119/imweird4life/02error.jpg
    Any advice anyone??

  21. ok i kno this might have nothing to do with this topic but its related to ubuntu and i thought this was going to be the best place to ask you david or anyone else tht can help me out., ok i wanted to know how can i use androidsdk on ubuntu using it as a fully window not on a virtual machine?
    thankx from advance who ever helps me out., ;]

  22. i need help plz…i install linux did all the steps but i cant enter my password when trying to install the jar file thx

  23. Is it necessary to have Ubuntu installed or I can install “The Android ROM Kitchen” in openSuSE 11.2 because I already have installed openSuSE on other partition beside WinXP?

  24. ok so hey guys im having a bit of trouble here….ive done steps 1-4 but when i get to step 5, im on ubuntu 10 and when i go to termanal it says i must type in “./menu” i did that, i extracted the files to my desktop but i dont think im putting in the right command……HELP please…

    stu

  25. im stuck on step 5….everytime i put in ./menu it says permission denied, the location of the file is /home/stuart/Desktop. could somebody help me?

  26. hokedoncronics

    ok so david or theunlockr….

    i noticed someone else posted this up and didn’t get an answer back either… whenever i put the line of code into the terminal it proceeds to ask me to enter my password like normal… although it won’t actually let me enter it at all… i can type for days and nothing shows up… but if i hit enter and start typing really fast it will start typing before saying that i entered the wrong password… any idea how to fix this issue??

  27. Hey – I followed everything stated here – great tutorial by the way – very simple and easy to follow.

    The issue I have though is this – I got to stage V. Run the Android ROM Kitchen – I typed in ./menu in the terminal and I was told

    bash: ./menu: Permission denied

    why is this and what can I do to rectify it?

    cheers

    Steve

  28. everything is working but i cant get the archive manager to work in fox fire is there anyone who can help with this

  29. Hi all….
    Can anyone help me..???
    After I downloaded with firefox, the Java.bin and Java-jre in the Virtual box ubunto when I click on them it gives me this error:
    ERROR:Dependency is not satisfiable:sun-java6-jre(>=6.21-1)
    ERROR:Dependency is not satisfiable:sun-java6-bin(>=6.21-1)|ia32-sun-java6-bin(>=6.21-1)
    And when I used the commands in the guide to install them with terminal again give the errors:
    Cannot access archive: No such file or directory
    —–
    I changed the names in the commands also, and make them as :
    sudo dpkg -i sun-java6-jre_6.21-1_all.deb sun-java6-bin_6.21.-1_i386.deb
    in the guid the versions are different, I used both, and both of them gave me same errors…
    what should I do..??
    please answer me…

    1. A lot of the problems I had with this were from simply not restarting the ubuntu system, each time I would restart it different things would happen. Right after the initial installation i never restarted it, i was never asked for any passwords when trying to install stuff, and my disk space was way to low…pretty stupid but just make sure you restart the ubuntu system multiple times so changes can take affect…i guess, i’m pretty new to this so thats about all i can add

  30. i followed every steps in the tutorial…but every time i tried to do ./menu it gives me bash: ./menu: Permission denied…tried it in ubuntu 10.04 and 9.10..both gave me the same thing…please help me out??…

  31. Hey I installed everything accordingly and even the latest kitchen today and when I open the Terminal to type in
    ./menu it says Permmision Denied Any Idea?

  32. So i am at the last step and when i enter “./menu” into the terminal it says “bash: ./menu: Permission denied” How do i fix this problem? Do i have to start all over? Please help

  33. I decided to install Ubuntu 10.x on my pc because it ran much faster. Everything went fine except for when I type in ./menu I get Permission denied. Changed my admin rights to full. I even tried creating a folder titled “rom” and put that path in and I still get Permission denied. I used the latest dsixda_Android_Kitchen_0.100.zip and tried using dsixda_Android_Kitchen_0.99.zip and still got the same message. What am I doing wrong?

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.