[更新 1] 在以下尝试使这个东西工作的过程中,我重新启动了几次。然而今天早上我打开我的电脑,现在该设备被列出了......但是我会保留我的问题几天,看看这种奇怪的行为是否会再次出现。[/update 1]
adb
在 Arch Linux(32 位)下突然停止报告我的手机,它通常会这样做。我以 sudo 和普通用户的身份尝试了以下所有命令,但同样没有结果。
[antoine@amadeus /home/antoine/]$ sudo gvim /etc/udev/rules.d/51-android.rules
我在其中写道:
SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0ccf", MODE="0666", OWNER="antoine"
然后我做了:
[antoine@amadeus /home/antoine/]$ sudo udevadm control --reload-rules
设备在那里:
[antoine@amadeus /home/antoine/]$ lsusb
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 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 012: ID 0bb4:0ccf High Tech Computer Corp.
Bus 006 Device 002: ID 046d:0a15 Logitech, Inc.
Bus 006 Device 003: ID 413c:2003 Dell Computer Corp. Keyboard
Bus 006 Device 004: ID 046d:c52f Logitech, Inc. Wireless Mouse M305
所以我杀了adb server
[antoine@amadeus /home/antoine/]$ sudo adb kill-server
[antoine@amadeus /home/antoine/]$ sudo adb start-server
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
然而它没有用:
[antoine@amadeus /home/antoine/]$ sudo adb devices
List of devices attached
[antoine@amadeus /home/antoine/]$
然后我尝试更新adb
:
[antoine@amadeus /home/antoine/]$ sudo android update adb
adb has been updated. You must restart adb with the following commands
adb kill-server
adb start-server
然后修改adb_usb.ini
文件(在根目录和〜):
[antoine@amadeus /home/antoine/]$ sudo gvim /root/.android/adb_usb.ini
我写:
# ANDROID 3RD PARTY USB VENDOR ID LIST -- DO NOT EDIT.
# USE 'android update adb' TO GENERATE.
# 1 USB VENDOR ID PER LINE.
0x0bb4
然后 :
[antoine@amadeus /home/antoine/]$ sudo adb kill-server
[antoine@amadeus /home/antoine/]$ sudo adb start-server
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
[antoine@amadeus /home/antoine/]$ sudo adb devices
List of devices attached
[antoine@amadeus /home/antoine/]$
这整个事情昨天和前一天都工作得很好,依此类推。从那以后我没有更新我的系统或任何东西。我很困惑。