Skip to content

About

A companion app for the status-screen server vitals tracker

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Status Screen Companion App for Android

An offline-first Android companion to Status Screen, a self-hosted personal tracking app.

Log calories, weight, blood pressure, journal notes, and tags from anywhere. Data you enter is stored on your device and syncs directly with your server when a connection is available. There are no analytics, third-party services, or cloud accounts involved.

Status: beta. It generally works for daily use, but is still in active, early development. Read Security and privacy before pointing it at a server you care about.

Day screen
Daily log
Reports
Reports

Features

  • Daily log: food (name and calories), weight, blood pressure, journal note, and tags
  • Calendar: quickly jump to any past day
  • Food suggestions: autocomplete lists powered by previously logged foods
  • Calorie goal: shows whether you are over/under your set calories-per-day budget
  • Blood pressure categories: colorized by severity, from normal all the way through stage 2
  • Custom tags: create, rename, delete, and toggle your own customizable tags
  • Reports: Date-range summaries of your data. Max report length is limited to 1 year.
  • Offline-first: every action is saved locally on your device, and syncs with the server when it can
  • Background sync: synchronization happens every 15 minutes on unmetered networks (Wi-Fi), shortly after each edit in the app, when the app opens, and on-demand
  • Server-controlled features: features you disable on the web portal profile page disappear from the app, too

Not supported yet: custom HTTPS certificates, report exports, in-app profile page, and safe multi-device offline editing (see Sync).

Requirements

  • Android 8.0 (API 26) or newer
  • A reachable Status Screen server (same Wi-Fi, a VPN, or a tunnel you trust)

Getting Started

1. Install

Download the latest status-screen.apk from the Releases.

The release process automatically verifies the integrity of the APK with apksigner. You can check it yourself or use the included SHA-256 checksum:

sha256sum status-screen.apk

Open the APK on your device and allow installation when asked.

2. Sign In

Enter your server information on first launch:

Field Example
Server address 10.10.10.1:3000, status-screen.local:3000, or https://status-screen.example.com
Email The account you created on the server's web sign-up page
Password Your account's password

Addresses without a scheme default to http://.

Your first login downloads your complete server history. The app then works offline and syncs whenever it can see your server.

Note: Signing in with a different account removes the previous account's local data from the device. A warning is shown when unsynced changes are present during sign-out.

3. Using the App

  • Day screen: Move between days with the arrows. Fill out cards as needed.
  • Sync status: The last successful sync and pending changes are shown here at the top of the screen. Use Sync now to force a new sync. Sign out removes the device's local data (your synced data stays on the server).
  • Report: Opens a summary for the date range you choose. Pick a quick range or set exact dates, and choose which sections to include.
  • Rejected changes: If the server refuses a change for whatever reason, it remains on your local device and offers a Retry option.
  • About screen: Displays the app version, license, and open-source credits.

Security and Privacy

  • No tracking: There are no analytics, ads, or third-party services.
  • Encrypted credentials: Authentication tokens are encrypted using a key held in the Android Keystore. Your password is never stored.
  • Android cloud backup is disabled: so the local database is not uploaded to your Google account.
  • Session control: Tokens expire after 60 days of idle time or one year total, and you can revoke any token from your server's profile page.

⚠️ HTTP and Network Security

The app permits plain HTTP to support self-hosted servers without HTTPS certificates.

Plain HTTP is inherently insecure. Anyone able to intercept your network traffic could obtain all your data, including your login credentials.

  • HTTP may be acceptable on a trusted, isolated, home network.
  • Use HTTPS through a reverse proxy or a VPN when connecting over networks you don't control.
  • Avoid attempting to connect to your server over plain HTTP on untrusted networks (e.g. public Wi-Fi)

Custom certificates and certificate pinning are not supported yet.

Sync

The app keeps a local outbox of pending changes.

When synchronization happens, the app:

  1. Sends pending local changes to your server.
  2. Downloads any new changes made on the server.
  3. Reconciles records and resolves conflicts.
  4. Flags any rejections from the server for you to retry/review.

When Does Synchronization Occur?

  1. Briefly after making an edit while on an unmetered network.
  2. When the app is opened/resumed.
  3. Every 15 minutes on unmetered networks (i.e. Wi-Fi).
  4. Whenever you tap the Sync now option.

Conflict Resolution

Situation Behavior
Every sign-in Full server download
Record deleted on app or server Deletions always win over edits to the same record
Conflicting edits Most-recent modification is preserved
Server rejects a change Data remains in app database and an explanation for the rejection is provided.

Known limitation: Sync is primarily designed for one actively used device alongside the web app. Edits across multiple satellite devices while both are offline can lead to lost data.

The full protocol is documented in the server repo's SyncService.

Development

Build from Source

Prerequisites

  1. The latest Android Studio
  2. Git
  3. Android SDK
  4. An Android device or emulator

Build

git clone https://github.com:Kmagameguy/status-screen-android.git

Open the project in Android Studio and let Gradle sync. You can then run it on a connected device or emulator.

Stack

Component Technology
Language Kotlin
UI Jetpack Compose (Material 3)
Database Room 3 + its SQLite driver
Background Jobs WorkManager
Networking OkHttp
Serialization kotlinx.serialization
Navigation Navigation 3

Dependency injection is managed manually in di/AppContainer.

Architecture

Everything below is under statusscreen.

Path What it does
di/ Dependency graph and the ViewModel factory
model/entity/ Database entities, sync records
model/day/ Daily screen data and food/tag validation
model/report/ Report models, date ranges, and report builder
model/settings/ Features and remote profile settings
model/sync/ Remote changes, results, and sync types
model/format/ Input parsing, validations, and formatting concerns
data/local/ Database and its migrations/transactions
data/local/dao/ Database queries
data/local/outbox/ Outbox management and pending change storage
data/remote/ JSON Mapping of server data and the Sync API
data/remote/codec/ Record-specific JSON codecs
data/sync/ Sync registry and engine itself and the conflict resolution/scheduling rules
data/sync/record/ Record store and sync
data/repository/ Repositories for ViewModels
data/settings/ User session, sync state, profile settings, day finder, and encrypted token storage
ui/ Jetpack Compose screens, navigation utilities, shared components and app theme

Dependency Rules

Dependencies call down their tree. ArchitectureTest enforces the boundaries:

  • model has no dependencies of its own.
  • data.local, data.remote and data.settings depend on model only.
  • data.sync may use local, remote and settings
  • data.repository may use all of data.
  • ui may use model, repositories, and the read-only settings interfaces, but never local, remote or sync.

DAOs only contain queries. Multi-table operations (such as updating a record and its corresponding outbox entry) MUST go through inTransaction in repositories, RemoteChangeApplier, or SyncEngine. These changes need to be atomic, hence the transactional nature of their management.

Testing

Unit tests (app/src/test) cover the JSON contract, codecs, parsing, rejection handling, report building, the architecture rules, and the ViewModels.

Instrumentation tests (app/src/androidTest) run the DAOs, outbox, merge rules, repositories, transactions, sync engine, and migrations against a real device or emulator.

  • Instrumentation tests use TestEnvironment to set up an in-memory database
  • These MUST be run manually (e.g. with ./gradlew connectedDebugAndroidTest) becuase they are NOT exercised in CI/CD.

Code Style

The project follows the Kotlin coding conventions with a few deliberate exceptions:

  • Use block bodies and explicit return statements instead of expression bodies.
  • Lambda parameters are named ({ record -> ... }), not left as an implicit it, unless the meaning is unmistakable.
  • Named arguments and related assignments are column-aligned where that helps readability.
  • Test names use backticks in unit tests (app/src/test) and camelCase in instrumentation tests (app/src/androidTest).

These conventions are manually reviewed rather than linted. .editorconfig covers indentation, line endings, and line length.

Database Migrations

When changing the database schema:

  1. Change the entities and bump version in AppDatabase
  2. Add a migration to Migrations.kt and list it in Migrations.ALL. Migrations.kt includes some additional instruction.
  3. Build the app to generate the updated schema in app/schemas.
  4. Commit the generated schema file(s)!
  5. Run instrumentation tests:
    ./gradlew connectedDebugAndroidTest

Never modify a migration that's already been released in the APK.

Release Builds

Release builds are optimized with R8. Rules live in app/src/main/keepRules/. Releases are created by running the Release workflow from the GitHub actions tab in the repo.

Before cutting a new release be sure versionCode and versionName in app/build.gradle.kts are updated. The release workflow only works from the main branch and requires a passing CI checks when you merge your changes.

The Release workflow will only create a draft release, which you will need to review and publish manually. Once published the release also gets tagged.

Roadmap

Listed in no particular order with no promises:

  • Offline-first logging and sync
  • All server entities supported
  • Reports inside the app
  • HTTPS support with a user-supplied certificate
  • Share or export a report (PDF or text)
  • Safer handling of 2+ offline device editing at once

Disclaimer

This is a personal data collection tool only. It is not a medical or health advice tool, does not diagnose, treat, or prevent any condition, and is not a substitute for professional medical advice. Always consult a qualified healthcare provider before changing your diet or health routine.

License

Copyright © 2026 KMAGameGuy

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. See LICENSE.md.

Third-party libraries (Jetpack Compose, Navigation, Room, WorkManager, OkHttp, kotlinx.serialization) are licensed under Apache 2.0.

SQLite is public domain.

Contributing

Contributions are welcome. Please open an issue describing the change first; if it fits the project, open a pull request.

About

A companion app for the status-screen server vitals tracker

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages