Cross compile Android Debug Bridge (adb) for 64-bit Windows
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
AdbWinUsb.c
README.md
build-zipalign.sh
build.sh
dependencies.sh
get-sources.sh
makefile.sample
makefile.zipalign
usb_none.cpp

README.md

Cross compile the Android Debug Bridge (adb) for 64-bit Windows

This is an all-in-one script to build the Android adb tool (v 1.0.36) for 64-bit Windows architecture. When executed, the script will download all the necessary files and it will run a custom makefile to build adb.exe executable.

By default, the Android SDK for Windows includes a 32-bit version of the Android Debug Bridge (adb). Some versions of Windows, such as Nano Server, do not include a 32-bit subsystem.

This project contains scripts which allow you to cross-compile adb on a Linux machine (we've used Ubuntu 16.04) for 64-bit Windows.

Requirements

  • A Git client
  • A toolchain which allows you to cross-compile for 64-bit Windows on Linux

Setup

sudo apt-get install  mingw-w64 git make
git clone https://github.com/qmfrederik/adb-win64/
cd adb-win64

# Get the sources from Google
./get-sources.sh

# Build OpenSSL
./dependencies.sh

# Build adb
./build.sh

You'll then have a 64-bit adb.exe in your current folder.

Credits

The scripts are based on: