Connect Updated Android Phone to Your MX-Linux Computer

Thanks to “Chrispop” on MX-Linux forums for this awesome tip, found here.

t has always been easy to connect Android-based phones to MX Linux by changing the connection mode of the phone to MTP (Media Transfer Protocol) mode. The phone then appears as a drive in Thunar (Xfce’s own file manager). The method is detailed in the MX-Linux user’s manual.

This has changed with the introduction of Android 9 ‘Pie’, as there is no MTP mode available. It has been replaced by ‘File Transfer’, but that does not work out of the box in Linux. Connecting the phone via USB, swiping down, then selecting File Transfer creates an icon together with the spinning ‘mounting’ wheel in Thunar, but nothing else happens. Eventually, Thunar locks up, needing to be killed to regain control.

This is an Android problem, possibly related to permissions, and can be overcome in the following way. (Note that various phone makers customize Android in different ways, and the method described is the most generic I could devise from information online.)

It is necessary to put the phone in Developer mode. To do this, open Settings and search for ‘Build Number’. Once found, tap Build Number several times, and a countdown will begin. Once the correct number of taps is made, you will be asked for credentials – PIN, or pattern lock. The phone will now be in Developer mode, giving access to additional settings. Note that changing some of these settings may give undesired results, so don’t change anything you don’t understand. It is not necessary to make any Settings changes to connect to Thunar; just changing to Developer mode will enable this.

Connecting the phone, swiping down to change the USB mode, then selecting File Transfer should now work correctly, enabling files on the phone to be browsed from Thunar.

The phone can be left in Developer mode if desired. Otherwise, go to Settings and search for ‘developer’. At the top is a toggle to turn Developer Mode back off.

Even with Developer Mode off, the phone will now connect correctly to Thunar, both on the original Linux machine used, or on others.

This was tested using MX Linux 18, and a Motorola Moto(g6) with Android build number PPS29.55-24.

Thanks, Chrispop!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s