Sauter au contenu
Tags

Configure USB Debugging of Android on GNU/Linux

5 février 2012

You want to develop your own application and test it directly your phone instead of the virtual machine? Or perhaps you just want to use some cool features of the SDK to manage your phone? Whatever the reason, here is how to do it.

First, I’ll assume that you have already installed the android SDK.

The only thing left to do, is to set-up rules for udev. Most articles are happy with giving you a list of devices and Vendor ID. Well, I’m not. These lists are often not exhaustive, and unusual android devices are not represented. There is a really simple way of figuring out this data.
Simply use the command

lsusb

It will give you a description of all your USB devices, find the one corresponding to your device
Bus 002 Device 004: ID 04e8:689e Samsung Electronics Co., Ltd
All the information you need is in this line : the vendor ID is 04e8, and the device id is 689e (this is a Samsung Galaxy Ace).

You just have to declare it to udev.

gksu gedit /etc/udev/rules.d/51-android.rules 

Then put a line like.
SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", , ATTRS{idProduct}=="689e", MODE="0666"

Obviously you need to set your own vendor and device ID here.

You’re all set! Next time udev will restart, your device should work!

Dans → Android

Laisser un commentaire

Répondre

Entrez vos coordonnées ci-dessous ou cliquez sur une icône pour vous connecter:

Logo WordPress.com

Vous commentez à l'aide de votre compte WordPress.com. Déconnexion / Changer )

Twitter picture

Vous commentez à l'aide de votre compte Twitter. Déconnexion / Changer )

Photo Facebook

Vous commentez à l'aide de votre compte Facebook. Déconnexion / Changer )

Connexion à %s

Suivre

Get every new post delivered to your Inbox.