Add an error if we fail to find the PID for a launched android package

This commit is contained in:
baldurk
2018-11-12 18:34:31 +00:00
parent f331ce814b
commit 09fbe3d34f
+4
View File
@@ -251,6 +251,10 @@ ExecuteResult StartAndroidPackageForCapture(const char *host, const char *packag
// adb shell ps | grep $PACKAGE | awk '{print $2}')
pid = GetCurrentPID(deviceID, packageName);
if(pid == 0)
RDCERR("Couldn't get PID when launching %s with activity %s", packageName.c_str(),
activityName.c_str());
}
else
{