After mounting an Android Phone as a USB / MTP device successfully on my desktop Ubuntu (22.04.1 LTS), I switched to a Raspberry Pi 4 w/a fresh download of the Ubuntu/Server/Raspberry Pi image (Ubuntu 22.04.1 LTS). I connected the Android Phone and did not see any of the directories / files I saw when the phone was connected to my Ubuntu desktop.
I then installed both "gmtp" and "mtp-tools" and rebooted the Raspberry Pi. I still did not see any new directories / files. I check and found a new /dev/*mtp* device on the Raspberry Pi when the phone was connected. But I have never seen the expected directories / files under the /run/user/... directory.
I then monitored the /var/log/syslog both on the working Ubuntu desktop and the not working Rraspberry Pi. They both start the same by "seeing" the new USB Android Phone device. But the Ubuntu desktop then apparently "audited" the phone which (I assume) caused the phone to interrogate the user for permissions to share files.
Apparently the Raspberry Pi is missing this "audit" step. Could this be yet another missing MTP package? Or a service that is not activated?
All the packages w/"mtp" in there name on the Raspberry Pi:
$ sudo dpkg -l | grep mtp
ii gmtp 1.3.11-3build1 arm64 simple file transfer program for MTP based devices
ii libmtp-common 1.1.19-1build1 all Media Transfer Protocol (MTP) common files
ii libmtp-runtime 1.1.19-1build1 arm64 Media Transfer Protocol (MTP) runtime tools
ii libmtp9:arm64 1.1.19-1build1 arm64 Media Transfer Protocol (MTP) library
ii mtp-tools 1.1.19-1build1 arm64 Media Transfer Protocol (MTP) library tools
$