brunzelBrain Dump Deutsch

The NCC in my pocket: how my phone became a node

About 7 min read
Three screenshots of the NCC Android app side by side: the Pixel 7 Pro device view with memory, storage and chip, the fleet overview with test devices, and the fleet chat
Cover

By now the no0bz Command Center knows everything at home that draws power: the gaming PC, the tower, the Unraid server. The one device I hold most often was missing. My Pixel 7 Pro knew nothing about the NCC, and the NCC knew nothing about it.

That has changed. NCC Android is a native app that turns my phone into a full node of the fleet, just like the PCs with their agents. And since I was at it anyway, it also puts the NCC in my pocket: alerts, chat and the whole fleet.

Why the phone belongs in the NCC

Two reasons. First, I wanted to see the phone’s battery, storage and temperatures in the dashboard like every other device. Second, NCC alerts have reached me via Telegram so far. That works, but a proper app with its own chat and fleet overview is simply nicer.

I set a few rules from the start:

  • Tailscale is mandatory. The app only talks to addresses inside my tailnet.
  • All data goes to my own NCC server only. No cloud.
  • No Google services. Alerts come through my server, not Firebase.
  • No Play Store. The app is distributed privately.
  • It has to run in the emulator and on the real Pixel 7 Pro with Android 17.

From a list of notes to six milestones

It started as pure brainstorming. I had a list of everything I could think of: device data, an interval adjustable from 30 seconds to 5 minutes, uploads only on Wi-Fi while charging, chat with camera, alerts, a GPS heatmap. On top of that I asked to “use every possibility that’s technically doable” and for the “optimal live mode”.

Claude Code turned that into a plan with six milestones. I worked on it over four evenings between 7 and 17 November, all in one single long session:

  1. M1 – Foundation: an app in the NCC look that shows all the device data.
  2. M2 – Pairing and upload: the phone pairs through the dashboard like a PC.
  3. M3 – Live and alerts
  4. M4 – Chat, camera and fleet
  5. M5 – GPS heatmap
  6. M6 – Polish: updates, widget, tile and remote control

Every milestone followed the same pattern: a plan, then the server part with tests, then the dashboard, then the app with unit tests. After that, a test in the emulator against a local test server and one on the real Pixel. Finally a pull request with CI, a merge and a server update. My messages were often delightfully short. “Yes, start M2” or “Then go ahead with M3 :D” was usually enough.

One decision came up halfway through: the app didn’t get a repository of its own but moved into the android/ folder of the NCC repo. Server, dashboard and app often change together, and this way each milestone fits into one pull request.

Two screenshots of the app: on the left the device view on the Pixel 7 Pro with memory at 7.5 of 12 GB, storage at 91.8 of 128 GB and the Google Tensor G2 chip, on the right the fleet chat with a test photo from the emulator
Fig. 1Left, the device view on the real Pixel, refreshing locally every second. Right, the fleet chat with a photo from the camera. In the emulator, that happens to be a pixel house.

No Google: alerts and live mode

Android apps usually send notifications through Firebase, which means through Google. I didn’t want that. Instead, the app keeps its own channel (a WebSocket) open to my NCC server. The price is a permanent notification in the status bar, because otherwise Android would eventually kill such a service. I can live with that.

The live mode runs over the same channel, and I find the idea behind it rather clever: the app only streams when someone is watching. When I open the phone in the dashboard, the app sends fresh values every 2 seconds. When nobody is looking, only heartbeats go out at the chosen interval. That saves battery and data.

The actual readings go into daily log files on the phone first. They are uploaded only when the phone is on Wi-Fi and charging. Nothing gets lost, and on the road it uses neither mobile data nor battery. If you’re in a hurry, switch it to “immediately”.

Android view in the NCC dashboard: clock load at 57 percent, below it all eight cores grouped by cluster with their current clock speed, and the Pixel 7 Pro’s device details at the bottom
Fig. 2The phone in the dashboard. Android doesn’t give apps real per-core load, by the way, so the NCC shows clock load instead: current clock divided by maximum clock.

Chat, camera and the whole fleet

Milestone 4 added the fleet chat, the same one as in the dashboard, with Markdown and attachments. The app doesn’t take photos itself but goes through the regular camera app. That way it needs no camera permission, and the image quality is the Pixel’s own. Photos are scaled down to 2560 pixels before sending.

Halfway through I added: “I’d like to see the other systems in the app too.” That became the “Fleet” tab with every device, its status and its latest readings.

GPS heatmap, opt-in only

I wanted the heatmap, but location data is private. That’s why the switch is off by default. Only when I turn it on does the server store locations; otherwise it strips them from the readings. The dashboard then shows a heatmap over 7, 30 or 90 days, plus a GPX export. Deleting works any time, in the app and in the dashboard.

Heatmap in the NCC dashboard with several coloured spots over a city map
Fig. 3The heatmap in the dashboard, here with test points.

Polish: widget, tile and updates from the dashboard

For the last milestone I took all four suggested parts:

  • Updates through the NCC server: I upload a new APK in the dashboard. The app announces the update, downloads it, checks its size and SHA-256 and opens the Android installer.
  • A home-screen widget with the fleet, alerts, the phone’s own battery and a connection lamp.
  • A quick-settings tile that switches monitoring on and off.
  • Remote control: interval, upload rule and location history can be changed in the dashboard, and the app picks it up immediately.

On top of that came a release key of its own. Android only installs updates signed with the same key. The debug key is tied to a single PC and won’t do. Uninstalling once and pairing again was the price; since then updates go through cleanly. At the very end I just wrote: “You can merge, and the Pixel is connected via USB.” Claude merged, installed the release app on the Pixel and requested the pairing.

What went wrong

Of course not everything went smoothly. A few highlights:

  • The first pairing request from the Pixel simply vanished. Since then the app keeps asking on its own until it’s approved.
  • The emulator had no location. The usual location service returned nothing. Now the app tries three sources in turn, waiting 10 seconds for each.
  • The heatmap was invisible. A general CSS rule in the dashboard squeezed the heatmap’s drawing surface down to 0 pixels wide. A classic.
  • The map zoomed while scrolling the page. The mouse wheel is now off for the map.
  • A phone screenshot arrived broken. PowerShell mangles binary data when you redirect it. Going through cmd /c fixed it.
  • The release script wanted to build with Java 8, because an ancient Java was still configured on my PC. Now the script skips versions that are too old and uses the Java that ships with Android Studio.
  • “Passwort für”: Windows PowerShell 5.1 doesn’t read scripts without a BOM as UTF-8. The umlauts made that very clear.
  • The first pull request description contained an internal address. The NCC repo is public, so it was cleaned up right away. Since then Claude checks for internal addresses, host names, names and paths before every commit.

Effort and cost

The whole app was built in one Claude Code session, over four days with about 5 hours of active work. I sent roughly 47 messages, many of them short approvals. Because of its length, Claude Code summarised the session automatically twice.

Almost all the work was done by Claude Opus 5.5. Only milestone 4 (chat, camera, fleet) ran on Claude Fable 5.2.

The token figures are added up from the session log:

Model Output Cache reads Total (API prices)
Claude Opus 5.5 512,222 226.4M $75.92
Claude Fable 5.2 74,595 23.3M $21.76
Total 586,817 249.6M ≈ $97.70

I use a Claude subscription, so this is only a comparison at list prices. Through the API, the entire sub-project with six milestones, server, dashboard and app would have cost just under 100 dollars. Nearly all of it is reading from the prompt cache: Claude Code sends the entire history along with every step, and over a session spanning ten days that adds up.

What’s next

Version 0.6.0 runs on my Pixel; pairing, the live channel and alerts all work. A few things are still on the list:

  • the first real update through the dashboard
  • setting up the widget and tile on the real Pixel
  • removing the old Pixel entry from the debug days in the dashboard
  • a proper accessibility check

Everything else about the app is on the NCC project page, and the code is public in the NCC repository on GitHub.