John Galea's Blog

Just another WordPress.com weblog

Rooting a Google G1 phone before activation

I found a lot guides for how to root a phone but they were all written from the perspective of having an activated phone. If your looking to update the ROM on the phone when you first get it activating it first seems silly. So here is my modified process. I based it on the rooting guide on XDA-Developer . Details of each step are best left in the original post.

downgrade to rc29
start phone
Android lets anything you type go into a root level administrative telnet session that is invisible. This was corrected in later than rc29 levels of the OS.
on the phone type:
setprop persist.service.adb.enable 1 (this starts ADB mode Android debug)

on the PC using the Andoid SDK type:
adb push busybox /data/local (copies over busybox to get a shell prompt at root)

on the phone type:
telnetd

On the PC from the Andoid SDK type:
adb shell
execute chmod 755 /data/local/busybox (in the adb shell on the PC, this allows busybox to run)

On the PC from the Android SDK ADB command prompt type:
/data/local/busybox telnet 127.0.0.1 (on the adb on the pc this now gives you a root level command prompt)
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
cd sdcard
flash_image recovery recovery.img (this installs a recovery mode to allow loading ROMs easier)
cat recovery.img > /system/recovery.img

Power off your phone.
Start up in recovery mode by holding home and pressing power.
You will now enter recovery mode. You should see an exclamation.
If you do not see a menu on screen, press Alt-L to show the menu.
Press Alt-S to apply the update from the SD card.
After the update is complete, hold Home and press Back to restart

If you load an OS greater than RC29 the root level may need to be repeated.

Advertisements

October 28, 2009 - Posted by | Android

1 Comment »

  1. […] To be able to load new ROMs you will need to get the phone “rooted”. There are lots of guides that talk about rooting a phone my complication is I was trying to do it before activation. That made matters a little more complicated. Here’s my prod on how to effect that. […]

    Pingback by Google G1 review « John Galea's Blog | November 2, 2009 | Reply


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: