Giter Club home page Giter Club logo

go-mtpfs's Introduction

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 check out go-mtpfs, and run
go build ./

This will leave a binary go-mtpfs

USAGE

mkdir xoom
go-mtpfs xoom &
cp -a ~/Music/Some-Album xoom/Music/
fusermount -u xoom

After a file is closed (eg. if "cp" completes), it is safe to unplug the device; the filesystem then will continue to function, but generates I/O errors when it reads from or writes to the device.

CAVEATS

  • It does not implement rename between directories, because the Android stack does not implement it.

  • It does not implement Event handling, ie. it will not notice changes that the phone makes to the media database while connected.

  • Some Sony Xperia devices claim to implement Android extension, but don't. See issue #104. Symptom:

    AndroidGetPartialObject64 failed: OperationNotSupported

    In this case, disable Android extensions with the flag -android=0

FEEDBACK

You can send your feedback through the issue tracker at https://github.com/hanwen/go-mtpfs

DISCLAIMER

This is not an official Google product.

go-mtpfs's People

Contributors

andreasf avatar automaciej avatar bezineb5 avatar bryant1410 avatar cpatulea avatar ebfe avatar hanwen avatar kainhofer avatar mvdan avatar nozim avatar tsudoko avatar zeerd avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.