Отправлено Мар 4, 2015

How to set up ADB and Fastboot on Ubuntu (and other Linux-based systems)

You may have been struggling for a while getting your newman to work with your device like I did. Here is a quick guide to get you started from scratch!
Install the following packages in Ubuntu:
Code:

sudo apt-get install android-tools-adb android-tools-fastboot

If you do not use Ubuntu, or for some reason the above software packages are not available to you (older version of Ubuntu maybe?), install the two utilities through the Android SDK. For download and install instructions, click HERE.
Execute the following command to make or edit and open a 51.android.rules file in /etc/udev/rules.d:
Code:
sudo gedit /etc/udev/rules.d/51.android.rules
If you do not use Ubuntu, you might get in trouble when gedit is not installed. Just substitute «gedit» with the text editor of your choice!
When opened, add the following line to this file, and save the file:
Code:
#Newman
SUBSYSTEM==»usb», ATTRS{idVendor}==»283b», MODE=»0660″, OWNER=»martijn»
When that is done, we will add some text to a file, which will be created if it does not yet exist:
Code:
echo «0x283B» >> /home/YOUR_USER_DIRECTORY/.android/adb_usb.ini
You are now done! Congratulations!