[myTouch 3G, Magic General] alex_canada:
This is the procedure I used to root my Rogers' Magic and worked just fine...I guess if you do this from the beginning that will work for you too :)

I have not created this list or did the research for it, another great man has done it! Kudos!

MANUAL PROCEDURE FOR ROGERS MAGIC

Status of script will be written at bottom of file

.

You must have ADB working to connect to your magic before this procedure will work.

On XP machines, you can install HTC sync on your PC, put the phone into USB-debugging

and connect it to the PC. The correct drivers should install automaticly, if not, Google will

be your friend.

.

1. Make sure that the listed files are present in the folder with the Rootme.bat file

.

a) update-cm-5.0.8-DS-signed.zip

b) bc-5.0.8-ebi1-signed.zip

c) gapps-ds-ERE36B-signed.zip

d) exploid

e) Radio_HTC_PVT_32A_3.22.26.17.img

f) hboot-1.33.2010.img

g) recovery-RA-sapphire-v1.7.0H.img

h) update-hboot-1.76.2007-signed.zip

i) recovery-RA-hero-v1.6.2.img

.

2. Connect your magic to your PC and enable USB debugging on your phone.

.

3. Open up a command window and navigate to the directory containg the data

files that need to be sent to your phone.

.

4. Using the syntax "ADB PUSH {file name} {location}" push the following files to

phone. Pay attention to the "/" and make sure you don't miss or add any

a) update-cm-5.0.8-DS-signed.zip	to folder /sdcard/

b) bc-5.0.8-ebi1-signed.zip	to folder /sdcard/

c) gapps-ds-ERE36B-signed.zip	to folder /sdcard/

d) exploid	to folder /sqlite_stmt_journals

e) recovery-RA-hero-v1.6.2.img	to folder /data/local

f) update-hboot-1.76.2007-signed.zip	to folder /sdcard/

.

Eg: adb push update-cm-5.0.8-DS-signed.zip /sdcard/

.

5. Run the following commands in the command window

a) adb shell chmod 777 /sqlite_stmt_journals/exploid

b) adb shell /sqlite_stmt_journals/exploid

.

6. Turn bluetooth on and then off on your magic

.

7. Unplug and then replug the usb cable from your magic

.

8. Enter the following commands into the command window

a)adb shell	(you will get a $ prompt)

b)rootshell	(you will be prompted for a password)

c)secretlol	(you will get a # prompt)

d)chmod 666 /dev/mtd/mtd1

e)exit	(you will be back to $ prompt)

f)flash_image recovery /data/local/recovery-RA-hero-v1.6.2.img

g)exit

.

9. Turn off your phone.

.

10. Boot into recovery by holding the Home + Power keys.

.

11. Using the trackball, select "Flash ZIP from SD Card"

.

12. Select update-hboot-1.76.2007-signed.zip

.

13. Press the HOME key to confirm selection.

14. Reboot phone as requested. It will boot back into recovery.

14. Enter the fillowing into the command windown

a)adb shell reboot bootlaoder

.

15A. When phone has booted into fastboot enter the following into the command window.

a)fastboot flash radio Radio_HTC_PVT_32A_3.22.26.17.img

b)fastboot flash hboot hboot-1.33.2010.img

c)fastboot flash recovery recovery-RA-sapphire-v1.7.0H.img

d)fastboot reboot-bootloader

.

16. When phone has booted into fastboot enter the following inot the command window.

a)fastboot erase system -w

b)fastboot erase boot

c)fastboot oem powerdown

.

17. After phone powers off, reboot into recovery by holding Home + Power keys.

.

18. Using the trackball, select "Flash ZIP from SD Card" and flash the following files.

Select the home key to confirm each file

a)update-cm-5.0.8-DS-signed.zip

b)bc-5.0.8-ebi1-signed.zip

c)gapps-ds-ERE36B-signed.zip

.

19. After the last file has finished flashing reboot the phone normally.

It can take anywhere from 5-15 min for the first boot.