Create android package data directory in case app doesn't do it natively

This commit is contained in:
baldurk
2018-02-15 16:43:11 +00:00
parent 38d87b9b3b
commit ea929668a7
+2
View File
@@ -142,6 +142,8 @@ uint32_t StartAndroidPackageForCapture(const char *host, const char *package,
adbExecCommand(deviceID, "shell am force-stop " + packageName);
// enable the vulkan layer (will only be used by vulkan programs)
adbExecCommand(deviceID, "shell setprop debug.vulkan.layers " RENDERDOC_VULKAN_LAYER_NAME);
// create the data directory we will use for storing, in case the application doesn't
adbExecCommand(deviceID, "shell mkdir -p /sdcard/Android/data/" + packageName);
// set our property with the capture options encoded, to be picked up by the library on the device
adbExecCommand(deviceID, StringFormat::Fmt("shell setprop debug.rdoc.RENDERDOC_CAPTUREOPTS %s",