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

Method install_app

packages/server/src/android.rs:353–362  ·  view source on GitHub ↗
(&self, id: &str, app_path: &str)

Source from the content-addressed store, hash-verified

351 }
352
353 pub fn install_app(&self, id: &str, app_path: &str) -> Result<(), AppError> {
354 if !app_path.ends_with(".apk") {
355 return Err(AppError::bad_request(
356 "Android install expects an `.apk` path.",
357 ));
358 }
359 let serial = self.serial_for_id(id)?;
360 self.run_adb(["-s", &serial, "install", "-r", app_path])?;
361 Ok(())
362 }
363
364 pub fn uninstall_app(&self, id: &str, package_name: &str) -> Result<(), AppError> {
365 let serial = self.serial_for_id(id)?;

Callers

nothing calls this directly

Calls 2

serial_for_idMethod · 0.80
run_adbMethod · 0.80

Tested by

no test coverage detected