From ea929668a75682169dce786046cd1a96047b0890 Mon Sep 17 00:00:00 2001 From: baldurk Date: Thu, 15 Feb 2018 16:43:11 +0000 Subject: [PATCH] Create android package data directory in case app doesn't do it natively --- renderdoc/android/android.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/renderdoc/android/android.cpp b/renderdoc/android/android.cpp index 344ae28a4..12fc806ca 100644 --- a/renderdoc/android/android.cpp +++ b/renderdoc/android/android.cpp @@ -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",