Developer documentation for DTRAC collection SDK 0.1.0-alpha12. It reads Health Connect records and phone sensors on Android 11 (API 30) or newer and delivers sleep/activity summaries and collection status. The detailed Korean reference covers 22 pages and 75 API entries.
Download the SDK and samples
These files download directly from dtrac.pages.dev. No GitHub sign-in or repository permission is required.
| Package | Purpose | Download |
|---|---|---|
| MD4BD test sample | Eight health types, GPS/light, optional screen/phone states; obfuscated SDK included | Sample ZIP |
| SDK Maven package | AAR, POM, module metadata and checksums for an existing Android app | SDK ZIP |
| Minimal Quickstart | Setup, permissions, first readings and optional background collection | Quickstart ZIP |
Download instructions · Full API reference · Earlier GitHub releases
Alpha12 is supplied directly on this website. Its GitHub Release has not been published; the link opens earlier releases in the private repository. SDK implementation source and obfuscation mappings are excluded.
Install and run
Extract the sample ZIP, open DtracSdkSample in Android Studio, and run app. Use the MD4BD sample for screen and phone testing. The first Gradle build needs internet access.
For an existing app, extract the Maven package into the project root and register vendor/maven. The coordinate is com.hdil.dtrac:sdk:0.1.0-alpha12; it is not published to Maven Central. The SDK uses Java 17 bytecode and the samples compile/target Android SDK 36.
Create an instance with DtracSdk.create(application), then use sdk.md4bdCollector() or sdk.collector(config). Creating the SDK does not start new collection. The host handles permission UI and explicitly requests start/stop.
Find data and APIs
The detailed reference is in Korean, with Kotlin signatures, parameters, results, errors and examples. Search, code copy and data-type filters are available.
| Area | Reference |
|---|---|
| Startup, consumers, diagnostics and recovery | Collector API |
| Thirteen health types | Health data · Health API |
| GPS, light, acceleration, screen, cellular signal and call state | Phone sensors · Sensor API |
| Background sensor collection | Foreground collection API |
| Periodic health reads | Health collection API |
| Sleep and daily activity | Calculation guide · Calculation API |
| Record freshness, errors and result models | Freshness API · Models |
Default one-minute GPS and light requests
GPS requests 60,000ms and light requests 60,000,000µs. These are requested intervals, not a guarantee of a new sample each minute. Light is on-change and GPS may be unavailable. Old values are not re-emitted as new measurements.
Configure managed light collection with SensorCollectionConfig.lightSamplingPeriodUs. The existing samplingPeriodUs now controls acceleration (default 200ms). Move any alpha11 light override to the new field and recompile consuming apps and libraries. Health Connect remains on the default 15-minute schedule.
Collection and storage boundaries
The study preset selects eight health types and GPS/light. Screen, cellular signal and call-state collection are separate sample actions. Acceleration and own-app session APIs remain available but are not started by the study sample. Device-wide app usage is not collected.
Explicitly started sensors run in the SDK foreground service. Periodic Health Connect reads use WorkManager, with a default 15-minute schedule subject to OS delays. Values are delivered as latest results and consumer callbacks without a measurement database, file archive or server upload. Schedule configuration and execution timestamps remain persisted by the SDK/WorkManager.
Call state requires READ_PHONE_STATE. Phone numbers, call logs and audio are not collected. Observed OFFHOOK duration is not confirmed conversation time; missed and rejected calls cannot be distinguished reliably. Interactive screen state is not physical display/AOD state.
Flutter needs a separate Android platform-channel bridge/plugin. No dedicated Flutter plugin or iOS implementation is included. See the FAQ.
Validation and earlier documentation
The original alpha11 work passed 117 SDK tests, 30 MD4BD sample tests and one Quickstart test, obfuscated builds, lint with no errors, compilation of 75 API examples and API 36 emulator checks. On 2026-11-11, alpha12 passed 118 SDK tests, 30 sample tests, one Quickstart test, SDK release and both consumer debug/R8 release builds, lint with no errors, and compilation of all 75 API examples. No physical Galaxy was connected to validate the new delivery cadence.
Physical Galaxy/carrier tests, SIM switching, long-running power management and Samsung Health synchronization still need verification. Freshness alone cannot establish watch disconnection or non-wear.
The earlier alpha01 architecture assessment retains its existing URL. Its DtracRuntime describes a different implementation from the current collection SDK's DtracSdk.