sheerlox / adb-standalone-build

adb (Android Debug Bridge) standalone build suite
GNU General Public License v3.0
2 stars 1 forks source link
adb android-platform-tools standalone

adb-standalone-build

This project aims to build a standalone adb binary on Linux from downloaded sources (more trustable than source code copy-pasta and better maintainability).

The initial goal was to build the binary for the Raspberry Pi 4b (aarch64 processor), but it should be architecture-independent since it builds everything from sources (developed on my x86-64 laptop and then built without any issue on the RPi4b).

Dependencies

For Debian / Ubuntu:

sudo apt-get install cmake clang libstdc++-11-dev libgcc-11-dev libudev1 libudev-dev golang-go pkg-config libunwind-dev autoconf libtool

Usage

Clone the repositories and install dependencies, then just:

cd adb-standalone-build/
make
make test

By default, messages are logged by each target (e.g. Downloading adb source ..., Building boringssl ..., etc...) and the commands' output is muted to follow the build more easily, but you can tail -f error.log to watch if anything goes wrong, or just comment the SUPPRESS_OUTPUT line in the root Makefile to get full commands output.

Tested on

Screenshot

image

Credits

Initially forked from stevenrao/adb-proj.

This application uses Open Source components. You can find the source code of their open source projects along with license information below. We acknowledge and are grateful to these developers for their contributions to open source.

Project: semver-tool https://github.com/fsaintjacques/semver-tool
Copyright 2023 François Saint-Jacques.
License (Apache License 2.0) https://github.com/fsaintjacques/semver-tool/blob/3.4.0/LICENSE