Android hacks



I have an android phone/tablet. How can I get things done without dicking around?

Android in a Box — Run Android applications on any GNU/Linux operating system.

File transfer over USB

Usually this means “file transfer over MTP”, which is the native/default USB protocol for filesystem access. AFAICT this is OK on Windows and surprisingly tedious on macOS. Linux usually OK but sometimes modern devices don’t work with the OS.

Mac users have the Google native app File Transfer but it’s awful. Maybe try instead : Ganesh Rathinavel’s OpenMTP | Android File Transfer for macOS (source).

If you are looking at transferring books because your tablet is an e-reader, you can use Calibre which has in-built connectivity.

But shouldn’t FUSE allow this to just work as part of the normal desktop Finder experience? Archlinux thinks so.

On linux this works by simple-mtpfs? simple-mtpfs is provded in homebrew. Installation and usage are minimalistic to the point of sullen:

simple-mtpfs mountpoint

doesn’t give errors or much feedback. And in fact, if something goes wrong it can fail silently in confusing ways (the folders always show empty).

Try

simple-mtpfs -v -f tmp

to run it in foreground with verbose feedback, which seems to work fine.

This app aldo worked on macos in the past but I am not sure if it does any more because of the ongoing quagmire that is macFUSE.

To mount macOS style,

sudo simple-mtpfs -o allow_other,rw -v /Volumes/mountpoint

Contra the manual, on macOS the usual unmount command works.

umount mountpoint

Or just quit.

Alternative: go-mtpfs works great for me, although I had to manually install.

sudo apt install golang-go
sudo apt install libusb1-devel
mkdir /tmp/go
export GOPATH=/tmp/go
go get github.com/hanwen/go-mtpfs
mkdir xoom
go-mtpfs xoom &
cp -a ~/Music/Some-Album xoom/Music/
fusermount -u xoom

Alternative app repositories

F-droid

No frills open-source repository: F-droid

APKPure

APKPure is faster and more complete than F-droid, but has had security breaches.


No comments yet. Why not leave one?

GitHub-flavored Markdown & a sane subset of HTML is supported.