GithubHelp home page GithubHelp logo

jasoncook32 / adb-standalone-build Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sheerlox/adb-standalone-build

0.0 0.0 0.0 18.83 MB

adb (Android Debug Bridge) standalone build suite

License: GNU General Public License v3.0

Shell 40.31% Makefile 59.69%

adb-standalone-build's Introduction

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

  • cmake (>= 3.10)
  • clang
  • libstdc++-11-dev
  • libgcc-11-dev
  • libudev-dev
  • libc6-dev
  • golang-go (to build BoringSSL)
  • pkg-config (optional, improves BoringSSL build tests)
  • libunwind-dev (optional, improves BoringSSL build tests)
  • autoconf (to build libusb)
  • libtool (to build libusb)

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

  • x86_64 Ubuntu 22.04 5.15.0-60-generic / clang 14 / libstdc++-dev 11.3 / libgcc-dev 11.3 / cmake 3.22 / go 1.18 / autoconf 2.71 / libtool 2.4

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

adb-standalone-build's People

Contributors

sheerlox avatar stevenrao avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.