From 90a46995a8eb1260cdbc0e7184b60a138dfca368 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Tue, 19 Dec 2017 15:22:08 +0100 Subject: Makefile: fix Android builds There are 2 known problems with current Android support: 1. It does not work with newer NDK (happens on every NDK update). 2. Dynamic Go binaries do not start on Android emulator. Drop special Android support and just build static linux binaries. For context see: https://groups.google.com/forum/#!msg/syzkaller/etg1ZJmTMzg/NYE-yjxxAQAJ https://groups.google.com/d/msg/syzkaller/8KjCYWslTFY/1oTXn5tTAgAJ Fixes #478 --- docs/linux/setup_linux-host_android-device_arm64-kernel.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'docs/linux/setup_linux-host_android-device_arm64-kernel.md') diff --git a/docs/linux/setup_linux-host_android-device_arm64-kernel.md b/docs/linux/setup_linux-host_android-device_arm64-kernel.md index 7d37c2ff0..a91f8f5ca 100644 --- a/docs/linux/setup_linux-host_android-device_arm64-kernel.md +++ b/docs/linux/setup_linux-host_android-device_arm64-kernel.md @@ -2,14 +2,12 @@ Prerequisites: - go1.8+ toolchain (can be downloaded from [here](https://golang.org/dl/)) - - Android NDK (tested with r15 on API24) (can be downloaded from [here](https://developer.android.com/ndk/downloads/index.html)) - + Set the `$NDK` environment variable to point at it - Android Serial Cable or [Suzy-Q](https://chromium.googlesource.com/chromiumos/platform/ec/+/master/docs/case_closed_debugging.md) device to capture console output is preferable but optional. syzkaller can work with normal USB cable as well, but that can be somewhat unreliable and turn lots of crashes into "lost connection to test machine" crashes with no additional info. - Build syzkaller ```sh -$ NDK=/path/to/android/ndk make TARGETOS=android TARGETARCH=arm64 +$ make TARGETOS=linux TARGETARCH=arm64 ``` - Create config with `"type": "adb"` and specify adb devices to use. For example: -- cgit mrf-deployment