This directory contains the Android Studio project for CHIPTool, an Android application for commissioning and controlling CHIP accessories.
CHIPTool offers the following features:
:warning: Connection to the CHIP device's soft AP will be a manual step until pairing is implemented.
You need Android SDK 21 & NDK downloaded to your machine. Set the $ANDROID_HOME
environment variable to where the SDK is downloaded and the $ANDROID_NDK_HOME
environment variable to point to where the NDK package is downloaded.
TARGET_CPU
can have the following values, depending on your smartphone CPU architecture:
ABI | TARGET_CPU |
---|---|
armeabi-v7a | arm |
arm64-v8a | arm64 |
x86 | x86 |
x86_64 | x64 |
Complete the following steps to build CHIPTool:
Check out the CHIP repository.
In the command line, run the following command from the top CHIP directory:
TARGET_CPU=arm64 ./scripts/examples/android_app.sh
See the table above for other values of TARGET_CPU
.
Open the project in Android Studio and run Sync Project with Gradle Files.
Use one of the following options to build an Android package:
Click Make Project in Android Studio.
Run the following command in the command line:
cd src/android/CHIPTool ./gradlew build
The debug Android package app-debug.apk
will be generated at ./app/build/outputs/apk/debug/
.