How to connect one OnePlus device to Ubuntu via MTP?

When I connect it to my ubuntu 14.04, I can only see USB drivers for installing ADB.

There are several solutions for OnePlus One ( see here ), but I could not find it for OnePlus two.

+10
android oneplustwo ubuntu
source share
6 answers

After much rework, I found a solution -

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" 

(Seller ID and product ID can be obtained using the command "sudo mtp-detect")

now restart the service

 sudo service udev restart 

Your OP2 should now be able to transfer files to your ubuntu PC!

PS - you will need to change {idProduct} to everything that is specified by mtp-detect, if you are not in the ROM / Kernel warehouse!

+25
source share

OnePlus X connected to Ubuntu 15.04 via USB

Alex Joseph's answer above worked for me, BUT I also had to install mtp-tools to get the mtp-detect command (otherwise I only got "command not found").

 $ sudo apt-get install mtp-tools 

After that, I was able to see my OnePlus X, check the vendor ID and product ID, and follow the rest of the steps. My Ubuntu system now sees both internal memory and an SD card.

+8
source share

I made the following changes and the first two starts will appear on my adb device list:

  • Go to your home directory and use any editor to open the adb_usb.ini file. It is present in the .android folder. I used the vim editor:

    vim.android/adb_usb.ini

  • Add the 0x2A70 text without any trailing spaces to the file, as shown below:

**

 # ANDROID 3RD PARTY USB VENDOR ID LIST -- DO NOT EDIT. # USE 'android update adb' TO GENERATE. # 1 USB VENDOR ID PER LINE. 0x2A70 

**

  1. Stop and start the server:

    adb kill-server

    adb start-server

  2. Now check if the device should display: adb

+6
source share

After installing adroid adb, I can open the OnePlus 3 folder on Ubuntu 16.04

 sudo apt-get update sudo apt-get install adb 
+2
source share

I would suggest just turning on the developers tool in settings ,

I did the same. Now I can easily transfer files.

If you can’t find the developer tools option in the settings, just go to about phone and click on build number 7 to 8 times continuously.

that it is done.

+2
source share
  1. Install the Android Debug Bridge and Media Transfer Protocol (MTP) library tools with.

     sudo apt-get install adb install mtp-tools 
  2. Connect the OnePlus device, you should see a new volume with drivers. Run the 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! 
  3. Install the package for android-file-transfer :

     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 
  4. Test your device connection by running mtp-detect .

  5. Run android-file-transfer .

See also: The device is already in use by another process .


Problem finding

error returned by libusb_claim_interface () = -6LIBMTP PANIC: cannot initialize device

  1. Activate Developer Settings by pressing 7 times Build Number in About Phone.
  2. You can enable file transfer in the USB configuration in the "Developer Options" section.

See: How can I access media files on OnePlus 5 with Ubuntu?

0
source share

All Articles