Shuhaib
Workforce ManagementInternal Enterprise AppFeb 2025 - Dec 2025

Ozone - Activity Tracker

Mobile Developer & UI/UX Designer at SpiralCode Innovates LLP

Proprietary internal system — deployment restricted to closed network.

Case Study Narrative

The business context and technical outcomes of this project.

01. The Problem

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.

02. The Challenge

Building a highly persistent, battery-optimized tracker that collects accurate coordinates in 15-minute intervals, survives background terminations, and prevents location tampering.

03. The Solution

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.

04. The Result

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 / Dart

Flutter UI

Renders live trip progress, movement state, and security alerts.

Platform Channel

MethodChannel

Sends config parameters and invokes commands via typed runner.

Kotlin Service

Foreground Service

Persists active shifts across OS kills and device reboots (START_STICKY).

ADR-008 Security

Mock & GPS Guard

Blocks fake GPS apps in Release builds and detects mid-shift provider shutdowns.

Kotlin Algorithm

Kalman Filter

Eliminates stationary coordinate jitter and indoor drift on-device.

Room SQLite

Room Database

Stores daily odometer history with automatic midnight rollover & 7-day prune.

Typed EventBus

EventChannel

Streams live coordinates, movement states, and typed security alerts to Flutter.

Key Engineering Challenges

A detailed breakdown of low-level infrastructure and systems problems successfully solved during implementation.

Custom Kotlin native foreground service with EventChannel
Kalman filtering algorithm to resolve GPS drift
Persistent Room database surviving aggressive background OS kills
Anti-tamper logs to prevent mock locations or spoofing

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.

GPS Drift
Battery Optimization
Tamper Proofing

Research & Decisions

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.

Features & Implementation

Technologies Used

Flutter
Riverpod
Kotlin Plugin
Room DB

Project Interface Flow

Visual layout mapping the primary interface checkpoints and telemetry data pipelines of the application.

Screen mockup 1
Checkpoint 1
Screen mockup 2
Checkpoint 2
Screen mockup 3
Checkpoint 3
Screen mockup 4
Checkpoint 4