MTP Services Mobian

there'd been no news for a while how to get back MTP-Service on the PinePhone.
As i use the phone mainly as a media player, i simply need a real easy way to transfer some files (mainly with Win10 Laptops).
So i had a look at the source repos and decided to turn the wheel back.

Here's how you re-activate umtp-responder (make sure you are root or use sudo while performing these steps):

- reinstall umtp-responder package:
  sudo apt-get install umtp-responder

- stop the specific services to do the changes:
  sudo systemctl stop umtp-responder.service
  sudo systemctl disable umtp-responder.service
  sudo systemctl stop mobian-usb-gadget.service
  sudo systemctl disable mobian-usb-gadget.service

- create a folder "umtp-responder.service.d" in /lib/sytemd/system:
  sudo mkdir /lib/sytemd/system/umtp-responder.service.d

- copy override.conf to /lib/sytemd/system/umtp-responder.service.d

- copy mobian.conf to /etc/umtprd

- replace mobian-usb-gadget in /usr/sbin

- replace mobian-usb-gadget.service in /lib/systemd/system

- replace umtp-responder.service in /lib/systemd/system

- enable and start the specific services:
  sudo systemctl enable mobian-usb-gadget.service
  sudo systemctl start mobian-usb-gadget.service
  sudo systemctl enable umtp-responder.service
  sudo systemctl start umtp-responder.service

Please see the tar.gz archiv for the directory structure as well... you may even extract the folder over your root...
but it is better to do it manually and try to understand the parts involved.

I made a slight change to the mobian.conf file as i use a sdcard for the media and do not need to access the home folder.
Because the sdcard is vfat there is no issue with the files permission.
As said before...
Try to understand what's involved, tweak it yourself and think about the security flaws mentioned in the mobian issue tracker.
It's your decision and i'm not responsible if the secret agent plans got stolen...
I like it a little more comfortable  Big Grin

EDIT: Just for completeness... it has been tested on up to date mobian system (emmc) while still on 5.10 linux kernel.
Make sure to keep some backup copies of the files replaced, to revert back...
Right now this should be treated as a temporary hack, because we could not simply put it back into the packages already distributed (e.g. mobian-tweaks, umtp-responder).


Attached Files
.gz   umtp-restore.tar.gz (Size: 1.78 KB / Downloads: 78)

Messages In This Thread
MTP Services Mobian - by exhoplex - 12-27-2020, 09:25 PM
RE: MTP Services Mobian - by exhoplex - 12-27-2020, 10:29 PM
RE: MTP Services Mobian - by scholbert - 01-06-2021, 07:37 AM
RE: MTP Services Mobian - by calinb - 01-22-2021, 09:55 PM
RE: MTP Services Mobian - by calinb - 01-23-2021, 04:46 PM
RE: MTP Services Mobian - by scholbert - 04-13-2021, 02:46 AM
RE: MTP Services Mobian - by MtnSk8 - 04-17-2021, 11:27 PM
RE: MTP Services Mobian - by calinb - 04-18-2021, 01:15 AM
RE: MTP Services Mobian - by MtnSk8 - 04-18-2021, 09:36 AM
RE: MTP Services Mobian - by calinb - 04-18-2021, 12:10 PM
RE: MTP Services Mobian - by a-wai - 04-19-2021, 07:16 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Mobian 'HotSpot" bcnaz 4 431 6 hours ago
Last Post: bcnaz
  Axolotl on PinePhone / Mobian arno_nuehm 119 33,730 Yesterday, 01:58 AM
Last Post: arno_nuehm
  Mobian pinephone -- "Stalled" (best way to describe it) fred_mobian 3 160 09-24-2021, 08:19 PM
Last Post: bcnaz
  Why do you use mobian? unrealb2 17 893 09-18-2021, 03:44 AM
Last Post: TRS-80
  Mobian September 13 Nightly bcnaz 1 235 09-14-2021, 03:50 PM
Last Post: bcnaz
  Updating old Mobian installation? SocialNetworkingWasAMistake 1 147 09-14-2021, 03:41 PM
Last Post: bcnaz
  Installing Mobian --> "Resizing file system" forever Anna 13 2,972 09-09-2021, 04:26 AM
Last Post: spaetz
  I'd like to have a Discord client on Mobian lsitongia 2 200 09-03-2021, 06:56 PM
Last Post: ryo
  Mobian September 01, 2021 bcnaz 2 346 09-01-2021, 11:45 AM
Last Post: bcnaz
  mobile data on mobian not working synaption 10 887 08-29-2021, 07:22 AM
Last Post: bcnaz

Forum Jump:

Users browsing this thread: 2 Guest(s)