3 This directory contains the Android Studio project for CHIPTool, an Android
4 application for commissioning and controlling CHIP accessories.
6 CHIPTool offers the following features:
8 - Scan a CHIP QR code and display payload information to the user
9 - Read the NFC tag containing CHIP onboarding information
10 - Commission a CHIP device
11 - Send echo requests to the CHIP echo server
12 - Send on/off cluster requests to a CHIP device
14 > :warning: Connection to the CHIP device's soft AP will be a manual step until
15 > pairing is implemented.
17 ## Requirements for building
19 You need Android SDK 21 & NDK downloaded to your machine. Set the
20 `$ANDROID_HOME` environment variable to where the SDK is downloaded and the
21 `$ANDROID_NDK_HOME` environment variable to point to where the NDK package is
24 ## ABIs and TARGET_CPU
26 `TARGET_CPU` can have the following values, depending on your smartphone CPU
30 | ----------- | ---------- |
38 Complete the following steps to build CHIPTool:
40 1. Check out the CHIP repository.
42 2. In the command line, run the following command from the top CHIP directory:
45 sudo apt-get install -y swig # "brew install swig" for macOS.
46 TARGET_CPU=arm64 ./scripts/examples/android_app.sh
49 See the table above for other values of `TARGET_CPU`.
51 3. Open the project in Android Studio and run **Sync Project with Gradle
54 4. Use one of the following options to build an Android package:
56 - Click **Make Project** in Android Studio.
57 - Run the following command in the command line:
60 cd src/android/CHIPTool
64 The debug Android package `app-debug.apk` will be generated at
65 `./app/build/outputs/apk/debug/`.