adb_client 3.1.1

Rust ADB (Android Debug Bridge) client library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::{
    Result,
    emulator::{ADBEmulatorCommand, ADBEmulatorDevice},
};

impl ADBEmulatorDevice {
    /// Send a SMS to this emulator with given content with given phone number
    pub fn send_sms(&mut self, phone_number: &str, content: &str) -> Result<()> {
        let _ = self.connect()?.send_command(&ADBEmulatorCommand::Sms(
            phone_number.to_string(),
            content.to_string(),
        ))?;
        Ok(())
    }
}