android: Attempt to call adb directly if path not provided

This commit is contained in:
Cody Northrop
2017-04-26 20:47:04 +01:00
committed by baldurk
parent f60968b103
commit 5863607ba2
+10
View File
@@ -544,6 +544,16 @@ bool IsHostADB(const char *hostname)
string adbExecCommand(const string &args)
{
string adbExePath = RenderDoc::Inst().GetConfigSetting("adbExePath");
if(adbExePath.empty())
{
static bool warnPath = true;
if(warnPath)
{
RDCWARN("adbExePath not set, attempting to call 'adb' in working env");
warnPath = false;
}
adbExePath.append("adb");
}
Process::ProcessResult result;
Process::LaunchProcess(adbExePath.c_str(), "", args.c_str(), &result);
RDCLOG("COMMAND: adb %s", args.c_str());