Skip to main content

Overview

The Synheart Core Android/Kotlin SDK provides a unified API for collecting HSI-compatible data, processing human state on-device, and generating focus/emotion signals in native Android applications. Key Features:
  • Native Android support
  • On-device HSI Runtime
  • Kotlin Coroutines and Flow integration
  • Real-time state updates
  • Privacy-first architecture

Installation

Add to your build.gradle (app level):

Configuration

AndroidManifest.xml

Add required permissions:

Basic Usage

Initialize the SDK

Subscribe to HSI Updates

Activate features

The SynheartFeature enum gates collection by feature. Activation is one of four conditions a feature needs (consent, capability tier, an active session — see Capability System).
State signals (focus, emotion, recovery, etc.) are not separate features — they’re axes inside the HSI JSON emitted by Synheart.onHSIUpdate. Parse the JSON to read them.

Complete example

HSI snapshot reference

The HSI Runtime emits raw JSON strings via Synheart.onHSIUpdate (Flow<String>). Parse the JSON to extract fields like the affect / engagement / activity / context axes. See the HSI specification for the wire format.

Cloud connector

Configuration options

Authentication for cloud uploads is hardware-backed device ECDSA (Android Keystore) per RFC-AUTH-MOBILE-0001. The runtime owns request signing via the host’s synheart-auth integration — CloudConfig does not carry shared secrets or HMAC keys. See Synheart Auth overview for the device-identity flow.

Diagnostics & upload inspection

Use the diagnostics surface to inspect runtime state and force a flush when consent and network are eligible.

Error Handling

See Consent System for the full consent model.

API Reference

Synheart

Main SDK object. Methods: Flows:

Resources