summaryrefslogtreecommitdiffstats
path: root/fastboot/fastboot.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2017-03-30 15:08:28 -0700
committerElliott Hughes <enh@google.com>2017-03-30 15:10:24 -0700
commit1fd46dfa7266337324ca4429676a278a904192ba (patch)
tree650fdc2b012d8236d466afed4fb1a0c16b6784ee /fastboot/fastboot.cpp
parent6fb2ef1d03ffad5b9253647daf0fcc6888b2aac4 (diff)
downloadcore-1fd46dfa7266337324ca4429676a278a904192ba.tar.gz
core-1fd46dfa7266337324ca4429676a278a904192ba.tar.bz2
core-1fd46dfa7266337324ca4429676a278a904192ba.zip
Show install path in "adb --version" and "fastboot --version".
Bug: http://b/36766455 Bug: http://b/34691048 Test: ran tests Change-Id: I4b67ec54d41a281fe7a33c017d3cfbc8055e3b43
Diffstat (limited to 'fastboot/fastboot.cpp')
-rw-r--r--fastboot/fastboot.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/fastboot/fastboot.cpp b/fastboot/fastboot.cpp
index 2927b16ca..a99ba23e5 100644
--- a/fastboot/fastboot.cpp
+++ b/fastboot/fastboot.cpp
@@ -1536,6 +1536,7 @@ int main(int argc, char **argv)
setvbuf(stderr, nullptr, _IONBF, 0);
} else if (strcmp("version", longopts[longindex].name) == 0) {
fprintf(stdout, "fastboot version %s\n", FASTBOOT_REVISION);
+ fprintf(stdout, "Installed as %s\n", android::base::GetExecutablePath().c_str());
return 0;
} else if (strcmp("slot", longopts[longindex].name) == 0) {
slot_override = std::string(optarg);