| 170 | } |
| 171 | |
| 172 | bool 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 | |
| 191 | rdcstr GetFolderName(const rdcstr &deviceID) |
| 192 | { |
no test coverage detected