From 050e9e1bbaf81ed25413abb2b3050bffa7e5bf48 Mon Sep 17 00:00:00 2001 From: Omar El Sheikh Date: Mon, 21 Dec 2020 12:49:13 -0500 Subject: [PATCH] Update ADB Command to Install RenderDoc on Android Added the --force-queryable flag to the adb install command for renderdoc Android on devices running Android R/11/SDK 30 A feature being introduced in Android R requires all explicit interactions between apps to be declared ahead of time (either via manifest or during adb install) The --force-queryable flag during adb install does this, and is what allows for the shared objects from renderdoc (in this case the layers) to be discoverable by other apps targeting SDK 30+ --- renderdoc/android/android.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/renderdoc/android/android.cpp b/renderdoc/android/android.cpp index b078c2221..b9f4101ab 100644 --- a/renderdoc/android/android.cpp +++ b/renderdoc/android/android.cpp @@ -413,7 +413,8 @@ ReplayStatus InstallRenderDocServer(const rdcstr &deviceID) "%s missing - ensure you build all ABIs your device can support for full compatibility", apk.c_str()); - Process::ProcessResult adbInstall = adbExecCommand(deviceID, "install -r -g \"" + apk + "\""); + Process::ProcessResult adbInstall = + adbExecCommand(deviceID, "install -r -g --force-queryable \"" + apk + "\""); RDCLOG("Installed package '%s', checking for success...", apk.c_str());