idevice
A Rust library for interacting with iOS services. Inspired by libimobiledevice and pymobiledevice3, this library interfaces with lockdownd and usbmuxd to perform actions on an iOS device that a Mac normally would.
For help and information, join the idevice Discord
State
IMPORTANT: Breaking changes will happen at each point release until 0.2.0.
Pin your Cargo.toml to a specific version to avoid breakage.
This library is in development and research stage. Releases are being published to crates.io for use in other projects, but the API and feature-set are far from final or even planned.
Features
To keep dependency bloat and compile time down, everything is contained in features.
| Feature | Description |
|---|---|
afc |
Apple File Conduit for file system access. |
amfi |
Apple mobile file integrity service |
core_device_proxy |
Start a secure tunnel to access protected services. |
crashreportcopymobile |
Copy crash reports. |
debug_proxy |
Send GDB commands to the device. |
dvt |
Access Apple developer tools (e.g. Instruments). |
heartbeat |
Maintain a heartbeat connection. |
house_arrest |
Manage files in app containers |
installation_proxy |
Manage app installation and uninstallation. |
springboardservices |
Control SpringBoard (e.g. UI interactions). Partial support. |
misagent |
Manage provisioning profiles on the device. |
mobile_image_mounter |
Manage DDI images. |
location_simulation |
Simulate GPS locations on the device. |
pair |
Pair the device. |
syslog_relay |
Relay system logs from the device |
tcp |
Connect to devices over TCP. |
tunnel_tcp_stack |
Naive in-process TCP stack for core_device_proxy. |
tss |
Make requests to Apple’s TSS servers. Partial support. |
tunneld |
Interface with pymobiledevice3’s tunneld. |
usbmuxd |
Connect using the usbmuxd daemon. |
xpc |
Access protected services via XPC over RSD. |
Planned/TODO
Finish the following:
- springboard
Implement the following:
- companion_proxy
- diagnostics
- mobilebackup2
- notification_proxy
- screenshot
- webinspector
As this project is done in my free time within my busy schedule, there is no ETA for any of these. Feel free to contribute or donate!
Usage
idevice is purposefully verbose to allow for powerful configurations. No size fits all, but effort is made to reduce boilerplate via providers.
// enable the usbmuxd feature
use ;
use ,
async
More examples are in the tools crate and in the crate documentation.
FFI
For use in other languages, a small FFI crate has been created to start exposing idevice. Example C programs can be found in this repository.
Version Policy
As Apple prohibits downgrading to older versions, this library will not keep compatibility for older versions than the current stable release.
Developer Disk Images
doronz88 is kind enough to maintain a repo
for disk images and personalized images.
On MacOS, you can find them at ~/Library/Developer/DeveloperDiskImages.
License
MIT