RF Sentinel (RFSentinel): free, open-source police detector app for Android. Spots police body cams, Flock ALPR cameras, AirTag trackers, Remote ID drones, smart glasses and fake cell towers from Bluetooth LE and WiFi. No root.
Kotlin airtagalprandroidandroid-autoanti-surveillancebluetooth-low-energybody-cameracounter-surveillancedrone-detectionflock-safetyimsi-catcher-detectorpolice-detectorpolice-scannerprivacyremote-idrtl-sdrsdrsurveillance-detectiontracker-detectionwifi
F-Droid prep: FOSS firmware download, flavor-aware updater, store metadata, 2.24.0
CIS-C0c9a8888656ef
diff --git a/README.md b/README.mdindex 7efc7bb..c7e8276 100644--- a/README.md+++ b/README.md@@ -907,7 +907,11 @@ There are two flavors. **foss** contains only free software: no Mapbox SDK, thealways OpenFreeMap. **full** adds the optional Mapbox map (`./gradlew assembleFullDebug`).Both have the same app ID, so either one replaces the other.A build of only foss tasks (or `-Prfs.foss=true`) leaves the full flavor out and never-declares or contacts Mapbox's Maven server.+declares or contacts Mapbox's Maven server. The foss flavor also leaves out the non-free+firmware of the RT3070, MT7612U, MT7921AU and RTL8812BU / 8822BU adapters: when one is+plugged in, the app asks before downloading those exact files once from+[linux-firmware](https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git)+(pinned commit, checked against their SHA-256; see `usb/Firmware.kt`).In the full flavor, Mapbox is optional: with `MAPBOX_ACCESS_TOKEN=pk...` (your own public token) in`local.properties` (git-ignored) the build offers the Mapbox map; without it the appdiff --git a/app/build.gradle.kts b/app/build.gradle.ktsindex 0b5e8c0..2da3ef7 100644--- a/app/build.gradle.kts+++ b/app/build.gradle.kts@@ -7,8 +7,8 @@ plugins {}// Bump both for every release. versionName ends up in the APK file name.-val appVersionCode = 51-val appVersionName = "2.23.0"+val appVersionCode = 52+val appVersionName = "2.24.0"// Release signing credentials live in keystore.properties (git-ignored).// Without that file, release builds are produced unsigned.@@ -103,7 +103,11 @@ android {// Generates WazeProto (the Waze direct backend's wire format) from src/main/proto/waze.proto.protobuf {- protoc { artifact = "com.google.protobuf:protoc:4.35.0" }+ // -Prfs.protoc=/path/to/protoc uses a local protoc (e.g. a distribution's) instead of the one from Maven Central.+ protoc {+ val local = providers.gradleProperty("rfs.protoc").orNull+ if (local != null) path = local else artifact = "com.google.protobuf:protoc:4.35.0"+ }generateProtoTasks {all().forEach { task -> task.builtins { maybeCreate("java").option("lite") } }}diff --git a/app/src/main/assets/usbwifi/WIFI_MT7961_patch_mcu_1_2_hdr.bin b/app/src/full/assets/usbwifi/WIFI_MT7961_patch_mcu_1_2_hdr.binsimilarity index 100%rename from app/src/main/assets/usbwifi/WIFI_MT7961_patch_mcu_1_2_hdr.binrename to app/src/full/assets/usbwifi/WIFI_MT7961_patch_mcu_1_2_hdr.bindiff --git a/app/src/main/assets/usbwifi/WIFI_RAM_CODE_MT7961_1.bin b/app/src/full/assets/usbwifi/WIFI_RAM_CODE_MT7961_1.binsimilarity index 100%rename from app/src/main/assets/usbwifi/WIFI_RAM_CODE_MT7961_1.binrename to app/src/full/assets/usbwifi/WIFI_RAM_CODE_MT7961_1.bindiff --git a/app/src/main/assets/usbwifi/mt7662.bin b/app/src/full/assets/usbwifi/mt7662.binsimilarity index 100%rename from app/src/main/assets/usbwifi/mt7662.binrename to app/src/full/assets/usbwifi/mt7662.bindiff --git a/app/src/main/assets/usbwifi/mt7662_rom_patch.bin b/app/src/full/assets/usbwifi/mt7662_rom_patch.binsimilarity index 100%rename from app/src/main/assets/usbwifi/mt7662_rom_patch.binrename to app/src/full/assets/usbwifi/mt7662_rom_patch.bindiff --git a/app/src/main/assets/usbwifi/rt2870.bin b/app/src/full/assets/usbwifi/rt2870.binsimilarity index 100%rename from app/src/main/assets/usbwifi/rt2870.binrename to app/src/full/assets/usbwifi/rt2870.bindiff --git a/app/src/main/assets/usbwifi/rtl8822b_fw.bin b/app/src/full/assets/usbwifi/rtl8822b_fw.binsimilarity index 100%rename from app/src/main/assets/usbwifi/rtl8822b_fw.binrename to app/src/full/assets/usbwifi/rtl8822b_fw.bindiff --git a/app/src/main/java/com/rfsentinel/app/settings/SettingsActivity.kt b/app/src/main/java/com/rfsentinel/app/settings/SettingsActivity.ktindex ff4a4e1..3e32c5d 100644--- a/app/src/main/java/com/rfsentinel/app/settings/SettingsActivity.kt+++ b/app/src/main/java/com/rfsentinel/app/settings/SettingsActivity.kt@@ -2032,6 +2032,12 @@ class SettingsActivity : AppCompatActivity() {com.rfsentinel.app.esp.OuiSpyBle.onStatusChanged = { runOnUiThread { updateEspStatus() } }binding.ouiSpyButton.setOnClickListener { pairOuiSpy() }binding.usbWifiLogButton.setOnClickListener { exportUsbWifiLog() }+ // FOSS build: an adapter waiting for its chip firmware asks to download it.+ binding.usbWifiText.setOnClickListener { com.rfsentinel.app.usb.FirmwarePrompt.show(this) { updateEspStatus() } }+ if (intent.getBooleanExtra(com.rfsentinel.app.usb.FirmwarePrompt.EXTRA, false)) {+ intent.removeExtra(com.rfsentinel.app.usb.FirmwarePrompt.EXTRA)+ com.rfsentinel.app.usb.FirmwarePrompt.show(this) { updateEspStatus() }+ }binding.pcapButton.setOnClickListener { togglePcap() }binding.pcapShareButton.setOnClickListener { sharePcap() }updatePcap()@@ -2156,6 +2162,12 @@ class SettingsActivity : AppCompatActivity() {loaded = true}+ override fun onNewIntent(intent: Intent) {+ super.onNewIntent(intent)+ if (intent.getBooleanExtra(com.rfsentinel.app.usb.FirmwarePrompt.EXTRA, false))+ com.rfsentinel.app.usb.FirmwarePrompt.show(this) { updateEspStatus() }+ }+override fun onResume() {super.onResume()// Back from the theme maker: its themes may have changed.diff --git a/app/src/main/java/com/rfsentinel/app/usb/Ar9271Monitor.kt b/app/src/main/java/com/rfsentinel/app/usb/Ar9271Monitor.ktindex b1b6745..be01868 100644--- a/app/src/main/java/com/rfsentinel/app/usb/Ar9271Monitor.kt+++ b/app/src/main/java/com/rfsentinel/app/usb/Ar9271Monitor.kt@@ -131,7 +131,7 @@ object Ar9271Monitor {// ---- firmware / HTC ----private fun uploadFirmware(ctx: Context): Boolean {- val fw = ctx.assets.open("usbwifi/htc_9271-1.4.0.fw").use { it.readBytes() }+ val fw = Firmware.read(ctx, "htc_9271-1.4.0.fw")UsbWifi.log("AR9271: uploading firmware (${fw.size} B)")var addr = FW_ADDR; var off = 0while (off < fw.size) {diff --git a/app/src/main/java/com/rfsentinel/app/usb/Firmware.kt b/app/src/main/java/com/rfsentinel/app/usb/Firmware.ktnew file mode 100644index 0000000..64c6124--- /dev/null+++ b/app/src/main/java/com/rfsentinel/app/usb/Firmware.kt@@ -0,0 +1,107 @@+package com.rfsentinel.app.usb++import android.content.Context+import java.io.File+import java.io.IOException+import java.net.HttpURLConnection+import java.net.URL+import java.security.MessageDigest++/**+ * The USB WiFi chips' own firmware. The full build carries it in assets/usbwifi. The FOSS build leaves out the+ * firmware that isn't free software (Ralink, MediaTek and Realtek binaries) and, with your OK, downloads those exact+ * files once from linux-firmware on kernel.org, pinned to one commit and checked against their SHA-256, into the+ * app's own storage. The free ath9k_htc firmware and the Realtek register tables (GPL-2.0) ship in both builds.+ */+object Firmware {++ /** One file: its name in assets/usbwifi, its path in linux-firmware, its SHA-256 and its maker's licence there. */+ data class Blob(val name: String, val path: String, val sha256: String, val size: Int, val licence: String)++ /** The linux-firmware commit every download comes from: the very files the full build carries. */+ const val COMMIT = "e981caea6ed33c48d25b7dbf473327dbd01df163"+ private const val REPO = "https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git"++ private val RT2870 = Blob("rt2870.bin", "rt2870.bin",+ "251b8918391eac6415d60dca239e415aad0177e885376f2a17782e64fcbbe317", 8192, "LICENCE.ralink-firmware.txt")+ private val MT7662_PATCH = Blob("mt7662_rom_patch.bin", "mediatek/mt7662_rom_patch.bin",+ "6f0e871268f6e4d99196d90d89bcc09fe493d010366260a2cfcaa5dd66095f8c", 26350, "LICENCE.ralink_a_mediatek_company_firmware")+ private val MT7662 = Blob("mt7662.bin", "mediatek/mt7662.bin",+ "f7e52492f58088cae50e51a54cca68e4abc5b74f7d0b6b731dbb4c04465a94b6", 81908, "LICENCE.ralink_a_mediatek_company_firmware")+ private val MT7961_PATCH = Blob("WIFI_MT7961_patch_mcu_1_2_hdr.bin", "mediatek/WIFI_MT7961_patch_mcu_1_2_hdr.bin",+ "a276c06c2b772adb50b86639d33c82824ff4c21d617feb78caea74c040b873f6", 92192, "LICENCE.mediatek")+ private val MT7961_RAM = Blob("WIFI_RAM_CODE_MT7961_1.bin", "mediatek/WIFI_RAM_CODE_MT7961_1.bin",+ "b94217a951518a9c14095765f367bc5dd7698f2dc033941d6f18fc2ebd6a2ab9", 792036, "LICENCE.mediatek")+ private val RTL8822B = Blob("rtl8822b_fw.bin", "rtw88/rtw8822b_fw.bin",+ "a72da690597bfa99d8eb6fc2ab090d18d8ad92ac2befd35db1c9e3662d8d8418", 161240, "LICENCE.rtlwifi_firmware.txt")++ /** Every file the FOSS build may download. */+ val ALL = listOf(RT2870, MT7662_PATCH, MT7662, MT7961_PATCH, MT7961_RAM, RTL8822B)++ /** The non-free files a driver needs (none for the drivers that load no firmware or only free files). */+ fun needed(driver: UsbWifi.Driver): List<Blob> = when (driver) {+ UsbWifi.Driver.RT3070 -> listOf(RT2870)+ UsbWifi.Driver.MT7612U -> listOf(MT7662_PATCH, MT7662)+ UsbWifi.Driver.MT7921U -> listOf(MT7961_PATCH, MT7961_RAM)+ UsbWifi.Driver.RTL88X2BU -> listOf(RTL8822B)+ else -> emptyList()+ }++ fun url(b: Blob) = "$REPO/plain/${b.path}?id=$COMMIT"+ fun licenceUrl(b: Blob) = "$REPO/plain/LICENSES/${b.licence}?id=$COMMIT"++ private fun dir(context: Context) = File(context.applicationContext.filesDir, "firmware")++ private fun inAssets(context: Context, name: String) =+ runCatching { context.assets.open("usbwifi/$name").close(); true }.getOrDefault(false)++ /** The files of [driver] that are neither in this APK nor downloaded yet. */+ fun missing(context: Context, driver: UsbWifi.Driver): List<Blob> =+ needed(driver).filter { !inAssets(context, it.name) && !File(dir(context), it.name).isFile }++ /** A file from assets/usbwifi, or one downloaded earlier (checked again before use). */+ fun read(context: Context, name: String): ByteArray {+ runCatching { return context.assets.open("usbwifi/$name").use { it.readBytes() } }+ val blob = ALL.firstOrNull { it.name == name } ?: throw IOException("Missing firmware $name")+ val f = File(dir(context), name)+ if (!f.isFile) throw IOException("$name isn't downloaded yet")+ val bytes = f.readBytes()+ if (sha256(bytes) != blob.sha256) { f.delete(); throw IOException("$name is damaged: download it again") }+ return bytes+ }++ /** Downloads [blobs] that are missing; each is checked against its SHA-256 before it's kept. Blocking. */+ fun download(context: Context, blobs: List<Blob>) {+ val d = dir(context).apply { mkdirs() }+ for (b in blobs) {+ val target = File(d, b.name)+ if (target.isFile) continue+ val c = URL(url(b)).openConnection() as HttpURLConnection+ c.connectTimeout = 15_000; c.readTimeout = 30_000+ c.setRequestProperty("User-Agent", "RFSentinel")+ val bytes = try {+ if (c.responseCode != 200) throw IOException("kernel.org answered ${c.responseCode} for ${b.name}")+ c.inputStream.use { input ->+ val out = java.io.ByteArrayOutputStream(b.size)+ val buf = ByteArray(16_384)+ while (true) {+ val n = input.read(buf); if (n < 0) break+ out.write(buf, 0, n)+ if (out.size() > b.size) throw IOException("${b.name} is larger than expected")+ }+ out.toByteArray()+ }+ } finally { c.disconnect() }+ if (sha256(bytes) != b.sha256) throw IOException("${b.name} doesn't match its fingerprint: not kept")+ val part = File(d, b.name + ".part")+ part.writeBytes(bytes)+ if (!part.renameTo(target)) { part.delete(); throw IOException("Couldn't save ${b.name}") }+ }+ }++ /** Deletes the downloaded firmware (Settings). */+ fun clear(context: Context) { dir(context).deleteRecursively() }++ internal fun sha256(b: ByteArray): String =+ MessageDigest.getInstance("SHA-256").digest(b).joinToString("") { "%02x".format(it) }+}diff --git a/app/src/main/java/com/rfsentinel/app/usb/FirmwarePrompt.kt b/app/src/main/java/com/rfsentinel/app/usb/FirmwarePrompt.ktnew file mode 100644index 0000000..870df95--- /dev/null+++ b/app/src/main/java/com/rfsentinel/app/usb/FirmwarePrompt.kt@@ -0,0 +1,91 @@+package com.rfsentinel.app.usb++import android.app.NotificationChannel+import android.app.NotificationManager+import android.app.PendingIntent+import android.content.Context+import android.content.Intent+import android.widget.Toast+import androidx.appcompat.app.AlertDialog+import androidx.appcompat.app.AppCompatActivity+import androidx.core.app.NotificationCompat+import androidx.lifecycle.lifecycleScope+import com.rfsentinel.app.R+import kotlinx.coroutines.Dispatchers+import kotlinx.coroutines.launch+import kotlinx.coroutines.withContext++/**+ * FOSS build: asks before downloading a USB WiFi chip's non-free firmware ([Firmware]). A notification when the+ * adapter is plugged in; tapping it (or the adapter line in Settings) opens Settings with the question.+ */+object FirmwarePrompt {++ const val EXTRA = "com.rfsentinel.app.FIRMWARE_PROMPT"+ private const val CHANNEL = "usb_firmware"+ private const val NOTIFICATION_ID = 4130++ fun notify(context: Context, chip: UsbWifi.Chip) {+ val nm = context.getSystemService(NotificationManager::class.java) ?: return+ nm.createNotificationChannel(NotificationChannel(CHANNEL, "USB adapter firmware", NotificationManager.IMPORTANCE_DEFAULT))+ val open = PendingIntent.getActivity(context, NOTIFICATION_ID,+ Intent(context, com.rfsentinel.app.settings.SettingsActivity::class.java)+ .putExtra(EXTRA, true).addFlags(Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TOP),+ PendingIntent.FLAG_IMMUTABLE or PendingIntent.FLAG_UPDATE_CURRENT)+ runCatching {+ nm.notify(NOTIFICATION_ID, NotificationCompat.Builder(context, CHANNEL)+ .setSmallIcon(R.drawable.ic_tile_scan)+ .setContentTitle("${chip.name} adapter needs its firmware")+ .setContentText("Tap to download it once from kernel.org")+ .setContentIntent(open)+ .setAutoCancel(true)+ .build())+ }+ }++ fun cancel(context: Context) {+ context.getSystemService(NotificationManager::class.java)?.cancel(NOTIFICATION_ID)+ }++ /** The question, for the adapter waiting for its firmware; false when none is waiting. */+ fun show(activity: AppCompatActivity, onDone: () -> Unit = {}): Boolean {+ val chip = UsbWifi.firmwareNeeded ?: return false+ val blobs = Firmware.missing(activity, chip.driver).ifEmpty { UsbWifi.retry(activity); return false }+ val kb = blobs.sumOf { it.size } / 1024+ val files = blobs.joinToString("\n") { "• ${it.name}" }+ AlertDialog.Builder(activity)+ .setTitle("Download the ${chip.name} firmware?")+ .setMessage("This adapter needs its maker's firmware to run. That firmware isn't free software, so this " ++ "build of RF Sentinel doesn't include it.\n\nRF Sentinel can download it once (about $kb KB) from the " ++ "Linux firmware repository at kernel.org, check it against a fixed fingerprint, and keep it on this " ++ "phone:\n$files\n\nkernel.org sees your IP address, nothing else. The files stay under their maker's " ++ "redistribution licence.")+ .setPositiveButton("Download") { _, _ -> download(activity, chip, blobs, onDone) }+ .setNeutralButton("Licence") { _, _ ->+ runCatching {+ activity.startActivity(Intent(Intent.ACTION_VIEW, android.net.Uri.parse(Firmware.licenceUrl(blobs.first()))))+ }+ }+ .setNegativeButton("Not now", null)+ .show()+ return true+ }++ private fun download(activity: AppCompatActivity, chip: UsbWifi.Chip, blobs: List<Firmware.Blob>, onDone: () -> Unit) {+ val app = activity.applicationContext+ Toast.makeText(activity, "Downloading the ${chip.name} firmware…", Toast.LENGTH_SHORT).show()+ activity.lifecycleScope.launch {+ val error = withContext(Dispatchers.IO) { runCatching { Firmware.download(app, blobs) }.exceptionOrNull() }+ if (error == null) {+ UsbWifi.log("Firmware for ${chip.name} downloaded and checked")+ cancel(app)+ UsbWifi.retry(app)+ Toast.makeText(app, "Firmware ready: starting the ${chip.name} adapter", Toast.LENGTH_SHORT).show()+ } else {+ UsbWifi.log("Firmware download failed: ${UsbWifi.describe(error)}")+ Toast.makeText(app, "Firmware download failed: ${error.message}", Toast.LENGTH_LONG).show()+ }+ onDone()+ }+ }+}diff --git a/app/src/main/java/com/rfsentinel/app/usb/Mt7612uMonitor.kt b/app/src/main/java/com/rfsentinel/app/usb/Mt7612uMonitor.ktindex dfd09ff..f079e3a 100644--- a/app/src/main/java/com/rfsentinel/app/usb/Mt7612uMonitor.kt+++ b/app/src/main/java/com/rfsentinel/app/usb/Mt7612uMonitor.kt@@ -164,8 +164,8 @@ object Mt7612uMonitor {powerOn()if (!poll(1000, 5) { regRd(MAC_CSR0).let { it != 0 && it != -1 } }) UsbWifi.log("MT7612U: MAC not ready before the firmware (continuing)")onStatus("$chipName · loading firmware…")- val patch = ctx.assets.open("usbwifi/mt7662_rom_patch.bin").use { it.readBytes() }- val fw = ctx.assets.open("usbwifi/mt7662.bin").use { it.readBytes() }+ val patch = Firmware.read(ctx, "mt7662_rom_patch.bin")+ val fw = Firmware.read(ctx, "mt7662.bin")// A first upload sometimes stalls right after plug-in; the second try (after a firmware reset) goes through.var loaded = falsefor (attempt in 1..FW_ATTEMPTS) {diff --git a/app/src/main/java/com/rfsentinel/app/usb/Mt7921uMonitor.kt b/app/src/main/java/com/rfsentinel/app/usb/Mt7921uMonitor.ktindex 65f8564..d27c1d3 100644--- a/app/src/main/java/com/rfsentinel/app/usb/Mt7921uMonitor.kt+++ b/app/src/main/java/com/rfsentinel/app/usb/Mt7921uMonitor.kt@@ -167,8 +167,8 @@ object Mt7921uMonitor {if (chip != CHIP_ID_7961) { onStatus("$chipName: not an MT7921 (chip %04x)".format(chip)); return }onStatus("$chipName · loading firmware…")- val patch = ctx.assets.open("usbwifi/WIFI_MT7961_patch_mcu_1_2_hdr.bin").use { it.readBytes() }- val ram = ctx.assets.open("usbwifi/WIFI_RAM_CODE_MT7961_1.bin").use { it.readBytes() }+ val patch = Firmware.read(ctx, "WIFI_MT7961_patch_mcu_1_2_hdr.bin")+ val ram = Firmware.read(ctx, "WIFI_RAM_CODE_MT7961_1.bin")val err = bringUp(patch, ram)if (err != null) { onStatus("$chipName: $err - unplug the adapter and plug it back in"); return }diff --git a/app/src/main/java/com/rfsentinel/app/usb/NOTICE.md b/app/src/main/java/com/rfsentinel/app/usb/NOTICE.mdindex c086ea0..3074717 100644--- a/app/src/main/java/com/rfsentinel/app/usb/NOTICE.md+++ b/app/src/main/java/com/rfsentinel/app/usb/NOTICE.md@@ -36,6 +36,12 @@ These drivers run USB WiFi adapters in receive-only monitor mode from userspace.| RTL-SDR driver (`sdr/RtlSdr.kt`: RTL2832U baseband, R820T / R828D tuner, RTL-SDR Blog V4 band switching) | [librtlsdr](https://github.com/osmocom/rtl-sdr) (osmocom: Steve Markgraf, Dimitri Stolnikov and others; R82xx code by Mauro Carvalho Chehab and Steve Markgraf; Blog V4 support by RTL-SDR Blog) | GPL-2.0-or-later || Integration into RF Sentinel; removal of handshake / PMKID capture (8821AU, RT3070) and of every transmit, beamforming and calibration-for-TX path (8822BU, RTL8187); RT3070 fixes checked against the kernel (eFuse addressing, EEPROM reads, DMA / frame-length setup, receive gain, external LNA, EEPROM BBP overrides); MT7612U: bad-checksum frames dropped, auto-responder off, kernel ROM-patch rule; AR9271: signal relative to the noise floor, FCS removed, packets spanning transfers reassembled, WMI answers matched, running firmware reused; MT7921AU: Android USB host API instead of IOKit, no port reset, commands while receiving answered on the shared endpoint without blocking, bad-checksum frames dropped, failed register reads never written back, every transmit path (injection, TX descriptors) left out | RF Sentinel (CIS-C0) | GPL-3.0 |+The non-free firmware files (Ralink, MediaTek, Realtek) ship in the full build only+(`app/src/full/assets/usbwifi`). The FOSS build asks before downloading those same+files from linux-firmware on kernel.org, pinned to commit e981caea6ed3 and checked+against their SHA-256 (`Firmware.kt`); the ath9k_htc firmware and the RTL8822B register+tables ship in both builds.+RF Sentinel is distributed under the GNU GPL v3.0 (see `LICENSE`). The registervalues and firmware are hardware configuration data from Realtek's driver; creditand thanks to Realtek, the aircrack-ng rtl8812au maintainers, RocketGod fordiff --git a/app/src/main/java/com/rfsentinel/app/usb/Rt3070Monitor.kt b/app/src/main/java/com/rfsentinel/app/usb/Rt3070Monitor.ktindex e24f14a..f94a78b 100644--- a/app/src/main/java/com/rfsentinel/app/usb/Rt3070Monitor.kt+++ b/app/src/main/java/com/rfsentinel/app/usb/Rt3070Monitor.kt@@ -195,7 +195,7 @@ object Rt3070Monitor {}if (autorun) UsbWifi.log("RT3070: firmware already running (autorun)")else {- val fw = ctx.assets.open("usbwifi/rt2870.bin").use { it.readBytes() }+ val fw = Firmware.read(ctx, "rt2870.bin")if (fw.size < FW_LEN) { UsbWifi.log("RT3070: rt2870.bin too short (${fw.size} B)"); return false }var off = 0 // the RT3070 runs the first 4 KB imagewhile (off < FW_LEN) {diff --git a/app/src/main/java/com/rfsentinel/app/usb/Rtl8822bTables.kt b/app/src/main/java/com/rfsentinel/app/usb/Rtl8822bTables.ktindex 75ca64e..faa171c 100644--- a/app/src/main/java/com/rfsentinel/app/usb/Rtl8822bTables.kt+++ b/app/src/main/java/com/rfsentinel/app/usb/Rtl8822bTables.kt@@ -21,7 +21,7 @@ object Rtl8822bTables {class Data(val firmware: ByteArray, val phyReg: IntArray, val agcTab: IntArray, val radioA: IntArray, val radioB: IntArray)fun load(ctx: Context): Data {- fun bytes(name: String) = ctx.assets.open("usbwifi/rtl8822b_$name.bin").use { it.readBytes() }+ fun bytes(name: String) = Firmware.read(ctx, "rtl8822b_$name.bin")fun words(name: String): IntArray {val b = bytes(name)if (b.size % 8 != 0) throw IOException("rtl8822b_$name.bin is damaged")diff --git a/app/src/main/java/com/rfsentinel/app/usb/UsbWifi.kt b/app/src/main/java/com/rfsentinel/app/usb/UsbWifi.ktindex 35fae5d..d6fd239 100644--- a/app/src/main/java/com/rfsentinel/app/usb/UsbWifi.kt+++ b/app/src/main/java/com/rfsentinel/app/usb/UsbWifi.kt@@ -153,6 +153,10 @@ object UsbWifi {@Volatile var status: String = ""private set+ /** The adapter waiting for its chip firmware (FOSS build, not downloaded yet), for [FirmwarePrompt]; null when none. */+ @Volatile var firmwareNeeded: Chip? = null+ private set+/** Recent driver log lines (bring-up, RX stats, errors), for troubleshooting from Settings. */private val logLines = ArrayDeque<String>()@@ -253,6 +257,9 @@ object UsbWifi {UsbManager.ACTION_USB_DEVICE_DETACHED -> {val d = deviceOf(intent)if (d != null && d.deviceName == runningDevice) stopAdapter("USB WiFi adapter unplugged")+ else if (firmwareNeeded != null && d != null && chipOf(d) == firmwareNeeded) {+ firmwareNeeded = null; status = ""; FirmwarePrompt.cancel(app)+ }}}}@@ -279,6 +286,9 @@ object UsbWifi {connect(app)}+ /** Tries the plugged-in adapter again (its firmware was just downloaded). */+ fun retry(context: Context) = connect(context.applicationContext)+@Synchronizedfun stop(context: Context) {receiver?.let { runCatching { context.applicationContext.unregisterReceiver(it) } }@@ -315,6 +325,17 @@ object UsbWifi {return}val chip = chipOf(d)!!+ val missing = Firmware.missing(context, chip.driver)+ if (missing.isNotEmpty()) {+ if (firmwareNeeded != chip) {+ log("${chip.name} needs firmware that isn't downloaded yet: ${missing.joinToString { it.name }}")+ FirmwarePrompt.notify(context, chip)+ }+ firmwareNeeded = chip+ status = "USB WiFi (${chip.name}) needs its chip firmware: tap the notification, or this line in Settings, to download it"+ return+ }+ firmwareNeeded = nullrunningDevice = d.deviceNamestatus = "USB WiFi (${chip.name}) · starting…"log("Starting ${chip.name} (${"%04x:%04x".format(d.vendorId, d.productId)}) - RF Sentinel ${com.rfsentinel.app.BuildConfig.VERSION_NAME}, " +diff --git a/app/src/main/java/com/rfsentinel/app/util/UpdateChecker.kt b/app/src/main/java/com/rfsentinel/app/util/UpdateChecker.ktindex 39c7f28..19bc49e 100644--- a/app/src/main/java/com/rfsentinel/app/util/UpdateChecker.kt+++ b/app/src/main/java/com/rfsentinel/app/util/UpdateChecker.kt@@ -37,14 +37,18 @@ object UpdateChecker {return false}- /** The newest release from GitHub's answer: version, the "-release.apk" asset with its size and SHA-256, the notes page. */- internal fun parseLatest(text: String): Latest {+ /**+ * The newest release from GitHub's answer: version, this build's APK asset with its size and SHA-256, the notes+ * page. The full build takes the "-release.apk" asset, the FOSS build the "-foss.apk" one.+ */+ internal fun parseLatest(text: String, foss: Boolean = BuildConfig.FLAVOR == "foss"): Latest {+ val suffix = if (foss) "-foss.apk" else "-release.apk"val json = JSONObject(text)val assets = json.optJSONArray("assets")var apk: String? = null; var size = 0L; var sha: String? = nullif (assets != null) for (i in 0 until assets.length()) {val a = assets.getJSONObject(i)- if (a.optString("name").endsWith("-release.apk")) {+ if (a.optString("name").endsWith(suffix)) {apk = a.optString("browser_download_url"); size = a.optLong("size", 0L)sha = a.optString("digest").takeIf { it.startsWith("sha256:") }?.removePrefix("sha256:")}@@ -86,6 +90,21 @@ object UpdateChecker {/** Whether the automatic check is due: [last] is when the last one ended (0 = never). */internal fun due(last: Long, now: Long) = now - last >= AUTO_INTERVAL_MS || now < last+ /** SHA-256 of the certificate RF Sentinel's GitHub releases are signed with (public: any release APK shows it). */+ private const val RELEASE_CERT_SHA256 = "1775783cf3cef638332796435f2125ecbbccd5b0021a336218eeb218904da8ab"++ /** Whether this copy is signed with the GitHub releases' key (not F-Droid's), so a GitHub APK can update it. */+ @Suppress("DEPRECATION")+ private fun signedByUs(context: android.content.Context): Boolean = runCatching {+ val pm = context.packageManager+ val certs = if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.P)+ pm.getPackageInfo(context.packageName, android.content.pm.PackageManager.GET_SIGNING_CERTIFICATES).signingInfo?.apkContentsSigners+ else pm.getPackageInfo(context.packageName, android.content.pm.PackageManager.GET_SIGNATURES).signatures+ certs.orEmpty().any { c ->+ java.security.MessageDigest.getInstance("SHA-256").digest(c.toByteArray()).joinToString("") { "%02x".format(it) } == RELEASE_CERT_SHA256+ }+ }.getOrDefault(true)+fun check(activity: AppCompatActivity, silent: Boolean = false) {if (!silent) Toast.makeText(activity, "Checking for updates…", Toast.LENGTH_SHORT).show()if (checking) return@@ -107,7 +126,16 @@ object UpdateChecker {return@launch}val current = BuildConfig.VERSION_NAME.substringBefore('-')- if (isNewer(latest.version, current)) {+ if (isNewer(latest.version, current) && BuildConfig.FLAVOR == "foss" && !signedByUs(activity)) {+ // Built and signed by F-Droid: Android would refuse our APK over it, so F-Droid updates it.+ AlertDialog.Builder(activity)+ .setTitle("RF Sentinel ${latest.version} is available")+ .setMessage("You have $current. This copy was built and signed by F-Droid, so it updates through F-Droid " ++ "once F-Droid has built the new version.")+ .setPositiveButton("OK", null)+ .setNeutralButton("What's new") { _, _ -> open(activity, latest.notesUrl) }+ .show()+ } else if (isNewer(latest.version, current)) {AlertDialog.Builder(activity).setTitle("RF Sentinel ${latest.version} is available").setMessage("You have $current. It downloads here and installs over this one - your history and settings are kept. " +diff --git a/app/src/test/java/com/rfsentinel/app/usb/FirmwareTest.kt b/app/src/test/java/com/rfsentinel/app/usb/FirmwareTest.ktnew file mode 100644index 0000000..afbead0--- /dev/null+++ b/app/src/test/java/com/rfsentinel/app/usb/FirmwareTest.kt@@ -0,0 +1,33 @@+package com.rfsentinel.app.usb++import org.junit.Assert.assertEquals+import org.junit.Assert.assertFalse+import org.junit.Assert.assertTrue+import org.junit.Test+import java.io.File++/** The FOSS build downloads exactly the files the full build carries. */+class FirmwareTest {++ @Test+ fun fingerprintsMatchTheFullBuildsFiles() {+ for (b in Firmware.ALL) {+ val f = File("src/full/assets/usbwifi/${b.name}")+ assertTrue("${b.name} is in the full build", f.isFile)+ val bytes = f.readBytes()+ assertEquals(b.name, b.size, bytes.size)+ assertEquals(b.name, b.sha256, Firmware.sha256(bytes))+ // Never in the assets both builds share.+ assertFalse("${b.name} isn't in main", File("src/main/assets/usbwifi/${b.name}").exists())+ }+ }++ @Test+ fun onlyTheNonFreeFirmwareIsDownloaded() {+ assertTrue(Firmware.needed(UsbWifi.Driver.AR9271).isEmpty())+ assertTrue(Firmware.needed(UsbWifi.Driver.RTL88XXAU).isEmpty())+ assertEquals(2, Firmware.needed(UsbWifi.Driver.MT7921U).size)+ assertTrue(Firmware.url(Firmware.needed(UsbWifi.Driver.RT3070).single()).startsWith("https://git.kernel.org/"))+ assertTrue(Firmware.url(Firmware.ALL.first()).endsWith("?id=${Firmware.COMMIT}"))+ }+}diff --git a/app/src/test/java/com/rfsentinel/app/usb/LegacyUsbDriverTest.kt b/app/src/test/java/com/rfsentinel/app/usb/LegacyUsbDriverTest.ktindex 470d4cb..a7c551c 100644--- a/app/src/test/java/com/rfsentinel/app/usb/LegacyUsbDriverTest.kt+++ b/app/src/test/java/com/rfsentinel/app/usb/LegacyUsbDriverTest.kt@@ -145,7 +145,7 @@ class LegacyUsbDriverTest {@Testfun ralinkFirmwareIsTheLinuxFirmwareImage() {- val fw = File("src/main/assets/usbwifi/rt2870.bin").readBytes()+ val fw = File("src/full/assets/usbwifi/rt2870.bin").readBytes()assertEquals(8192, fw.size)val sha1 = MessageDigest.getInstance("SHA-1").digest(fw).joinToString("") { "%02x".format(it) }assertEquals("83f6e2ce95b10df1cf3e06928761fa57133ef164", sha1)diff --git a/app/src/test/java/com/rfsentinel/app/usb/Mt7921uDriverTest.kt b/app/src/test/java/com/rfsentinel/app/usb/Mt7921uDriverTest.ktindex d4bab2b..78420e5 100644--- a/app/src/test/java/com/rfsentinel/app/usb/Mt7921uDriverTest.kt+++ b/app/src/test/java/com/rfsentinel/app/usb/Mt7921uDriverTest.kt@@ -180,24 +180,26 @@ class Mt7921uDriverTest {// --- firmware: the official linux-firmware images, unmodified ---private val dir = "src/main/assets/usbwifi"+ /** The non-free firmware ships in the full build only. */+ private val fwDir = "src/full/assets/usbwifi"private fun sha256(path: String) = MessageDigest.getInstance("SHA-256").digest(File(path).readBytes()).joinToString("") { "%02x".format(it) }@Testfun firmwareImagesAreTheLinuxFirmwareOnes() {// linux-firmware e981caea6ed33c48d25b7dbf473327dbd01df163, the hashes mt76-usb-macos pins.- assertEquals("a276c06c2b772adb50b86639d33c82824ff4c21d617feb78caea74c040b873f6", sha256("$dir/WIFI_MT7961_patch_mcu_1_2_hdr.bin"))- assertEquals("b94217a951518a9c14095765f367bc5dd7698f2dc033941d6f18fc2ebd6a2ab9", sha256("$dir/WIFI_RAM_CODE_MT7961_1.bin"))+ assertEquals("a276c06c2b772adb50b86639d33c82824ff4c21d617feb78caea74c040b873f6", sha256("$fwDir/WIFI_MT7961_patch_mcu_1_2_hdr.bin"))+ assertEquals("b94217a951518a9c14095765f367bc5dd7698f2dc033941d6f18fc2ebd6a2ab9", sha256("$fwDir/WIFI_RAM_CODE_MT7961_1.bin"))assertTrue(File("$dir/LICENCE.mediatek").readText().contains("MediaTek Inc. grants permission"))assertTrue("the driver's licence ships in the app", File("$dir/LICENCE.mt76-usb-macos").readText().contains("The Clear BSD License"))}@Testfun firmwareFilesParse() {- val patch = File("$dir/WIFI_MT7961_patch_mcu_1_2_hdr.bin").readBytes()+ val patch = File("$fwDir/WIFI_MT7961_patch_mcu_1_2_hdr.bin").readBytes()val secs = m.parsePatch(patch)!!assertTrue(secs.isNotEmpty())assertTrue("every section is a patch info section", secs.all { it.type and 0xffff == 2 })- val ram = File("$dir/WIFI_RAM_CODE_MT7961_1.bin").readBytes()+ val ram = File("$fwDir/WIFI_RAM_CODE_MT7961_1.bin").readBytes()val regions = m.parseRam(ram)!!assertTrue(regions.isNotEmpty())assertTrue(regions.sumOf { it.len.toLong() } <= ram.size)diff --git a/app/src/test/java/com/rfsentinel/app/usb/UsbWifiDriverTest.kt b/app/src/test/java/com/rfsentinel/app/usb/UsbWifiDriverTest.ktindex 0eca163..747cdea 100644--- a/app/src/test/java/com/rfsentinel/app/usb/UsbWifiDriverTest.kt+++ b/app/src/test/java/com/rfsentinel/app/usb/UsbWifiDriverTest.kt@@ -335,7 +335,7 @@ class UsbWifiDriverTest {assertEquals(listOf(0x111, 0x222, 0x555, 0x666), run(cut = 10, rfe = 0))}- private fun asset(name: String) = File("src/main/assets/usbwifi/rtl8822b_$name.bin").readBytes()+ private fun asset(name: String) = File("src/${if (name == "fw") "full" else "main"}/assets/usbwifi/rtl8822b_$name.bin").readBytes()private fun words(name: String) = asset(name).let { b -> IntArray(b.size / 4).also { ByteBuffer.wrap(b).order(ByteOrder.LITTLE_ENDIAN).asIntBuffer().get(it) } }@Testdiff --git a/app/src/test/java/com/rfsentinel/app/usb/WardriveGoDriverTest.kt b/app/src/test/java/com/rfsentinel/app/usb/WardriveGoDriverTest.ktindex d34acfa..ad3f21a 100644--- a/app/src/test/java/com/rfsentinel/app/usb/WardriveGoDriverTest.kt+++ b/app/src/test/java/com/rfsentinel/app/usb/WardriveGoDriverTest.kt@@ -190,8 +190,8 @@ class WardriveGoDriverTest {@Testfun firmwareImagesAreTheLinuxFirmwareOnes() {val dir = "src/main/assets/usbwifi"- assertEquals("a28c063e6e488444d67607254f65b3ac4ab14717", sha1("$dir/mt7662.bin"))- assertEquals("71b764a6911af6e092bcd2c98e663888fd5d71ea", sha1("$dir/mt7662_rom_patch.bin"))+ assertEquals("a28c063e6e488444d67607254f65b3ac4ab14717", sha1("src/full/assets/usbwifi/mt7662.bin"))+ assertEquals("71b764a6911af6e092bcd2c98e663888fd5d71ea", sha1("src/full/assets/usbwifi/mt7662_rom_patch.bin"))assertEquals("62686323432b63ec8091234f9b1b9ee6d746eec4", sha1("$dir/htc_9271-1.4.0.fw"))assertTrue(File("$dir/LICENCE.ralink_a_mediatek_company_firmware").readText().contains("MediaTek"))assertTrue(File("$dir/LICENCE.open-ath9k-htc-firmware").readText().contains("Qualcomm Atheros"))diff --git a/app/src/test/java/com/rfsentinel/app/util/UpdateInstallerTest.kt b/app/src/test/java/com/rfsentinel/app/util/UpdateInstallerTest.ktindex d47d10f..edc460f 100644--- a/app/src/test/java/com/rfsentinel/app/util/UpdateInstallerTest.kt+++ b/app/src/test/java/com/rfsentinel/app/util/UpdateInstallerTest.kt@@ -25,7 +25,7 @@ class UpdateInstallerTest {@Testfun theReleaseGivesTheApkItsSizeAndChecksum() {- val l = UpdateChecker.parseLatest(release)+ val l = UpdateChecker.parseLatest(release, foss = false)assertEquals("2.21.0", l.version)assertTrue(l.apkUrl!!.endsWith("-release.apk"))assertEquals(33755804L, l.apkSize)@@ -33,9 +33,20 @@ class UpdateInstallerTest {assertTrue(l.notesUrl.contains("v2.21.0"))}+ @Test+ fun eachBuildTakesItsOwnApk() {+ val both = """{"tag_name":"v2.24.0","assets":[+ {"name":"RFSentinel-v2.24.0-foss.apk","browser_download_url":"f","size":2},+ {"name":"RFSentinel-v2.24.0-release.apk","browser_download_url":"r","size":3}]}"""+ assertEquals("r", UpdateChecker.parseLatest(both, foss = false).apkUrl)+ assertEquals("f", UpdateChecker.parseLatest(both, foss = true).apkUrl)+ // A release without a FOSS APK offers the FOSS build nothing to install.+ assertNull(UpdateChecker.parseLatest(release, foss = true).apkUrl)+ }+@Testfun aReleaseWithoutAChecksumOrApkStillReads() {- val l = UpdateChecker.parseLatest("""{"tag_name":"v2.21.0","assets":[{"name":"RFSentinel-v2.21.0-release.apk","browser_download_url":"u","size":5}]}""")+ val l = UpdateChecker.parseLatest("""{"tag_name":"v2.21.0","assets":[{"name":"RFSentinel-v2.21.0-release.apk","browser_download_url":"u","size":5}]}""", foss = false)assertNull(l.apkSha256)assertEquals(5L, l.apkSize)assertNull(UpdateChecker.parseLatest("""{"tag_name":"v2.21.0"}""").apkUrl)diff --git a/fastlane/metadata/android/en-US/changelogs/52.txt b/fastlane/metadata/android/en-US/changelogs/52.txtnew file mode 100644index 0000000..16e3e7a--- /dev/null+++ b/fastlane/metadata/android/en-US/changelogs/52.txt@@ -0,0 +1,4 @@+First F-Droid build (beta).+- FOSS build: only free software; the map is OpenFreeMap.+- USB WiFi adapters that need non-free firmware ask before downloading it once from kernel.org, checked against a fixed fingerprint.+- The in-app updater picks the right APK for each build, and leaves F-Droid copies to F-Droid.diff --git a/fastlane/metadata/android/en-US/full_description.txt b/fastlane/metadata/android/en-US/full_description.txtnew file mode 100644index 0000000..677f9e9--- /dev/null+++ b/fastlane/metadata/android/en-US/full_description.txt@@ -0,0 +1,28 @@+<p><b>Beta.</b> RF Sentinel is under active development: expect rough edges, and please report problems on GitHub.</p>++<p>RF Sentinel passively detects body cameras, license-plate (ALPR) cameras, patrol-vehicle equipment, drones, Bluetooth trackers following you, camera glasses and signs of fake cell towers, from the Bluetooth LE, WiFi and cellular signals they already broadcast. No root, no account, no tracking. It only listens: it never transmits to, connects to, jams or spoofs any device.</p>++<p><b>What it does</b></p>+<ul>+<li>Live list, radar and map of nearby devices, with a confidence score and the evidence behind every match</li>+<li>Alerts by sound, vibration pattern and spoken announcement, a floating threat bubble over other apps, and Android Auto support</li>+<li>Follower detection: a device that stays with you, or keeps turning up where you go</li>+<li>Drone Remote ID (Bluetooth and Wi-Fi), AirTag and other tracker detection</li>+<li>Fake cell tower signs (sudden strong new cell, odd area codes, downgrades)</li>+<li>Map of known plate, speed and red-light cameras from OpenStreetMap, with the direction they face</li>+<li>Optional hardware over USB OTG: USB WiFi adapters in monitor mode (no root), RTL-SDR radio (radio activity and an ADS-B aircraft receiver), ESP32 boards</li>+<li>History, heatmaps, traces and a searchable device history, all kept on the phone</li>+</ul>++<p>A match means a device with that vendor or payload signature is broadcasting nearby. It is not proof of who is there.</p>++<p><b>This build</b></p>+<p>This is the FOSS build: it contains only free software. The map is always OpenFreeMap (MapLibre); the optional Mapbox map is in the GitHub "full" build only.</p>++<p><b>Anti-features</b></p>+<ul>+<li><b>Non-free network services</b>: the optional Waze police reports come from Waze's own servers or the OpenWeb Ninja API (your own key), and the optional RadioReference lookup uses RadioReference's API (your own account). They are off unless you turn them on.</li>+<li><b>Non-free add-ons</b>: some USB WiFi adapters (RT3070, MT7612U, MT7921AU, RTL8812BU / 8822BU) need their maker's firmware, which is not free software. When you plug one in, the app asks before downloading that exact file once from the Linux firmware repository on kernel.org, checked against a fixed SHA-256. Adapters that need no firmware, or free firmware, work without it.</li>+</ul>++<p>Internet is used only for map data, the known-camera list, routing and search, the community aircraft feeds (adsb.fi, adsb.lol; can be turned off) and the online features you turn on. Source code and documentation: https://github.com/CIS-C0/RFSentinel</p>diff --git a/fastlane/metadata/android/en-US/images/featureGraphic.png b/fastlane/metadata/android/en-US/images/featureGraphic.pngnew file mode 100644index 0000000..8196f98Binary files /dev/null and b/fastlane/metadata/android/en-US/images/featureGraphic.png differdiff --git a/fastlane/metadata/android/en-US/images/icon.png b/fastlane/metadata/android/en-US/images/icon.pngnew file mode 100644index 0000000..9ba0088Binary files /dev/null and b/fastlane/metadata/android/en-US/images/icon.png differdiff --git a/fastlane/metadata/android/en-US/images/phoneScreenshots/1.jpg b/fastlane/metadata/android/en-US/images/phoneScreenshots/1.jpgnew file mode 100644index 0000000..21762a8Binary files /dev/null and b/fastlane/metadata/android/en-US/images/phoneScreenshots/1.jpg differdiff --git a/fastlane/metadata/android/en-US/images/phoneScreenshots/2.jpg b/fastlane/metadata/android/en-US/images/phoneScreenshots/2.jpgnew file mode 100644index 0000000..c5e98c2Binary files /dev/null and b/fastlane/metadata/android/en-US/images/phoneScreenshots/2.jpg differdiff --git a/fastlane/metadata/android/en-US/images/phoneScreenshots/3.jpg b/fastlane/metadata/android/en-US/images/phoneScreenshots/3.jpgnew file mode 100644index 0000000..b0ac828Binary files /dev/null and b/fastlane/metadata/android/en-US/images/phoneScreenshots/3.jpg differdiff --git a/fastlane/metadata/android/en-US/images/phoneScreenshots/4.jpg b/fastlane/metadata/android/en-US/images/phoneScreenshots/4.jpgnew file mode 100644index 0000000..b95cdcaBinary files /dev/null and b/fastlane/metadata/android/en-US/images/phoneScreenshots/4.jpg differdiff --git a/fastlane/metadata/android/en-US/images/phoneScreenshots/5.jpg b/fastlane/metadata/android/en-US/images/phoneScreenshots/5.jpgnew file mode 100644index 0000000..822312aBinary files /dev/null and b/fastlane/metadata/android/en-US/images/phoneScreenshots/5.jpg differdiff --git a/fastlane/metadata/android/en-US/images/phoneScreenshots/6.jpg b/fastlane/metadata/android/en-US/images/phoneScreenshots/6.jpgnew file mode 100644index 0000000..7e784f4Binary files /dev/null and b/fastlane/metadata/android/en-US/images/phoneScreenshots/6.jpg differdiff --git a/fastlane/metadata/android/en-US/short_description.txt b/fastlane/metadata/android/en-US/short_description.txtnew file mode 100644index 0000000..78a4380--- /dev/null+++ b/fastlane/metadata/android/en-US/short_description.txt@@ -0,0 +1 @@+Passive scanner for body cams, plate cameras, trackers, drones and fake cellsdiff --git a/fastlane/metadata/android/en-US/title.txt b/fastlane/metadata/android/en-US/title.txtnew file mode 100644index 0000000..2c2129b--- /dev/null+++ b/fastlane/metadata/android/en-US/title.txt@@ -0,0 +1 @@+RF Sentinel