Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to access an MTP USB device with python

Tags:

How can I read from and write to my Galaxy Nexus phone, using MTP over a USB cable in python? I'm on a windows 7 computer.

like image 838
foosion Avatar asked Jun 22 '12 18:06

foosion


People also ask

How do I access my USB device from MTP?

Modern Android devices use the MTP or PTP protocols — you can choose which one you prefer. To select a USB connection protocol, open the Settings app, tap Storage, tap the menu button, and tap USB computer connection.

What is MTP in Python?

PyMTP is a Pythonic binding to LibMTP that allows Python programs to interact. over Media Transfer Protocol (MTP) with LibMTP-supported devices. These devices. include all recent Android devices, several popular MP3 players, including. Creative Zen, several iRiver devices, NormSoft Pocket Tunes and many others.


1 Answers

I'm also looking for the same thing. There seems to be pymtp for cross-platform and wmdlib for Windows.

like image 129
Hans-Christoph Steiner Avatar answered Oct 07 '22 08:10

Hans-Christoph Steiner