From: Android Tools Maintainers Date: Fri, 27 Jan 2023 05:43:52 +0000 (+0000) Subject: just hard code rather than deal with circular deps X-Git-Tag: archive/raspbian/29.0.6-25+rpi1^2~24 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=ff4b932f70c34234a967e4ffaa6beabf7d04c8b2;p=android-platform-tools.git just hard code rather than deal with circular deps Forwarded: not-needed Gbp-Pq: Topic system/core Gbp-Pq: Name hard-code-build-number.patch --- diff --git a/system/core/adb/adb.cpp b/system/core/adb/adb.cpp index 460ddde5..a2a766b6 100644 --- a/system/core/adb/adb.cpp +++ b/system/core/adb/adb.cpp @@ -44,8 +44,6 @@ #include #include #include -#include -#include #include "adb_auth.h" #include "adb_io.h" @@ -69,7 +67,7 @@ std::string adb_version() { "Version %s-%s\n" "Installed as %s\n", ADB_VERSION_MAJOR, ADB_VERSION_MINOR, ADB_SERVER_VERSION, - PLATFORM_TOOLS_VERSION, android::build::GetBuildNumber().c_str(), + PLATFORM_TOOLS_VERSION, "debian", android::base::GetExecutablePath().c_str()); } diff --git a/system/core/fastboot/fastboot.cpp b/system/core/fastboot/fastboot.cpp index 7fdc28b3..f389aa3c 100644 --- a/system/core/fastboot/fastboot.cpp +++ b/system/core/fastboot/fastboot.cpp @@ -59,10 +59,8 @@ #include #include #include -#include #include #include -#include #include #include @@ -1799,7 +1797,7 @@ int FastBootTool::Main(int argc, char* argv[]) { setvbuf(stdout, nullptr, _IONBF, 0); setvbuf(stderr, nullptr, _IONBF, 0); } else if (name == "version") { - fprintf(stdout, "fastboot version %s-%s\n", PLATFORM_TOOLS_VERSION, android::build::GetBuildNumber().c_str()); + fprintf(stdout, "fastboot version %s-%s\n", PLATFORM_TOOLS_VERSION, "debian"); fprintf(stdout, "Installed as %s\n", android::base::GetExecutablePath().c_str()); return 0; #if !defined(_WIN32)