Show "(reverse)" in "adb reverse --list".
Bug: http://b/17788586 Change-Id: I250a1459295ed38e8d962da8bea2a8d2f83c7ef0
This commit is contained in:
parent
3bcdaa2877
commit
34c20bbdff
1 changed files with 3 additions and 1 deletions
|
|
@ -142,8 +142,10 @@ std::string format_listeners() {
|
|||
continue;
|
||||
}
|
||||
// <device-serial> " " <local-name> " " <remote-name> "\n"
|
||||
// Entries from "adb reverse" have no serial.
|
||||
android::base::StringAppendF(&result, "%s %s %s\n",
|
||||
l->transport->serial, l->local_name, l->connect_to);
|
||||
l->transport->serial ? l->transport->serial : "(reverse)",
|
||||
l->local_name, l->connect_to);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue