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.
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 assembleDebugThe 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.
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.
- Install Connect and connect a ring from its UI.
- Declare package visibility for
com.openzilo.connectin the client manifest, then bind usingConnectClient.connect(). - 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. - Compare the service’s
apiVersionwithConnectClient.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.
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.
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.
