Monday, April 26, 2010

Root HTC Magic

A lot of people have been looking for a way to root their HTC Magic which has been updated by the Sense UI RUU provided by HTC (RUU 3.05.***) The roms that can be rooted are listed below.
1) 3.05.861.2 1.76.0008H 6.35.08.29 N (Australia)
2) 3.05.631.7 1.76.0010H 6.35.10.18 N (Canada)
3) 3.05.401.3 1.76.0009H 6.35.08.29 N (Europe)
4) 3.05.720.3 1.76.0009H 6.35.08.29 N (India)

To root the Magic follow the steps listed below:
1. Download the test signed rom from the following link

http://www.multiupload.com/XQEH9NVGY7

2. If your HTC Magic is from Australia, Canada or India, you need to create a gold card to install this RUU Update. In order to do this, follow the step on the website linked below:

http://theunlockr.com/2010/03/10/how...te-a-goldcard/

3. After successfully creating the gold card, update your phone via the downloaded RUU with the gold card inserted in your phone.

4. When your phone has been updated, go to the link below and download the latest HERO recovery. (Save it to tools in Android SDK folder downloaded while creating the gold card)

http://forum.xda-developers.com/showthread.php?t=530492

5. Now in your phone go to settings>development and check USB debugging.

6. Open command prompt and go to the Tools folder in Android SDK that you downloaded to create the gold card.
Assuming that you have not changed the file name of the recovery, use the following commands:

cd C:\AndroidSDk\tools
adb push recovery-RA-hero-v1.6.2.img /sdcard/
adb shell
flash_image recovery /sdcard/recovery-RA-hero-v1.6.2.img (file name of the recovery you downloaded)

7. After the recovery has been flashed, go to the following link to download the ENG SPL for HTC MAGIC 32A (SPL: 1.76.2007)

http://www.4shared.com/file/21114537...07-signed.html

8. Now copy the SPL to your memory card.
adb push update-hboot-1762007-signed.zip /sdcard/

9. Restart your phone using the home + power key till it boots up into the recovery mode.
(or just type 'adb shell reboot recovery')

10. Using the 'Flash zip file' option from the recovery, select the SPL file from the memory card and flash the HBOOT on your phone.

11. Congrats, your HTC Magic is now ROOTED!!

12. Now you can install any rom for your phone including the cooked Android 2.1 roms. For Rogers I would suggest:

cursordroid Rogers 3.05 ROM with root (Thread: http://forum.xda-developers.com/showthread.php?t=634243)
http://www.theandroidkitchen.com/fil...ted-signed.zip


Note: I have just consolidated the info which will help you to root your magic. Credits go to orange_24 (http://forum.android.com.pl/showthread.php?t=10908)
papay007 (http://forum.xda-developers.com/member.php?u=2376996)
BeerGood - For editing the mistakes in my blog (http://forum.xda-developers.com/member.php?u=2355922)

HAPPY ROOTING!!

63 comments:

  1. You are amazing! I thought that nobody was going to bother rooting this little monster since most people have moved on to the newer phones. I'm going to try this right now, my only big question is can I keep my rom but just add root access? I don't really feel like reinstalling my apps, setting up my home screen again, and calling Rogers to get my data back since they will probably cut it within 24 hours of installing a custom rom. They always do...

    ReplyDelete
  2. Just a note: Maybe give thanks to Orange_24?

    Also, after rooting, do you need to change the recovery to Amon_Ra's Magic recovery? I believe most Magic custom Roms do not work with the Hero recovery.

    Thanks for the clear instructions.

    ReplyDelete
  3. To Casper: I believe Rogers allow you to sign a waiver if you don't want to use their Rom. After that, Rogers will restore your data, no matter what kind of Rom you are using.

    ReplyDelete
  4. No you cannot keep your old rom as to get the escalated privelleges you have to have to flash the new rom. You could make a backup but that again requires root. Plus if you don't want rogers to cut off your data, you can sign their waiver or install the rooted rogers rom from xda forums or the cursorsense rom.

    ReplyDelete
  5. This comment has been removed by the author.

    ReplyDelete
  6. This comment has been removed by the author.

    ReplyDelete
  7. I'm probably doing something pretty silly here, but...

    C:\downloads\android-sdk-windows\tools>adb shell
    # flash_image recovery /sdcard/recovery-RA-hero-v1.6.2.img
    flash_image recovery /sdcard/recovery-RA-hero-v1.6.2.img
    # flash_image recovery C:\downloads\android-sdk-windows\tools\recovery-RA-hero-v1.6.2.img
    flash_image recovery C:\downloads\android-sdk-windows\tools\recovery-RA-hero-v1.6.2.img
    error opening C:downloadsandroid-sdk-windowstoolsrecovery-RA-hero-v1.6.2.img: No such file or directory

    ??..

    it's in "tools" like was specified

    ReplyDelete
  8. Dave: Umm I did give credits to Orange_24. Read the last part. And there are certain roms that work with Hero recovery and others work with the old recovery. This is because the old recovery was made for the old radio and spl (Radio: 3.**.**.* ; SPL: 1.33.****) and the hero recovery was made for the new radio and SPL (Radio: 65.**** ; SPL: 1.76.****). So before downloading the roms, read their requirements and you will know which rom to install :)

    ReplyDelete
  9. Shayne: If your recovery is in the "tools" folder then use the following commands:

    # su
    # flash_image recovery recovery-RA-hero-v1.6.2.img

    ReplyDelete
  10. my apologies, I had meant to paste "C:\Users\Shayne Plesa-Naden>cd C:\downloads\android-sdk-windows\tools

    C:\downloads\android-sdk-windows\tools>adb devices
    List of devices attached
    HT9BANK00219 device


    C:\downloads\android-sdk-windows\tools>adb shell
    # flash_image recovery /sdcard/recovery-RA-hero-v1.6.2.img
    flash_image recovery /sdcard/recovery-RA-hero-v1.6.2.img
    error opening /sdcard/recovery-RA-hero-v1.6.2.img: No such file or directory
    #
    " instead

    ReplyDelete
  11. will an unrooted phone be able to be controlled a superuser?

    # su
    su
    # flash_image recovery /sdcard/recovery-RA-hero-v1.6.2.img
    flash_image recovery /sdcard/recovery-RA-hero-v1.6.2.img
    error opening /sdcard/recovery-RA-hero-v1.6.2.img: No such file or directory

    it doesn't seem to like it too much.

    ReplyDelete
  12. Read the commands i posted in comments carefully. There is no "/sdcard" instead there is only the file name after "flash_image recovery". My apologies for posting the wrong command in instructions

    ReplyDelete
  13. I tried it a couple different ways:

    # su
    su
    # flash_image recovery recovery-RA-hero-v1.6.2.img
    flash_image recovery recovery-RA-hero-v1.6.2.img
    error opening recovery-RA-hero-v1.6.2.img: No such file or directory

    C:\downloads\android-sdk-windows\tools>adb shell
    # su flash_image recovery recovery-RA-hero-v1.6.2.img
    su flash_image recovery recovery-RA-hero-v1.6.2.img
    su: exec failed for recovery Error:No such file or directory

    I'm really sorry to keep spamming your comments, but maybe it'll help someone as equally amateurish as I am. Thanks for your patience.

    ReplyDelete
  14. Maybe you need escalated command prompt on your computer. To do that type in cmd in the search bar when you click start. Right click the cmd and click open as administrator. Now use the same commands and it might work. Also make sure that the file name is exact as the one you type in the command.

    ReplyDelete
  15. Mmm, yeah, I tried.

    Don't worry about it for now, I'm going to leave it for a few hours and try it on my XP box instead.

    ReplyDelete
  16. I'm having the same problem. However, occasionally it will report no error, yet do nothing to the phone.

    Microsoft Windows [Version 6.1.7600]
    Copyright (c) 2009 Microsoft Corporation. All rights reserved.

    C:\Windows\system32>cd/users/william/desktop/mes trucs/android-sdk-windows/tools


    C:\Users\William\Desktop\Mes Trucs\android-sdk-windows\tools>adb shell
    # flash_image recovery recovery-RA-hero-v1.6.2.img
    flash_image recovery recovery-RA-hero-v1.6.2.img
    error opening recovery-RA-hero-v1.6.2.img: No such file or directory
    # su
    su
    # flash_image recovery recovery-RA-hero-v1.6.2.img
    flash_image recovery recovery-RA-hero-v1.6.2.img
    error opening recovery-RA-hero-v1.6.2.img: No such file or directory
    # su
    su
    # flash_image recovery recovery-RA-hero-v1.6.2.img
    flash_image recovery recovery-RA-hero-v1.6.2.img
    error opening recovery-RA-hero-v1.6.2.img: No such file or directory
    # flash_image recovery /sdcard/recovery-RA-hero-v1.6.2.img
    flash_image recovery /sdcard/recovery-RA-hero-v1.6.2.img

    ReplyDelete
  17. william - I may have solved your issue.

    what I had to do was from a dev wiki:

    Flashing your new image back onto the phone

    You will probably only ever be flashing boot images directly to the phone, given the fact that /system/recovery.img automatically flashes the recovery device for you (as noted above). If you have created a new recovery image, just stick it in /system/recovery.img and reboot. If you are flashing a boot image, stick it on your phone via adb (a tool included in the Android SDK):
    adb push ./mynewimage.img /sdcard
    Then, open a shell to your phone via 'adb shell', get root, and do the following two commands to flash your new boot image:
    # cat /dev/zero > /dev/mtd/mtd2
    write: No space left on device [this is ok, you can ignore]
    # flash_image boot /sdcard/mynewimage.img
    Reboot.

    I now have Amon Ra's recovery, though no current ROM. we'll see how it goes.

    ReplyDelete
  18. Is anyone else having the same issue with step 6, i type in the commands, but it always says something along the lines of directory does not exist, similar to the problems others are reporting, i guess what im really asking is how do i move past this

    ReplyDelete
  19. The BOZ, follow what I posted.

    If you want it in a more concise, easy to read manner, http://android-dls.com/wiki/index.php?title=HOWTO:_Unpack,_Edit,_and_Re-Pack_Boot_Images#Flashing_your_new_image_back_onto_the_phone.

    That allows you to get the recovery image working.

    You're "push"-ing the file to the SD card, and then telling the phone to flash from it's own SD card.

    ReplyDelete
  20. shayne. sorry to sound like a noob, but ever since rogers came out with the perfected spl, its been complicating thigs. Anyways do you think you could give the list of things to do, and commands to give in order to do it yourway, wiki isnt the best for directions. hope you can help, thanks

    ReplyDelete
  21. haha if you read my comments, you'll find we're probably in the same boat. I was failing through this till I stumbled on a solution by mistake.

    Anyways, follow everything in this blog up till #6.

    Instead, go in to start, run (or if you're in Vista or 7, type in the little box at the bottom) and type 'cmd', no quotes.

    then type the following commands:

    cd c:/android-sdk-windows/ (or wherever you saved it)

    cd tools

    adb devices (making sure your phone shows up, should be the phones serial number)

    adb push ./mynewimage.img /sdcard (where mynewimage.img is the htc recovery image, I can't speak for yours specifically)

    adb root (just make sure it says you're already root, this is what I did anyway. not necessary, but nice to know)

    adb shell (if you're at all familiar, this basically puts you in a linux terminal)

    # cat /dev/zero > /dev/mtd/mtd2
    (which should come out as saying:)
    write: No space left on device

    # flash_image boot /sdcard/mynewimage.img (where again mynewimage is the name of your hero recovery image)

    hopefully that's of some assistance. It's how I got mine working anyway.

    ReplyDelete
  22. when u type
    # cat /dev/zero > /dev/mtd/mtd2
    it said read only system file, and nothing happen still can't flash recovery image

    ReplyDelete
  23. again I apologize! you'll need to use mtd1 instead!

    for flashing the recovery as opposed to the boot, haha

    ReplyDelete
  24. mtd1 is correct. That's what fixed my issue.

    ReplyDelete
  25. hey shayne i followed your steps, all worked well except when i typed in #flash_image boot /sdcard/ recovery.img (for me) and it says error wrting boot: No space left on device

    ReplyDelete
  26. I got the exact same problem as the BOZ. Everything running fine and then it says the exact same thing.

    ReplyDelete
  27. Alright, I forgot to mount my SD-card (very stupid, I know), but now I just get the: No such file or directory -problem again. Any help? I've tried every solution I've been able to find so far

    ReplyDelete
  28. Hi, I have updated the blog wit the help of BeerGood (from xda-forums) as people pointed out many mistakes in it. My apologies for that

    ReplyDelete
  29. YEAH!!!! im finally rooted again. Thanks for all the help guys. Finally having it my way, with rogers.

    ReplyDelete
  30. I'm with Rogers and thinking about to root my Magic 32A. I'm sick waiting an official update for 2.1 that will surely sucks. Is anyone here with Rogers did that rooting procedure with success just like The BOZ? and which ROM did you install. I'd like to install CyanogenMod ROM but I'd have to downgrade the radio. I'm a bit afraid to do all this so I'd like to have some feedback about successful stories ;)

    ReplyDelete
  31. I am with rogers and I own a HTC Magic. I rooted my phone successfully from Sense UI 1.5 ROM and also switched my radio and hboot numerous times.

    ReplyDelete
  32. What is supposed to happen after the "flash_image" command? My phone doesn't do anything, is that normal? Can anyone let me know what their phone did after the flash command?

    ReplyDelete
  33. Looks like I figured it out! Thanks for this guide!! Now the next question is, are there any android 2.1 roms out there that will work with the rogers radio file and spl? has anyone installed any custom roms? Im curious as to see what other people have got working on their phones.. The CyanogenMod 5.0.7 gives me errors when i try to install it..

    ReplyDelete
  34. Hi. Do you know of any methods that can be used on a Magic in South Africa? Regards, Itai

    ReplyDelete
  35. Hi, can I use this method to root my magic?

    3.03.707.5 1.76.0007H 6.35.07.29 N (Singapore, Phillipin)

    ReplyDelete
  36. By the way, these are the details of my phone in South Africa:
    Image Version 3.05.421.3
    SAPPHIRE PVT 32A SHIP S-ON H
    HBOOT-1.76.0009 (SAPP10000)
    CPLD-12
    RADIO-6.35.08.29

    ReplyDelete
  37. Thank you, your method can root 3.03.707.5 1.76.0007H 6.35.07.29 N (Singapore)

    ReplyDelete
  38. I keep getting error 170 when i try the ruu i bought this phone a little why back came with sense ui ...

    ReplyDelete
  39. What if the RUU crashes every time I run it, after saying "Gathering information about the Android phone.Wait..." (translation from Russian)? The gold card is inserted.

    ReplyDelete
  40. Thanks for the instructions. Other than a weird error at the end of the RUU_Sapphire_europe, went well after improvising with fastboot/adb.

    But, cyanmod zip didn't work for me initially (I think because of the recovery flash).

    I ended up using recovery-RA-Magic32A-6.35-v1.6.2 after making my radio 6.35.10.18 and validating my SPL was 1.76.2007, and went with SuperEclair2.1V8.2 from xda. Now I'm 2.1 and happy.

    ReplyDelete
  41. I'm getting the same error 170 when I run the RUU. I have the goldcard in the phone, and usb connected. I can see the contents of the gold card it has 2 directorys ".footprints" and "rosie_scroll"

    ReplyDelete
  42. It was because I didn't have the Magic driver installed on the system I was using. I'm a Nexus user, didn't realize I needed that installed for the Magic.

    ReplyDelete
  43. This comment has been removed by the author.

    ReplyDelete
  44. I have been havin issues with making the gold card... I tried a 2GB Sandisk and an 8GB Kingston with no avail, all I get is to format the card when I test it.

    I will be trying to find a 2GB Kingston to see if this is will my issues

    ReplyDelete
  45. You might want to include this information on your blog, it might be handy in the furture.

    When I kept trying to flash the ROM I kept getting an 170 error when flashing.

    You need to ensure you have the HTC Sync software installed and install the driver manually thats located in C:\Program Files(x86)\HTC\HTC Driver and select "My HTC"

    You HAVE to use this specific driver or it will not be found

    ReplyDelete
  46. BTW once I fiured out the 107 error was caused by bad drivers I was able to use an 8GB Kingston card.

    ReplyDelete
  47. i got the error 131: customer id error... anyone facing this problem?

    ReplyDelete
  48. Ai, You need your goldcard inside your phone while you are flashing this rom

    ReplyDelete
  49. Great to see that the community was still active on this :)
    for myself i had the handset rooted before 911 bug and i was smart enough not to apply their mandatory update right away.

    ReplyDelete
  50. Thanks everyone! Been looking for a sensible way to root for months and this put it all together for me.

    Any ideas on a "dd" equivalent command for the hex editing so the non-Windows folks can make gold cards? I know the RUU update still requires Windows of course, but just curious.

    ReplyDelete
  51. i cannot do step 10 because the phone does not fully recovery boot, it stays stuck @ the htc magic screen.

    what do i do?

    ReplyDelete
  52. Hi there, thanks for a non-polish version :) I still seem to have a problem though: When running RUU it says

    1) bootloader OK
    2) radio_v2 OK
    3) Boot FAIL-IE

    1) Splash1 OK
    2) recovery OK
    3) Boot OK
    4) System OK
    5) Userdata OK

    When recovery booting, one of two things happen. Either 1) (most often) it reboots after 2-5 seconds, so I have time to choose the .zip, but not to complete update, or 2) it freezes at “press home to accept update, or any other to cancel”, and I cannot press anything (tried leaving it for ~15-20 min to ensure it wasn’t working)

    No SU app was installed.

    Any suggestions? Is it just that even european magic need goldcard? Or is it because of the "FAIL-IE" whe RUU'ing?

    @TQuid: there is an appon the marked called "goldcard helper" to make your sd into goldcard. Haven't tried it yet, since I'm visiting family far away from my extra SD, but it might do the trick for you..

    ReplyDelete
  53. Followed your steps but I am getting error 130 (model ID) when attempting to use the RUU. Any ideas? I have remade my gold card several times with no luck.

    ReplyDelete
  54. It worked like a charm, no problem in getting the root back after official Rogers 1.5 update

    ReplyDelete
  55. It works on my Rogers magic(with sense),Thank you so much!!!!!!
    1.76.0010 S-ON,3.05.631.7,6.35.10.18 N
    ==>
    1.76.0008 S-ON,3.04.401.2
    ==>
    1.76.2007 S-OFF

    ReplyDelete
  56. Two problems when doing this: my main PC always tells me that my battery isn't charged above 30% [even it it's fully charged] and won't run the RUU because of that.

    Second, when I tried running it on another computer, I get error 171, telling me that it can't connect via USB.

    Any insight? :/

    ReplyDelete
  57. error: [130] error id model

    :/

    i have made 2 goldcard using 2gb sandisk and kingstom...

    what´s wrong?

    ReplyDelete
  58. Thanks heaps! Two (silly) things that tripped me up were:
    1) When creating the gold card, I selected "Logical Disk" instead of "Physical Disk" under the Extras menu of the hex editor.
    2) The HTC Rom updater wouldn't work under Windows 7 - had to use Windows Vista (apparently it also works under XP).

    Thanks again, and thanks all for the helpful comments.

    ReplyDelete
  59. Hi everyone!

    I have a HTC MAGIC 32A.
    I followed the http://rootyourmagic32a.blogspot.com/
    but if I Restart my phone home + power (9 parts) then loaded
    recovery mode but I don't know choice because my phone restart.
    Why?
    Please help me!

    Thank

    ReplyDelete
  60. This comment has been removed by the author.

    ReplyDelete
  61. hi this article might be help you to make a simple way to root your android Rooting without PC

    ReplyDelete
  62. I liked the importance of keeping human/humane touch with the students and parents in this era of digital literacy. Samsung unlock code

    ReplyDelete