平板电脑未出现在 ADB 中

发布于 2024-12-08 11:19:25 字数 1212 浏览 1 评论 0原文

我刚刚拥有一台运行 Android 的 Lenovo Thinkpad Slate 平板电脑,但我始终无法让 ADB 在 Win7 或 Kubuntu 中识别它。

USB 调试在平板电脑设置中处于打开状态,当我将平板电脑连接到计算机时,会出现“USB 调试已连接”消息 - 所以从平板电脑方面来看一切都很好。计算机方面的事情并不是那么好。

Kubuntu(我的主要开发机器)

我已将供应商 ID 添加到 /etc/udev/rules.d/51-android.rules 文件中(按照指示 此处) - 已尝试过以下每一项,一次一个,但没有成功。

SUBSYSTEM=="usb", SYSFS{idVendor}=="17ef", MODE="0666"

SUBSYSTEM=="usb", ATTR{idVendor}=="17EF", MODE ="0666", GROUP="plugdev"

SUBSYSTEM=="usb", ATTR{idVendor}=="17EF", MODE="0666"

SUBSYSTEM=="usb", ATTR{idVendor}=="17ef", MODE="0666"

作为参考,我有 SUBSYSTEM==“usb”,ATTR {idVendor}==“18d1”,MODE =“0666”,GROUP =“plugdev” 对于我的 Nexus S,效果很好。

lsusb 打印出:

root@ubuntu:/etc/udev/rules.d# lsusb
...
Bus 002 Device 008: ID 17ef:741b Lenovo 
...

Windows

已关注 这些说明,但仍然没有从 adb 设备获得任何响应。

我已经多次重新启动两台机器和平板电脑,但无济于事。有人可以帮忙吗?

I've just got a Lenovo Thinkpad Slate Tablet running Android and can't for the life of me get ADB to recognise it in either Win7 or Kubuntu.

USB debugging is on in the tablet settings and when I connect the tablet to the computer the "USB Debugging Connected" message appears - so all good from the tablet side of things. The computer side of things isn't so great.

Kubuntu (my main dev machine)

I've added the vendor id to the /etc/udev/rules.d/51-android.rules file (as directed here) - have tried each of the below, one at a time, with no success.

SUBSYSTEM=="usb", SYSFS{idVendor}=="17ef", MODE="0666"

SUBSYSTEM=="usb", ATTR{idVendor}=="17EF", MODE="0666", GROUP="plugdev"

SUBSYSTEM=="usb", ATTR{idVendor}=="17EF", MODE="0666"

SUBSYSTEM=="usb", ATTR{idVendor}=="17ef", MODE="0666"

For reference I have
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", MODE="0666", GROUP="plugdev"
for my Nexus S and it works fine.

lsusb prints out:

root@ubuntu:/etc/udev/rules.d# lsusb
...
Bus 002 Device 008: ID 17ef:741b Lenovo 
...

Windows

Have followed these instructions and still not getting any response from adb devices.

I've restarted both machines and the tablet several times to no avail. Can anyone help?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(8

溺深海 2024-12-15 11:19:25

创建文件 ~/.android/adb_usb.ini 并添加供应商 ID (0x17ef) 并重新启动 adb 似乎已经解决了 Windows 和 Kubuntu 中的问题。

Creating the file ~/.android/adb_usb.ini and adding the vendor id (0x17ef) and restarting adb seems to have fixed the issue in both Windows and Kubuntu.

故人的歌 2024-12-15 11:19:25

我在联想的页面上遇到了问题。我的 thinkpad 列在便携式设备下,按照说明操作后出现“无法找到适合您的设备的驱动器”的情况。我可以通过在互联网上搜索更新来进行补救(更新为 USB 驱动程序,这将我的 Thinkpad 移至设备管理器中其他设备的类别)。然后我就可以使用网页上列出的说明。

I had a problem with the Lenovo's page. My thinkpad was listed under portable devices and following the directions got me "Unable to find drive for your device". I was able to remedy by search internet for updates (which updated to a USB driver and this moved my Thinkpad to the other device's category in the Device Manager). I then was able to use the instructions as listed on the web page.

戴着白色围巾的女孩 2024-12-15 11:19:25

我尝试了多种方法,尤其是联想论坛的帖子,但没有成功。终于,我找到了自己的路。

  1. 启用 USB 调试

  2. Lenovo,解压并更新您的设备驱动程序。我认为有些人会像@Pooks 的回答一样成功,然后你就可以停下来了。否则,请继续如下操作。

  3. 如果最新的驱动程序没有帮助或 Windows 无法为您的设备安装驱动程序,请检查其硬件 ID。我的是 USB\VID_17EF&PID_741B

  4. 打开android_winusb.inf,找到这些设置

    [Google.NTamd64]
    ;联想Think平板电脑
    %SingleAdbInterface% = USB_Install、USB\VID_17EF&PID_741B
    %CompositeAdbInterface% = USB_Install、USB\VID_17EF&PID_741B&MI_01
    %CompositeAdbInterface% = USB_Install、USB\VID_17EF&PID_741C&MI_01
    %CompositeAdbInterface% = USB_Install、USB\VID_17EF&PID_741D&MI_02
    %CompositeAdbInterface% = USB_Install, USB\VID_17EF&PID_741E&MI_02

我的是 USB\VID_17EF&PID_741B,所以我只删除其余的。现在看来

[Google.NTamd64]
;Lenovo Think Tablet
%SingleAdbInterface% = USB_Install, USB\VID_17EF&PID_741B
%CompositeAdbInterface% = USB_Install, USB\VID_17EF&PID_741B&MI_01

,现在只需再次更新您的驱动程序即可。 Windows 应正确安装您的设备。可以通过ADB devices查看设备连接情况,我的是

C:\Android\android-sdk\platform-tools>adb devices
List of devices attached 
MP0398W device

I had tried several ways, especially posts from Lenovo forum but no luck. Finally, I have found my way.

  1. Enabling USB debugging

  2. Download the driver from Lenovo, unzip and update your device driver. I think some people would be success as @Pooks answer then you can stop. Otherwise, continue as below.

  3. If latest driver does not help or Windows could not install driver for your device, let check its Hardware Ids. Mine is USB\VID_17EF&PID_741B

  4. Open the android_winusb.inf, find these settings

    [Google.NTamd64]
    ;Lenovo Think Tablet
    %SingleAdbInterface% = USB_Install, USB\VID_17EF&PID_741B
    %CompositeAdbInterface% = USB_Install, USB\VID_17EF&PID_741B&MI_01
    %CompositeAdbInterface% = USB_Install, USB\VID_17EF&PID_741C&MI_01
    %CompositeAdbInterface% = USB_Install, USB\VID_17EF&PID_741D&MI_02
    %CompositeAdbInterface% = USB_Install, USB\VID_17EF&PID_741E&MI_02

Mine is USB\VID_17EF&PID_741B, so I just remove the rest. Now it looks like

[Google.NTamd64]
;Lenovo Think Tablet
%SingleAdbInterface% = USB_Install, USB\VID_17EF&PID_741B
%CompositeAdbInterface% = USB_Install, USB\VID_17EF&PID_741B&MI_01

For now, just update your driver again. Windows should install your device properly. You can check the device connection by ADB devices, mine is

C:\Android\android-sdk\platform-tools>adb devices
List of devices attached 
MP0398W device
人海汹涌 2024-12-15 11:19:25

使用 Lenovo Smart Assistance 程序从 Lenovo 页面下载并安装驱动程序:

只需下载、安装并运行该程序即可。

http://support.lenovo.com/ us/en/products/tablets/a-series/a10-70-tablet

在此处输入图像描述

Download and install the drivers using the Lenovo Smart Assistance program from Lenovo's page:

Just download, install and run the program.

http://support.lenovo.com/us/en/products/tablets/a-series/a10-70-tablet

enter image description here

花期渐远 2024-12-15 11:19:25

Please see this question. One of the things to make sure of is that you are not using a cheap $2 knock-off USB cable. I did this once and couldn't figure out WHY my computer would not recognize my phone. Replacing the cable fixed everything.

哆啦不做梦 2024-12-15 11:19:25

I got mine to work by going to Lenovo's ADB Interface Driver - ThinkPad Tablet download page and following the installation instructions there. Worked like a charm!

相守太难 2024-12-15 11:19:25

可能会有很多问题,但是在执行了启用 USB 调试等基本步骤后,如果仍然无法正常工作,请按照以下步骤对我的 ubuntu(所有平板电脑)有帮助:

  1. 打开终端,输入 lsusb,它将显示连接的所有设备。找出您设备的供应商 ID。(尝试断开连接并运行命令 lsusb,然后重新连接并尝试 lsusb 命令,您会发现哪个是您的设备。因此,针对您的设备,您会发现类似 0574:4798 XYZ COrp. 的内容)。所以 574 是您的供应商 ID。

例如:
总线 002 设备 003:ID 0a5c:e784 Broadcom Corp.
总线 002 设备 002:ID 8087:0024 英特尔公司集成速率匹配集线器
总线 002 设备 001:ID 1d6b:0002 Linux Foundation 2.0 根集线器
总线 001 设备 005:ID 0cf3:3005 Atheros Communications, Inc. AR3011 蓝牙
总线 001 设备 003: ID 04f2:b249 群光电子有限公司
总线 001 设备 002:ID 8087:0024 英特尔公司集成速率匹配集线器
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

a5c 是我的供应商 ID

  1. ,在终端中输入 cd .android
  2. 打开 adb_usb.ini
  3. 在新行中添加 0xa5c。
  4. 保存并关闭。
  5. 杀死 adb-server 或 sudo 杀死 adb-server
  6. 启动 adb-server 或启动 adb-server
  7. sudo Killall adb
  8. 以调试模式连接您的设备。
  9. 瞧,你可以走了,我的朋友。

There might be a lot of issue, but after you do the basic steps like enabling USB debugging and all, if still it does not work follow below steps which helped me for ubuntu (all tablets):

  1. open terminal, type lsusb, it will show all the devices connected. Find out the vendor id of your device.(Try disconnecting and run command lsusb and the reconnect and try lsusb command, you will find out which is your device. so against your device you will find something like 0574:4798 XYZ COrp.). So 574 is your vendor id.

eg:
Bus 002 Device 003: ID 0a5c:e784 Broadcom Corp.
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 005: ID 0cf3:3005 Atheros Communications, Inc. AR3011 Bluetooth
Bus 001 Device 003: ID 04f2:b249 Chicony Electronics Co., Ltd
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

a5c is my vendor id

  1. type cd .android in terminal
  2. open adb_usb.ini
  3. add 0xa5c in new line.
  4. save and close.
  5. kill adb-server or sudo kill adb-server
  6. start adb-server or start adb-server
  7. sudo killall adb
  8. connect your device in debug mode.
  9. Voila you are good to go my friend.
难忘№最初的完美 2024-12-15 11:19:25

对于 Ubuntu,我刚刚将 SUBSYSTEM=="usb", ATTR{idVendor}=="17ef", MODE="0666", GROUP="plugdev" 添加到我的 /etc/udev /rules.d/51-android.rules 文件。重启adb,然后就成功了!

For Ubuntu, I just added SUBSYSTEM=="usb", ATTR{idVendor}=="17ef", MODE="0666", GROUP="plugdev" to my /etc/udev/rules.d/51-android.rules file. Restarted adb, and then it worked!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文