README.md

INTRODUCTION

Go-mtpfs is a simple FUSE filesystem for mounting Android devices as a
MTP device.

It will expose all storage areas of a device in the mount, and only
reads file metadata as needed, making it mount quickly. It uses
Android extensions to read/write partial data, so manipulating large
files requires no extra space in /tmp.

It has been tested on various flagship devices (Galaxy Nexus, Xoom,
Nexus 7). As of Jan. 2013, it uses a pure Go implementation of MTP,
which is based on libusb.

COMPILATION

Install the Go compiler suite; e.g. on Ubuntu:

sudo apt-get install golang-go

Install libmtp header files

sudo apt-get install libusb1-devel

Then run

mkdir /tmp/go
export GOPATH=/tmp/go
go get github.com/hanwen/go-mtpfs

/tmp/go/bin/go-mtpfs will then contain the program binary.

You may need some tweaking to get libusb to compile. See the
comment near the top of usb/usb.go, ie.