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
Netherlands preset; a European preset turns Flock detection off, unless United States is on; Find My devices no longer read as AirTags
CIS-C0b60cbb82e947
diff --git a/app/src/main/assets/oui_presets/netherlands.json b/app/src/main/assets/oui_presets/netherlands.jsonnew file mode 100644index 0000000..8aa6ce5--- /dev/null+++ b/app/src/main/assets/oui_presets/netherlands.json@@ -0,0 +1,10 @@+[+ {+ "prefix": "48:46:8D",+ "label": "Zepcam body camera (Dutch maker)",+ "source": "IEEE MA-L registry (Zepcam B.V.): a dedicated body-worn camera manufacturer for police, security and transit",+ "confidence": "confirmed",+ "score": 75,+ "category": "BODY_CAM"+ }+]\ No newline at end of filediff --git a/app/src/main/java/com/rfsentinel/app/detect/DeviceIntel.kt b/app/src/main/java/com/rfsentinel/app/detect/DeviceIntel.ktindex 319944e..d3e9c69 100644--- a/app/src/main/java/com/rfsentinel/app/detect/DeviceIntel.kt+++ b/app/src/main/java/com/rfsentinel/app/detect/DeviceIntel.kt@@ -391,7 +391,7 @@ object DeviceIntel {if (basis == null) basis = "Apple Continuity message"type = type ?: when {0x07 in types -> "AirPods / Beats"- 0x12 in types -> "Apple Find My device (AirTag, iPhone, Mac...)"+ 0x12 in types -> "Apple device with Find My"0x09 in types -> "Apple TV / AirPlay speaker"// Only a Watch reports being on a wrist or offers Magic Switch; only a phone drives,// and only a phone or cellular iPad offers its hotspot.diff --git a/app/src/main/java/com/rfsentinel/app/detect/FlockNoise.kt b/app/src/main/java/com/rfsentinel/app/detect/FlockNoise.ktindex df5a8ad..245c88c 100644--- a/app/src/main/java/com/rfsentinel/app/detect/FlockNoise.kt+++ b/app/src/main/java/com/rfsentinel/app/detect/FlockNoise.kt@@ -6,10 +6,9 @@ package com.rfsentinel.app.detect* generic "FS-<hex>" name are shared with speakers, scooters, bulbs and meeting-room boxes:* - a module-prefix match is dropped when the device names itself as something else* (a Flock module has no name or a Flock-style one);- * - outside Flock's market (a European preset on, US and Canada off) both are dropped entirely, and so are the- * "Possible Flock camera" probe clues (probe shape, module prefix without Flock's element), which ordinary- * phones and boards also match.- * Strong Flock signatures (Penguin / Falcon / Raven names, Flock's own service, the+ * - outside Flock's market (a European preset on, United States off) every Flock match is dropped, strong+ * signatures included: Flock isn't used there.+ * In Flock's market, strong signatures (Penguin / Falcon / Raven names, Flock's own service, the* battery name, XUNTONG ID) are never touched.*/object FlockNoise {@@ -24,15 +23,14 @@ object FlockNoise {fun isGenericFsName(h: Hit) =h.category == Category.ALPR && h.evidence.contains("generic white-label", ignoreCase = true)- fun isWeakProbe(h: Hit) =- h.category == Category.ALPR && h.label.startsWith("Possible Flock camera (probe")+ private fun isFlock(h: Hit) = h.label.contains("Flock", ignoreCase = true) || isGenericFsName(h)fun filter(hits: List<Hit>, name: String?, flockRegion: Boolean): List<Hit> {val named = name?.trim()?.takeIf { it.isNotEmpty() }return hits.filterNot { h ->when {- isCommunityPrefix(h) -> !flockRegion || (named != null && !FLOCK_NAME.containsMatchIn(named))- isGenericFsName(h) || isWeakProbe(h) -> !flockRegion+ !flockRegion -> isFlock(h)+ isCommunityPrefix(h) -> named != null && !FLOCK_NAME.containsMatchIn(named)else -> false}}diff --git a/app/src/main/java/com/rfsentinel/app/oui/OuiWatchlist.kt b/app/src/main/java/com/rfsentinel/app/oui/OuiWatchlist.ktindex cc01e89..bfea2a9 100644--- a/app/src/main/java/com/rfsentinel/app/oui/OuiWatchlist.kt+++ b/app/src/main/java/com/rfsentinel/app/oui/OuiWatchlist.kt@@ -47,8 +47,8 @@ object OuiWatchlist {)/**- * False when a European region (France, UK, Portugal, Germany, Spain, Italy) is on without US / Canada: Flock- * isn't deployed there, so its weak module-prefix clues are ignored (see FlockNoise).+ * False when a European region is on without the United States: Flock isn't deployed there, so its matches are+ * ignored (see FlockNoise). Canada doesn't count: it's on by default, so a European user may never have unticked it.*/@Volatilevar flockRegion = true@@ -63,16 +63,16 @@ object OuiWatchlist {private var state = State(emptyMap(), emptyList(), emptyList(), emptyList(), emptyMap(), emptyMap(), emptyMap(), emptyList(), emptyList())/** Load order: regional presets after "global", so their labels win for shared prefixes. */- val availablePresets = listOf("global", "canada", "us", "france", "uk", "portugal", "germany", "spain", "italy")+ val availablePresets = listOf("global", "canada", "us", "france", "uk", "portugal", "germany", "spain", "italy", "netherlands")- /** Regions where Flock isn't deployed: their presets turn the weak Flock clues off (FlockNoise). */- private val NON_FLOCK_REGIONS = setOf("france", "uk", "portugal", "germany", "spain", "italy")+ /** Regions where Flock isn't deployed: their presets turn Flock detection off (FlockNoise). */+ private val NON_FLOCK_REGIONS = setOf("france", "uk", "portugal", "germany", "spain", "italy", "netherlands")@Synchronizedfun load(context: Context) {val byKey = linkedMapOf<String, OuiEntry>()val enabled = getEnabledPresets(context)- flockRegion = enabled.none { it in NON_FLOCK_REGIONS } || "us" in enabled || "canada" in enabled+ flockRegion = enabled.none { it in NON_FLOCK_REGIONS } || "us" in enabledfor (preset in availablePresets.filter { it in enabled }) {loadPresetAsset(context, preset).forEach { byKey[it.prefix] = it }}diff --git a/app/src/main/java/com/rfsentinel/app/settings/SettingsActivity.kt b/app/src/main/java/com/rfsentinel/app/settings/SettingsActivity.ktindex 39f165b..aa6e67c 100644--- a/app/src/main/java/com/rfsentinel/app/settings/SettingsActivity.kt+++ b/app/src/main/java/com/rfsentinel/app/settings/SettingsActivity.kt@@ -49,7 +49,8 @@ class SettingsActivity : AppCompatActivity() {"Portugal: Motorola SIRESP radios of PSP, GNR and INEM.\n" +"Germany: Motorola VB400 body cams, Motorola and Sepura BOS digital radios.\n" +"Spain: Axon body cams of the Policia Nacional, Teltronic radios.\n" +- "Italy: Leonardo / Selex police radios, Selea and Elsag plate readers."+ "Italy: Leonardo / Selex police radios, Selea and Elsag plate readers.\n" ++ "Netherlands: Zepcam body cams."const val WAZE_WARNING_SHORT = "Use at your own risk. Reports come from third-party services RF Sentinel doesn't run or endorse " +"(OpenWeb Ninja with your own key, or Waze itself); your account, your responsibility."const val WAZE_WARNING = "Waze police reports are read through OpenWeb Ninja's Waze API with your own API key.\n\n" +@@ -302,7 +303,8 @@ class SettingsActivity : AppCompatActivity() {private fun presetSwitches() = mapOf("global" to binding.presetGlobal, "canada" to binding.presetCanada, "us" to binding.presetUs,"france" to binding.presetFrance, "uk" to binding.presetUk, "portugal" to binding.presetPortugal,- "germany" to binding.presetGermany, "spain" to binding.presetSpain, "italy" to binding.presetItaly+ "germany" to binding.presetGermany, "spain" to binding.presetSpain, "italy" to binding.presetItaly,+ "netherlands" to binding.presetNetherlands)/** ESP32 boards on USB (OUI-Spy / GhostESP / Marauder) and an OUI-SPY board over Bluetooth. */@@ -684,8 +686,9 @@ class SettingsActivity : AppCompatActivity() {"• Germany: Motorola VB400 body cams of several state police forces, Motorola and Sepura BOS digital radios.\n" +"• Spain: Axon body cams of the Policia Nacional, Teltronic TETRA radios.\n" +"• Italy: Leonardo / Selex TETRA radios of the Polizia di Stato, Selea and Elsag plate readers.\n" +- "French drone electronic IDs are decoded in every region. With a European preset on (and not US / Canada), " +- "the weak Flock clues are ignored: Flock isn't used there."),+ "• Netherlands: Zepcam body cams.\n" ++ "French drone electronic IDs are decoded in every region. With a European preset on (and not United States), " ++ "Flock detection is off: Flock isn't used there."),Section("alerts", binding.headerAlerts, binding.sectionAlerts,"Threshold: \"Weak\" alerts on every match (more false alarms); \"Strong only\" on near-certain ones.\n\n" +"Vibration: 1 pulse weak, 2 probable, 3 strong.\n\n" +diff --git a/app/src/main/java/com/rfsentinel/app/ui/SetupActivity.kt b/app/src/main/java/com/rfsentinel/app/ui/SetupActivity.ktindex a47f10a..722fa05 100644--- a/app/src/main/java/com/rfsentinel/app/ui/SetupActivity.kt+++ b/app/src/main/java/com/rfsentinel/app/ui/SetupActivity.kt@@ -195,7 +195,8 @@ class SetupActivity : AppCompatActivity() {"portugal" to "Portugal - Motorola SIRESP radios of PSP, GNR and INEM","germany" to "Germany - Motorola VB400 body cams, Motorola and Sepura BOS digital radios","spain" to "Spain - Axon body cams of the Policia Nacional, Teltronic radios",- "italy" to "Italy - Leonardo / Selex police radios, Selea and Elsag plate readers"+ "italy" to "Italy - Leonardo / Selex police radios, Selea and Elsag plate readers",+ "netherlands" to "Netherlands - Zepcam body cams").forEach { (key, label) ->check(label, key in enabled) { on ->if (on) enabled += key else enabled -= keydiff --git a/app/src/main/res/layout/activity_settings.xml b/app/src/main/res/layout/activity_settings.xmlindex 42a6d69..d021827 100644--- a/app/src/main/res/layout/activity_settings.xml+++ b/app/src/main/res/layout/activity_settings.xml@@ -211,6 +211,7 @@<CheckBox style="@style/SettingsControl" android:id="@+id/presetGermany" android:text="Germany" /><CheckBox style="@style/SettingsControl" android:id="@+id/presetSpain" android:text="Spain" /><CheckBox style="@style/SettingsControl" android:id="@+id/presetItaly" android:text="Italy" />+ <CheckBox style="@style/SettingsControl" android:id="@+id/presetNetherlands" android:text="Netherlands" /></LinearLayout><!-- ================= Alerts ================= -->diff --git a/app/src/test/java/com/rfsentinel/app/detect/FlockNoiseTest.kt b/app/src/test/java/com/rfsentinel/app/detect/FlockNoiseTest.ktindex e02a642..e78db4c 100644--- a/app/src/test/java/com/rfsentinel/app/detect/FlockNoiseTest.kt+++ b/app/src/test/java/com/rfsentinel/app/detect/FlockNoiseTest.kt@@ -23,9 +23,12 @@ class FlockNoiseTest {}@Test- fun outsideFlocksMarketOnlyStrongSignaturesCount() {+ fun outsideFlocksMarketNoFlockMatchCounts() {assertTrue(FlockNoise.filter(listOf(liteon, fsName), null, flockRegion = false).isEmpty())- assertEquals(listOf(penguin), FlockNoise.filter(listOf(liteon, fsName, penguin), "Penguin-1234567890", false))+ val raven = Hit(Category.AUDIO_SENSOR, "Flock Raven audio / gunshot sensor", 80, "", "")+ val axon = Hit(Category.BODY_CAM, "Axon body camera", 75, "", "")+ assertEquals(listOf(axon), FlockNoise.filter(listOf(liteon, fsName, penguin, raven, axon), "Penguin-1234567890", false))+ assertEquals(listOf(penguin), FlockNoise.filter(listOf(penguin), "Penguin-1234567890", true))assertEquals(1, FlockNoise.filter(listOf(fsName), "FS-ABC123", flockRegion = true).size)val shape = Hit(Category.ALPR, "Possible Flock camera (probe shape)", 35, "", "")assertTrue(FlockNoise.filter(listOf(shape), null, flockRegion = false).isEmpty())