Git Product home page Git Product logo

webmtp's Introduction

WebMTP

This is a proof-of-concept implementation of the MTP protocol over WebUSB. Works with all browsers which support WebUSB

Webpage at https://stephenkingston.github.io/WebMTP/

Setup

Windows

Replace default MTP driver with WinUSB driver.

  • Download Zadig.
  • Open Zadig and select Options → List All Devices.
  • Select your MTP device from list of devices and install WinUSB driver by clicking Replace Driver

Linux

Requires udev rule to be installed

Find Vendor ID and Product ID using lsusb

$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 22b8:2e82 Motorola Device

Add a file /etc/udev/rules.d/webmtp.rules with the below content. Use your phone's Vendor ID & Product ID.

SUBSYSTEM=="usb", ATTRS{idVendor}=="22b8", ATTRS{idProduct}=="2e82", ACTION=="add", MODE="0666"

Reload udev rules

$ sudo udevadm control --reload-rules

Supported Operations

  • Reading list of storages and files.
  • Downloading & uploading files.
  • Deleting files.

Known limitations

  • Works with root folder only
  • Renaming files not supporte
  • Not tested with large files

Stephen Kingston © 2020

webmtp's People

Contributors

stephenkingston avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.