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
+3
View File
@@ -38,6 +38,8 @@ RemoteHost::RemoteHost(const QVariant &var)
QVariantMap map = var.toMap();
if(map.contains(lit("Hostname")))
Hostname = map[lit("Hostname")].toString();
if(map.contains(lit("FriendlyName")))
FriendlyName = map[lit("FriendlyName")].toString();
if(map.contains(lit("RunCommand")))
RunCommand = map[lit("RunCommand")].toString();
@@ -48,6 +50,7 @@ RemoteHost::operator QVariant() const
{
QVariantMap map;
map[lit("Hostname")] = Hostname;
map[lit("FriendlyName")] = FriendlyName;
map[lit("RunCommand")] = RunCommand;
return map;
}