码迷,mamicode.com
首页 > 移动开发 > 详细

Android adb setup for ubuntu

时间:2014-08-23 03:36:20      阅读:249      评论:0      收藏:0      [点我收藏+]

标签:android   http   os   for   ar   2014   art   sp   ad   

Android adb setup for ubuntu


connect the device to ubuntu, use command $sudo lsusb will display like:
bubuko.com,布布扣

mean: Spreadtrum device idVendor 1782  idProduct 5d24




1, touch the file:
~/.android/adb_usb.ini
add 0x1782 to adb_usb.ini  --- this num is your device‘s idVender
====no this file will occur:
adb devices display none


2, touch /etc/udev/rules.d/88-android.rules
add below to this file:  the num 1782 is your device‘s idVender


SUBSYSTEM=="usb", ATTRS{idVendor}=="1782", MODE="0666"

after this exec command: sudo service udev restart
==no this file will occur:
adb devices display like below
bubuko.com,布布扣




Then exec:
adb kill-server
adb start-server


now your adb setup is ok;
$adb shell
bubuko.com,布布扣





----------mian_G

Android adb setup for ubuntu

标签:android   http   os   for   ar   2014   art   sp   ad   

原文地址:http://my.oschina.net/u/1772607/blog/305806

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!