Google Fedora 27 上的 adb 未检测到像素

Google Pixel not detected by adb on Fedora 27

我正在尝试使用 adb 将我的 Google Pixel 连接到我的 Fedora 27。在过去,这一切似乎都运行得很好,但现在不知何故有些东西坏了。我收到一条错误消息,指出我没有正确的权限,但现在它甚至看不到设备了:

[bart@localhost ~]$ adb devices
List of devices attached

(... nothing follows ... )

我的 /etc/udev/rules.d/51-android.rules 看起来像这样:

SUBSYSTEM=="usb", ATTR{idVendor}=="0da4", MODE="0666"

(我删除了 GROUP="plugdev",因为 Fedora 中不存在 plugdev 组)。

连接 Pixel 时,我在 dmesg 输出中看到:

[ 1268.799413] usb 4-2: new SuperSpeed USB device number 13 using xhci_hcd
[ 1268.814476] usb 4-2: New USB device found, idVendor=18d1, idProduct=4ee7
[ 1268.814479] usb 4-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1268.814481] usb 4-2: Product: Pixel
[ 1268.814482] usb 4-2: Manufacturer: Google
[ 1268.814483] usb 4-2: SerialNumber: FA6BF0300146
[ 1268.816458] usb 4-2: Enable of device-initiated U1 failed.
[ 1268.816934] usb 4-2: Enable of device-initiated U2 failed.

我环顾四周试图在网上找到一些信息,但找不到任何真正的解决方案。当然,在 Pixel 上启用了开发者选项和 USB 调试。

已修复。

我记得 Pixel 必须连接为 PTP 才能使所有这些工作正常。