开源软件名称(OpenSource Name):mountainstorm/MobileDevice开源软件地址(OpenSource Url):https://github.com/mountainstorm/MobileDevice开源编程语言(OpenSource Language):Python 100.0%开源软件介绍(OpenSource Introduction):MobileDevice.pyA python package which aims to wrap Apple's MobileDevice API; to provide complete support for all iOS, device services. The project aims to provide both a native Pythin API (using ctypes) and a fully features command line interface. You can run the project directory as a package e.g. python MobileDevice/ afc put myfile.txt /var/mobile/Media/ or: python MobileDevice.zip afc put myfile.txt /var/mobile/Media/ or, if you install the library using: sudo python setup.py install mdf afc put myfile.txt /var/mobile/Media/ (will upload a file to the device) at any point append -h to the command line to get more help In general I recommend you install the package if you're ever going to write scripts using it, or just fancy typing less characters. Project StructureThe basic structure of the package is as follows: MobileDevice.py: this is a bare bones ctypes wrapper over the native C library CoreFoundation.py: this is a simple ctypes wrapper around CoreFoundation and a few helper methods to convert between CFTypes and python types All other classes: afc.py, syslog.py, filerelay.py, amdevice.py etc are more pythonic wrappers around the base C library. The idea being that we give a python abstraction of all the services e.g. To list all files on the file system:from command line: mdf afc ls /var/mobile/Media or in code:
To retrieve a .cpio.gz file of all the readonly special data (crashlogs etc)from command line: mdf filerelay dump.cpio.gz or in code:
To read and print all syslog messagesfrom command line: mdf syslog or in code:
KeywordsiOS, iPad, iPhone, Apple, MobileDevice, python, command line, lockdownd, usbmuxd |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论