我的 motorola android 手机最初在 linux mint 17.3 中被检测到。然后我将它用于 android studio,其中移动设备被检测到,并且可以通过我的移动设备测试 android 应用程序。
现在的问题是,在 android studio 中 adb 可以检测到我的手机,但在 linux 文件资源管理器中却未检测到。我的问题与这个帖子。
Android studio(这里被检测到)
LSSB
lsusb -v
Bus 002 Device 007: ID 22b8:2e82 Motorola PCS
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x22b8 Motorola PCS
idProduct 0x2e82
bcdDevice 2.28
iManufacturer 1 motorola
iProduct 2 XT1022
iSerial 3 ZX1B343RHV
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 39
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 500mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 3
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 255 Vendor Specific Subclass
bInterfaceProtocol 0
iInterface 5 MTP
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x01 EP 1 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x001c 1x 28 bytes
bInterval 6
Device Qualifier (for other device speed):
bLength 10
bDescriptorType 6
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
bNumConfigurations 1
Device Status: 0x0000
(Bus Powered)
答案1
我一遍又一遍地遇到同样的问题,直到我注意到chrome://inspect/#devices
adb 设备列表是否为空。
关闭选项卡(或 Chrome),重新插入设备,它应该可以工作了。
答案2
如果 Chrome 打开,chrome://inspect/#devices
则 adb devices 将停止显示设备。
修复将关闭并打开 chrome。