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

Function ListPackages

renderdoc/android/android.cpp:386–403  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

384}
385
386Process::ProcessResult ListPackages(const rdcstr &deviceID, const rdcstr &parameters)
387{
388 Process::ProcessResult result = adbExecCommand(deviceID, "shell getprop ro.build.version.sdk");
389
390 int sdkVersion = -1;
391 if(result.retCode == 0)
392 sdkVersion = atoi(result.strStdout.c_str());
393
394 // Android 13 and higher
395 if(sdkVersion >= 33)
396 result = adbExecCommand(deviceID,
397 "shell pm list packages --user $(am get-current-user) " + parameters);
398
399 if(result.retCode != 0 || sdkVersion < 33)
400 result = adbExecCommand(deviceID, "shell pm list packages " + parameters);
401
402 return result;
403}
404
405RDResult InstallRenderDocServer(const rdcstr &deviceID)
406{

Callers 4

InstallRenderDocServerFunction · 0.85
ListFolderMethod · 0.85
StartRemoteServerMethod · 0.85

Calls 2

adbExecCommandFunction · 0.85
c_strMethod · 0.45

Tested by

no test coverage detected