RF Sentinel (RFSentinel): free, open-source police detector app for Android. Spots police body cams, Flock ALPR cameras, AirTag trackers, Remote ID drones, smart glasses and fake cell towers from Bluetooth LE and WiFi. No root.
Kotlin airtagalprandroidandroid-autoanti-surveillancebluetooth-low-energybody-cameracounter-surveillancedrone-detectionflock-safetyimsi-catcher-detectorpolice-detectorpolice-scannerprivacyremote-idrtl-sdrsdrsurveillance-detectiontracker-detectionwifi
Clean up the README and drop internal notes
CIS-C0250626fe4c24
diff --git a/.gitignore b/.gitignoreindex 4fe154c..9b03911 100644--- a/.gitignore+++ b/.gitignore@@ -16,3 +16,6 @@ tools/data/# Built APKs are published as GitHub Releases, not committed (they're ~7 MB each)releases/*.apk++# Private working notes (not for the public repo)+HANDOFF.mddiff --git a/HANDOFF.md b/HANDOFF.mddeleted file mode 100644index 0cf0ff1..0000000--- a/HANDOFF.md+++ /dev/null@@ -1,241 +0,0 @@-# RF Sentinel — Handoff Notes--## What this is-A non-rooted Android app (Kotlin) that passively scans nearby BLE advertisements-and WiFi access points, matches detected MAC addresses against a watchlist of-OUI (vendor) prefixes associated with law-enforcement equipment (body cams,-tasers, surveillance cameras, radios/MDTs), and fires a local notification when-a match is seen. Inspired by the nyanBOX hardware device and the now-defunct-RF Party Android app, itself based on Alan Meekins ("Nullagent")'s DEF CON 31-talk "Snoop Unto Them As They Snoop Unto Us," which first documented Axon's-BLE OUI.--**Scope and intent, unchanged from the original design brief:** passive,-receive-only radio scanning only. No transmission, jamming, spoofing, or-interaction with any detected device. No cloud sync — everything stays on-the device. Legality of passive BLE/WiFi scanning varies by jurisdiction;-this is not legal advice, and the app should keep saying so in its README.--## Status (2026-09-27): builds, lint-clean, verified on an emulator-The project now builds with Gradle 9.6.0, AGP 9.4.0 (built-in Kotlin), KSP 2.3.12-and Room 2.8.5, targeting compileSdk 37 and targetSdk 36. `assembleDebug`,-`testDebugUnitTest` and `lintDebug` all pass, with 0 lint errors. The Gradle-wrapper jar and an adaptive launcher icon are now included.--**Verified on a Pixel emulator running API 37:**-- The permission flow works. FINE and COARSE are requested together, then nearby- devices, then notifications. Denying notifications still lets scanning start.-- `ScanForegroundService` runs with type `connectedDevice|location` (0x18).-- End-to-end detection: a custom OUI matching the emulator's virtual AP was- picked up by a WiFi scan, stored in Room and shown in the live feed.-- Long-press to whitelist works. The whitelist and watchlist screens, Settings- save, and the overflow menu all work.-- The Quick Settings tile starts and stops the service from the home screen. The- system grants the "tile onclick" allowlist, so it still gets the location type.--**Not verified. Needs a real device:**-- Actual BLE catches. The emulator has no real BLE radio.-- Auto-start on boot. BOOT_COMPLETED can't be sent from an unrooted shell.-- API 26-30 behaviour.--**Bugs fixed from the original draft:**-- The theme was `NoActionBar` with no Toolbar, so the overflow menu (Settings,- Whitelist, Watchlist) could not be reached.-- The legacy `BLUETOOTH` and `BLUETOOTH_ADMIN` permissions were missing, which- broke BLE on API 26-30.-- Only FINE location was requested. API 31+ ignores that unless COARSE is- requested too.-- Denying the notification permission blocked scanning.-- Without the `location` FGS type, WiFi results and GPS tagging fail in the- background. The service now falls back to `connectedDevice` when location- isn't allowed, for example at boot.-- Every LOW_LATENCY BLE advert was inserted into the DB. Logging is now- throttled to one row per MAC per 30s.-- The dedupe map and watchlist cache weren't thread-safe. Whitelist MACs weren't- normalized, so entries never matched. CSV quote escaping was wrong.-- targetSdk 35+ edge-to-edge made content draw under the action bar. The fix is- in `util/Insets.kt`.-- The default WiFi interval was 10s, which Android throttles almost every time.- It is now 30s.--**v1.1.0 (same day):** the main screen is now a live list of all nearby devices,-held in memory by `service/DeviceRegistry`. Only watchlist matches go to Room.-Matches sort first, flash (`ui/DeviceAdapter`) and play sound plus vibration-through `util/AlertPlayer`, so the alert sounds even when notifications are-denied. Tapping a device adds it to the watchlist. Watchlist entries can now be-a full MAC as well as an OUI, and an exact match wins. The old feed moved to-Match history (`ui/DetectionLogActivity`). The whitelist is mirrored in memory-by `data/WhitelistCache`. Verified on the emulator: silent listing, tap to add,-alert fired, Ringtone played, and a sampled-pixel check showed the flash pulsing.--**v2.0.0 (same day) - detection engine and device intel.** Features come from-SØPHIA, BLE Radar/MetaRadar and the all-cameras-are-beacons signature reference;-MetaRadar is GPL, so its features were reimplemented without copying code.-- **Detection.**- - `detect/` is pure Kotlin and unit-tested (`DetectionTest`, 16 tests).- `SignatureEngine` covers payload, name, UUID and SSID signatures with a- category and a confidence tier; `RemoteId` is an ASTM F3411 decoder;- `DeviceIntel` does type identification (Apple Continuity, Fast Pair, beacons,- GAP appearance), address type and rough distance; `VendorDb` holds offline- IEEE and SIG tables in `assets/vendors`, generated by `tools/gen_assets.py`.- - The watchlist gained name and manufacturer rules, and per-entry score and- category.- - Presets were re-scored per the evidence: Motorola dropped to weak (45).- - Signature provenance is in `docs/SIGNATURES.md`.-- **Service.**- - A filtered second BLE scan keeps detecting with the screen off.- - BT5 extended adverts are received.- - WiFi information elements are parsed (Remote ID over WiFi).- - Location updates drive follower detection.- - Device sightings are persisted to the Room `known_devices` table (DB v2,- migration verified: v1.1.0 logs survive the upgrade).- - Alerts use tier-coded vibration and optional spoken announcements.- - The notification has a Stop action and tapping it reopens the app.-- **UI.** Radar view, filter chips, search, threat banner, the- `DeviceDetailActivity` detail screen (graph, locate beeps, raw AD structures,- Remote ID with open-in-maps), favorites, expanded Settings, a home-screen- widget, GPX/KML/JSON export, and onboarding plus an About & sources screen.-- **Deliberately not added.**- - GATT service exploration from MetaRadar: it requires connecting to devices,- which breaks the passive-only rule.- - The in-app map, DeFlock and Waze feeds: they need the internet, and the app- has no INTERNET permission.--**v2.1.0:** Canada preset researched from public records (see-docs/SIGNATURES.md). The watchlist matches 28- and 36-bit IEEE blocks-exactly (e.g. Cyberkar `8C:1F:64:DF:0`).--**v2.2.0 - Android Auto.**-- **Screens.** `car/` uses Car App Library 1.7 (`RFSentinelCarAppService`,- IoT category): `HomeScreen`, `DeviceListScreen` and `DeviceDetailScreen`. They- refresh every 2-3 s with a constant title, so Android Auto counts the refresh- as an update rather than a new step.-- **Tests.** `CarScreensTest` (Robolectric + car app-testing) builds every- template; it caught a real host violation, since only one titled action is- allowed in a list's action strip.-- **Alerts and audio.** Alerts carry a `CarAppExtender`. `AlertPlayer` switches- to `USAGE_ASSISTANCE_NAVIGATION_GUIDANCE` plus transient duck focus while- `CarState` reports a projection connection.-- **Mute.** A master mute lives in `Prefs.alertsMuted` and is available both in- the car and in the phone menu.-- **Not tested on a real head unit.** The emulator's Android Auto is a- non-functional stub on the API 37 image, so the DHU couldn't connect. Test in- a car or with the DHU against a real phone.--**v2.3.0 - export all, map and traces.**-- **Export all.** `util/DeviceExport` covers the live session (CSV/JSON/KML),- device history, and an "everything" JSON. `Exporter` offers a two-step- what → format chooser.-- **Map.** `ui/MapActivity` uses osmdroid 6.1.20 (OSM tiles, user agent set,- cache in cacheDir, CopyrightOverlay). This is the app's **first network use**:- the INTERNET permission was added for tiles only (the user chose OSM tiles- over a fully offline map, 2026-09-27).-- **Recording.** `service/TripRecorder` records traces into Room DB v3- (`trips`, `trip_points`, `trip_devices`; migration 2→3 verified on the- emulator). The device position is the phone's location at the device's- strongest RSSI (`DeviceRegistry.Snapshot.bestPosition`). Location switches to- 3 s / 5 m while recording.-- **Traces screen.** `ui/TripsActivity` lists traces. `util/TripExport` produces- GPX, KML, GeoJSON and CSV.-- **Tests.** `DeviceExportTest` and `TripExportTest` (XML-parser-validated).-- **Verified on the emulator.** A simulated walk (emulator GPS route)- recorded 0.68 km and 22 points, and the GPX was exported and checked.--**Also added:** Quick Settings tile, "Clear detection log", auto-pickup when-Bluetooth is turned on after scanning starts, a BLE scan restart every 25 min to-avoid Android's 30-min downgrade, Settings that apply live, README.md and-MacUtil unit tests.--## Architecture map-```-RFSentinel/-├── app/-│ ├── build.gradle.kts — deps: core-ktx, appcompat, material,-│ │ room (+ksp), gson, lifecycle-service-│ ├── src/main/-│ │ ├── AndroidManifest.xml — permissions, activities, service, receiver-│ │ ├── assets/oui_presets/ — global.json, canada.json, us.json-│ │ ├── java/com/rfsentinel/app/-│ │ │ ├── RFSentinelApp.kt — Application: init channels + watchlist-│ │ │ ├── MainActivity.kt — start/stop, live feed, CSV export, menu-│ │ │ ├── data/ — Room: DetectionEntity/Dao, WhitelistEntity/Dao, AppDatabase-│ │ │ ├── oui/ — OuiEntry, OuiWatchlist (preset+custom loader/matcher)-│ │ │ ├── service/ — BleScanEngine, WifiScanEngine, ScanForegroundService-│ │ │ ├── receiver/BootReceiver.kt — optional auto-start on boot-│ │ │ ├── ui/DetectionAdapter.kt — RecyclerView adapter for live feed-│ │ │ ├── settings/SettingsActivity.kt-│ │ │ ├── whitelist/ — WhitelistActivity + WhitelistAdapter-│ │ │ └── ouilist/ — OuiListActivity + OuiAdapter (view/add custom OUIs)-│ │ └── res/ — layouts, strings, theme, menu, xml (file paths, backup rules)-├── build.gradle.kts, settings.gradle.kts, gradle.properties-└── gradle/wrapper/gradle-wrapper.properties (jar missing, see above)-```--## Data flow (how a detection becomes an alert)-1. `BleScanEngine` (raw `BluetoothLeScanner`) and `WifiScanEngine`- (`WifiManager` scan results via broadcast receiver) run inside- `ScanForegroundService`, a `START_STICKY` foreground service.-2. Every result's MAC is checked against `OuiWatchlist.match()` — an- in-memory map built from the enabled preset JSON assets plus any- user-added custom entries (persisted in SharedPreferences as JSON).-3. On a match: check `WhitelistDao.isWhitelisted()` (skip if yes) → insert a- `DetectionEntity` row into Room regardless (for the log/CSV export) → if- not seen again within the configurable cooldown window, fire a- high-priority notification via `NotificationHelper`.-4. `MainActivity` observes `DetectionDao.recent()` as a `Flow` and renders the- live feed; export button dumps the full table to CSV via `FileProvider`- and hands it to the share sheet.--## OUI watchlist — research already done (cite sources if you add more)-All prefixes below were verified against the IEEE MA-L registry via-maclookup.app during this session — not guessed:--| Prefix | Vendor (per IEEE registry) | Notes |-|---|---|---|-| `00:25:DF` | Axon Enterprise, Inc. | Body cams, tasers, holster sensors. Registered 2010-01-05. |-| `D4:2D:C5` | i-PRO Co., Ltd. | Body cams/surveillance, spun off from Panasonic 2019. Registered 2019-08-24. |-| `00:1F:92` | Motorola Solutions Inc. | Previously VideoIQ (2008) then Avigilon Corp. (Vancouver, BC) until Motorola acquired it 2018. |-| `4C:CC:34` | Motorola Solutions Inc. | — |-| `00:18:85` | Motorola Solutions Inc. | — |-| `00:04:7D` | Motorola Solutions Inc. | — |-| `10:74:6F` | Motorola Solutions Malaysia Sdn. Bhd. | — |--Canada-specific entries are documented in `docs/SIGNATURES.md`-(see `canada.json` for how confidence is annotated). Note that in-car laptops-(e.g. Panasonic Toughbooks) typically connect out via cellular, not a-broadcasting WiFi AP, so they're a structurally weak target for this-detection method regardless of brand — this is called out in-`WifiScanEngine`'s doc comment too.--If extending this list: pull the live IEEE OUI registry-(`https://standards-oui.ieee.org/oui/oui.txt`) or cross-reference via-maclookup.app / Wireshark's manuf database, and keep citing sources in the-JSON `source` field — don't guess a vendor's prefix from memory.--## Known limitations to preserve in any README you write-- Phone BLE radios listen on fewer advertising channels with less gain than- dedicated hardware (e.g. nyanBOX's triple-NRF24 setup) — expect a lower- catch rate and shorter range than purpose-built hardware.-- `WifiManager.startScan()` is throttled by Android (a handful of calls per- ~2 minutes outside a small allowance) — the foreground service helps but- doesn't eliminate this.-- WiFi scanning only sees broadcasting access points, not client devices —- so it mostly won't catch a laptop unless it's also acting as a hotspot.-- RSSI is not a reliable distance measure; `ProximityUtil`'s Near/Nearby/Far- bands are explicitly coarse and said so in code comments.--## Feature ideas not yet built (optional follow-ups)-- Map view of GPS-tagged detections (would need to pick a no-API-key map- approach, e.g. rendering an OSM tile view, since this project avoids a- Google Maps API key dependency by design).-- Per-source (BLE vs WiFi) enable/disable in the OUI entry itself, not just- globally.-- A "session mode" that only logs while manually toggled on, separate from- the always-on boot-start mode.-- Import/export the whole watchlist (presets + custom) as a single JSON file- for sharing between users, instead of only individual custom-entry input.--## Everything in this zip-The full source tree above, ready to open as an Android Studio project.-Nothing has been compiled; treat this as a strong first draft to build,-fix, and test — not a finished, verified artifact.diff --git a/README.md b/README.mdindex 8eac159..f1484bc 100644--- a/README.md+++ b/README.md@@ -1,128 +1,265 @@-<h1 align="center">📡 BLE & WiFi Police Scanner 🚨</h1>--<p align="center"><b>Detect body cams, license-plate cameras, drones and trackers around you: passively, from your phone.</b></p>+<h1 align="center">RF Sentinel</h1>+<h3 align="center">BLE & WiFi Police Scanner for Android</h3><p align="center">- <a href="https://github.com/CIS-C0/RFSentinel/releases/latest"><img src="docs/download-button.svg" width="460" alt="Download the app for Android - free, latest version (.apk)" /></a>+ Passively detects body cameras, license-plate cameras, drones, trackers and other+ surveillance equipment from the Bluetooth and WiFi signals they broadcast.</p>-<details>-<summary><b>New to installing apps outside the Play Store? Click here for step-by-step help.</b></summary>--1. On your Android phone, tap the **Download the app** button above.-2. On the page that opens, scroll to **Assets** and tap the file ending in **`-release.apk`**- (for example `RFSentinel-v2.8.0-release.apk`). Don't pick the "Source code" files.-3. When the download finishes, tap the notification (or open **Files > Downloads**) and tap the APK.-4. If Android says the app is from an unknown source, tap **Settings**, turn on- **Allow from this source**, then go back and tap **Install**.-5. Open **RF Sentinel**. A short setup wizard helps you pick a theme and grant the- Bluetooth and location permissions it needs to scan.--**Updating:** download the newest APK the same way and install it over the old one.-Your history and settings are kept.--Needs Android 8.0 or newer. RF Sentinel only listens: it never transmits, and your-scans stay on your phone.--</details>+<p align="center">+ <a href="https://github.com/CIS-C0/RFSentinel/releases/latest"><img src="https://img.shields.io/github/v/release/CIS-C0/RFSentinel?label=release&color=00BFAE" alt="Latest release" /></a>+ <img src="https://img.shields.io/badge/Android-8.0%2B-3DDC84?logo=android&logoColor=white" alt="Android 8.0+" />+ <img src="https://img.shields.io/badge/Kotlin-100%25-7F52FF?logo=kotlin&logoColor=white" alt="Kotlin" />+ <img src="https://img.shields.io/badge/Android%20Auto-supported-4285F4?logo=androidauto&logoColor=white" alt="Android Auto supported" />+ <img src="https://img.shields.io/badge/tracking-none-555555" alt="No tracking" />+ <a href="https://github.com/CIS-C0/RFSentinel/stargazers"><img src="https://img.shields.io/github/stars/CIS-C0/RFSentinel?style=flat&color=FFB000" alt="GitHub stars" /></a>+</p><p align="center">- <a href="https://github.com/CIS-C0/RFSentinel/stargazers"><img src="docs/star-banner.svg" width="640" alt="Like RF Sentinel? Give it a star on GitHub - it's free, takes one click and helps others find it" /></a>+ <a href="https://github.com/CIS-C0/RFSentinel/releases/latest"><img src="docs/download-button.svg" width="420" alt="Download the app for Android - free, latest version (.apk)" /></a></p>-<p align="center"><sub>⭐ Tap <b>Star</b> at the top right of this page if the project is useful to you.</sub></p><p align="center">- <img src="docs/screenshots/radar-dedsec.jpg" width="300" alt="Radar view with demo detections (DedSec theme)" />+ <img src="docs/screenshots/list-dedsec.jpg" width="270" alt="List view with demo detections (DedSec theme)" /> - <img src="docs/screenshots/list-dedsec.jpg" width="300" alt="List view with demo detections (DedSec theme)" />+ <img src="docs/screenshots/radar-dedsec.jpg" width="270" alt="Radar view with demo detections (DedSec theme)" />+</p>+<p align="center"><sub>List and radar views (DedSec theme, demo data). <a href="#themes">See all 12 themes</a>.</sub></p>++<p align="center">+ <a href="https://github.com/CIS-C0/RFSentinel/stargazers"><img src="docs/star-banner.svg" width="560" alt="Like RF Sentinel? Give it a star on GitHub - it's free, takes one click and helps others find it" /></a></p>-<p align="center"><sub>Radar and list views in the DedSec theme, with demo detections. <a href="#themes">11 more themes below</a>.</sub></p>----# RF Sentinel--A non-rooted Android app that passively listens to Bluetooth LE advertisements-and WiFi beacons. It shows every device around you with its vendor, type and-signal, and flags surveillance and law-enforcement equipment:--- body cameras (Axon)-- Flock license-plate cameras and Raven audio sensors-- drones, with their Remote ID decoded-- item trackers that are following you-- camera glasses--Inspired by the nyanBOX hardware device and the defunct RF Party app, which was-itself based on Alan Meekins' DEF CON 31 talk *"Snoop Unto Them As They Snoop-Unto Us"*. Some feature ideas also come from SØPHIA and BLE Radar (MetaRadar).-No code from those projects is included.--## Scope--- **Passive, receive-only.** Nothing is transmitted, jammed, spoofed, or- connected to. The app only reads what devices already broadcast publicly.-- **Local only.** There are no accounts, no cloud sync and no analytics. The- only network use is OpenStreetMap map tiles while the map screen is open. Detections live in a local Room database and- are excluded from cloud backup. Data leaves the phone only when you export it- (CSV/GPX/KML/JSON) through the share sheet.-- **Not legal advice.** Whether passive BLE/WiFi scanning is legal depends on- where you are. Check your local laws before using it.-- **A match is a signature, not an identification.** `00:25:DF` means "a device- registered to Axon Enterprise", not "a police officer". Every match shows its- evidence, its source, and a confidence tier: weak / probable / strong.- Signatures and their provenance are listed in [docs/SIGNATURES.md](docs/SIGNATURES.md).+## Contents++- [Overview](#overview)+- [Features](#features)+- [Installation](#installation)+- [Usage](#usage)+- [Android Auto](#android-auto)+- [Themes](#themes)+- [Privacy](#privacy)+- [Limitations](#limitations)+- [Building from source](#building-from-source)+- [Signatures and sources](#signatures-and-sources)+- [Acknowledgements](#acknowledgements)+- [Disclaimer](#disclaimer)++## Overview++RF Sentinel is a non-rooted Android app that listens to Bluetooth LE+advertisements and WiFi beacons. It lists every device around you with its+vendor, type and signal strength, and flags law-enforcement and surveillance+equipment:++| Category | Examples |+|---|---|+| Body cameras | Axon body cams and TASER equipment, Getac, Utility |+| License-plate readers | Flock Safety cameras, Genetec |+| Audio sensors | Flock Raven |+| Public-safety gear | Motorola Solutions radios, in-car routers, e-ticket printers |+| Drones | Remote ID decoded (serial, position, altitude, operator location) |+| Trackers | AirTags and other Find My / Find Hub trackers that follow you |+| Camera glasses | Ray-Ban Meta, Snap Spectacles, Vuzix and others |++It never transmits anything. It only reads what devices already broadcast+publicly.++## Features++**Detection**+- Payload signatures, vendor prefixes (IEEE MA-L/M/S) and Bluetooth SIG identifiers, each with a confidence tier: weak, probable or strong+- Evidence fusion: independent matches on the same device strengthen each other+- Patrol-vehicle detection: several kinds of police-type equipment whose signals move together are flagged as a possible police vehicle+- Address-rotation linking: follows a device when its Bluetooth address changes+- Follower alerts: a warning when a tracker or flagged device keeps moving with you+- Editable watchlist with exact addresses, vendor prefixes, and name or vendor rules, plus regional presets (Global, Canada, US)++**Identification**+- Ordinary devices named precisely: exact AirPods/Beats model, device class from standard Bluetooth services, IEEE registrant+- WiFi access points, including hidden networks, identified from WPS data, Cisco AP names and vendor elements, and linked to visible networks on the same router+- Decoded Apple Continuity, iBeacon, Eddystone, Fast Pair and ASTM F3411 Remote ID++**Interface**+- Live list and radar view, with filters and search+- Device details: evidence, identity, signal graph, **Locate** mode, history and raw advertisement+- OpenStreetMap map with recorded GPS traces and the devices heard along them+- Alerts with sound, vibration patterns and spoken announcements, plus a discreet mode+- Android Auto app, Quick Settings tile and home-screen widget+- 12 themes, each styled theme with its own animated header++**Data**+- Export as CSV, JSON, KML, GPX or GeoJSON+- Everything stays on the phone++## Installation++Requires **Android 8.0 or newer**.++1. On your phone, tap **Download the app** above, or open the [latest release](https://github.com/CIS-C0/RFSentinel/releases/latest).+2. Under **Assets**, tap the file ending in **`-release.apk`**. Don't pick the "Source code" archives.+3. Open the downloaded file from the notification, or from **Files → Downloads**.+4. If Android blocks it as an unknown source, tap **Settings**, enable **Allow from this source**, go back and tap **Install**.+5. Open **RF Sentinel**. A short setup wizard walks you through theme, region, alerts and permissions.++To update, install the newer APK over the existing one. Your history and settings are kept.++## Usage++Tap **Start scanning** and grant location and *Nearby devices*. The notification+permission is optional; without it, alerts still play and show in the app.++### Main screen++- **Threat banner:** shows all clear, weak, probable or strong, or *may be following you*.+- **Live list:** every device heard in the last 3 minutes, with vendor, type,+ radio, signal, rough distance, and NEW / ★ / FOLLOWING badges. Flagged+ devices sort first and flash in their category colour. Matches above your+ alert threshold play a sound and vibrate: one pulse for weak, two for+ probable, three for strong.+- **Radar view:** closer to the centre means a stronger signal. The angle is+ not a direction, because a phone can't measure one.+- **Filters and search:** All, Flagged, Trackers, Drones, New, Favorites,+ Bluetooth, WiFi. Search matches name, address, vendor and type.+- **Tap** a device for details. **Long-press** for quick actions: watchlist,+ whitelist, favorite, copy.++### Device details++The app never connects to a device. The details screen shows:+- why the device is flagged: each signature with its evidence and source+- identity and how it was determined+- address type and whether the device is trackable+- decoded protocol data+- WiFi band, channel, standard and security+- drone Remote ID, with the drone and operator positions openable in your maps app+- a live signal graph and **Locate** mode, which beeps faster as you get closer+- history, including past matches and how far the device travelled with you+- the full raw advertisement++### Map and traces++- The **map** shows your position, the trace being recorded, and devices placed+ where your phone was when their signal was strongest. That approximates the+ device's position, not a fix.+- **Record trace** saves your GPS route and every device heard along it. It+ keeps running with the screen off, and can start automatically with each scan.+- Traces export as **GPX**, **KML**, **GeoJSON** or **CSV**, with all devices or+ flagged ones only.++### Export++Menu → **Export all devices...** or **Export...**:++| Export | Formats |+|---|---|+| Current scan (all devices, matched or not) | CSV, JSON, KML |+| All devices ever seen | CSV, JSON |+| Match log | CSV, JSON, GPX, KML |+| Your watchlist | JSON |+| Everything in one file | JSON |++## Android Auto++RF Sentinel runs in Android Auto as a driver-safe, template-based app:++- **Home screen:** the threat headline, live counts, Start/Stop, and a speaker+ button that mutes or unmutes all alert sound.+- **Device lists** (flagged, drones & trackers, all nearby) and **device details**+ with Whitelist, Watch and Favorite actions. **Navigate** opens your car's+ navigation app for drones with a known position.+- **Alerts** appear as a heads-up on the car screen. While connected, they play+ through the car speakers as navigation-guidance audio, briefly lowering your+ music.++Sideloaded apps only appear in Android Auto after one-time setup:+1. Open **Android Auto settings** on your phone.+2. Tap **Version** ten times to unlock developer mode.+3. Open **⋮ → Developer settings** and enable **Unknown sources**.+4. Reconnect to the car.## Themes-Twelve looks, picked in the setup wizard or in Settings > Appearance. The styled-themes each draw their own animated header (all original artwork):+Pick a theme in the setup wizard or under **Settings → Appearance**.| Theme | Look ||---|---|-| **DedSec** | Hacker street art: a pixel skull with RGB split, a title that decrypts itself, pixel-noise bursts, a yellow "RX ONLY" sticker, a self-typing terminal line and cut-corner buttons |-| **Night Drive** | Red-only cockpit HUD with a scrolling heading tape. Every colour, including category tags and radar blips, is mapped to red to protect night vision on dark roads |-| **Night Vision** | Green phosphor image intensifier with glow, grain, flicker and a round scope vignette |-| **Amber CRT** | 1980s terminal: amber glow, blinking block cursor, scanlines and a rolling refresh bar |-| **Synthwave** | Chrome gradient title, striped sunset and a wireframe grid scrolling toward you |-| **Tactical** | Olive and coyote tan, stencil callsign with a Zulu clock and a sweeping reticle |-| **Blueprint** | Drafting grid, dimension line and a title block on drafting blue |-| **Paper** | Newspaper masthead with rules and a dateline, the most readable theme in bright sunlight |-| System / Light / Dark / Material You | The standard looks; Material You takes its colours from your wallpaper |--The screenshots use **made-up demo devices** (debug builds only, started with-`adb shell am start -n com.rfsentinel.app/.MainActivity --ez demo true`). They run-through the real detection pipeline, so the groupings, scores and labels are what-the app would show.--**List view**+| **DedSec** | Hacker street art: pixel skull, self-decrypting title, glitch effects, cut-corner controls |+| **Night Drive** | Red-only cockpit HUD. Every colour is mapped to red to preserve night vision while driving |+| **Night Vision** | Green phosphor image intensifier with grain and a scope vignette |+| **Amber CRT** | 1980s terminal with a blinking cursor and scanlines |+| **Synthwave** | Chrome title, striped sunset and a scrolling wireframe grid |+| **Tactical** | Olive and coyote tan, stencil callsign, Zulu clock and reticle |+| **Blueprint** | Technical drawing on drafting blue |+| **Paper** | Newspaper masthead, the most readable theme in direct sunlight |+| **System / Light / Dark / Material You** | Standard looks. Material You follows your wallpaper colours |<table><tr><td align="center"><img src="docs/screenshots/themes/dedsec-list.jpg" width="190" alt="DedSec theme, list view" /><br/><sub><b>DedSec</b></sub></td><td align="center"><img src="docs/screenshots/themes/night-drive-list.jpg" width="190" alt="Night Drive theme, list view" /><br/><sub><b>Night Drive</b></sub></td><td align="center"><img src="docs/screenshots/themes/night-vision-list.jpg" width="190" alt="Night Vision theme, list view" /><br/><sub><b>Night Vision</b></sub></td><td align="center"><img src="docs/screenshots/themes/amber-list.jpg" width="190" alt="Amber CRT theme, list view" /><br/><sub><b>Amber CRT</b></sub></td></tr><tr><td align="center"><img src="docs/screenshots/themes/synthwave-list.jpg" width="190" alt="Synthwave theme, list view" /><br/><sub><b>Synthwave</b></sub></td><td align="center"><img src="docs/screenshots/themes/tactical-list.jpg" width="190" alt="Tactical theme, list view" /><br/><sub><b>Tactical</b></sub></td><td align="center"><img src="docs/screenshots/themes/blueprint-list.jpg" width="190" alt="Blueprint theme, list view" /><br/><sub><b>Blueprint</b></sub></td><td align="center"><img src="docs/screenshots/themes/paper-list.jpg" width="190" alt="Paper theme, list view" /><br/><sub><b>Paper</b></sub></td></tr>-<tr><td align="center"><img src="docs/screenshots/themes/system-list.jpg" width="190" alt="System (teal) theme, list view" /><br/><sub><b>System (teal)</b></sub></td><td align="center"><img src="docs/screenshots/themes/light-list.jpg" width="190" alt="Light theme, list view" /><br/><sub><b>Light</b></sub></td><td align="center"><img src="docs/screenshots/themes/dark-list.jpg" width="190" alt="Dark theme, list view" /><br/><sub><b>Dark</b></sub></td><td align="center"><img src="docs/screenshots/themes/material-you-list.jpg" width="190" alt="Material You theme, list view" /><br/><sub><b>Material You</b></sub></td></tr>+<tr><td align="center"><img src="docs/screenshots/themes/system-list.jpg" width="190" alt="System theme, list view" /><br/><sub><b>System</b></sub></td><td align="center"><img src="docs/screenshots/themes/light-list.jpg" width="190" alt="Light theme, list view" /><br/><sub><b>Light</b></sub></td><td align="center"><img src="docs/screenshots/themes/dark-list.jpg" width="190" alt="Dark theme, list view" /><br/><sub><b>Dark</b></sub></td><td align="center"><img src="docs/screenshots/themes/material-you-list.jpg" width="190" alt="Material You theme, list view" /><br/><sub><b>Material You</b></sub></td></tr></table><details>-<summary><b>Radar view</b> (click to expand)</summary>+<summary><b>Radar view in every theme</b></summary><table><tr><td align="center"><img src="docs/screenshots/themes/dedsec-radar.jpg" width="190" alt="DedSec theme, radar view" /><br/><sub><b>DedSec</b></sub></td><td align="center"><img src="docs/screenshots/themes/night-drive-radar.jpg" width="190" alt="Night Drive theme, radar view" /><br/><sub><b>Night Drive</b></sub></td><td align="center"><img src="docs/screenshots/themes/night-vision-radar.jpg" width="190" alt="Night Vision theme, radar view" /><br/><sub><b>Night Vision</b></sub></td><td align="center"><img src="docs/screenshots/themes/amber-radar.jpg" width="190" alt="Amber CRT theme, radar view" /><br/><sub><b>Amber CRT</b></sub></td></tr><tr><td align="center"><img src="docs/screenshots/themes/synthwave-radar.jpg" width="190" alt="Synthwave theme, radar view" /><br/><sub><b>Synthwave</b></sub></td><td align="center"><img src="docs/screenshots/themes/tactical-radar.jpg" width="190" alt="Tactical theme, radar view" /><br/><sub><b>Tactical</b></sub></td><td align="center"><img src="docs/screenshots/themes/blueprint-radar.jpg" width="190" alt="Blueprint theme, radar view" /><br/><sub><b>Blueprint</b></sub></td><td align="center"><img src="docs/screenshots/themes/paper-radar.jpg" width="190" alt="Paper theme, radar view" /><br/><sub><b>Paper</b></sub></td></tr>-<tr><td align="center"><img src="docs/screenshots/themes/system-radar.jpg" width="190" alt="System (teal) theme, radar view" /><br/><sub><b>System (teal)</b></sub></td><td align="center"><img src="docs/screenshots/themes/light-radar.jpg" width="190" alt="Light theme, radar view" /><br/><sub><b>Light</b></sub></td><td align="center"><img src="docs/screenshots/themes/dark-radar.jpg" width="190" alt="Dark theme, radar view" /><br/><sub><b>Dark</b></sub></td><td align="center"><img src="docs/screenshots/themes/material-you-radar.jpg" width="190" alt="Material You theme, radar view" /><br/><sub><b>Material You</b></sub></td></tr>+<tr><td align="center"><img src="docs/screenshots/themes/system-radar.jpg" width="190" alt="System theme, radar view" /><br/><sub><b>System</b></sub></td><td align="center"><img src="docs/screenshots/themes/light-radar.jpg" width="190" alt="Light theme, radar view" /><br/><sub><b>Light</b></sub></td><td align="center"><img src="docs/screenshots/themes/dark-radar.jpg" width="190" alt="Dark theme, radar view" /><br/><sub><b>Dark</b></sub></td><td align="center"><img src="docs/screenshots/themes/material-you-radar.jpg" width="190" alt="Material You theme, radar view" /><br/><sub><b>Material You</b></sub></td></tr></table></details>-## Building+<sub>Screenshots use made-up demo devices (debug builds only). They run through the real detection pipeline, so scores, groupings and labels match what the app shows.</sub>++## Privacy-Requirements: Android Studio (or JDK 17+ and the Android SDK with platform 37).+- **Receive-only.** Nothing is transmitted, jammed, spoofed or connected to.+- **No accounts, no cloud, no analytics.** Detections are stored in a local+ database and excluded from cloud backup.+- **One network use:** OpenStreetMap tiles, only while the map is open. The tile+ server sees your IP address and the area you view, never your scans. Map data+ © OpenStreetMap contributors.+- **Data leaves the phone only when you export it.**++## Limitations++- **A match is a signature, not an identification.** `00:25:DF` means "a device+ registered to Axon Enterprise", not "a police officer". Every match shows its+ evidence and a confidence tier. Verify weak matches.+- **Phone radios are weaker than dedicated hardware.** Expect shorter range and+ fewer catches than purpose-built scanners.+- **WiFi scanning is throttled** by Android to about four scans per two minutes.+ The default 30-second interval respects that limit.+- **WiFi only sees access points.** Client devices, such as in-car laptops on+ cellular, are invisible.+- **Signal strength is not distance.** Estimates are often off by 2–3×, and the+ radar angle is not a direction.+- **Screen-off coverage is partial.** With the screen off, Android keeps only a+ filtered scan. That covers payload signatures, trackers, drones, glasses and+ exact-address watchlist entries, but not prefix-only matches.+- **Cellular-only devices are undetectable.** This includes most non-Flock+ license-plate readers and LTE GPS trackers.+- **Randomized addresses** defeat vendor-prefix matching. Payload signatures and+ address-rotation linking partly compensate.++## Building from source++Requirements: Android Studio, or JDK 17+ with the Android SDK (platform 37).```bash./gradlew assembleDebug```-The APK is written to `app/build/outputs/apk/debug/RFSentinel-v<version>-debug.apk`.-To rebuild the offline vendor databases, see `tools/gen_assets.py`.+```bash+./gradlew testDebugUnitTest lintDebug+```++The debug APK is written to `app/build/outputs/apk/debug/`. `tools/gen_assets.py`+regenerates the offline IEEE and Bluetooth SIG databases.| Component | Version ||---|---|@@ -131,19 +268,11 @@ To rebuild the offline vendor databases, see `tools/gen_assets.py`.| KSP / Room | 2.3.12 / 2.8.5 || compileSdk / targetSdk / minSdk | 37 / 36 / 26 |-Checks: `./gradlew testDebugUnitTest lintDebug`--### Release builds--```bash-./gradlew assembleRelease-```--This writes `app/build/outputs/apk/release/RFSentinel-v<versionName>-release.apk`.-Published builds are copied into `releases/`. To cut a new version, bump-`appVersionCode` and `appVersionName` at the top of `app/build.gradle.kts`.+<details>+<summary><b>Signed release builds</b></summary>-Signing reads `keystore.properties` in the project root, which is git-ignored:+`./gradlew assembleRelease` signs the APK using `keystore.properties` in the+project root (git-ignored):```propertiesstoreFile=keystore/rfsentinel-release.jks@@ -152,221 +281,41 @@ keyAlias=rfsentinelkeyPassword=...```-Without that file the release APK is built unsigned. **Back up the keystore and-its passwords.** Updates to an installed app must be signed with the same key.--## Using it--Tap **Start scanning** and grant location and "nearby devices". The notification-permission is optional: without it, alerts still sound and show in the app.--### Main screen--- **Threat banner:** all clear, weak, probable, strong, or "may be following you".-- **Live list:** every device heard in the last 3 minutes, with vendor (from the- IEEE and Bluetooth SIG databases), device type, radio, signal band, rough- distance, and NEW / ★ / FOLLOWING badges. Flagged devices sort first, show a- category tag with confidence, and flash in their category colour. Matches that- reach the alert threshold also sound, with a vibration pattern per tier- (1 pulse weak, 2 probable, 3 strong).-- **Radar view:** closer to the centre means a stronger signal. The angle is not- a direction; a phone can't measure one.-- **Filter chips:** All, Flagged, Trackers, Drones, New, Favorites, Bluetooth,- WiFi. **Search** matches name, address, vendor and type.-- **Tap** a device for its details. **Long-press** for quick actions: add to- watchlist, whitelist, favorite, copy the address.--### Device details--Everything here is passive; the app never connects to the device.--- why the device is flagged: each signature, with its evidence and source-- identity: type, name, IEEE registrant, Bluetooth company, address type and- whether it's trackable, connectable, PHY, TX power-- decoded Apple Continuity, iBeacon, Eddystone, Fast Pair and appearance data-- WiFi band, channel, standard and security-- drone Remote ID: serial, aircraft type, position, altitude, speed, heading, and- the operator's position, with buttons that open the points in your maps app-- a live signal graph with trend, and a **Locate** mode: the beeps speed up as- you get closer-- history: first seen, sessions, detect count, past logged matches with GPS, and- how far the device travelled with you-- the full raw advertisement, split into AD structures-- actions: add to or remove from the watchlist, whitelist, favorite, copy, and- share a text report--### Everything else--- **Follower alerts:** a warning when a tracker or flagged device stays with you- (default 10 minutes and 800 m of travel). Needs location.-- **Screen-off detection:** a second, filtered Bluetooth scan on the key- signature identifiers keeps running in your pocket.-- **Watchlist & rules:** add exact devices, vendor prefixes, "name contains" or- "maker contains" rules. Import and export them as JSON.-- **Match history:** every logged match. Export as CSV, or as GPX / KML for- GPS-tagged matches.-- **Settings:**- - Bluetooth scan intensity- - WiFi interval- - which categories to detect (network cameras are off by default)- - regional presets- - alert threshold, sound, vibration, spoken alerts, discreet mode- - follower thresholds- - GPS tagging- - data retention- - auto-start on boot-- **Notification:** tap "Passive scan active" to return to the app, or use its- **Stop** button. It shows live device and flagged counts.-- **Quick Settings tile** and a **home-screen widget**, both with one-tap- start/stop.--## Map and recorded traces--- **Map** (toolbar map button) shows an OpenStreetMap view with:- - your position- - the trace being recorded- - devices, placed **where your phone was when their signal was strongest**.- This approximates the device's position; it isn't a fix.-- Flagged devices use their category colour. **All devices** adds ordinary- ones. Tap a device for what it is, then *Details*.-- **Record trace** saves your GPS route plus every device heard along it as a- *trace*. Recording runs in the scanner service, so it continues with the screen- off. GPS points are saved every ~10 m / 30 s, and flushed to storage every- 10 s. You can also record automatically whenever scanning starts: Settings →- Location → *Record a GPS trace automatically*.-- **Recorded traces** (map → Traces, or the main menu) lists every trace with its- duration, distance and device counts. Tap one to view it on the map;- long-press to export, rename or delete.-- **Trace export:**- - **GPX**: track plus device waypoints, for any GPS or map app- - **KML**: Google Earth / My Maps- - **GeoJSON**: web maps, QGIS- - **CSV**: every device heard on the trace-- For the map formats, you can include all devices or flagged ones only.-- **Network use:** map tiles come from OpenStreetMap's tile servers only while- the map is open, and are cached in the app's private cache. The tile server- sees your IP address and the area you view, never your scans or detections.- Map data © OpenStreetMap contributors.--## Export all devices--Menu → **Export all devices...** or **Export...**, also under Settings → Data:--- **All nearby devices from this scan, matched or not**: CSV, JSON (full detail- including raw advertisement data, signal history and positions), or KML-- **All devices ever seen** (history): CSV or JSON-- **Match log**: CSV, JSON, GPX or KML-- **Your watchlist entries**: JSON-- **Everything** in one JSON file--## Android Auto+Without this file, the release APK is unsigned. Updates must be signed with the+same key as the installed app, so keep the keystore backed up. Each version is+published as a GitHub Release with the signed APK attached. Bump+`appVersionCode` and `appVersionName` in `app/build.gradle.kts` for every release.-RF Sentinel shows up in Android Auto as a driver-safe, template-based app. It has:--- **Home screen:**- - the threat headline and live counts- - a **Start/Stop** button and a **speaker button** that mutes or unmutes all alert sound- - navigation to *Flagged nearby*, *Drones & trackers* and *All nearby devices*- - a toggle for spoken announcements in the car-- **Device lists:** the most important devices first, limited to the rows the car- allows while driving. Tap a row to open the device.-- **Device details:**- - why it's flagged, signal (getting closer / moving away), rough distance and identity- - **Whitelist** and **Watch** buttons, and a favorite star- - **Navigate** for a drone whose Remote ID position is known; it opens your- car's navigation app-- **Alerts:** a heads-up on the car screen; tap it to open that device.-- **Sound in the car:** while Android Auto is connected, the alert tone and voice- play as *navigation-guidance* audio. That's the audio type turn-by-turn prompts- use: it comes out of the car speakers and briefly lowers your music. Spoken- alerts are on by default in the car. The master mute (car speaker button, or- **Mute alerts** in the phone's menu) silences tone and voice everywhere;- vibration is unaffected.--**Sideloaded builds** need Android Auto's developer setting before the app appears:--1. Open **Android Auto settings** on your phone.-2. Tap **Version** 10 times to unlock developer mode.-3. In the ⋮ menu, open **Developer settings** and enable **Unknown sources**.-4. Reconnect to the car.+</details>-Android Auto on Google Play only accepts certain app categories (media,-messaging, navigation, points of interest, IoT). RF Sentinel declares IoT, but-for sideloading that doesn't matter.----- **Phone radios are weaker than dedicated hardware.** A phone's BLE radio- listens on fewer advertising channels and has less gain than purpose-built- gear such as nyanBOX's triple-NRF24 setup. Expect fewer catches and shorter- range.-- **WiFi scanning is throttled.** Android allows about 4 `startScan()` calls per- 2 minutes per app. The default interval is 30s so that scans aren't wasted.- Setting it lower just gets requests throttled. The foreground service helps,- but it doesn't remove the limit.-- **WiFi only sees access points.** Client devices are invisible, so a laptop or- MDT won't show up unless it is running a hotspot. Most in-car laptops connect- out over cellular.-- **RSSI is not distance.** The metre estimates are rough (often 2-3x off), and- the radar angle is not a direction.-- **Screen-off coverage is partial.** With the screen off, Android keeps only the- filtered scan running. That covers payload signatures, trackers, drones, glasses,- and your exact-address watchlist entries. It does not cover MAC-prefix-only- matches, because Android filters can't express a prefix.-- **Not everything is detectable.** Most license-plate cameras other than Flock- (Motorola/Vigilant, ELSAG, Genetec...) and cellular GPS trackers only use LTE,- which a phone can't passively scan.-- **Auto-start at boot is reduced.** Android doesn't grant while-in-use location- at boot, so the service starts with the `connectedDevice` type only. BLE- works, but WiFi results can be limited until you open the app once.-- **Random MAC addresses.** Devices that use randomized BLE addresses won't- match any OUI.--## Sources+## Signatures and sourcesEvery bundled prefix, company ID and UUID was checked against the IEEE registry-or the Bluetooth SIG assigned numbers. Each preset entry in-`app/src/main/assets/oui_presets/` carries a `source`, a `score` and a-`category`. If you add signatures, cite a registry or published research, and-don't guess. See [docs/SIGNATURES.md](docs/SIGNATURES.md).--Third-party references:--- **all-cameras-are-beacons signature reference (Apache-2.0):** signature values- and confidence ladder.-- **opendroneid-core-c (Apache-2.0):** Remote ID message layout.-- **IEEE Registration Authority:** vendor database, via Wireshark's weekly `manuf`.-- **Bluetooth SIG assigned numbers:** company IDs, UUIDs, appearance values.--## Version control and releases--The source lives on GitHub: https://github.com/CIS-C0/RFSentinel.-APKs are not committed. Each version is published as a GitHub Release with the-signed APK attached.--To cut a new version:--1. Bump `appVersionCode` and `appVersionName` in `app/build.gradle.kts`.-2. Build the release APK:-- ```bash- ./gradlew testDebugUnitTest assembleRelease- ```--3. Commit, tag and push:-- ```bash- git commit -am "Release vX.Y.Z" && git tag -a vX.Y.Z -m "vX.Y.Z" && git push --follow-tags- ```--4. Publish the release with the APK attached:-- ```bash- gh release create vX.Y.Z app/build/outputs/apk/release/RFSentinel-vX.Y.Z-release.apk --title "RF Sentinel X.Y.Z" --generate-notes- ```--The signing key (`keystore/`, `keystore.properties`) is deliberately **not** in-git. Back it up separately: without it you can't ship updates that install over-existing versions.+or the Bluetooth SIG assigned numbers. Each entry cites its source, score and+category. The full reference, including how evidence fusion, patrol-vehicle+detection and WiFi identification work, is in [docs/SIGNATURES.md](docs/SIGNATURES.md).++New signatures are welcome, provided they cite a registry or published research.+Please don't guess.++- **all-cameras-are-beacons** signature reference (Apache-2.0): signature values and confidence ladder+- **opendroneid-core-c** (Apache-2.0): Remote ID message layout+- **IEEE Registration Authority:** vendor database+- **Bluetooth SIG assigned numbers:** company IDs, service UUIDs, appearance values++## Acknowledgements++Inspired by the nyanBOX hardware device and the RF Party app, which was based+on Alan Meekins' DEF CON 31 talk *"Snoop Unto Them As They Snoop Unto Us"*.+Some feature ideas come from SØPHIA and BLE Radar (MetaRadar). No code from+those projects is included. The DedSec theme font is Share Tech Mono (SIL Open+Font License 1.1). The DedSec theme is an unofficial, original homage and+contains no Ubisoft artwork.++## Disclaimer++RF Sentinel is provided for awareness, research and personal privacy. Whether+passive Bluetooth and WiFi scanning is legal depends on where you are, so check+your local laws. A detection indicates that a device with a given signature is+nearby. It is not proof of who is present or what they are doing. This is not+legal advice.