MCPcopy Create free account
hub / github.com/baldurk/renderdoc / SupportsNativeLayers

Function SupportsNativeLayers

renderdoc/android/android_utils.cpp:204–216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202}
203
204bool SupportsNativeLayers(const rdcstr &deviceID)
205{
206 rdcstr api =
207 Android::adbExecCommand(deviceID, "shell getprop ro.build.version.sdk").strStdout.trimmed();
208
209 int apiVersion = atoi(api.c_str());
210
211 // SDK 29 == Android 10.0, the first version that included layering
212 if(apiVersion >= 29)
213 return true;
214
215 return false;
216}
217
218rdcstr DetermineInstalledABI(const rdcstr &deviceID, const rdcstr &packageName)
219{

Callers 1

ExecuteAndInjectMethod · 0.85

Calls 3

adbExecCommandFunction · 0.85
trimmedMethod · 0.80
c_strMethod · 0.45

Tested by

no test coverage detected