The rooting which worked for me - by Alan Lupshago here to see more helpful code, which will guide you further on your journey, my son:
(May 22nd, 2009)

Guide downloaded from: http://www.kyubinc.org/files/g1_rc_root.txt and modified. Credits: the awesome Eric Hancock/kg4cjv for all his help. I take no responsibility from any results from anyone following these instructions. If you're not comfortable with messing up your phone, don't follow this guide. By using this guide, you take all responsibility for your any and for all of your actions.
On your PC, create directory c:\android\simple 1. Download DREAIMG.nbh DREAIMG.nbh - 91 megs! - 91,564,352 bytes 2. Download recovery_testkeys.img (recovery_testkeys.img is from http://www.kyubinc.org/files/AndroidMod.zip) recovery_testkeys.img - 2 megs - 1,767,424 bytes 3. Download the DREAIMG-RC29.zip DREAIMG-RC29.zip - 47 megs! - 47,499,631 bytes 4. Download a Telnet client (which I downloaded from the Marketplace) Telnet.apk - 14,432 bytes If not already installed, install the Android SDK. Mine was available here: http://developer.android.com/sdk/1.5_r1/index.html and I downloaded android-sdk-windows-1.5_r1.zip Unzip your downloaded version of the SDK the directory, place it in C:\ My Android SDK is installed in C:\android-sdk-windows-1.5_r1 , and right under that directory I can see the other directories, such as the "tools" directory. Install your SDK like I've said above. Add the path for the tools directory in your Settings Systems path, or... in command prompt type: set PATH=%PATH%;C:\android-sdk-windows-1.5_r1\tools\; Type "path" to see the tools directory added to your already existing path. Connect your phone via USB to the PC. At the Command prompt make sure you can see your phone first: C:\android\simple>adb devices * daemon not running. starting it now * * daemon started successfully * List of devices attached HT97MKZ03461 device If you can't see the device, you can't continue. Install the missing or proper USB drivers. (which I downloaded from http://dl.google.com/android/android_usb_windows.zip ) android_usb_windows.zip - 1,396,415 bytes Push the updates to the phone: C:\>cd android\simple C:\android\simple>adb push DREAIMG.nbh /sdcard/ C:\android\simple>adb shell sync C:\android\simple>adb push recovery_testkeys.img /sdcard/ C:\android\simple>adb shell sync C:\android\simple>adb push DREAIMG-RC29.zip /sdcard/update.zip C:\android\simple>adb shell sync C:\android\simple> C:\android\simple>adb install Telnet.apk 970 KB/s (15532 bytes in 0.015s) pkg: /data/local/tmp/Telnet.apk Success C:\android\simple> The necessary installation files are now on the /sdcard. Turn OFF your G1 phone. 1. Hold CAMERA + POWER, phone will boot up, and it will give you a menu 2. Press POWER to INSTALL 3. When COMPLETE, Click the TRACKBALL. 4. You need to turn off the phone, and this may not work from the POWER button. Just open up the phone, and remove the BATTERY for a minute. This ensures any TSR's are gone. Place the battery -> Press POWER to turn ON phone You don't have to do step #5 since you've already installed the Telnet client above 5. GoTo Home -> Apps -> Market -> Telnet -> INSTALL 6. GoTo Home -> click on the desktop so that nothing is selected, and type [enter][enter]telnetd[enter] 7. GoTo Home -> Apps -> Telnet -> Connect 8. Type id[enter] -> you should see yourself as root: "uid=0(root) gid=0(root)" 9. Remount the file system as writeable, type: mount -o rw,remount /dev/block/mtdblock3 /system[enter] 10. Type dd if=/system/bin/sh of=/system/bin/su[enter] 11. Type chmod 4755 /system/bin/su Sorry, you'll need to get this from the market place, I couldn't find the source .apk file to make it available for you to "adb install" it 12. GoTo Home -> Apps -> Market -> Terminal Emulator -> INSTALL -> RUN 13. Type su[enter] -> # 14. Type cat /sdcard/recovery_testkeys.img > /data/local/recovery.img[enter] 15. Type cat /sdcard/recovery_testkeys.img > /system/recovery.img[enter] 16. Type flash_image recovery /system/recovery.img[enter] 17. Press POWER -> OFF 18. Hold HOME + POWER -> Hold ALT + S -> INSTALL 19. Hold HOME + BACK -> REBOOT (my phone rebooted by itself after the update)
Lastly, update the Radio firmware to RC33, using JesusFreke's package ( http://jf.andblogs.net/ ) 1. Download the package - JFv1.42_RC33.zip - 42 megs! - 42,498,803 bytes to c:\android\simple 2. push it to the phone: C:\android\simple>adb push JFv1.42_RC33.zip /sdcard/update.zip C:\android\simple>adb sync 3. Turn off phone 4. Turn ON phone while holding the HOME key 5. Open the keyboard, press ALT + L to see a list of all options 6. Press ALT + S, to install the update.zip from the SD card. 7. Restart phone. Under settings, phone info, you should see your latest updates.
At any time, start the teminal emulator program, and type: su -[enter] and then type id[enter] and you should see a message indicating that you are root, something like: "uid=0(root) gid=0(root) groups=3003(inet)", etc.
To add a comment, question or concern, please click on "New Thread" in the message board below:

eXTReMe Tracker