Friday 21 November 2014

Android USB Remote Debugging

How To Remote Debug the Android app in mobile:

  •        Enable the USB debugging in your mobile : Go to Settings àSystemàDeveloper Options.        If Developer options is not visible (Android Version 4.4 n later) go to About Phone , tap on      ‘Build number’ few times till it enables the developer options.

  •        Now Connect your mobile to the Developent PC through USB cable, before that u need to install the ‘Android USB Driver’ for your mobile, Windows USB driver will not be enough to do remote debugging.


Can find the Android USB drivers for different OEMS,

OEM
Driver URL
Acer
alcatel one touch
Asus
Dell
Foxconn
Fujitsu
Garmin-Asus
Hisense
HTC
http://www.htc.com 
Click on the support tab to select your products/device. Different regions will have different links.
Huawei
Intel
KT Tech
Kyocera
Lenovo
LGE
Motorola
MTK
Oppo
Pantech
Pegatron
Samsung
Sharp
SK Telesys
Sony Mobile Communications
Teleepoch
Toshiba
Yulong Coolpad
Xiaomi
ZTE


  • How to install the Android USB driver:

         >> Download the corresponding driver from one of the above links.
         >> GO to My ComputeràManageàDevice    right side u can see the device connected under             'other devices’ right click n point out to the downloaded driver
  • Now Open the Android eclipse project and go to DDMS tab  , the connected mobile name should be listed in the left side under the tab "Devices"     OR Open the command prompt and enter the command "adb devices" should list the device connected provided that "SDK/Platform-Tools" path should be in the environment variable 'Path'