Skip to content

Commit

Permalink
Add an error if we fail to find the PID for a launched android package
Browse files Browse the repository at this point in the history
  • Loading branch information
baldurk committed Nov 12, 2018
1 parent f331ce8 commit 09fbe3d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions renderdoc/android/android.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit 09fbe3d

Please sign in to comment.