Configuring Your Operating System for Device Debugging


Build your own Android App Dev Empire

Get Instant Access

To install and debug Android applications on hardware such as the T-Mobile G1, Motorola Droid, or Nexus One, you might need to configure your operating system to access the phone via USB. This is especially true of Windows machines. The Android SDK ships with drivers for some devices, and you can simply point the Device Manager at the directory where you installed the Android SDK and then plug in the phone via USB, and it will show up when you launch an application via Eclipse.

Notes on Windows Installations

You need to install Android USB drivers. You will find them as one of the packages in the Android SDK and AVD Manager, under USB Driver Package. Alternatively, you can download them separately from win-usb.html. After you unzip the drivers, connect your phone to your computer via the USB cable and select the drivers you want to install.

Notes on Mac OS X Installations

On a supported Mac, all you have to do is plug in the USB cable to the Mac and the device. There is no additional configuration needed.

Notes on Linux OS Installations

Ubuntu Linux installations require a rules file, using the following steps:

1. Log in as root administrator.

2. Create the file /etc/udev/rules.d/50-android.rules.

3a. For Gutsy (7.10)/Hardy (8.04) Ubuntu Linux installations, the file should contain SUBSYSTEM=="usb"J SYSFS{idVendor}=="0bb4"J MODE="0666".

3b. For Dapper (6.06) Ubuntu Linux installations, the file should contain SUBSYS-TEM=="usb_device", SYSFS{idVendor}=="0bb4"J MODE="0666".

4. Enter chmod a+rx /etc/udev/rules.d/50-android.rules.

Was this article helpful?

0 0

Post a comment