Projects

airlock

Kiosk-locked Android video player for toddlers: parents pick the videos, and the child can't leave the app.

Status
On Google Play
Platform
Android 7+ · tablet & phone
Built with
Kotlin · Jetpack Compose · Media3
Current release
2.1.1
Screenshot goldens
34
Gate
quality-kit · Play listing CI
Harness
Claude · Cursor · Antigravity CLI
Started
Jul 2026
Airlock child mode: colourful folder tiles and video tiles, with a hint that parents hold two fingers for three seconds
Child mode: curated folders and videos only, exited via the parent gesture.

Overview

Parents import videos from local storage, USB, SD card, or cloud drives, then pin the app so a child sees only chosen tiles. Leaving child mode requires a two-finger hold plus biometrics or the device PIN.

Version 2.0 ported Airlock from Flutter to native Kotlin and Jetpack Compose while reading the original SQLite database so existing libraries upgrade cleanly.

Stack

App

Kotlin + Jetpack Compose
Material 3, single activity, minSdk 24 for older hand-me-down tablets.
Media3 ExoPlayer
Local playback, keeping the screen awake only while video plays.
Lock task + BiometricPrompt
Android screen pinning contains the child; biometrics/PIN guard parent actions.
SQLite (SQLiteOpenHelper)
Append-only schema compatible with earlier Flutter releases.

Import

Storage Access Framework
Imports files or folders from storage, USB, or cloud drives via the system picker.
MediaExtractor / MediaCodecList
Probes every file on-device to verify decoder support before import.

Quality & release

quality-kit kotlin-android pack
ktfmt, detekt, Lint, Robolectric, Roborazzi goldens, Kover, and dependency checks.
Gradle Play Publisher + CI
Versioned Play listing; tagged releases build and publish signed bundles.

Engineering highlights

  1. Pinning is observed, never trusted

    Lock mode (child vs. parent) and OS screen pinning are tracked independently so an OS unpin never silently switches to parent mode. Child mode without an active pin triggers a persistent red warning strip with a one-tap re-pin button.

    Airlock child grid with a red warning strip reading Not pinned, this tablet can be left, and a Pin again button
    The only unsafe state: child mode without an active OS pin.
  2. Tightening is free, loosening is gated

    Handing over or re-pinning needs no auth. Taking control back or exiting requires a 3-second two-finger hold plus biometrics or PIN, and parent mode auto-locks after three idle minutes on the grid.

  3. Rejecting unplayable videos at import

    Every file is probed with MediaExtractor and MediaCodecList on import so budget tablets reject unsupported codecs up front and skip duplicates.

  4. Releases that can't strand users

    CI verifies signing keys before publishing and enforces append-only database upgrades so families never lose their library. Play Store copy and screenshots come straight from the repo's UI tests.

Decisions

  • Jetpack Compose
  • Android lock task / kiosk
  • Biometric auth
  • Media3 / ExoPlayer
  • Storage Access Framework
  • Threat modelling
  • Flutter → native migration
  • Release engineering
  • Screenshot testing