MCPcopy Create free account
hub / github.com/baldurk/renderdoc / adbExecCommand

Function adbExecCommand

renderdoc/android/android_tools.cpp:327–338  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

325 return result;
326}
327Process::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}
339void initAdb()
340{
341 // we don't use adbExecCommand because we need to be sure we don't wait for it to exit

Callers 15

GetSupportedABIsFunction · 0.85
GetPathForPackageFunction · 0.85
IsSupportedFunction · 0.85
GetFolderNameFunction · 0.85
SupportsNativeLayersFunction · 0.85
DetermineInstalledABIFunction · 0.85
GetFriendlyNameFunction · 0.85
HasRootAccessFunction · 0.85
IsDebuggableFunction · 0.85
TickMethod · 0.85
shutdownAdbFunction · 0.85
adbForwardPortsFunction · 0.85

Calls 5

getToolPathFunction · 0.85
FmtFunction · 0.85
execCommandFunction · 0.85
emptyMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected