1#!/bin/bash
2#
3# Copyright 2016 Google Inc. All Rights Reserved.
4#
5# This is the setup script for generating and installing the ndk app.
6#
7# This script is intended to be used by binary_search_state.py, as
8# part of the binary search triage on the Android source tree. It should
9# return '0' if the setup succeeds; and '1' if the setup fails (the image
10# could not build or be flashed).
11#
12
13echo
14echo "INSTALLATION BEGIN"
15echo
16
17# This normally shouldn't be hardcoded, but this is a sample bisection.
18# Also keep in mind that the bisection tool mandates all paths are
19# relative to binary_search_state.py
20cd ndk/Teapot
21
22echo "BUILDING APP"
23
24./gradlew installArm7Debug
25gradle_status=$?
26
27exit ${gradle_status}
28