How to Root Android Wear 5.0.1 Lollipop Devices – XDA TV

The Lollipop update for Android Wear devices has hit the market and people are … more

Android 5.0.2 and New Factory Images For Nexus 7 (Wi-Fi) Available

Android 5.0 is has been publicly available since early November, and the … more

Github Tutorial App Shows You How to Use… Github

Github can get pretty complicated and using it can become quite daunting, especially … more

Google Glass-like Clip-On For Regular Glasses Developed by Sony

For the price of $2,000, a pair of glasses that can run apps, take pictures, … more

Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

Installing Cupcake on your ROOTED G1 (or Dev phone)

OP Koush

22nd December 2008, 08:34 AM   |  #1  
OP Retired Recognized Developer
Thanks Meter: 894
 
917 posts
Join Date:Joined: Sep 2007
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
Last edited by Koush; 16th April 2009 at 10:04 AM.
22nd December 2008, 08:37 AM   |  #2  
Member
Thanks Meter: 2
 
56 posts
Join Date:Joined: Nov 2008
Eeeeexcellent. I'm assuming this wipes all the settings from your phone, yeah?
22nd December 2008, 08:44 AM   |  #3  
OP Retired Recognized Developer
Thanks Meter: 894
 
917 posts
Join Date:Joined: Sep 2007
Quote:
Originally Posted by IzzeLing

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.
22nd December 2008, 08:50 AM   |  #4  
Senior Member
Thanks Meter: 204
 
2,208 posts
Join Date:Joined: 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?
22nd December 2008, 09:40 AM   |  #5  
jashsu's Avatar
Senior Member
Thanks Meter: 14
 
1,853 posts
Join Date:Joined: 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.
22nd December 2008, 09:45 AM   |  #6  
OP Retired Recognized Developer
Thanks Meter: 894
 
917 posts
Join Date:Joined: Sep 2007
Quote:
Originally Posted by jashsu

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.
Last edited by Koush; 22nd December 2008 at 09:51 AM.
22nd December 2008, 10:14 AM   |  #7  
OP Retired Recognized Developer
Thanks Meter: 894
 
917 posts
Join Date:Joined: Sep 2007
Quote:
Originally Posted by jashsu

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?
22nd December 2008, 10:24 AM   |  #8  
jashsu's Avatar
Senior Member
Thanks Meter: 14
 
1,853 posts
Join Date:Joined: Nov 2008
Quote:
Originally Posted by Koush

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.
22nd December 2008, 10:26 AM   |  #9  
Senior Member
Thanks Meter: 6
 
113 posts
Join Date:Joined: Dec 2008
How is the camera so far in cupcake?
22nd December 2008, 10:41 AM   |  #10  
Senior Member
Flag Phoenix, AZ, USA
Thanks Meter: 29
 
259 posts
Join Date:Joined: Jan 2007
More
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.

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes