如何使用Motorola在Linux上使用ADB [英] How do I make ADB work on linux with a motorola

查看:111
本文介绍了如何使用Motorola在Linux上使用ADB的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

正如标题所述,我在Linux上使用ADB遇到困难。我有一个运行姜饼2.3.4的Motorola Droid X阴影。我有一台装有Ubuntu 13.04的笔记本电脑。我需要能够使用ADB建立从计算机到电话的连接。

As the title says, I am having difficulty using ADB on linux. I have a motorola Droid X shadow running gingerbread 2.3.4. I have a laptop with Ubuntu 13.04. I need to be able to establish a connection from the computer to the phone, using ADB.


  1. 我从google安装了ADB(进入〜/ android-sdk-linux)

  2. 我将手机调试(设置->应用程序->开发-> usb调试)

  3. 我安装了 udev规则。 (有关更多信息,请参见

  4. I重新启动计算机和电话

  5. 我将两者连接了(电话说正在充电)

  6. 我尝试了./adb设备

  1. I installed ADB from google (into ~/android-sdk-linux)
  2. I put the phone into debugging (settings -> applications -> development -> usb debugging)
  3. I installed the udev rules. (see this for more info)
  4. I restarted the computer and the phone
  5. I connected the two (phone says that it is charging)
  6. I tried ./adb devices

我有一个空的设备列表

sam@Aristotle:~$ ls -ahl /etc/udev/rules.d/51-android.rules 

    -rwxr-xr-x 1 root root 2.7K Jun 19 14:03 /etc/udev/rules.d/51-android.rules

sam@Aristotle:~$ cat /etc/udev/rules.d/51-android.rules 
    <!-- snip -->
    SUBSYSTEM=="usb", ATTR{idVendor}=="22B8″, MODE="0666″, GROUP="plugdev"
    <!-- snip -->

然后我重新启动计算机。一旦插好电话插件。

Then I restart the machine. Once it is up I plugin the phone.

root@Aristotle:/home/sam/android-sdk-linux/platform-tools# ./adb devices
    List of devices attached 

root@Aristotle:/home/sam/android-sdk-linux/platform-tools# ./adb kill-server
root@Aristotle:/home/sam/android-sdk-linux/platform-tools# ./adb start-server
    * daemon not running. starting it now on port 5037 *
    * daemon started successfully *
root@Aristotle:/home/sam/android-sdk-linux/platform-tools# ./adb devices
    List of devices attached 

root@Aristotle:/home/sam/android-sdk-linux/platform-tools# 

我也以用户 sam的身份尝试过此操作(sam在plugdevs中)。我也在笔记本电脑上的多个USB端口上进行了尝试。

I did try this as user 'sam' too (sam is in plugdevs). I also tried this with multiple USB ports on my laptop.

我当时以为我可以使用此应用可以通过wifi与手机进行通讯,但这需要生根,并且唯一的安全方法

I was thinking that I could use something like this app to communicate with the phone over wifi, but that requires rooting, and the only 'safe' methods of rooting require adb.

我打开了Udev调试,然后再次尝试。然后我打开了/ var / log / udev。它很长,所以我搜索了 22b8(不区分大小写),因为根据此处,这是Motorola的USB供应商ID,但我的搜索找不到任何结果。我不认为我出于某些原因触发/etc/udev/rules.d/的规则。

I turned on Udev debugging and tried it again. Then I opened /var/log/udev. It was pretty long, so I searched up '22b8' (not case sensitive), because according to here, that is the USB Vendor ID for motorola, but my search could not find any results. I don't think the rule I put /etc/udev/rules.d/ is firing for some reason.

输出到 sudo lsusb-在此处找到了vv (时间太长,无法发布)

Output to sudo lsusb -vv is found here (too long to post).

我还尝试安装p2kmoto

I also tried installing p2kmoto

root@Aristotle:/home/sam/android-sdk-linux/platform-tools# p2ktest 
P2k Test
Device list:
1d6b:0001: [Linux 3.8.0-26-generic ohci_hcd] [OHCI Host Controller]
0461:4d16: [] [USB Optical Mouse]
1d6b:0001: [Linux 3.8.0-26-generic ohci_hcd] [OHCI Host Controller]
1d6b:0001: [Linux 3.8.0-26-generic ohci_hcd] [OHCI Host Controller]
1d6b:0001: [Linux 3.8.0-26-generic ohci_hcd] [OHCI Host Controller]
04f2:b044: [Chicony Electronics Co., Ltd.] [CNF7017]
1d6b:0002: [Linux 3.8.0-26-generic ehci_hcd] [EHCI Host Controller]
1d6b:0002: [Linux 3.8.0-26-generic ehci_hcd] [EHCI Host Controller]
No phone found.


推荐答案

从lsusb的结果来看,似乎没有显示的android设备。您是否在手机上启用了USB调试功能?您可能要查看此视频以了解详细信息。

From the result of lsusb, it seems there is no android device shown. Did you enable usb debugging on your phone? You might want to check this video for details.

这篇关于如何使用Motorola在Linux上使用ADB的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆