So if you have connected OnePlus 5 to Ubuntu, you will notice that you can only see “OnePlus Drivers” as mounted but you cannot access the internal memory using MTP, although ptp works!
So here is what you need to do to make it possible
1. Enable Developer options in Settings
2. Enable ADB ( this needs to be enabled else, mtp doesnt work )
3. Open a terminal window and follow this :
– we will edit 2 files and add some lines in them. My preferred editor is vim. you may use nano / emacs etc.
COMMAND :
sudo vim /lib/udev/rules.d/69-mtp.rules
ADD LINE :
ATTR{idVendor}==”2a70″, ATTR{idProduct}==”9011″, SYMLINK+=”libmtp-%k”, ENV{ID_MTP_DEVICE}=”1″, ENV{ID_MEDIA_PLAYER}=”1″
save and exit
COMMAND :
sudo vim /etc/udev/rules.d/51-android.rules
ADD LINE :
ATTR{idVendor}==”2a70″, ATTR{idProduct}==”9011″, MODE=”0666″
save and exit
COMMAND :
sudo service udev restart
Now disconnect and reconnect your phone, you will have “Android Device” as the mtp device.
If you still cannot see, reboot and try to see if the device is now visible!
Thankyou!