I am trying to install Cyanogenmod 13 in Oneplus 2 but I cannot get TWRP flashed in the phone because I cannot get adb work as expected with Ubuntu 16.04 in common Ubuntu, Persistent Live Ubuntu and Live Ubuntu.
Common Ubuntu
The command
adb devicesandfastboot devicesreturns nothing, although it should not, since my Android phone is in the developer mode with enabledfastboot. Work flowmasi@masi:~/Downloads$ wget -O - https://skia.googlesource.com/skia/+archive/cd048d18e0b81338c1a04b9749a00444597df394/platform_tools/android/bin/linux.tar.gz | tar -zxvf - adb --2016-08-15 17:16:09-- https://skia.googlesource.com/skia/+archive/cd048d18e0b81338c1a04b9749a00444597df394/platform_tools/android/bin/linux.tar.gz Resolving skia.googlesource.com (skia.googlesource.com)... 74.125.136.82, 2a00:1450:4013:c01::52 Connecting to skia.googlesource.com (skia.googlesource.com)|74.125.136.82|:443... connected. HTTP request sent, awaiting response... 200 OK Length: unspecified [application/x-gzip] Saving to: ‘STDOUT’ - [<=> ] 0 --.-KB/s adb - [ <=> ] 1.31M 70.0KB/s in 19s 2016-08-15 17:16:29 (70.0 KB/s) - written to stdout [1374340] masi@masi:~/Downloads$ sudo mv adb /usr/bin/adb masi@masi:~/Downloads$ sudo chmod +x /usr/bin/adb masi@masi:~/Downloads$ adb version Android Debug Bridge version 1.0.32 masi@masi:~/Downloads$ adb devices List of devices attached masi@masi:~/Downloads$ sudo adb devices List of devices attachedI think the
adbversion works at least in 14.04 but not now with 16.04.Inspecting with
lsusbshows that the device is detected in Ubuntu asBus 001 Device 050: ID 2a70:f003.Settings where I already authorized USB debugging
I do when
masiis in the groupplugdevbut still unsuccessful result# OrganicMarble sudo touch /etc/udev/rules.d/51-android.rules masi@masi:/$ sudo vim /etc/udev/rules.d/51-android.rules masi@masi:~$ groups masi masi : masi adm cdrom sudo dip plugdev staff lpadmin sambashare masi@masi:/$ cat /etc/udev/rules.d/51-android.rules SUBSYSTEM=="usb", ATTR{idVendor}=="2a70", MODE="0666", GROUP="plugdev" masi@masi:/$ sudo chmod a+r /etc/udev/rules.d/51-android.rules masi@masi:/$ sudo adb devices * daemon not running. starting it now on port 5037 * * daemon started successfully * List of devices attached masi@masi:/$ adb devices List of devices attachedPersistent Live Ubuntu
Fails with bugs in
/etc/hostnameand/etc/hosts, not related to this case but reported hereLive Ubuntu 16.04
This attempt fails in trying to get
adb to workubuntu@ubuntu:~$ wget -O - https://skia.googlesource.com/skia/+archive/cd048d18e0b81338c1a04b9749a00444597df394/platform_tools/android/bin/linux.tar.gz | tar -zxvf - adb --2016-08-15 17:16:09-- https://skia.googlesource.com/skia/+archive/cd048d18e0b81338c1a04b9749a00444597df394/platform_tools/android/bin/linux.tar.gz Resolving skia.googlesource.com (skia.googlesource.com)... 74.125.136.82, 2a00:1450:4013:c01::52 Connecting to skia.googlesource.com (skia.googlesource.com)|74.125.136.82|:443... connected. HTTP request sent, awaiting response... 200 OK Length: unspecified [application/x-gzip] Saving to: ‘STDOUT’ - [<=> ] 0 --.-KB/s adb - [ <=> ] 1.31M 70.0KB/s in 19s 2016-08-15 17:16:29 (70.0 KB/s) - written to stdout [1374340] ubuntu@ubuntu:~$ sudo mv adb /usr/bin/adb ubuntu@ubuntu:~$ sudo chmod +x /usr/bin/adb ubuntu@ubuntu:~/Downloads$ adb version bash: /usr/bin/adb: No such file or directory
Ubuntu: 16.04
Linux kernel 4.6
Phone: Oneplus 2
Phone settings: Oxygen OS 3.20, Developer mode, fastboot on
