tree: a85eb97ada9812c49cd2ee231e014ee83e316896 [path history] [tgz]
  1. .idea/
  2. app/
  3. gradle/
  4. .gitignore
  5. build.gradle
  6. gradle.properties
  7. gradlew
  8. gradlew.bat
  9. README.md
  10. settings.gradle
src/android/CHIPTool/README.md

This directory contains an Android Studio project for CHIPTool.

CHIPTool features: Scan a CHIP QR code and display payload information to the user Send echo requests to the CHIP echo server Send on/off cluster requests to a CHIP device

  • Connection to the chip device's soft AP will be a manual step until pairing is implemented.

Steps to build CHIP for Android apps

Pre-conditions: Have 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 the NDK package is downloaded.

ABIs and corresponding values for TARGET_CPU

ABITARGET_CPU
armeabi-v7aarm
arm64-v8aarm64
x86x86
x86_64x64
  1. Checkout the CHIP repo

  2. In commandline / Terminal, ‘cd’ into the top CHIP directory and run

    sudo apt-get install -y swig # "brew install swig" for macOS.
    TARGET_CPU=arm64 ./scripts/examples/android_app.sh
    

    See table above for other values of TARGET_CPU.

  3. ‘Gradle sync’ the Android project and run.