● Test build 4.0 · APK on GitHub, not yet on Google PlayAndroid app · Bluetooth and networking

Baliza

Find a device by sound, and know who is on your network.

layers to resolve a Bluetooth device's name
9
search modes
5
JVM unit tests
345
IEEE vendor prefixes bundled
35 084

Technologies: Kotlin · Jetpack Compose (Material 3) · Bluetooth LE + Classic · Room · DataStore · AudioTrack · UDP / TCP · NsdManager (mDNS) · JUnit

The problem

A phone cannot measure the angle of arrival of a Bluetooth signal, raw signal strength jumps constantly, and many devices do not advertise a name or use random MAC addresses. On WiFi, a phone without root cannot see other devices' MACs or cut their connection.

Goal

Rebuild from scratch an earlier app that showed "Unknown" names and gave unstable signal readings. The new one had to lead you physically to a Bluetooth device and, in the same app, tell you who is connected to your WiFi network.

My contribution

I designed the app and directed its AI-assisted development (Claude) in Kotlin and Compose, over four phases with strict exit criteria: each one was closed only with a green build, unit tests, and lint. The signal and identification logic has no Android dependencies so it can be tested on the JVM, and the network probes run over UDP and TCP sockets, with NsdManager for mDNS and no third-party libraries.

LIVE ARCHITECTURE

Architecture

Every moving dot is data; amber marks alerts. Tap a component to see what it does and what it connects to.

Architecture: BalizaData flowToward the output
SourcesAt the stationIngestionCoreOutputInterface
SourcesAt the stationIngestionCoreOutputInterface

Tap a piece, or press Enter on it, to see what it does and what it connects to.

See every connection as a list
  • Bluetooth radio to Bluetooth scanningadvertisements and strength
  • Bluetooth scanning to Signalper-device signal
  • Signal to Geiger engineclick rate and vibration
  • Signal to Compose interfacemeter, radar, and compass
  • WiFi network to Network probessweep and probes
  • Network probes to Identity and classificationevidence with confidence
  • Identity and classification to Room and DataStorereconciled inventory
  • Router panel to Room and DataStoreonly fills gaps
  • Room and DataStore to Compose interfaceinventory and device sheet
  • Room and DataStore to Alertspresence changes
Two jobs in one app, with the pure logic kept apart from Android.

Decisions

  1. Two filters, each in its place

    The list uses a per-device Kalman filter, because a jumpy order is useless, and the tracking meter uses One-Euro, because the needle must respond instantly. No decision is made on the raw signal.

  2. Direction is inferred by walking

    Since the phone cannot measure angle of arrival, I combine the orientation sensor with how the signal improves or worsens as you walk. The arrow only appears once confidence exceeds 0.25, and Compass mode is disabled when there is no sensor.

  3. Never "Unknown"

    The name is resolved through nine layers, from the one you set yourself down to the vendor (from the advertisement or the MAC) and the category inferred from the advertisement. With a random MAC, the OUI lookup is skipped, because that prefix does not belong to the real vendor.

  4. Evidence with confidence

    On the network, each response (SNMP, WS-Discovery, SSDP, NetBIOS, mDNS, reverse DNS, HTTP fingerprint) is stored as evidence with a confidence score, not as fact. The device sheet shows "Why we think it is this" with the raw data.

  5. Say what it cannot do

    Cutting a device's access is the router's job, so the app takes you to its MAC filtering page instead of faking a block. A permanent card explains what a phone without root cannot do.

What it does

  • Dual scanning

    Bluetooth LE and Classic in real time, plus paired devices, with search, favorites, and custom names saved per MAC.

  • Five search modes

    Geiger, Radar, Raw Geiger, Thermometer, and Compass, all with procedural audio that speeds up as you get closer, scaled vibration, and background tracking.

  • Identification from advertisements

    Interprets the advertisement against Bluetooth SIG tables and the Apple Continuity and Google Fast Pair formats, and reads the GAP name with a brief connection.

  • A network inventory with memory

    Each sweep is reconciled with the local database, so a device that is switched off keeps its name, history, and label. Filters by status, plus new, unidentified, and watched devices.

  • Health and presence

    Latency, packet loss, and jitter computed as in RFC 3550, and a timeline that merges micro-drops under 120 seconds into a single session.

  • Network alerts

    A notification when an unknown device joins or a watched one drops, collapsed into one if a sweep discovers half the network at once.

  • Network tools

    Speed test, Wake-on-LAN, inventory export to CSV, JSON, or text with formula-injection protection, and reading the router's DHCP table with a password that only lives in memory.

Screenshots

Outcome

All four phases passed the build, unit tests, and lint, and test build 4.0 is distributed as an APK on GitHub Releases for Android 8.0 or later. The pure logic has 29 unit test classes that run alongside the build and lint. Bluetooth and networking can only be validated on a real phone, because the emulator has no Bluetooth radio, and a manual test checklist exists for that.

Limits

It is a test build that is not on Google Play yet. It does not cut connections from the phone, measure per-device usage, see other devices' MACs, or obtain names a device does not publish.

NEXT CASEExplainable transaction auditing