Lubuntu 15.04, android-studio.

I run the studio

:~$ sudo sh ./studio.sh 

The lsusb device sees, but does not display the name.

 :~$ lsusb Bus 001 Device 011: ID 2970:0c02 Bus 001 Device 003: ID 058f:6362 Alcor Micro Corp. Flash Card Reader/Writer Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 003: ID 046d:c52f Logitech, Inc. Unifying Receiver Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub 

We look at the device itself, everything is in order.

 :~$ lsusb -D /dev/bus/usb/001/011 Device: ID 2970:0c02 Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass 0 (Defined at Interface level) bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 64 idVendor 0x2970 idProduct 0x0c02 bcdDevice 2.16 iManufacturer 2 Fly iProduct 3 IQ4514 Quad iSerial 4 0123456789ABCDEF bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 62 bNumInterfaces 2 bConfigurationValue 1 iConfiguration 0 bmAttributes 0xc0 Self 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 Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 1 bAlternateSetting 0 bNumEndpoints 2 bInterfaceClass 255 Vendor Specific Class bInterfaceSubClass 66 bInterfaceProtocol 1 iInterface 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x83 EP 3 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 0x02 EP 2 OUT bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0200 1x 512 bytes bInterval 0 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: 0x0001 Self Powered 

adb devices shows 1 empty line (as I understand this empty line is my device)

 :~$ adb devices List of devices attached :~$ 

I tried to give rights 777 / dev / bus / usb / 001/011. I tried to do everything as root. Android-studio does not see the device at all. Disconnected, connected USB. udev reload I set up USB debugging on my phone, turned on "for programmers" mode. Honestly tried everything that only came across inquiries:

 ubuntu lsusb device without name ubuntu lsusb device ubuntu adb empty list ubuntu adb doesn't see device ubuntu android studio doesn't see device etc. 

Maybe everything is easier? How to make android-studio see the device? I tried 100,500 related decisions on this issue, did not work.

  • Are you sure that the firmware of your phone supports adb ? here this identifier (2970) is missing. - aleksandr barakin
  • yes figs he knows, there is no refutation in the internet ... - Alexey Danchin

1 answer 1

Close the studio and work with adb only. At this stage, the studio will only interfere. Yes, and it should not run through sudo.

The device must be connected, USB debugging is enabled in the settings.

Add a line to the file ~/.android/adb_usb.ini (the .android directory and this file should already have been created in your home):

 0x2970 

See adb devices .

If it does not help, then there will be a standard manual.

Create a file /etc/udev/rules.d/51-android.rules with the contents:

 SUBSYSTEM=="usb", ATTR{idVendor}=="2970", MODE="0666" 

Install a read for everyone on this file:

 $ sudo chmod a+r /etc/udev/rules.d/51-android.rules 

Kill all running adb processes, if any

 $ sudo killall adb 

Restart udev:

 $ sudo service udev restart 

Look again adb devices .

If this does not help, then try stupidly change the USB cable. These phones usually come with very poor quality cables. Well, either it’s just too long. In such cases, often nothing works, although the device is displayed in lsusb .