Use adb getprop to give adb devices friendly names

* This means you'll see "Google Pixel XL" or "samsung SM-G900F" instead
  of "HT74T0200775" or "9a9502c6"
This commit is contained in:
baldurk
2017-06-15 05:28:07 -07:00
committed by Baldur Karlsson
parent 02a7d8d50c
commit c76b8298f8
8 changed files with 57 additions and 13 deletions
@@ -193,6 +193,9 @@ void PersistantConfig::AddAndroidHosts()
{
RemoteHost *host = new RemoteHost();
host->Hostname = lit("adb:") + hostName;
rdctype::str friendly;
RENDERDOC_GetAndroidFriendlyName(hostName.toUtf8().data(), friendly);
host->FriendlyName = ToQStr(friendly);
// Just a command to display in the GUI and allow Launch() to be called.
host->RunCommand = lit("org.renderdoc.renderdoccmd");
RemoteHosts.push_back(host);