0
Device not listing using adb on Ubuntu 14.04.3

  1. darthrider
    Froyo Dec 22, 2015

    darthrider , Dec 22, 2015 :
    I'm trying to set up adb in Ubuntu 14.04.3 (64 bit) but its not showing up when I connect my device.
    Here is what I did

    I installed adb and fastboot using these commands
    Code:
    sudo apt-get install android-tools-adb android-tools-fastboot
    I got the adb driver files from my device and executed it
    Code:
     sh ~/Desktop/adb_config_Linux_OSX.sh
    The command got executed and adb_usb.ini file got created successfully at ~/.android/ folder.

    Now I connected my device with USB debugging ON

    When I run the adb devices command this is what I get
    Code:
    List of devices attached
    
    
    The list of devices is empty.

    When I run my lsusb command
    Code:
    Bus 001 Device 005: ID 0cf3:0036 Atheros Communications, Inc.
    Bus 001 Device 003: ID 0bda:5756 Realtek Semiconductor Corp.
    Bus 001 Device 010: ID 2a70:904d
    Bus 001 Device 002: ID 8087:8000 Intel Corp.
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
    Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    
    The vendor is not showing up. It is left blank.

    Also I have killed and started adb server with no uselful results.
    Code:
    sudo adb kill-server
    sudo adb start-server

    I tried the same method in both MTP as well as PTP mode. Still no luck.

    Could someone help me out please because I operate only on Ubuntu and can't use Windows.
     
    Last edited: Dec 22, 2015

    #1
  2. xgecco
    Gingerbread Dec 22, 2015


    #2
    darthrider likes this.
  3. darthrider
    Froyo Dec 22, 2015

    darthrider , Dec 22, 2015 :
    Tried that too. Not working.

    Should I connect in MTP or PTP mode??
     

    #3
  4. xgecco
    Gingerbread Dec 22, 2015

    xgecco , Dec 22, 2015 :
    mtp is right but i also cant get adb to work with linux
    its working with my other devices
    let me have a look. we may need a special rule for the device
     

    #4
    darthrider likes this.
  5. darthrider
    Froyo Dec 22, 2015

    darthrider , Dec 22, 2015 :
    Thank you for looking into it.

    I read a guide online how to fix it with oneplus 2 and the device got listed when I updates 51 android rules file and usb.ids file.

    But then somehow I device was showing status as offfline and phone app started force closing with random reboots in device .
    The I had to dirty flash ROM over the device to fix it.

    EDIT: ADB working fine with other devices
     

    #5
  6. xgecco
    Gingerbread Dec 22, 2015

    xgecco , Dec 22, 2015 :
    i got it working
    i ran the included shell script as sudo and accepted RSA dialog on the device
    it is now listed on adb devices

    try navigating to /media/<username>/Oneplus drivers
    and run "sudo ./adb_config_Linux_OSX.sh"
    then unlock your phone and accept the key

    or copy the script somewhere but make sure you run it as sudo since it will modify a systemfile and needs root priviliges

    it should work
     

    #6
    darthrider likes this.
  7. darthrider
    Froyo Dec 22, 2015

    darthrider , Dec 22, 2015 :
    Thank you it worked.

    Code:
    List of devices attached
    7f904cb9    device
    
    
     

    #7
    xgecco likes this.
  8. darthrider
    Froyo Dec 22, 2015

    darthrider , Dec 22, 2015 :
    Hey thanks for the help. But now the fastboot shows the device has no permissions.
    Can you help me fix that??

    Code:
    fastboot devices
    no permissions    fastboot
     

    #8
  9. xgecco
    Gingerbread Dec 22, 2015

    xgecco , Dec 22, 2015 :
    try creating
    "51-android.rules" in /etc/udev/rules.d/
    with
    Code:
    # adb protocol on oneplus x
    SUBSYSTEM=="usb", ATTR{idVendor}=="2a70", ATTR{idProduct}=="9011", MODE="0600", OWNER="<username>"
    exchange <username> with your username reboot and try if it works

    never tried fastboot with linux. dont know much about it
     

    #9
    darthrider likes this.
  10. darthrider
    Froyo Dec 22, 2015

    darthrider , Dec 22, 2015 :
    got fastboot working too.

    I forgot to add sudo ;)
    Added sudo and fastboot works like charm.

    Now I sucessfully rooted my phone and installed twrp using Linux.

    Thanks for helping me
     

    #10