Split out some miscellaneous utility functions

* We also wrap up and cache the fetching of friendly names by serial
  number to avoid some adb traffic.
This commit is contained in:
baldurk
2018-01-26 16:30:16 +00:00
parent 1be3e8bfac
commit 5527c57e68
9 changed files with 151 additions and 103 deletions
+2 -2
View File
@@ -1152,7 +1152,7 @@ public:
{
int index = 0;
std::string deviceID;
Android::extractDeviceIDAndIndex(m_hostname, index, deviceID);
Android::ExtractDeviceIDAndIndex(m_hostname, index, deviceID);
string adbStdout = Android::adbExecCommand(deviceID, "shell pm list packages -3").strStdout;
using namespace std;
@@ -1770,7 +1770,7 @@ RENDERDOC_CreateRemoteServerConnection(const char *host, uint32_t port, IRemoteS
int index = 0;
std::string deviceID;
Android::extractDeviceIDAndIndex(host, index, deviceID);
Android::ExtractDeviceIDAndIndex(host, index, deviceID);
// each subsequent device gets a new range of ports. The deviceID isn't needed since we
// already