the project is build adb from souce code. the adb verson is 1.0.41. code base on android10-release code. i can build the source on linux x86_64 system, and arm64 system success!
there I didn't provide a arm cross compile environment. but only the release binary is provided.(because i build it on a pure linux arm os system(such as MacBook Air M1), so i don't need cross compile environment :). If you can, please help modify&create a cross compiling environment、makefile to improve the project )
├── adb
├── depend
├── Dockerfile
├── Makefile
it is adb source code base on platform/system/core/adb branch android10-release。 you can get as follow
git clone https://android.googlesource.com/platform/system/core -b android10-release --depth=1
it is the needed denpend source or header code when build adb, the codes are collected from core folder.
to build the source to adb executable binary file
the build platform; include :
-
clang-10/clang++-10 the source require c++20.
-
openssl library, build from boringssl.
-
libusb, install from apt package
cd adb-proj && docker build -t adb-build-env .
or the docker image you can get from docker-hub
docker pull raochaoxun/adb-build-env-aarch64:1.0.0 (docker pull raochaoxun/adb-build-env-x86-64:1.0.0)
cd adb-proj
docker run -it --rm --name adb-build -v xxxx/xxx/adb-proj:/work/adb-proj adb-build-env:latest /bin/bash
cd adb-proj
make all
build adb base on Android 11 with adb wifi features