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
Network-name rule flags police only: fire, EMS, MDT and dispatch words removed
CIS-C04ad563fd05b6
diff --git a/app/src/main/java/com/rfsentinel/app/detect/SignatureEngine.kt b/app/src/main/java/com/rfsentinel/app/detect/SignatureEngine.ktindex 108e653..5f5e469 100644--- a/app/src/main/java/com/rfsentinel/app/detect/SignatureEngine.kt+++ b/app/src/main/java/com/rfsentinel/app/detect/SignatureEngine.kt@@ -444,14 +444,13 @@ object SignatureEngine {"Police cars, but also ambulances, buses, utility fleets and traffic-signal cabinets", "Cradlepoint default SSID (product label); $IEEE")// Weak alone; on a vehicle router it backs the router match, so a familiar one still alerts (FixedRouter).ssid.lowercase().split(NON_ALNUM).any { w -> w in EMERGENCY_WORDS || w.split(LETTER_DIGIT).any { it in EMERGENCY_WORDS } } -> Hit(Category.PUBLIC_SAFETY,- "Police / fire / EMS network name", 45, "WiFi network \"$ssid\" names an emergency service. Stronger on a " ++ "Police network name", 45, "WiFi network \"$ssid\" names a police service. Stronger on a " +"Cradlepoint or Sierra Wireless router", "Network-name keywords, after Wardrive Go's emergency-router filter")else -> null}- /** Words an agency puts in its vehicles' network names, matched as whole words ("SHERIFF-12", "Medic 7"). */- private val EMERGENCY_WORDS = setOf("police", "pd", "sheriff", "trooper", "patrol", "k9", "mdt", "fire", "fd",- "ems", "medic", "ambulance", "rescue", "dispatch")+ /** Words police put in their vehicles' network names, matched as whole words ("SHERIFF-12", "PD_Unit4"). Police only: fire / EMS and words they share (MDT, dispatch) left out on purpose. */+ private val EMERGENCY_WORDS = setOf("police", "pd", "sheriff", "trooper", "patrol", "k9")private val NON_ALNUM = Regex("[^a-z0-9]+")private val LETTER_DIGIT = Regex("(?<=[a-z])(?=[0-9])|(?<=[0-9])(?=[a-z])")diff --git a/app/src/test/java/com/rfsentinel/app/detect/PoliceSsidTest.kt b/app/src/test/java/com/rfsentinel/app/detect/PoliceSsidTest.ktindex e805917..172d3e4 100644--- a/app/src/test/java/com/rfsentinel/app/detect/PoliceSsidTest.kt+++ b/app/src/test/java/com/rfsentinel/app/detect/PoliceSsidTest.kt@@ -26,8 +26,11 @@ class PoliceSsidTest {@Testfun emergencyNamesMatchAsWholeWords() {- for (name in listOf("SHERIFF-12", "Medic 7", "PD_Unit4", "K9-12", "Engine12 FD"))+ for (name in listOf("SHERIFF-12", "PD_Unit4", "K9-12", "Patrol 7"))assertTrue(name, SignatureEngine.policeVehicleSsid(name)!!.confidence < 50) // weak alone+ // Fire and EMS vehicles, and words they share with police, aren't flagged.+ for (name in listOf("Medic 7", "Engine12 FD", "FIRE-3", "EMS_Unit2", "Ambulance 4", "Rescue1", "MDT-4", "Dispatch 2"))+ assertNull(name, SignatureEngine.policeVehicleSsid(name))// A familiar router named for an agency still alerts: the name match isn't a router-only match.assertTrue(!FixedRouter.routerOnly(listOf(SignatureEngine.policeVehicleSsid("SHERIFF-12")!!)))}