Skip to content

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.

Cells filter chip; filter chips reordered (All, Flagged, Trackers, Drones, Favorites, New, Bluetooth, WiFi, Cells, ESP32)

CIS-C0b21b715cd523
diff --git a/README.md b/README.md
index ed6fdfc..60701ce 100644
--- a/README.md
+++ b/README.md
@@ -141,7 +141,7 @@ Every match shows its evidence, its source and a confidence tier: **weak** (< 50
- **USB WiFi adapters in monitor mode** (RTL8811AU / RTL8821AU, e.g. ALFA AWUS036ACS) over OTG, no root: continuous 2.4 GHz channel hopping with no Android scan limit, longer range, and **client devices** (laptops, phones, cameras connected to a network) the phone's WiFi scan can't see
**Interface**
-- Live list and radar view, filter chips with live counts (flagged, trackers, drones, new, ESP32, favorites, Bluetooth, WiFi), search
+- Live list and radar view, filter chips with live counts (flagged, trackers, drones, favorites, new, Bluetooth, WiFi, cells, ESP32), search
- **Tools** (button next to the map button): **Cell towers** (serving and neighbour cells with network, IDs, channel and signal, plus every tower seen while scanning), **WiFi channels** and **WiFi spectrum** analyzers for 2.4 / 5 / 6 GHz
- **Cell towers in the live list:** the serving cell and its neighbours appear under *All*, after the devices
- **Scan watchdog:** a scanner that goes silent is restarted on its own
@@ -202,7 +202,7 @@ Details: [How it works](https://cis-c0.github.io/RFSentinel/how-it-works.html) a
- **List / Radar / Map:** the toggle switches list and radar; **Map** sits right
next to it. On the radar, closer to the centre means a stronger signal; the
angle is not a direction (a phone can't measure one).
-- **Filters and search:** All, Flagged, Trackers, Drones, New, ESP32, Favorites,
+- **Filters and search:** All, Flagged, Trackers, Drones, Favorites, New,
Bluetooth, WiFi. Search matches name, address, vendor and type.
- **Tap** a device for details. **Long-press** for watchlist, whitelist,
favorite, copy, ignore, and **Report unknown device**.
diff --git a/app/src/main/java/com/rfsentinel/app/MainActivity.kt b/app/src/main/java/com/rfsentinel/app/MainActivity.kt
index b7ae6d5..05de8d4 100644
--- a/app/src/main/java/com/rfsentinel/app/MainActivity.kt
+++ b/app/src/main/java/com/rfsentinel/app/MainActivity.kt
@@ -302,7 +302,7 @@ class MainActivity : AppCompatActivity() {
// Live counts on the chips ("Trackers 2"); empty filters stay unlabelled.
for ((f, chip) in filterChips) {
- val n = all.count { f.matches(it) }
+ val n = if (f == com.rfsentinel.app.ui.DeviceFilter.CELLS) liveCellCount(now) else all.count { f.matches(it) }
val label = if (f == com.rfsentinel.app.ui.DeviceFilter.ALL || n > 0) "${f.label} $n" else f.label
if (chip.text != label) chip.text = label
}
@@ -334,6 +334,8 @@ class MainActivity : AppCompatActivity() {
binding.emptyText.text = when {
all.isEmpty() && !ScanForegroundService.isRunning -> "Not scanning.\nTap Start scanning to begin."
all.isEmpty() -> "Listening... no devices heard yet."
+ filter == com.rfsentinel.app.ui.DeviceFilter.CELLS ->
+ "No cell towers yet - they're read every 15 s while scanning\n(needs the Fake cell tower category on in Settings)."
else -> "No devices match this filter."
}
}
@@ -352,10 +354,15 @@ class MainActivity : AppCompatActivity() {
private fun radioColor(s: DeviceRegistry.Snapshot): Int =
if (Advert.Source.BLE in s.sources) BLUETOOTH_TAG_COLOR else WIFI_TAG_COLOR
+ private fun liveCellCount(now: Long): Int =
+ if (ScanForegroundService.isRunning && now - com.rfsentinel.app.service.CellTowerStore.currentAt <= 60_000L)
+ com.rfsentinel.app.service.CellTowerStore.current.size else 0
+
private var shownCells = 0
private fun cellRows(now: Long): List<DeviceRow> {
- if (filter != com.rfsentinel.app.ui.DeviceFilter.ALL || !ScanForegroundService.isRunning) return emptyList()
+ if ((filter != com.rfsentinel.app.ui.DeviceFilter.ALL && filter != com.rfsentinel.app.ui.DeviceFilter.CELLS) ||
+ !ScanForegroundService.isRunning) return emptyList()
val at = com.rfsentinel.app.service.CellTowerStore.currentAt
if (now - at > 60_000L) return emptyList()
val ageSec = (now - at) / 1000
diff --git a/app/src/main/java/com/rfsentinel/app/ui/DeviceFilter.kt b/app/src/main/java/com/rfsentinel/app/ui/DeviceFilter.kt
index 187400c..caa8039 100644
--- a/app/src/main/java/com/rfsentinel/app/ui/DeviceFilter.kt
+++ b/app/src/main/java/com/rfsentinel/app/ui/DeviceFilter.kt
@@ -8,15 +8,18 @@ import com.rfsentinel.app.service.DeviceRegistry
/** The device filters shared by the list and the map, so both pick the same devices. */
enum class DeviceFilter(val label: String) {
+ // Chip order: most useful first.
ALL("All"),
FLAGGED("Flagged"),
TRACKERS("Trackers"),
DRONES("Drones"),
- NEW("New"),
- ESP32("ESP32"),
FAVORITES("Favorites"),
+ NEW("New"),
BLE("Bluetooth"),
- WIFI("WiFi");
+ WIFI("WiFi"),
+ /** Cell towers: not devices, listed from the cell snapshot (list only, not the map). */
+ CELLS("Cells"),
+ ESP32("ESP32");
fun matches(s: DeviceRegistry.Snapshot): Boolean = when (this) {
ALL -> true
@@ -25,6 +28,7 @@ enum class DeviceFilter(val label: String) {
s.deviceType.contains("tracker", true) || s.deviceType.contains("Find My", true)
DRONES -> s.hits.any { it.category == Category.DRONE } || s.remoteId != null
NEW -> s.isNew
+ CELLS -> false
ESP32 -> com.rfsentinel.app.esp.HeardBy.esp.recent(s.mac) || com.rfsentinel.app.esp.HeardBy.usb.recent(s.mac)
FAVORITES -> Favorites.contains(s.mac)
BLE -> Advert.Source.BLE in s.sources
diff --git a/app/src/main/java/com/rfsentinel/app/ui/MapActivity.kt b/app/src/main/java/com/rfsentinel/app/ui/MapActivity.kt
index 02affa2..4604028 100644
--- a/app/src/main/java/com/rfsentinel/app/ui/MapActivity.kt
+++ b/app/src/main/java/com/rfsentinel/app/ui/MapActivity.kt
@@ -239,7 +239,7 @@ class MapActivity : AppCompatActivity() {
}
private fun setupFilterChips() {
- val options = if (tripId == null) DeviceFilter.entries else listOf(DeviceFilter.ALL, DeviceFilter.FLAGGED)
+ val options = if (tripId == null) DeviceFilter.entries - DeviceFilter.CELLS else listOf(DeviceFilter.ALL, DeviceFilter.FLAGGED)
filter = DeviceFilter.parse(com.rfsentinel.app.util.Prefs.mapFilter(this)).takeIf { it in options } ?: DeviceFilter.ALL
val group = binding.mapFilterChips
for (f in options) {