(&self, id: &str, app_path: &str)
| 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)?; |
nothing calls this directly
no test coverage detected