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

Function IsSupported

renderdoc/android/android_utils.cpp:172–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170}
171
172bool IsSupported(rdcstr deviceID)
173{
174 rdcstr api =
175 Android::adbExecCommand(deviceID, "shell getprop ro.build.version.sdk").strStdout.trimmed();
176
177 int apiVersion = atoi(api.c_str());
178
179 // SDK 23 == Android 6.0, our minimum spec. Only fail if we did parse an SDK string, in case some
180 // Android devices don't support the query - we assume they are new enough.
181 if(apiVersion >= 0 && apiVersion < 23)
182 {
183 RDCWARN("Device '%s' is on api version %d which is not supported",
184 GetFriendlyName(deviceID).c_str(), apiVersion);
185 return false;
186 }
187
188 return true;
189}
190
191rdcstr GetFolderName(const rdcstr &deviceID)
192{

Callers 2

GetDevicesMethod · 0.70
IsSupportedMethod · 0.70

Calls 4

adbExecCommandFunction · 0.85
GetFriendlyNameFunction · 0.85
trimmedMethod · 0.80
c_strMethod · 0.45

Tested by

no test coverage detected