Magic Rooting
From Android Wiki
Rooting the Magic/Sapphire
First of all, everyone owes Haykuro a great big thanks for working on this and helping create the solution without even owning a magic. The following is his method just reworded slightly.
Note: If you lose power or reboot before completing step 7 you will have to start from the beginning because you will have lost your temporary root access.
- To gain root access on your HTC Magic/Sapphire you will need to download the magic-root-boot.img zip file and unzip it so that you have boot-new.img in a location you can find.
- Enable USB debugging on the device
- On your device, enter the bootloader by trying one of the following
- Turn off your device and while it is off hold down back while you press power.
- Turn off your device and while it is off hold down volume down while pressing power
- Make sure your usb cable is inserted and you have Fastboot installed and ready to use.
- Type the following commands on your desktop (not on the device):
-
fastboot boot boot-new.img
-
- wait for the following to flash and the phone to reboot:
-
downloading 'boot.img'... OKAY
-
booting... OKAY
-
- make sure you have ADB installed and run the following commands from your desktop (not on the device). Make sure the first command returns uid/gid = 0 or you are not root (on the device):
-
adb shell id
-
adb push boot-new.img /sdcard/boot-new.img
-
adb shell flash_image boot /sdcard/boot-new.img
-
- Download haykuros modified magic recovery, unzip it and run the following commands on your desktop:
-
adb push recovery-new.img /sdcard/recovery-new.img
-
adb shell flash_image recovery /sdcard/recovery-new.img
-
adb remount
-
adb push recovery-new.img /system/recovery.img
-
- You can now delete all .img files from your /sdcard (and from your desktop if you wish).
This gives you a modified boot and recovery which lets you have access to root and to flashing modified update.zip roms from the recovery.

