Ubuntu12.04 安装adb(含下载路径)
2017-02-21 15:58
232 查看
1、通过apt-get安装adb
sudo add-apt-repository ppa:nilarimogard/webupd8 (不好用了)
或者
Setup the Touch Developer Preview Tools PPA
The PPA has the tools and dependencies to support Precise, Quantal, and Raring. Add the Ubuntu Touch PPA by adding the following custom source list entry to your /etc/apt/sources.list file.
On your computer, press Ctrl+Alt+T to start a terminal.
sudo add-apt-repository ppa:phablet-team/tools
或者
or if add-apt-repository is not available, append the following to your sources.list:
deb http://ppa.launchpad.net/phablet-team/tools/ubuntu [dist-codename]
main
deb-src http://ppa.launchpad.net/phablet-team/tools/ubuntu [dist-codename]
main
*Note: replace [dist-codename] with precise, quantal, raring or saucy.
Then do the following:
sudo apt-get update
sudo apt-get install phablet-tools
android-tools-adb android-tools-fastboot
sudo apt-get update
sudo apt-get install android-tools-adb
将android设备连接至电脑,执行adb shell会提示“error: device not found”
2、将android设备连接至电脑,通过lsusb查看usb设备,如下红色部分对应的就是android设备
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation
2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 027: ID 1f3a:1002
Bus 002 Device 003: ID 046d:c077 Logitech, Inc.
3、创建adb_usb.ini文件,写入id
echo 0x1f3a > ~/.android/adb_usb.ini
4、添加权限
sudo vim /etc/udev/rules.d/70-android.rules
加入以下内容,注意红色部分对应的就是lsusb得到的id
SUBSYSTEM=="usb", ATTRS{idVendor}=="1f3a", ATTRS{idProduct}=="1002",MODE="0666"
5、重启USB服务
$sudo chmod a+rx /etc/udev/rules.d/70-android.rules
$sudo service udev restart
6. 重启adb服务,adb devices有设备说明adb安装成功
$adb kill-server
$sudo adb start-server
$adb devices
List of devices attached
815105148800601fe42 device
sudo add-apt-repository ppa:nilarimogard/webupd8 (不好用了)
或者
Setup the Touch Developer Preview Tools PPA
The PPA has the tools and dependencies to support Precise, Quantal, and Raring. Add the Ubuntu Touch PPA by adding the following custom source list entry to your /etc/apt/sources.list file.
On your computer, press Ctrl+Alt+T to start a terminal.
sudo add-apt-repository ppa:phablet-team/tools
或者
or if add-apt-repository is not available, append the following to your sources.list:
deb http://ppa.launchpad.net/phablet-team/tools/ubuntu [dist-codename]
main
deb-src http://ppa.launchpad.net/phablet-team/tools/ubuntu [dist-codename]
main
*Note: replace [dist-codename] with precise, quantal, raring or saucy.
Then do the following:
sudo apt-get update
sudo apt-get install phablet-tools
android-tools-adb android-tools-fastboot
sudo apt-get update
sudo apt-get install android-tools-adb
将android设备连接至电脑,执行adb shell会提示“error: device not found”
2、将android设备连接至电脑,通过lsusb查看usb设备,如下红色部分对应的就是android设备
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation
2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 027: ID 1f3a:1002
Bus 002 Device 003: ID 046d:c077 Logitech, Inc.
3、创建adb_usb.ini文件,写入id
echo 0x1f3a > ~/.android/adb_usb.ini
4、添加权限
sudo vim /etc/udev/rules.d/70-android.rules
加入以下内容,注意红色部分对应的就是lsusb得到的id
SUBSYSTEM=="usb", ATTRS{idVendor}=="1f3a", ATTRS{idProduct}=="1002",MODE="0666"
5、重启USB服务
$sudo chmod a+rx /etc/udev/rules.d/70-android.rules
$sudo service udev restart
6. 重启adb服务,adb devices有设备说明adb安装成功
$adb kill-server
$sudo adb start-server
$adb devices
List of devices attached
815105148800601fe42 device
相关文章推荐
- yum 安装过程下载的包存放路径
- 下载并安装ubuntu12.04 虚拟机
- MySQL Server 5.0 下载与 安装指南[图文] (安装到非系统路径+设置root账号相应password)
- MySQL Server 5.0 下载与 安装指南[图文] (安装到非系统路径+设置root账号相应password)
- Ubuntu12.04 安装adb
- MySQL Server 5.0 下载与 安装指南[图文] (安装到非系统路径+设置root账号对应密码)
- Ubuntu12.04 安装ADB调试环境
- Android手机,使用adb上传文件,下载文件和安装文件
- Ubuntu12.04 安装ADB调试环境
- Ubuntu12.04安装adb工具
- Ubuntu12.04安装adb & fastboot
- yum 安装过程下载的包存放路径
- ubuntu12.04 下载安装Android sdk22.2.1
- MySQL Server 5.0 下载与 安装指南[图文] (安装到非系统路径+设置root账号相应password)
- MySQL Server 5.0 下载与 安装指南[图文] (安装到非系统路径+设置root账号相应password)
- 使用ADB上传、下载文件和安装软件的方法
- Ubuntu12.04: 下载,编译Android2.6.29内核goldfish,将新编译的内核和镜像安装至模拟器
- win7系统从硬盘安装ubuntu12.04LTS, 采用wubi傻瓜式安装,无需下载
- yum 安装过程下载的包存放路径
- ubuntu12.04下android adb工具的安装(以展讯手机平台为例)