5,593,401 Members 36,028 Now Online
XDA Developers Android and Mobile Development Forum

Installing Cupcake on your ROOTED G1 (or Dev phone)

Tip us?
 
Koush
Old
(Last edited by Koush; 16th April 2009 at 09:04 AM.)
#1  
Recognized Developer - OP
Thanks Meter 893
Posts: 917
Join Date: Sep 2007
Default Installing Cupcake on your ROOTED G1 (or Dev phone)

Edit 4/16/2009: New build published on my website:
http://www.koushikdutta.com/2009/04/...at-it-too.html

The linked instructions on my blog will stay up to date, I can't guarantee this post will. I recommend going to my site to get full up to date instructions: http://www.koushikdutta.com/2008/12/...deploying.html


Summary:

This is simply a build of the Android source tree with the Maps application included. Note that this does not have Gmail, YouTube, Market, or IM.
This is just a preview of what is to come in the next OTA update. I would not say this is a really usable build by any means.

Here is the list of new features: http://source.android.com/roadmap/cupcake

Installation prerequisites:
  • You must have a rooted (or a dev) phone.

Installation:
  1. Install the JesusFreke's RC30 V1.3. This will give you a root shell root access in recovery mode. A root adb shell is required for the next step. http://forum.xda-developers.com/showthread.php?t=443713
  2. Install the engineering boot loader. http://forum.xda-developers.com/showthread.php?t=455860
  3. Download the cupcake installation images to your computer. Extract them to a folder somewhere. http://koushikdutta.blurryfox.com/G1/cupcake.zip
  4. Start your phone up into fastboot mode. You can do this by shutting your phone off, and holding camera and power. You will see Androids on skateboards.
  5. Connect your phone to your computer. Press the back button on your phone until your screen says FASTBOOT.
  6. Go to a terminal on your computer and navigate to your extracted files and type:
    • chmod a+x fastboot
    • ./fastboot flash system system.img
    • ./fastboot flash boot boot.img
    • ./fastboot flash userdata userdata.img
    • ./fastboot reboot
    • If your phone hangs for a long time while flashing or rebooting, unplug and reconnect your phone. I run into this issue, and that is how I work around it.

Done!


Do it Yourself InstructionsAt the time of writing, the Android Dream build was broken. I needed to do the following to make it work:
  • Several (relatively minor) changes in the Dream audio driver code to fix compilation issues.
  • Copied libOmxCore.so to mydroid/out/target/product/dream/system/lib (this was a missing step in the Building for Dream documentation, and something that should be in the HTC provided script)
Patching in Maps (or other files) into your system.img
  1. Copy Maps.apk from a Android Dev Phone 1 into mydroid/out/target/product/dream/system/app
  2. Copy com.google.android.maps.jar from a from a Android Dev Phone 1 into mydroid/out/target/product/dream/system/framework
  3. Delete mydroid\out\target\product\dream\obj\PACKAGING\sys temimage_unopt_intermediates\system.img
  4. Delete mydroid\out\target\product\dream\system.img
  5. make
 
IzzeLing
Old
#2  
Member
Thanks Meter 2
Posts: 56
Join Date: Nov 2008
Eeeeexcellent. I'm assuming this wipes all the settings from your phone, yeah?
 
Koush
Old
#3  
Recognized Developer - OP
Thanks Meter 893
Posts: 917
Join Date: Sep 2007
Quote:
Originally Posted by IzzeLing View Post
Eeeeexcellent. I'm assuming this wipes all the settings from your phone, yeah?
Yes. You can also undo all changes by just reflashing JF's RC30 image.
 
dwang
Old
#4  
Senior Member
Thanks Meter 169
Posts: 2,139
Join Date: Nov 2008
For those who are already running cupcake, how is the updated browser with the new javascript engine? Is it much faster than rc30?
 
jashsu
Old
#5  
jashsu's Avatar
Senior Member
Thanks Meter 10
Posts: 1,852
Join Date: Nov 2008
Nice walkthrough. I resynced with the repo after jbq announced cupcake was merged in but still had some issues with the radio for some reason. At this point I figure i'm just going to wait it out for the official update, as my G1 is still my daily driver.

One note on the installation instructions: I believe you have to hook up the USB before pressing the back button for FASTBOOT to show up. I'm sure most folks interested in this will figure it out easily enough. Also, i'm glad you had a positive experience with flashing from VMware. After learning an expensive lesson in the past i've always booted into real Linux for any kind of flashing or development operation.
 
Koush
Old
(Last edited by Koush; 22nd December 2008 at 08:51 AM.)
#6  
Recognized Developer - OP
Thanks Meter 893
Posts: 917
Join Date: Sep 2007
Quote:
Originally Posted by jashsu View Post
Also, i'm glad you had a positive experience with flashing from VMware. After learning an expensive lesson in the past i've always booted into real Linux for any kind of flashing or development operation.
With the NAND backup/restore tool and some basic knowledge of how this all works, I'm not too worried about bricking the G1. I actually erased the system partition and booted just to see what would happen, hehe.
And even if I do brick it, I have a another backup G1 on my desk.
 
Koush
Old
#7  
Recognized Developer - OP
Thanks Meter 893
Posts: 917
Join Date: Sep 2007
Quote:
Originally Posted by jashsu View Post
Nice walkthrough. I resynced with the repo after jbq announced cupcake was merged in but still had some issues with the radio for some reason. At this point I figure i'm just going to wait it out for the official update, as my G1 is still my daily driver.

One note on the installation instructions: I believe you have to hook up the USB before pressing the back button for FASTBOOT to show up. I'm sure most folks interested in this will figure it out easily enough. Also, i'm glad you had a positive experience with flashing from VMware. After learning an expensive lesson in the past i've always booted into real Linux for any kind of flashing or development operation.
Hmm, I tested calling and it worked fine for me. Are you sure you made a Dream targeted build?
 
jashsu
Old
#8  
jashsu's Avatar
Senior Member
Thanks Meter 10
Posts: 1,852
Join Date: Nov 2008
Quote:
Originally Posted by Koush View Post
With the NAND backup/restore tool and some basic knowledge of how this all works, I'm not too worried about bricking the G1. I actually erased the system partition and booted just to see what would happen, hehe. And even if I do brick it, I have a another backup G1 on my desk.
Infernix's nand scripts in conjunction with the engineering bootloader do provide a significant safety net for installing custom Android builds.

Quote:
Hmm, I tested calling and it worked fine for me. Are you sure you made a Dream targeted build?
Yeah I performed the steps on the build-for-dream page. I think it was more of a matter of just needing to blowing away my local repository and getting the entire thing fresh? The keyboard is nice. I'm also optimistic about the new JS engine, but imo some kind of ad-blocking ability would be much more low hanging fruit in terms of speeding up pageloading.
 
sinbot
Old
#9  
Senior Member
Thanks Meter 6
Posts: 113
Join Date: Dec 2008
How is the camera so far in cupcake?
 
staulkor
Old
#10  
Senior Member
Thanks Meter 28
Posts: 259
Join Date: Jan 2007
Location: Phoenix, AZ, USA
Wow, I just put this on my phone and you arent kidding when you say it is not usable by any means. The APNs arent even programmed in :P

I installed it to play with it and the new on screen keyboard is nice. I cant wait for this to be live, and of course, ill wait until there is a hacked way to update to the new version. If you plan on keeping root, DO NOT get this OTA when it comes out.
--too many phones to list--

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


XDA PORTAL POSTS

Prevent Unwanted Butt Dialing with Smart Pocket Guard

You may recall that back in August of last year, we took a look atAir SwiperbyXDA … more

Google ATAP Details Project Ara in Developers’ Conference

Earlier today, the Google ATAP teamkicked offits first ever Project Ara … more

HTC Sense 6 Ported to the Nexus 5

The Google Nexus 5 is regarded as having everything an Android user needs or wants: timely updates, … more