I can't make it work normally with KDE connect or Dolphin.
First,
relevant packages installed: android-udev android-tool gvfs-mtp mtpfs libmtp kio-extras
When I plug this device, I got the KDE connect notif, the device ask me to set up MTP.
The icon appears in Dolphin, but I got this message:
The file or folder udi=/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1/ does not exist.
I am able to transfer files using the tool "Android File Transfer for Linux" (package android-file-transfer)
Reading Arch forum, I ended up editiing
/usr/lib/udev/rules.d/69-libmtp.rules and /usr/lib/udev/rules.d/51-android.rules
identification:
# lsusb
Bus 001 Device 020: ID 0fce:01f9 Sony Ericsson Mobile Communications AB
#lsusb -v 2> /dev/null | grep -e Bus -e iInterface -e bInterfaceProtocol
Bus 001 Device 020: ID 0fce:01f9 Sony Ericsson Mobile Communications AB
(Bus Powered)
bInterfaceProtocol 0
iInterface 5 MTP
(Bus Powered)
in /usr/lib/udev/rules.d/69-libmtp.rules I added:
#SONY XPeria XZ1 Compact was existing, I just changed the product Id
# SONY XPeria XZ2 Compact
ATTR{idVendor}=="0fce", ATTR{idProduct}=="01f9", SYMLINK+="libmtp-%k", ENV{ID_MTP_DEVICE}="1", ENV{ID_MEDIA_PLAYER}="1"
in /usr/lib/udev/rules.d/51-android.rules I added:
# Xperia XZ2 Compact
ATTR{idProduct}=="01f9", ENV{adb_adbfast}="yes"
then
# sudo udevadm control --reload-rules
Other android device I plug, it works smoothly.
Am I missing something?