The instructions on the official Android Developers site http://developer.android.com/guide/developing/device.html are focused on Ubuntu, but there is a very close procedure to connect your device on Debian.
First, login as root
create the file /etc/udev/rules.d/50-android.rules
and write
SUBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666"
save and exit.Give the necessary permissions to the file:
chmod a+rx /etc/udev/rules.d/50-android.rules
restart udev daemon
/etc/init.d/udev restart
For the following step, you must have the android sdk installed at the path both of root and your current user. Info can be found here
ex: in my .bashrc there is the line
export PATH=${PATH}:/home/ventrix/bin/android-sdk/tools
Then still as root, type
adb devices
and you should see your device.If not, try the
adb kill-server
before running the adb devices command again.Now you can start playing with the Android Debug Bridge (adb).
Enter adb to find out the options and commands.
If you have more than one phone connected, or the emulator, you can issue commands with the -s flag followed by the device id to target your connected device.
ex:
adb -s emulator-5556
to connect to the emulator device.Developing with eclipse will automatically detect the connected devices and let you choose the device you want to deploy to.
More info about the adb can be found here: http://developer.android.com/guide/developing/tools/adb.html
Connectivity to the adb can be archived by EVERY G1 (unlocked or not, rooted or not), not only the developer's G1.
Greek instructions are here: http://www.androiddev.gr/forum/viewtopic.php?f=3&t=144&p=201
Δεν υπάρχουν σχόλια:
Δημοσίευση σχολίου