Showing posts with label Android. Show all posts
Showing posts with label Android. Show all posts

Tuesday, December 21, 2010

Setting up the Android phone for debugging

Now that my Linux laptop is setup for debugging Android, I need to make sure that my phone is in a debuggable state. Setting up the phone to do this is simple enough.


  1. Launch the Settings app on the phone, and select Applications as so:
  2.  In the Applications app, click on Development: 
  3.  In the Development app, make sure that "USB debugging" is enabled:

Now check to make sure that the Android Debugging Bridge (adb) does indeed see the phone device. To do this, from a terminal run:

$ adb devices
List of devices attached
T95960a0752a device

NOTE:
If you've restarted your machine, then in all likelihood "adb devices" will return a blank. In which case, kill and restart the adb service:

$ sudo ./adb kill-server
$ sudo ./adb start-server
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
$ adb devices
List of devices attached
T95960a0752a    device