Jun 25, 2010

htc hero on android. (configure for ubuntu )

For to progam each android phone we need to define rules. the rules files are in
  • /etc/udev/rules.d/
For HTC Hero to work with android ubuntu.  First get android tools, eclipse, adt-plugin and bla blas required....( that is a common procedure ).


Next,  
  • sudo vim /etc/udev/rules.d/51-android.rules 
Add the following line to that file and save it.

SUBSYSTEMS=="usb", SYSFS{idVendor}=="0bb4", MODE="0666"

Next open a file 
  • sudo vim /etc/udev/rules.d/90-android.rules 
add the following two lines to that.
    SUBSYSTEM=="usb",ATTR{idVendor}=="1bb4",ATTR{idProduct}=="0c02",SYMLINK+="android_adb"
      SUBSYSTEM=="usb",ATTR{idVendor}=="0bb4",ATTR{idProduct}=="0c01",SYMLINK+="android_fastboot"

      Now next
      • sudo /etc/init.d/udev restart
      • adb kill-server
      • adb start-server
      • adb devices
      Okie Now you will see the following 

      List of devices attached 
      HT99FL905936 device

      PS: if you are working with the patch adb used for Samsung Galaxy. Replace it with the default adb. That ( adb from the android sdk) adb is enough for this cell ( HTC Hero )...

      Important: Check settings-->applications-->Unknown sources and in the Development check everything ( usb debugging, stay awake, allow mock locations )

      Have a nice day.....

      For Web Developer

        open -a "Google Chrome" --args --disable-web-security