| 325 | return result; |
| 326 | } |
| 327 | Process::ProcessResult adbExecCommand(const rdcstr &device, const rdcstr &args, |
| 328 | const rdcstr &workDir, bool silent) |
| 329 | { |
| 330 | rdcstr adb = getToolPath(ToolDir::PlatformTools, "adb", false); |
| 331 | Process::ProcessResult result; |
| 332 | rdcstr deviceArgs; |
| 333 | if(device.empty()) |
| 334 | deviceArgs = args; |
| 335 | else |
| 336 | deviceArgs = StringFormat::Fmt("-s %s %s", device.c_str(), args.c_str()); |
| 337 | return execCommand(adb, deviceArgs, workDir, silent); |
| 338 | } |
| 339 | void initAdb() |
| 340 | { |
| 341 | // we don't use adbExecCommand because we need to be sure we don't wait for it to exit |
no test coverage detected