Reputation: 5067
When I connect it to my ubuntu 14.04, I am only able to see the USB drivers for installing ADB.
There are a few solutions available for OnePlus One (See here) but I was not able to find one for OnePlus two.
Upvotes: 10
Views: 15519
Reputation: 166607
Install Android Debug Bridge and Media Transfer Protocol (MTP) library tools by.
sudo apt-get install adb install mtp-tools
Connect your OnePlus device, you should see a new volume with drivers. Run adb
script from there:
$ cd /media/$USER/20160907_1106261
$ bash adb_config_Linux_OSX.sh
android home is exist!
0x2a70
VID 0x2a70 is already configured..
adb should be OK!
Install android-file-transfer
package:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0BB4A1B2FA1A38EB
sudo add-apt-repository "deb http://ppa.launchpad.net/samoilov-lex/aftl-stable/ubuntu artful main"
sudo apt install android-file-transfer
Check your device connectivity by running mtp-detect
.
android-file-transfer
.See also: Device is already used by another process.
error returned by libusb_claim_interface() = -6LIBMTP PANIC: Unable to initialize device
See: How can I access media on my OnePlus 5 with a Ubuntu OS?
Upvotes: 1
Reputation:
Alex Joseph's answer above worked for me BUT I had to also install mtp-tools in order to have the mtp-detect command (otherwise I only got "command not found").
$ sudo apt-get install mtp-tools
After that I could see my OnePlus X, verify the vendor id and product id, and follow the rest of the steps. My Ubuntu system now sees both internal storage and SD card.
Upvotes: 9
Reputation: 21
I would suggest just enable developers tool
in your settings
,
I did the same thing. now I can transfer files easily.
If you can not find developer tools option in settings, just go to about phone
and tap on build number
7 to 8 times continuously.
that's it your done.
Upvotes: 2
Reputation: 1909
After install android adb, I can open OnePlus 3 folder on Ubuntu 16.04
sudo apt-get update
sudo apt-get install adb
Upvotes: 2
Reputation: 826
I made the following changes and One Plus two starts showing up in my adb devices list:
Go to your home directory and using any editor open the adb_usb.ini file. it is present under .android folder I used vim editor:
vim .android/adb_usb.ini
Add 0x2A70 text without any trailing spacees to the file as below:
**
# ANDROID 3RD PARTY USB VENDOR ID LIST -- DO NOT EDIT.
# USE 'android update adb' TO GENERATE.
# 1 USB VENDOR ID PER LINE.
0x2A70
**
Stop and start the server:
adb kill-server
adb start-server
Now check, device should show up: adb devices
Upvotes: 7
Reputation: 5067
After much tinkering, I found the solution -
You need the latest mtp drivers for OP2 -
$ sudo apt-get install libmtp-dev mtpfs
Now edit the following file -
$ sudo gedit /lib/udev/rules.d/69-libmtp.rules
adding this line
ATTR{idVendor}=="2a70", ATTR{idProduct}=="f003", SYMLINK+="libmtp-%k", MODE="660", GROUP="audio", ENV{ID_MTP_DEVICE}="1", ENV{ID_MEDIA_PLAYER}="1", TAG+="uaccess"
(The vendor id and product id can be got by using the "sudo mtp-detect" command)
now restart the service
sudo service udev restart
Your OP2 should be able to transfer files to your ubuntu PC now!
P.S - You will need to change the {idProduct} to whatever is specified by mtp-detect if you are not on the stock ROM/Kernel!
Upvotes: 25