Skip to main content

ImageMounterClient

Struct ImageMounterClient 

Source
pub struct ImageMounterClient<S> { /* private fields */ }
Expand description

High-level image mounter client.

Implementations§

Source§

impl<S: AsyncRead + AsyncWrite + Unpin + Send> ImageMounterClient<S>

Source

pub fn new(stream: S) -> Self

Source

pub async fn copy_devices( &mut self, ) -> Result<Vec<Dictionary>, ImageMounterError>

Return raw mounted image entries reported by mobile_image_mounter.

Source

pub async fn is_image_mounted(&mut self) -> Result<bool, ImageMounterError>

Check if a developer image is already mounted.

Source

pub async fn lookup_image_signatures( &mut self, image_type: &str, ) -> Result<Vec<Vec<u8>>, ImageMounterError>

Return mounted image signatures for an image type.

Source

pub async fn mount_standard( &mut self, image_bytes: &[u8], signature: &[u8], ) -> Result<(), ImageMounterError>

Mount a standard (pre-iOS 17) developer disk image.

image_bytes: the DeveloperDiskImage.dmg contents signature: the DeveloperDiskImage.dmg.signature contents

Source

pub async fn mount_personalized( &mut self, trustcache: &[u8], build_manifest: &[u8], image_bytes: &[u8], ticket: &[u8], ) -> Result<(), ImageMounterError>

Mount a personalized (iOS 17+) developer disk image.

trustcache: the trust cache data build_manifest: the BuildManifest.plist bytes image_bytes: the personalized disk image ticket: the TSS ticket (ApImg4Ticket)

Source

pub async fn query_personalization_identifiers( &mut self, ) -> Result<HashMap<String, Value>, ImageMounterError>

Query personalization identifiers (board ID, chip ID, etc.)

Source

pub async fn query_personalization_identifiers_with_type( &mut self, personalized_image_type: &str, ) -> Result<HashMap<String, Value>, ImageMounterError>

Query personalization identifiers for a specific personalized image type.

Source

pub async fn query_personalization_manifest( &mut self, personalized_image_type: &str, image_signature: &[u8], ) -> Result<Vec<u8>, ImageMounterError>

Query the personalization manifest associated with a mounted personalized image.

Source

pub async fn query_nonce(&mut self) -> Result<Vec<u8>, ImageMounterError>

Query the personalization nonce.

Source

pub async fn query_nonce_with_type( &mut self, personalized_image_type: &str, ) -> Result<Vec<u8>, ImageMounterError>

Query the personalization nonce for a specific personalized image type.

Source

pub async fn query_developer_mode_status( &mut self, ) -> Result<bool, ImageMounterError>

Query whether developer mode is enabled on the device.

Source

pub async fn unmount_image( &mut self, mount_path: &str, ) -> Result<(), ImageMounterError>

Unmount a mounted image at a mount path such as /Developer or /System/Developer.

Source

pub async fn hangup(&mut self) -> Result<(), ImageMounterError>

Send Hangup to close the session.

Auto Trait Implementations§

§

impl<S> Freeze for ImageMounterClient<S>
where S: Freeze,

§

impl<S> RefUnwindSafe for ImageMounterClient<S>
where S: RefUnwindSafe,

§

impl<S> Send for ImageMounterClient<S>
where S: Send,

§

impl<S> Sync for ImageMounterClient<S>
where S: Sync,

§

impl<S> Unpin for ImageMounterClient<S>
where S: Unpin,

§

impl<S> UnsafeUnpin for ImageMounterClient<S>
where S: UnsafeUnpin,

§

impl<S> UnwindSafe for ImageMounterClient<S>
where S: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more