Sunday, December 11, 2011

HTC Hero Root/Recovery and ADB (Debug Mode)

Not sure if this has been put anywhere yet but a noobs guide to Rooting and using ADB. If your new to Android lots of ADB commands in forums can look scary but its really not. This guide will hopefully help you understand it all.
Information from the Unlockr Video guide., I Recommend watching this first to help with understanding.
http://www.youtube.com/watch?v=7w_R4...layer_embedded
1. Download these 4 files:

Android SDK
http://developer.android.com/sdk/dow...ows-1.5_r3.zip
Fastboot (scroll to Fastboot tool and download the appropriate one for you computer’s OS)
http://www.htc.com/www/support/android/adp.html#s2
Fastboot is a command line tool used to directly flash the filesystem in Android devices from a host via USB. It allows flashing of unsigned partition images


CM-Hero-Recovery.img
http://rapidshare.com/files/26262114...covery.img.zip


Superuser.zip
http://forum.xda-developers.com/atta...9&d=1249225060

2. Once you download the SDK, extract the SDK files to “C:\AndroidSDK”. Then extract the fastboot program to the C:\AndroidSDK\tools\ folder.

 
3. Extract the CM-Hero-Recovery.img.zip contents into the Tools folder in the AndroidSDK folder on your computer.


4. Extract the Superuser.zip contents into the Tools folder in the AndroidSDK folder on your computer.


5. Turn off the phone, then turn it back on by holding down the Power and Back button (to enter bootloader mode).


6. Plug the phone into the computer via USB. Make sure that it says FASTBOOT USB instead of FASTBOOT now.


7. Your computer should say installing drivers right now (if this is the first time you have connected the phone in fastboot mode).

8. Goto the Start menu type cmd into the run section of the start menu and hit enter to bring up the Command Prompt.

9. Type the following into the command dos prompt on the computer (the black screen with white letters that just opened) while the phone is connected through USB, hitting enter at the end of the line:
   cd\
   cd androidsdk\tools\
   fastboot devices


10.
You should see a serial number pop up and the word fastboot to the right of it. This means that your USB drviers are all set up correctly and you can continue. If you do NOT see this, then you need to start over or Google for how to set up the USB drivers correctly.


11. If the serial number and the word fastboot next to it popped up, then go back to the command prompt on the computer and type
   fastboot boot cm-hero-recovery.img


12. Once the phone boots up into the recovery screen type the following in the command prompt on the computer: 
  adb shell mount /system
   adb push su /system/bin/
   adb shell chmod 4755 /system/bin/su
   adb push Superuser.apk /system/app/
   adb shell reboot

13. Once the phone reboots, click the Menu button and click Settings.

14. Goto Applications > Development and check the USB debugging on.

15. While the phone is still plugged in, goto the Command Prompt still up on your computer and type:
adb devices
You should see a serial number, which means the computer is seeing the device.

16. Then type:
  adb shell
  su

The phone should pop up an su request. Click Always Allow on the phone.

17. Type:
   adb reboot

18. Phone should reboot and you now have Root Access! Try downloading a program that needs root access and see if it works to test it out.
notes, I have a custom rom after step 16 I did not get the request rebooted and opened up shootMe and it asked for permission at that stage I clicked Always Allow

ADB (Android Debug Bridge) – Install App (ShootMe) From PC
If you are not a developer and just want custom roms and apps. You don’t need the full SKD, if you have ever looked at guides for that and been scared away. You only need the SKD from google,(which you downloaded to get root) and not the eclipse parts.
download ShootMe http://www.mediafire.com/?igmztlyzzwj (as this is a good test if root access worked)


Make a folder called apps in your tools folder
Make a folder called apps in your tools folder.

  C:\AndroidSDK\tools\apps

In the apps folder put all the APK files you want to install. 

Open CMD 
Change directory to tools

   cd \
   cd AndroidSDK\tools\

Now type:
   adb remount
   (this is to make sure phone is mounted safety first)

Now type:
  adb push apps\ com.bw.picme.local.apk /system/app/
   (Replace com.bw.picme.local.apk with the title of your apk for other installs. )

Now type:
   adb reboot
   (after you have pushed your apps do a restart. And everything should be installed fine)


Open the application and have fun.
Please note that the slashes are different from each directory.  The first uses “\” this is from your computer
Second uses “/” this is on your phone.


Taken From: http://htcpedia.com/forum/htc-hero/1523-noob-guide-htc-hero-root-adb.html

1 comment:

Danny Danials said...

Have you tried this new app Kaspersky Apk : this is really great.