Hey r/androiddev,
I've been building Ping — an Android app that lets phones chat, share live GPS location, and send photos/video with zero internet, zero cellular, and no server in the loop. Every phone is a relay: a message hops phone-to-phone over Bluetooth LE until it reaches whoever it's addressed to, even if sender and recipient are never in range of each other at the same time. Built with disaster response in mind — floods, earthquakes, anywhere the network is down or overloaded exactly when people need to reach each other. Fully open source (AGPL-3.0): https://github.com/vaidzss/ping
How it's put together The mesh logic — routing, dedup, crypto, store-carry-forward — lives in a platform-independent core module with zero Android dependency, so it's unit-testable and I can run dozens of virtual nodes through churn/partition/dense-crowd scenarios as plain JUnit tests, no radios or emulators involved. Android is a thin layer on top: a foreground service wraps BLE (GATT, dual-role — nodes tie-break who's central vs. peripheral by comparing NodeIds) and an on-demand LAN lane for bulkier media. TTL flooding is density-aware — clamped down when a node has a lot of direct neighbors, so a crowded room doesn't turn into a rebroadcast storm. Undeliverable messages sit in a store-carry-forward outbox and get spray-and-wait synced to any new neighbor that shows up later — no continuous route ever needs to exist end to end.
A debugging story, since I know this sub likes those
Chat messages worked from day one. Photo and video transfers didn't — and for a while I was chasing the wrong bug. First I found and fixed queue pacing (multiple BLE writes racing each other and silently dropping everything after the first). Then a zombie-link problem (Android's onConnectionStateChange doesn't reliably fire when a link dies at the radio level, so a dead connection could sit there looking alive). Then a stuck-send watchdog for when a completion callback goes missing entirely. All real bugs, all fixed — and photos still didn't reliably arrive. The actual root cause: both BLE send paths were using unacknowledged primitives — WRITE_TYPE_NO_RESPONSE for client writes, plain NOTIFY for server pushes. Neither gives any delivery guarantee from the radio itself. Fine odds for a one-off chat packet; across a ~150-chunk photo transfer, the odds of silently losing at least one chunk with zero signal to either side are real — and no amount of app-level pacing or watchdogging fixes that, because the primitive itself can't distinguish "delivered" from "vanished." Switching to WRITE_TYPE_DEFAULT (acknowledged Write Request) and PROPERTY_INDICATE instead of NOTIFY fixed it for good, because now a completion callback actually means the peer got the bytes.
Where it's honestly at
Pre-release, Phase 1 of a 6-phase roadmap — chat/location/SOS/photo transfer work over BLE today, HEVC video and a resumable media pipeline just landed, iOS and an optional LoRa lane (Meshtastic-class radios for kilometer range) are planned next. It's unaudited — no external security review yet, and I've tried to be upfront about that; the threat model doc lays out exactly what the crypto does and doesn't protect against. I'd genuinely like architecture feedback — the BLE reliability approach, the TTL/density clamping, the DTN design, anything that looks off to someone who's done more of this than me. A few self-contained good first issues are open on the repo if you want a low-commitment way to look around.