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.

Android Auto in real cars: media-style screen and alert messages; Settings sections

CIS-C0dd3a80d065e4
diff --git a/README.md b/README.md
index 090addd..4a5526d 100644
--- a/README.md
+++ b/README.md
@@ -316,10 +316,31 @@ A driver-safe, template-based Android Auto app:
- Screens only redraw when what they show has changed, and a screen that fails
to build shows a short message instead of closing the app.
-**Sideloaded apps need one-time setup:** Android Auto settings → tap **Version**
-ten times → **⋮ → Developer settings** → enable **Unknown sources**. Then
-install (or reinstall) the APK, open RF Sentinel once on the phone, and
-reconnect. Still missing? Check **Customize launcher** for hidden apps.
+**In a real car, Android Auto only shows apps like this one when they come
+from a trusted store.** Google lets apps built with its Car App Library (as
+RF Sentinel is) run in a real car only when they're installed from Google Play
+or ONE store, and Android Auto's **Unknown sources** developer setting doesn't
+cover them ([Google's testing guide](https://developer.android.com/training/cars/testing#real-vehicles)).
+The GitHub APK's car screens therefore run only on Google's
+[Desktop Head Unit](https://developer.android.com/training/cars/testing/dhu)
+emulator.
+
+**The GitHub APK still works in a real car**, through the two app types that
+setting does cover. Android Auto settings → tap **Version** ten times →
+**⋮ → Developer settings** → enable **Unknown sources**, then reconnect:
+
+- **RF Sentinel screen (media-style):** tabs for **Threats**, **Cameras**
+ (nearest known cameras, the one ahead first), **Alerts** and **Status**
+ (start / stop scanning, mute, cell towers, hardware), plus a card with the
+ current threat and **Scan** / **Mute** buttons. It never plays anything, so
+ your music keeps playing and keeps the steering-wheel buttons.
+- **Alerts as messages:** every alert arrives as a message from RF Sentinel,
+ which the car shows and can read aloud. Reply **"mute"** to silence alerts
+ for 30 minutes or **"ignore"** to stop alerting about the latest device.
+
+If RF Sentinel is missing from the car's launcher, tick it under
+**Customize launcher**. The live map needs the full car app, so it stays on
+the Desktop Head Unit.
## ESP32 boards (optional)
diff --git a/app/build.gradle.kts b/app/build.gradle.kts
index 85ead16..ad9227e 100644
--- a/app/build.gradle.kts
+++ b/app/build.gradle.kts
@@ -95,6 +95,8 @@ dependencies {
// Android Auto (Car App Library, template-based UI; "projected" = phone-driven Android Auto)
implementation("androidx.car.app:app:1.7.0")
implementation("androidx.car.app:app-projected:1.7.0")
+ // Android Auto media-style screen (MediaBrowserServiceCompat).
+ implementation("androidx.media:media:1.7.0")
testImplementation("junit:junit:4.13.2")
testImplementation("androidx.car.app:app-testing:1.7.0")
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index b9b78b4..5b41fa4 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -92,17 +92,27 @@
android:exported="false"
android:parentActivityName=".MainActivity" />
- <!-- Android Auto (Car App Library). Sideloaded builds need Android Auto's
- developer setting "Unknown sources". -->
+ <!-- Android Auto (Car App Library). A real car only runs Car App Library apps
+ installed from a trusted store (Google Play, ONE store); Android Auto's
+ "Unknown sources" setting doesn't cover them, so a GitHub APK shows only on
+ the Desktop Head Unit (developer.android.com/training/cars/testing). -->
<service
android:name=".car.RFSentinelCarAppService"
android:exported="true">
<intent-filter>
<action android:name="androidx.car.app.CarAppService" />
- <!-- POI is the category every Android Auto version lists; IOT kept as a
- secondary so newer hosts can file it there too. -->
+ <!-- POI only: its map templates and surface drawing are what the car
+ screens use (IOT apps may not draw maps). -->
<category android:name="androidx.car.app.category.POI" />
- <category android:name="androidx.car.app.category.IOT" />
+ </intent-filter>
+ </service>
+ <!-- Android Auto media-style screen: tabs (threats, cameras, alerts, status) and
+ a "now playing" card. Works in a real car from the GitHub APK. -->
+ <service
+ android:name=".car.RFSentinelMediaService"
+ android:exported="true">
+ <intent-filter>
+ <action android:name="android.media.browse.MediaBrowserService" />
</intent-filter>
</service>
<meta-data
@@ -155,6 +165,10 @@
<receiver
android:name=".receiver.AlertActionReceiver"
android:exported="false" />
+ <!-- Reply / mark-as-read on the alert conversation shown in Android Auto. -->
+ <receiver
+ android:name=".receiver.CarMessageReceiver"
+ android:exported="false" />
<receiver
android:name=".receiver.CarBluetoothReceiver"
diff --git a/app/src/main/java/com/rfsentinel/app/MainActivity.kt b/app/src/main/java/com/rfsentinel/app/MainActivity.kt
index 66c0065..67415e2 100644
--- a/app/src/main/java/com/rfsentinel/app/MainActivity.kt
+++ b/app/src/main/java/com/rfsentinel/app/MainActivity.kt
@@ -111,7 +111,7 @@ class MainActivity : AppCompatActivity() {
menu.add(0, 1, 0, "Cell towers")
menu.add(0, 2, 1, "WiFi channels")
menu.add(0, 3, 2, "WiFi spectrum")
- menu.add(0, 4, 3, "Satellites (GPS, Galileo, GLONASS, BeiDou)")
+ menu.add(0, 4, 3, "Satellites")
setOnMenuItemClickListener { item ->
when (item.itemId) {
1 -> startActivity(Intent(this@MainActivity, com.rfsentinel.app.ui.CellTowersActivity::class.java))
diff --git a/app/src/main/java/com/rfsentinel/app/car/CarState.kt b/app/src/main/java/com/rfsentinel/app/car/CarState.kt
index 51b868f..bf5c13e 100644
--- a/app/src/main/java/com/rfsentinel/app/car/CarState.kt
+++ b/app/src/main/java/com/rfsentinel/app/car/CarState.kt
@@ -21,7 +21,11 @@ object CarState {
val now = type == CarConnection.CONNECTION_TYPE_PROJECTION ||
type == CarConnection.CONNECTION_TYPE_NATIVE
if (now && !connected) com.rfsentinel.app.receiver.CarAutoStart.onCarConnected(app, "Android Auto connected")
- if (!now && connected) com.rfsentinel.app.receiver.CarAutoStart.onCarDisconnected(app, "Android Auto disconnected")
+ if (!now && connected) {
+ com.rfsentinel.app.receiver.CarAutoStart.onCarDisconnected(app, "Android Auto disconnected")
+ // The next drive starts a fresh alert conversation.
+ com.rfsentinel.app.util.CarMessages.clear(app)
+ }
connected = now
}
}
diff --git a/app/src/main/java/com/rfsentinel/app/car/CarUi.kt b/app/src/main/java/com/rfsentinel/app/car/CarUi.kt
index 70a0841..e36668a 100644
--- a/app/src/main/java/com/rfsentinel/app/car/CarUi.kt
+++ b/app/src/main/java/com/rfsentinel/app/car/CarUi.kt
@@ -28,7 +28,7 @@ object CarUi {
/** Where the driver is: the scanner's latest fix, else the phone's last known position. */
@android.annotation.SuppressLint("MissingPermission") // checked via Permissions
- fun currentLocation(context: CarContext): android.location.Location? {
+ fun currentLocation(context: android.content.Context): android.location.Location? {
// Debug demo only: a made-up position, so screenshots never show the real one.
com.rfsentinel.app.ui.DemoData.fakeLocation?.let { return it }
// Navigation keeps its own 1 s GPS fixes; use whichever fix is newer.
@@ -122,7 +122,7 @@ object CarUi {
* The next known camera on your way (see KnownCameras.ahead): needs a GPS heading
* while moving; parked, the nearest within 1 km. Silenced cameras are left out.
*/
- fun nextCamera(context: CarContext): Pair<com.rfsentinel.app.alpr.KnownCamera, Double>? {
+ fun nextCamera(context: android.content.Context): Pair<com.rfsentinel.app.alpr.KnownCamera, Double>? {
val cams = com.rfsentinel.app.alpr.AlprStore.cameras
if (cams.isEmpty()) return null
val me = currentLocation(context) ?: return null
@@ -133,7 +133,7 @@ object CarUi {
}
/** Alert sound state for the home screen and the More screen ("" when sound is on). */
- fun silencedText(context: CarContext, now: Long = System.currentTimeMillis()): String {
+ fun silencedText(context: android.content.Context, now: Long = System.currentTimeMillis()): String {
val until = com.rfsentinel.app.util.Prefs.alertsSnoozedUntil(context)
return when {
com.rfsentinel.app.util.Prefs.alertsMuted(context) -> "Alert sound muted"
diff --git a/app/src/main/java/com/rfsentinel/app/car/RFSentinelMediaService.kt b/app/src/main/java/com/rfsentinel/app/car/RFSentinelMediaService.kt
new file mode 100644
index 0000000..cefaee8
--- /dev/null
+++ b/app/src/main/java/com/rfsentinel/app/car/RFSentinelMediaService.kt
@@ -0,0 +1,460 @@
+package com.rfsentinel.app.car
+
+import android.graphics.Bitmap
+import android.graphics.Canvas
+import android.graphics.Color
+import android.graphics.Paint
+import android.graphics.Typeface
+import android.os.Bundle
+import android.os.Handler
+import android.os.Looper
+import android.os.Process
+import android.support.v4.media.MediaBrowserCompat.MediaItem
+import android.support.v4.media.MediaDescriptionCompat
+import android.support.v4.media.MediaMetadataCompat
+import android.support.v4.media.session.MediaSessionCompat
+import android.support.v4.media.session.PlaybackStateCompat
+import androidx.annotation.DrawableRes
+import androidx.core.content.ContextCompat
+import androidx.core.graphics.drawable.toBitmap
+import androidx.media.MediaBrowserServiceCompat
+import androidx.media.utils.MediaConstants
+import com.rfsentinel.app.R
+import com.rfsentinel.app.alpr.AlprStore
+import com.rfsentinel.app.alpr.IgnoredCameras
+import com.rfsentinel.app.data.AlertLog
+import com.rfsentinel.app.detect.Tier
+import com.rfsentinel.app.esp.EspBoards
+import com.rfsentinel.app.esp.OuiSpyBle
+import com.rfsentinel.app.receiver.AlertActionReceiver
+import com.rfsentinel.app.sdr.SdrRadio
+import com.rfsentinel.app.service.DeviceRegistry
+import com.rfsentinel.app.service.ScanForegroundService
+import com.rfsentinel.app.usb.UsbWifi
+import com.rfsentinel.app.util.Permissions
+import com.rfsentinel.app.util.Prefs
+
+/**
+ * RF Sentinel as an Android Auto media app: four tabs (Threats, Cameras, Alerts, Status)
+ * and a "now playing" card with the threat headline plus Scan and Mute buttons.
+ *
+ * A real car only runs the Car App Library screens ([RFSentinelCarAppService]) when the
+ * app comes from a trusted store, but Android Auto's "Unknown sources" setting covers
+ * media apps, so the GitHub APK gets this screen in the car. Nothing is ever played:
+ * the session takes no audio focus and stays inactive, so music keeps playing and keeps
+ * the steering-wheel buttons.
+ */
+class RFSentinelMediaService : MediaBrowserServiceCompat() {
+
+ private lateinit var session: MediaSessionCompat
+ private val handler = Handler(Looper.getMainLooper())
+
+ /** Latest children per tab, and what they showed (to notify Android Auto only on changes). */
+ private val children = HashMap<String, List<MediaItem>>()
+ private val childKeys = HashMap<String, Any>()
+ private var metaKey: Any? = null
+ private var stateKey: Any? = null
+
+ /** What the "now playing" card shows instead of the headline, and since when. */
+ private var selected: String? = null
+ private var selectedAt = 0L
+
+ private val dots = HashMap<Int, Bitmap>()
+
+ private val tick = object : Runnable {
+ override fun run() {
+ refresh()
+ handler.postDelayed(this, REFRESH_MS)
+ }
+ }
+
+ override fun onCreate() {
+ super.onCreate()
+ session = MediaSessionCompat(this, "RFSentinel").apply {
+ setCallback(callback)
+ // Inactive on purpose: Android routes media buttons only to active sessions.
+ isActive = false
+ }
+ sessionToken = session.sessionToken
+ refresh()
+ handler.postDelayed(tick, REFRESH_MS)
+ }
+
+ override fun onDestroy() {
+ handler.removeCallbacks(tick)
+ session.release()
+ super.onDestroy()
+ }
+
+ override fun onGetRoot(clientPackageName: String, clientUid: Int, rootHints: Bundle?): BrowserRoot? {
+ // No "resume playback" card in the phone's quick settings.
+ if (rootHints?.getBoolean(BrowserRoot.EXTRA_RECENT) == true) return null
+ // Detections are only shown to Android Auto (and the car's own media app).
+ if (clientUid != Process.myUid() && clientPackageName !in ALLOWED_CALLERS) return null
+ val extras = Bundle().apply {
+ putInt(MediaConstants.DESCRIPTION_EXTRAS_KEY_CONTENT_STYLE_BROWSABLE,
+ MediaConstants.DESCRIPTION_EXTRAS_VALUE_CONTENT_STYLE_LIST_ITEM)
+ putInt(MediaConstants.DESCRIPTION_EXTRAS_KEY_CONTENT_STYLE_PLAYABLE,
+ MediaConstants.DESCRIPTION_EXTRAS_VALUE_CONTENT_STYLE_LIST_ITEM)
+ }
+ return BrowserRoot(ROOT, extras)
+ }
+
+ override fun onLoadChildren(parentId: String, result: Result<MutableList<MediaItem>>) {
+ val items = if (parentId == ROOT) tabs() else children[parentId] ?: build(parentId).also { children[parentId] = it }
+ result.sendResult(items.toMutableList())
+ }
+
+ // ---- tabs ------------------------------------------------------------------------
+
+ private fun tabs(): List<MediaItem> = listOf(
+ browsable(TAB_THREATS, "Threats", R.drawable.ic_car_warning),
+ browsable(TAB_CAMERAS, "Cameras", R.drawable.ic_car_navigate),
+ browsable(TAB_ALERTS, "Alerts", R.drawable.ic_car_history),
+ browsable(TAB_STATUS, "Status", R.drawable.ic_car_more)
+ )
+
+ private fun build(tab: String): List<MediaItem> = when (tab) {
+ TAB_THREATS -> threats()
+ TAB_CAMERAS -> cameras()
+ TAB_ALERTS -> alerts()
+ TAB_STATUS -> status()
+ else -> emptyList()
+ }
+
+ private fun threats(): List<MediaItem> {
+ if (!ScanForegroundService.isRunning) {
+ return listOf(playable(ACTION_SCAN, "Not scanning", "Tap to start scanning", dot(CarUi.WEAK_COLOR)))
+ }
+ val flagged = CarUi.sorted(DeviceRegistry.snapshot()).filter { CarUi.isFlagged(it) }.take(MAX_ITEMS)
+ if (flagged.isEmpty()) {
+ return listOf(playable(INFO_CLEAR, "All clear", "No flagged equipment nearby", dot(CarUi.CLEAR_COLOR)))
+ }
+ return flagged.map { s ->
+ playable(DEVICE + s.mac, CarUi.title(s),
+ CarUi.tagLine(s) + " · " + com.rfsentinel.app.detect.DeviceIntel.formatDistance(s.distanceM),
+ dot(CarUi.colorFor(s)))
+ }
+ }
+
+ private fun cameras(): List<MediaItem> {
+ val me = CarUi.currentLocation(this)
+ val cams = AlprStore.cameras
+ if (me == null || cams.isEmpty()) {
+ return listOf(playable(INFO_NO_CAMERAS,
+ if (cams.isEmpty()) "No cameras downloaded" else "Waiting for a GPS fix",
+ if (cams.isEmpty()) "Download them on the phone: Settings > Known cameras" else "Cameras appear once the phone has a position",
+ dot(CarUi.WEAK_COLOR)))
+ }
+ val ahead = CarUi.nextCamera(this)?.first
+ val near = cams.asSequence()
+ .map { it to DeviceRegistry.metersBetween(me.latitude, me.longitude, it.lat, it.lon) }
+ .filter { it.second <= CAMERA_RADIUS_M && !IgnoredCameras.contains(this, it.first.osmId) }
+ .sortedBy { it.second }
+ .take(MAX_ITEMS)
+ .toList()
+ if (near.isEmpty()) {
+ return listOf(playable(INFO_NO_CAMERAS, "No known cameras within 5 km", null, dot(CarUi.CLEAR_COLOR)))
+ }
+ val ordered = near.sortedByDescending { it.first.osmId == ahead?.osmId }
+ return ordered.map { (cam, d) ->
+ playable(CAMERA + cam.osmId, cam.label,
+ (if (cam.osmId == ahead?.osmId) "Ahead · " else "") + NearbyMapScreen.distanceText(d) +
+ (cam.maxspeed?.let { " · $it km/h" } ?: "") + (cam.operator?.let { " · $it" } ?: ""),
+ dot(NearbyMapScreen.cameraColor(cam.type)))
+ }
+ }
+
+ private fun alerts(): List<MediaItem> {
+ val now = System.currentTimeMillis()
+ val list = AlertLog.recent(this).take(MAX_ITEMS)
+ if (list.isEmpty()) return listOf(playable(INFO_NO_ALERTS, "No alerts yet", null, dot(CarUi.CLEAR_COLOR)))
+ return list.map { e ->
+ playable(ALERT + e.key + "|" + e.time, (if (e.following) "FOLLOWING · " else "") + e.label,
+ "${e.categoryEnum?.shortTag ?: "Alert"} · ${CarUi.ageText(now - e.time)}", dot(alertColor(e)))
+ }
+ }
+
+ private fun status(): List<MediaItem> {
+ val running = ScanForegroundService.isRunning
+ val devices = if (running) DeviceRegistry.snapshot() else emptyList()
+ val silenced = CarUi.silencedText(this)
+ return listOfNotNull(
+ playable(ACTION_SCAN, if (running) "Stop scanning" else "Start scanning",
+ if (running) "Scanning · ${devices.size} nearby · ${devices.count { CarUi.isFlagged(it) }} flagged" else "Not scanning",
+ dot(if (running) CarUi.CLEAR_COLOR else CarUi.WEAK_COLOR)),
+ playable(ACTION_MUTE, if (silenced.isEmpty()) "Mute alerts for 30 minutes" else "Turn alert sound back on",
+ silenced.ifEmpty { "Alert sound and voice are on" }, dot(if (silenced.isEmpty()) CarUi.CLEAR_COLOR else CarUi.WEAK_COLOR)),
+ CellsScreen.summary()?.let { playable(INFO_CELLS, "Cell towers", it, dot(0xFF7B1FA2.toInt())) },
+ playable(INFO_HARDWARE, "Hardware", hardwareSummary(), dot(0xFF0B5C63.toInt()))
+ )
+ }
+
+ private fun hardwareSummary(): String = listOfNotNull(
+ EspBoards.status.takeIf { it.isNotBlank() },
+ UsbWifi.status.takeIf { it.isNotBlank() },
+ SdrRadio.status.takeIf { it.isNotBlank() },
+ OuiSpyBle.status.takeIf { it.isNotBlank() }
+ ).joinToString(" · ").ifEmpty { "Phone radios only" }
+
+ // ---- now playing -------------------------------------------------------------------
+
+ private val callback = object : MediaSessionCompat.Callback() {
+ override fun onPlayFromMediaId(mediaId: String?, extras: Bundle?) {
+ when (mediaId) {
+ ACTION_SCAN -> toggleScan()
+ ACTION_MUTE -> toggleMute()
+ null -> Unit
+ else -> select(mediaId)
+ }
+ refresh()
+ }
+
+ override fun onCustomAction(action: String?, extras: Bundle?) {
+ when (action) {
+ ACTION_SCAN -> toggleScan()
+ ACTION_MUTE -> toggleMute()
+ }
+ refresh()
+ }
+
+ override fun onSkipToNext() = step(1)
+ override fun onSkipToPrevious() = step(-1)
+ }
+
+ private fun select(id: String) {
+ selected = id
+ selectedAt = System.currentTimeMillis()
+ }
+
+ /** Next / previous flagged device on the card. */
+ private fun step(by: Int) {
+ val ids = CarUi.sorted(DeviceRegistry.snapshot()).filter { CarUi.isFlagged(it) }.map { DEVICE + it.mac }
+ if (ids.isEmpty()) return
+ // Nothing picked yet: next starts at the top, previous at the bottom.
+ val from = ids.indexOf(selected).takeIf { it >= 0 } ?: if (by > 0) -1 else 0
+ select(ids[(from + by).mod(ids.size)])
+ refresh()
+ }
+
+ private fun toggleScan() {
+ if (ScanForegroundService.isRunning) {
+ ScanForegroundService.stop(this)
+ message("Scanning stopped")
+ return
+ }
+ if (Permissions.missingRequired(this).isNotEmpty()) {
+ message("Open RF Sentinel on the phone", "Location and Nearby devices are needed to scan")
+ return
+ }
+ try {
+ ScanForegroundService.start(this)
+ message("Scanning started",
+ if (HomeScreen.phoneScreenOn(this)) null else "Phone screen off: Android limits Bluetooth scanning")
+ } catch (e: Exception) {
+ message("Couldn't start scanning", "Open RF Sentinel on the phone")
+ }
+ }
+
+ private fun toggleMute() {
+ if (CarUi.silencedText(this).isEmpty()) {
+ AlertActionReceiver.snooze(this)
+ message("Alerts muted for 30 minutes")
+ } else {
+ Prefs.setAlertsMuted(this, false)
+ Prefs.setAlertsSnoozedUntil(this, 0L)
+ message("Alert sound on")
+ }
+ }
+
+ private var messageText: Pair<String, String?>? = null
+
+ private fun message(title: String, detail: String? = null) {
+ messageText = title to detail
+ select(MESSAGE)
+ }
+
+ private data class Card(val id: String, val title: String, val subtitle: String?, val detail: String?,
+ val color: Int, val big: String, val small: String?)
+
+ private fun card(now: Long): Card {
+ val pick = selected?.takeIf { now - selectedAt < (if (it == MESSAGE) MESSAGE_MS else SELECTION_MS) }
+ if (pick == null) selected = null
+ return pick?.let { cardFor(it, now) } ?: headline()
+ }
+
+ private fun headline(): Card {
+ val running = ScanForegroundService.isRunning
+ if (!running) return Card(HEADLINE, "Not scanning", "Tap Start scanning below", null, CarUi.WEAK_COLOR, "OFF", "RF Sentinel")
+ val devices = DeviceRegistry.snapshot()
+ val (color, text) = CarUi.threat(devices, Prefs.alertThreshold(this))
+ val top = devices.filter { CarUi.isFlagged(it) }.maxByOrNull { it.best!!.confidence }
+ val line = listOf("${devices.size} nearby · ${devices.count { CarUi.isFlagged(it) }} flagged", CarUi.silencedText(this))
+ .filter { it.isNotEmpty() }.joinToString(" · ")
+ return Card(HEADLINE, text, line, top?.let { CarUi.signalLine(it) }, color,
+ top?.best?.category?.shortTag ?: "CLEAR", top?.best?.let { "${it.tier.label.substringBefore(" -")} ${it.confidence}%" })
+ }
+
+ private fun cardFor(id: String, now: Long): Card? = when {
+ id == MESSAGE -> messageText?.let { (t, d) -> Card(id, t, d, null, 0xFF0B5C63.toInt(), "RF SENTINEL", null) }
+ id.startsWith(DEVICE) -> DeviceRegistry.get(id.removePrefix(DEVICE))?.let { s ->
+ Card(id, CarUi.title(s), CarUi.tagLine(s), CarUi.signalLine(s, now), CarUi.colorFor(s),
+ s.best?.category?.shortTag ?: "DEVICE", com.rfsentinel.app.detect.DeviceIntel.formatDistance(s.distanceM))
+ }
+ id.startsWith(CAMERA) -> AlprStore.cameras.firstOrNull { it.osmId == id.removePrefix(CAMERA) }?.let { cam ->
+ val me = CarUi.currentLocation(this)
+ val d = me?.let { DeviceRegistry.metersBetween(it.latitude, it.longitude, cam.lat, cam.lon) }
+ Card(id, cam.label, listOfNotNull(d?.let { NearbyMapScreen.distanceText(it) + " away" }, cam.operator).joinToString(" · "),
+ cam.maxspeed?.let { "Limit $it km/h" }, NearbyMapScreen.cameraColor(cam.type),
+ NearbyMapScreen.cameraLabel(cam.type).let { when (it) { "S" -> "SPEED"; "R" -> "RED LIGHT"; else -> "PLATES" } },
+ d?.let { NearbyMapScreen.distanceText(it) })
+ }
+ id.startsWith(ALERT) -> AlertLog.recent(this).firstOrNull { ALERT + it.key + "|" + it.time == id }?.let { e ->
+ Card(id, (if (e.following) "FOLLOWING · " else "") + e.label,
+ "${e.categoryEnum?.shortTag ?: "Alert"} · ${CarUi.ageText(now - e.time)}", e.evidence.take(160),
+ alertColor(e), e.categoryEnum?.shortTag ?: "ALERT", e.tierEnum?.label?.substringBefore(" -"))
+ }
+ id == INFO_CELLS -> Card(id, "Cell towers", CellsScreen.summary() ?: "No cell information", null,
+ 0xFF7B1FA2.toInt(), "CELL", null)
+ id == INFO_HARDWARE -> Card(id, "Hardware", hardwareSummary(), null, 0xFF0B5C63.toInt(), "HARDWARE", null)
+ else -> null
+ }
+
+ private fun alertColor(e: AlertLog.Entry): Int =
+ if (e.tierEnum == Tier.WEAK) CarUi.WEAK_COLOR else e.categoryEnum?.colorArgb ?: CarUi.DANGER_COLOR
+
+ // ---- refresh -------------------------------------------------------------------------
+
+ private fun refresh() {
+ val now = System.currentTimeMillis()
+ for (tab in TABS) {
+ val items = build(tab)
+ val key = items.map { listOf(it.mediaId, it.description.title, it.description.subtitle) }
+ children[tab] = items
+ if (childKeys[tab] != key) {
+ childKeys[tab] = key
+ notifyChildrenChanged(tab)
+ }
+ }
+
+ val c = card(now)
+ if (c != metaKey) {
+ metaKey = c
+ session.setMetadata(
+ MediaMetadataCompat.Builder()
+ .putString(MediaMetadataCompat.METADATA_KEY_MEDIA_ID, c.id)
+ .putString(MediaMetadataCompat.METADATA_KEY_TITLE, c.title)
+ .putString(MediaMetadataCompat.METADATA_KEY_DISPLAY_TITLE, c.title)
+ .putString(MediaMetadataCompat.METADATA_KEY_ARTIST, c.subtitle)
+ .putString(MediaMetadataCompat.METADATA_KEY_DISPLAY_SUBTITLE, c.subtitle)
+ .putString(MediaMetadataCompat.METADATA_KEY_DISPLAY_DESCRIPTION, c.detail)
+ .putBitmap(MediaMetadataCompat.METADATA_KEY_ALBUM_ART, art(c.color, c.big, c.small))
+ .build()
+ )
+ }
+
+ val running = ScanForegroundService.isRunning
+ val muted = CarUi.silencedText(this).isNotEmpty()
+ val state = running to muted
+ if (state != stateKey) {
+ stateKey = state
+ session.setPlaybackState(
+ PlaybackStateCompat.Builder()
+ // No play/pause: there's nothing to play, and the steering-wheel buttons stay with the music.
+ .setActions(PlaybackStateCompat.ACTION_PLAY_FROM_MEDIA_ID or
+ PlaybackStateCompat.ACTION_SKIP_TO_NEXT or PlaybackStateCompat.ACTION_SKIP_TO_PREVIOUS)
+ .setState(PlaybackStateCompat.STATE_PAUSED, PlaybackStateCompat.PLAYBACK_POSITION_UNKNOWN, 0f)
+ .addCustomAction(PlaybackStateCompat.CustomAction.Builder(
+ ACTION_SCAN, if (running) "Stop scanning" else "Start scanning",
+ if (running) R.drawable.ic_car_stop else R.drawable.ic_car_play).build())
+ .addCustomAction(PlaybackStateCompat.CustomAction.Builder(
+ ACTION_MUTE, if (muted) "Sound on" else "Mute 30 min",
+ if (muted) R.drawable.ic_car_volume else R.drawable.ic_car_snooze).build())
+ .build()
+ )
+ }
+ }
+
+ // ---- images ----------------------------------------------------------------------------
+
+ /** The "now playing" picture: the category colour with its tag, e.g. "BODY CAM" / "strong 85%". */
+ private fun art(color: Int, big: String, small: String?): Bitmap {
+ val size = 256
+ val bmp = Bitmap.createBitmap(size, size, Bitmap.Config.RGB_565)
+ val canvas = Canvas(bmp)
+ canvas.drawColor(color)
+ val p = Paint(Paint.ANTI_ALIAS_FLAG).apply {
+ this.color = Color.WHITE
+ textAlign = Paint.Align.CENTER
+ typeface = Typeface.DEFAULT_BOLD
+ textSize = 46f
+ }
+ while (p.measureText(big) > size - 28 && p.textSize > 16f) p.textSize -= 2f
+ canvas.drawText(big, size / 2f, size * 0.52f, p)
+ if (!small.isNullOrBlank()) {
+ p.typeface = Typeface.DEFAULT
+ p.textSize = 26f
+ while (p.measureText(small) > size - 28 && p.textSize > 12f) p.textSize -= 1f
+ canvas.drawText(small, size / 2f, size * 0.74f, p)
+ }
+ return bmp
+ }
+
+ /** A small coloured dot for list rows (cached per colour). */
+ private fun dot(color: Int): Bitmap = dots.getOrPut(color) {
+ val size = 64
+ val bmp = Bitmap.createBitmap(size, size, Bitmap.Config.ARGB_8888)
+ val p = Paint(Paint.ANTI_ALIAS_FLAG).apply { this.color = color }
+ Canvas(bmp).drawCircle(size / 2f, size / 2f, size * 0.42f, p)
+ bmp
+ }
+
+ private fun icon(@DrawableRes res: Int): Bitmap? = runCatching {
+ ContextCompat.getDrawable(this, res)!!.mutate().apply { setTint(Color.WHITE) }.toBitmap(96, 96)
+ }.getOrNull()
+
+ private fun browsable(id: String, title: String, @DrawableRes res: Int) = MediaItem(
+ MediaDescriptionCompat.Builder().setMediaId(id).setTitle(title).setIconBitmap(icon(res)).build(),
+ MediaItem.FLAG_BROWSABLE
+ )
+
+ private fun playable(id: String, title: String, subtitle: String?, icon: Bitmap?) = MediaItem(
+ MediaDescriptionCompat.Builder().setMediaId(id).setTitle(title).setSubtitle(subtitle).setIconBitmap(icon).build(),
+ MediaItem.FLAG_PLAYABLE
+ )
+
+ companion object {
+ private const val ROOT = "root"
+ private const val TAB_THREATS = "threats"
+ private const val TAB_CAMERAS = "cameras"
+ private const val TAB_ALERTS = "alerts"
+ private const val TAB_STATUS = "status"
+ private val TABS = listOf(TAB_THREATS, TAB_CAMERAS, TAB_ALERTS, TAB_STATUS)
+
+ private const val DEVICE = "dev:"
+ private const val CAMERA = "cam:"
+ private const val ALERT = "alert:"
+ private const val ACTION_SCAN = "act:scan"
+ private const val ACTION_MUTE = "act:mute"
+ private const val INFO_CLEAR = "info:clear"
+ private const val INFO_NO_CAMERAS = "info:nocams"
+ private const val INFO_NO_ALERTS = "info:noalerts"
+ private const val INFO_CELLS = "info:cells"
+ private const val INFO_HARDWARE = "info:hw"
+ private const val HEADLINE = "headline"
+ private const val MESSAGE = "message"
+
+ private const val MAX_ITEMS = 15
+ private const val CAMERA_RADIUS_M = 5_000.0
+ private const val REFRESH_MS = 3_000L
+ /** A picked item stays on the card this long, then the headline returns. */
+ private const val SELECTION_MS = 60_000L
+ private const val MESSAGE_MS = 6_000L
+
+ /** Android Auto (phone projection) and the car's own media app on Android Automotive. */
+ private val ALLOWED_CALLERS = setOf(
+ "com.google.android.projection.gearhead",
+ "com.android.car.media"
+ )
+ }
+}
diff --git a/app/src/main/java/com/rfsentinel/app/receiver/CarMessageReceiver.kt b/app/src/main/java/com/rfsentinel/app/receiver/CarMessageReceiver.kt
new file mode 100644
index 0000000..0bfaee7
--- /dev/null
+++ b/app/src/main/java/com/rfsentinel/app/receiver/CarMessageReceiver.kt
@@ -0,0 +1,57 @@
+package com.rfsentinel.app.receiver
+
+import android.content.BroadcastReceiver
+import android.content.Context
+import android.content.Intent
+import androidx.core.app.RemoteInput
+import com.rfsentinel.app.util.CarMessages
+import kotlinx.coroutines.CoroutineScope
+import kotlinx.coroutines.Dispatchers
+import kotlinx.coroutines.SupervisorJob
+import kotlinx.coroutines.launch
+
+/**
+ * Android Auto's actions on the alert conversation ([CarMessages]): "mark as read"
+ * clears it; a spoken reply of "mute" silences alerts for 30 minutes and "ignore"
+ * stops alerting about the latest device (same as the alert card's buttons).
+ */
+class CarMessageReceiver : BroadcastReceiver() {
+
+ override fun onReceive(context: Context, intent: Intent) {
+ val app = context.applicationContext
+ when (intent.action) {
+ ACTION_MARK_READ -> CarMessages.clear(app)
+ ACTION_REPLY -> {
+ val reply = RemoteInput.getResultsFromIntent(intent)?.getCharSequence(KEY_REPLY)?.toString()
+ val mac = CarMessages.lastMac
+ CarMessages.clear(app)
+ when (CarMessages.command(reply)) {
+ CarMessages.Command.MUTE -> {
+ AlertActionReceiver.snooze(app)
+ CarMessages.post(app, "Alerts muted for 30 minutes.")
+ }
+ CarMessages.Command.IGNORE -> {
+ if (mac == null) return
+ val pending = goAsync()
+ scope.launch {
+ try {
+ val done = runCatching { AlertActionReceiver.ignore(app, mac) }.getOrNull()
+ if (done != null) CarMessages.post(app, "$done.")
+ } finally {
+ pending.finish()
+ }
+ }
+ }
+ CarMessages.Command.NONE -> Unit
+ }
+ }
+ }
+ }
+
+ companion object {
+ const val ACTION_REPLY = "com.rfsentinel.app.action.CAR_MESSAGE_REPLY"
+ const val ACTION_MARK_READ = "com.rfsentinel.app.action.CAR_MESSAGE_READ"
+ const val KEY_REPLY = "reply"
+ private val scope = CoroutineScope(SupervisorJob() + Dispatchers.IO)
+ }
+}
diff --git a/app/src/main/java/com/rfsentinel/app/service/TripRecorder.kt b/app/src/main/java/com/rfsentinel/app/service/TripRecorder.kt
index 2e20362..71aab7d 100644
--- a/app/src/main/java/com/rfsentinel/app/service/TripRecorder.kt
+++ b/app/src/main/java/com/rfsentinel/app/service/TripRecorder.kt
@@ -87,7 +87,11 @@ object TripRecorder {
id, pendingPoints.toList(), changed, distanceM, points.size,
devices.size, devices.values.count { it.flagged }
).also {
- pendingPoints.clear()
+ // Drop the live trace too: the process often outlives the scan (and a swiped-away
+ // app), and the live map would keep drawing the old route.
+ points.clear(); pendingPoints.clear()
+ devices.clear(); dirty.clear()
+ distanceM = 0.0
activeTripId = null
}
}
diff --git a/app/src/main/java/com/rfsentinel/app/settings/SettingsActivity.kt b/app/src/main/java/com/rfsentinel/app/settings/SettingsActivity.kt
index d1be310..ad6dd19 100644
--- a/app/src/main/java/com/rfsentinel/app/settings/SettingsActivity.kt
+++ b/app/src/main/java/com/rfsentinel/app/settings/SettingsActivity.kt
@@ -103,9 +103,8 @@ class SettingsActivity : AppCompatActivity() {
}.getOrNull().orEmpty()
chosen.map { a -> bonded.firstOrNull { it.address == a }?.let { runCatching { it.name }.getOrNull() } ?: a }
} else chosen.toList()
- binding.carDevicesText.text = if (names.isEmpty())
- "No car chosen yet. Android Auto also starts it when the app opens on the car screen."
- else "Car: " + names.joinToString() + ". Android Auto also starts it."
+ binding.carDevicesText.text = "Car: " + names.joinToString()
+ binding.carDevicesText.visibility = if (names.isEmpty()) View.GONE else View.VISIBLE
}
/** Ignored trackers (long-press a tracker > Ignore this tracker) and a paused follow warning. */
@@ -114,19 +113,20 @@ class SettingsActivity : AppCompatActivity() {
val until = Prefs.trackerFollowPausedUntil(this)
val paused = until > System.currentTimeMillis()
val parts = buildList {
- add(if (n == 0) "No ignored trackers (long-press a tracker to ignore your own tag)" else "$n ignored tracker${if (n == 1) "" else "s"}")
- if (paused) add("tracker follow warnings paused until " +
+ if (n > 0) add("$n ignored tracker${if (n == 1) "" else "s"}")
+ if (paused) add("follow warnings paused until " +
java.text.DateFormat.getTimeInstance(java.text.DateFormat.SHORT).format(java.util.Date(until)))
}
binding.trackerIgnoreText.text = parts.joinToString("; ")
+ binding.trackerIgnoreText.visibility = if (parts.isEmpty()) View.GONE else View.VISIBLE
binding.trackerIgnoreButton.visibility = if (n > 0 || paused) android.view.View.VISIBLE else android.view.View.GONE
}
/** Known cameras silenced from the map (tap a camera > Ignore alerts). */
private fun updateIgnoredCamerasText() {
val n = com.rfsentinel.app.alpr.IgnoredCameras.count(this)
- binding.ignoredCamerasText.text = if (n == 0) "No ignored cameras (tap a camera on the map to turn off its alerts)"
- else "$n camera${if (n == 1) "" else "s"} with alerts turned off (shown faded on the map)"
+ binding.ignoredCamerasText.text = "$n camera${if (n == 1) "" else "s"} with alerts turned off (faded on the map)"
+ binding.ignoredCamerasText.visibility = if (n > 0) View.VISIBLE else View.GONE
binding.ignoredCamerasButton.visibility = if (n > 0) android.view.View.VISIBLE else android.view.View.GONE
}
@@ -207,17 +207,12 @@ class SettingsActivity : AppCompatActivity() {
private fun updateEspStatus() {
val s = com.rfsentinel.app.esp.EspBoards.status
- binding.espStatusText.text = "ESP32 on USB (OUI-Spy, GhostESP or Marauder; also through a Flipper Zero; FREE-WiLi 2): " +
- s.ifBlank { "plug one in with an OTG cable while scanning to add its detections" }
- binding.usbWifiText.text = "USB WiFi adapter in monitor mode (RTL8811AU / 8821AU such as the ALFA AWUS036ACS, RTL8812BU / 8822BU, " +
- "RTL8814AU (AWUS1900), MT7612U (AWUS036ACM), RTL8187 (AWUS036H), RT3070 (AWUS036NH / NEH) or, experimental, AR9271 (AWUS036NHA)): " +
- com.rfsentinel.app.usb.UsbWifi.status.ifBlank { "plug one in with an OTG cable while scanning - longer range, and it hears devices connected to networks" } +
- "\nRTL-SDR dongle (two-way radio transmitting nearby, signal strength only): " +
- com.rfsentinel.app.sdr.SdrRadio.status.ifBlank { "plug one in while scanning" }
+ binding.espStatusText.text = s.ifBlank { "ESP32 board on USB: not connected" }
+ binding.usbWifiText.text = com.rfsentinel.app.usb.UsbWifi.status.ifBlank { "USB WiFi adapter: not connected" }
+ binding.sdrStatusText.text = com.rfsentinel.app.sdr.SdrRadio.status.ifBlank { "RTL-SDR: not connected" }
val board = Prefs.ouiSpyBoard(this)
- binding.ouiSpyText.text = if (board == null)
- "OUI-SPY over Bluetooth (App-Controlled firmware): not paired"
- else "OUI-SPY board $board: " + com.rfsentinel.app.esp.OuiSpyBle.status.ifBlank { "connects while scanning" }
+ binding.ouiSpyText.text = if (board == null) "OUI-SPY over Bluetooth: not paired"
+ else com.rfsentinel.app.esp.OuiSpyBle.status.ifBlank { "OUI-SPY $board: connects while scanning" }
binding.ouiSpyButton.text = if (board == null) "Pair OUI-SPY board (Bluetooth)" else "Change or forget OUI-SPY board"
}
@@ -268,6 +263,136 @@ class SettingsActivity : AppCompatActivity() {
.show()
}
+ /** A foldable settings section: its header, its content and what the ⓘ button explains. */
+ private class Section(val key: String, val header: android.widget.TextView, val body: View, val info: String)
+
+ private fun sections() = listOf(
+ Section("general", binding.headerGeneral, binding.sectionGeneral,
+ "Setup wizard: walks through the permissions and main choices again.\n\n" +
+ "Update check: asks GitHub at most every 6 hours and only speaks up when a new version is out.\n\n" +
+ "Discreet mode: hides details on the lock screen and in notifications.\n\n" +
+ "Screen: \"On while charging\" suits a car or a desk; \"Normal\" turns off like other apps."),
+ Section("appearance", binding.headerAppearance, binding.sectionAppearance,
+ "Banner image: shown above the animated header in the styled themes (Night Drive, Synthwave...); " +
+ "in DedSec and fsociety it replaces the poster. The image is copied privately into the app."),
+ Section("scanning", binding.headerScanning, binding.sectionScanning,
+ "Bluetooth intensity: Battery saver misses short broadcasts.\n\n" +
+ "WiFi interval: Android allows about one WiFi scan per 30 s unless \"Wi-Fi scan throttling\" " +
+ "is turned off in Developer options; then down to 5 s works, at some battery cost.\n\n" +
+ "Background scanning: lets the scan keep running with the screen off."),
+ Section("autostart", binding.headerAutoStart, binding.sectionAutoStart,
+ "When the phone starts: begins scanning after a reboot.\n\n" +
+ "In the car: starts scanning when the phone connects to your car's Bluetooth and stops when you leave. " +
+ "Android Auto also starts it when RF Sentinel opens on the car screen."),
+ Section("detect", binding.headerDetect, binding.sectionDetect,
+ "Each type of equipment can be turned on or off. Network / home cameras are off by default (many false alarms).\n\n" +
+ "GPS / satellite checks cover every system the phone hears: GPS, GLONASS, Galileo, BeiDou, QZSS and NavIC.\n\n" +
+ "Two-way radio needs an RTL-SDR dongle on USB.\n\n" +
+ "Watchlist presets are lists of vendor MAC prefixes:\n" +
+ "• Global: Axon, Flock, Zepcam, WatchGuard, Digital Ally, ShotSpotter, traffic cameras...\n" +
+ "• Canada: Axon, Cyberkar, Getac, Genetec, Motorola, ticket printers...\n" +
+ "• United States"),
+ 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" +
+ "Re-alert: how long before the same device can alert again."),
+ Section("voice", binding.headerVoice, binding.sectionVoice,
+ "Speaks each alert, for example while driving. Short alerts say just the type " +
+ "(\"Body cam\", \"Police car\", \"Speed camera, 50\")."),
+ Section("overlay", binding.headerOverlay, binding.sectionOverlay,
+ "Shown over other apps (Waze, Maps...) while scanning. Needs Android's \"Display over other apps\" permission.\n\n" +
+ "Mini map: the devices around you, like the app's map. Drag to move, pinch to zoom, " +
+ "corner handle to resize, tap to open the full map."),
+ Section("follow", binding.headerFollow, binding.sectionFollow,
+ "Warns when a tracker or flagged device keeps moving with you for at least the time and distance set here.\n\n" +
+ "Your own tag: long-press it in the list > Ignore this tracker."),
+ Section("cameras", binding.headerCameras, binding.sectionCameras,
+ "Plate-reader and speed / red-light camera positions come from OpenStreetMap.\n\n" +
+ "Show on the map: downloads the cameras of the area you look at (the Overpass server sees that area, like map tiles).\n\n" +
+ "Download around me: saves the cameras within the radius for offline use. Larger areas take longer and use more data.\n\n" +
+ "US & Canada: every plate reader in DeFlock's hourly OpenStreetMap snapshot " +
+ "(cdn.deflock.me sees only the download, not your position); refreshes weekly on Wi-Fi.\n\n" +
+ "To silence one camera: tap it on the map > Ignore alerts."),
+ Section("cell", binding.headerCell, binding.sectionCell,
+ "Tower change alerts are frequent while driving; most useful when parked.\n\n" +
+ "Turning off \"Allow 2G\" (Android 12+) is the strongest protection against fake towers: " +
+ "2G has no network authentication, which is what IMSI catchers exploit.\n\n" +
+ "Android 15+ (e.g. Pixel 8+) can itself warn you when a network asks for your SIM's identity or turns " +
+ "encryption off: Security & privacy > More security & privacy > Cellular security > Network notifications."),
+ Section("hardware", binding.headerHardware, binding.sectionHardware,
+ "Plug these in with an OTG cable while scanning:\n\n" +
+ "• ESP32 boards with OUI-Spy, GhostESP or Marauder firmware (also through a Flipper Zero), FREE-WiLi 2.\n\n" +
+ "• USB WiFi adapters in monitor mode: longer range, and they hear devices connected to networks. " +
+ "RTL8811AU / 8821AU (ALFA AWUS036ACS), RTL8812BU / 8822BU, RTL8814AU (AWUS1900), MT7612U (AWUS036ACM), " +
+ "RTL8187 (AWUS036H), RT3070 (AWUS036NH / NEH), AR9271 (AWUS036NHA, experimental).\n\n" +
+ "• RTL-SDR dongle: notices two-way radios transmitting nearby (signal strength only, nothing is decoded).\n\n" +
+ "OUI-SPY over Bluetooth needs its App-Controlled firmware. Relay mode passes on every network and device it hears " +
+ "so RF Sentinel's own lists check them (the board also sends standard Wi-Fi scan probes).\n\n" +
+ "Adapter not working? Export its log and send it to the developer."),
+ Section("location", binding.headerLocation, binding.sectionLocation,
+ "Traces: records your route while scanning, to view on the map.\n\n" +
+ "Saving the GPS position with matches is privacy-sensitive: the log then shows where you were."),
+ Section("data", binding.headerData, binding.sectionData,
+ "Everything stays on this phone. History older than the set number of days is deleted (0 keeps it forever).\n\n" +
+ "Forget device history: new / returning status, detect counts and the cell towers remembered for the " +
+ "fake-cell checks start over. Favorites are kept.\n\n" +
+ "Changes on this screen are saved automatically.")
+ )
+
+ /** Folds each section under a tappable header (remembered) with an ⓘ button for the details. */
+ private fun setupSections() {
+ val ui = getSharedPreferences("settings_sections", MODE_PRIVATE)
+ val defaultOpen = setOf("general", "detect", "alerts")
+ val dp = resources.displayMetrics.density
+ val ripple = android.util.TypedValue().also { theme.resolveAttribute(android.R.attr.selectableItemBackground, it, true) }.resourceId
+ val divider = androidx.core.graphics.ColorUtils.setAlphaComponent(
+ com.google.android.material.color.MaterialColors.getColor(binding.root, com.google.android.material.R.attr.colorOnSurface), 0x22)
+ sections().forEachIndexed { i, s ->
+ val parent = s.header.parent as android.widget.LinearLayout
+ val at = parent.indexOfChild(s.header)
+ parent.removeView(s.header)
+ val title = s.header.text.toString()
+ s.header.layoutParams = android.widget.LinearLayout.LayoutParams(0, android.widget.LinearLayout.LayoutParams.WRAP_CONTENT, 1f)
+ s.header.setPadding(0, (14 * dp).toInt(), 0, (14 * dp).toInt())
+ val info = android.widget.TextView(this).apply {
+ text = "ⓘ"
+ textSize = 20f
+ setTextColor(s.header.currentTextColor)
+ setPadding((14 * dp).toInt(), (8 * dp).toInt(), (6 * dp).toInt(), (8 * dp).toInt())
+ setBackgroundResource(ripple)
+ contentDescription = "About $title"
+ setOnClickListener {
+ AlertDialog.Builder(this@SettingsActivity).setTitle(title).setMessage(s.info)
+ .setPositiveButton("OK", null).show()
+ }
+ }
+ val row = android.widget.LinearLayout(this).apply {
+ orientation = android.widget.LinearLayout.HORIZONTAL
+ gravity = android.view.Gravity.CENTER_VERTICAL
+ setBackgroundResource(ripple)
+ addView(s.header)
+ addView(info)
+ }
+ parent.addView(row, at, android.widget.LinearLayout.LayoutParams(
+ android.widget.LinearLayout.LayoutParams.MATCH_PARENT, android.widget.LinearLayout.LayoutParams.WRAP_CONTENT))
+ if (i > 0) parent.addView(View(this).apply { setBackgroundColor(divider) }, at,
+ android.widget.LinearLayout.LayoutParams(android.widget.LinearLayout.LayoutParams.MATCH_PARENT, maxOf(1, dp.toInt())))
+ s.body.setPadding(0, 0, 0, (10 * dp).toInt())
+ var open = ui.getBoolean(s.key, s.key in defaultOpen)
+ fun show() {
+ s.body.visibility = if (open) View.VISIBLE else View.GONE
+ s.header.text = (if (open) "▾ " else "▸ ") + title
+ row.contentDescription = "$title, ${if (open) "expanded" else "collapsed"}"
+ }
+ show()
+ row.setOnClickListener {
+ open = !open
+ ui.edit().putBoolean(s.key, open).apply()
+ show()
+ }
+ }
+ }
+
private fun updateBannerButtons() {
binding.bannerClearButton.isEnabled = ThemeManager.hasBanner(this)
}
@@ -329,6 +454,7 @@ class SettingsActivity : AppCompatActivity() {
Toast.makeText(this, "Banner removed", Toast.LENGTH_SHORT).show()
}
updateBannerButtons()
+ setupSections()
// Scanning
binding.bleSwitch.isChecked = Prefs.bleEnabled(this)
@@ -386,7 +512,7 @@ class SettingsActivity : AppCompatActivity() {
categorySwitches[c] = sw
if (c == Category.TRACKER) {
airTagSwitch = SwitchMaterial(this).apply {
- text = "Exclude Apple AirTags (Find My tags) from Trackers"
+ text = "Exclude Apple AirTags"
isChecked = Prefs.excludeAirTags(this@SettingsActivity)
setPadding((24 * resources.displayMetrics.density).toInt(), 0, 0, 0)
isEnabled = sw.isChecked
@@ -481,9 +607,8 @@ class SettingsActivity : AppCompatActivity() {
binding.autoCamerasSwitch.isChecked = Prefs.autoCameras(this)
binding.autoUpdateSwitch.isChecked = Prefs.autoUpdateCheck(this)
fun showRadius(km: Int) {
- binding.cameraRadiusText.text = "Download radius: $km km" +
- if (km > 100) " (larger areas take longer and use more data)" else ""
- binding.prefetchCamerasButton.text = "Download cameras around me (~$km km)"
+ binding.cameraRadiusText.text = "Download radius: $km km"
+ binding.prefetchCamerasButton.text = "Download cameras around me"
}
Prefs.cameraRadiusKm(this).let { km -> binding.cameraRadiusSlider.value = km.toFloat(); showRadius(km) }
binding.cameraRadiusSlider.setLabelFormatter { "${it.toInt()} km" }
@@ -519,7 +644,7 @@ class SettingsActivity : AppCompatActivity() {
is com.rfsentinel.app.alpr.DeflockBulk.State.Failed -> s.reason
else -> if (last > 0) "Last downloaded " +
android.text.format.DateUtils.getRelativeTimeSpanString(last) + "; refreshes weekly on Wi-Fi."
- else "Every plate reader mapped in OpenStreetMap, from DeFlock's hourly snapshot (cdn.deflock.me sees only the download, not your position)."
+ else "From DeFlock's OpenStreetMap snapshot"
}
}
@@ -558,10 +683,9 @@ class SettingsActivity : AppCompatActivity() {
private fun updateWifiThrottleHint() {
val throttled = wifiScanThrottled()
binding.wifiThrottleText.text = if (throttled)
- "Android limits apps to 4 WiFi scans per 2 minutes, so values under 30 s are wasted. " +
- "To scan faster, turn off \"Wi-Fi scan throttling\" in Developer options."
+ "Android throttles WiFi scans: under 30 s is wasted unless you turn it off"
else
- "Wi-Fi scan throttling is off: intervals down to 5 s work, at some battery cost."
+ "Scan throttling is off: down to 5 s works"
binding.wifiThrottleButton.visibility = if (throttled) View.VISIBLE else View.GONE
}
diff --git a/app/src/main/java/com/rfsentinel/app/ui/CameraPrefetchText.kt b/app/src/main/java/com/rfsentinel/app/ui/CameraPrefetchText.kt
index 7a3557f..f6abb3e 100644
--- a/app/src/main/java/com/rfsentinel/app/ui/CameraPrefetchText.kt
+++ b/app/src/main/java/com/rfsentinel/app/ui/CameraPrefetchText.kt
@@ -4,7 +4,7 @@ import com.rfsentinel.app.alpr.CameraPrefetch
/** One line describing a camera pre-download, for the setup page and Settings. */
fun cameraPrefetchText(s: CameraPrefetch.State, located: Boolean): String = when (s) {
- CameraPrefetch.State.Idle -> if (located) "" else "Grant location access first (above)."
+ CameraPrefetch.State.Idle -> if (located) "" else "Needs the location permission first."
CameraPrefetch.State.Locating -> "Finding your position..."
is CameraPrefetch.State.Downloading ->
"Downloading... ${s.done}/${s.total} areas, ${s.found} cameras so far\n${s.detail}\n" +
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 a621686..7bd3d69 100644
--- a/app/src/main/java/com/rfsentinel/app/ui/MapActivity.kt
+++ b/app/src/main/java/com/rfsentinel/app/ui/MapActivity.kt
@@ -312,7 +312,8 @@ class MapActivity : AppCompatActivity() {
binding.recordButton.setTextColor(recordFg)
binding.recordButton.iconTint = android.content.res.ColorStateList.valueOf(recordFg)
- trace.setPoints(TripRecorder.livePoints().map { GeoPoint(it.lat, it.lon) })
+ // Only the trace being recorded right now; a stopped one is under Traces.
+ trace.setPoints(if (recording) TripRecorder.livePoints().map { GeoPoint(it.lat, it.lon) } else emptyList())
// Includes devices from a scan that just stopped: the registry drops them after 3 minutes.
val devices = DeviceRegistry.snapshot()
diff --git a/app/src/main/java/com/rfsentinel/app/util/CarMessages.kt b/app/src/main/java/com/rfsentinel/app/util/CarMessages.kt
new file mode 100644
index 0000000..1d81ac0
--- /dev/null
+++ b/app/src/main/java/com/rfsentinel/app/util/CarMessages.kt
@@ -0,0 +1,127 @@
+package com.rfsentinel.app.util
+
+import android.app.PendingIntent
+import android.content.Context
+import android.content.Intent
+import androidx.core.app.NotificationCompat
+import androidx.core.app.NotificationManagerCompat
+import androidx.core.app.Person
+import androidx.core.app.RemoteInput
+import androidx.core.content.ContextCompat
+import androidx.core.graphics.drawable.IconCompat
+import androidx.core.graphics.drawable.toBitmap
+import com.rfsentinel.app.MainActivity
+import com.rfsentinel.app.R
+import com.rfsentinel.app.receiver.CarMessageReceiver
+
+/**
+ * Alerts as an Android Auto messaging conversation while the phone is on Android Auto.
+ *
+ * A real car only runs Car App Library screens installed from a trusted store (Google
+ * Play, ONE store), but Android Auto's "Unknown sources" setting does cover messaging
+ * notifications. So the GitHub APK still gets every alert onto the car screen this way,
+ * and RF Sentinel shows in the car's launcher as a messaging app.
+ * developer.android.com/training/cars/communication/notification-messaging
+ */
+object CarMessages {
+ const val NOTIFICATION_ID = 3
+ private const val MAX_MESSAGES = 8
+
+ private data class Message(val text: String, val time: Long)
+
+ private val unread = ArrayDeque<Message>()
+
+ /** The device behind the latest alert, for a spoken "ignore" reply. */
+ @Volatile var lastMac: String? = null
+ private set
+
+ /** What a spoken reply asks for. */
+ enum class Command { MUTE, IGNORE, NONE }
+
+ internal fun command(reply: String?): Command {
+ val words = reply.orEmpty().lowercase().split(Regex("[^a-z]+")).toSet()
+ return when {
+ words.any { it in setOf("mute", "silence", "quiet", "snooze", "stop", "shut") } -> Command.MUTE
+ "ignore" in words -> Command.IGNORE
+ else -> Command.NONE
+ }
+ }
+
+ /** Adds an alert to the conversation and shows it on the car screen. */
+ @Synchronized
+ fun post(context: Context, text: String, mac: String? = null, now: Long = System.currentTimeMillis()) {
+ unread.addLast(Message(text, now))
+ while (unread.size > MAX_MESSAGES) unread.removeFirst()
+ if (mac != null) lastMac = mac
+ show(context.applicationContext)
+ }
+
+ /** Read on the car (or replied to): the conversation starts over. */
+ @Synchronized
+ fun clear(context: Context) {
+ unread.clear()
+ lastMac = null
+ NotificationManagerCompat.from(context).cancel(NOTIFICATION_ID)
+ }
+
+ private fun show(context: Context) {
+ val user = Person.Builder().setName("You").setKey("rfsentinel-user").build()
+ val sender = Person.Builder()
+ .setName("RF Sentinel")
+ .setKey("rfsentinel")
+ .setIcon(runCatching {
+ IconCompat.createWithBitmap(ContextCompat.getDrawable(context, R.mipmap.ic_launcher)!!.toBitmap(128, 128))
+ }.getOrNull())
+ .build()
+ val style = NotificationCompat.MessagingStyle(user)
+ .setConversationTitle("RF Sentinel")
+ .setGroupConversation(false)
+ unread.forEach { style.addMessage(it.text, it.time, sender) }
+
+ // Android Auto's rules: one RemoteInput, semantic actions, no UI, a mutable reply intent.
+ val reply = NotificationCompat.Action.Builder(
+ R.drawable.ic_car_volume_off, "Reply",
+ PendingIntent.getBroadcast(
+ context, 0,
+ Intent(context, CarMessageReceiver::class.java).setAction(CarMessageReceiver.ACTION_REPLY),
+ PendingIntent.FLAG_UPDATE_CURRENT or PendingIntent.FLAG_MUTABLE
+ )
+ )
+ .setSemanticAction(NotificationCompat.Action.SEMANTIC_ACTION_REPLY)
+ .setShowsUserInterface(false)
+ .addRemoteInput(RemoteInput.Builder(CarMessageReceiver.KEY_REPLY).setLabel("Say mute or ignore").build())
+ .build()
+ val markRead = NotificationCompat.Action.Builder(
+ R.drawable.ic_tile_scan, "Mark as read",
+ PendingIntent.getBroadcast(
+ context, 1,
+ Intent(context, CarMessageReceiver::class.java).setAction(CarMessageReceiver.ACTION_MARK_READ),
+ PendingIntent.FLAG_UPDATE_CURRENT or PendingIntent.FLAG_IMMUTABLE
+ )
+ )
+ .setSemanticAction(NotificationCompat.Action.SEMANTIC_ACTION_MARK_AS_READ)
+ .setShowsUserInterface(false)
+ .build()
+ val open = PendingIntent.getActivity(
+ context, NOTIFICATION_ID,
+ Intent(context, MainActivity::class.java).addFlags(Intent.FLAG_ACTIVITY_NEW_TASK),
+ PendingIntent.FLAG_UPDATE_CURRENT or PendingIntent.FLAG_IMMUTABLE
+ )
+ // The alerts channel has no sound or vibration: AlertPlayer plays the tone and voice.
+ val notification = NotificationCompat.Builder(context, NotificationHelper.CHANNEL_ALERTS)
+ .setSmallIcon(R.drawable.ic_tile_scan)
+ .setStyle(style)
+ .setCategory(NotificationCompat.CATEGORY_MESSAGE)
+ .setPriority(NotificationCompat.PRIORITY_HIGH)
+ .setContentIntent(open)
+ .setAutoCancel(true)
+ .addAction(reply)
+ .addInvisibleAction(markRead)
+ .build()
+ try {
+ NotificationManagerCompat.from(context).notify(NOTIFICATION_ID, notification)
+ } catch (e: SecurityException) {
+ // POST_NOTIFICATIONS denied - sound and voice still alert.
+ }
+ }
+}
diff --git a/app/src/main/java/com/rfsentinel/app/util/NotificationHelper.kt b/app/src/main/java/com/rfsentinel/app/util/NotificationHelper.kt
index c39ace5..8fbe383 100644
--- a/app/src/main/java/com/rfsentinel/app/util/NotificationHelper.kt
+++ b/app/src/main/java/com/rfsentinel/app/util/NotificationHelper.kt
@@ -8,6 +8,7 @@ import android.content.ComponentName
import android.content.Context
import android.content.Intent
import androidx.car.app.notification.CarAppExtender
+import androidx.car.app.notification.CarNotificationManager
import androidx.car.app.notification.CarPendingIntent
import androidx.core.app.NotificationCompat
import androidx.core.app.NotificationManagerCompat
@@ -144,8 +145,8 @@ object NotificationHelper {
lat: Double? = null, lon: Double? = null
) {
recordAlert(context, key, null, hit, null, false, lat, lon)
- val nm = context.getSystemService(NotificationManager::class.java)
val discreet = Prefs.discreetMode(context)
+ if (toCar(context, if (discreet) "New alert" else "${hit.label}. ${hit.evidence}", null)) return
val open = PendingIntent.getActivity(
context, key.hashCode(),
Intent(context, target).addFlags(Intent.FLAG_ACTIVITY_NEW_TASK),
@@ -174,7 +175,9 @@ object NotificationHelper {
.build()
)
try {
- nm.notify(ALERT_NOTIFICATION_ID_BASE + key.hashCode(), builder.build())
+ // Through CarNotificationManager: Android Auto shows CarAppExtender alerts only
+ // when they're posted this way (it also posts the normal phone notification).
+ CarNotificationManager.from(context).notify(ALERT_NOTIFICATION_ID_BASE + key.hashCode(), builder)
} catch (e: SecurityException) {
// POST_NOTIFICATIONS denied - sound and voice still alert.
}
@@ -198,6 +201,25 @@ object NotificationHelper {
}
}
+ /**
+ * On Android Auto the alert goes into the car's message conversation ([CarMessages])
+ * instead of a phone notification: that's what reaches a real car from the GitHub
+ * APK. Nothing is posted while alerts are muted. True when handled.
+ */
+ private fun toCar(context: Context, text: String, mac: String?): Boolean {
+ if (!com.rfsentinel.app.car.CarState.connected) return false
+ if (System.currentTimeMillis() >= Prefs.alertsSnoozedUntil(context)) CarMessages.post(context, text, mac)
+ return true
+ }
+
+ /** One spoken-friendly line, e.g. "Nearby: Axon body camera. Strong match, about 40 m, signal -58 dBm." */
+ internal fun carMessageText(title: String, hit: Hit, rssi: Int, distanceM: Double?): String =
+ "$title. " + listOfNotNull(
+ hit.tier.label.substringBefore(" -").replaceFirstChar { it.uppercase() } + " match",
+ distanceM?.let { "about " + com.rfsentinel.app.detect.DeviceIntel.formatDistance(it).removePrefix("~") },
+ "signal $rssi dBm"
+ ).joinToString(", ") + "."
+
/** Posts the match notification; sound/vibration/voice are played by the caller. */
/**
* The car heads-up's line, readable at a glance: what it is, how sure, about how far,
@@ -216,7 +238,6 @@ object NotificationHelper {
// A drone with a Remote ID position is logged where it is; anything else where you were.
val rid = com.rfsentinel.app.service.DeviceRegistry.get(mac)?.remoteId?.takeIf { it.hasPosition }
recordAlert(context, mac, mac, hit, rssi, following, rid?.latitude, rid?.longitude)
- val nm = context.getSystemService(NotificationManager::class.java)
val discreet = Prefs.discreetMode(context)
val detail = PendingIntent.getActivity(
context, mac.hashCode(),
@@ -230,6 +251,7 @@ object NotificationHelper {
else -> "Nearby: ${hit.label}"
}
val snap = com.rfsentinel.app.service.DeviceRegistry.get(mac)
+ if (toCar(context, if (discreet) "New alert" else carMessageText(title, hit, rssi, snap?.distanceM), mac)) return
val others = com.rfsentinel.app.service.DeviceRegistry.snapshot()
.count { it.mac != mac && com.rfsentinel.app.ui.DeviceColors.isFlagged(it) }
val text = "${hit.category.title} · ${hit.tier.label} (${hit.confidence}%) · $rssi dBm" +
@@ -280,7 +302,7 @@ object NotificationHelper {
.build()
)
try {
- nm.notify(ALERT_NOTIFICATION_ID_BASE + mac.hashCode(), builder.build())
+ CarNotificationManager.from(context).notify(ALERT_NOTIFICATION_ID_BASE + mac.hashCode(), builder)
} catch (e: SecurityException) {
// POST_NOTIFICATIONS denied - the in-app list and sound still alert.
}
diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml
index 1009380..765d106 100644
--- a/app/src/main/res/layout/activity_main.xml
+++ b/app/src/main/res/layout/activity_main.xml
@@ -129,7 +129,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
- android:contentDescription="Tools: cell towers, WiFi channels and WiFi spectrum"
+ android:contentDescription="Tools: cell towers, WiFi channels, WiFi spectrum and satellites"
android:minWidth="56dp"
android:minHeight="52dp"
app:icon="@drawable/ic_tools"
diff --git a/app/src/main/res/layout/activity_settings.xml b/app/src/main/res/layout/activity_settings.xml
index da1cd40..98deb7d 100644
--- a/app/src/main/res/layout/activity_settings.xml
+++ b/app/src/main/res/layout/activity_settings.xml
@@ -1,4 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
+<!-- Settings, in foldable sections (header + section; SettingsActivity folds them and adds the ⓘ details). -->
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
@@ -9,595 +10,564 @@
android:orientation="vertical"
android:padding="16dp">
- <Button
- android:id="@+id/runSetupButton"
- style="@style/Widget.MaterialComponents.Button.OutlinedButton"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="Run the setup wizard again" />
+ <!-- ================= General ================= -->
+ <TextView android:id="@+id/headerGeneral" style="@style/SettingsHeader" android:paddingTop="4dp" android:text="General" />
+ <LinearLayout android:id="@+id/sectionGeneral" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical">
- <com.google.android.material.switchmaterial.SwitchMaterial
- android:id="@+id/autoUpdateSwitch"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="8dp"
- android:text="Check for updates when the app opens (asks GitHub at most every 6 hours; says something only when a new version is out)" />
+ <Button
+ android:id="@+id/runSetupButton"
+ style="@style/Widget.MaterialComponents.Button.OutlinedButton"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="Run the setup wizard again" />
+
+ <com.google.android.material.switchmaterial.SwitchMaterial
+ android:id="@+id/autoUpdateSwitch"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="Check for updates on app open" />
+
+ <com.google.android.material.switchmaterial.SwitchMaterial
+ android:id="@+id/discreetSwitch"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="Discreet mode" />
+
+ <TextView style="@style/SettingsLabel" android:text="Screen while the app is open" />
+
+ <RadioGroup
+ android:id="@+id/screenModeGroup"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content">
+
+ <RadioButton android:id="@+id/screenAlwaysOn" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="Always on" />
+ <RadioButton android:id="@+id/screenOnCharging" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="On while charging" />
+ <RadioButton android:id="@+id/screenNormal" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="Normal" />
+ </RadioGroup>
+ </LinearLayout>
<!-- ================= Appearance ================= -->
- <TextView style="@style/SettingsHeader" android:text="Appearance" />
+ <TextView android:id="@+id/headerAppearance" style="@style/SettingsHeader" android:text="Appearance" />
+ <LinearLayout android:id="@+id/sectionAppearance" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical">
- <RadioGroup
- android:id="@+id/themeGroup"
- android:layout_width="match_parent"
- android:layout_height="wrap_content" />
+ <RadioGroup
+ android:id="@+id/themeGroup"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content" />
+
+ <TextView android:id="@+id/bannerLabel" style="@style/SettingsLabel" android:text="Banner image" />
- <TextView
- style="@style/SettingsLabel"
- android:text="Banner image - shown above the animated header in the styled themes (Night Drive, Synthwave...); in DedSec and fsociety it replaces the poster. Pick any image on your phone (for example a logo you have); it&apos;s copied privately into the app." />
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="horizontal">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal">
+ <Button
+ android:id="@+id/bannerPickButton"
+ style="@style/Widget.MaterialComponents.Button.OutlinedButton"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_marginEnd="4dp"
+ android:layout_weight="1"
+ android:text="Choose image" />
+
+ <Button
+ android:id="@+id/bannerClearButton"
+ style="@style/Widget.MaterialComponents.Button.TextButton"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:text="Remove image" />
+ </LinearLayout>
+ </LinearLayout>
+
+ <!-- ================= Scanning ================= -->
+ <TextView android:id="@+id/headerScanning" style="@style/SettingsHeader" android:text="Scanning" />
+ <LinearLayout android:id="@+id/sectionScanning" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical">
+
+ <com.google.android.material.switchmaterial.SwitchMaterial
+ android:id="@+id/bleSwitch"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="Bluetooth scanning" />
+
+ <com.google.android.material.switchmaterial.SwitchMaterial
+ android:id="@+id/wifiSwitch"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="WiFi scanning" />
+
+ <TextView style="@style/SettingsLabel" android:text="Bluetooth scan intensity" />
+
+ <RadioGroup
+ android:id="@+id/scanModeGroup"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content">
+
+ <RadioButton android:id="@+id/scanModeLowLatency" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="Maximum (most battery)" />
+ <RadioButton android:id="@+id/scanModeBalanced" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="Balanced" />
+ <RadioButton android:id="@+id/scanModeLowPower" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="Battery saver" />
+ </RadioGroup>
+
+ <TextView android:id="@+id/intervalLabel" style="@style/SettingsLabel" android:text="WiFi scan interval (seconds)" />
+
+ <EditText
+ android:id="@+id/intervalInput"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:hint="30"
+ android:importantForAutofill="no"
+ android:inputType="number" />
+
+ <TextView
+ android:id="@+id/wifiThrottleText"
+ style="@style/SettingsLabel"
+ android:paddingTop="2dp"
+ android:textSize="12sp" />
<Button
- android:id="@+id/bannerPickButton"
- style="@style/Widget.MaterialComponents.Button.OutlinedButton"
- android:layout_width="0dp"
+ android:id="@+id/wifiThrottleButton"
+ style="@style/Widget.MaterialComponents.Button.TextButton"
+ android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_marginEnd="4dp"
- android:layout_weight="1"
- android:text="Choose image" />
+ android:text="Open Developer options" />
<Button
- android:id="@+id/bannerClearButton"
+ android:id="@+id/batteryButton"
style="@style/Widget.MaterialComponents.Button.TextButton"
- android:layout_width="0dp"
+ android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_weight="1"
- android:text="Remove image" />
+ android:text="Allow background scanning" />
</LinearLayout>
- <!-- ================= Scanning ================= -->
- <TextView style="@style/SettingsHeader" android:text="Scanning" />
-
- <com.google.android.material.switchmaterial.SwitchMaterial
- android:id="@+id/bleSwitch"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="Bluetooth LE scanning" />
-
- <com.google.android.material.switchmaterial.SwitchMaterial
- android:id="@+id/wifiSwitch"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="WiFi access-point scanning" />
-
- <TextView style="@style/SettingsLabel" android:text="Bluetooth scan intensity" />
-
- <RadioGroup
- android:id="@+id/scanModeGroup"
- android:layout_width="match_parent"
- android:layout_height="wrap_content">
-
- <RadioButton
- android:id="@+id/scanModeLowLatency"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="Maximum detection (most battery)" />
-
- <RadioButton
- android:id="@+id/scanModeBalanced"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="Balanced" />
-
- <RadioButton
- android:id="@+id/scanModeLowPower"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="Battery saver (misses short broadcasts)" />
- </RadioGroup>
-
- <TextView style="@style/SettingsLabel" android:text="WiFi scan interval (seconds, Android allows about one scan per 30 s)" />
-
- <EditText
- android:id="@+id/intervalInput"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:hint="30"
- android:importantForAutofill="no"
- android:inputType="number" />
-
- <TextView
- android:id="@+id/wifiThrottleText"
- style="@style/SettingsLabel"
- android:paddingTop="2dp"
- android:textSize="12sp" />
-
- <Button
- android:id="@+id/wifiThrottleButton"
- style="@style/Widget.MaterialComponents.Button.TextButton"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Open Developer options" />
-
- <com.google.android.material.switchmaterial.SwitchMaterial
- android:id="@+id/carAutoSwitch"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="Start scanning automatically in the car (and stop when you leave)" />
-
- <TextView
- android:id="@+id/carDevicesText"
- style="@style/SettingsLabel"
- android:paddingTop="2dp"
- android:textSize="12sp" />
-
- <Button
- android:id="@+id/carDevicesButton"
- style="@style/Widget.MaterialComponents.Button.TextButton"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Choose your car's Bluetooth" />
-
- <com.google.android.material.switchmaterial.SwitchMaterial
- android:id="@+id/bootSwitch"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="Auto-start scanning when the phone boots" />
-
- <Button
- android:id="@+id/batteryButton"
- style="@style/Widget.MaterialComponents.Button.TextButton"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Battery settings: allow background scanning" />
-
- <!-- ================= Detection ================= -->
- <TextView style="@style/SettingsHeader" android:text="What to detect" />
-
- <LinearLayout
- android:id="@+id/categoryContainer"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical" />
-
- <TextView
- style="@style/SettingsLabel"
- android:text="Strongest protection against fake cell towers: turn off &quot;Allow 2G&quot; in your SIM settings (Android 12+). 2G has no network authentication, which is what IMSI catchers exploit." />
-
- <Button
- android:id="@+id/disable2gButton"
- style="@style/Widget.MaterialComponents.Button.TextButton"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Open SIM settings" />
-
- <!-- Android 15+ phones can watch the signalling an app can't see (like EFF's Rayhunter). -->
- <TextView
- style="@style/SettingsLabel"
- android:text="Android 15 and later (e.g. Pixel 8+) can also warn you themselves when a network asks for your SIM's identity or turns encryption off - signalling apps can't see. Turn on &quot;Network notifications&quot; under Security &amp; privacy &gt; More security &amp; privacy &gt; Cellular security." />
-
- <com.google.android.material.switchmaterial.SwitchMaterial
- android:id="@+id/cellChangeSwitch"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="Alert when the serving cell tower changes (frequent while driving; useful when parked)" />
-
- <Button
- android:id="@+id/cellSecurityButton"
- style="@style/Widget.MaterialComponents.Button.TextButton"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Open cellular security settings" />
-
- <TextView style="@style/SettingsLabel" android:text="Watchlist presets (MAC prefixes)" />
-
- <CheckBox
- android:id="@+id/presetGlobal"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="Global (Axon, Flock, Zepcam, WatchGuard, Digital Ally, ShotSpotter, traffic cameras...)" />
-
- <CheckBox
- android:id="@+id/presetCanada"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="Canada (Axon, Cyberkar, Getac, Genetec, Motorola, ticket printers...)" />
- <CheckBox
- android:id="@+id/presetUs"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="United States" />
+ <!-- ================= Auto-start ================= -->
+ <TextView android:id="@+id/headerAutoStart" style="@style/SettingsHeader" android:text="Auto-start" />
+ <LinearLayout android:id="@+id/sectionAutoStart" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical">
+
+ <com.google.android.material.switchmaterial.SwitchMaterial
+ android:id="@+id/bootSwitch"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="When the phone starts" />
+
+ <com.google.android.material.switchmaterial.SwitchMaterial
+ android:id="@+id/carAutoSwitch"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="In the car" />
+
+ <TextView
+ android:id="@+id/carDevicesText"
+ style="@style/SettingsLabel"
+ android:paddingTop="2dp"
+ android:textSize="12sp" />
+
+ <Button
+ android:id="@+id/carDevicesButton"
+ style="@style/Widget.MaterialComponents.Button.TextButton"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="Choose your car's Bluetooth" />
+ </LinearLayout>
+
+ <!-- ================= What to detect ================= -->
+ <TextView android:id="@+id/headerDetect" style="@style/SettingsHeader" android:text="What to detect" />
+ <LinearLayout android:id="@+id/sectionDetect" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical">
+
+ <LinearLayout
+ android:id="@+id/categoryContainer"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="vertical" />
+
+ <TextView android:id="@+id/presetLabel" style="@style/SettingsLabel" android:text="Watchlist presets" />
+
+ <CheckBox android:id="@+id/presetGlobal" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="Global" />
+ <CheckBox android:id="@+id/presetCanada" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="Canada" />
+ <CheckBox android:id="@+id/presetUs" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="United States" />
+ </LinearLayout>
<!-- ================= Alerts ================= -->
- <TextView style="@style/SettingsHeader" android:text="Alerts" />
+ <TextView android:id="@+id/headerAlerts" style="@style/SettingsHeader" android:text="Alerts" />
+ <LinearLayout android:id="@+id/sectionAlerts" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical">
+
+ <TextView style="@style/SettingsLabel" android:text="Alert for matches that are at least" />
- <TextView style="@style/SettingsLabel" android:text="Sound an alert for matches that are at least..." />
+ <RadioGroup
+ android:id="@+id/thresholdGroup"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content">
- <RadioGroup
- android:id="@+id/thresholdGroup"
- android:layout_width="match_parent"
- android:layout_height="wrap_content">
+ <RadioButton android:id="@+id/thresholdWeak" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="Weak (more false alarms)" />
+ <RadioButton android:id="@+id/thresholdMedium" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="Probable (recommended)" />
+ <RadioButton android:id="@+id/thresholdStrong" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="Strong only" />
+ </RadioGroup>
- <RadioButton
- android:id="@+id/thresholdWeak"
+ <com.google.android.material.switchmaterial.SwitchMaterial
+ android:id="@+id/soundSwitch"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:text="Weak (every match - more false alarms)" />
+ android:text="Alert sound" />
- <RadioButton
- android:id="@+id/thresholdMedium"
+ <com.google.android.material.switchmaterial.SwitchMaterial
+ android:id="@+id/vibrateSwitch"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:text="Probable (recommended)" />
+ android:text="Vibration" />
+
+ <TextView style="@style/SettingsLabel" android:text="Re-alert the same device after (minutes)" />
- <RadioButton
- android:id="@+id/thresholdStrong"
+ <EditText
+ android:id="@+id/dedupeInput"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:text="Strong only" />
- </RadioGroup>
+ android:hint="5"
+ android:importantForAutofill="no"
+ android:inputType="number" />
+ </LinearLayout>
- <com.google.android.material.switchmaterial.SwitchMaterial
- android:id="@+id/soundSwitch"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="Alert sound" />
+ <!-- ================= Voice ================= -->
+ <TextView android:id="@+id/headerVoice" style="@style/SettingsHeader" android:text="Voice" />
+ <LinearLayout android:id="@+id/sectionVoice" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical">
- <com.google.android.material.switchmaterial.SwitchMaterial
- android:id="@+id/vibrateSwitch"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="Vibration (1 pulse weak, 2 probable, 3 strong)" />
+ <com.google.android.material.switchmaterial.SwitchMaterial
+ android:id="@+id/voiceSwitch"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="Spoken alerts" />
+
+ <com.google.android.material.switchmaterial.SwitchMaterial
+ android:id="@+id/shortVoiceSwitch"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="Short spoken alerts" />
- <com.google.android.material.switchmaterial.SwitchMaterial
- android:id="@+id/voiceSwitch"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="Spoken alerts (e.g. while driving)" />
+ <TextView style="@style/SettingsLabel" android:text="Voice speed" />
- <com.google.android.material.switchmaterial.SwitchMaterial
- android:id="@+id/shortVoiceSwitch"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="Short spoken alerts (&quot;Body cam&quot;, &quot;Police car&quot;, &quot;Speed camera, 50&quot;)" />
+ <RadioGroup
+ android:id="@+id/voiceRateGroup"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="horizontal">
- <TextView style="@style/SettingsLabel" android:text="Voice speed" />
+ <RadioButton android:id="@+id/voiceRateSlow" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Slow" />
+ <RadioButton android:id="@+id/voiceRateNormal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Normal" />
+ <RadioButton android:id="@+id/voiceRateFast" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Fast" />
+ </RadioGroup>
- <RadioGroup
- android:id="@+id/voiceRateGroup"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal">
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="horizontal">
- <RadioButton
- android:id="@+id/voiceRateSlow"
- android:layout_width="wrap_content"
+ <Button
+ android:id="@+id/voicePickButton"
+ style="@style/Widget.MaterialComponents.Button.TextButton"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="Choose voice" />
+
+ <Button
+ android:id="@+id/voiceTestButton"
+ style="@style/Widget.MaterialComponents.Button.TextButton"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="Test voice" />
+ </LinearLayout>
+
+ <TextView
+ android:id="@+id/voiceText"
+ style="@style/SettingsLabel"
+ android:paddingTop="0dp"
+ android:textSize="12sp" />
+ </LinearLayout>
+
+ <!-- ================= Over other apps ================= -->
+ <TextView android:id="@+id/headerOverlay" style="@style/SettingsHeader" android:text="Over other apps" />
+ <LinearLayout android:id="@+id/sectionOverlay" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical">
+
+ <com.google.android.material.switchmaterial.SwitchMaterial
+ android:id="@+id/bubbleSwitch"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="Floating threat bubble" />
+
+ <com.google.android.material.switchmaterial.SwitchMaterial
+ android:id="@+id/floatingMapSwitch"
+ android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:text="Slow" />
+ android:text="Floating mini map" />
+ </LinearLayout>
+
+ <!-- ================= Trackers & followers ================= -->
+ <TextView android:id="@+id/headerFollow" style="@style/SettingsHeader" android:text="Trackers &amp; followers" />
+ <LinearLayout android:id="@+id/sectionFollow" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical">
+
+ <com.google.android.material.switchmaterial.SwitchMaterial
+ android:id="@+id/followSwitch"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="Warn when a device moves with me" />
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="horizontal">
+
+ <LinearLayout
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_marginEnd="8dp"
+ android:layout_weight="1"
+ android:orientation="vertical">
+
+ <TextView style="@style/SettingsLabel" android:text="For at least (minutes)" />
+
+ <EditText
+ android:id="@+id/followMinutesInput"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:importantForAutofill="no"
+ android:inputType="number" />
+ </LinearLayout>
+
+ <LinearLayout
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:orientation="vertical">
+
+ <TextView style="@style/SettingsLabel" android:text="Over (metres)" />
+
+ <EditText
+ android:id="@+id/followMetersInput"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:importantForAutofill="no"
+ android:inputType="number" />
+ </LinearLayout>
+ </LinearLayout>
+
+ <TextView
+ android:id="@+id/trackerIgnoreText"
+ style="@style/SettingsLabel"
+ android:paddingTop="4dp"
+ android:textSize="12sp" />
- <RadioButton
- android:id="@+id/voiceRateNormal"
+ <Button
+ android:id="@+id/trackerIgnoreButton"
+ style="@style/Widget.MaterialComponents.Button.TextButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:text="Normal" />
+ android:text="Clear ignored trackers" />
+ </LinearLayout>
+
+ <!-- ================= Known cameras ================= -->
+ <TextView android:id="@+id/headerCameras" style="@style/SettingsHeader" android:text="Known cameras" />
+ <LinearLayout android:id="@+id/sectionCameras" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical">
+
+ <com.google.android.material.switchmaterial.SwitchMaterial
+ android:id="@+id/knownAlprSwitch"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="Warn before plate-reader cameras" />
+
+ <com.google.android.material.switchmaterial.SwitchMaterial
+ android:id="@+id/speedCameraSwitch"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="Warn before speed / red-light cameras" />
- <RadioButton
- android:id="@+id/voiceRateFast"
+ <com.google.android.material.switchmaterial.SwitchMaterial
+ android:id="@+id/autoCamerasSwitch"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="Show known cameras on the map" />
+
+ <!-- Radius of "download the cameras around me" (also the setup wizard and the map menu). -->
+ <TextView
+ android:id="@+id/cameraRadiusText"
+ style="@style/SettingsLabel"
+ android:text="Download radius: 100 km" />
+
+ <com.google.android.material.slider.Slider
+ android:id="@+id/cameraRadiusSlider"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:contentDescription="Camera download radius in kilometres"
+ android:stepSize="10"
+ android:value="100"
+ android:valueFrom="10"
+ android:valueTo="200" />
+
+ <Button
+ android:id="@+id/prefetchCamerasButton"
+ style="@style/Widget.MaterialComponents.Button.TextButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:text="Fast" />
- </RadioGroup>
+ android:text="Download cameras around me" />
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal">
+ <TextView
+ android:id="@+id/prefetchCamerasText"
+ style="@style/SettingsLabel"
+ android:paddingTop="0dp"
+ android:textSize="12sp" />
<Button
- android:id="@+id/voicePickButton"
+ android:id="@+id/deflockButton"
style="@style/Widget.MaterialComponents.Button.TextButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:text="Choose voice" />
+ android:text="US &amp; Canada plate cameras (18 MB)" />
+
+ <TextView
+ android:id="@+id/deflockText"
+ style="@style/SettingsLabel"
+ android:paddingTop="0dp"
+ android:textSize="12sp" />
+
+ <!-- Cameras silenced from the map (tap a camera > Ignore alerts). -->
+ <TextView
+ android:id="@+id/ignoredCamerasText"
+ style="@style/SettingsLabel"
+ android:paddingTop="4dp"
+ android:textSize="12sp" />
<Button
- android:id="@+id/voiceTestButton"
+ android:id="@+id/ignoredCamerasButton"
style="@style/Widget.MaterialComponents.Button.TextButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:text="Test voice" />
+ android:text="Alert for all ignored cameras again" />
</LinearLayout>
- <TextView
- android:id="@+id/voiceText"
- style="@style/SettingsLabel"
- android:paddingTop="0dp"
- android:textSize="12sp" />
-
- <com.google.android.material.switchmaterial.SwitchMaterial
- android:id="@+id/bubbleSwitch"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="Floating threat bubble over other apps (e.g. Waze, Maps) while scanning" />
-
- <com.google.android.material.switchmaterial.SwitchMaterial
- android:id="@+id/floatingMapSwitch"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="Floating mini map over other apps while scanning: the devices around you, like the app's map (drag to move, pinch to zoom, corner handle to resize, tap to open the full map)" />
-
- <com.google.android.material.switchmaterial.SwitchMaterial
- android:id="@+id/discreetSwitch"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="Discreet mode (hide details on the lock screen and in notifications)" />
-
- <TextView style="@style/SettingsLabel" android:text="Re-alert cooldown per device (minutes)" />
-
- <EditText
- android:id="@+id/dedupeInput"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:hint="5"
- android:importantForAutofill="no"
- android:inputType="number" />
-
- <!-- ================= Location ================= -->
- <TextView style="@style/SettingsHeader" android:text="Location" />
-
- <com.google.android.material.switchmaterial.SwitchMaterial
- android:id="@+id/followSwitch"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="Warn when a tracker or flagged device keeps moving with me" />
-
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal">
+ <!-- ================= Cell network ================= -->
+ <TextView android:id="@+id/headerCell" style="@style/SettingsHeader" android:text="Cell network" />
+ <LinearLayout android:id="@+id/sectionCell" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical">
- <LinearLayout
- android:layout_width="0dp"
+ <com.google.android.material.switchmaterial.SwitchMaterial
+ android:id="@+id/cellChangeSwitch"
+ android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_marginEnd="8dp"
- android:layout_weight="1"
- android:orientation="vertical">
+ android:text="Alert when the cell tower changes" />
- <TextView style="@style/SettingsLabel" android:text="For at least (minutes)" />
+ <TextView android:id="@+id/disable2gLabel" style="@style/SettingsLabel" android:text="Turn off 2G: best protection against fake towers" />
- <EditText
- android:id="@+id/followMinutesInput"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:importantForAutofill="no"
- android:inputType="number" />
- </LinearLayout>
+ <Button
+ android:id="@+id/disable2gButton"
+ style="@style/Widget.MaterialComponents.Button.TextButton"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="Open SIM settings" />
- <LinearLayout
- android:layout_width="0dp"
+ <TextView android:id="@+id/cellSecurityLabel" style="@style/SettingsLabel" android:text="Android 15+: network security alerts" />
+
+ <Button
+ android:id="@+id/cellSecurityButton"
+ style="@style/Widget.MaterialComponents.Button.TextButton"
+ android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_weight="1"
- android:orientation="vertical">
+ android:text="Open cellular security settings" />
+ </LinearLayout>
- <TextView style="@style/SettingsLabel" android:text="While I moved (metres)" />
+ <!-- ================= External hardware ================= -->
+ <TextView android:id="@+id/headerHardware" style="@style/SettingsHeader" android:text="External hardware" />
+ <LinearLayout android:id="@+id/sectionHardware" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical">
- <EditText
- android:id="@+id/followMetersInput"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:importantForAutofill="no"
- android:inputType="number" />
- </LinearLayout>
+ <TextView
+ android:id="@+id/espStatusText"
+ style="@style/SettingsLabel"
+ android:paddingTop="6dp" />
+
+ <TextView
+ android:id="@+id/usbWifiText"
+ style="@style/SettingsLabel"
+ android:paddingTop="6dp" />
+
+ <Button
+ android:id="@+id/usbWifiLogButton"
+ style="@style/Widget.MaterialComponents.Button.TextButton"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="Export USB adapter log" />
+
+ <TextView
+ android:id="@+id/sdrStatusText"
+ style="@style/SettingsLabel"
+ android:paddingTop="6dp" />
+
+ <TextView
+ android:id="@+id/ouiSpyText"
+ style="@style/SettingsLabel"
+ android:paddingTop="6dp" />
+
+ <Button
+ android:id="@+id/ouiSpyButton"
+ style="@style/Widget.MaterialComponents.Button.TextButton"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="Pair OUI-SPY board (Bluetooth)" />
+
+ <com.google.android.material.switchmaterial.SwitchMaterial
+ android:id="@+id/ouiSpyRelaySwitch"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="OUI-SPY: relay everything it hears" />
</LinearLayout>
- <TextView
- android:id="@+id/trackerIgnoreText"
- style="@style/SettingsLabel"
- android:paddingTop="4dp"
- android:textSize="12sp" />
-
- <Button
- android:id="@+id/trackerIgnoreButton"
- style="@style/Widget.MaterialComponents.Button.TextButton"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Clear ignored trackers" />
-
- <com.google.android.material.switchmaterial.SwitchMaterial
- android:id="@+id/knownAlprSwitch"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="Warn when approaching a known plate-reader camera (download them on the map: menu, Download nearby cameras)" />
-
- <com.google.android.material.switchmaterial.SwitchMaterial
- android:id="@+id/autoCamerasSwitch"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="Show known cameras automatically: download them from OpenStreetMap for the map area you look at (the Overpass server sees that area, like map tiles)" />
-
- <!-- Radius of "download the cameras around me" (also the setup wizard and the map menu). -->
- <TextView
- android:id="@+id/cameraRadiusText"
- style="@style/SettingsLabel"
- android:text="Download radius: 100 km" />
-
- <com.google.android.material.slider.Slider
- android:id="@+id/cameraRadiusSlider"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:contentDescription="Camera download radius in kilometres"
- android:stepSize="10"
- android:value="100"
- android:valueFrom="10"
- android:valueTo="200" />
-
- <Button
- android:id="@+id/prefetchCamerasButton"
- style="@style/Widget.MaterialComponents.Button.TextButton"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Download cameras around me (~100 km)" />
-
- <TextView
- android:id="@+id/prefetchCamerasText"
- style="@style/SettingsLabel"
- android:paddingTop="0dp"
- android:textSize="12sp" />
-
- <!-- Cameras silenced from the map (tap a camera > Ignore alerts). -->
- <TextView
- android:id="@+id/ignoredCamerasText"
- style="@style/SettingsLabel"
- android:paddingTop="4dp"
- android:textSize="12sp" />
-
- <Button
- android:id="@+id/ignoredCamerasButton"
- style="@style/Widget.MaterialComponents.Button.TextButton"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Alert for all ignored cameras again" />
-
- <Button
- android:id="@+id/deflockButton"
- style="@style/Widget.MaterialComponents.Button.TextButton"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Download all plate cameras: US &amp; Canada (~18 MB)" />
-
- <TextView
- android:id="@+id/deflockText"
- style="@style/SettingsLabel"
- android:paddingTop="0dp"
- android:textSize="12sp" />
-
- <com.google.android.material.switchmaterial.SwitchMaterial
- android:id="@+id/speedCameraSwitch"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="Warn when approaching a known speed or red-light camera (same download)" />
-
- <TextView
- android:id="@+id/espStatusText"
- style="@style/SettingsLabel"
- android:paddingTop="6dp"
- android:textSize="12sp" />
-
- <TextView
- android:id="@+id/usbWifiText"
- style="@style/SettingsLabel"
- android:paddingTop="6dp"
- android:textSize="12sp" />
-
- <Button
- android:id="@+id/usbWifiLogButton"
- style="@style/Widget.MaterialComponents.Button.TextButton"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Export USB WiFi adapter log" />
-
- <TextView
- android:id="@+id/ouiSpyText"
- style="@style/SettingsLabel"
- android:paddingTop="6dp"
- android:textSize="12sp" />
-
- <Button
- android:id="@+id/ouiSpyButton"
- style="@style/Widget.MaterialComponents.Button.TextButton"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Pair OUI-SPY board (Bluetooth)" />
-
- <com.google.android.material.switchmaterial.SwitchMaterial
- android:id="@+id/ouiSpyRelaySwitch"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="OUI-SPY: relay every network and Bluetooth device it hears, so RF Sentinel's own lists check them (the board also sends standard Wi-Fi scan probes)" />
-
- <TextView
- style="@style/SettingsLabel"
- android:text="Screen while RF Sentinel is open" />
-
- <RadioGroup
- android:id="@+id/screenModeGroup"
- android:layout_width="match_parent"
- android:layout_height="wrap_content">
-
- <RadioButton
- android:id="@+id/screenAlwaysOn"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="Always on" />
-
- <RadioButton
- android:id="@+id/screenOnCharging"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="On while charging (car, desk)" />
-
- <RadioButton
- android:id="@+id/screenNormal"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="Normal (turns off like other apps)" />
- </RadioGroup>
-
- <com.google.android.material.switchmaterial.SwitchMaterial
- android:id="@+id/autoRecordSwitch"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="Record a GPS trace automatically whenever scanning starts" />
-
- <com.google.android.material.switchmaterial.SwitchMaterial
- android:id="@+id/gpsSwitch"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="Save GPS position with logged matches (privacy-sensitive)" />
+ <!-- ================= Location & traces ================= -->
+ <TextView android:id="@+id/headerLocation" style="@style/SettingsHeader" android:text="Location &amp; traces" />
+ <LinearLayout android:id="@+id/sectionLocation" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical">
+
+ <com.google.android.material.switchmaterial.SwitchMaterial
+ android:id="@+id/autoRecordSwitch"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="Record a trace whenever scanning starts" />
+
+ <com.google.android.material.switchmaterial.SwitchMaterial
+ android:id="@+id/gpsSwitch"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="Save GPS position with matches" />
+ </LinearLayout>
<!-- ================= Data ================= -->
- <TextView style="@style/SettingsHeader" android:text="Data (stays on this phone)" />
-
- <TextView style="@style/SettingsLabel" android:text="Keep match log and device history for (days, 0 = forever)" />
-
- <EditText
- android:id="@+id/retentionInput"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:hint="90"
- android:importantForAutofill="no"
- android:inputType="number" />
-
- <Button
- android:id="@+id/exportAllButton"
- style="@style/Widget.MaterialComponents.Button.OutlinedButton"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="8dp"
- android:text="Export all devices (CSV, JSON, KML...)" />
-
- <Button
- android:id="@+id/forgetHistoryButton"
- style="@style/Widget.MaterialComponents.Button.TextButton"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Forget device history (keeps favorites)" />
-
- <Button
- android:id="@+id/clearLogButton"
- style="@style/Widget.MaterialComponents.Button.TextButton"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Clear match history" />
-
- <TextView
- style="@style/SettingsLabel"
- android:paddingTop="16dp"
- android:textSize="12sp"
- android:text="Changes are saved automatically." />
+ <TextView android:id="@+id/headerData" style="@style/SettingsHeader" android:text="Data" />
+ <LinearLayout android:id="@+id/sectionData" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical">
+
+ <TextView android:id="@+id/retentionLabel" style="@style/SettingsLabel" android:text="Keep history for (days, 0 = forever)" />
+
+ <EditText
+ android:id="@+id/retentionInput"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:hint="90"
+ android:importantForAutofill="no"
+ android:inputType="number" />
+
+ <Button
+ android:id="@+id/exportAllButton"
+ style="@style/Widget.MaterialComponents.Button.OutlinedButton"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="8dp"
+ android:text="Export all devices (CSV, JSON, KML...)" />
+
+ <Button
+ android:id="@+id/forgetHistoryButton"
+ style="@style/Widget.MaterialComponents.Button.TextButton"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="Forget device history (keeps favorites)" />
+
+ <Button
+ android:id="@+id/clearLogButton"
+ style="@style/Widget.MaterialComponents.Button.TextButton"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="Clear match history" />
+ </LinearLayout>
</LinearLayout>
</ScrollView>
diff --git a/app/src/main/res/xml/automotive_app_desc.xml b/app/src/main/res/xml/automotive_app_desc.xml
index 0fb852c..86f7f69 100644
--- a/app/src/main/res/xml/automotive_app_desc.xml
+++ b/app/src/main/res/xml/automotive_app_desc.xml
@@ -1,4 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<automotiveApp>
<uses name="template" />
+ <!-- The media-style screen (RFSentinelMediaService) and the alert messages
+ (CarMessages): unlike the template screens, both also reach a real car from
+ the GitHub APK when Android Auto's "Unknown sources" is on. -->
+ <uses name="media" />
+ <uses name="notification" />
</automotiveApp>
diff --git a/app/src/test/java/com/rfsentinel/app/util/CarMessagesTest.kt b/app/src/test/java/com/rfsentinel/app/util/CarMessagesTest.kt
new file mode 100644
index 0000000..f3aa14f
--- /dev/null
+++ b/app/src/test/java/com/rfsentinel/app/util/CarMessagesTest.kt
@@ -0,0 +1,34 @@
+package com.rfsentinel.app.util
+
+import com.rfsentinel.app.detect.Category
+import com.rfsentinel.app.detect.Hit
+import org.junit.Assert.assertEquals
+import org.junit.Test
+
+class CarMessagesTest {
+
+ @Test
+ fun spokenRepliesMapToCommands() {
+ assertEquals(CarMessages.Command.MUTE, CarMessages.command("Mute"))
+ assertEquals(CarMessages.Command.MUTE, CarMessages.command("please be quiet"))
+ assertEquals(CarMessages.Command.MUTE, CarMessages.command("Snooze alerts."))
+ assertEquals(CarMessages.Command.IGNORE, CarMessages.command("ignore it"))
+ assertEquals(CarMessages.Command.NONE, CarMessages.command("ok thanks"))
+ assertEquals(CarMessages.Command.NONE, CarMessages.command(null))
+ assertEquals(CarMessages.Command.NONE, CarMessages.command("muted")) // whole words only
+ }
+
+ @Test
+ fun carMessageReadsAsOneSentence() {
+ val hit = Hit(Category.BODY_CAM, "Axon body camera", 85, "OUI", "test")
+ assertEquals(
+ "Nearby: Axon body camera. Strong match, about 40 m, signal -58 dBm.",
+ NotificationHelper.carMessageText("Nearby: Axon body camera", hit, -58, 41.0)
+ )
+ val weak = Hit(Category.ALPR, "Plate camera", 30, "OUI", "test")
+ assertEquals(
+ "Nearby: Plate camera. Weak match, signal -90 dBm.",
+ NotificationHelper.carMessageText("Nearby: Plate camera", weak, -90, null)
+ )
+ }
+}
diff --git a/docs/android-auto.html b/docs/android-auto.html
index 19b8172..673507c 100644
--- a/docs/android-auto.html
+++ b/docs/android-auto.html
@@ -74,13 +74,15 @@
<li><b>Phone screen off:</b> Android limits Bluetooth scanning then. The car warns you when a scan starts that way and shows "Bluetooth limited" on its home screen; WiFi, cell checks and known cameras keep working.</li>
</ul>
-<h2 id="setup">Setup for a sideloaded app</h2>
+<h2 id="setup">The GitHub APK in a real car</h2>
+<p>Google lets apps built with its Car App Library, as RF Sentinel is, run in a real car only when they're installed from a trusted store (Google Play or ONE store). Android Auto's <b>Unknown sources</b> developer setting covers media and messaging apps, not these (<a href="https://developer.android.com/training/cars/testing#real-vehicles">Google's testing guide</a>). So the GitHub APK doesn't appear in a real car's launcher, whatever its settings; its car screens run on Google's <a href="https://developer.android.com/training/cars/testing/dhu">Desktop Head Unit</a> emulator.</p>
+<p><b>The GitHub APK still works in a real car</b>, through the two app types that setting does cover:</p>
<ol>
-<li>Open <b>Android Auto settings</b> on the phone.</li>
-<li>Tap <b>Version</b> ten times to unlock developer mode.</li>
-<li><b>⋮ → Developer settings</b> → enable <b>Unknown sources</b>.</li>
-<li>Install (or reinstall) the APK, open RF Sentinel once on the phone, reconnect to the car.</li>
-<li>Still missing? <b>Customize launcher</b> may list it under hidden apps.</li>
+<li>Open <b>Android Auto settings</b> on the phone and tap <b>Version</b> ten times to unlock developer mode.</li>
+<li><b>⋮ → Developer settings</b> → enable <b>Unknown sources</b>, then reconnect to the car.</li>
+<li><b>RF Sentinel screen (media-style):</b> tabs for <b>Threats</b>, <b>Cameras</b> (nearest known cameras, the one ahead first), <b>Alerts</b> and <b>Status</b> (start / stop scanning, mute, cell towers, hardware), plus a card with the current threat and <b>Scan</b> / <b>Mute</b> buttons. It never plays anything, so your music keeps playing and keeps the steering-wheel buttons.</li>
+<li><b>Alerts as messages:</b> every alert arrives as a message from RF Sentinel, which the car shows and can read aloud. Reply <b>"mute"</b> to silence alerts for 30 minutes, or <b>"ignore"</b> to stop alerting about the latest device.</li>
+<li>If RF Sentinel is missing from the car's launcher, tick it under <b>Customize launcher</b>. The live map needs the full car app, so it stays on the Desktop Head Unit.</li>
</ol>
<h2 id="auto-start">Auto start</h2>
diff --git a/docs/install.html b/docs/install.html
index f49796c..055e88e 100644
--- a/docs/install.html
+++ b/docs/install.html
@@ -62,7 +62,7 @@
<p>The app's menu (⋮) → <b>Check for updates</b> asks GitHub for the latest release and links its APK (only when you tap it). Install the newer APK over the existing one. History, watchlist and settings are kept. Every release is signed with the same key; Android refuses an update signed with a different one.</p>
<h2 id="auto">Android Auto</h2>
-<p>Sideloaded apps need one-time setup: Android Auto settings → tap <b>Version</b> 10 times → <b>⋮ → Developer settings</b> → enable <b>Unknown sources</b>, then (re)install the APK, open RF Sentinel once, reconnect. More on <a href="android-auto.html">Android Auto</a>.</p>
+<p>In a real car, Android Auto only shows Car App Library apps like RF Sentinel when they're installed from a trusted store (Google Play or ONE store); its <b>Unknown sources</b> setting doesn't cover them. The GitHub APK's car screens run on Google's Desktop Head Unit emulator, and once that setting is on it gets a media-style RF Sentinel screen and alert messages in the car. More on <a href="android-auto.html#setup">Android Auto</a>.</p>
<h2 id="battery">Battery settings</h2>
<p>On phones with aggressive battery management (Samsung, Xiaomi, OnePlus, Huawei), set RF Sentinel's battery usage to <b>Unrestricted</b>. Settings has a shortcut.</p>
diff --git a/docs/qa.html b/docs/qa.html
index 1d8d2a3..b7b5ee0 100644
--- a/docs/qa.html
+++ b/docs/qa.html
@@ -24,7 +24,7 @@
<link rel="icon" href="favicon.svg" type="image/svg+xml">
<link rel="preload" href="assets/fonts/share-tech-mono.ttf" as="font" type="font/ttf" crossorigin>
<link rel="stylesheet" href="assets/style.css">
-<script type="application/ld+json">{"@context": "https://schema.org", "@graph": [{"@type": "BreadcrumbList", "itemListElement": [{"@type": "ListItem", "position": 1, "name": "RF Sentinel", "item": "https://cis-c0.github.io/RFSentinel/"}, {"@type": "ListItem", "position": 2, "name": "Q&A", "item": "https://cis-c0.github.io/RFSentinel/qa.html"}]}, {"@type": "FAQPage", "mainEntity": [{"@type": "Question", "name": "How do I detect police with an Android phone?", "acceptedAnswer": {"@type": "Answer", "text": "Modern police gear is full of radios that broadcast on their own: body cameras advertise over Bluetooth LE so the officer's phone and holster sensors can find them, in-car routers run WiFi access points, radios and e-ticket printers pair over Bluetooth. Any phone can receive those broadcasts without connecting to anything. RF Sentinel runs a continuous BLE scan and periodic WiFi scans, and matches every packet against vendor company IDs, service UUIDs, payload tags, network names and IEEE MAC prefixes assigned to law-enforcement equipment makers (Axon/TASER, Motorola Solutions, Digital Ally, Getac, Zebra, Flock Safety and others). When two or more kinds of police-type gear rise and fall in signal together, it flags a possible police vehicle. Install the APK , tap Start scanning , grant location and Nearby devices. See the police detection guide ."}}, {"@type": "Question", "name": "Is there an app that detects police nearby?", "acceptedAnswer": {"@type": "Answer", "text": "Yes: RF Sentinel is a free, open-source Android app that does this passively from Bluetooth LE and WiFi signals, with no root and no subscription. It detects the equipment , not people: a match means a device with a police-equipment signature is in range. Crowd-sourced apps (Waze) rely on users reporting; RF Sentinel relies only on what the hardware itself broadcasts, so it also works where nobody has reported anything."}}, {"@type": "Question", "name": "Can my phone detect a police body camera?", "acceptedAnswer": {"@type": "Answer", "text": "Often, yes. Body cameras use Bluetooth LE to pair with the officer's phone app, holster and light-bar triggers, and many advertise continuously. RF Sentinel matches: the BWCDEVICE ASCII tag in service data, manufacturer data or the raw advert, in either byte order (confidence 90, field-validated); TASER International company ID 0x034D and Axon / TASER service UUIDs 0xFC81 , 0xFE6B , 0xFE6C (60 each); Utility Inc. BodyWorn Remote names (80); IEEE MAC prefixes registered to Axon ( 00:25:DF ), Digital Ally, WatchGuard, Getac, Zepcam and others. Independent matches on the same device are fused, so an Axon camera with the company ID, UUID and prefix lands in the strong tier. Cameras that are switched off, or that only use WiFi to dock, are not visible."}}, {"@type": "Question", "name": "How do I detect Axon body cameras and TASERs?", "acceptedAnswer": {"@type": "Answer", "text": "Axon (formerly TASER International) gear is identifiable from the Bluetooth SIG company ID 0x034D , the 16-bit service UUIDs 0xFC81 (Axon Enterprise), 0xFE6B and 0xFE6C (TASER International), and the IEEE block 00:25:DF . Axon Signal Sidearm holster sensors and Signal units, which start body cameras when a gun is drawn or the light bar turns on, are Bluetooth LE too. RF Sentinel ships all of these rules on by default."}}, {"@type": "Question", "name": "Can it detect a police car or unmarked car?", "acceptedAnswer": {"@type": "Answer", "text": "Indirectly. A single Motorola radio, Zebra printer or Cradlepoint router proves nothing, because civilians use them too. RF Sentinel assigns each device a role (body camera, plate reader, two-way radio, vehicle cellular router, mobile printer, in-car computer, rugged laptop, police camera) and groups devices with at least two different roles when their RSSI moves together (Pearson r ≥ 0.6 over at least 8 aligned seconds), or when both are flat (parked) and appeared within 30 s of each other. The group is flagged \"Possible police vehicle\" at 24 + 12 × roles, +10 when the signals move together, capped at 88: two roles stay weak (48), three moving together reach 70. An unmarked car is detected the same way if its gear advertises; there is no \"unmarked car\" signal as such. Details: patrol-vehicle detection ."}}, {"@type": "Question", "name": "Can it detect police radios?", "acceptedAnswer": {"@type": "Answer", "text": "It flags radios that expose Bluetooth or WiFi: Motorola Solutions company ID 0x04EC and UUIDs 0xFD8E / 0xFE04 , plus IEEE prefixes of P25 / TETRA radio makers. Those are weak on their own (Motorola radios are also used by security guards, schools and construction crews) and become meaningful as part of a patrol-vehicle group. It does not receive the voice channels themselves. P25 and TETRA run on VHF, UHF and 700/800 MHz and are usually encrypted; a phone has no receiver for those bands. That would need a software-defined radio, and RF Sentinel never decodes or listens to radio traffic."}}, {"@type": "Question", "name": "Is RF Sentinel a radar detector? Does it detect police radar guns?", "acceptedAnswer": {"@type": "Answer", "text": "No. Police radar and lidar use X, K and Ka-band microwave or infrared laser, which a phone cannot receive. \"Police radar\" in RF Sentinel's list means the Bluetooth/WiFi signatures of radar makers' in-car units when they advertise. For fixed speed and red-light cameras, RF Sentinel uses the OpenStreetMap camera layer and warns about 30 seconds ahead."}}, {"@type": "Question", "name": "Can it detect e-ticket printers?", "acceptedAnswer": {"@type": "Answer", "text": "Yes, with care. Zebra mobile printers advertise UUIDs 0xFE79 / 0xFD66 . With a factory-serial name ( ^[A-Z0-9]{2}[A-Z]{3}\\d{9}$ ), which fleets rarely rename, the score is 50; any other name stays at 30 because the same printers are everywhere in warehouses and retail. Next to a body camera or radio moving with it, it becomes part of a patrol-vehicle group."}}, {"@type": "Question", "name": "How will I be alerted?", "acceptedAnswer": {"@type": "Answer", "text": "Matches above your alert threshold (default 50, probable) play a sound and vibrate: one pulse for weak, two for probable, three for strong. Optional spoken announcements use the phone's own text-to-speech engine, in full (\"Axon body camera nearby\") or short (\"Body cam\", \"Police car\", \"Speed camera, 50\"). There is a discreet mode, a floating threat bubble over other apps (green / orange / red with a count), a notification, a Quick Settings tile, a home-screen widget, and heads-up alerts in Android Auto."}}, {"@type": "Question", "name": "Why did it flag a device that is not police?", "acceptedAnswer": {"@type": "Answer", "text": "A match is a signature, not an identification. 00:25:DF means \"registered to Axon Enterprise\", not \"a police officer\". Some identifiers are shared with consumer products: Motorola Solutions radios are used by private security, Zebra printers by shops, Meta's company ID by Quest headsets. That is why every rule has a confidence, weak matches are amber and silent by default, and the detail screen shows the exact evidence and source. Long-press a device to whitelist it."}}, {"@type": "Question", "name": "How do I detect Flock Safety cameras?", "acceptedAnswer": {"@type": "Answer", "text": "Two ways, combined in the app: Radio signatures. Flock units and their batteries broadcast identifiable signals: WiFi SSIDs starting with Flock- (88), BLE names FS Ext Battery (80), Penguin-<digits> or FS-<hex> (70, or 80 with company ID 0x09C8 ), and the XUNTONG company ID 0x09C8 alone (45, shared silicon). The known-camera map. Flock cameras mapped by volunteers in OpenStreetMap (via DeFlock ) are downloaded and kept offline. You are warned when one is within about 20 seconds of travel and getting closer, even for cameras that only use cellular and emit nothing a phone can hear. See the Flock / ALPR guide ."}}, {"@type": "Question", "name": "How do I detect license plate readers (ALPR) on Android?", "acceptedAnswer": {"@type": "Answer", "text": "Most non-Flock plate readers (Genetec AutoVu, Motorola / Vigilant, Perceptics, Quercus, Tattile) are wired or on cellular modems and don't broadcast anything a phone can match. RF Sentinel flags them by IEEE prefix when they do expose WiFi or Bluetooth, and covers the rest with the OpenStreetMap layer: every element tagged surveillance:type=ALPR , with manufacturer, operator and direction where mapped. The Download Flock option fetches every mapped plate reader in the US and Canada (~18 MB, about 143,000 cameras, refreshed weekly on WiFi); Download nearby cameras fetches a 10-200 km radius."}}, {"@type": "Question", "name": "Can it detect Flock Raven gunshot / audio sensors?", "acceptedAnswer": {"@type": "Answer", "text": "Yes. Raven sensors advertise 128-bit service UUIDs whose short IDs fall in 0x3100 - 0x3500 , matched at confidence 80 (field capture via all-cameras-are-beacons)."}}, {"@type": "Question", "name": "Can it warn me about speed cameras and red-light cameras without Waze?", "acceptedAnswer": {"@type": "Answer", "text": "Yes. Fixed speed and red-light cameras mapped in OpenStreetMap are downloaded automatically for the area you look at and kept offline, refreshed weekly. Speed cameras warn about 30 seconds ahead, with the speed limit when it's mapped. No account, no reporting, no location sent anywhere except the area request to the Overpass API. Coverage depends on how well your area is mapped in OpenStreetMap, and mobile speed traps aren't covered."}}, {"@type": "Question", "name": "Can I silence one specific camera I pass every day?", "acceptedAnswer": {"@type": "Answer", "text": "Yes. Tap the camera on the map and choose Ignore alerts . It stays on the map, faded, and never alerts again. Alert again on the same camera, or Settings, turns it back on. Ignored cameras are kept permanently."}}, {"@type": "Question", "name": "Can I find hidden cameras with my phone?", "acceptedAnswer": {"@type": "Answer", "text": "Only cameras that use WiFi or Bluetooth. RF Sentinel has an optional (off by default) network-camera category: SSIDs starting with ARLO_VMB_ / NTGR_VMB_ (88) and IEEE blocks of Arlo, Blink, Ezviz, Uniview, Amcrest, Wyze, Swann, Night Owl, SkyBell and WUUK (65, WiFi only). Turn on the Network / home security camera category in Settings. Limits you should know: a camera that joins an existing WiFi network as a client is invisible to an Android WiFi scan (only access points are listed), and wired, SD-card-only or cellular cameras emit nothing usable. A lens-reflection or IR check finds those, not a radio app."}}, {"@type": "Question", "name": "Can it identify hidden WiFi networks?", "acceptedAnswer": {"@type": "Answer", "text": "Yes. Hidden networks still send beacons with information elements. RF Sentinel reads the WPS element (manufacturer, model name and number, device name, primary device type), the Cisco CCX AP name (IE 133), the BSSID's IEEE registrant and vendor IE owners, and links a hidden BSSID to the visible network on the same router (octets 2-5 equal, last octet within 16). Requires Android 11+ for the raw elements."}}, {"@type": "Question", "name": "How do I know if an AirTag is following me on Android?", "acceptedAnswer": {"@type": "Answer", "text": "An AirTag away from its owner switches to a \"separated\" Find My frame: Apple company ID 0x004C , type 0x12 , length 0x19 . RF Sentinel matches that frame (confidence 70), keeps tracking the tag through its address rotations, and raises a may be following you alert when it has been with you for at least 10 minutes while you moved at least 800 m (both adjustable: 2-240 minutes). Tap the device and use Locate : it beeps faster as the signal gets stronger. It reacts to the same frame Android's built-in unknown-tracker alerts use, but shows it live, with history and a signal graph, instead of after hours."}}, {"@type": "Question", "name": "Does it detect Tile, Samsung SmartTag and Google Find Hub trackers?", "acceptedAnswer": {"@type": "Answer", "text": "Yes. Google Find Hub tags via 0xFEAA service data frame 0x41 (separated; frame 0x40 means near the owner and is ignored), Samsung SmartTag via 0xFD5A and Tile via 0xFEED service data (55). All feed the same follow detection."}}, {"@type": "Question", "name": "Can it find a GPS tracker hidden on my car?", "acceptedAnswer": {"@type": "Answer", "text": "Only Bluetooth trackers (AirTag, SmartTag, Tile, Find Hub tags). LTE / GSM GPS trackers report over the cellular network and don't broadcast anything a phone can identify. For those, a physical inspection or a dedicated RF sweep is needed."}}, {"@type": "Question", "name": "My own AirTag keeps showing up. How do I ignore it?", "acceptedAnswer": {"@type": "Answer", "text": "Long-press it and ignore it. The ignore follows the tag when its address changes: it is carried over through the advert fingerprint link, so you don't have to ignore it again after each rotation. To leave every Apple Find My tag out of the Trackers category, turn on Settings → Exclude Apple AirTags (also in Android Auto → More); Google Find Hub, SmartTag and Tile trackers still alert."}}, {"@type": "Question", "name": "How do I detect drones near me with my phone?", "acceptedAnswer": {"@type": "Answer", "text": "Drones sold since FAA / EU Remote ID rules must broadcast an ASTM F3411 Remote ID signal over Bluetooth (service data 0xFFFA , app code 0x0D ) or WiFi (vendor IE OUI FA:0B:BC , type 0x0D ). RF Sentinel decodes it (confidence 95), places the drone on the map with heading, altitude and speed, and raises a \"drone overhead\" alert when it is within 200 m horizontally (once per drone per 5 minutes). Drone makers' own IEEE blocks (DJI, Parrot, Skydio, Autel, Yuneec...) are also matched at 60. See the drone guide ."}}, {"@type": "Question", "name": "Can I see where the drone pilot is?", "acceptedAnswer": {"@type": "Answer", "text": "When the drone's Remote ID includes the System message, yes: Remote ID carries the operator (or take-off) position. The detail screen shows it, and you can open both the drone and operator positions in your maps app. Remote ID also carries the serial number and, where used, an operator ID."}}, {"@type": "Question", "name": "Does it detect police drones?", "acceptedAnswer": {"@type": "Answer", "text": "It detects any drone that broadcasts Remote ID, which includes most police drones (DJI, Skydio, Autel) under current rules. It can't tell who operates it unless the operator ID says so. Exempt or modified drones that don't broadcast Remote ID are not detected."}}, {"@type": "Question", "name": "How do I detect a Stingray or IMSI catcher on Android without root?", "acceptedAnswer": {"@type": "Answer", "text": "Without root, Android exposes the cells your phone sees (network codes, cell IDs, area codes, radio technology, signal) but not ciphering or signalling messages. RF Sentinel reads them every 15 s and looks for the signs a cell-site simulator leaves in that data: serving cell on a test / reserved MCC (001, 002, 999): 85; sudden switch from 4G/5G to 2G while strong LTE is still visible (the visible side of the 2G downgrade EFF's Rayhunter watches for): 70; a known cell number appearing in a different area (cloned identity), a reserved area code (0, 0xFFFE, 0xFFFF) or cell ID 0; a network country code that doesn't match the SIM while not roaming; the location area changing while GPS shows you standing still, a new cell with no neighbours. A sign must persist across two checks; 2G drops during calls and area codes flipping at coverage borders are ignored. Several signs together score max + 15, capped at 90. See the IMSI catcher guide ."}}, {"@type": "Question", "name": "How reliable is fake cell tower detection on a phone?", "acceptedAnswer": {"@type": "Answer", "text": "It is heuristic. Each sign has innocent explanations (network maintenance, rural 2G, carrier misconfiguration), and a well-configured simulator copying a real cell's identity shows few of them. Treat it as a warning to look closer, not proof. The strongest protection is turning off Allow 2G in your SIM settings (Android 12+), and on Android 15+ enabling Cellular security → Network notifications , which warns when a network asks for your SIM identity or turns off encryption. RF Sentinel's Settings links there."}}, {"@type": "Question", "name": "How does this compare with EFF's Rayhunter?", "acceptedAnswer": {"@type": "Answer", "text": "Rayhunter runs on a cheap mobile hotspot with root access to the modem's signalling (QMDL / diag), so it sees identity requests and ciphering changes directly. A normal Android app can't. RF Sentinel implements the parts of that analysis visible through Android's public cell APIs (2G downgrade, identity anomalies) and points to Android 15's own network notifications for the rest. For the strongest detection, use Rayhunter hardware alongside."}}, {"@type": "Question", "name": "How do I detect Ray-Ban Meta smart glasses nearby?", "acceptedAnswer": {"@type": "Answer", "text": "Ray-Ban Meta glasses advertise over Bluetooth LE. RF Sentinel matches Luxottica's company ID 0x0D53 (70), company ID 0x058E together with the META_RB_GLASS token (72), and Meta's corporate company ID 0x01AB / UUIDs 0xFEB7 / 0xFEB8 (45, because Quest headsets share them). Snap Spectacles ( 0x03C2 ), Vuzix ( 0x060C ) and HeyCyan-SDK glasses (full 128-bit UUID) are matched too. See the smart glasses guide ."}}, {"@type": "Question", "name": "Can it tell if the glasses are recording?", "acceptedAnswer": {"@type": "Answer", "text": "No. It tells you the glasses are near you and advertising. Recording state is not part of the advertisement."}}, {"@type": "Question", "name": "How can I get s0phia ops (SØPHIA) for free?", "acceptedAnswer": {"@type": "Answer", "text": "SØPHIA is a paid product sold by its own developer, and this site doesn't distribute it or any copy of it. If what you want is the same kind of tool for free, RF Sentinel is a free, open-source (GPL-3.0) alternative: passive Bluetooth LE and WiFi scanning for police gear, plate-reader cameras, trackers and drones, installed as a signed APK, no account. Comparison: RF Sentinel vs SØPHIA ."}}, {"@type": "Question", "name": "Is there a free alternative to SØPHIA / SophiaOps?", "acceptedAnswer": {"@type": "Answer", "text": "Yes. RF Sentinel covers passive BLE and WiFi recon with a radar view, risk scoring and a timeline, and adds sourced police, ALPR, tracker, Remote ID and smart-glasses signatures, patrol-vehicle grouping, fake cell tower signs, an offline camera map and Android Auto. It costs nothing and the full source is on GitHub . RF Sentinel is independent and not affiliated with SØPHIA or DetecX."}}, {"@type": "Question", "name": "Do I need Termux to scan for police on Android?", "acceptedAnswer": {"@type": "Answer", "text": "Not with RF Sentinel. It is a regular Android app using the public BLE scan and WiFi scan APIs, so there's no Termux, Termux:API, Python or shell setup."}}, {"@type": "Question", "name": "How is it different from RF Party, BLE Radar (MetaRadar) or Flock You?", "acceptedAnswer": {"@type": "Answer", "text": "RF Party (based on Alan Meekins' DEF CON 31 talk) and BLE Radar are general Bluetooth scanners: they list and track devices, with fewer police-specific rules. Flock You and OUI-Spy are ESP32 firmware focused on Flock and watchlist matching. RF Sentinel combines a sourced signature set (each rule cites the IEEE registry, Bluetooth SIG or published research), evidence fusion, patrol-vehicle grouping, WiFi and cell analysis, the OpenStreetMap camera layer and Android Auto in one Android app, and can ingest OUI-Spy and GhostESP boards. No code from those projects is included."}}, {"@type": "Question", "name": "Is there a Flock You app for Android? (Flock You alternative)", "acceptedAnswer": {"@type": "Answer", "text": "Yes: RF Sentinel detects Flock Safety cameras on an Android phone with no extra hardware, and can also read a Flock You / OUI-Spy ESP32 board. Details Flock You is open-source (MIT) ESP32 firmware focused on one target: Flock Safety cameras. It runs the radio in 2.4 GHz promiscuous mode, so it sees Flock cameras' WiFi probe requests and SoftAPs that a phone can't, plus Flock battery-pack BLE adverts, and beeps or feeds a dashboard. RF Sentinel is a phone app that covers Flock as one category among many (body cams, patrol gear, trackers, drones, glasses, fake cell towers) and adds the OpenStreetMap / DeFlock camera map for cellular-only cameras. They combine well: plug an ESP32 running OUI-Spy's Flock-You mode into the phone and RF Sentinel shows its Flock detections next to its own. See ESP32 boards ."}}, {"@type": "Question", "name": "Which Android app works with OUI-Spy? (OUI-Spy app for Android)", "acceptedAnswer": {"@type": "Answer", "text": "RF Sentinel connects to OUI-Spy boards over USB OTG or Bluetooth and merges their detections with the phone's own. Setup OUI-Spy is ESP32 firmware for the XIAO ESP32-S3 with several modes (Detector, Flock-You, Foxhunter, Sky Spy), a buzzer and LED, and a web flasher. OUI-APEX (lukeswitz's fork) runs those engines from one firmware and pairs with its own cross-platform app. It isn't either/or: RF Sentinel reads OUI-Spy boards over USB, and OUI-SPY App-Controlled boards over Bluetooth, and merges their detections with the phone's own (blue ESP32 badge). The board gives range and radio modes a phone lacks; RF Sentinel adds its rule set, patrol-vehicle grouping, the camera map, alerts and Android Auto."}}, {"@type": "Question", "name": "Wardrive Go alternative: what's the difference with RF Sentinel?", "acceptedAnswer": {"@type": "Answer", "text": "Wardrive Go (GPL-3.0, Android) is a wardriving app: it maps WiFi, Bluetooth and cellular networks, uploads to WiGLE and WDGWars, supports USB monitor-mode WiFi adapters and has channel / spectrum analyzers, Android Auto and a Wear OS companion. It also flags Flock cameras and Axon body cams. RF Sentinel is built around detection and alerting rather than mapping for upload: sourced signatures with confidence tiers, evidence fusion, patrol-vehicle grouping, follower alerts, Remote ID decoding, fake-cell signs and warnings before mapped cameras. Use Wardrive Go to contribute to WiGLE; use RF Sentinel to be warned while you drive. Some of RF Sentinel's prefix data was cross-checked with Wardrive Go's lists."}}, {"@type": "Question", "name": "Fieldwatch alternative for detecting police and surveillance gear", "acceptedAnswer": {"@type": "Answer", "text": "Fieldwatch (MIT, Android) is a receive-only WiFi and Bluetooth LE observer with customizable views, a filtering engine, an extensible signature library and reports, fully offline. It's a general field-survey tool. RF Sentinel shares the receive-only, offline approach but is tuned for surveillance and police gear: alert tiers, patrol-vehicle grouping, tracker follow detection, drone and cell analysis, the camera map and Android Auto. Part of RF Sentinel's prefix data was cross-checked with Fieldwatch's list."}}, {"@type": "Question", "name": "SØPHIA vs RF Sentinel: what's the difference?", "acceptedAnswer": {"@type": "Answer", "text": "SØPHIA is a closed-source passive BLE and WiFi recon app for Android sold by DetecX. RF Sentinel does the same kind of passive WiFi and Bluetooth recon for free and open source, with police, ALPR, tracker, drone and fake-cell detection, a camera map and Android Auto. Full comparison: RF Sentinel vs SØPHIA ."}}, {"@type": "Question", "name": "Flock-You for Android alternative", "acceptedAnswer": {"@type": "Answer", "text": "Flock-You (Android) is a separate counter-surveillance app with broad multi-protocol ambitions (BLE, WiFi, cellular, GNSS, ultrasonic) and Flipper Zero integration. RF Sentinel stays with what a phone's radios can verify, cites a source for every rule, and connects to ESP32 boards instead of a Flipper. Part of RF Sentinel's prefix data was cross-checked with its list."}}, {"@type": "Question", "name": "Best app to detect surveillance over both Bluetooth and WiFi (instead of AirGuard, BLE Radar, WiFi analyzers)", "acceptedAnswer": {"@type": "Answer", "text": "Many good tools cover one radio or one job: Bluetooth only: AirGuard (AirTag / Find My tracker protection), BLE Radar (MetaRadar) (BLE environment monitoring and custom filters), nRF Connect (a developer's BLE scanner), RF Party (BLE from the DEF CON 31 talk). WiFi only: WiFi analyzer apps show access points and channels but don't identify police or surveillance gear. Cell only: EFF's Rayhunter (IMSI catcher detection on dedicated hardware). Mapping: WiGLE WiFi Wardriving and Wardrive Go map networks for upload. RF Sentinel puts Bluetooth LE, WiFi and cell analysis in one app, so evidence from different radios can add up (e.g. a router, a radio and a printer moving together = possible police vehicle). A single-radio tool can't make that connection."}}, {"@type": "Question", "name": "Is there an iPhone version?", "acceptedAnswer": {"@type": "Answer", "text": "No. iOS hides Bluetooth MAC addresses and most advertisement fields from apps, offers no WiFi scan API, and doesn't expose cell information, so most of RF Sentinel's detection can't run there. It is Android only."}}, {"@type": "Question", "name": "Is RF Sentinel free? Are there ads or in-app purchases?", "acceptedAnswer": {"@type": "Answer", "text": "Free, no ads, no in-app purchases, no subscription, no account. Licensed GPL-3.0."}}, {"@type": "Question", "name": "Is it on Google Play or F-Droid?", "acceptedAnswer": {"@type": "Answer", "text": "Not currently. The signed APK is published on GitHub Releases for every version. See the install guide ."}}, {"@type": "Question", "name": "How do I install the APK?", "acceptedAnswer": {"@type": "Answer", "text": "On the phone, open the latest release . Under Assets , tap the file ending in -release.apk (not \"Source code\"). Open the downloaded file from the notification or Files → Downloads. If Android blocks it, tap Settings , enable Allow from this source , go back and tap Install . Open RF Sentinel. The setup wizard covers theme, region, alerts, camera download radius and permissions."}}, {"@type": "Question", "name": "Is the APK safe?", "acceptedAnswer": {"@type": "Answer", "text": "The full source is public, every release is signed with the same release key (Android refuses an update signed with a different key), and you can build it yourself with ./gradlew assembleDebug . The app requests no contacts, storage, camera or microphone permissions. Play Protect may warn about any app installed outside Google Play; that warning is about the install source, not a scan result."}}, {"@type": "Question", "name": "How do I update?", "acceptedAnswer": {"@type": "Answer", "text": "Install the newer APK over the existing one. Settings, history and watchlist are kept."}}, {"@type": "Question", "name": "Which Android versions and phones are supported?", "acceptedAnswer": {"@type": "Answer", "text": "Android 8.0 (API 26) and newer, on any phone with Bluetooth LE: Pixel, Samsung, Motorola, OnePlus, Xiaomi and others. Hidden-network WiFi details need Android 11+. Bluetooth 5 extended advertising and LE Coded PHY (long range) are used automatically where the chip supports them."}}, {"@type": "Question", "name": "Does it need root?", "acceptedAnswer": {"@type": "Answer", "text": "No. Everything uses public Android APIs."}}, {"@type": "Question", "name": "Why does it ask for location?", "acceptedAnswer": {"@type": "Answer", "text": "Android ties Bluetooth and WiFi scan results to the location permission (up to Android 11 always, and still for WiFi scans and cell info). RF Sentinel also uses GPS for traces, follow detection and camera warnings. Nearby devices (Bluetooth scan) is required; notifications, Display over other apps (bubble) and Nearby devices → connect (only to list your paired car) are optional."}}, {"@type": "Question", "name": "Scanning stops on Samsung / Xiaomi / OnePlus. What do I do?", "acceptedAnswer": {"@type": "Answer", "text": "Some manufacturers kill background apps aggressively. Scanning runs as a foreground service with a notification, but you may still need to set RF Sentinel's battery usage to Unrestricted . Settings has a shortcut to Android's battery optimization screen."}}, {"@type": "Question", "name": "How does passive Bluetooth LE detection work?", "acceptedAnswer": {"@type": "Answer", "text": "BLE devices broadcast advertising packets on channels 37, 38 and 39 so other devices can find them. Each packet carries an address, flags and optional fields: device name, 16/128-bit service UUIDs, service data, manufacturer data with a Bluetooth SIG company ID, TX power. RF Sentinel receives these through Android's BluetoothLeScanner and matches every field against its rules. It never connects, so the device never knows it was seen."}}, {"@type": "Question", "name": "What is a MAC vendor prefix (OUI) and why does it matter?", "acceptedAnswer": {"@type": "Answer", "text": "The first 3 bytes of a public MAC address (MA-L), or 3.5 / 4.5 bytes for MA-M / MA-S blocks, are assigned by the IEEE to a company. If a device uses its public address, the prefix reveals the maker, e.g. 00:25:DF is Axon Enterprise. RF Sentinel ships the IEEE registry offline and regional watchlist presets (Global, Canada, US) of law-enforcement and surveillance makers, each prefix re-checked against its registrant. Devices using random private addresses defeat prefix matching, which is why payload signatures and fingerprint linking matter more."}}, {"@type": "Question", "name": "What do weak, probable and strong mean?", "acceptedAnswer": {"@type": "Answer", "text": "Tier Confidence Meaning Weak (verify) < 50 Identifier shared with many unrelated products. Amber, silent by default. Probable 50-79 Vendor-specific identifier. Alerts at the default threshold. Strong 80+ Payload tag, or a network name the vendor gives its own devices."}}, {"@type": "Question", "name": "What is evidence fusion?", "acceptedAnswer": {"@type": "Answer", "text": "When different rules of the same category match one device, the scores combine by noisy-OR, with each supporting hit discounted by half because rules often share evidence: 1 - (1 - top) × Π(1 - 0.5 × support) . Hits under 30 never corroborate, and fusion never exceeds 90. Example: watchlisted address 70 + Zebra serial name 50 → 78."}}, {"@type": "Question", "name": "Devices change their Bluetooth address. How does it keep track?", "acceptedAnswer": {"@type": "Answer", "text": "A structural advert fingerprint survives address rotation: names, service UUIDs, service-data and company-ID payload sizes, TX power and connectable flag. When a new private address appears with the same fingerprint as exactly one device that went silent 1.5-30 s earlier, it inherits that device's matches (at −5), follow history and ignore state. Apple-Continuity-only adverts (phones) are never linked, and two identical candidates means no link."}}, {"@type": "Question", "name": "Can I add my own devices or signatures?", "acceptedAnswer": {"@type": "Answer", "text": "Yes. The watchlist takes exact addresses, vendor prefixes (MA-L / MA-M / MA-S) and name or vendor rules, each with a label and score, plus the regional presets. It exports as JSON. Long-press any device to add it."}}, {"@type": "Question", "name": "I found an unidentified device. How do I report it?", "acceptedAnswer": {"@type": "Answer", "text": "Long-press it → Report unknown device . The report shows exactly what is shared before you send it: vendor prefix, name pattern with serial digits hidden, service and manufacturer IDs. No full address, serial, location or time. Paste it into a GitHub issue or share it on Discord . New signatures need a registry or published source; guesses aren't merged."}}, {"@type": "Question", "name": "How far away can it detect devices?", "acceptedAnswer": {"@type": "Answer", "text": "It depends on the transmitter's power, walls, bodies and your phone's antenna. Bluetooth LE from a body camera is typically heard at tens of metres in the open and much less through a vehicle or building; WiFi access points carry further. Phones with LE Coded PHY hear Bluetooth 5 long-range adverts further. An external ESP32 board with a better antenna extends range. Phone radios are weaker than dedicated hardware, so expect fewer catches than purpose-built scanners."}}, {"@type": "Question", "name": "Can it tell the distance or direction of a device?", "acceptedAnswer": {"@type": "Answer", "text": "Distance is estimated from RSSI and is often off by 2-3×. The radar view places stronger signals closer to the centre, but the angle is not a direction: a phone can't measure angle of arrival. To find a device, use Locate mode and walk: it beeps faster as the signal grows."}}, {"@type": "Question", "name": "Why does WiFi only update every 30 seconds?", "acceptedAnswer": {"@type": "Answer", "text": "Android throttles apps to about four WiFi scans per two minutes. The default 30-second interval stays within that limit. Bluetooth LE is continuous."}}, {"@type": "Question", "name": "Why doesn't it see WiFi phones, laptops or cameras connected to a network?", "acceptedAnswer": {"@type": "Answer", "text": "Android's WiFi scan only lists access points (beacons and probe responses). Client devices, such as an in-car laptop connected to the car's router, need monitor mode, which Android doesn't offer without root and a supported chip. An ESP32 board can partly fill that gap."}}, {"@type": "Question", "name": "Does it work with the screen off?", "acceptedAnswer": {"@type": "Answer", "text": "Partly. Android pauses app Bluetooth scanning while the screen is off, and on some phones (a Pixel in our tests) no Bluetooth results arrive at all until the screen is back on. WiFi, the fake-cell checks, known-camera warnings and ESP32 / USB hardware keep working. Keep the screen on for Bluetooth: the car-mount default \"keep screen on while charging\" does that while driving. Android Auto warns you when a scan starts with the phone screen off and shows \"Bluetooth limited\" on its home screen."}}, {"@type": "Question", "name": "How much battery does it use?", "acceptedAnswer": {"@type": "Answer", "text": "Continuous scanning costs battery. Settings → BLE scan mode offers Low latency (default, catches the most), Balanced and Low power , and the WiFi interval is adjustable. Auto-start in the car scans only while you drive."}}, {"@type": "Question", "name": "What can't it detect at all?", "acceptedAnswer": {"@type": "Answer", "text": "Anything that doesn't broadcast BLE or WiFi beacons: cellular-only devices (most non-Flock plate readers, LTE GPS trackers), wired cameras, radios' voice channels, radar and lidar, devices switched off or in a non-advertising state, and WiFi clients. Cameras in OpenStreetMap are covered by the map layer instead."}}, {"@type": "Question", "name": "Is there a police detector app for Android Auto?", "acceptedAnswer": {"@type": "Answer", "text": "RF Sentinel runs in Android Auto: threat headline, the next known camera on your way, recent alerts, Start/Stop and mute on the home screen, device lists with the phone's filters, cell towers, hardware status, a live OpenStreetMap map with devices, cameras and drones, OSM navigation with spoken turns, and alerts as heads-up cards through the car speakers with Mute 30 min and Ignore buttons. See Android Auto ."}}, {"@type": "Question", "name": "RF Sentinel doesn't show up in Android Auto. How do I fix it?", "acceptedAnswer": {"@type": "Answer", "text": "Android Auto hides sideloaded apps until you enable them: open Android Auto settings on the phone, tap Version ten times to unlock developer mode, open ⋮ → Developer settings and enable Unknown sources , then reinstall the APK, open RF Sentinel once on the phone, and reconnect. Also check Customize launcher for hidden apps."}}, {"@type": "Question", "name": "Can I use it with Waze or Google Maps on screen?", "acceptedAnswer": {"@type": "Answer", "text": "Yes. The floating threat bubble (needs Display over other apps) sits over any app: green when clear, orange for probable, red for strong or a follower, with the count. Tap to open, drag to move. Spoken alerts briefly lower other audio."}}, {"@type": "Question", "name": "Can it start by itself when I get in the car?", "acceptedAnswer": {"@type": "Answer", "text": "Yes. Settings → Start scanning automatically in the car : pick your car's Bluetooth. Scanning starts when the phone connects to it or to Android Auto, and stops when you leave if the car started it."}}, {"@type": "Question", "name": "Can I use an ESP32 with RF Sentinel?", "acceptedAnswer": {"@type": "Answer", "text": "Yes. Plug a board running OUI-Spy , GhostESP or ESP32 Marauder into the phone with a USB OTG cable while scanning, or pair an OUI-SPY board running the Bluetooth (App-Controlled) firmware wirelessly. Its detections merge into the list with a blue ESP32 badge. Native-USB boards (S2/S3/C3/C5/C6) and CP210x / CH340 bridges work. See ESP32 boards ."}}, {"@type": "Question", "name": "How do I pair an OUI-SPY board over Bluetooth?", "acceptedAnswer": {"@type": "Answer", "text": "Start scanning with the board on, then Settings → Pair OUI-SPY board and pick OUI-SPY-xxxx . Pair only there, not in Android's Bluetooth settings: the board keeps no pairing keys, so a phone-side bond breaks the link (the app tells you to tap Forget if it finds one)."}}, {"@type": "Question", "name": "Can I use a USB WiFi adapter like the ALFA AWUS036ACS, AWUS1900, AWUS036ACM, AWUS036H or AWUS036NHA with Android?", "acceptedAnswer": {"@type": "Answer", "text": "Yes, with RF Sentinel 2.11+. Plug an RTL8811AU / RTL8821AU adapter (e.g. AWUS036ACS) into the phone with an OTG cable while scanning and allow USB access. RF Sentinel drives it directly over Android's USB host API (no root), in receive-only monitor mode on the 2.4 GHz channels: no 30-second scan limit, longer range, and it hears client devices (laptops, phones, cameras on a network) that a phone's WiFi scan can't. The driver is ported from Wardrive Go (GPL-3.0). Since 2.12, RTL8812BU / RTL8822BU adapters (TP-Link Archer T3U, ASUS USB-AC53/AC55/AC58, Edimax EW-7822U*, generic AC1200 dongles) work too, on 2.4 and 5 GHz, with a driver ported from OpenIPC devourer (GPL-2.0); single-antenna dongles are handled automatically. With an adapter plugged in, RF Sentinel can also list the WiFi names nearby devices ask for (Menu → Requested networks) and alert when a watched name is asked for. Since 2.13, RTL8814AU (AWUS1900) and MT7612U (AWUS036ACM) adapters work on 2.4 and 5 GHz, RTL8187 (AWUS036H) and RT3070 (AWUS036NH / NEH) on 2.4 GHz, and AR9271 (AWUS036NHA) experimentally; if one misbehaves, Settings → Export USB WiFi adapter log makes a text file to send. RTL8812AU and RTL8811CU / 8821CU are recognised but not supported yet."}}, {"@type": "Question", "name": "How do I see the cell towers my Android phone is connected to?", "acceptedAnswer": {"@type": "Answer", "text": "RF Sentinel's Tools button → Cell towers lists the serving cell and its neighbours live (2G-5G, operator, MCC-MNC, area code, cell ID, PCI, channel, signal) and every tower seen while scanning. They also appear in the live list (Cells filter) and optionally on the map at the spot where the signal was strongest. An optional alert says when the serving tower changes. No online lookup is made, so nothing reveals where you are."}}, {"@type": "Question", "name": "Is there a WiFi channel and spectrum analyzer in RF Sentinel?", "acceptedAnswer": {"@type": "Answer", "text": "Yes: Tools → WiFi channels (networks and strongest signal per channel) and WiFi spectrum (each network as a curve across its channel width) for 2.4, 5 and 6 GHz, from the phone's own scans."}}, {"@type": "Question", "name": "Does it work with Flipper Zero or a WiFi Pineapple?", "acceptedAnswer": {"@type": "Answer", "text": "A Flipper Zero with an ESP32 board running Marauder (for example the BFFB) works since 2.11.1: plug the Flipper into the phone and open GPIO → USB-UART Bridge . A WiFi Pineapple isn't supported. Other supported hardware: ESP32 boards running OUI-Spy, GhostESP or Marauder, and RTL8811AU / 8821AU or RTL8812BU / 8822BU USB WiFi adapters."}}, {"@type": "Question", "name": "Can I use ESP32 Marauder or an ESP32-C5 board for 5 GHz WiFi on Android?", "acceptedAnswer": {"@type": "Answer", "text": "Yes, with RF Sentinel 2.11.1+. Plug a board running ESP32 Marauder into the phone with a USB OTG cable while scanning. RF Sentinel runs only its passive beacon and probe sniffers and adds the networks and client devices to the list. On ESP32-C5 boards (Marauder v8, BFFB v2, LilyGo T-Dongle C5, C5 DevKit) that includes 5 GHz. Keep Channel Hop on in Marauder's settings. See ESP32 boards ."}}, {"@type": "Question", "name": "Does RF Sentinel transmit or jam anything?", "acceptedAnswer": {"@type": "Answer", "text": "No. It never transmits, jams, spoofs or connects to the devices it detects. (The phone's own WiFi scan sends standard probe requests like any phone looking for networks, and an OUI-SPY board in relay mode does the same; that can be turned off.)"}}, {"@type": "Question", "name": "Can police or anyone tell I'm running it?", "acceptedAnswer": {"@type": "Answer", "text": "The app itself sends nothing to the devices it scans. Your phone, like every phone, may still advertise its own Bluetooth and probe for WiFi networks independently of RF Sentinel."}}, {"@type": "Question", "name": "What data does it collect?", "acceptedAnswer": {"@type": "Answer", "text": "None leaves the phone. No accounts, no analytics, no crash reporting. Detections are stored in a local database excluded from cloud backup. Network requests go only to OpenStreetMap services (map tiles, Overpass camera data from overpass-api.de or its mirrors, DeFlock's region files) and, in Android Auto navigation, Nominatim and OSRM. They see your IP and the area or route, never your scans."}}, {"@type": "Question", "name": "Is it legal to detect police equipment?", "acceptedAnswer": {"@type": "Answer", "text": "RF Sentinel only receives signals that devices broadcast publicly by design, and it doesn't decode private communications. Passive reception of Bluetooth and WiFi advertisements is generally lawful, but rules differ by country and state, and some places restrict use in vehicles or of radar detectors. Check your local laws. This is not legal advice."}}, {"@type": "Question", "name": "What is it meant for?", "acceptedAnswer": {"@type": "Answer", "text": "Awareness, research and personal privacy: knowing which surveillance devices are around you, finding trackers, documenting plate-reader deployments. A detection says a device with a given signature is nearby; it isn't proof of who is present or what they're doing."}}, {"@type": "Question", "name": "Is there a Watch Dogs / DedSec or Mr. Robot theme?", "acceptedAnswer": {"@type": "Answer", "text": "Yes. DedSec (Watch Dogs 2-inspired: black, white and electric blue, poster banner, sliced wordmark, a [email protected]:~$ terminal typing hacktivist lines) and fsociety (Mr. Robot-inspired: black and blood red, striped wordmark, a root@fsociety:~# terminal typing quotes from the show). Unofficial fan homages, not affiliated with Ubisoft or NBCUniversal. Eleven more themes include Night Drive (red-only HUD for night driving), Night Vision, Amber CRT, Synthwave, Tactical, Blueprint, Paper and Material You."}}, {"@type": "Question", "name": "Can I export detections?", "acceptedAnswer": {"@type": "Answer", "text": "Yes: current scan as CSV, JSON or KML; all devices ever seen as CSV or JSON; the match log as CSV, JSON, GPX or KML; GPS traces with their devices as GPX, KML, GeoJSON or CSV; the watchlist as JSON; or everything in one JSON file."}}, {"@type": "Question", "name": "Is it open source? Can I build it myself?", "acceptedAnswer": {"@type": "Answer", "text": "Yes, GPL-3.0, 100% Kotlin. Requirements: Android Studio, or JDK 17+ with the Android SDK. git clone https://github.com/CIS-C0/RFSentinel cd RFSentinel ./gradlew assembleDebug tools/gen_assets.py regenerates the offline IEEE and Bluetooth SIG databases and fails if any prefix used in code stops matching its registrant."}}, {"@type": "Question", "name": "How can I help?", "acceptedAnswer": {"@type": "Answer", "text": "Report unknown devices with the in-app report, submit sourced signatures, map cameras in OpenStreetMap / DeFlock, file bugs on GitHub , join the Discord , and star the repo so others find it."}}]}]}</script>
+<script type="application/ld+json">{"@context": "https://schema.org", "@graph": [{"@type": "BreadcrumbList", "itemListElement": [{"@type": "ListItem", "position": 1, "name": "RF Sentinel", "item": "https://cis-c0.github.io/RFSentinel/"}, {"@type": "ListItem", "position": 2, "name": "Q&A", "item": "https://cis-c0.github.io/RFSentinel/qa.html"}]}, {"@type": "FAQPage", "mainEntity": [{"@type": "Question", "name": "How do I detect police with an Android phone?", "acceptedAnswer": {"@type": "Answer", "text": "Modern police gear is full of radios that broadcast on their own: body cameras advertise over Bluetooth LE so the officer's phone and holster sensors can find them, in-car routers run WiFi access points, radios and e-ticket printers pair over Bluetooth. Any phone can receive those broadcasts without connecting to anything. RF Sentinel runs a continuous BLE scan and periodic WiFi scans, and matches every packet against vendor company IDs, service UUIDs, payload tags, network names and IEEE MAC prefixes assigned to law-enforcement equipment makers (Axon/TASER, Motorola Solutions, Digital Ally, Getac, Zebra, Flock Safety and others). When two or more kinds of police-type gear rise and fall in signal together, it flags a possible police vehicle. Install the APK , tap Start scanning , grant location and Nearby devices. See the police detection guide ."}}, {"@type": "Question", "name": "Is there an app that detects police nearby?", "acceptedAnswer": {"@type": "Answer", "text": "Yes: RF Sentinel is a free, open-source Android app that does this passively from Bluetooth LE and WiFi signals, with no root and no subscription. It detects the equipment , not people: a match means a device with a police-equipment signature is in range. Crowd-sourced apps (Waze) rely on users reporting; RF Sentinel relies only on what the hardware itself broadcasts, so it also works where nobody has reported anything."}}, {"@type": "Question", "name": "Can my phone detect a police body camera?", "acceptedAnswer": {"@type": "Answer", "text": "Often, yes. Body cameras use Bluetooth LE to pair with the officer's phone app, holster and light-bar triggers, and many advertise continuously. RF Sentinel matches: the BWCDEVICE ASCII tag in service data, manufacturer data or the raw advert, in either byte order (confidence 90, field-validated); TASER International company ID 0x034D and Axon / TASER service UUIDs 0xFC81 , 0xFE6B , 0xFE6C (60 each); Utility Inc. BodyWorn Remote names (80); IEEE MAC prefixes registered to Axon ( 00:25:DF ), Digital Ally, WatchGuard, Getac, Zepcam and others. Independent matches on the same device are fused, so an Axon camera with the company ID, UUID and prefix lands in the strong tier. Cameras that are switched off, or that only use WiFi to dock, are not visible."}}, {"@type": "Question", "name": "How do I detect Axon body cameras and TASERs?", "acceptedAnswer": {"@type": "Answer", "text": "Axon (formerly TASER International) gear is identifiable from the Bluetooth SIG company ID 0x034D , the 16-bit service UUIDs 0xFC81 (Axon Enterprise), 0xFE6B and 0xFE6C (TASER International), and the IEEE block 00:25:DF . Axon Signal Sidearm holster sensors and Signal units, which start body cameras when a gun is drawn or the light bar turns on, are Bluetooth LE too. RF Sentinel ships all of these rules on by default."}}, {"@type": "Question", "name": "Can it detect a police car or unmarked car?", "acceptedAnswer": {"@type": "Answer", "text": "Indirectly. A single Motorola radio, Zebra printer or Cradlepoint router proves nothing, because civilians use them too. RF Sentinel assigns each device a role (body camera, plate reader, two-way radio, vehicle cellular router, mobile printer, in-car computer, rugged laptop, police camera) and groups devices with at least two different roles when their RSSI moves together (Pearson r ≥ 0.6 over at least 8 aligned seconds), or when both are flat (parked) and appeared within 30 s of each other. The group is flagged \"Possible police vehicle\" at 24 + 12 × roles, +10 when the signals move together, capped at 88: two roles stay weak (48), three moving together reach 70. An unmarked car is detected the same way if its gear advertises; there is no \"unmarked car\" signal as such. Details: patrol-vehicle detection ."}}, {"@type": "Question", "name": "Can it detect police radios?", "acceptedAnswer": {"@type": "Answer", "text": "It flags radios that expose Bluetooth or WiFi: Motorola Solutions company ID 0x04EC and UUIDs 0xFD8E / 0xFE04 , plus IEEE prefixes of P25 / TETRA radio makers. Those are weak on their own (Motorola radios are also used by security guards, schools and construction crews) and become meaningful as part of a patrol-vehicle group. It does not receive the voice channels themselves. P25 and TETRA run on VHF, UHF and 700/800 MHz and are usually encrypted; a phone has no receiver for those bands. That would need a software-defined radio, and RF Sentinel never decodes or listens to radio traffic."}}, {"@type": "Question", "name": "Is RF Sentinel a radar detector? Does it detect police radar guns?", "acceptedAnswer": {"@type": "Answer", "text": "No. Police radar and lidar use X, K and Ka-band microwave or infrared laser, which a phone cannot receive. \"Police radar\" in RF Sentinel's list means the Bluetooth/WiFi signatures of radar makers' in-car units when they advertise. For fixed speed and red-light cameras, RF Sentinel uses the OpenStreetMap camera layer and warns about 30 seconds ahead."}}, {"@type": "Question", "name": "Can it detect e-ticket printers?", "acceptedAnswer": {"@type": "Answer", "text": "Yes, with care. Zebra mobile printers advertise UUIDs 0xFE79 / 0xFD66 . With a factory-serial name ( ^[A-Z0-9]{2}[A-Z]{3}\\d{9}$ ), which fleets rarely rename, the score is 50; any other name stays at 30 because the same printers are everywhere in warehouses and retail. Next to a body camera or radio moving with it, it becomes part of a patrol-vehicle group."}}, {"@type": "Question", "name": "How will I be alerted?", "acceptedAnswer": {"@type": "Answer", "text": "Matches above your alert threshold (default 50, probable) play a sound and vibrate: one pulse for weak, two for probable, three for strong. Optional spoken announcements use the phone's own text-to-speech engine, in full (\"Axon body camera nearby\") or short (\"Body cam\", \"Police car\", \"Speed camera, 50\"). There is a discreet mode, a floating threat bubble over other apps (green / orange / red with a count), a notification, a Quick Settings tile, a home-screen widget, and heads-up alerts in Android Auto."}}, {"@type": "Question", "name": "Why did it flag a device that is not police?", "acceptedAnswer": {"@type": "Answer", "text": "A match is a signature, not an identification. 00:25:DF means \"registered to Axon Enterprise\", not \"a police officer\". Some identifiers are shared with consumer products: Motorola Solutions radios are used by private security, Zebra printers by shops, Meta's company ID by Quest headsets. That is why every rule has a confidence, weak matches are amber and silent by default, and the detail screen shows the exact evidence and source. Long-press a device to whitelist it."}}, {"@type": "Question", "name": "How do I detect Flock Safety cameras?", "acceptedAnswer": {"@type": "Answer", "text": "Two ways, combined in the app: Radio signatures. Flock units and their batteries broadcast identifiable signals: WiFi SSIDs starting with Flock- (88), BLE names FS Ext Battery (80), Penguin-<digits> or FS-<hex> (70, or 80 with company ID 0x09C8 ), and the XUNTONG company ID 0x09C8 alone (45, shared silicon). The known-camera map. Flock cameras mapped by volunteers in OpenStreetMap (via DeFlock ) are downloaded and kept offline. You are warned when one is within about 20 seconds of travel and getting closer, even for cameras that only use cellular and emit nothing a phone can hear. See the Flock / ALPR guide ."}}, {"@type": "Question", "name": "How do I detect license plate readers (ALPR) on Android?", "acceptedAnswer": {"@type": "Answer", "text": "Most non-Flock plate readers (Genetec AutoVu, Motorola / Vigilant, Perceptics, Quercus, Tattile) are wired or on cellular modems and don't broadcast anything a phone can match. RF Sentinel flags them by IEEE prefix when they do expose WiFi or Bluetooth, and covers the rest with the OpenStreetMap layer: every element tagged surveillance:type=ALPR , with manufacturer, operator and direction where mapped. The Download Flock option fetches every mapped plate reader in the US and Canada (~18 MB, about 143,000 cameras, refreshed weekly on WiFi); Download nearby cameras fetches a 10-200 km radius."}}, {"@type": "Question", "name": "Can it detect Flock Raven gunshot / audio sensors?", "acceptedAnswer": {"@type": "Answer", "text": "Yes. Raven sensors advertise 128-bit service UUIDs whose short IDs fall in 0x3100 - 0x3500 , matched at confidence 80 (field capture via all-cameras-are-beacons)."}}, {"@type": "Question", "name": "Can it warn me about speed cameras and red-light cameras without Waze?", "acceptedAnswer": {"@type": "Answer", "text": "Yes. Fixed speed and red-light cameras mapped in OpenStreetMap are downloaded automatically for the area you look at and kept offline, refreshed weekly. Speed cameras warn about 30 seconds ahead, with the speed limit when it's mapped. No account, no reporting, no location sent anywhere except the area request to the Overpass API. Coverage depends on how well your area is mapped in OpenStreetMap, and mobile speed traps aren't covered."}}, {"@type": "Question", "name": "Can I silence one specific camera I pass every day?", "acceptedAnswer": {"@type": "Answer", "text": "Yes. Tap the camera on the map and choose Ignore alerts . It stays on the map, faded, and never alerts again. Alert again on the same camera, or Settings, turns it back on. Ignored cameras are kept permanently."}}, {"@type": "Question", "name": "Can I find hidden cameras with my phone?", "acceptedAnswer": {"@type": "Answer", "text": "Only cameras that use WiFi or Bluetooth. RF Sentinel has an optional (off by default) network-camera category: SSIDs starting with ARLO_VMB_ / NTGR_VMB_ (88) and IEEE blocks of Arlo, Blink, Ezviz, Uniview, Amcrest, Wyze, Swann, Night Owl, SkyBell and WUUK (65, WiFi only). Turn on the Network / home security camera category in Settings. Limits you should know: a camera that joins an existing WiFi network as a client is invisible to an Android WiFi scan (only access points are listed), and wired, SD-card-only or cellular cameras emit nothing usable. A lens-reflection or IR check finds those, not a radio app."}}, {"@type": "Question", "name": "Can it identify hidden WiFi networks?", "acceptedAnswer": {"@type": "Answer", "text": "Yes. Hidden networks still send beacons with information elements. RF Sentinel reads the WPS element (manufacturer, model name and number, device name, primary device type), the Cisco CCX AP name (IE 133), the BSSID's IEEE registrant and vendor IE owners, and links a hidden BSSID to the visible network on the same router (octets 2-5 equal, last octet within 16). Requires Android 11+ for the raw elements."}}, {"@type": "Question", "name": "How do I know if an AirTag is following me on Android?", "acceptedAnswer": {"@type": "Answer", "text": "An AirTag away from its owner switches to a \"separated\" Find My frame: Apple company ID 0x004C , type 0x12 , length 0x19 . RF Sentinel matches that frame (confidence 70), keeps tracking the tag through its address rotations, and raises a may be following you alert when it has been with you for at least 10 minutes while you moved at least 800 m (both adjustable: 2-240 minutes). Tap the device and use Locate : it beeps faster as the signal gets stronger. It reacts to the same frame Android's built-in unknown-tracker alerts use, but shows it live, with history and a signal graph, instead of after hours."}}, {"@type": "Question", "name": "Does it detect Tile, Samsung SmartTag and Google Find Hub trackers?", "acceptedAnswer": {"@type": "Answer", "text": "Yes. Google Find Hub tags via 0xFEAA service data frame 0x41 (separated; frame 0x40 means near the owner and is ignored), Samsung SmartTag via 0xFD5A and Tile via 0xFEED service data (55). All feed the same follow detection."}}, {"@type": "Question", "name": "Can it find a GPS tracker hidden on my car?", "acceptedAnswer": {"@type": "Answer", "text": "Only Bluetooth trackers (AirTag, SmartTag, Tile, Find Hub tags). LTE / GSM GPS trackers report over the cellular network and don't broadcast anything a phone can identify. For those, a physical inspection or a dedicated RF sweep is needed."}}, {"@type": "Question", "name": "My own AirTag keeps showing up. How do I ignore it?", "acceptedAnswer": {"@type": "Answer", "text": "Long-press it and ignore it. The ignore follows the tag when its address changes: it is carried over through the advert fingerprint link, so you don't have to ignore it again after each rotation. To leave every Apple Find My tag out of the Trackers category, turn on Settings → Exclude Apple AirTags (also in Android Auto → More); Google Find Hub, SmartTag and Tile trackers still alert."}}, {"@type": "Question", "name": "How do I detect drones near me with my phone?", "acceptedAnswer": {"@type": "Answer", "text": "Drones sold since FAA / EU Remote ID rules must broadcast an ASTM F3411 Remote ID signal over Bluetooth (service data 0xFFFA , app code 0x0D ) or WiFi (vendor IE OUI FA:0B:BC , type 0x0D ). RF Sentinel decodes it (confidence 95), places the drone on the map with heading, altitude and speed, and raises a \"drone overhead\" alert when it is within 200 m horizontally (once per drone per 5 minutes). Drone makers' own IEEE blocks (DJI, Parrot, Skydio, Autel, Yuneec...) are also matched at 60. See the drone guide ."}}, {"@type": "Question", "name": "Can I see where the drone pilot is?", "acceptedAnswer": {"@type": "Answer", "text": "When the drone's Remote ID includes the System message, yes: Remote ID carries the operator (or take-off) position. The detail screen shows it, and you can open both the drone and operator positions in your maps app. Remote ID also carries the serial number and, where used, an operator ID."}}, {"@type": "Question", "name": "Does it detect police drones?", "acceptedAnswer": {"@type": "Answer", "text": "It detects any drone that broadcasts Remote ID, which includes most police drones (DJI, Skydio, Autel) under current rules. It can't tell who operates it unless the operator ID says so. Exempt or modified drones that don't broadcast Remote ID are not detected."}}, {"@type": "Question", "name": "How do I detect a Stingray or IMSI catcher on Android without root?", "acceptedAnswer": {"@type": "Answer", "text": "Without root, Android exposes the cells your phone sees (network codes, cell IDs, area codes, radio technology, signal) but not ciphering or signalling messages. RF Sentinel reads them every 15 s and looks for the signs a cell-site simulator leaves in that data: serving cell on a test / reserved MCC (001, 002, 999): 85; sudden switch from 4G/5G to 2G while strong LTE is still visible (the visible side of the 2G downgrade EFF's Rayhunter watches for): 70; a known cell number appearing in a different area (cloned identity), a reserved area code (0, 0xFFFE, 0xFFFF) or cell ID 0; a network country code that doesn't match the SIM while not roaming; the location area changing while GPS shows you standing still, a new cell with no neighbours. A sign must persist across two checks; 2G drops during calls and area codes flipping at coverage borders are ignored. Several signs together score max + 15, capped at 90. See the IMSI catcher guide ."}}, {"@type": "Question", "name": "How reliable is fake cell tower detection on a phone?", "acceptedAnswer": {"@type": "Answer", "text": "It is heuristic. Each sign has innocent explanations (network maintenance, rural 2G, carrier misconfiguration), and a well-configured simulator copying a real cell's identity shows few of them. Treat it as a warning to look closer, not proof. The strongest protection is turning off Allow 2G in your SIM settings (Android 12+), and on Android 15+ enabling Cellular security → Network notifications , which warns when a network asks for your SIM identity or turns off encryption. RF Sentinel's Settings links there."}}, {"@type": "Question", "name": "How does this compare with EFF's Rayhunter?", "acceptedAnswer": {"@type": "Answer", "text": "Rayhunter runs on a cheap mobile hotspot with root access to the modem's signalling (QMDL / diag), so it sees identity requests and ciphering changes directly. A normal Android app can't. RF Sentinel implements the parts of that analysis visible through Android's public cell APIs (2G downgrade, identity anomalies) and points to Android 15's own network notifications for the rest. For the strongest detection, use Rayhunter hardware alongside."}}, {"@type": "Question", "name": "How do I detect Ray-Ban Meta smart glasses nearby?", "acceptedAnswer": {"@type": "Answer", "text": "Ray-Ban Meta glasses advertise over Bluetooth LE. RF Sentinel matches Luxottica's company ID 0x0D53 (70), company ID 0x058E together with the META_RB_GLASS token (72), and Meta's corporate company ID 0x01AB / UUIDs 0xFEB7 / 0xFEB8 (45, because Quest headsets share them). Snap Spectacles ( 0x03C2 ), Vuzix ( 0x060C ) and HeyCyan-SDK glasses (full 128-bit UUID) are matched too. See the smart glasses guide ."}}, {"@type": "Question", "name": "Can it tell if the glasses are recording?", "acceptedAnswer": {"@type": "Answer", "text": "No. It tells you the glasses are near you and advertising. Recording state is not part of the advertisement."}}, {"@type": "Question", "name": "How can I get s0phia ops (SØPHIA) for free?", "acceptedAnswer": {"@type": "Answer", "text": "SØPHIA is a paid product sold by its own developer, and this site doesn't distribute it or any copy of it. If what you want is the same kind of tool for free, RF Sentinel is a free, open-source (GPL-3.0) alternative: passive Bluetooth LE and WiFi scanning for police gear, plate-reader cameras, trackers and drones, installed as a signed APK, no account. Comparison: RF Sentinel vs SØPHIA ."}}, {"@type": "Question", "name": "Is there a free alternative to SØPHIA / SophiaOps?", "acceptedAnswer": {"@type": "Answer", "text": "Yes. RF Sentinel covers passive BLE and WiFi recon with a radar view, risk scoring and a timeline, and adds sourced police, ALPR, tracker, Remote ID and smart-glasses signatures, patrol-vehicle grouping, fake cell tower signs, an offline camera map and Android Auto. It costs nothing and the full source is on GitHub . RF Sentinel is independent and not affiliated with SØPHIA or DetecX."}}, {"@type": "Question", "name": "Do I need Termux to scan for police on Android?", "acceptedAnswer": {"@type": "Answer", "text": "Not with RF Sentinel. It is a regular Android app using the public BLE scan and WiFi scan APIs, so there's no Termux, Termux:API, Python or shell setup."}}, {"@type": "Question", "name": "How is it different from RF Party, BLE Radar (MetaRadar) or Flock You?", "acceptedAnswer": {"@type": "Answer", "text": "RF Party (based on Alan Meekins' DEF CON 31 talk) and BLE Radar are general Bluetooth scanners: they list and track devices, with fewer police-specific rules. Flock You and OUI-Spy are ESP32 firmware focused on Flock and watchlist matching. RF Sentinel combines a sourced signature set (each rule cites the IEEE registry, Bluetooth SIG or published research), evidence fusion, patrol-vehicle grouping, WiFi and cell analysis, the OpenStreetMap camera layer and Android Auto in one Android app, and can ingest OUI-Spy and GhostESP boards. No code from those projects is included."}}, {"@type": "Question", "name": "Is there a Flock You app for Android? (Flock You alternative)", "acceptedAnswer": {"@type": "Answer", "text": "Yes: RF Sentinel detects Flock Safety cameras on an Android phone with no extra hardware, and can also read a Flock You / OUI-Spy ESP32 board. Details Flock You is open-source (MIT) ESP32 firmware focused on one target: Flock Safety cameras. It runs the radio in 2.4 GHz promiscuous mode, so it sees Flock cameras' WiFi probe requests and SoftAPs that a phone can't, plus Flock battery-pack BLE adverts, and beeps or feeds a dashboard. RF Sentinel is a phone app that covers Flock as one category among many (body cams, patrol gear, trackers, drones, glasses, fake cell towers) and adds the OpenStreetMap / DeFlock camera map for cellular-only cameras. They combine well: plug an ESP32 running OUI-Spy's Flock-You mode into the phone and RF Sentinel shows its Flock detections next to its own. See ESP32 boards ."}}, {"@type": "Question", "name": "Which Android app works with OUI-Spy? (OUI-Spy app for Android)", "acceptedAnswer": {"@type": "Answer", "text": "RF Sentinel connects to OUI-Spy boards over USB OTG or Bluetooth and merges their detections with the phone's own. Setup OUI-Spy is ESP32 firmware for the XIAO ESP32-S3 with several modes (Detector, Flock-You, Foxhunter, Sky Spy), a buzzer and LED, and a web flasher. OUI-APEX (lukeswitz's fork) runs those engines from one firmware and pairs with its own cross-platform app. It isn't either/or: RF Sentinel reads OUI-Spy boards over USB, and OUI-SPY App-Controlled boards over Bluetooth, and merges their detections with the phone's own (blue ESP32 badge). The board gives range and radio modes a phone lacks; RF Sentinel adds its rule set, patrol-vehicle grouping, the camera map, alerts and Android Auto."}}, {"@type": "Question", "name": "Wardrive Go alternative: what's the difference with RF Sentinel?", "acceptedAnswer": {"@type": "Answer", "text": "Wardrive Go (GPL-3.0, Android) is a wardriving app: it maps WiFi, Bluetooth and cellular networks, uploads to WiGLE and WDGWars, supports USB monitor-mode WiFi adapters and has channel / spectrum analyzers, Android Auto and a Wear OS companion. It also flags Flock cameras and Axon body cams. RF Sentinel is built around detection and alerting rather than mapping for upload: sourced signatures with confidence tiers, evidence fusion, patrol-vehicle grouping, follower alerts, Remote ID decoding, fake-cell signs and warnings before mapped cameras. Use Wardrive Go to contribute to WiGLE; use RF Sentinel to be warned while you drive. Some of RF Sentinel's prefix data was cross-checked with Wardrive Go's lists."}}, {"@type": "Question", "name": "Fieldwatch alternative for detecting police and surveillance gear", "acceptedAnswer": {"@type": "Answer", "text": "Fieldwatch (MIT, Android) is a receive-only WiFi and Bluetooth LE observer with customizable views, a filtering engine, an extensible signature library and reports, fully offline. It's a general field-survey tool. RF Sentinel shares the receive-only, offline approach but is tuned for surveillance and police gear: alert tiers, patrol-vehicle grouping, tracker follow detection, drone and cell analysis, the camera map and Android Auto. Part of RF Sentinel's prefix data was cross-checked with Fieldwatch's list."}}, {"@type": "Question", "name": "SØPHIA vs RF Sentinel: what's the difference?", "acceptedAnswer": {"@type": "Answer", "text": "SØPHIA is a closed-source passive BLE and WiFi recon app for Android sold by DetecX. RF Sentinel does the same kind of passive WiFi and Bluetooth recon for free and open source, with police, ALPR, tracker, drone and fake-cell detection, a camera map and Android Auto. Full comparison: RF Sentinel vs SØPHIA ."}}, {"@type": "Question", "name": "Flock-You for Android alternative", "acceptedAnswer": {"@type": "Answer", "text": "Flock-You (Android) is a separate counter-surveillance app with broad multi-protocol ambitions (BLE, WiFi, cellular, GNSS, ultrasonic) and Flipper Zero integration. RF Sentinel stays with what a phone's radios can verify, cites a source for every rule, and connects to ESP32 boards instead of a Flipper. Part of RF Sentinel's prefix data was cross-checked with its list."}}, {"@type": "Question", "name": "Best app to detect surveillance over both Bluetooth and WiFi (instead of AirGuard, BLE Radar, WiFi analyzers)", "acceptedAnswer": {"@type": "Answer", "text": "Many good tools cover one radio or one job: Bluetooth only: AirGuard (AirTag / Find My tracker protection), BLE Radar (MetaRadar) (BLE environment monitoring and custom filters), nRF Connect (a developer's BLE scanner), RF Party (BLE from the DEF CON 31 talk). WiFi only: WiFi analyzer apps show access points and channels but don't identify police or surveillance gear. Cell only: EFF's Rayhunter (IMSI catcher detection on dedicated hardware). Mapping: WiGLE WiFi Wardriving and Wardrive Go map networks for upload. RF Sentinel puts Bluetooth LE, WiFi and cell analysis in one app, so evidence from different radios can add up (e.g. a router, a radio and a printer moving together = possible police vehicle). A single-radio tool can't make that connection."}}, {"@type": "Question", "name": "Is there an iPhone version?", "acceptedAnswer": {"@type": "Answer", "text": "No. iOS hides Bluetooth MAC addresses and most advertisement fields from apps, offers no WiFi scan API, and doesn't expose cell information, so most of RF Sentinel's detection can't run there. It is Android only."}}, {"@type": "Question", "name": "Is RF Sentinel free? Are there ads or in-app purchases?", "acceptedAnswer": {"@type": "Answer", "text": "Free, no ads, no in-app purchases, no subscription, no account. Licensed GPL-3.0."}}, {"@type": "Question", "name": "Is it on Google Play or F-Droid?", "acceptedAnswer": {"@type": "Answer", "text": "Not currently. The signed APK is published on GitHub Releases for every version. See the install guide ."}}, {"@type": "Question", "name": "How do I install the APK?", "acceptedAnswer": {"@type": "Answer", "text": "On the phone, open the latest release . Under Assets , tap the file ending in -release.apk (not \"Source code\"). Open the downloaded file from the notification or Files → Downloads. If Android blocks it, tap Settings , enable Allow from this source , go back and tap Install . Open RF Sentinel. The setup wizard covers theme, region, alerts, camera download radius and permissions."}}, {"@type": "Question", "name": "Is the APK safe?", "acceptedAnswer": {"@type": "Answer", "text": "The full source is public, every release is signed with the same release key (Android refuses an update signed with a different key), and you can build it yourself with ./gradlew assembleDebug . The app requests no contacts, storage, camera or microphone permissions. Play Protect may warn about any app installed outside Google Play; that warning is about the install source, not a scan result."}}, {"@type": "Question", "name": "How do I update?", "acceptedAnswer": {"@type": "Answer", "text": "Install the newer APK over the existing one. Settings, history and watchlist are kept."}}, {"@type": "Question", "name": "Which Android versions and phones are supported?", "acceptedAnswer": {"@type": "Answer", "text": "Android 8.0 (API 26) and newer, on any phone with Bluetooth LE: Pixel, Samsung, Motorola, OnePlus, Xiaomi and others. Hidden-network WiFi details need Android 11+. Bluetooth 5 extended advertising and LE Coded PHY (long range) are used automatically where the chip supports them."}}, {"@type": "Question", "name": "Does it need root?", "acceptedAnswer": {"@type": "Answer", "text": "No. Everything uses public Android APIs."}}, {"@type": "Question", "name": "Why does it ask for location?", "acceptedAnswer": {"@type": "Answer", "text": "Android ties Bluetooth and WiFi scan results to the location permission (up to Android 11 always, and still for WiFi scans and cell info). RF Sentinel also uses GPS for traces, follow detection and camera warnings. Nearby devices (Bluetooth scan) is required; notifications, Display over other apps (bubble) and Nearby devices → connect (only to list your paired car) are optional."}}, {"@type": "Question", "name": "Scanning stops on Samsung / Xiaomi / OnePlus. What do I do?", "acceptedAnswer": {"@type": "Answer", "text": "Some manufacturers kill background apps aggressively. Scanning runs as a foreground service with a notification, but you may still need to set RF Sentinel's battery usage to Unrestricted . Settings has a shortcut to Android's battery optimization screen."}}, {"@type": "Question", "name": "How does passive Bluetooth LE detection work?", "acceptedAnswer": {"@type": "Answer", "text": "BLE devices broadcast advertising packets on channels 37, 38 and 39 so other devices can find them. Each packet carries an address, flags and optional fields: device name, 16/128-bit service UUIDs, service data, manufacturer data with a Bluetooth SIG company ID, TX power. RF Sentinel receives these through Android's BluetoothLeScanner and matches every field against its rules. It never connects, so the device never knows it was seen."}}, {"@type": "Question", "name": "What is a MAC vendor prefix (OUI) and why does it matter?", "acceptedAnswer": {"@type": "Answer", "text": "The first 3 bytes of a public MAC address (MA-L), or 3.5 / 4.5 bytes for MA-M / MA-S blocks, are assigned by the IEEE to a company. If a device uses its public address, the prefix reveals the maker, e.g. 00:25:DF is Axon Enterprise. RF Sentinel ships the IEEE registry offline and regional watchlist presets (Global, Canada, US) of law-enforcement and surveillance makers, each prefix re-checked against its registrant. Devices using random private addresses defeat prefix matching, which is why payload signatures and fingerprint linking matter more."}}, {"@type": "Question", "name": "What do weak, probable and strong mean?", "acceptedAnswer": {"@type": "Answer", "text": "Tier Confidence Meaning Weak (verify) < 50 Identifier shared with many unrelated products. Amber, silent by default. Probable 50-79 Vendor-specific identifier. Alerts at the default threshold. Strong 80+ Payload tag, or a network name the vendor gives its own devices."}}, {"@type": "Question", "name": "What is evidence fusion?", "acceptedAnswer": {"@type": "Answer", "text": "When different rules of the same category match one device, the scores combine by noisy-OR, with each supporting hit discounted by half because rules often share evidence: 1 - (1 - top) × Π(1 - 0.5 × support) . Hits under 30 never corroborate, and fusion never exceeds 90. Example: watchlisted address 70 + Zebra serial name 50 → 78."}}, {"@type": "Question", "name": "Devices change their Bluetooth address. How does it keep track?", "acceptedAnswer": {"@type": "Answer", "text": "A structural advert fingerprint survives address rotation: names, service UUIDs, service-data and company-ID payload sizes, TX power and connectable flag. When a new private address appears with the same fingerprint as exactly one device that went silent 1.5-30 s earlier, it inherits that device's matches (at −5), follow history and ignore state. Apple-Continuity-only adverts (phones) are never linked, and two identical candidates means no link."}}, {"@type": "Question", "name": "Can I add my own devices or signatures?", "acceptedAnswer": {"@type": "Answer", "text": "Yes. The watchlist takes exact addresses, vendor prefixes (MA-L / MA-M / MA-S) and name or vendor rules, each with a label and score, plus the regional presets. It exports as JSON. Long-press any device to add it."}}, {"@type": "Question", "name": "I found an unidentified device. How do I report it?", "acceptedAnswer": {"@type": "Answer", "text": "Long-press it → Report unknown device . The report shows exactly what is shared before you send it: vendor prefix, name pattern with serial digits hidden, service and manufacturer IDs. No full address, serial, location or time. Paste it into a GitHub issue or share it on Discord . New signatures need a registry or published source; guesses aren't merged."}}, {"@type": "Question", "name": "How far away can it detect devices?", "acceptedAnswer": {"@type": "Answer", "text": "It depends on the transmitter's power, walls, bodies and your phone's antenna. Bluetooth LE from a body camera is typically heard at tens of metres in the open and much less through a vehicle or building; WiFi access points carry further. Phones with LE Coded PHY hear Bluetooth 5 long-range adverts further. An external ESP32 board with a better antenna extends range. Phone radios are weaker than dedicated hardware, so expect fewer catches than purpose-built scanners."}}, {"@type": "Question", "name": "Can it tell the distance or direction of a device?", "acceptedAnswer": {"@type": "Answer", "text": "Distance is estimated from RSSI and is often off by 2-3×. The radar view places stronger signals closer to the centre, but the angle is not a direction: a phone can't measure angle of arrival. To find a device, use Locate mode and walk: it beeps faster as the signal grows."}}, {"@type": "Question", "name": "Why does WiFi only update every 30 seconds?", "acceptedAnswer": {"@type": "Answer", "text": "Android throttles apps to about four WiFi scans per two minutes. The default 30-second interval stays within that limit. Bluetooth LE is continuous."}}, {"@type": "Question", "name": "Why doesn't it see WiFi phones, laptops or cameras connected to a network?", "acceptedAnswer": {"@type": "Answer", "text": "Android's WiFi scan only lists access points (beacons and probe responses). Client devices, such as an in-car laptop connected to the car's router, need monitor mode, which Android doesn't offer without root and a supported chip. An ESP32 board can partly fill that gap."}}, {"@type": "Question", "name": "Does it work with the screen off?", "acceptedAnswer": {"@type": "Answer", "text": "Partly. Android pauses app Bluetooth scanning while the screen is off, and on some phones (a Pixel in our tests) no Bluetooth results arrive at all until the screen is back on. WiFi, the fake-cell checks, known-camera warnings and ESP32 / USB hardware keep working. Keep the screen on for Bluetooth: the car-mount default \"keep screen on while charging\" does that while driving. Android Auto warns you when a scan starts with the phone screen off and shows \"Bluetooth limited\" on its home screen."}}, {"@type": "Question", "name": "How much battery does it use?", "acceptedAnswer": {"@type": "Answer", "text": "Continuous scanning costs battery. Settings → BLE scan mode offers Low latency (default, catches the most), Balanced and Low power , and the WiFi interval is adjustable. Auto-start in the car scans only while you drive."}}, {"@type": "Question", "name": "What can't it detect at all?", "acceptedAnswer": {"@type": "Answer", "text": "Anything that doesn't broadcast BLE or WiFi beacons: cellular-only devices (most non-Flock plate readers, LTE GPS trackers), wired cameras, radios' voice channels, radar and lidar, devices switched off or in a non-advertising state, and WiFi clients. Cameras in OpenStreetMap are covered by the map layer instead."}}, {"@type": "Question", "name": "Is there a police detector app for Android Auto?", "acceptedAnswer": {"@type": "Answer", "text": "RF Sentinel runs in Android Auto: threat headline, the next known camera on your way, recent alerts, Start/Stop and mute on the home screen, device lists with the phone's filters, cell towers, hardware status, a live OpenStreetMap map with devices, cameras and drones, OSM navigation with spoken turns, and alerts as heads-up cards through the car speakers with Mute 30 min and Ignore buttons. See Android Auto ."}}, {"@type": "Question", "name": "RF Sentinel doesn't show up in Android Auto. How do I fix it?", "acceptedAnswer": {"@type": "Answer", "text": "In a real car, Android Auto only shows apps built with Google's Car App Library, like RF Sentinel, when they were installed from a trusted store (Google Play or ONE store). Its Unknown sources developer setting covers media and messaging apps, not these ( Google's testing guide ), so the GitHub APK's car screens can't appear there; they run on Google's Desktop Head Unit emulator. It still works in the car through the app types that setting covers: in Android Auto settings tap Version ten times, open ⋮ → Developer settings , enable Unknown sources and reconnect. RF Sentinel then shows a media-style screen (threats, cameras, alerts, status, with Scan and Mute buttons), and each alert arrives as a message you can have read aloud; reply \"mute\" to silence alerts for 30 minutes. Tick it under Customize launcher if it's missing."}}, {"@type": "Question", "name": "Can I use it with Waze or Google Maps on screen?", "acceptedAnswer": {"@type": "Answer", "text": "Yes. The floating threat bubble (needs Display over other apps) sits over any app: green when clear, orange for probable, red for strong or a follower, with the count. Tap to open, drag to move. Spoken alerts briefly lower other audio."}}, {"@type": "Question", "name": "Can it start by itself when I get in the car?", "acceptedAnswer": {"@type": "Answer", "text": "Yes. Settings → Start scanning automatically in the car : pick your car's Bluetooth. Scanning starts when the phone connects to it or to Android Auto, and stops when you leave if the car started it."}}, {"@type": "Question", "name": "Can I use an ESP32 with RF Sentinel?", "acceptedAnswer": {"@type": "Answer", "text": "Yes. Plug a board running OUI-Spy , GhostESP or ESP32 Marauder into the phone with a USB OTG cable while scanning, or pair an OUI-SPY board running the Bluetooth (App-Controlled) firmware wirelessly. Its detections merge into the list with a blue ESP32 badge. Native-USB boards (S2/S3/C3/C5/C6) and CP210x / CH340 bridges work. See ESP32 boards ."}}, {"@type": "Question", "name": "How do I pair an OUI-SPY board over Bluetooth?", "acceptedAnswer": {"@type": "Answer", "text": "Start scanning with the board on, then Settings → Pair OUI-SPY board and pick OUI-SPY-xxxx . Pair only there, not in Android's Bluetooth settings: the board keeps no pairing keys, so a phone-side bond breaks the link (the app tells you to tap Forget if it finds one)."}}, {"@type": "Question", "name": "Can I use a USB WiFi adapter like the ALFA AWUS036ACS, AWUS1900, AWUS036ACM, AWUS036H or AWUS036NHA with Android?", "acceptedAnswer": {"@type": "Answer", "text": "Yes, with RF Sentinel 2.11+. Plug an RTL8811AU / RTL8821AU adapter (e.g. AWUS036ACS) into the phone with an OTG cable while scanning and allow USB access. RF Sentinel drives it directly over Android's USB host API (no root), in receive-only monitor mode on the 2.4 GHz channels: no 30-second scan limit, longer range, and it hears client devices (laptops, phones, cameras on a network) that a phone's WiFi scan can't. The driver is ported from Wardrive Go (GPL-3.0). Since 2.12, RTL8812BU / RTL8822BU adapters (TP-Link Archer T3U, ASUS USB-AC53/AC55/AC58, Edimax EW-7822U*, generic AC1200 dongles) work too, on 2.4 and 5 GHz, with a driver ported from OpenIPC devourer (GPL-2.0); single-antenna dongles are handled automatically. With an adapter plugged in, RF Sentinel can also list the WiFi names nearby devices ask for (Menu → Requested networks) and alert when a watched name is asked for. Since 2.13, RTL8814AU (AWUS1900) and MT7612U (AWUS036ACM) adapters work on 2.4 and 5 GHz, RTL8187 (AWUS036H) and RT3070 (AWUS036NH / NEH) on 2.4 GHz, and AR9271 (AWUS036NHA) experimentally; if one misbehaves, Settings → Export USB WiFi adapter log makes a text file to send. RTL8812AU and RTL8811CU / 8821CU are recognised but not supported yet."}}, {"@type": "Question", "name": "How do I see the cell towers my Android phone is connected to?", "acceptedAnswer": {"@type": "Answer", "text": "RF Sentinel's Tools button → Cell towers lists the serving cell and its neighbours live (2G-5G, operator, MCC-MNC, area code, cell ID, PCI, channel, signal) and every tower seen while scanning. They also appear in the live list (Cells filter) and optionally on the map at the spot where the signal was strongest. An optional alert says when the serving tower changes. No online lookup is made, so nothing reveals where you are."}}, {"@type": "Question", "name": "Is there a WiFi channel and spectrum analyzer in RF Sentinel?", "acceptedAnswer": {"@type": "Answer", "text": "Yes: Tools → WiFi channels (networks and strongest signal per channel) and WiFi spectrum (each network as a curve across its channel width) for 2.4, 5 and 6 GHz, from the phone's own scans."}}, {"@type": "Question", "name": "Does it work with Flipper Zero or a WiFi Pineapple?", "acceptedAnswer": {"@type": "Answer", "text": "A Flipper Zero with an ESP32 board running Marauder (for example the BFFB) works since 2.11.1: plug the Flipper into the phone and open GPIO → USB-UART Bridge . A WiFi Pineapple isn't supported. Other supported hardware: ESP32 boards running OUI-Spy, GhostESP or Marauder, and RTL8811AU / 8821AU or RTL8812BU / 8822BU USB WiFi adapters."}}, {"@type": "Question", "name": "Can I use ESP32 Marauder or an ESP32-C5 board for 5 GHz WiFi on Android?", "acceptedAnswer": {"@type": "Answer", "text": "Yes, with RF Sentinel 2.11.1+. Plug a board running ESP32 Marauder into the phone with a USB OTG cable while scanning. RF Sentinel runs only its passive beacon and probe sniffers and adds the networks and client devices to the list. On ESP32-C5 boards (Marauder v8, BFFB v2, LilyGo T-Dongle C5, C5 DevKit) that includes 5 GHz. Keep Channel Hop on in Marauder's settings. See ESP32 boards ."}}, {"@type": "Question", "name": "Does RF Sentinel transmit or jam anything?", "acceptedAnswer": {"@type": "Answer", "text": "No. It never transmits, jams, spoofs or connects to the devices it detects. (The phone's own WiFi scan sends standard probe requests like any phone looking for networks, and an OUI-SPY board in relay mode does the same; that can be turned off.)"}}, {"@type": "Question", "name": "Can police or anyone tell I'm running it?", "acceptedAnswer": {"@type": "Answer", "text": "The app itself sends nothing to the devices it scans. Your phone, like every phone, may still advertise its own Bluetooth and probe for WiFi networks independently of RF Sentinel."}}, {"@type": "Question", "name": "What data does it collect?", "acceptedAnswer": {"@type": "Answer", "text": "None leaves the phone. No accounts, no analytics, no crash reporting. Detections are stored in a local database excluded from cloud backup. Network requests go only to OpenStreetMap services (map tiles, Overpass camera data from overpass-api.de or its mirrors, DeFlock's region files) and, in Android Auto navigation, Nominatim and OSRM. They see your IP and the area or route, never your scans."}}, {"@type": "Question", "name": "Is it legal to detect police equipment?", "acceptedAnswer": {"@type": "Answer", "text": "RF Sentinel only receives signals that devices broadcast publicly by design, and it doesn't decode private communications. Passive reception of Bluetooth and WiFi advertisements is generally lawful, but rules differ by country and state, and some places restrict use in vehicles or of radar detectors. Check your local laws. This is not legal advice."}}, {"@type": "Question", "name": "What is it meant for?", "acceptedAnswer": {"@type": "Answer", "text": "Awareness, research and personal privacy: knowing which surveillance devices are around you, finding trackers, documenting plate-reader deployments. A detection says a device with a given signature is nearby; it isn't proof of who is present or what they're doing."}}, {"@type": "Question", "name": "Is there a Watch Dogs / DedSec or Mr. Robot theme?", "acceptedAnswer": {"@type": "Answer", "text": "Yes. DedSec (Watch Dogs 2-inspired: black, white and electric blue, poster banner, sliced wordmark, a [email protected]:~$ terminal typing hacktivist lines) and fsociety (Mr. Robot-inspired: black and blood red, striped wordmark, a root@fsociety:~# terminal typing quotes from the show). Unofficial fan homages, not affiliated with Ubisoft or NBCUniversal. Eleven more themes include Night Drive (red-only HUD for night driving), Night Vision, Amber CRT, Synthwave, Tactical, Blueprint, Paper and Material You."}}, {"@type": "Question", "name": "Can I export detections?", "acceptedAnswer": {"@type": "Answer", "text": "Yes: current scan as CSV, JSON or KML; all devices ever seen as CSV or JSON; the match log as CSV, JSON, GPX or KML; GPS traces with their devices as GPX, KML, GeoJSON or CSV; the watchlist as JSON; or everything in one JSON file."}}, {"@type": "Question", "name": "Is it open source? Can I build it myself?", "acceptedAnswer": {"@type": "Answer", "text": "Yes, GPL-3.0, 100% Kotlin. Requirements: Android Studio, or JDK 17+ with the Android SDK. git clone https://github.com/CIS-C0/RFSentinel cd RFSentinel ./gradlew assembleDebug tools/gen_assets.py regenerates the offline IEEE and Bluetooth SIG databases and fails if any prefix used in code stops matching its registrant."}}, {"@type": "Question", "name": "How can I help?", "acceptedAnswer": {"@type": "Answer", "text": "Report unknown devices with the in-app report, submit sourced signatures, map cameras in OpenStreetMap / DeFlock, file bugs on GitHub , join the Discord , and star the repo so others find it."}}]}]}</script>
</head>
<body>
<a class="skip" href="#main">Skip to content</a>
@@ -621,7 +621,7 @@
<details class="faq" id="android-auto-missing">
<summary>RF Sentinel doesn't show up in Android Auto. How do I fix it?</summary>
<div>
-<p>Android Auto hides sideloaded apps until you enable them: open Android Auto settings on the phone, tap <b>Version</b> ten times to unlock developer mode, open <b>⋮ → Developer settings</b> and enable <b>Unknown sources</b>, then reinstall the APK, open RF Sentinel once on the phone, and reconnect. Also check <b>Customize launcher</b> for hidden apps.</p>
+<p>In a real car, Android Auto only shows apps built with Google's Car App Library, like RF Sentinel, when they were installed from a trusted store (Google Play or ONE store). Its <b>Unknown sources</b> developer setting covers media and messaging apps, not these (<a href="https://developer.android.com/training/cars/testing#real-vehicles">Google's testing guide</a>), so the GitHub APK's car screens can't appear there; they run on Google's Desktop Head Unit emulator. It still works in the car through the app types that setting covers: in Android Auto settings tap <b>Version</b> ten times, open <b>⋮ → Developer settings</b>, enable <b>Unknown sources</b> and reconnect. RF Sentinel then shows a media-style screen (threats, cameras, alerts, status, with Scan and Mute buttons), and each alert arrives as a message you can have read aloud; reply "mute" to silence alerts for 30 minutes. Tick it under <b>Customize launcher</b> if it's missing.</p>
</div>
</details>
diff --git a/docs/sitemap.xml b/docs/sitemap.xml
index 73cac4d..8f96202 100644
--- a/docs/sitemap.xml
+++ b/docs/sitemap.xml
@@ -1,17 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
- <url><loc>https://cis-c0.github.io/RFSentinel/alternatives.html</loc><lastmod>2026-10-04</lastmod><priority>0.8</priority></url>
- <url><loc>https://cis-c0.github.io/RFSentinel/android-auto.html</loc><lastmod>2026-10-04</lastmod><priority>0.8</priority></url>
- <url><loc>https://cis-c0.github.io/RFSentinel/drone-detector.html</loc><lastmod>2026-10-04</lastmod><priority>0.8</priority></url>
- <url><loc>https://cis-c0.github.io/RFSentinel/esp32.html</loc><lastmod>2026-10-04</lastmod><priority>0.8</priority></url>
- <url><loc>https://cis-c0.github.io/RFSentinel/flock-camera-detector.html</loc><lastmod>2026-10-04</lastmod><priority>0.8</priority></url>
- <url><loc>https://cis-c0.github.io/RFSentinel/how-it-works.html</loc><lastmod>2026-10-04</lastmod><priority>0.8</priority></url>
- <url><loc>https://cis-c0.github.io/RFSentinel/imsi-catcher-detector.html</loc><lastmod>2026-10-04</lastmod><priority>0.8</priority></url>
- <url><loc>https://cis-c0.github.io/RFSentinel/</loc><lastmod>2026-10-04</lastmod><priority>1.0</priority></url>
- <url><loc>https://cis-c0.github.io/RFSentinel/install.html</loc><lastmod>2026-10-04</lastmod><priority>0.8</priority></url>
- <url><loc>https://cis-c0.github.io/RFSentinel/police-detector.html</loc><lastmod>2026-10-04</lastmod><priority>0.8</priority></url>
- <url><loc>https://cis-c0.github.io/RFSentinel/qa.html</loc><lastmod>2026-10-04</lastmod><priority>0.9</priority></url>
- <url><loc>https://cis-c0.github.io/RFSentinel/smart-glasses-detector.html</loc><lastmod>2026-10-04</lastmod><priority>0.8</priority></url>
- <url><loc>https://cis-c0.github.io/RFSentinel/sophia-alternative.html</loc><lastmod>2026-10-04</lastmod><priority>0.8</priority></url>
- <url><loc>https://cis-c0.github.io/RFSentinel/tracker-detector.html</loc><lastmod>2026-10-04</lastmod><priority>0.8</priority></url>
+ <url><loc>https://cis-c0.github.io/RFSentinel/alternatives.html</loc><lastmod>2026-10-05</lastmod><priority>0.8</priority></url>
+ <url><loc>https://cis-c0.github.io/RFSentinel/android-auto.html</loc><lastmod>2026-10-05</lastmod><priority>0.8</priority></url>
+ <url><loc>https://cis-c0.github.io/RFSentinel/drone-detector.html</loc><lastmod>2026-10-05</lastmod><priority>0.8</priority></url>
+ <url><loc>https://cis-c0.github.io/RFSentinel/esp32.html</loc><lastmod>2026-10-05</lastmod><priority>0.8</priority></url>
+ <url><loc>https://cis-c0.github.io/RFSentinel/flock-camera-detector.html</loc><lastmod>2026-10-05</lastmod><priority>0.8</priority></url>
+ <url><loc>https://cis-c0.github.io/RFSentinel/how-it-works.html</loc><lastmod>2026-10-05</lastmod><priority>0.8</priority></url>
+ <url><loc>https://cis-c0.github.io/RFSentinel/imsi-catcher-detector.html</loc><lastmod>2026-10-05</lastmod><priority>0.8</priority></url>
+ <url><loc>https://cis-c0.github.io/RFSentinel/</loc><lastmod>2026-10-05</lastmod><priority>1.0</priority></url>
+ <url><loc>https://cis-c0.github.io/RFSentinel/install.html</loc><lastmod>2026-10-05</lastmod><priority>0.8</priority></url>
+ <url><loc>https://cis-c0.github.io/RFSentinel/police-detector.html</loc><lastmod>2026-10-05</lastmod><priority>0.8</priority></url>
+ <url><loc>https://cis-c0.github.io/RFSentinel/qa.html</loc><lastmod>2026-10-05</lastmod><priority>0.9</priority></url>
+ <url><loc>https://cis-c0.github.io/RFSentinel/smart-glasses-detector.html</loc><lastmod>2026-10-05</lastmod><priority>0.8</priority></url>
+ <url><loc>https://cis-c0.github.io/RFSentinel/sophia-alternative.html</loc><lastmod>2026-10-05</lastmod><priority>0.8</priority></url>
+ <url><loc>https://cis-c0.github.io/RFSentinel/tracker-detector.html</loc><lastmod>2026-10-05</lastmod><priority>0.8</priority></url>
</urlset>
diff --git a/site/pages/android-auto.html b/site/pages/android-auto.html
index 84cc518..1ba4a98 100644
--- a/site/pages/android-auto.html
+++ b/site/pages/android-auto.html
@@ -34,13 +34,15 @@
<li><b>Phone screen off:</b> Android limits Bluetooth scanning then. The car warns you when a scan starts that way and shows "Bluetooth limited" on its home screen; WiFi, cell checks and known cameras keep working.</li>
</ul>
-<h2 id="setup">Setup for a sideloaded app</h2>
+<h2 id="setup">The GitHub APK in a real car</h2>
+<p>Google lets apps built with its Car App Library, as RF Sentinel is, run in a real car only when they're installed from a trusted store (Google Play or ONE store). Android Auto's <b>Unknown sources</b> developer setting covers media and messaging apps, not these (<a href="https://developer.android.com/training/cars/testing#real-vehicles">Google's testing guide</a>). So the GitHub APK doesn't appear in a real car's launcher, whatever its settings; its car screens run on Google's <a href="https://developer.android.com/training/cars/testing/dhu">Desktop Head Unit</a> emulator.</p>
+<p><b>The GitHub APK still works in a real car</b>, through the two app types that setting does cover:</p>
<ol>
-<li>Open <b>Android Auto settings</b> on the phone.</li>
-<li>Tap <b>Version</b> ten times to unlock developer mode.</li>
-<li><b>⋮ → Developer settings</b> → enable <b>Unknown sources</b>.</li>
-<li>Install (or reinstall) the APK, open RF Sentinel once on the phone, reconnect to the car.</li>
-<li>Still missing? <b>Customize launcher</b> may list it under hidden apps.</li>
+<li>Open <b>Android Auto settings</b> on the phone and tap <b>Version</b> ten times to unlock developer mode.</li>
+<li><b>⋮ → Developer settings</b> → enable <b>Unknown sources</b>, then reconnect to the car.</li>
+<li><b>RF Sentinel screen (media-style):</b> tabs for <b>Threats</b>, <b>Cameras</b> (nearest known cameras, the one ahead first), <b>Alerts</b> and <b>Status</b> (start / stop scanning, mute, cell towers, hardware), plus a card with the current threat and <b>Scan</b> / <b>Mute</b> buttons. It never plays anything, so your music keeps playing and keeps the steering-wheel buttons.</li>
+<li><b>Alerts as messages:</b> every alert arrives as a message from RF Sentinel, which the car shows and can read aloud. Reply <b>"mute"</b> to silence alerts for 30 minutes, or <b>"ignore"</b> to stop alerting about the latest device.</li>
+<li>If RF Sentinel is missing from the car's launcher, tick it under <b>Customize launcher</b>. The live map needs the full car app, so it stays on the Desktop Head Unit.</li>
</ol>
<h2 id="auto-start">Auto start</h2>
diff --git a/site/pages/install.html b/site/pages/install.html
index e9059ab..2f86e4a 100644
--- a/site/pages/install.html
+++ b/site/pages/install.html
@@ -22,7 +22,7 @@
<p>The app's menu (⋮) → <b>Check for updates</b> asks GitHub for the latest release and links its APK (only when you tap it). Install the newer APK over the existing one. History, watchlist and settings are kept. Every release is signed with the same key; Android refuses an update signed with a different one.</p>
<h2 id="auto">Android Auto</h2>
-<p>Sideloaded apps need one-time setup: Android Auto settings → tap <b>Version</b> 10 times → <b>⋮ → Developer settings</b> → enable <b>Unknown sources</b>, then (re)install the APK, open RF Sentinel once, reconnect. More on <a href="android-auto.html">Android Auto</a>.</p>
+<p>In a real car, Android Auto only shows Car App Library apps like RF Sentinel when they're installed from a trusted store (Google Play or ONE store); its <b>Unknown sources</b> setting doesn't cover them. The GitHub APK's car screens run on Google's Desktop Head Unit emulator, and once that setting is on it gets a media-style RF Sentinel screen and alert messages in the car. More on <a href="android-auto.html#setup">Android Auto</a>.</p>
<h2 id="battery">Battery settings</h2>
<p>On phones with aggressive battery management (Samsung, Xiaomi, OnePlus, Huawei), set RF Sentinel's battery usage to <b>Unrestricted</b>. Settings has a shortcut.</p>
diff --git a/site/pages/qa.html b/site/pages/qa.html
index e9f92a9..0edf595 100644
--- a/site/pages/qa.html
+++ b/site/pages/qa.html
@@ -581,7 +581,7 @@
<details class="faq" id="android-auto-missing">
<summary>RF Sentinel doesn't show up in Android Auto. How do I fix it?</summary>
<div>
-<p>Android Auto hides sideloaded apps until you enable them: open Android Auto settings on the phone, tap <b>Version</b> ten times to unlock developer mode, open <b>⋮ → Developer settings</b> and enable <b>Unknown sources</b>, then reinstall the APK, open RF Sentinel once on the phone, and reconnect. Also check <b>Customize launcher</b> for hidden apps.</p>
+<p>In a real car, Android Auto only shows apps built with Google's Car App Library, like RF Sentinel, when they were installed from a trusted store (Google Play or ONE store). Its <b>Unknown sources</b> developer setting covers media and messaging apps, not these (<a href="https://developer.android.com/training/cars/testing#real-vehicles">Google's testing guide</a>), so the GitHub APK's car screens can't appear there; they run on Google's Desktop Head Unit emulator. It still works in the car through the app types that setting covers: in Android Auto settings tap <b>Version</b> ten times, open <b>⋮ → Developer settings</b>, enable <b>Unknown sources</b> and reconnect. RF Sentinel then shows a media-style screen (threats, cameras, alerts, status, with Scan and Mute buttons), and each alert arrives as a message you can have read aloud; reply "mute" to silence alerts for 30 minutes. Tick it under <b>Customize launcher</b> if it's missing.</p>
</div>
</details>