Compare commits

...
Sign in to create a new pull request.

38 commits

Author SHA1 Message Date
Fedora Release Engineering
eb666bfdb7 Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild 2026-01-16 03:40:16 +00:00
LuK1337
f4e618fff0
Backport "Make legacy USB driver default on Linux" from 16.0.0_r4 2026-01-13 16:23:09 +01:00
Alejandro Sáez
4f0625a69a rebuild 2025-10-10 16:40:54 +02:00
Zephyr Lykos
fe376952de
Fix compilation on Protobuf v30 2025-09-07 04:53:20 +08:00
Maxwell G
a7811d0d8c Rebuild for golang-1.25.0 2025-08-15 16:00:27 -05:00
Maxwell G
2490cf9e7c Revert "Rebuild for golang-1.25.0"
This reverts commit 20bf6bd216.
2025-08-15 15:24:52 -05:00
Maxwell G
20bf6bd216 Rebuild for golang-1.25.0 2025-08-15 14:19:37 -05:00
Fedora Release Engineering
f46d5a55f0 Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-23 16:58:41 +00:00
LuK1337
08f8a57945
Remove _hardened_build global
Default as of Fedora 23.

[1] https://fedoraproject.org/wiki/Changes/Harden_All_Packages
2025-05-10 12:57:01 +02:00
LuK1337
cde401255b
Remove adb.service and udev rules
No longer necessary now that systemd allows access to adb/fastboot
devices by default.

[1] https://github.com/systemd/systemd/pull/36939
[2] https://src.fedoraproject.org/rpms/systemd/pull-request/205
2025-05-09 10:07:00 +02:00
LuK1337
f600dbf371
Remove generate_build.rb
Unused as of 823ac9f141.
2025-05-09 08:26:12 +02:00
LuK1337
1ad29521a8
Reenable libusb SuperSpeed+ support
libusb1-1.0.28 is now available.
2025-03-27 09:09:02 +01:00
Ivan Afonichev
94ec095167 Merge #9 Update to 35.0.2 2025-03-04 11:31:50 +00:00
LuK1337
c6a57cb402
Update to 35.0.2 2025-03-02 14:05:46 +01:00
ip
5bf988b822
Add Nextbit
Manufacturer=Nextbit
Product=Robin
2025-02-23 21:03:52 +01:00
ip
38c0ac37cf
Add Essential
Essential Products
Essential PH-1
2025-02-23 21:03:52 +01:00
Wanam
59b6423286
Add oneplus rules 2025-02-23 21:03:52 +01:00
Dominic
6b563e1bf1
add rules for meizu 2025-02-23 21:03:52 +01:00
Fedora Release Engineering
eaa589d238 Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-16 11:01:52 +00:00
Miroslav Suchý
5eab4b68dd convert license to SPDX
This is part of https://fedoraproject.org/wiki/Changes/SPDX_Licenses_Phase_4
2024-08-28 07:52:32 +02:00
Fedora Release Engineering
b9435381ad Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-17 16:59:02 +00:00
Robert-André Mauchin
44e2b82d36 Update to 35.0.1 2024-05-06 08:52:38 +02:00
Orion Poplawski
5c41b4b107 Add patch to fix build with gcc 14 2024-02-27 19:54:45 -07:00
Maxwell G
5bd3df1ea2
Rebuild for golang 1.22.0 2024-02-11 21:37:17 +00:00
Fedora Release Engineering
feb44c6bc5 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-22 23:02:20 +00:00
Fedora Release Engineering
5db1e67a3c Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-19 12:55:42 +00:00
Ivan Afonichev
96d77679ba Fix e2fsdroid 2024-01-04 16:02:17 +04:00
Ivan Afonichev
e464aca6d7 More ppc64le cleanup 2024-01-04 14:45:02 +04:00
Ivan Afonichev
38eea7154c Boringssl dropped support for ppc64le 2024-01-04 01:20:43 +04:00
Ivan Afonichev
72c6f6ba7a Fix ppc64le patch tabs 2024-01-04 01:00:18 +04:00
Ivan Afonichev
16720cea76 Fix ppc64le patch for 34.0.4 2024-01-04 00:41:38 +04:00
Ivan Afonichev
7a0b225559 Fix ppc64le patch to be ready for upstream 2024-01-03 14:28:03 +04:00
Ivan Afonichev
d516b13b90 Revert "Try to build e2fsdroid on ppc64le"
This reverts commit 57845dedfa.
2024-01-03 11:09:32 +04:00
Ivan Afonichev
57845dedfa Try to build e2fsdroid on ppc64le 2023-11-05 23:23:21 +04:00
Ivan Afonichev
1baa4e1e63 Upload new version 2023-11-05 03:25:54 +04:00
Ivan Afonichev
bb83ef8d3f Update to 34.0.4 2023-11-04 03:32:00 +04:00
Fedora Release Engineering
fc132f20b6 Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-19 13:16:10 +00:00
Fedora Release Engineering
0b6ff00843 Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-18 21:43:41 +00:00
9 changed files with 125 additions and 8983 deletions

View file

@ -0,0 +1,38 @@
From d349fae010f6c780d76e89c5d6b81d45119137c0 Mon Sep 17 00:00:00 2001
From: Arnav Singh <me@arnavion.dev>
Date: Sat, 3 Aug 2024 21:55:23 -0700
Subject: [PATCH] Fix libusb enumeration to handle PINE64 PinePhone modem.
The PINE64 PinePhone modem exposes itself as an adb-accessible device over USB
but its device class is LIBUSB_CLASS_MISCELLANEOUS, so allow that too.
---
vendor/adb/client/usb_libusb.cpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/vendor/adb/client/usb_libusb.cpp b/vendor/adb/client/usb_libusb.cpp
index 6133e7c8..9af91eb7 100644
--- a/vendor/adb/client/usb_libusb.cpp
+++ b/vendor/adb/client/usb_libusb.cpp
@@ -364,8 +364,8 @@ struct LibusbConnection : public Connection {
}
bool FindInterface(libusb_device_descriptor* device_desc) {
- if (device_desc->bDeviceClass != LIBUSB_CLASS_PER_INTERFACE) {
- // Assume that all Android devices have the device class set to per interface.
+ if (device_desc->bDeviceClass != LIBUSB_CLASS_PER_INTERFACE && device_desc->bDeviceClass != LIBUSB_CLASS_MISCELLANEOUS) {
+ // Assume that all Android devices have the device class set to per interface or miscellaneous.
// TODO: Is this assumption valid?
VLOG(USB) << "skipping device with incorrect class at " << device_address_;
return false;
@@ -1039,7 +1039,7 @@ void usb_init() {
static_cast<libusb_hotplug_event>(LIBUSB_HOTPLUG_EVENT_DEVICE_ARRIVED |
LIBUSB_HOTPLUG_EVENT_DEVICE_LEFT),
LIBUSB_HOTPLUG_ENUMERATE, LIBUSB_HOTPLUG_MATCH_ANY, LIBUSB_HOTPLUG_MATCH_ANY,
- LIBUSB_CLASS_PER_INTERFACE, hotplug_callback, nullptr, nullptr);
+ LIBUSB_HOTPLUG_MATCH_ANY, hotplug_callback, nullptr, nullptr);
if (rc != LIBUSB_SUCCESS) {
LOG(FATAL) << "failed to register libusb hotplug callback";
--
2.46.0

View file

@ -0,0 +1,36 @@
From 36c605004ae1c75813181ffe4c59907016aaf9e9 Mon Sep 17 00:00:00 2001
From: Biswapriyo Nath <nathbappai@gmail.com>
Date: Tue, 22 Apr 2025 15:12:23 +0000
Subject: [PATCH] extras/libjsonpb: Fix incompatibility with protobuf v30
This commit fixes the following compiler error.
jsonpb.cpp:36:44: error: invalid operands to binary expression (
'basic_string<char, char_traits<char>, allocator<char>>' and
'internal::DescriptorStringView' (aka 'basic_string_view<char>'))
36 | return std::string(kTypeUrlPrefix) + "/" + message.GetDescriptor()->full_name();
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
More info here https://protobuf.dev/news/2024-10-02/#descriptor-apis
Change-Id: I3c76d51dfdfbe013eaa5031e6194bf5edae1be35
---
libjsonpb/parse/jsonpb.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vendor/extras/libjsonpb/parse/jsonpb.cpp b/vendor/extras/libjsonpb/parse/jsonpb.cpp
index b342c2b..ebd71bf 100644
--- a/vendor/extras/libjsonpb/parse/jsonpb.cpp
+++ b/vendor/extras/libjsonpb/parse/jsonpb.cpp
@@ -33,7 +33,7 @@ using google::protobuf::util::TypeResolver;
static constexpr char kTypeUrlPrefix[] = "type.googleapis.com";
std::string GetTypeUrl(const Message& message) {
- return std::string(kTypeUrlPrefix) + "/" + message.GetDescriptor()->full_name();
+ return std::string(kTypeUrlPrefix) + "/" + std::string(message.GetDescriptor()->full_name());
}
ErrorOr<std::string> MessageToJsonString(const Message& message) {
--
2.49.0

View file

@ -0,0 +1,34 @@
From 55d30a3098c29431bcbeb2d2a5f1a0c40844c311 Mon Sep 17 00:00:00 2001
From: Fabien Sanglard <sanglardf@google.com>
Date: Mon, 23 Jun 2025 11:21:16 -0700
Subject: [PATCH] Make legacy USB driver default on Linux
Bug: 366314975
Bug: 398328647
Test: Manual
Flag: EXEMPT (adb.exe)
Change-Id: Id49df58587d3f479d263a5b2da1679a1e675feb5
---
client/transport_usb.cpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/vendor/adb/client/transport_usb.cpp b/vendor/adb/client/transport_usb.cpp
index 3b0b4906..d3b4929c 100644
--- a/vendor/adb/client/transport_usb.cpp
+++ b/vendor/adb/client/transport_usb.cpp
@@ -177,9 +177,9 @@ bool is_adb_interface(int usb_class, int usb_subclass, int usb_protocol) {
}
bool is_libusb_enabled() {
- bool enable = true;
-#if defined(_WIN32)
- enable = false;
+ bool enable = false;
+#if defined(__APPLE__)
+ enable = true;
#endif
char* env = getenv("ADB_LIBUSB");
if (env) {
--
2.52.0

File diff suppressed because it is too large Load diff

View file

@ -1,42 +0,0 @@
diff -up android-tools-33.0.3p1/vendor/CMakeLists.mke2fs.txt.orig android-tools-33.0.3p1/vendor/CMakeLists.mke2fs.txt
--- android-tools-33.0.3p1/vendor/CMakeLists.mke2fs.txt.orig 2022-07-13 18:44:44.000000000 +0200
+++ android-tools-33.0.3p1/vendor/CMakeLists.mke2fs.txt 2022-11-06 08:51:50.692313421 +0100
@@ -117,27 +117,6 @@ target_link_libraries("${ANDROID_MKE2FS_
target_include_directories("${ANDROID_MKE2FS_NAME}" PRIVATE
e2fsprogs/lib)
-add_executable(e2fsdroid
- e2fsprogs/contrib/android/e2fsdroid.c
- e2fsprogs/contrib/android/basefs_allocator.c
- e2fsprogs/contrib/android/block_range.c
- e2fsprogs/contrib/android/base_fs.c
- e2fsprogs/contrib/android/fsmap.c
- e2fsprogs/contrib/android/block_list.c
- e2fsprogs/contrib/android/perms.c)
-
-include(CheckIncludeFile)
-CHECK_INCLUDE_FILE("sys/types.h" HAVE_SYS_TYPES_H)
-
-if(HAVE_SYS_TYPES_H)
- target_compile_definitions(e2fsdroid PUBLIC HAVE_SYS_TYPES_H)
-endif(HAVE_SYS_TYPES_H)
-
-target_link_libraries(e2fsdroid
- libext2fs libsparse libzip libcutils liblog libutil libbase libselinux libsepol z pcre2-8 pthread)
-target_include_directories(e2fsdroid PRIVATE
- e2fsprogs/lib e2fsprogs/lib/ext2fs selinux/libselinux/include core/libcutils/include e2fsprogs/misc)
-
add_executable(ext2simg
e2fsprogs/contrib/android/ext2simg.c)
diff -up android-tools-33.0.3p1/vendor/CMakeLists.txt.orig android-tools-33.0.3p1/vendor/CMakeLists.txt
--- android-tools-33.0.3p1/vendor/CMakeLists.txt.orig 2022-11-05 10:01:04.000000000 +0100
+++ android-tools-33.0.3p1/vendor/CMakeLists.txt 2022-11-06 09:09:11.351267287 +0100
@@ -89,7 +89,6 @@ install(TARGETS
lpmake
lpunpack
simg2img
- e2fsdroid
ext2simg
DESTINATION bin)

View file

@ -1,14 +0,0 @@
# Systemd unit file for adb
[Unit]
Description=Android Debug Bridge (adb) service
[Service]
Type=forking
ExecStart=/usr/bin/adb start-server
ExecStop=/usr/bin/adb kill-server
PrivateTmp=yes
Environment=HOME=/var/lib/adb
[Install]
WantedBy=multi-user.target

View file

@ -1,25 +1,26 @@
%global _hardened_build 1
Name: android-tools Name: android-tools
Version: 33.0.3p1 Version: 35.0.2
Release: %autorelease Release: %autorelease
Epoch: 1 Epoch: 1
Summary: Android platform tools(adb, fastboot) Summary: Android platform tools(adb, fastboot)
# The entire source code is ASL 2.0 except boringssl which is BSD # The entire source code is ASL 2.0 except boringssl which is BSD
License: ASL 2.0 and (ASL 2.0 and BSD) # Automatically converted from old format: ASL 2.0 and (ASL 2.0 and BSD) - review is highly recommended.
License: Apache-2.0 AND (Apache-2.0 AND LicenseRef-Callaway-BSD)
URL: http://developer.android.com/guide/developing/tools/ URL: http://developer.android.com/guide/developing/tools/
# Sources with all needed patches and cmakelists live there now: # Sources with all needed patches and cmakelists live there now:
Source0: https://github.com/nmeum/%{name}/releases/download/%{version}/%{name}-%{version}.tar.xz Source0: https://github.com/nmeum/%{name}/releases/download/%{version}/%{name}-%{version}.tar.xz
Source1: 51-android.rules # https://github.com/nmeum/android-tools/issues/153
Source2: adb.service Patch0: 0001-Fix-libusb-enumeration.patch
# e2fsdroid doesn't build on ppc64le # https://github.com/nmeum/android-tools/pull/172
# See https://github.com/tytso/e2fsprogs/issues/127 Patch1: 0002-extras-libjsonpb-Fix-incompatibility-with-protobuf-v30.patch
Patch0: Disable-e2fsdroid-for-ppc64le.patch # https://github.com/nmeum/android-tools/pull/190
Patch2: 0003-Make-legacy-USB-driver-default-on-Linux.patch
BuildRequires: brotli-devel BuildRequires: brotli-devel
BuildRequires: cmake BuildRequires: cmake
BuildRequires: fmt-devel
BuildRequires: gcc BuildRequires: gcc
BuildRequires: gcc-c++ BuildRequires: gcc-c++
BuildRequires: gtest-devel BuildRequires: gtest-devel
@ -46,7 +47,8 @@ Provides: mke2fs.android = %{epoch}:%{version}-%{release}
Provides: bundled(boringssl) Provides: bundled(boringssl)
# Bundled boringssl doesn't support the big endian architectures rhbz 1431379 # Bundled boringssl doesn't support the big endian architectures rhbz 1431379
ExcludeArch: ppc ppc64 s390x # And dropped ppc64le support: https://github.com/google/boringssl/commit/7d2338d000eb1468a5bbf78e91854236e18fb9e4
ExcludeArch: ppc ppc64 s390x ppc64le
%description %description
@ -69,11 +71,7 @@ to read and write the flash partitions. It needs the same USB device
setup between the host and the target phone as adb. setup between the host and the target phone as adb.
%prep %prep
%setup -q %autosetup -p1
%ifarch ppc64le
%patch0 -p1
%endif
cp -p %{SOURCE1} 51-android.rules
%build %build
export GO111MODULE=off export GO111MODULE=off
@ -82,24 +80,8 @@ export GO111MODULE=off
%install %install
%cmake_install %cmake_install
install -p -D -m 0644 %{SOURCE2} \
%{buildroot}%{_unitdir}/adb.service
install -d -m 0775 ${RPM_BUILD_ROOT}%{_sharedstatedir}/adb
%post
%systemd_post adb.service
%preun
%systemd_preun adb.service
%postun
%systemd_postun_with_restart adb.service
%files %files
%doc 51-android.rules
%{_unitdir}/adb.service
%attr(0755,root,root) %dir %{_sharedstatedir}/adb
%attr(0755,root,root) %dir %{_datadir}/android-tools
#ASL2.0 and BSD #ASL2.0 and BSD
%{_bindir}/adb %{_bindir}/adb
#ASL2.0 #ASL2.0
@ -109,18 +91,18 @@ install -d -m 0775 ${RPM_BUILD_ROOT}%{_sharedstatedir}/adb
%{_bindir}/img2simg %{_bindir}/img2simg
%{_bindir}/fastboot %{_bindir}/fastboot
%{_bindir}/append2simg %{_bindir}/append2simg
%ifnarch ppc64le
%{_bindir}/e2fsdroid %{_bindir}/e2fsdroid
%endif
%{_bindir}/ext2simg %{_bindir}/ext2simg
%{_bindir}/lpadd %{_bindir}/lpadd
%{_bindir}/lpdump %{_bindir}/lpdump
%{_bindir}/lpflash %{_bindir}/lpflash
%{_bindir}/lpmake %{_bindir}/lpmake
%{_bindir}/lpunpack %{_bindir}/lpunpack
%{_bindir}/make_f2fs
%{_bindir}/mkbootimg %{_bindir}/mkbootimg
%{_bindir}/mkdtboimg %{_bindir}/mkdtboimg
%{_bindir}/repack_bootimg %{_bindir}/repack_bootimg
%{_bindir}/sload_f2fs
%{_bindir}/unpack_bootimg %{_bindir}/unpack_bootimg
%{_datadir}/android-tools/completions/adb %{_datadir}/android-tools/completions/adb
%{_datadir}/android-tools/completions/fastboot %{_datadir}/android-tools/completions/fastboot
@ -128,6 +110,7 @@ install -d -m 0775 ${RPM_BUILD_ROOT}%{_sharedstatedir}/adb
%{_datadir}/android-tools/mkbootimg/mkbootimg.py %{_datadir}/android-tools/mkbootimg/mkbootimg.py
%{_datadir}/bash-completion/completions/adb %{_datadir}/bash-completion/completions/adb
%{_datadir}/bash-completion/completions/fastboot %{_datadir}/bash-completion/completions/fastboot
%{_mandir}/man1/adb.1.*
%changelog %changelog
%autochangelog %autochangelog

View file

@ -1,234 +0,0 @@
#!/usr/bin/ruby
# Android build system is complicated and does not allow to build
# separate parts easily.
# This script tries to mimic Android build rules.
def expand(dir, files)
files.map{|f| File.join(dir,f)}
end
# Compiles sources to *.o files.
# Returns array of output *.o filenames
def compile(sources, cflags)
outputs = []
for s in sources
ext = File.extname(s)
case ext
when '.c'
cc = 'cc'
lang_flags = '-std=gnu11 $CFLAGS $CPPFLAGS'
when '.cpp', '.cc'
cc = 'cxx'
lang_flags = '-std=gnu++17 $CXXFLAGS $CPPFLAGS'
else
raise "Unknown extension #{ext}"
end
output = s + '.o'
outputs << output
puts "build #{output}: #{cc} #{s}\n cflags = #{lang_flags} #{cflags}"
end
return outputs
end
# dir - directory where ninja file is located
# lib - static library path relative to dir
def subninja(dir, lib)
puts "subninja #{dir}build.ninja"
return lib.each{|l| dir + l}
end
# Links object files
def link(output, objects, ldflags)
puts "build #{output}: link #{objects.join(' ')}\n ldflags = #{ldflags} $LDFLAGS"
end
puts "# This set of commands generated by generate_build.rb script\n\n"
puts "CC = #{ENV['CC'] || 'clang'}"
puts "CXX = #{ENV['CXX'] || 'clang++'}\n\n"
puts "CFLAGS = #{ENV['CFLAGS']}"
puts "CXXFLAGS = #{ENV['CXXFLAGS']}"
puts "LDFLAGS = #{ENV['LDFLAGS']}"
puts "PKGVER = #{ENV['PKGVER']}\n\n"
puts """
rule cc
command = $CC $cflags -c $in -o $out
rule cxx
command = $CXX $cflags -c $in -o $out
rule link
command = $CXX $ldflags $LDFLAGS $in -o $out
"""
adbdfiles = %w(
adb.cpp
adb_io.cpp
adb_listeners.cpp
adb_trace.cpp
adb_utils.cpp
adb_unique_fd.cpp
sockets.cpp
transport.cpp
transport_local.cpp
transport_usb.cpp
fdevent.cpp
shell_service_protocol.cpp
)
libadbd = compile(expand('core/adb', adbdfiles), '-DADB_HOST=1 -Icore/diagnose_usb/include -Icore/include -Icore/base/include -Icore/adb -Icore/libcrypto_utils/include')
adbfiles = %w(
client/auth.cpp
client/console.cpp
socket_spec.cpp
client/bugreport.cpp
client/line_printer.cpp
client/commandline.cpp
client/adb_client.cpp
services.cpp
client/file_sync_client.cpp
sysdeps_unix.cpp
sysdeps/errno.cpp
sysdeps/posix/network.cpp
client/main.cpp
client/usb_dispatch.cpp
client/usb_linux.cpp
client/usb_libusb.cpp
client/transport_mdns.cpp
)
libadb = compile(expand('core/adb', adbfiles), '-D_GNU_SOURCE -DADB_HOST=1 -Icore/libcrypto_utils/include -Iboringssl/src/include -Icore/include -Icore/base/include -Icore/adb -Imdnsresponder/mDNSShared')
basefiles = %w(
file.cpp
threads.cpp
logging.cpp
parsenetaddress.cpp
stringprintf.cpp
strings.cpp
errors_unix.cpp
test_utils.cpp
)
libbase = compile(expand('core/base', basefiles), '-DADB_HOST=1 -Icore/base/include -Icore/include')
logfiles = %w(
log_event_write.c
fake_log_device.c
log_event_list.c
logger_write.c
config_write.c
config_read.c
logger_lock.c
local_logger.c
fake_writer.c
logger_name.c
stderr_write.c
logprint.c
)
liblog = compile(expand('core/liblog', logfiles), '-DLIBLOG_LOG_TAG=1006 -D_XOPEN_SOURCE=700 -DFAKE_LOG_DEVICE=1 -Icore/libsystem/include -Icore/liblog/include -Icore/include')
cutilsfiles = %w(
fs_config.cpp
canned_fs_config.cpp
android_get_control_file.cpp
socket_network_client_unix.cpp
socket_inaddr_any_server_unix.cpp
sockets.cpp
sockets_unix.cpp
socket_local_client_unix.cpp
socket_local_server_unix.cpp
)
libcutils = compile(expand('core/libcutils', cutilsfiles), '-D_GNU_SOURCE -Icore/libcutils/include -Icore/include -Icore/base/include')
diagnoseusbfiles = %w(
diagnose_usb.cpp
)
libdiagnoseusb = compile(expand('core/diagnose_usb', diagnoseusbfiles), '-Icore/diagnose_usb/include -Icore/include -Icore/base/include')
libcryptofiles = %w(
android_pubkey.c
)
libcrypto = compile(expand('core/libcrypto_utils', libcryptofiles), '-Icore/libcrypto_utils/include -Iboringssl/src/include')
utilfiles = %w(
FileMap.cpp
Unicode.cpp
SharedBuffer.cpp
String8.cpp
String16.cpp
)
libutil = compile(expand('core/libutils', utilfiles), '-Icore/include')
mdnsfiles = %w(
mDNSShared/dnssd_ipc.c
mDNSShared/dnssd_clientstub.c
)
mdns = compile(expand('mdnsresponder', mdnsfiles), '-D_GNU_SOURCE -DHAVE_IPV6 -DHAVE_LINUX -DNOT_HAVE_SA_LEN -DUSES_NETLINK -UMDNS_DEBUGMSGS -DMDNS_DEBUGMSGS=0 -Imdnsresponder/mDNSShared -Imdnsresponder/mDNSCore -Iinclude')
zipfiles = %w(
zip_archive_stream_entry.cc
zip_archive.cc
)
libzip = compile(expand('core/libziparchive', zipfiles), '-Icore/libziparchive/include -Icore/base/include -Icore/include')
boringcryptofiles = %w(
bn/cmp.c
bn/bn.c
bytestring/cbb.c
mem.c
buf/buf.c
bio/file.c
bn/convert.c
base64/base64.c
)
boringcrypto = compile(expand('boringssl/src/crypto', boringcryptofiles), '-Iboringssl/src/include -Iinclude')
link('adb', libbase + liblog + libcutils + libcrypto + libadbd + libadb + libdiagnoseusb + libutil + libzip + mdns + boringcrypto, '-lz -lcrypto -lpthread -lusb-1.0')
fastbootfiles = %w(
bootimg_utils.cpp
fs.cpp
socket.cpp
tcp.cpp
udp.cpp
usb_linux.cpp
util.cpp
main.cpp
engine.cpp
fastboot.cpp
fastboot_driver.cpp
)
libfastboot = compile(expand('core/fastboot', fastbootfiles), '-DFASTBOOT_VERSION="\"$PKGVER\"" -D_GNU_SOURCE -D_XOPEN_SOURCE=700 -DUSE_F2FS -Icore/base/include -Icore/include -Icore/adb -Icore/libsparse/include -Icore/mkbootimg/include/bootimg -Icore/libziparchive/include -Icore/diagnose_usb/include')
sparsefiles = %w(
backed_block.cpp
output_file.cpp
sparse.cpp
sparse_crc32.cpp
sparse_err.cpp
sparse_read.cpp
)
libsparse = compile(expand('core/libsparse', sparsefiles), '-Icore/libsparse/include -Icore/base/include')
link('fastboot', libsparse + libzip + libcutils + liblog + libutil + libbase + libfastboot + libdiagnoseusb, '-lz -lpcre2-8 -lpthread -ldl')
simg2imgfiles = %w(
simg2img.cpp
)
libsimg2img = compile(expand('core/libsparse', simg2imgfiles), '-Iinclude -Icore/libsparse/include')
link('simg2img', libbase + libsparse + libsimg2img, '-lz')
img2simgfiles = %w(
img2simg.cpp
)
libimg2simg = compile(expand('core/libsparse', img2simgfiles), '-Iinclude -Icore/libsparse/include')
link('img2simg', libbase + libsparse + libimg2simg, '-lz')

View file

@ -1 +1 @@
SHA512 (android-tools-33.0.3p1.tar.xz) = 22ed3d9a71a962764998c8c4759215d24a1af121d43942c77c00878d636aea16a6b940811624bb1ae56ac416922d7262d5ced5436e646fe2dae0944b593ad4fe SHA512 (android-tools-35.0.2.tar.xz) = 391ce4d638b274d7bbae24a3df8de8b5812a982570f29b2aef37d12a3ba7ed6f66b5c0b7f908759e0b0da30d152b5319af0fef16c54bdc3b9f4074fb22f80d10