Ivan Femia

How to install Eclair 2.1 on HTC Hero

Android Eclair ReleaseHi everybody,

I was wondering if I have to wait for HTC official firmware update for Hero or install a custom ROM in order to use the new Eclair Android System and I choose to install a new custom ROM, the AOSP Eclair 2.1.

What is AOSP Eclair 2.1?

The Android Open Source Project (AOSP) is the public, open-source repository used by Google and phone carriers and manufacturer’s to power their phones. It lags significantly behind the ‘private’ repository used by those companies, but the updates do come eventually.  (source Modaco)

In this post I would like to give you a step by step guide to install AOSP Eclair 2.1 on a ‘virgin’ HTC Hero no brand. I’m not responsible for any damage or malfunction on your device, go ahead  is only your choice.

EDIT: Read comments for updates

1. Backup all your dataMyBackup Pro

First of all you need to backup all your data, on Android Market there are a lot of applications, I like and I used MyBackup Pro. Use the QR Code to install it.

2. Install SDK on your PC

Go to Android Developers web site and download the latest Android SDK. On Windows system create a new folder android-sdk under the root C:\ and unzip the archive in that folder.

3. Root your Hero

Now you have to obtain root access on your device.

  1. Go to Settings->Application->Development and enable USB debugging option.
  2. Check your current rom version Settings->About Phone if your build number is lower than 2.73 go to step 15.
  3. Go to Settings->Application and make sure Unknown source is checked ON.
  4. On your phone, goto Settings, SD card and phone storage, and click Unmount SD card.
  5. Click Format SD card (it should automatically remount after this).
  6. Plug the phone into the compuer via USB, then pull down the notification bar and click on the SD card notification. Then click mount.
  7. Download this APK and recovery image and save it to your computer:
    flashrec-1.1.2-20090909.apk
    Cyanogen’s / Modaco Hero Recovery Image
  8. Extract the cm-hero-recovery.img out of the MoDaCoPatchedRecovery-1.0.zip and put it somewhere on your computer.
  9. Save both the cm-hero-recovery.img and the flashrec-1.1.2-20090909.apk to your computer, then copy them both to your SD card (do NOT put them inside any folders on the SD card, just put them in the root of the SD card itself).
  10. Unplug the phone from the computer once they are downloaded to the SD card.
  11. Goto the Market and download any file manager program if you do not already have one. These are some Astro, IO Filemanager, Linda File Manager.
  12. Open the file manager and goto SDCard and then find the flashrec-1.1.2-20090909.apk file and click on it.
    If asked, tell it to use Package Installer to open it. It should automatically install the apk.
  13. Open the FlashRec program and click on Backup Recovery Image and wait for it to finish.
  14. Once done, click on the empty text box in the FlashRec program and type:
    sdcard/cm-hero-recovery.img
    Then click on the Flash Custom Recovery Image button and wait for it to finish. Be sure to have typed the right command.
  15. Restart into bootloader (switch on holding the back button)
  16. Extract the latest GSM Hero recovery IMG into your android SDK/tools folder (C:\android-sdk\tools).
  17. Download Superuser.zip and extract the contents to your SDK/tools folder (C:\android-sdk\tools).
  18. Plug in USB
  19. (Skip this step if your build number is greater or equal than 2.73 ) Open a command prompt from the tools directory and type the following command:
    c:\android-sdk\tools> fastboot boot recovery-RA-hero-v1.5.2.img
  20. Perform a Nanodroid Backup (recomended) from the recovery menu, once complete, continue.
  21. Then type the following commands in CMD exactly as they are here, hitting enter for a new line.
    c:\android-sdk\tools> adb shell mount /system
    c:\android-sdk\tools> adb push su /system/bin/
    c:\android-sdk\tools> adb shell chmod 4755 /system/bin/su
    c:\android-sdk\tools> adb push Superuser.apk /system/app/
    c:\android-sdk\tools> adb shell reboot
  22. Now you have rooted your Hero.

4. Install the new ROM

In this step you can install whatever custom ROM you like, I will describe how to install AOSP Eclair 2.1

  1. Download the latest AOSP Eclair custom ROM from AOSP Eclair 2.1 r2 for GSM Hero. Currently aosp-2.1-jnwhiteh-r3.zip is available.
  2. Rename it in update.zip
  3. Put the zip on the root of your SDCard
  4. Ensure that you have a backup of your SDCard
  5. Reboot your phone  (switch on holding the home button until a black console screen appears)
  6. I prefer to do a wipe even the ROM’s author does not require it, so from menù select ALT-W
  7. Then install the new custom ROM, from menu choose flash. It could take some minutes.
  8. Reboot you device, the first boot is a little bit slow.
  9. Here we are this is you new Eclair Rom on Hero

5. Install GoogleBits

The last step is to install GoogleBits, it includes all of the relevant applications, many of them being the latest from the Nexus One.

  1. Download GoogleBits-sdk7-v1.7-signed.zip (RapidShareMegauploadDepositFileHotFile)
  2. Unzip it in c:\sdk-android\tools\GoogleBits\
  3. Connect USB to your PC
  4. Type the following commands:
    cd c:\android-sdk\tools\
    adb remount
    adb push GoogleBits\system\framework /system/framework
    adb push GoogleBits\system\lib /system/lib
    adb push GoogleBits\system\app /system/app
    adb reboot
  5. Configure your applications
  6. You have finished

A video of the new ROM on my device will be available soon

Hope this could help any of you.

Resources:

c:\android-sdk\tools>

Related Post

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

19 Comments

[...] This post was mentioned on Twitter by narres and Now Solutions, plinky.it. plinky.it said: How to install Eclair 2.1 on HTC Hero http://goo.gl/fb/8rnK [...]

Ivan FemiaJanuary 25th, 2010 at 9:50 AM

Release 3 available for this ROM…

AOSP-Eclair-2.1-jnwhiteh-r3:
* An automatic backup and restore script makes updates seemless
* Brought back the old init.rc to solve the issue with LED notifications
* Changed launcher so it uses five home screens instead of the default three

And also GoogleBits 1.7

Links updated

uberVU - social commentsJanuary 25th, 2010 at 11:30 AM

Social comments and analytics for this post…

This post was mentioned on Twitter by plinkyblog: How to install Eclair 2.1 on HTC Hero http://goo.gl/fb/8rnK...

Ivan FemiaJanuary 26th, 2010 at 11:57 PM

Changed ROM…. Now I’m trying VillainROM 1.2 (HTC Sense Enabled Android 2.1 – STABLE!) @ http://forum.xda-developers.com/showthread.php?t=622468&page=38

Ivan FemiaJanuary 28th, 2010 at 12:38 AM

Ok AOSP-Eclair-2.1-jnwhiteh-r4 is the best one… No Sense UI

Ivan FemiaJanuary 31st, 2010 at 11:49 AM

Finally I get the right one… r4 has battery drain problem and camera autofocus…
Now I’m on KaguDroid ROM and everything works fine…

KaguDroid 1.2
GoogleBits-sdk7-1.9-signed

Official post: http://htcpedia.com/forum/showthread.php?p=37462#post37462

Install SoftwareFebruary 5th, 2010 at 9:43 PM

Another great post.
Thanks for the tips and help.
Everyone, bookmark this site.

[...] Oorspronkelijk geplaatst door Dennis Zijn er goede ervaringen met custom 2.1 roms op dit moment? Zelf draai ik de MCR 3.2b nog steeds 1.5 cupcake gebaseerd maar wil wel een gok wagen naar een goede 2.1 rom Misschien open-eclair voor Hero proberen ! How to install Eclair 2.1 on HTC Hero | Plinky Blog [...]

Ivan FemiaMarch 13th, 2010 at 3:35 PM

Currently on Kagudroid 1.3 JIT

http://htcpedia.com/forum/showthread.php?t=2149

Stable, pretty fast, no battery drain and working camera!!!!

cdprinceApril 26th, 2010 at 11:17 PM

my phone came from England, I think. When I try and use the Recovery Flasher I can put the location of the recovery image in the app, but download recovery image is grayed out and cant be chosen and when I hit restore backup image it completes, but the button reboot into recovery mode cant be chosen.

Other problems are adb shell flash_image recovery /sdcard/recovery-RA-hero-v1.6.2.img is not allowed on my HTC Hero. fastboot boot is not allowed on my device either. I would like to install an AOSP image on my OTC/stock Hero phone, but cant. I can do it on my ADP1 phone though.

Ivan FemiaApril 26th, 2010 at 11:20 PM

Hi cdprince,

I have a UK White Hero too. Is your build number lower than 2.73?

Regards.

cdprinceApril 26th, 2010 at 11:40 PM

Build num 2.73.405.5 Mine is black

This is what I have tried:
cdprince@ubuntu $adb shell flash_image recovery /sdcard/recovery-RA-hero-v1.6.2.img
error writing recovery: Permission denied

cdprince@ubuntu $ adb push ~/phone_HERO/superuser/su /sdcard/
554 KB/s (34612 bytes in 0.060s)
cdprince@ubuntu $ adb shell /sdcard/su
/sdcard/su: permission denied

@ubuntu $ adb shell mount -rw -t yaffs2 /dev/block/mtdblock3 /system
mount: Operation not permitted

cdprince@ubuntu $ adb shell mount -rw -o dirsync -t vfat /dev/block//vold/179:1 /sdcard
mount: Operation not permitted

cdprince@ubuntu $ fastboot devices
HT9C1L901806 fastboot
cdprince@ubuntu $ fastboot boot ~/phone_HERO/recovery-RA-hero-v1.6.2.img
downloading ‘boot.img’… FAILED (remote: not allow)

cdprince@ubuntu $ adb push /home/cdprince/phone_HERO/recovery-RA-hero-v1.6.2.img /sdcard/
459 KB/s (3895296 bytes in 8.272s)
cdprince@ubuntu $ fastboot boot /sdcard/recovery-RA-hero-v1.6.2.img
cannot load ‘/sdcard/recovery-RA-hero-v1.6.2.img’

cdprince@ubuntu $ adb shell mount
rootfs / rootfs ro 0 0
tmpfs /dev tmpfs rw,mode=755 0 0
devpts /dev/pts devpts rw,mode=600 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
tmpfs /sqlite_stmt_journals tmpfs rw,size=4096k 0 0
/dev/block/mtdblock3 /system yaffs2 ro 0 0
/dev/block/mtdblock5 /data yaffs2 rw,nosuid,nodev 0 0
/dev/block/mtdblock4 /cache yaffs2 rw,nosuid,nodev 0 0
/dev/block//vold/179:1 /sdcard vfat rw,dirsync,nosuid,nodev,noexec,uid=1000,gid=1000,fmask=0000,dmask=0000,allow_utime=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8 0 0
cdprince@ubuntu $ adb shell mount -rw -o dirsync -t vfat /dev/block//vold/179:1 /sdcard
mount: Operation not permitted
cdprince@ubuntu $ adb shell mount -rw -t yaffs2 /dev/block/mtdblock3 /system
mount: Operation not permitted
cdprince@ubuntu $ adb push ~/phone_HERO/superuser/su /sdcard/
554 KB/s (34612 bytes in 0.060s)
cdprince@ubuntu $ adb shell /sdcard/su
/sdcard/su: permission denied
cdprince@ubuntu $adb shell flash_image recovery /sdcard/recovery-RA-hero-v1.6.2.img
error writing recovery: Permission denied

Ivan FemiaApril 26th, 2010 at 11:50 PM

Did you try to perform first?

cdprince@ubuntu $adb remount
cdprince@ubuntu $adb shell

try to do all the operation with root.

Regards

cdprinceApril 26th, 2010 at 11:58 PM

Thanks for your response. I am not sure what you mean by try to do all the operation with root.

cdprince@ubuntu $ adb root
adbd cannot run as root in production builds

cdprince@ubuntu $ adb shell sudo remount
sudo: permission denied

Ivan FemiaApril 27th, 2010 at 12:01 AM

Sorry,

try this:
cdprince@ubuntu $ su -

#adb remount

I hope this would work

cdprinceApril 27th, 2010 at 12:22 AM

I tried that, but it did not work and I would be very surprised if it did work.
I was going to try creating a gold card next:
http://forum.xda-developers.com/showthread.php?t=572683

If you can think of anything else let me know.
Thanks.

cdprinceMay 3rd, 2010 at 6:55 PM

I was successfull using:
http://theunlockr.com/2009/08/27/how-to-root-your-htc-hero-in-one-click/
and:
http://theunlockr.com/2009/08/27/how-to-load-a-custom-rom-on-your-htc-hero/
But I still could not use fastboot, but I am rooted.
I used to load ROMs using:
fastboot flash boot boot.img
fasatboot flash system system.img
fastboot flash recovery recovery.img
fastboot flash userdata userdata.img
fastboot reboot

This worked on ADP1, but now I think the commands must be given with adb shell as root for a stock/OTC phone. I am not sure the exact syntax, but I know the adb shell help doesnt contain all the commands that can be given. So a little help would be nice.

Faisal BasraJuly 12th, 2010 at 8:33 PM

I always got “Back FAILED: Could not run command” while doing Backup Recover Image.

Leave a comment

Your comment