Ask your questions HERE.
Before you explore, it is a great suggestion that you read THIS POST first. This will explain some of the basic terms that will be used in this post. It will also help you to ask the right question, the right way.
I believe most of us are still newbies in the world of Android considering its still very new. Therefore, its important for us to share our knowledge together and make the Android community a big hit on LYN too. I decided to dedicate a little of my time out of my busy life into Android and have a little fun with this awesome creation of Google. Please note that while I try to provide as noobie guide as possible, I may also make mistakes and I hope you guys will help me too. (I'm also a human, and I have a life outside of computers world too)
Before we begin, I would like to promote our Malaysian application - Radio Songs
Bear in mind, your data will be LOST in the process so make sure you have backup of everything!
While I have done this many times and succeeded, I do NOT held myself responsible if anything happens to your HTC. Although its likely anything bad will occur if you follow the steps accurately.
I also suggest you to use a 8GB SDHC class 6 memory card. Your HTC is capable of supporting up to 32GB, but 16GB onwards are known to have problems when it comes to downgrading your firmware.
Last but not least, follow me on Twitter if you have an account. And have fun with your super Hero ;)
DOWNLOAD THE ULTIMATE PACKAGE HERE. THERE ARE THREE ZIP FILES TO DOWNLOAD:
I suggest you use jDownloader to download these files so you just add the links and let it do its job.Otherwise, feel free to download them one-by-one too. No harm.
Archive 1
Archive 2
Archive 3
Archive 4
Current version uploaded:
AmonRa Recovery console with CyaNoGen - recovery-RA-HERO-v1.5.2
Rooted Hero Firmware - update-hero-generic-2.73.405.38-rooted-signed
Radio Baseband version - update-hero-radio-63.18.55.06JU_6.35.08.29-signed
MoDaCo custom ROM - 3.0-update-hero-modacocustomrom-core-signed
Chinese MoDaCo custom ROM - 2.8-update-hero-modacocustomrom-core-chinese-signed (2.9 is yet to be released)
MoDaCo enhanced ROM - 3.0-update-hero-modacocustomrom-enhanced-signed
Bootsounds - 3.0-update-hero-modacocustomrom-bootsounds-signed
Step 1 - Setting up your Environment with Google SDK
Google Android uses the ADB (Android Debug Bridge) to connect your Hero to your preferred OS. I am personally a Mac user, but since most of us use (or have) Windows, I will assume Windows as the main OS communicating with the HTC Hero.
Lets begin. First of all, download the latest SDK from Google:
Download Google Android SDK here.
Once you have it, I suggest you to unzip your files into C:\ so you have the following path:
C:\AndroidSDK\tools (this will be the tools folder within the SDK)
Once you have done that, you need to enable the variables on global level. To do this, follow these steps:
1. Right click My Computer
2. select Properties
3. Under "Advanced" tab, click the "Environment Variables" button.
4. In the dialog that appears, under "System Variables", double click on "path".
5. At the end of the list, add a comma, and then type in the address above where your tools folder is located. (In our case, C:\AndroidSDK\tools)
Thats it. Your computer is now set for ADB access
Also, download fastboot for your ADB. You can get it from here (find "fastboot.exe"):
http://developer.htc.com/adp.html
For windows users, move the fastboot.exe file to <sdk>/tools
For mac and linux users, you can install it anywhere.
Many people have been asking me how to add the SDK to MacOSX. I personally use Mac too, so I'll add the guide for your convenience here:
» Click to show Spoiler - click again to hide... «
Step 2 - Installing the recovery console
1. Find this file in the archive:
recovery-RA-HERO-v1.2.3.img
2. Move the file to your SDK\tools folder (in my case C:\AndroidSDK\tools)
3. In your computer, hit start -> run.. (or search in Vista) -> type "cmd" and hit Enter. Your command prompt will load.
4. Type this line by line:
CODE
adb shell reboot bootloader (hit Enter)
fastboot boot recovery-RA-HERO-v1.2.3.img (hit ENTER)
adb shell mount /sdcard (hit ENTER)
adb push recovery-RA-HERO-v1.2.3.img /sdcard/recovery-RA-HERO-v1.2.3.img (hit ENTER)
adb shell flash_image recovery /sdcard/recovery-RA-HERO-v1.2.3.img (hit ENTER)
adb shell reboot (hit ENTER)
fastboot boot recovery-RA-HERO-v1.2.3.img (hit ENTER)
adb shell mount /sdcard (hit ENTER)
adb push recovery-RA-HERO-v1.2.3.img /sdcard/recovery-RA-HERO-v1.2.3.img (hit ENTER)
adb shell flash_image recovery /sdcard/recovery-RA-HERO-v1.2.3.img (hit ENTER)
adb shell reboot (hit ENTER)
P/s: If you are getting "FAILED" error on "fastboot boot recovery-RA-HERO-v1.2.3.img", I suggest you use "Flashrec.apk" to achieve that. You can install it using the market (but many asian HTCs do not have market pre-installed. so you can download it manually and install using a file manager on your android)
Here's the link to the page:
http://zenthought.org/content/project/flashrec
or download it directly:
http://zenthought.org/system/files/asset/2...-20091107-2.apk
Then you will be good to go.
Use flashrec. Run it. Then, click on Backup Recovery Image and wait for it to finish.
After that, click on the empty text field in the FlashRec and type the recovery img file. Make sure you check the version you are using! Type as following:
/sdcard/Recovery-RA-HERO-v1.2.3.img
Then click on the Flash Custom RecoveryImage button and wait until it finishes.
There..Now, in order to launch your recovery console, all you have to do is press the "Power" and "Home" button TOGETHER. Keep perssing until a screen with green text loads. That will mean you are in your recovery console already
Step 2 - Installing the rooted generic HTC ROM
Now, you need to flash your HTC ROM with a rooted firmware. Follow the instructions:
1. Find this file in the archive:
update-hero-generic-2.73.405.38-rooted-signed.zip (rename the ZIP file to "update.zip")
2. Find this file in the archive:
update-hero-radio-63.18.55.06JU_6.35.08.29-signed.zip (rename the ZIP file to "radio.zip")
Save both files to your SD card (Again, NOT IN ANY FOLDER!)
3. Launch your recovery console (you already know how to do this. Read above)
4. Perform a FULL NANDROID BACKUP (in case anything gets screwed up)
5. Select "Apply sdcard:update.zip" -> wait for it to finish flashing.
6. Select "Apply sdcard:choose zip" -> select "radio.zip" from the list, and let it flash.
**Note: You can reboot to your system if you want, or you can carry on to the next step and finish off one go**
Step 3 - Installing MoDaCo custom ROM
1. Go to your recovery console.
2. Select USB mass storage on
3. Insert these files into the SDcard (NOT IN FOLDER)
- 2.9-update-hero-modacocustomrom-core-signed.zip (The Awesome ROM)
- 2.8-update-hero-modacocustomrom-core-chinese-signed.zip (If you need Chinese support, then install this. Otherwise, skip it)
- 2.9-update-hero-modacocustomrom-enhanced-signed.zip (This will install Wap Browser, Plurk Client and Business Card scanner. I dont use this coz I dont need them. If you want, you can also save it)
- 2.9-update-hero-modacocustomrom-bootsounds-signed.zip (Install this if you want the boot sounds. The HTC logo and the cute android in startup sounds. Otherwise, it will be silent - in case you find the sound annoying)
4. Use "Apply sdcard:choose zip" to apply all the files above one by one (in order if you are installing more than just the modaco ROM)
Thats it. Now, for the final cut, we are going to flash the default HTC kernel and install a special one which has optimized the speed and performance of your HTC Hero :) This release is rather rare as it is custom compiled by a favorite programmer of mine :)
Note: Teknologist's kernel now is compiled with MoDaCo custom ROM, so that step is no longer needed in this tutorial. If you don't understand what this means, don't worry about it. You didn't lose track. It's for our Hero "Otai"s who have much experience.
Okay, now you have all the necessary stuff installed to your HTC Hero. Time to optimize the SD card for the best performance!
We are using the Linux based kernel, so it is best to have ext3 or ext4 partition for your application. Forget all the swaps that you find on other forums. That will reduce the life of your SD card. This kernel that we are using is already optimized for use without a swap partition! ;)
Step 4 - Optimizing the SD card and partitioning for application installation to SD card
This guide may be a little advanced to some users. However, if you have followed EVERYTHING so far, including successful SDK installation, then this will not be a problem too
I use ext4 filesystem because I find it the fastest among others. It does not have much difference from ext3, so the choice is yours. I will provide the guide for everything though.
Here we go:
1. Type the following:
CODE
adb shell reboot recovery (hit ENTER)
adb shell (hit ENTER)
adb shell (hit ENTER)
2. It will become # prompt now. Type the following to execute Linux gparted in your cmd.
CODE
parted /dev/block/mmcblk0
3. Type the following to see if there are any partitions in your SD card:
CODE
print
4. IF you see any partitions, REMOVE them using the following command (depending on how many partitions you have). If you dont have partitions, skip to the next step :)
CODE
rm 1 (hit ENTER) <-- this will remove your first partition
rm 2 (hit ENTER) <-- this will remove your second partition
rm 3 (hit ENTER) <-- this will remove your third partition
rm 2 (hit ENTER) <-- this will remove your second partition
rm 3 (hit ENTER) <-- this will remove your third partition
5. Type "print" hit Enter, then look for your "Disk Size". Mine says "3964MB" since I'm using a 4GB HDSC card. Yours may be different (2GB/4GB/8GB/16GB). Write this down if you can't remember, because you will need this in the next steps!
6. Now, we do some Mathematics :) . We are going to spare 512MB of space on our SD card for applications installations, and the remaining will be used for our storage. Now, remember your Disk Size which you remembered above? Minus it with 512MB. So in my case, we get:
3964 MB - 512 MB= 3452 MB
This said, my SD card has 3964 tracks.
Tracks 0 to 3452 will be used for storage and will be in fat32 format.
Tracks 3452 to 3964 will be used for apps installation (512MB) and will be in ext3 / ext4 when the installation ends.
Therefore, I will type the following command. Use your own values for your SD card accordingly:
CODE
mkpartfs primary fat32 0 3452
THen, type the following. Note that the below has NO ERRORS for my case. gparted can ONLY install ext2. Just install ext2 first. We will upgrade it to ext3 or ext4 later.
CODE
mkpartfs primary ext2 3452 3964
To check it, type:
CODE
print
Now you should see 2 partitions. The first one should be fat32 and the second one should be ext2.
Quit gparted by typing the following:
CODE
quit
**WHen you quit, there will be a text saying upgrade your blablablabla. Ignore it :)
When you are out of the gparted, type the following command. This will upgrade your ext2 to ext3.
CODE
upgrade_fs
Now you will have a ext3 partition. You can stop here if you are happy with ext3.
If you want to verify your ext3 partition, follow these steps:
» Click to show Spoiler - click again to hide... «
If you want to upgrade your ext3 to ext4, follow these steps:
Type the following command in your cmd:
CODE
tune2fs -O extents,uninit_bg,dir_index /dev/block/mmcblk0p2 (hit ENTER)
e2fsck -fpDC0 /dev/block/mmcblk0p2 (hit ENTER)
e2fsck -fpDC0 /dev/block/mmcblk0p2 (hit ENTER)
Thats all :)
Wanna verify the ext4?
» Click to show Spoiler - click again to hide... «
Thats all!
Spread the love guys! Remember, you are awesome because you are Androider!
Keep Android free guys! ROOTing is not something you should pay for! Somethings in this world has to be free afterall. Don't show me your cash asking me to root for you - I will not respond! Learn this thing yourself or just use stock stuff otherwise. Once you learn it, do NOT use it for your earning benefits too. This should be ONE main thing that separates us from Apple iPhone community - Stay FREE!
This post has been edited by shahz: May 25 2010, 02:14 PM
Oct 31 2009, 03:13 AM, updated 15y ago
Quote





0.2508sec
0.41
6 queries
GZIP Disabled