Friday, August 30, 2013

Renewing your HTC mytouch 4g phone (HTC Glacier)

How to Root and Install Android 4.3 Jelly Bean on your old t-mobile mytouch 4g phone (HTC Glacier)

Glacier

Before we start, please read the...

DISCLAIMER
Modifying or replacing your device's software will void your device's warranty, lead to data loss, hair loss, financial loss, privacy loss, security breaches, or other damage, and therefore must be done entirely at your own risk. No one but yourself is responsible for your actions. Good luck.
If you are a noob (newbie) like me, you can brick your phone/device and this more than likely voids your warranty. So If you feel that you are not ready to lose that device, don't do it. Proceed with extreme caution. You have been warned!!





So why root that old phone? Well there could be a myriad of reasons but here's mine 
  1. I am cheap - foremost reason
  2. I wanted the new features that the new andriod phones have (Google Now and such) 
  3. I wanted to be able to tether my laptop (wireless or USB) without paying extra (there goes that cheap again)
  4. I want to get rid of all the t-mobile bloatware which I think is the cause of the slowness of the phone (turns out I was right on this one).
  5. I wanted to learn how to do it 
  6. I wanted to see if I can extend the life of my phone - there goes that cheap again. 
  7. I had nothing to lose, if I bricked it, it was time to upgrade anyway but If successful, I don't need a new one then.
Find your own reasons and proceed with caution.

Let's start with the task list. 
  1. Unlock your phone
  2. Flash a recovery Image
  3. Create a backup of your existing Phone
  4. Flash your new ROM (this is your android)
  5. Flash your new Google Apps (including play store)
I have done this now on 3 different devices and I think that this is pretty much standard task list when rooting any phone/device. Completing the each task though can be complicated or easy depending on the device which is why I decided to write everything down. 

Unlocking your t-mobile mytouch 4g (HTC Glacier)

For this task, you would need 
  • HTC Drivers
  • HTCDEV account
  • USB cable for your phone
  • adb.exe, fastboot.exe, adbwinapi.dll (all found in HTCDEV)
  • Windows 7 (or 8) but I did mine on Windows 7
Follow these procedures
  • Ensure the HTC Drivers are installed on your PC. HTC Drivers can be found on the SDCARD that came with your phone (HTCDrivers.exe).
  • Create a folder in your PC anywhere (I suggest in c:\ so easier to get to). You can name it whatever you like e.g. c:\android\ . This will be the repository of all the files you will need (adb.exe, fastboot.exe, adbwinapi.dll, rom updates, images, etc)
  • Get yourself an HTCDEV account by going to www.htcdev.com.  Register and obtain a username and password. 
  • Once registered, login to htcdev.com and click on "Unlock Bootloader" then click on "get started
  • Choose "mytouch 4G *". That asterisk actually has a meaning - it means its a pain in the ass but continue on - Ill explain later.
  • Click on "Begin Unlock Bootloader" and follow the instructions. 
  • Go ahead and run the RUU - if its anything like mine, it would say that the hboot is version 2.3xx which is precisely the same version HTC is asking to upgrade. Go ahead with the update and it will probably fail. If it worked then good for you and proceed with unlocking. If it did not and you proceed to follow the instructions, you will get to a point where your will have to get the phone's OEM token identifier and you will probably get this
C:\android>fastboot oem get_identifier_token
...
(bootloader) [ERR] Command error !!!
OKAY [ 0.009s]
finished. total time: 0.009s
  • This is what that asterisk was all about. Even though the RUU update states that it is the same version, it is not. You have to update your hboot. It was a pain in the ass to figure this out. If you do run into this, follow these steps
  • Run the RUU Update again, and launch your task manager.
  • Look for the RUU update process, right click on the process and open the file location. This will take you to the temp folder where RUU extracted itself. Look for rom.zip
  • Copy that rom.zip to your c:\android folder
  • Go to bootloader again - adb reboot bootloader
  • fastboot devices // verify that the device is detected
  • fastboot erase cache //  Not sure if this is really needed but the guide I followed had this
  • fastboot oem rebootRUU // Boot into RUU - lets you flash hboot, radio, etc
  • fastboot flash zip rom.zip // rom.zip is the zip you extracted for the HTC RUU app earlier
  • fastboot reboot-bootloader // Reboots your phone to bootloader
  • Your phone will reboot and now your hboot has been updated. 
  • Go back to bootloader and you can now run the fastboot oem get_identifier_token
  • Proceed with the instructions from htcdev to unlock
You have now unlocked your phone! You are now free to load any custom rom!

Flash a recovery image for your t-mobile mytouch 4g (HTC Glacier)


Now that you have unlocked the phone we can now flash a recovery image. There are a lot of recovery images out there but I use clockwordmod - it seems to be the most stable and for me, the easiest to install. Let's proceed.
  • Go to http://www.clockworkmod.com/rommanager
  • Choose the mytouch 4G recovery. There are 2 versions, touch and regular. Difference is touch enables you to use the touchscreen during recovery and the regular does not (you have to use vol up and down buttons). Either will work but I recommend the 5.8.1.0 touch version. 
  • Download the recovery image to your c:\android\recovery-clockwork-touch-5.8.1.0-glacier.img and rename that file to c:\recovery.img (makes it easier to type later on)
  • Go to bootloader - adb reboot bootloader
  • fastboot flash recovery recovery.img
  • fastboot reboot
You have now flashed a recovery image.

Create a backup of your t-mobile mytouch 4g (HTC Glacier)

Now that you have your clockwordmod recovery image, you can now create a backup of your phone. Let's proceed
  • Go to bootloader - adb reboot recovery
  • Choose backup and restore
  • Choose backup
You have now successfully created a backup of your existing phone. The backup will be placed in your sdcard in clockwordmod folder. Copy this folder to your PC so you have a backup of your stock rom. You can now restore to your stock rom in case you need to. 

Flash your new ROM for your t-mobile mytouch 4g (HTC Glacier)


Now that you have a backup, we can now flash a new ROM. There are many options out there on the net. The one I have been using is from CM -  http://www.cyanogenmod.org/. Their latest official stable version for the HTC Glacier is CM 7.2 which is Android 2.3.7 (gingerbread) I believe and that was not good enough for me. I mean what's the point of all this if I can't get a later version. Luckily, there are other ROM providers that port the latest CM10.2 for the HTC glacier. It is unofficial CM release but its up to you if you want to use it.

To access these unofficial roms, go to the xda developer forum. Go to http://forum.xda-developers.com and type in HTC Glacier on the "Type in your device field". Go to mytouch 4g Development

You can now choose whatever ROM you like. The first one I tried was actually CM 10.1. I saw it from this guy .



This is Jelly Bean as well but it is CM 10.1 which runs Android 4.2. I wanted CM 10.2 with android 4.3 which is the latest. The risk of using a bleeding edge version is greater but I figured, what the hell, since I am going through this anyway, might as well go all the way.

The ROM I chose was http://forum.xda-developers.com/showthread.php?t=2404136. This is based on CM 10.2 (Android 4.3). Read the features and if it looks good, then proceed. 

There is a link for the ROM and GAPPS (google apps and play store) which you will need. Download both and save to your c:\android then copy both files to the root of your sdcard. Both links are in the forum but I have included them below. If they no longer work here, download it from the forum.

ROM: http://chronic-buildbox.dyndns-server.com/glacier/cm-10.2-20130824-Albinoman887-glacier.zip
GAPPS: http://goo.im/gapps/gapps-jb-20130813-signed.zip

Now that you have the ROM and GAPPS, you are now ready to flash your new ROM to your phone.  

  • Boot your phone into recovery again - adb reboot recovery
  • Choose wipe data / factory reset
  • Choose Yes - - delete all user data and wait for it to complete
  • Choose Install zip from sdcard
  • Choose zip from sdcard
  • Choose cm-10.2-20130824-Albinoman887-glacier.zip. This will be your new ROM which is based on CM 10.2 Android 4.3. Wait for it complete
  • Choose install zip from sdcard again
  • Choose zip from sdcard
  • This time choose your gapps gapps-jb-20130813-signed.zip.  This will be your google play store and google apps.
  • Reboot your phone
Most tutorials will then tell you that the process has been completed. Upon reboot and you see the CyanogenMod logo, then great it's working. Chances are though, the mytouch logo will appear and it will not do anything. It is just stuck there. If this happens to you (it did to me), you have to flash your boot image. To do so, follow these steps
  • Boot your phone to bootloader again - if you are already stuck on the mytouch logo screen, you will have to take out the battery and hold down the down volume and power at the same time to get into your bootloader. 
  • Connect your phone to your laptop via the USB
  • Extract the file boot.img from cm-10.2-20130824-Albinoman887-glacier.zip and place that file to your c:\android directory
  • fastboot devices // verify that the device is detected
  • fastboot flash boot boot.img //  boot.img is the file you extracted from the rom you downloaded
  • fastboot reboot // reboots your phone
You should now see the a circle with the CyanogenMod Logo on it. Congratulations, your phone is now running CM 10.2 with Android 4.3. Next time your phone reboots, it will recognize the new boot image and you now have a new phone!

I have it running for a few days now and so far so good. No major issues found just yet and the phone responds pretty good. Here are some screen shots. Credit goes to all the programmers of clockworkmod, Cyanogenmod, rootzwiki, XDA Developer albinoman887 for porting CM 10.2 to HTC Glacier. Also thanks to Goo.IM for hosting the gapps and the roms. Creating these ROMS I am sure took a very long time and then they have to host them so we can download it - please donate if you can. They don't force you to donate but if you can, please do so. You can find their donation buttons on their respective sites. Enjoy!!







6 comments:

  1. thanks man for this blog and the information...i am a Novice and i used the information on this blog "oneiricocelot.wordpress.com/2013/04/16/rooting-your-htc-my-touch-4g-glacier/" and my installed?flashed-on clockworkmod recovery 5.0.2.0 is not functional. Below are images of them:

    1. http://www.flickr.com/photos/109640227@N08/11663799195/

    and

    2. http://www.flickr.com/photos/109640227@N08/11664592896/

    Can you please help me fix it....Thank You

    ReplyDelete
  2. Secondly can you please attach the rom.zip used infastboot flash zip rom.zip from "2.32.531.1 PD1510000" so that I can download it separately and use it, since my HTC RUU app doesn't recognize my phone and gives me the error message below (in image):

    http://www.flickr.com/photos/109640227@N08/11673371184/

    I am a novice at rooting and would very much appreciate it if you can help me out.

    My email is pbwiafe@yahoo.com or bosamfo@gmail.com. Thank You

    ReplyDelete
  3. Please my Android version is 2.3 Gingerbread, can I still use this method?

    ReplyDelete
  4. hi when i command fastboot oem rebootRUU my htc mytouch 4g held
    Glacier pvt ship s-off
    hboot - 0.89.0006

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

    ReplyDelete
  6. Hi, your "how to" is great, however none of the links at "http://forum.xda-developers.com" work to get the roms. Is there a way to get them. Any guidance is appreciated. Thank you

    ReplyDelete