mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
90 lines
3.3 KiB
Diff
90 lines
3.3 KiB
Diff
diff --git a/adb/adb.cpp b/adb/adb.cpp
|
|
index 24d4292d02..e4ad76b7c3 100644
|
|
--- a/adb/adb.cpp
|
|
+++ b/adb/adb.cpp
|
|
@@ -44,8 +44,6 @@
|
|
#include <android-base/parsenetaddress.h>
|
|
#include <android-base/stringprintf.h>
|
|
#include <android-base/strings.h>
|
|
-#include <build/version.h>
|
|
-#include <platform_tools_version.h>
|
|
|
|
#include "adb_auth.h"
|
|
#include "adb_io.h"
|
|
@@ -66,10 +64,10 @@ std::string adb_version() {
|
|
// Don't change the format of this --- it's parsed by ddmlib.
|
|
return android::base::StringPrintf(
|
|
"Android Debug Bridge version %d.%d.%d\n"
|
|
- "Version %s-%s\n"
|
|
+ "Version %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,
|
|
android::base::GetExecutablePath().c_str());
|
|
}
|
|
|
|
diff --git a/adb/client/main.cpp b/adb/client/main.cpp
|
|
index 0c5c28f1b3..b6a1281521 100644
|
|
--- a/adb/client/main.cpp
|
|
+++ b/adb/client/main.cpp
|
|
@@ -118,10 +118,6 @@ int adb_server_main(int is_daemon, const std::string& socket_spec, int ack_reply
|
|
init_transport_registration();
|
|
init_reconnect_handler();
|
|
|
|
- if (!getenv("ADB_MDNS") || strcmp(getenv("ADB_MDNS"), "0") != 0) {
|
|
- init_mdns_transport_discovery();
|
|
- }
|
|
-
|
|
if (!getenv("ADB_USB") || strcmp(getenv("ADB_USB"), "0") != 0) {
|
|
usb_init();
|
|
} else {
|
|
diff --git a/adb/client/usb_libusb.cpp b/adb/client/usb_libusb.cpp
|
|
index 53f01a0ce5..5be0d91085 100644
|
|
--- a/adb/client/usb_libusb.cpp
|
|
+++ b/adb/client/usb_libusb.cpp
|
|
@@ -30,7 +31,7 @@
|
|
#include <thread>
|
|
#include <unordered_map>
|
|
|
|
-#include <libusb/libusb.h>
|
|
+#include <libusb-1.0/libusb.h>
|
|
|
|
#include <android-base/file.h>
|
|
#include <android-base/logging.h>
|
|
diff --git a/fastboot/fastboot.cpp b/fastboot/fastboot.cpp
|
|
index 8923f409df..d245a577ff 100644
|
|
--- a/fastboot/fastboot.cpp
|
|
+++ b/fastboot/fastboot.cpp
|
|
@@ -58,9 +58,7 @@
|
|
#include <android-base/stringprintf.h>
|
|
#include <android-base/strings.h>
|
|
#include <android-base/unique_fd.h>
|
|
-#include <build/version.h>
|
|
#include <liblp/liblp.h>
|
|
-#include <platform_tools_version.h>
|
|
#include <sparse/sparse.h>
|
|
#include <ziparchive/zip_archive.h>
|
|
|
|
@@ -1749,7 +1747,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\n", PLATFORM_TOOLS_VERSION);
|
|
fprintf(stdout, "Installed as %s\n", android::base::GetExecutablePath().c_str());
|
|
return 0;
|
|
#if !defined(_WIN32)
|
|
diff --git a/fastboot/fs.cpp b/fastboot/fs.cpp
|
|
index 8c0aa6bf4e..3ad5b53568 100644
|
|
--- a/fastboot/fs.cpp
|
|
+++ b/fastboot/fs.cpp
|
|
@@ -117,7 +117,7 @@ static int generate_ext4_image(const char* fileName, long long partSize,
|
|
static constexpr int block_size = 4096;
|
|
const std::string exec_dir = android::base::GetExecutableDirectory();
|
|
|
|
- const std::string mke2fs_path = exec_dir + "/mke2fs";
|
|
+ const std::string mke2fs_path = exec_dir + "/mke2fs.android";
|
|
std::vector<const char*> mke2fs_args = {mke2fs_path.c_str(), "-t", "ext4", "-b"};
|
|
|
|
std::string block_size_str = std::to_string(block_size);
|