google / nogotofail

An on-path blackbox network traffic security testing tool
Apache License 2.0
2.94k stars 418 forks source link

Enable Bazel to build nogotofail Android app. #89

Closed klyubin closed 9 years ago

klyubin commented 9 years ago

Prerequisites:

  1. Bazel (http://bazel.io/)
  2. WORKSPACE in this directory or any parent ones.
  3. WORKSPACE must declare paths to Bazel's android_tools and to the Android SDK.

Building: $ bazel build :nogotofail

Installing using Bazel:

$ bazel mobile-install :nogotofail

Installing manually (assuming WORKSPACE is in this directory): $ adb install -r -g bazel-bin/nogotofail.apk

Sample WORKSPACE file:

android_local_tools_repository( name="android_tools", path="~/projects/bazel-github")

android_sdk_repository( name="androidsdk", path="~/android/android-sdk-linux", api_level=23, build_tools_version="23.0.0")