mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 17:40:39 +00:00
Add check for android activity being valid
This commit is contained in:
@@ -192,6 +192,11 @@ ExecuteResult StartAndroidPackageForCapture(const char *host, const char *packag
|
||||
// adb shell cmd package resolve-activity -c android.intent.category.LAUNCHER com.jake.cube1
|
||||
string activityName = GetDefaultActivityForPackage(deviceID, packageName);
|
||||
|
||||
if(activityName.find(packageName) == std::string::npos)
|
||||
RDCERR(
|
||||
"Activity name doesn't contain package name - potential problem, check package has default "
|
||||
"activity");
|
||||
|
||||
uint16_t jdwpPort = GetJdwpPort();
|
||||
|
||||
// remove any previous jdwp port forward on this port
|
||||
|
||||
Reference in New Issue
Block a user