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
No driving notice for Portugal
CIS-C0428e00716b11
diff --git a/app/src/main/java/com/rfsentinel/app/settings/SettingsActivity.kt b/app/src/main/java/com/rfsentinel/app/settings/SettingsActivity.ktindex adb42c5..0af3381 100644--- a/app/src/main/java/com/rfsentinel/app/settings/SettingsActivity.kt+++ b/app/src/main/java/com/rfsentinel/app/settings/SettingsActivity.kt@@ -797,7 +797,6 @@ class SettingsActivity : AppCompatActivity() {binding.presetFrance.setOnCheckedChangeListener { _, on -> if (on) com.rfsentinel.app.ui.RegionNotice.show(this, "france") }binding.presetUk.isChecked = "uk" in enabledPresetsbinding.presetPortugal.isChecked = "portugal" in enabledPresets- binding.presetPortugal.setOnCheckedChangeListener { _, on -> if (on) com.rfsentinel.app.ui.RegionNotice.show(this, "portugal") }// Alertsval threshold = Prefs.alertThreshold(this)diff --git a/app/src/main/java/com/rfsentinel/app/ui/RegionNotice.kt b/app/src/main/java/com/rfsentinel/app/ui/RegionNotice.ktindex 2f3db81..58f23a1 100644--- a/app/src/main/java/com/rfsentinel/app/ui/RegionNotice.kt+++ b/app/src/main/java/com/rfsentinel/app/ui/RegionNotice.kt@@ -5,8 +5,8 @@ import androidx.appcompat.app.AlertDialog/*** Shown when a regional preset with driving rules worth knowing is switched on: France bans- * radar detectors and speed-camera warnings; Portugal bans radar detectors but allows- * camera-warning apps. The UK allows both (laser jammers aside), so it has no notice.+ * apps that signal speed cameras. Elsewhere (UK, Portugal...) camera warnings are allowed, and+ * RF Sentinel doesn't detect radar, so there's no notice.*/object RegionNotice {@@ -17,16 +17,9 @@ object RegionNotice {"and Waze police reports, and don't use RF Sentinel to locate speed-enforcement equipment. " +"You are responsible for complying with the law."- const val PORTUGAL = "In Portugal, devices that detect or disturb speed radars are illegal (Código da Estrada, " +- "art. 84: €500 to €2,500 fine, device and vehicle papers seized). Apps that warn about known camera " +- "locations, like RF Sentinel's Known cameras, are allowed.\n\n" +- "RF Sentinel listens for Bluetooth and WiFi, not radar - but don't use it to hunt for speed-enforcement " +- "equipment while driving. You are responsible for complying with the law."-/** The notice for a preset key, or null when that region has none. */fun textFor(preset: String): Pair<String, String>? = when (preset) {"france" -> "Driving in France" to FRANCE- "portugal" -> "Driving in Portugal" to PORTUGALelse -> null}diff --git a/app/src/test/java/com/rfsentinel/app/ui/RegionNoticeTest.kt b/app/src/test/java/com/rfsentinel/app/ui/RegionNoticeTest.ktindex 22a9380..0753520 100644--- a/app/src/test/java/com/rfsentinel/app/ui/RegionNoticeTest.kt+++ b/app/src/test/java/com/rfsentinel/app/ui/RegionNoticeTest.kt@@ -11,7 +11,7 @@ class RegionNoticeTest {@Testfun noticesOnlyWhereTheLawRestrictsDetectors() {assertNotNull(RegionNotice.textFor("france"))- assertTrue(RegionNotice.textFor("portugal")!!.second.contains("art. 84"))+ assertNull(RegionNotice.textFor("portugal"))assertNull(RegionNotice.textFor("uk"))assertNull(RegionNotice.textFor("us"))}