brunzelBrain Dump Deutsch

no0bz Command Center

NCC Android

The NCC in my pocket. A native Android app turns my Pixel 7 Pro into a full node of the fleet, just like the PCs with their agents. On the go it gives me alerts, the fleet chat and the whole fleet. Everything runs over Tailscale and my own NCC server, without Google services and without the Play Store.

Version 0.6.0, milestones M1 to M6 complete

Device: memory, storage, chip and every single core, refreshed locally every second. Top right, the live lamp.
AndroidDevice: memory, storage, chip and every single core, refreshed locally every second. Top right, the live lamp.
Fleet: every system with its status and latest readings. Captured in the emulator with test devices.
AndroidFleet: every system with its status and latest readings. Captured in the emulator with test devices.
Fleet chat: the same chat as in the dashboard, with Markdown, attachments and photos straight from the camera app. Test messages in the emulator.
AndroidFleet chat: the same chat as in the dashboard, with Markdown, attachments and photos straight from the camera app. Test messages in the emulator.
  • The phone as a node

    Pairs like a PC through “Aufnahme” in the dashboard and reports battery (level, temperature, voltage, charge cycles), RAM, storage and the clock and load of every core.

  • Live when someone is watching

    When the phone is open in the dashboard, the app streams every 2 seconds. Otherwise it only sends heartbeats at the chosen interval and saves battery.

  • Alerts without Google

    NCC alerts arrive as notifications through my own server, without Firebase. With a “resolved” message and no duplicates.

  • Upload on Wi-Fi and charging

    Readings go into daily log files first and are only sent when the phone is on Wi-Fi and charging. Or right away, depending on the setting.

  • Chat and fleet on the go

    The fleet chat with camera and an overview of every system with CPU, GPU, RAM, drive and temperatures.

  • GPS heatmap, opt-in only

    Off by default. Once enabled, the dashboard shows a heatmap over 7, 30 or 90 days, with GPX export. The history can be deleted at any time.

  • Widget and tile

    A home-screen widget shows the fleet, alerts and the phone’s own battery. A quick-settings tile switches monitoring on and off.

  • Updates from the dashboard

    I upload new versions in the dashboard. The app announces the update, checks size and SHA-256 and opens the Android installer. No Play Store.

The Android view in the dashboard: clock load, all eight cores grouped by cluster and the Pixel 7 Pro’s device details.
DashboardThe Android view in the dashboard: clock load, all eight cores grouped by cluster and the Pixel 7 Pro’s device details.
The GPS heatmap in the dashboard, filled with test points. The NCC server fetches the map tiles, not the browser.
DashboardThe GPS heatmap in the dashboard, filled with test points. The NCC server fetches the map tiles, not the browser.

Tech stack

AppKotlin, Jetpack Compose with Material 3, OkHttp (REST and WebSocket), DataStore, foreground service, AppWidget and TileService
PlatformAndroid 17, Android 14 at minimum; tested in the emulator and on a Pixel 7 Pro
SecurityTailscale addresses only, agent token encrypted with AES-GCM in the Android Keystore, its own release key
Server and dashboardlive channel via WebSocket, chat for app nodes, location store, app distribution and remote control of the app settings; heatmap with Leaflet
Tests56 unit tests in the app, 208 tests on the server

Built with Claude Code

The app was built in a single Claude Code session, over four evenings between 7 and 17 November, with about five hours of active work. Each of the six milestones got its own pull request. Along the way Claude also drove the emulator and the real Pixel via adb and checked the dashboard in the browser.

Through the Claude API the whole thing would have cost about 98 US dollars. That is a comparison at list prices, since I use a subscription. Most of it is reading from the prompt cache, because the session was so long.