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+
This commit is contained in:
Omar El Sheikh
2020-12-21 12:49:13 -05:00
committed by Baldur Karlsson
parent 7aee537700
commit 050e9e1bba
+2 -1
View File
@@ -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());