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 names don't make a router a phone; Waze test with default grouping
CIS-C0e46eedab489e
diff --git a/app/src/main/java/com/rfsentinel/app/ui/DeviceFilter.kt b/app/src/main/java/com/rfsentinel/app/ui/DeviceFilter.ktindex 594b610..4cdb821 100644--- a/app/src/main/java/com/rfsentinel/app/ui/DeviceFilter.kt+++ b/app/src/main/java/com/rfsentinel/app/ui/DeviceFilter.kt@@ -67,9 +67,11 @@ enum class DeviceFilter(val label: String, val liveOnly: Boolean = false) {val vendor: String? = null) {/** The type and every other kind the evidence points to ([DeviceIntel.hintTypes]): the category chips use them all. */+ /** The name is a network's name (an access point heard on WiFi only): it already decided the type. */+ val nameIsSsid get() = Advert.Source.BLE !in sources && Advert.Source.WIFI in sourcesval types: List<String> by lazy {// A device heard on someone's network only says it's some WiFi device: it counts for no category by itself.- listOfNotNull(type.takeUnless { it.startsWith(DeviceIntel.WIFI_CLIENT_TYPE) }) + DeviceIntel.hintTypes(name, facts, vendor, nameIsSsid = Advert.Source.BLE !in sources && Advert.Source.WIFI in sources)+ listOfNotNull(type.takeUnless { it.startsWith(DeviceIntel.WIFI_CLIENT_TYPE) }) + DeviceIntel.hintTypes(name, facts, vendor, nameIsSsid)}fun anyType(re: Regex) = types.any { re.containsMatchIn(it) }}@@ -95,7 +97,7 @@ enum class DeviceFilter(val label: String, val liveOnly: Boolean = false) {// The kinds below look at every clue (the type and the hints, see [Seen.types]), not only the type that won.VEHICLES -> s.anyType(VEHICLE_TYPE) || s.hits.any { it.category == Category.V2X }// A watch counts as its owner's phone for tracker checks, not on this chip.- PHONES -> (s.types.any { DeviceIntel.isPhone(it, null) } || DeviceIntel.isPhone(null, s.name)) && !s.type.startsWith("Apple Watch")+ PHONES -> (s.types.any { DeviceIntel.isPhone(it, null) } || (!s.nameIsSsid && DeviceIntel.isPhone(null, s.name))) && !s.type.startsWith("Apple Watch")AUDIO -> (s.anyType(AUDIO_TYPE) || s.facts.contains("Identified by" to "Fast Pair model ID")) &&s.hits.none { it.category == Category.AUDIO_SENSOR }CAMERAS -> s.anyType(CAMERA_TYPE) || s.hits.any { it.category in CAMERA_CATEGORIES }diff --git a/app/src/test/java/com/rfsentinel/app/online/WazeScreensTest.kt b/app/src/test/java/com/rfsentinel/app/online/WazeScreensTest.ktindex fce686d..5a8e6cc 100644--- a/app/src/test/java/com/rfsentinel/app/online/WazeScreensTest.kt+++ b/app/src/test/java/com/rfsentinel/app/online/WazeScreensTest.kt@@ -131,7 +131,9 @@ class WazeScreensTest {val list = activity.findViewById<RecyclerView>(com.rfsentinel.app.R.id.recyclerView)@Suppress("UNCHECKED_CAST")val rows = (list.adapter as ListAdapter<DeviceRow, *>).currentList- val first = rows.first()+ // Grouped by category by default: the report heads the Alerts section, right under its header.+ val first = rows.first { !it.header }+ assertTrue(rows.indexOf(first) <= 1 && (rows.indexOf(first) == 0 || rows[0].title.startsWith("Alerts")))assertEquals("Police reported on Waze", first.title)assertEquals("120 m N · ahead · closing in", first.subtitle)assertTrue("flashing: it is above the alert threshold", first.flashing)