adb可以连接linux设备吗,如何在ubuntu下使用adb连接android设备

If you’re developing on Ubuntu Linux,you need to add a udev rules

file that contains a USB configuration for each type of device you

want to use for development. In the rules file,each device

manufacturer is identified by a unique vendor ID,as specified by the

ATTR{idVendor} property. For a list of vendor IDs,see USB Vendor IDs,

below. To set up device detection on Ubuntu Linux: Log in as root and

create this file: /etc/udev/rules.d/51-android.rules. Use this format

to add each vendor to the file: SUBSYSTEM==”usb”,

ATTR{idVendor}==”0bb4″,MODE=”0666″,GROUP=”plugdev”

In this example,the vendor ID is for HTC. The MODE assignment specifies read/write permissions,and GROUP defines which Unix group owns the device node. Note: The rule Syntax may vary slightly depending on your environment. Consult the udev documentation for your system as needed. For an overview of rule Syntax,see this guide to writing udev rules. Now execute: chmod a+r /etc/udev/rules.d/51-android.rules When plugged in over USB,can verify that your device is connected by executing adb devices from your SDK platform-tools/ directory. If connected,you’ll see the device name listed as a “device.”

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值