Skip to content

About

Android app to connect, update and manage the OpenZilo ring

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

OpenZilo Connect

OpenZilo Connect is the Android companion and connection broker for OpenZilo rings. It owns the Bluetooth connection and grants other Android apps access to specific ring capabilities. Speech recognition and model management belong to the client, not Connect.

Build from source

Use JDK 21, Git, and Android command-line tools. Set ANDROID_HOME to the Android SDK path. The Gradle wrapper builds the app and downloads libopenzilo and miuix from Maven Central. No submodules, Rust toolchain, or NDK installation is needed.

git clone https://github.com/ziloai/OpenZilo-Connect.git
cd OpenZilo-Connect
sdkmanager 'platforms;android-37.0' 'platforms;android-37.2' 'build-tools;37.0.0'
./gradlew testDebugUnitTest lintDebug assembleDebug

The debug APK is at app/build/outputs/apk/debug/app-debug.apk. Android 8.0 (API 26) or newer is required. The debug APK uses a local debug signing key and is for development, not a signed production release.

Android app integration

The connect-api library contains the Binder client and AIDL contract. An app can build against that library without compiling the Bluetooth or Rust implementation. OpenZilo Input is a working client.

  1. Install Connect and connect a ring from its UI.
  2. Declare package visibility for com.openzilo.connect in the client manifest, then bind using ConnectClient.connect().
  3. Use requestAuthorization() for the scopes needed by your app and open the returned authorization intent with user interaction. Check authorization before invoking protected operations. Devices on Android 12 or newer may require the user to grant Nearby devices permission to Connect itself.
  4. Compare the service’s apiVersion with ConnectClient.API_VERSION. Subscribe to events before enabling live audio, and close the client when it is no longer needed.

The Android client AAR is published to Maven Central. With mavenCentral() configured in settings.gradle.kts, add this to your Android module's dependencies:

implementation("com.openzilo:connect-api:0.1.3")

Use compileSdk 37 or newer and a compiler that can read Kotlin 2.4 metadata; Connect and Input use Kotlin 2.4.21. The AAR is not an installable app. Install a compatible version of Connect on the device. There is no desktop/iOS host in this repository yet.

Releases

The android-release.yml workflow publishes com.openzilo:connect-api to Maven Central, along with the client AAR, a signed release APK, a signed release AAB, and SHA256SUMS.txt on GitHub Releases. Push a vX.Y.Z tag matching connectVersion in gradle.properties to trigger it.

Community

License

Connect is licensed under MPL-2.0. It builds against a pinned libopenzilo Android package on Maven Central (MPL-2.0) and published miuix packages (Apache-2.0). License copies and corresponding-source information are bundled in assets/licenses/ inside the APK.

About

Android app to connect, update and manage the OpenZilo ring

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages