[更新1]在下面的嘗試使這件事情工作,我重新啓動了幾次。然而,今天早上我打開了我的電腦,現在該設備被列出...但是我會保持我的問題打開幾天,看看這種奇怪的行爲回來。[/ update 1]亞行突然沒有檢測到我的設備
adb
Arch Linux (32位)突然停止報告我的電話,這通常是。我以sudo和普通用戶的身份嘗試了以下所有命令,但缺少相同的結果。
[[email protected] /home/antoine/]$ sudo gvim /etc/udev/rules.d/51-android.rules
我在其中寫道:
SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0ccf", MODE="0666", OWNER="antoine"
然後我做:
[[email protected] /home/antoine/]$ sudo udevadm control --reload-rules
設備在那裏:
[[email protected] /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
[[email protected] /home/antoine/]$ sudo adb kill-server
[[email protected] /home/antoine/]$ sudo adb start-server
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
然而,它沒有工作:
[[email protected] /home/antoine/]$ sudo adb devices
List of devices attached
[[email protected] /home/antoine/]$
然後我試圖更新adb
有:
[[email protected] /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
文件(無論是在根和〜):
[[email protected] /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
然後:
[[email protected] /home/antoine/]$ sudo adb kill-server
[[email protected] /home/antoine/]$ sudo adb start-server
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
[[email protected] /home/antoine/]$ sudo adb devices
List of devices attached
[[email protected] /home/antoine/]$
這整件事之前等等就好了昨天和前天的工作。從那以後,我還沒有更新過我的系統。我感到困惑。
我的電纜連接器停止工作後,我終於使用了ADB WIFI。唯一的缺點是計算機和設備都需要連接到同一個網絡,除此之外它工作得很好。 MAYBE,這可以幫助你,這就是爲什麼它不是一個答案,只是一個評論。我相信你需要根植於此(很可能),該應用程序是免費的,沒有我知道的廣告,這裏有一個鏈接https://play.google.com/store/apps/details?id=com.ryosoftware.adbw&hl=en –
在adb kill-server之前嘗試sudo restart udev。 –
檢查會有幫助嗎? http://stackoverflow.com/q/8668923/1012284 –