Matthias Mobil Tech Weblog

Android – G1 – Moto Q – Polar

Archive for the ‘Google G2 Hero’ Category

G2: New Hero and immediate root

with 4 comments

Bought a G2 Hero for my wife and first thinks first: Get root access. It is quit easy and here the summary:

1) Install the Android Developer Kit and get the driver installed for the ADB interface. If you have problems, here is a perfect article to solve the problems.

2) You need the Recovery-Image from Cyanogen and the 2 Superuser Files. Best to download out of the XDA Hero forum. I copied all files in the tool folder of the ADK.

3) Restart Hero into bootloader by switch on holding the back button.

4)  Open command shell, navigate to tools folder of ADK and execute

fastboot devices

You should see you device there

5) Stay on command line and execute

fastboot boot cm-hero-recovery.img

to install the new recovery image

6) Install the root files on command line

adb shell mount /system
adb push su /system/bin/
adb shell chmod 4755 /system/bin/su
adb push Superuser.apk /system/app/
adb shell reboot

7) After the reboot, download from Market “SuperUser Whitelist”

8) Check of you have su access on command line

adb shell
su

Done folks. But as you rooted your phone, you probably want to install the patched recovery image permanently on your hero:

a)  Copy the cm-hero-recovery.img onto the sdcard
b) adb shell
c) flash_image recovery /sdcard/cm-hero-recovery.img

Done.

adb shell reboot bootloader (wait for device to reboot into bootloader)
fastboot boot cm-hero-recovery.img
adb shell mount /sdcard
adb push cm-hero-recovery.img /sdcard/cm-hero-recovery.img
adb shell flash_image recovery /sdcard/cm-hero-recovery.img

Written by Matthias

10. September 2009 at 09:57

Posted in Android, Google G2 Hero