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.

Device details show the assigned category

CIS-C01924f83ae343
diff --git a/app/src/main/java/com/rfsentinel/app/ui/DeviceDetailActivity.kt b/app/src/main/java/com/rfsentinel/app/ui/DeviceDetailActivity.kt
index 62a670a..2db174d 100644
--- a/app/src/main/java/com/rfsentinel/app/ui/DeviceDetailActivity.kt
+++ b/app/src/main/java/com/rfsentinel/app/ui/DeviceDetailActivity.kt
@@ -296,6 +296,10 @@ class DeviceDetailActivity : AppCompatActivity() {
// Identity
val id = mutableListOf<Pair<String, String>>()
(s?.deviceType ?: knownType)?.let { id += "Device type" to it }
+ // The category the list files it under (a device no longer heard: from its saved type and name).
+ (s?.let { DeviceFilter.seen(it) } ?: knownType?.let {
+ DeviceFilter.Seen(mac, it, known?.name, emptyList(), emptySet(), false, vendor = VendorDb.macVendor(mac))
+ })?.let { id += "Category" to DeviceOrder.categoryLabel(it) }
(s?.name ?: known?.name)?.let { id += (if (a?.isWifi == true) "Network name (SSID)" else "Advertised name") to it }
VendorDb.macVendor(mac)?.let { id += "Address registrant (IEEE)" to it }
a?.manufacturerData?.keys?.forEach { cid ->
diff --git a/app/src/main/java/com/rfsentinel/app/ui/DeviceOrder.kt b/app/src/main/java/com/rfsentinel/app/ui/DeviceOrder.kt
index 50b6b33..39f8920 100644
--- a/app/src/main/java/com/rfsentinel/app/ui/DeviceOrder.kt
+++ b/app/src/main/java/com/rfsentinel/app/ui/DeviceOrder.kt
@@ -56,6 +56,19 @@ object DeviceOrder {
/** The group of flagged devices, first when grouped. */
const val ALERTS = "Alerts"
private const val OTHER = "Other"
+
+ /**
+ * The categories a device is in, the one Group by Category files it under first ("Phones (also Apple)"),
+ * or "Other" when it's in none.
+ */
+ fun categoryLabel(s: DeviceFilter.Seen): String {
+ val all = CATEGORY_ORDER.filter { it.matches(s) }.map { it.label }
+ return when {
+ all.isEmpty() -> OTHER
+ all.size == 1 -> all[0]
+ else -> "${all[0]} (also ${all.drop(1).joinToString()})"
+ }
+ }
private const val UNKNOWN_MAKER = "Unknown maker"
private val BANDS = listOf("Near", "Nearby", "Far")