Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mtp not detecting Android in Ubuntu 16.04 [closed]

Tags:

android

usb

mtp

Ubuntu is not showing my android device.

I tried to install libmtp* mtp* and also reinstalled it And also try to put device information in udev.rules' relevant file

like image 255
MEHUL09 Avatar asked Nov 06 '25 14:11

MEHUL09


2 Answers

try installing mtpfs

sudo apt-get install mtpfs

and install mtp-tools

sudo apt-get install mtp-tools

if you have installed mtpfs and your device is still not recognized ( enable mtp mode on your device ) run mtp-detect

the output should look like this :

Listing raw device(s)

Device 0 (VID=1234 and PID=5678) is ...

followed by specific phone information

the udev editing can be done like :

open /etc/udev/rules.d/69-libmtp.rules with root. if this file does not exist yet copy it from /lib/udev/rules.d/69-libmtp.rules

in this file you add the following line ( with adapted vid, pid, ... )

ATTR{idVendor}=="1234", ATTR{idProduct}=="5678", SYMLINK+="libmtp-%k", MODE="660", GROUP="disk", ENV{ID_MTP_DEVICE}="1", ENV{ID_MEDIA_PLAYER}="1"

and reload udev

like image 149
ralf htp Avatar answered Nov 08 '25 13:11

ralf htp


This might be a simpler fix, it's what worked for me:

sudo apt install mtp-tools

Now plug in your Android phone via USB, cable matters so if one doesn't work try another.

mtp-detect

Done. Open up your Files app or terminal and transfer away!

like image 26
Robert Houghton Avatar answered Nov 08 '25 11:11

Robert Houghton



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!