MCPcopy Index your code
hub / github.com/NativeScript/SimDeck / run_console_command_for_serial

Method run_console_command_for_serial

packages/server/src/android.rs:994–1001  ·  view source on GitHub ↗
(&self, serial: &str, command: &str)

Source from the content-addressed store, hash-verified

992 }
993
994 fn run_console_command_for_serial(&self, serial: &str, command: &str) -> Result<(), AppError> {
995 let port = console_port_from_serial(serial).ok_or_else(|| {
996 AppError::native(format!(
997 "Android emulator serial `{serial}` does not expose a console port."
998 ))
999 })?;
1000 run_android_console_command(port, command)
1001 }
1002
1003 fn run_adb_shell(&self, serial: &str, script: &str) -> Result<String, AppError> {
1004 self.run_adb(["-s", serial, "shell", script])

Callers 1

send_touchMethod · 0.80

Calls 2

console_port_from_serialFunction · 0.85

Tested by

no test coverage detected