Ozone - Activity Tracker
Mobile Developer & UI/UX Designer at SpiralCode Innovates LLP
Case Study Narrative
The business context and technical outcomes of this project.
Employee mileage audits and salary calculations were highly inaccurate due to standard background applications getting aggressively killed by the Android OS, alongside GPS drift overstating travel distance.
Building a highly persistent, battery-optimized tracker that collects accurate coordinates in 15-minute intervals, survives background terminations, and prevents location tampering.
Built a custom Android native foreground service in Kotlin utilizing EventChannel, Kalman filtering algorithms to filter coordinate drift, and a local Room Database persistence layer surviving OS process restarts.
Achieved salary-grade location tracking accuracy, survived background kills, and established transparent anti-tamper audit logs for managers.
Native Kotlin Location Tracking System Flow
Hover over any system node in the diagram below to inspect its technical details and implementation responsibility.
Flutter UI
MethodChannel
Foreground Service
Mock & GPS Guard
Kalman Filter
Room Database
EventChannel
Flutter UI
Renders live trip progress, movement state, and security alerts.
MethodChannel
Sends config parameters and invokes commands via typed runner.
Foreground Service
Persists active shifts across OS kills and device reboots (START_STICKY).
Mock & GPS Guard
Blocks fake GPS apps in Release builds and detects mid-shift provider shutdowns.
Kalman Filter
Eliminates stationary coordinate jitter and indoor drift on-device.
Room Database
Stores daily odometer history with automatic midnight rollover & 7-day prune.
EventChannel
Streams live coordinates, movement states, and typed security alerts to Flutter.
Hover over any system component block to inspect the engineering implementation details.
Key Engineering Challenges
A detailed breakdown of low-level infrastructure and systems problems successfully solved during implementation.
The Challenge
Problem Statement
Salary calculations depended heavily on accurate distance tracking. The challenge was to create a tamper-proof tracking system that works reliably in the background while conserving battery.
Research & Decisions
Persistence
Built a custom persistence layer using SharedPreferences and Room to survive aggressive Android OS background app killing.
Persistence
Built a custom persistence layer using SharedPreferences and Room to survive aggressive Android OS background app killing.
Audit Trail
Every background action logs its execution state (Success/Retry/Fail), creating a transparent audit trail for salary validation.
Audit Trail
Every background action logs its execution state (Success/Retry/Fail), creating a transparent audit trail for salary validation.
Features & Implementation
Technologies Used
Project Interface Flow
Visual layout mapping the primary interface checkpoints and telemetry data pipelines of the application.



