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.

14.6 KB
Raw Blame
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>How RF Sentinel Detects Police &amp; Surveillance Gear</title>
<meta name="description" content="How the police detector works: passive Bluetooth LE and WiFi scanning, vendor signatures, confidence tiers, evidence fusion and patrol-car signal correlation.">
<link rel="canonical" href="https://cis-c0.github.io/RFSentinel/how-it-works.html">
<meta name="robots" content="index, follow, max-image-preview:large">
<meta name="theme-color" content="#050507">
<meta property="og:type" content="article">
<meta property="og:site_name" content="RF Sentinel">
<meta property="og:title" content="How RF Sentinel Detects Police &amp; Surveillance Gear">
<meta property="og:description" content="How the police detector works: passive Bluetooth LE and WiFi scanning, vendor signatures, confidence tiers, evidence fusion and patrol-car signal correlation.">
<meta property="og:url" content="https://cis-c0.github.io/RFSentinel/how-it-works.html">
<meta property="og:image" content="https://cis-c0.github.io/RFSentinel/assets/og.png">
<meta property="og:image:width" content="1280">
<meta property="og:image:height" content="640">
<meta property="og:image:alt" content="RF Sentinel - BLE and WiFi police scanner for Android">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="How RF Sentinel Detects Police &amp; Surveillance Gear">
<meta name="twitter:description" content="How the police detector works: passive Bluetooth LE and WiFi scanning, vendor signatures, confidence tiers, evidence fusion and patrol-car signal correlation.">
<meta name="twitter:image" content="https://cis-c0.github.io/RFSentinel/assets/og.png">
<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": "How it works", "item": "https://cis-c0.github.io/RFSentinel/how-it-works.html"}]}]}</script>
</head>
<body>
<a class="skip" href="#main">Skip to content</a>
<header class="top">
  <div class="wrap">
    <a class="brand" href="./"><img src="favicon.svg" alt="" width="28" height="28">RF<span>_</span>SENTINEL</a>
    <nav class="nav" aria-label="Main"><a href="./">Home</a><a href="how-it-works.html" aria-current="page">How it works</a><a href="police-detector.html">Guides</a><a href="install.html">Install</a><a href="android-auto.html">Android Auto</a><a href="hardware.html">Hardware</a><a href="qa.html">Q&amp;A</a></nav>
    <div class="social">
      <a class="icon-btn discord" href="https://discord.gg/NDTjn8HMGq" rel="noopener"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M20.3 4.4A19.8 19.8 0 0 0 15.4 2.9l-.6 1.3a18.3 18.3 0 0 0-5.5 0L8.7 2.9a19.7 19.7 0 0 0-4.9 1.5C.5 9-.3 13.6.1 18.1a19.9 19.9 0 0 0 6 3l1.3-2a12.9 12.9 0 0 1-1.9-.9l.4-.3a14.2 14.2 0 0 0 12.1 0l.4.3c-.6.4-1.2.7-1.9.9l1.3 2a19.8 19.8 0 0 0 6-3c.5-5.2-.8-9.7-3.5-13.7zM8 15.3c-1.2 0-2.2-1.1-2.2-2.4S6.8 10.5 8 10.5s2.2 1.1 2.2 2.4-1 2.4-2.2 2.4zm8 0c-1.2 0-2.2-1.1-2.2-2.4s1-2.4 2.2-2.4 2.2 1.1 2.2 2.4-1 2.4-2.2 2.4z"/></svg><span class="lbl">Discord</span></a>
      <a class="icon-btn github" href="https://github.com/CIS-C0/RFSentinel" rel="noopener"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M12 .3a12 12 0 0 0-3.8 23.4c.6.1.8-.3.8-.6v-2c-3.3.7-4-1.6-4-1.6-.6-1.4-1.4-1.8-1.4-1.8-1-.7.1-.7.1-.7 1.2.1 1.8 1.2 1.8 1.2 1 1.8 2.8 1.3 3.5 1 0-.8.4-1.3.7-1.6-2.7-.3-5.5-1.3-5.5-5.9 0-1.3.5-2.4 1.2-3.2 0-.3-.5-1.5.2-3.2 0 0 1-.3 3.3 1.2a11.5 11.5 0 0 1 6 0c2.3-1.5 3.3-1.2 3.3-1.2.6 1.7.2 2.9.1 3.2.8.8 1.2 1.9 1.2 3.2 0 4.6-2.8 5.6-5.5 5.9.5.4.9 1.1.9 2.2v3.3c0 .3.1.7.8.6A12 12 0 0 0 12 .3"/></svg><span class="lbl">GitHub</span></a>
    </div>
  </div>
</header>
<main id="main" class="wrap">
<div class="page-head">
  <p class="crumbs"><a href="./">rf_sentinel</a> / how-it-works</p>
  <h1>How it works</h1>
  <p class="lead">From radio packet to alert. Every rule and threshold here is in the public source; file names point at the Kotlin classes.</p>
</div>

<h2 id="scan">1. Scanning (receive only)</h2>
<ul>
<li><b>Bluetooth LE</b> (<code>service/BleScanEngine.kt</code>): continuous <code>BluetoothLeScanner</code> scan, no batching, aggressive match mode, legacy + BT5 extended advertising and LE Coded PHY when the chip supports them. Scan mode: low latency (default), balanced or low power.</li>
<li><b>Screen off:</b> Android suspends unfiltered scans, so a second, hardware-filtered scan runs on the identifiers that matter (vendor company IDs, Remote ID, tracker and glasses service data and UUIDs, watchlisted exact addresses).</li>
<li><b>WiFi</b>: <code>WifiManager</code> scans every 30 s by default (Android allows about 4 per 2 minutes), including raw information elements on Android 11+.</li>
<li><b>Cell</b>: <code>getAllCellInfo()</code> every 15 s for <a href="imsi-catcher-detector.html">fake-tower signs</a>.</li>
<li><b>External</b>: OUI-Spy / GhostESP / Marauder <a href="hardware.html#esp32">ESP32 boards</a> over USB or Bluetooth (also through a Flipper Zero), FREE-WiLi 2, and USB WiFi adapters: RTL8811AU / 8821AU, RTL8812AU (experimental), RTL8812BU / 8822BU, RTL8814AU, MT7612U (2.4 + 5 GHz), the WiFi 6E MT7921AU (2.4 + 5 + 6 GHz), RTL8187, RT3070 and, experimental, AR9271; and USB Bluetooth (the Bluetooth part of MT7921AU / RTL8821AU / RTL8822BU combo adapters, or a USB Bluetooth dongle) as a second Bluetooth LE scanner.</li>
</ul>
<p>Nothing is ever transmitted to, connected to or paired with a scanned device.</p>

<h2 id="signatures">2. Signatures</h2>
<p><code>detect/SignatureEngine.kt</code> matches payload tags (<code>BWCDEVICE</code>), Bluetooth SIG company IDs, 16 and 128-bit service UUIDs, service data, names and SSIDs. The watchlist matches exact addresses, IEEE MA-L / MA-M / MA-S prefixes, name, name-prefix (<code>starts:</code>) and vendor rules, Bluetooth advert patterns (<code>adv:</code>, learned with <i>I saw it</i>, probable at most) and WiFi probe fingerprints, seeded by regional presets (<code>assets/oui_presets/</code>: Global, Canada, US). Every prefix used in code is checked against its IEEE registrant by <code>tools/gen_assets.py</code>, which fails the build data if one changes.</p>
<div class="table-wrap"><table>
<thead><tr><th>Tier</th><th>Confidence</th><th>Meaning</th></tr></thead>
<tbody>
<tr><td>Weak</td><td>&lt; 50</td><td>Shared identifier; amber, silent by default</td></tr>
<tr><td>Probable</td><td>50-79</td><td>Vendor-specific identifier; alerts at the default threshold</td></tr>
<tr><td>Strong</td><td>80+</td><td>Payload tag or vendor-assigned network name</td></tr>
</tbody></table></div>
<p>Rejected on purpose: bare 10-digit BLE names, the <code>-FALCON</code> SSID suffix, Liteon module blocks, Motorola Mobility blocks (consumer phones), Sierra Wireless / Cradlepoint blocks as standalone matches, and company ID <code>0x058E</code> alone.</p>

<h2 id="fusion">3. Evidence fusion</h2>
<p><code>detect/EvidenceFusion.kt</code>, every 2 s per device. Different rules of the same category combine by noisy-OR with each supporting hit at half weight:</p>
<pre><code>fused = 1 - (1 - top) × Π (1 - 0.5 × support_i)      support_i ≥ 30, result ≤ 90</code></pre>
<p>Example: watchlisted address 70 + Zebra serial name 50 → 78. The patrol-vehicle hit is never fused, because it is derived from the device's own matches.</p>

<h2 id="patrol">4. Patrol-vehicle grouping</h2>
<p><code>detect/PatrolCluster.kt</code>. Each device gets a role (body camera, plate reader, two-way radio, vehicle cellular router, mobile printer, in-car computer, rugged laptop, police camera) from its matches or IEEE registrant. Two or more different roles form a vehicle when their RSSI correlates (Pearson r ≥ 0.6 over ≥ 8 aligned seconds) or both are parked (flat) and appeared within 30 s of each other. The group needs a police-specific role, or both a two-way radio and a vehicle router: printers, breath-screening devices and vehicle interface modules only add to a group. Score: 24 + 12 × roles, +10 if moving together, cap 88. A device's own match is held 2 minutes after its evidence was last seen.</p>

<h2 id="linking">5. Address-rotation linking</h2>
<p><code>detect/AdvertFingerprint.kt</code>. Fingerprint = names, service UUIDs, service-data and company-ID payload sizes, TX power, connectable flag. A new private address with the same fingerprint as exactly one device that went silent 1.5-30 s earlier inherits its matches (−5), follow history (time with you, GPS path) and ignore state. Apple-Continuity-only adverts are never linked.</p>

<h2 id="follow">6. Follow detection</h2>
<p>A tracker or flagged device heard continuously (gaps under 3 minutes) for at least 10 minutes while you moved at least 800 m raises <b>may be following you</b>, once per device. Both thresholds are adjustable.</p>

<h2 id="identify">7. Identifying ordinary devices</h2>
<ol>
<li>Decoded vendor protocols (Apple Continuity incl. exact AirPods / Beats model, iBeacon, Eddystone, Fast Pair named by model from Momentum-Apps' genuine-device list (GPL-3.0, @Willy-JL, @Spooks4576), Remote ID)</li>
<li>GAP appearance</li>
<li>Standard SIG services (heart rate, HID, LE Audio, medical...)</li>
<li>Name patterns</li>
<li>Member-service owner</li>
<li>IEEE registrant</li>
<li>Company ID</li>
</ol>

<h2 id="wifi">8. WiFi fingerprinting</h2>
<p><code>detect/WifiFingerprint.kt</code>: WPS element (manufacturer <code>0x1021</code>, model name <code>0x1023</code>, model number <code>0x1024</code>, device name <code>0x1011</code>, primary device type <code>0x1054</code>), Cisco CCX AP name (IE 133, bytes 10-25), BSSID registrant (unless chipset-only), vendor IE owners split into equipment and chipset makers. BSSIDs are the same AP when octets 2-5 match, the last octet is within 16 and the first is equal or locally administered.</p>

<h2 id="cameras">9. Known cameras</h2>
<p><code>alpr/</code>: OpenStreetMap elements tagged <code>surveillance:type=ALPR</code>, speed and red-light cameras, fetched via Overpass (overpass-api.de, with overpass.kumi.systems and overpass.private.coffee as fallbacks) and DeFlock's region snapshots, cached privately, refreshed weekly. Warnings when a camera is ~20 s ahead (150-600 m) and getting closer.</p>

<h2 id="sources">Sources</h2>
<ul>
<li><a href="https://github.com/soyboi1312/all-cameras-are-beacons" rel="noopener">all-cameras-are-beacons</a> signature reference (Apache-2.0): confidence ladder and field-validated values</li>
<li>opendroneid-core-c (Apache-2.0): Remote ID message layout</li>
<li>IEEE Registration Authority (via Wireshark's weekly copy) and Bluetooth SIG assigned numbers</li>
<li>Community prefix lists cross-checked: Flock You, OUI-Spy, nite-oui-collection, Wardrive Go, Flock-You-Android, Fieldwatch</li>
</ul>
<p>Full tables: <a href="https://github.com/CIS-C0/RFSentinel/blob/main/docs/SIGNATURES.md" rel="noopener">docs/SIGNATURES.md</a>.</p>
<section class="community" aria-label="Community">
  <a class="dc" href="https://discord.gg/NDTjn8HMGq" rel="noopener"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M20.3 4.4A19.8 19.8 0 0 0 15.4 2.9l-.6 1.3a18.3 18.3 0 0 0-5.5 0L8.7 2.9a19.7 19.7 0 0 0-4.9 1.5C.5 9-.3 13.6.1 18.1a19.9 19.9 0 0 0 6 3l1.3-2a12.9 12.9 0 0 1-1.9-.9l.4-.3a14.2 14.2 0 0 0 12.1 0l.4.3c-.6.4-1.2.7-1.9.9l1.3 2a19.8 19.8 0 0 0 6-3c.5-5.2-.8-9.7-3.5-13.7zM8 15.3c-1.2 0-2.2-1.1-2.2-2.4S6.8 10.5 8 10.5s2.2 1.1 2.2 2.4-1 2.4-2.2 2.4zm8 0c-1.2 0-2.2-1.1-2.2-2.4s1-2.4 2.2-2.4 2.2 1.1 2.2 2.4-1 2.4-2.2 2.4z"/></svg><span><strong>Join the Discord</strong>Help, ideas, new signatures, field captures and ESP32 builds.</span></a>
  <a class="gh" href="https://github.com/CIS-C0/RFSentinel" rel="noopener"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M12 .3a12 12 0 0 0-3.8 23.4c.6.1.8-.3.8-.6v-2c-3.3.7-4-1.6-4-1.6-.6-1.4-1.4-1.8-1.4-1.8-1-.7.1-.7.1-.7 1.2.1 1.8 1.2 1.8 1.2 1 1.8 2.8 1.3 3.5 1 0-.8.4-1.3.7-1.6-2.7-.3-5.5-1.3-5.5-5.9 0-1.3.5-2.4 1.2-3.2 0-.3-.5-1.5.2-3.2 0 0 1-.3 3.3 1.2a11.5 11.5 0 0 1 6 0c2.3-1.5 3.3-1.2 3.3-1.2.6 1.7.2 2.9.1 3.2.8.8 1.2 1.9 1.2 3.2 0 4.6-2.8 5.6-5.5 5.9.5.4.9 1.1.9 2.2v3.3c0 .3.1.7.8.6A12 12 0 0 0 12 .3"/></svg><span><strong>CIS-C0/RFSentinel on GitHub</strong>Source code, releases, issues. A star helps others find it.</span></a>
</section>
</main>
<footer>
  <div class="wrap">
    <div class="cols">
      <div>
        <p class="foot-title">RF Sentinel</p>
        <ul>
          <li><a href="https://github.com/CIS-C0/RFSentinel/releases/latest">Download the APK</a></li>
          <li><a href="install.html">Install &amp; update</a></li>
          <li><a href="how-it-works.html">How detection works</a></li>
          <li><a href="qa.html">Q&amp;A</a></li>
        </ul>
      </div>
      <div>
        <p class="foot-title">Guides</p>
        <ul><li><a href="what-is-rf-sentinel.html">What is RF Sentinel?</a></li><li><a href="police-detector.html">Detect police with Android</a></li><li><a href="flock-camera-detector.html">Flock &amp; plate-reader cameras</a></li><li><a href="imsi-catcher-detector.html">Stingray / IMSI catcher signs</a></li><li><a href="tracker-detector.html">AirTag &amp; tracker detection</a></li><li><a href="drone-detector.html">Remote ID drone detector</a></li><li><a href="smart-glasses-detector.html">Smart glasses detector</a></li><li><a href="alternatives.html">Compared with other tools</a></li><li><a href="sophia-alternative.html">Free SØPHIA alternative</a></li></ul>
      </div>
      <div>
        <p class="foot-title">Community</p>
        <ul>
          <li><a href="https://discord.gg/NDTjn8HMGq" rel="noopener">Discord server</a></li>
          <li><a href="https://github.com/CIS-C0/RFSentinel" rel="noopener">GitHub repository</a></li>
          <li><a href="https://github.com/CIS-C0/RFSentinel/issues" rel="noopener">Issues &amp; device reports</a></li>
          <li><a href="https://github.com/CIS-C0/RFSentinel/blob/main/docs/SIGNATURES.md" rel="noopener">Signature reference</a></li>
        </ul>
      </div>
    </div>
    <p class="legal">RF Sentinel is free software under the GNU GPL v3.0. Copyright © 2026 CIS-C0.
    Receive-only: it transmits nothing, and a detection is a signature match, not proof of who is present. Check your local laws.
    Not affiliated with any company or product named on this site; names are used only to describe compatibility and detection.
    No cookies, no analytics, no trackers on this site.</p>
  </div>
</footer>
<script src="assets/site.js"></script>
</body>
</html>