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
RTL-SDR Blog V4L: detected by name, with its VCO setting and input switch (from RTL-SDR Blog's driver)
CIS-C0129dbf255a60
diff --git a/README.md b/README.mdindex f7295ee..4cc5b74 100644--- a/README.md+++ b/README.md@@ -752,7 +752,7 @@ in radio range. Needs *Police aircraft* on; its *Online aircraft feeds* switch cbe turned off so nothing leaves the phone. A 1090 MHz antenna helps.Plug an RTL-SDR dongle (R820T / R820T2 / R860 tuner, e.g. RTL-SDR Blog V3, or the-RTL-SDR Blog V4) or a **HackRF One** into the phone with an OTG cable while scanning.+RTL-SDR Blog V4 or V4L) or a **HackRF One** into the phone with an OTG cable while scanning.The HackRF is only ever used to receive: its transmitter, RF amplifier and antenna-portpower stay off. RF Sentinelsweeps the North American public-safety radio bands - the 700 and 800 MHz bandsdiff --git a/app/src/main/java/com/rfsentinel/app/sdr/RtlSdr.kt b/app/src/main/java/com/rfsentinel/app/sdr/RtlSdr.ktindex e9ef527..8ede521 100644--- a/app/src/main/java/com/rfsentinel/app/sdr/RtlSdr.kt+++ b/app/src/main/java/com/rfsentinel/app/sdr/RtlSdr.kt@@ -2,7 +2,7 @@ package com.rfsentinel.app.sdr/** Userspace driver for RTL2832U "RTL-SDR" dongles with a Rafael Micro R820T / R820T2 /- * R860 or R828D tuner (RTL-SDR Blog V3 / V4, Nooelec NESDR and most generic DVB-T+ * R860 or R828D tuner (RTL-SDR Blog V3 / V4 / V4L, Nooelec NESDR and most generic DVB-T* sticks), over Android's USB host API - no root. Receive only: it tunes, sets the gain* and reads raw I/Q samples, which RF Sentinel only turns into a power spectrum* (nothing is demodulated, decoded or recorded).@@ -26,6 +26,8 @@ class RtlSdr(private val conn: UsbDeviceConnection, private val device: UsbDevicvar tuner: Tuner? = null; private set/** RTL-SDR Blog V4: R828D with a 28.8 MHz crystal, its own band inputs and notch filters. */var blogV4 = false; private set+ /** RTL-SDR Blog V4L: answers as an R820T, with the R828D's VCO setting and an input switch on the upconverter GPIO. */+ var blogV4L = false; private setoverride var sampleRate = 0; private setoverride var ctlErrors = 0; private set/** True once the dongle stops answering altogether (unplugged, or its USB link died). */@@ -69,7 +71,8 @@ class RtlSdr(private val conn: UsbDeviceConnection, private val device: UsbDevictry { Thread.sleep(50) } catch (_: InterruptedException) {}}blogV4 = tuner == Tuner.R828D && maker == "RTLSDRBlog" && product == "Blog V4"- log("RTL-SDR: \"$maker $product\", tuner ${tuner ?: "not supported (E4000 / FC001x / FC2580?)"}${if (blogV4) " (RTL-SDR Blog V4)" else ""}")+ blogV4L = tuner == Tuner.R820T && maker == "RTLSDRBlog" && product == "Blog V4L"+ log("RTL-SDR: \"$maker $product\", tuner ${tuner ?: "not supported (E4000 / FC001x / FC2580?)"}${if (blogV4) " (RTL-SDR Blog V4)" else if (blogV4L) " (RTL-SDR Blog V4L)" else ""}")if (tuner == null) { setI2cRepeater(false); return false }if (tuner == Tuner.R828D) { i2cAddr = R828D_I2C_ADDR; if (!blogV4) tunerXtal = R828D_XTAL }// R82xx: low IF, not zero-IF; only the in-phase ADC; spectrum inversion@@ -364,7 +367,7 @@ class RtlSdr(private val conn: UsbDeviceConnection, private val device: UsbDevicmixDiv = mixDiv shl 1}val data = r82xxRead(5)- val vcoPowerRef = if (tuner == Tuner.R828D) 1 else 2+ val vcoPowerRef = if (tuner == Tuner.R828D || blogV4L) 1 else 2val vcoFineTune = (data[4] and 0x30) shr 4if (vcoFineTune > vcoPowerRef) divNum-- else if (vcoFineTune < vcoPowerRef) divNum++p[0] = (p[0] and 0xe0.inv()) or ((divNum shl 5) and 0xe0)@@ -403,6 +406,12 @@ class RtlSdr(private val conn: UsbDeviceConnection, private val device: UsbDevicr82xxWriteMask(0x05, if (band == VHF) 0x40 else 0x00, 0x40)r82xxWriteMask(0x05, if (band == UHF) 0x00 else 0x20, 0x20)}+ } else if (blogV4L) {+ if (input != UHF) { // one input above HF: air-in, cable 1 off+ input = UHF+ setGpioOutput(5); setGpioBit(5, true) // upconverter switch: not HF+ r82xxWriteMask(0x05, 0x00, 0x60)+ }} else if (tuner == Tuner.R828D) {val airCable1 = if (hz > 345_000_000L) 0x00 else 0x60if (airCable1 != input) { input = airCable1; r82xxWriteMask(0x05, airCable1, 0x60) }diff --git a/app/src/main/java/com/rfsentinel/app/usb/NOTICE.md b/app/src/main/java/com/rfsentinel/app/usb/NOTICE.mdindex 8997bd5..aa9e944 100644--- a/app/src/main/java/com/rfsentinel/app/usb/NOTICE.md+++ b/app/src/main/java/com/rfsentinel/app/usb/NOTICE.md@@ -39,7 +39,7 @@ These drivers run USB WiFi adapters in receive-only monitor mode from userspace.| Realtek Bluetooth set-up (chip identification, v1 epatch parsing, firmware / config download) | Linux `btrtl` driver (`drivers/bluetooth/btrtl.c`, Copyright (C) 2015 Endless Mobile, Inc.; Realtek Semiconductor Corp.) | GPL-2.0 || MT7921AU Bluetooth firmware `BT_RAM_CODE_MT7961_1_2_hdr.bin` (unmodified, from linux-firmware) | MediaTek Inc. | Redistributable binary, see `assets/usbwifi/LICENCE.mediatek` || Realtek Bluetooth firmware and config files `bt_rtl*.bin` (unmodified, from linux-firmware `rtl_bt/`) | Realtek Semiconductor Corp. | Redistributable binary, see `assets/usbwifi/LICENCE.rtlwifi_firmware.txt` |-| 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 |+| RTL-SDR driver (`sdr/RtlSdr.kt`: RTL2832U baseband, R820T / R828D tuner, RTL-SDR Blog V4 and V4L 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