adb_client 3.2.0

Rust ADB (Android Debug Bridge) client library
Documentation
use crate::{
    Result,
    models::{ADBCommand, ADBLocalCommand},
    server_device::ADBServerDevice,
};

impl ADBServerDevice {
    /// Disable verity on the device
    pub fn disable_verity(&mut self) -> Result<()> {
        self.set_serial_transport()?;

        self.transport
            .send_adb_request(&ADBCommand::Local(ADBLocalCommand::DisableVerity))
    }

    /// Enable verity on the device
    pub fn enable_verity(&mut self) -> Result<()> {
        self.set_serial_transport()?;

        self.transport
            .send_adb_request(&ADBCommand::Local(ADBLocalCommand::EnableVerity))
    }
}