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.

Settings: section icons, clearer order, moved settings next to related ones; vibrate on Start/Stop

CIS-C0b12cb3bb583c
diff --git a/app/src/main/java/com/rfsentinel/app/MainActivity.kt b/app/src/main/java/com/rfsentinel/app/MainActivity.kt
index 527787b..d09014a 100644
--- a/app/src/main/java/com/rfsentinel/app/MainActivity.kt
+++ b/app/src/main/java/com/rfsentinel/app/MainActivity.kt
@@ -207,6 +207,7 @@ class MainActivity : AppCompatActivity() {
binding.startStopButton.addOnLayoutChangeListener { _, l, _, r, _, ol, _, or, _ -> if (r - l != or - ol) fitStartButton() }
binding.startStopButton.setOnClickListener {
+ it.performHapticFeedback(android.view.HapticFeedbackConstants.VIRTUAL_KEY)
if (ScanForegroundService.isRunning) stopScanning() else requestPermissionsAndStart()
}
com.rfsentinel.app.ui.ChipStyle.accent(this).let { (accent, onAccent) ->
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 97b40e7..5fd3254 100644
--- a/app/src/main/java/com/rfsentinel/app/settings/SettingsActivity.kt
+++ b/app/src/main/java/com/rfsentinel/app/settings/SettingsActivity.kt
@@ -676,10 +676,23 @@ class SettingsActivity : AppCompatActivity() {
private val sectionUi = mutableListOf<SectionUi>()
+ private val sectionIcons = mapOf(
+ "general" to R.drawable.ic_settings, "appearance" to R.drawable.ic_set_palette, "detect" to R.drawable.ic_set_visibility,
+ "scanning" to R.drawable.ic_tile_scan, "autostart" to R.drawable.ic_set_power, "follow" to R.drawable.ic_set_people,
+ "cameras" to R.drawable.ic_set_camera, "cell" to R.drawable.ic_car_tower, "alerts" to R.drawable.ic_set_bell,
+ "voice" to R.drawable.ic_car_voice, "overlay" to R.drawable.ic_set_overlay, "map" to R.drawable.ic_map,
+ "radar" to R.drawable.ic_radar, "navigation" to R.drawable.ic_nav_navigation, "location" to R.drawable.ic_nav_place,
+ "hardware" to R.drawable.ic_car_usb, "radio" to R.drawable.ic_set_antenna, "link" to R.drawable.ic_set_link,
+ "data" to R.drawable.ic_set_storage, "more" to R.drawable.ic_set_info
+ )
+
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" +
+ "Check for updates: asks GitHub for a newer version now. \"Install now\" downloads it and installs it over this " +
+ "one (Android asks you once to allow RF Sentinel to install apps, then shows its own Update card). History and " +
+ "settings are kept, and scanning stops while it installs.\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.\n\n" +
"Screen rotation: phones like the Pixel never auto-rotate upside down. \"Auto-rotate, upside down too\" turns " +
@@ -690,21 +703,6 @@ class SettingsActivity : AppCompatActivity() {
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.\n\n" +
- "Remove from the list: how long an ordinary device stays in the list and radar once it stops being heard (default 30 s Bluetooth, 60 s WiFi). Flagged devices follow these too; favourite and following devices stay 3 minutes. " +
- "Hide trusted devices: whitelisted devices are left out of the list and radar (they stay in the history). " +
- "All can go down to 5 s (WiFi only when \"Wi-Fi scan throttling\" is off in Developer options). " +
- "External hardware: devices heard only by an ESP32 board or a USB WiFi adapter."),
- 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.\n\n" +
- "Record a trace in the car: records a GPS trace from the moment the phone connects to your car until you leave, " +
- "then saves it with your other traces."),
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" +
@@ -745,6 +743,42 @@ class SettingsActivity : AppCompatActivity() {
"• Sweden: Axon body cams of the Swedish police, Sepura and Airbus Rakel radios.\n" +
"French drone electronic IDs are decoded in every region. With a European preset on (and not United States), " +
"Flock detection is off: Flock isn't used there."),
+ 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.\n\n" +
+ "Remove from the list: how long an ordinary device stays in the list and radar once it stops being heard (default 30 s Bluetooth, 60 s WiFi). Flagged devices follow these too; favourite and following devices stay 3 minutes. " +
+ "Hide trusted devices: whitelisted devices are left out of the list and radar (they stay in the history). " +
+ "All can go down to 5 s (WiFi only when \"Wi-Fi scan throttling\" is off in Developer options). " +
+ "External hardware: devices heard only by an ESP32 board or a USB WiFi adapter."),
+ 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.\n\n" +
+ "Record a trace in the car: records a GPS trace from the moment the phone connects to your car until you leave, " +
+ "then saves it with your other traces."),
+ 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" +
+ "Download automatically: fetches the cameras of the map 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.\n\n" +
+ "CCTV cameras: ordinary surveillance cameras volunteers mapped in OpenStreetMap (street, shop, building cameras). " +
+ "Everything within the download radius around you is fetched in the background; they show from city zoom, with a " +
+ "shaded area where their direction is mapped when you zoom in close. Most are wired, so the scan can't detect them. " +
+ "Public ones by default; private outdoor and indoor ones on request. Map only, no alerts.\n\n" +
+ "Delete downloaded cameras: removes the saved plate, speed, red-light and CCTV cameras (they download again as you use the map)."),
+ 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("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" +
@@ -768,33 +802,6 @@ class SettingsActivity : AppCompatActivity() {
"Bubble: each new alert shows what was detected in a small card beside it for a few seconds.\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("navigation", binding.headerNav, binding.sectionNav,
- "Turn-by-turn directions: the search button on the map finds a place (or long-press the map), shows up to three " +
- "routes with the time each takes, and guides you with a banner, lane arrows and spoken directions.\n\n" +
- "Spoken directions play through the navigation voice (music dips under them, as in Maps) and follow the voice " +
- "speed and loudness chosen under Alerts. They are separate from the alert mute and snooze.\n\n" +
- "Network use: routes come from Valhalla on the OpenStreetMap Germany server and places from Photon (komoot), and OpenStreetMap's Nominatim too for a search you submit. They " +
- "see what you search for, where you start, stop and finish, and your IP address - never what you scan. Nothing is " +
- "asked until you search, long-press the map or start a route; search sends your position rounded to about 1 km.\n\n" +
- "Looking for petrol, charging, food and the like asks OpenStreetMap's Overpass servers (as the camera downloads do): " +
- "your position rounded to about 1 km, or the road ahead as points rounded to about 200 m.\n\n" +
- "Avoiding speed cameras and plate readers: the route server is asked for the route again with the road of each " +
- "camera on it left out (a few times), so it also sees those places on your route - nothing else about the cameras " +
- "or what you scan.\n\n" +
- "Not included: live traffic (the arrival time starts from the route's usual driving time and then follows how you really " +
- "drive), speed limits and offline routes.\n\n" +
- "Home, Work, starred and recent places are kept on this phone only."),
- Section("radar", binding.headerRadar, binding.sectionRadar,
- "The radar on the main screen: closer to the centre = stronger signal.\n\n" +
- "Top of the radar: the way you face (it turns with the phone, from the compass, set right by the GPS while you " +
- "drive) or north.\n\n" +
- "Dots without a direction: a phone can't tell which way a signal comes from, so most dots sit at a made-up " +
- "angle. They can stay put on screen, or turn with north like the dots whose direction is known.\n\n" +
- "Directions on the radar: alerts that broadcast their position or were pinpointed, and the device you " +
- "locate once a turn with the phone on your chest has found its side."),
Section("map", binding.headerMap, binding.sectionMap,
"What the map shows.\n\n" +
"Plate, speed and red-light cameras: from OpenStreetMap (Known cameras has the downloads, warnings and CCTV).\n\n" +
@@ -820,24 +827,38 @@ class SettingsActivity : AppCompatActivity() {
"Map provider: OpenFreeMap (OpenStreetMap data, free, no account) or Mapbox (Mapbox's own map: 3D buildings, " +
"day and night light). Mapbox loads its map from Mapbox's servers, which see the area you look at, like any " +
"online map; its usage statistics are switched off. The floating mini map always uses OpenFreeMap."),
- Section("cameras", binding.headerCameras, binding.sectionCameras,
- "Plate-reader and speed / red-light camera positions come from OpenStreetMap.\n\n" +
- "Download automatically: fetches the cameras of the map 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.\n\n" +
- "CCTV cameras: ordinary surveillance cameras volunteers mapped in OpenStreetMap (street, shop, building cameras). " +
- "Everything within the download radius around you is fetched in the background; they show from city zoom, with a " +
- "shaded area where their direction is mapped when you zoom in close. Most are wired, so the scan can't detect them. " +
- "Public ones by default; private outdoor and indoor ones on request. Map only, no alerts.\n\n" +
- "Delete downloaded cameras: removes the saved plate, speed, red-light and CCTV cameras (they download again as you use the map)."),
- 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("radar", binding.headerRadar, binding.sectionRadar,
+ "The radar on the main screen: closer to the centre = stronger signal.\n\n" +
+ "Top of the radar: the way you face (it turns with the phone, from the compass, set right by the GPS while you " +
+ "drive) or north.\n\n" +
+ "Dots without a direction: a phone can't tell which way a signal comes from, so most dots sit at a made-up " +
+ "angle. They can stay put on screen, or turn with north like the dots whose direction is known.\n\n" +
+ "Directions on the radar: alerts that broadcast their position or were pinpointed, and the device you " +
+ "locate once a turn with the phone on your chest has found its side."),
+ Section("navigation", binding.headerNav, binding.sectionNav,
+ "Turn-by-turn directions: the search button on the map finds a place (or long-press the map), shows up to three " +
+ "routes with the time each takes, and guides you with a banner, lane arrows and spoken directions.\n\n" +
+ "Spoken directions play through the navigation voice (music dips under them, as in Maps) and follow the voice " +
+ "speed and loudness chosen under Alerts. They are separate from the alert mute and snooze.\n\n" +
+ "Network use: routes come from Valhalla on the OpenStreetMap Germany server and places from Photon (komoot), and OpenStreetMap's Nominatim too for a search you submit. They " +
+ "see what you search for, where you start, stop and finish, and your IP address - never what you scan. Nothing is " +
+ "asked until you search, long-press the map or start a route; search sends your position rounded to about 1 km.\n\n" +
+ "Looking for petrol, charging, food and the like asks OpenStreetMap's Overpass servers (as the camera downloads do): " +
+ "your position rounded to about 1 km, or the road ahead as points rounded to about 200 m.\n\n" +
+ "Avoiding speed cameras and plate readers: the route server is asked for the route again with the road of each " +
+ "camera on it left out (a few times), so it also sees those places on your route - nothing else about the cameras " +
+ "or what you scan.\n\n" +
+ "Not included: live traffic (the arrival time starts from the route's usual driving time and then follows how you really " +
+ "drive), speed limits and offline routes.\n\n" +
+ "Home, Work, starred and recent places are kept on this phone only."),
+ Section("location", binding.headerLocation, binding.sectionLocation,
+ "Traces: records your route while scanning. Recorded traces lists them, to view on the map.\n\n" +
+ "Saving the GPS position with matches is privacy-sensitive: the log then shows where you were. It also lets the map remember where it last looked, so it can open there before the GPS answers.\n\n" +
+ "Pinpoint flagged devices: while a flagged device is in range, the GPS reads your position every second and " +
+ "its signal is measured at every spot you pass. Once you've passed it from more than one side (around the block), " +
+ "the map puts it where it most likely is, with a circle it is very likely in. Driving one straight road can't tell " +
+ "which side it's on: the circle then covers both. Works for devices that stay put; one that moves with you isn't " +
+ "pinned. Kept in memory, not in the history. Uses more battery while a flagged device is around."),
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" +
@@ -868,15 +889,6 @@ class SettingsActivity : AppCompatActivity() {
"position, with an alert when their light bar or siren is on, or when they warn that they're approaching. " +
"Ordinary cars are counted, not listed. North America uses a different V2X radio (C-V2X) that this board can't hear. " +
"Receiving V2X may fall under telecom or privacy law where you are."),
- Section("link", binding.headerLink, binding.sectionLink,
- "Link RF Sentinel phones near each other over Bluetooth: every linked phone shows the same devices on its list, " +
- "radar and map, whichever phone heard them first - including what each phone's ESP32 board, USB WiFi adapter " +
- "or RTL-SDR hears. Alerts sound on every phone and say which Sentinel heard the device.\n\n" +
- "Linking: tap \"Link up a Sentinel\" on one phone and \"Join a Sentinel\" on the other, then check that both " +
- "screens show the same 6 digits. Three or more phones: link each new one to any phone of the group.\n\n" +
- "Works while scanning, up to about 50-100 m between phones (Bluetooth range); a phone in reach of two others " +
- "passes on what it hears. Everything sent is encrypted for the phones of the group only. No internet, no account, " +
- "and no Android Bluetooth pairing."),
Section("radio", binding.headerRadio, binding.sectionRadio,
"An RTL-SDR dongle or a HackRF on USB notices two-way radios transmitting nearby, from signal strength only - nothing is " +
"decoded or recorded. Needs Two-way radio on (What to detect).\n\n" +
@@ -896,14 +908,15 @@ class SettingsActivity : AppCompatActivity() {
"or let RadioReference name the FCC licences near you (US): needs your own RadioReference Premium login and a " +
"RadioReference developer key; your position rounded to ~1 km is sent to RadioReference, at most once a day per area.\n\n" +
"Changes apply from the next sweep while scanning."),
- 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. It also lets the map remember where it last looked, so it can open there before the GPS answers.\n\n" +
- "Pinpoint flagged devices: while a flagged device is in range, the GPS reads your position every second and " +
- "its signal is measured at every spot you pass. Once you've passed it from more than one side (around the block), " +
- "the map puts it where it most likely is, with a circle it is very likely in. Driving one straight road can't tell " +
- "which side it's on: the circle then covers both. Works for devices that stay put; one that moves with you isn't " +
- "pinned. Kept in memory, not in the history. Uses more battery while a flagged device is around."),
+ Section("link", binding.headerLink, binding.sectionLink,
+ "Link RF Sentinel phones near each other over Bluetooth: every linked phone shows the same devices on its list, " +
+ "radar and map, whichever phone heard them first - including what each phone's ESP32 board, USB WiFi adapter " +
+ "or RTL-SDR hears. Alerts sound on every phone and say which Sentinel heard the device.\n\n" +
+ "Linking: tap \"Link up a Sentinel\" on one phone and \"Join a Sentinel\" on the other, then check that both " +
+ "screens show the same 6 digits. Three or more phones: link each new one to any phone of the group.\n\n" +
+ "Works while scanning, up to about 50-100 m between phones (Bluetooth range); a phone in reach of two others " +
+ "passes on what it hears. Everything sent is encrypted for the phones of the group only. No internet, no account, " +
+ "and no Android Bluetooth pairing."),
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" +
"Live export (off by default): while scanning, rewrites three files every 30 s in the folder you choose - " +
@@ -915,9 +928,6 @@ class SettingsActivity : AppCompatActivity() {
Section("more", binding.headerMore, binding.sectionMore,
"Watchlist & rules: the vendor prefixes and rules that flag a device; add your own.\n\n" +
"Whitelist: devices you trust, never flagged.\n\n" +
- "Check for updates: asks GitHub for a newer version now. \"Install now\" downloads it and installs it over this " +
- "one (Android asks you once to allow RF Sentinel to install apps, then shows its own Update card). History and " +
- "settings are kept, and scanning stops while it installs.\n\n" +
"About & sources: version, licence, where the signatures come from, and the app's limits.\n\n" +
"Crash log: if RF Sentinel ever closes unexpectedly, what went wrong is saved on this phone (never sent " +
"automatically). Export it to send to the developer; the app also offers this the next time it opens.")
@@ -954,6 +964,11 @@ class SettingsActivity : AppCompatActivity() {
orientation = android.widget.LinearLayout.HORIZONTAL
gravity = android.view.Gravity.CENTER_VERTICAL
setBackgroundResource(ripple)
+ addView(android.widget.ImageView(this@SettingsActivity).apply {
+ setImageResource(sectionIcons.getValue(s.key))
+ imageTintList = android.content.res.ColorStateList.valueOf(s.header.currentTextColor)
+ importantForAccessibility = View.IMPORTANT_FOR_ACCESSIBILITY_NO
+ }, android.widget.LinearLayout.LayoutParams((20 * dp).toInt(), (20 * dp).toInt()).apply { marginEnd = (10 * dp).toInt() })
addView(s.header)
addView(info)
}
diff --git a/app/src/main/res/drawable/ic_set_antenna.xml b/app/src/main/res/drawable/ic_set_antenna.xml
new file mode 100644
index 0000000..7cf4267
--- /dev/null
+++ b/app/src/main/res/drawable/ic_set_antenna.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Material Design icon "settings_input_antenna" (Apache-2.0). -->
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="24dp"
+ android:height="24dp"
+ android:viewportWidth="24"
+ android:viewportHeight="24">
+ <path
+ android:fillColor="#FFFFFF"
+ android:pathData="M12,5c-3.87,0 -7,3.13 -7,7h2c0,-2.76 2.24,-5 5,-5s5,2.24 5,5h2c0,-3.87 -3.13,-7 -7,-7zM13,14.29c0.88,-0.39 1.5,-1.26 1.5,-2.29 0,-1.38 -1.12,-2.5 -2.5,-2.5S9.5,10.62 9.5,12c0,1.02 0.62,1.9 1.5,2.29v3.3L7.59,21 9,22.41l3,-3 3,3L16.41,21 13,17.59v-3.3zM12,1C5.93,1 1,5.93 1,12h2c0,-4.97 4.03,-9 9,-9s9,4.03 9,9h2c0,-6.07 -4.93,-11 -11,-11z" />
+</vector>
diff --git a/app/src/main/res/drawable/ic_set_bell.xml b/app/src/main/res/drawable/ic_set_bell.xml
new file mode 100644
index 0000000..d7374da
--- /dev/null
+++ b/app/src/main/res/drawable/ic_set_bell.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Material Design icon "notifications" (Apache-2.0). -->
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="24dp"
+ android:height="24dp"
+ android:viewportWidth="24"
+ android:viewportHeight="24">
+ <path
+ android:fillColor="#FFFFFF"
+ android:pathData="M12,22c1.1,0 2,-0.9 2,-2h-4c0,1.1 0.89,2 2,2zM18,16v-5c0,-3.07 -1.64,-5.64 -4.5,-6.32V4c0,-0.83 -0.67,-1.5 -1.5,-1.5s-1.5,0.67 -1.5,1.5v0.68C7.63,5.36 6,7.92 6,11v5l-2,2v1h16v-1l-2,-2z" />
+</vector>
diff --git a/app/src/main/res/drawable/ic_set_camera.xml b/app/src/main/res/drawable/ic_set_camera.xml
new file mode 100644
index 0000000..38049e2
--- /dev/null
+++ b/app/src/main/res/drawable/ic_set_camera.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Material Design icon "photo_camera" (Apache-2.0). -->
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="24dp"
+ android:height="24dp"
+ android:viewportWidth="24"
+ android:viewportHeight="24">
+ <path
+ android:fillColor="#FFFFFF"
+ android:pathData="M12,12m-3.2,0a3.2,3.2 0,1 1,6.4 0a3.2,3.2 0,1 1,-6.4 0" />
+ <path
+ android:fillColor="#FFFFFF"
+ android:pathData="M9,2L7.17,4H4c-1.1,0 -2,0.9 -2,2v12c0,1.1 0.9,2 2,2h16c1.1,0 2,-0.9 2,-2V6c0,-1.1 -0.9,-2 -2,-2h-3.17L15,2H9zM12,17c-2.76,0 -5,-2.24 -5,-5s2.24,-5 5,-5 5,2.24 5,5 -2.24,5 -5,5z" />
+</vector>
diff --git a/app/src/main/res/drawable/ic_set_info.xml b/app/src/main/res/drawable/ic_set_info.xml
new file mode 100644
index 0000000..81421a5
--- /dev/null
+++ b/app/src/main/res/drawable/ic_set_info.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Material Design icon "info" (Apache-2.0). -->
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="24dp"
+ android:height="24dp"
+ android:viewportWidth="24"
+ android:viewportHeight="24">
+ <path
+ android:fillColor="#FFFFFF"
+ android:pathData="M12,2C6.48,2 2,6.48 2,12s4.48,10 10,10 10,-4.48 10,-10S17.52,2 12,2zM13,17h-2v-6h2v6zM13,9h-2V7h2v2z" />
+</vector>
diff --git a/app/src/main/res/drawable/ic_set_link.xml b/app/src/main/res/drawable/ic_set_link.xml
new file mode 100644
index 0000000..7e88dda
--- /dev/null
+++ b/app/src/main/res/drawable/ic_set_link.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Material Design icon "link" (Apache-2.0). -->
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="24dp"
+ android:height="24dp"
+ android:viewportWidth="24"
+ android:viewportHeight="24">
+ <path
+ android:fillColor="#FFFFFF"
+ android:pathData="M3.9,12c0,-1.71 1.39,-3.1 3.1,-3.1h4V7H7c-2.76,0 -5,2.24 -5,5s2.24,5 5,5h4v-1.9H7c-1.71,0 -3.1,-1.39 -3.1,-3.1zM8,13h8v-2H8v2zM17,7h-4v1.9h4c1.71,0 3.1,1.39 3.1,3.1s-1.39,3.1 -3.1,3.1h-4V17h4c2.76,0 5,-2.24 5,-5s-2.24,-5 -5,-5z" />
+</vector>
diff --git a/app/src/main/res/drawable/ic_set_overlay.xml b/app/src/main/res/drawable/ic_set_overlay.xml
new file mode 100644
index 0000000..89cd8cd
--- /dev/null
+++ b/app/src/main/res/drawable/ic_set_overlay.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Material Design icon "picture_in_picture" (Apache-2.0). -->
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="24dp"
+ android:height="24dp"
+ android:viewportWidth="24"
+ android:viewportHeight="24">
+ <path
+ android:fillColor="#FFFFFF"
+ android:pathData="M19,7h-8v6h8L19,7zM21,3L3,3c-1.1,0 -2,0.9 -2,2v14c0,1.1 0.9,1.98 2,1.98h18c1.1,0 2,-0.88 2,-1.98L23,5c0,-1.1 -0.9,-2 -2,-2zM21,19.01L3,19.01L3,4.98h18v14.03z" />
+</vector>
diff --git a/app/src/main/res/drawable/ic_set_palette.xml b/app/src/main/res/drawable/ic_set_palette.xml
new file mode 100644
index 0000000..71c0115
--- /dev/null
+++ b/app/src/main/res/drawable/ic_set_palette.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Material Design icon "palette" (Apache-2.0). -->
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="24dp"
+ android:height="24dp"
+ android:viewportWidth="24"
+ android:viewportHeight="24">
+ <path
+ android:fillColor="#FFFFFF"
+ android:pathData="M12,3c-4.97,0 -9,4.03 -9,9s4.03,9 9,9c0.83,0 1.5,-0.67 1.5,-1.5 0,-0.39 -0.15,-0.74 -0.39,-1.01 -0.23,-0.26 -0.38,-0.61 -0.38,-0.99 0,-0.83 0.67,-1.5 1.5,-1.5H16c2.76,0 5,-2.24 5,-5 0,-4.42 -4.03,-8 -9,-8zM6.5,12c-0.83,0 -1.5,-0.67 -1.5,-1.5S5.67,9 6.5,9 8,9.67 8,10.5 7.33,12 6.5,12zM9.5,8C8.67,8 8,7.33 8,6.5S8.67,5 9.5,5s1.5,0.67 1.5,1.5S10.33,8 9.5,8zM14.5,8c-0.83,0 -1.5,-0.67 -1.5,-1.5S13.67,5 14.5,5s1.5,0.67 1.5,1.5S15.33,8 14.5,8zM17.5,12c-0.83,0 -1.5,-0.67 -1.5,-1.5S16.67,9 17.5,9s1.5,0.67 1.5,1.5 -0.67,1.5 -1.5,1.5z" />
+</vector>
diff --git a/app/src/main/res/drawable/ic_set_people.xml b/app/src/main/res/drawable/ic_set_people.xml
new file mode 100644
index 0000000..e5740a1
--- /dev/null
+++ b/app/src/main/res/drawable/ic_set_people.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Material Design icon "group" (Apache-2.0). -->
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="24dp"
+ android:height="24dp"
+ android:viewportWidth="24"
+ android:viewportHeight="24">
+ <path
+ android:fillColor="#FFFFFF"
+ android:pathData="M16,11c1.66,0 2.99,-1.34 2.99,-3S17.66,5 16,5c-1.66,0 -3,1.34 -3,3s1.34,3 3,3zM8,11c1.66,0 2.99,-1.34 2.99,-3S9.66,5 8,5C6.34,5 5,6.34 5,8s1.34,3 3,3zM8,13c-2.33,0 -7,1.17 -7,3.5V19h14v-2.5c0,-2.33 -4.67,-3.5 -7,-3.5zM16,13c-0.29,0 -0.62,0.02 -0.97,0.05 1.16,0.84 1.97,1.97 1.97,3.45V19h6v-2.5c0,-2.33 -4.67,-3.5 -7,-3.5z" />
+</vector>
diff --git a/app/src/main/res/drawable/ic_set_power.xml b/app/src/main/res/drawable/ic_set_power.xml
new file mode 100644
index 0000000..335de04
--- /dev/null
+++ b/app/src/main/res/drawable/ic_set_power.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Material Design icon "power_settings_new" (Apache-2.0). -->
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="24dp"
+ android:height="24dp"
+ android:viewportWidth="24"
+ android:viewportHeight="24">
+ <path
+ android:fillColor="#FFFFFF"
+ android:pathData="M13,3h-2v10h2L13,3zM17.83,5.17l-1.42,1.42C17.99,7.86 19,9.81 19,12c0,3.87 -3.13,7 -7,7s-7,-3.13 -7,-7c0,-2.19 1.01,-4.14 2.58,-5.42L6.17,5.17C4.23,6.82 3,9.26 3,12c0,4.97 4.03,9 9,9s9,-4.03 9,-9c0,-2.74 -1.23,-5.18 -3.17,-6.83z" />
+</vector>
diff --git a/app/src/main/res/drawable/ic_set_storage.xml b/app/src/main/res/drawable/ic_set_storage.xml
new file mode 100644
index 0000000..81829ff
--- /dev/null
+++ b/app/src/main/res/drawable/ic_set_storage.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Material Design icon "storage" (Apache-2.0). -->
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="24dp"
+ android:height="24dp"
+ android:viewportWidth="24"
+ android:viewportHeight="24">
+ <path
+ android:fillColor="#FFFFFF"
+ android:pathData="M2,20h20v-4H2v4zM4,17h2v2H4v-2zM2,4v4h20V4H2zM6,7H4V5h2v2zM2,14h20v-4H2v4zM4,11h2v2H4v-2z" />
+</vector>
diff --git a/app/src/main/res/drawable/ic_set_visibility.xml b/app/src/main/res/drawable/ic_set_visibility.xml
new file mode 100644
index 0000000..8af1487
--- /dev/null
+++ b/app/src/main/res/drawable/ic_set_visibility.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Material Design icon "visibility" (Apache-2.0). -->
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="24dp"
+ android:height="24dp"
+ android:viewportWidth="24"
+ android:viewportHeight="24">
+ <path
+ android:fillColor="#FFFFFF"
+ android:pathData="M12,4.5C7,4.5 2.73,7.61 1,12c1.73,4.39 6,7.5 11,7.5s9.27,-3.11 11,-7.5c-1.73,-4.39 -6,-7.5 -11,-7.5zM12,17c-2.76,0 -5,-2.24 -5,-5s2.24,-5 5,-5 5,2.24 5,5 -2.24,5 -5,5zM12,9c-1.66,0 -3,1.34 -3,3s1.34,3 3,3 3,-1.34 3,-3 -1.34,-3 -3,-3z" />
+</vector>
diff --git a/app/src/main/res/layout/activity_settings.xml b/app/src/main/res/layout/activity_settings.xml
index 5594550..e93bb47 100644
--- a/app/src/main/res/layout/activity_settings.xml
+++ b/app/src/main/res/layout/activity_settings.xml
@@ -29,6 +29,12 @@
android:layout_height="wrap_content"
android:text="Include prerelease builds" />
+ <Button
+ android:id="@+id/checkUpdateButton"
+ style="@style/SettingsOutlinedButton"
+ android:layout_marginTop="8dp"
+ android:text="Check for updates" />
+
<com.google.android.material.switchmaterial.SwitchMaterial
style="@style/SettingsControl"
android:id="@+id/discreetSwitch"
@@ -90,15 +96,34 @@
</LinearLayout>
</LinearLayout>
+ <!-- ================= What to detect ================= -->
+ <TextView android:id="@+id/headerDetect" style="@style/SettingsHeader" android:text="What to detect" />
+ <LinearLayout style="@style/SettingsControl" android:id="@+id/sectionDetect" android:orientation="vertical">
+
+ <LinearLayout
+ style="@style/SettingsControl"
+ android:id="@+id/categoryContainer"
+ android:orientation="vertical" />
+
+ <TextView android:id="@+id/presetLabel" style="@style/SettingsLabel" android:text="Watchlist presets" />
+
+ <CheckBox style="@style/SettingsControl" android:id="@+id/presetGlobal" android:text="Global" />
+ <CheckBox style="@style/SettingsControl" android:id="@+id/presetCanada" android:text="Canada" />
+ <CheckBox style="@style/SettingsControl" android:id="@+id/presetUs" android:text="United States" />
+ <CheckBox style="@style/SettingsControl" android:id="@+id/presetFrance" android:text="France" />
+ <CheckBox style="@style/SettingsControl" android:id="@+id/presetUk" android:text="United Kingdom" />
+ <CheckBox style="@style/SettingsControl" android:id="@+id/presetPortugal" android:text="Portugal" />
+ <CheckBox style="@style/SettingsControl" android:id="@+id/presetGermany" android:text="Germany" />
+ <CheckBox style="@style/SettingsControl" android:id="@+id/presetSpain" android:text="Spain" />
+ <CheckBox style="@style/SettingsControl" android:id="@+id/presetItaly" android:text="Italy" />
+ <CheckBox style="@style/SettingsControl" android:id="@+id/presetNetherlands" android:text="Netherlands" />
+ <CheckBox style="@style/SettingsControl" android:id="@+id/presetSweden" android:text="Sweden" />
+ </LinearLayout>
+
<!-- ================= Scanning ================= -->
<TextView android:id="@+id/headerScanning" style="@style/SettingsHeader" android:text="Scanning" />
<LinearLayout style="@style/SettingsControl" android:id="@+id/sectionScanning" android:orientation="vertical">
- <com.google.android.material.switchmaterial.SwitchMaterial
- style="@style/SettingsControl"
- android:id="@+id/hideTrustedSwitch"
- android:text="Hide trusted devices" />
-
<com.google.android.material.switchmaterial.SwitchMaterial
style="@style/SettingsControl"
android:id="@+id/bleSwitch"
@@ -144,6 +169,11 @@
android:id="@+id/batteryButton"
style="@style/SettingsTextButton"
android:text="Allow background scanning" />
+
+ <com.google.android.material.switchmaterial.SwitchMaterial
+ style="@style/SettingsControl"
+ android:id="@+id/hideTrustedSwitch"
+ android:text="Hide trusted devices" />
</LinearLayout>
<!-- ================= Auto-start ================= -->
@@ -191,28 +221,169 @@
android:text="Choose music app" />
</LinearLayout>
- <!-- ================= What to detect ================= -->
- <TextView android:id="@+id/headerDetect" style="@style/SettingsHeader" android:text="What to detect" />
- <LinearLayout style="@style/SettingsControl" android:id="@+id/sectionDetect" android:orientation="vertical">
+ <!-- ================= Trackers & followers ================= -->
+ <TextView android:id="@+id/headerFollow" style="@style/SettingsHeader" android:text="Trackers &amp; followers" />
+ <LinearLayout style="@style/SettingsControl" android:id="@+id/sectionFollow" android:orientation="vertical">
+
+ <com.google.android.material.switchmaterial.SwitchMaterial
+ style="@style/SettingsControl"
+ android:id="@+id/followSwitch"
+ android:text="Warn when a device moves with me" />
<LinearLayout
style="@style/SettingsControl"
- android:id="@+id/categoryContainer"
- android:orientation="vertical" />
+ android:orientation="horizontal">
- <TextView android:id="@+id/presetLabel" style="@style/SettingsLabel" android:text="Watchlist presets" />
+ <LinearLayout
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_marginEnd="8dp"
+ android:layout_weight="1"
+ android:orientation="vertical">
- <CheckBox style="@style/SettingsControl" android:id="@+id/presetGlobal" android:text="Global" />
- <CheckBox style="@style/SettingsControl" android:id="@+id/presetCanada" android:text="Canada" />
- <CheckBox style="@style/SettingsControl" android:id="@+id/presetUs" android:text="United States" />
- <CheckBox style="@style/SettingsControl" android:id="@+id/presetFrance" android:text="France" />
- <CheckBox style="@style/SettingsControl" android:id="@+id/presetUk" android:text="United Kingdom" />
- <CheckBox style="@style/SettingsControl" android:id="@+id/presetPortugal" android:text="Portugal" />
- <CheckBox style="@style/SettingsControl" android:id="@+id/presetGermany" android:text="Germany" />
- <CheckBox style="@style/SettingsControl" android:id="@+id/presetSpain" android:text="Spain" />
- <CheckBox style="@style/SettingsControl" android:id="@+id/presetItaly" android:text="Italy" />
- <CheckBox style="@style/SettingsControl" android:id="@+id/presetNetherlands" android:text="Netherlands" />
- <CheckBox style="@style/SettingsControl" android:id="@+id/presetSweden" android:text="Sweden" />
+ <TextView style="@style/SettingsLabel" android:text="For at least" />
+
+ <EditText
+ style="@style/SettingsControl"
+ android:id="@+id/followMinutesInput"
+ 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" />
+
+ <EditText
+ style="@style/SettingsControl"
+ android:id="@+id/followMetersInput"
+ android:importantForAutofill="no"
+ android:inputType="number" />
+ </LinearLayout>
+ </LinearLayout>
+
+ <TextView
+ android:id="@+id/trackerIgnoreText"
+ style="@style/SettingsLabel"
+ android:paddingTop="4dp"
+ android:textSize="@dimen/text_caption" />
+
+ <Button
+ android:id="@+id/trackerIgnoreButton"
+ style="@style/SettingsTextButton"
+ android:text="Clear ignored trackers" />
+ </LinearLayout>
+
+ <TextView android:id="@+id/headerCameras" style="@style/SettingsHeader" android:text="Known cameras" />
+ <LinearLayout style="@style/SettingsControl" android:id="@+id/sectionCameras" android:orientation="vertical">
+
+ <com.google.android.material.switchmaterial.SwitchMaterial
+ style="@style/SettingsControl"
+ android:id="@+id/knownAlprSwitch"
+ android:text="Warn before plate-reader cameras" />
+
+ <com.google.android.material.switchmaterial.SwitchMaterial
+ style="@style/SettingsControl"
+ android:id="@+id/speedCameraSwitch"
+ android:text="Warn before speed / red-light cameras" />
+
+ <com.google.android.material.switchmaterial.SwitchMaterial
+ style="@style/SettingsControl"
+ android:id="@+id/autoCamerasSwitch"
+ android:text="Download cameras for the map area" />
+
+ <com.google.android.material.switchmaterial.SwitchMaterial
+ style="@style/SettingsControl"
+ android:id="@+id/mapCctvSwitch"
+ android:text="Show CCTV cameras" />
+
+ <com.google.android.material.switchmaterial.SwitchMaterial
+ style="@style/SettingsControl"
+ android:id="@+id/mapCctvPrivateSwitch"
+ android:paddingStart="24dp"
+ android:text="Include private and indoor CCTV" />
+
+ <!-- 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
+ style="@style/SettingsControl"
+ android:id="@+id/cameraRadiusSlider"
+ 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/SettingsTextButton"
+ android:text="Download cameras around me" />
+
+ <Button
+ android:id="@+id/mapDeleteCamerasButton"
+ style="@style/SettingsTextButton"
+ android:text="Delete downloaded cameras" />
+
+ <TextView
+ android:id="@+id/prefetchCamerasText"
+ style="@style/SettingsLabel"
+ android:paddingTop="0dp"
+ android:textSize="@dimen/text_caption" />
+
+ <Button
+ android:id="@+id/deflockButton"
+ style="@style/SettingsTextButton"
+ android:text="US &amp; Canada plate cameras · 18 MB" />
+
+ <TextView
+ android:id="@+id/deflockText"
+ style="@style/SettingsLabel"
+ android:paddingTop="0dp"
+ android:textSize="@dimen/text_caption" />
+
+ <!-- Cameras silenced from the map (tap a camera > Ignore alerts). -->
+ <TextView
+ android:id="@+id/ignoredCamerasText"
+ style="@style/SettingsLabel"
+ android:paddingTop="4dp"
+ android:textSize="@dimen/text_caption" />
+
+ <Button
+ android:id="@+id/ignoredCamerasButton"
+ style="@style/SettingsTextButton"
+ android:text="Alert for all ignored cameras again" />
+ </LinearLayout>
+
+ <!-- ================= Cell network ================= -->
+ <TextView android:id="@+id/headerCell" style="@style/SettingsHeader" android:text="Cell network" />
+ <LinearLayout style="@style/SettingsControl" android:id="@+id/sectionCell" android:orientation="vertical">
+
+ <com.google.android.material.switchmaterial.SwitchMaterial
+ style="@style/SettingsControl"
+ android:id="@+id/cellChangeSwitch"
+ android:text="Alert when the cell tower changes" />
+
+ <TextView android:id="@+id/disable2gLabel" style="@style/SettingsLabel" android:text="Turn off 2G" />
+
+ <Button
+ android:id="@+id/disable2gButton"
+ style="@style/SettingsTextButton"
+ android:text="Open SIM settings" />
+
+ <TextView android:id="@+id/cellSecurityLabel" style="@style/SettingsLabel" android:text="Network security alerts" />
+
+ <Button
+ android:id="@+id/cellSecurityButton"
+ style="@style/SettingsTextButton"
+ android:text="Open cellular security settings" />
</LinearLayout>
<!-- ================= Alerts ================= -->
@@ -230,6 +401,15 @@
<RadioButton style="@style/SettingsControl" android:id="@+id/thresholdStrong" android:text="Strong only" />
</RadioGroup>
+ <TextView android:id="@+id/dedupeLabel" style="@style/SettingsLabel" android:text="Re-alert the same device after" />
+
+ <EditText
+ style="@style/SettingsControl"
+ android:id="@+id/dedupeInput"
+ android:hint="5"
+ android:importantForAutofill="no"
+ android:inputType="number" />
+
<com.google.android.material.switchmaterial.SwitchMaterial
style="@style/SettingsControl"
android:id="@+id/soundSwitch"
@@ -259,11 +439,6 @@
android:id="@+id/radarBeepSwitch"
android:text="Radar-detector beeps" />
- <com.google.android.material.switchmaterial.SwitchMaterial
- style="@style/SettingsControl"
- android:id="@+id/usbQuickClearSwitch"
- android:text="USB WiFi: end alerts out of range" />
-
<com.google.android.material.switchmaterial.SwitchMaterial
style="@style/SettingsControl"
android:id="@+id/detectorSoundSwitch"
@@ -297,14 +472,6 @@
style="@style/SettingsTextButton"
android:text="Test intro" />
- <TextView android:id="@+id/dedupeLabel" style="@style/SettingsLabel" android:text="Re-alert the same device after" />
-
- <EditText
- style="@style/SettingsControl"
- android:id="@+id/dedupeInput"
- android:hint="5"
- android:importantForAutofill="no"
- android:inputType="number" />
</LinearLayout>
<!-- ================= Voice ================= -->
@@ -351,139 +518,39 @@
<LinearLayout
style="@style/SettingsControl"
- android:orientation="horizontal">
-
- <Button
- android:id="@+id/voicePickButton"
- style="@style/SettingsTextButton"
- android:text="Choose voice" />
-
- <Button
- android:id="@+id/voiceTestButton"
- style="@style/SettingsTextButton"
- android:text="Test voice" />
- </LinearLayout>
-
- <TextView
- android:id="@+id/voiceText"
- style="@style/SettingsLabel"
- android:paddingTop="0dp"
- android:textSize="@dimen/text_caption" />
- </LinearLayout>
-
- <!-- ================= Over other apps ================= -->
- <TextView android:id="@+id/headerOverlay" style="@style/SettingsHeader" android:text="Over other apps" />
- <LinearLayout style="@style/SettingsControl" android:id="@+id/sectionOverlay" android:orientation="vertical">
-
- <com.google.android.material.switchmaterial.SwitchMaterial
- style="@style/SettingsControl"
- android:id="@+id/bubbleSwitch"
- android:text="Floating threat bubble" />
-
- <com.google.android.material.switchmaterial.SwitchMaterial
- style="@style/SettingsControl"
- android:id="@+id/floatingMapSwitch"
- android:text="Floating mini map" />
- </LinearLayout>
-
- <!-- ================= Trackers & followers ================= -->
- <TextView android:id="@+id/headerFollow" style="@style/SettingsHeader" android:text="Trackers &amp; followers" />
- <LinearLayout style="@style/SettingsControl" android:id="@+id/sectionFollow" android:orientation="vertical">
-
- <com.google.android.material.switchmaterial.SwitchMaterial
- style="@style/SettingsControl"
- android:id="@+id/followSwitch"
- android:text="Warn when a device moves with me" />
-
- <LinearLayout
- style="@style/SettingsControl"
- 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" />
-
- <EditText
- style="@style/SettingsControl"
- android:id="@+id/followMinutesInput"
- 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" />
-
- <EditText
- style="@style/SettingsControl"
- android:id="@+id/followMetersInput"
- android:importantForAutofill="no"
- android:inputType="number" />
- </LinearLayout>
- </LinearLayout>
-
- <TextView
- android:id="@+id/trackerIgnoreText"
- style="@style/SettingsLabel"
- android:paddingTop="4dp"
- android:textSize="@dimen/text_caption" />
-
- <Button
- android:id="@+id/trackerIgnoreButton"
- style="@style/SettingsTextButton"
- android:text="Clear ignored trackers" />
- </LinearLayout>
-
- <!-- ================= Navigation ================= -->
- <TextView android:id="@+id/headerNav" style="@style/SettingsHeader" android:text="Navigation" />
- <LinearLayout style="@style/SettingsControl" android:id="@+id/sectionNav" android:orientation="vertical" />
-
- <!-- ================= Radar ================= -->
- <TextView android:id="@+id/headerRadar" style="@style/SettingsHeader" android:text="Radar" />
- <LinearLayout android:id="@+id/sectionRadar" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical">
-
- <TextView android:id="@+id/radarTopLabel" style="@style/SettingsLabel" android:text="Top of the radar" />
-
- <RadioGroup
- android:id="@+id/radarTopGroup"
- android:layout_width="match_parent"
- android:layout_height="wrap_content">
+ android:orientation="horizontal">
- <RadioButton android:id="@+id/radarTopFacing" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="The way you face" />
- <RadioButton android:id="@+id/radarTopNorth" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="North" />
- </RadioGroup>
+ <Button
+ android:id="@+id/voicePickButton"
+ style="@style/SettingsTextButton"
+ android:text="Choose voice" />
- <TextView android:id="@+id/radarDotsLabel" style="@style/SettingsLabel" android:text="Dots without a direction" />
+ <Button
+ android:id="@+id/voiceTestButton"
+ style="@style/SettingsTextButton"
+ android:text="Test voice" />
+ </LinearLayout>
- <RadioGroup
- android:id="@+id/radarDotsGroup"
- android:layout_width="match_parent"
- android:layout_height="wrap_content">
+ <TextView
+ android:id="@+id/voiceText"
+ style="@style/SettingsLabel"
+ android:paddingTop="0dp"
+ android:textSize="@dimen/text_caption" />
+ </LinearLayout>
- <RadioButton android:id="@+id/radarDotsFixed" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="Stay in place" />
- <RadioButton android:id="@+id/radarDotsNorth" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="Turn with north" />
- </RadioGroup>
+ <!-- ================= Over other apps ================= -->
+ <TextView android:id="@+id/headerOverlay" style="@style/SettingsHeader" android:text="Over other apps" />
+ <LinearLayout style="@style/SettingsControl" android:id="@+id/sectionOverlay" android:orientation="vertical">
<com.google.android.material.switchmaterial.SwitchMaterial
- android:id="@+id/radarNamesSwitch"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="Names beside alerts" />
+ style="@style/SettingsControl"
+ android:id="@+id/bubbleSwitch"
+ android:text="Floating threat bubble" />
<com.google.android.material.switchmaterial.SwitchMaterial
- android:id="@+id/radarSweepSwitch"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="Sweep line" />
+ style="@style/SettingsControl"
+ android:id="@+id/floatingMapSwitch"
+ android:text="Floating mini map" />
</LinearLayout>
<!-- ================= Known cameras ================= -->
@@ -559,124 +626,91 @@
style="@style/SettingsControl"
android:id="@+id/mapTowersSwitch"
android:text="Show cell towers" />
-
- <LinearLayout
- style="@style/SettingsControl"
- android:orientation="horizontal">
-
- <Button
- android:id="@+id/mapTracesButton"
- style="@style/SettingsTextButton"
- android:text="Recorded traces" />
- </LinearLayout>
</LinearLayout>
- <TextView android:id="@+id/headerCameras" style="@style/SettingsHeader" android:text="Known cameras" />
- <LinearLayout style="@style/SettingsControl" android:id="@+id/sectionCameras" android:orientation="vertical">
-
- <com.google.android.material.switchmaterial.SwitchMaterial
- style="@style/SettingsControl"
- android:id="@+id/knownAlprSwitch"
- android:text="Warn before plate-reader cameras" />
-
- <com.google.android.material.switchmaterial.SwitchMaterial
- style="@style/SettingsControl"
- android:id="@+id/speedCameraSwitch"
- android:text="Warn before speed / red-light cameras" />
-
- <com.google.android.material.switchmaterial.SwitchMaterial
- style="@style/SettingsControl"
- android:id="@+id/autoCamerasSwitch"
- android:text="Download cameras for the map area" />
+ <!-- ================= Radar ================= -->
+ <TextView android:id="@+id/headerRadar" style="@style/SettingsHeader" android:text="Radar" />
+ <LinearLayout android:id="@+id/sectionRadar" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical">
- <com.google.android.material.switchmaterial.SwitchMaterial
- style="@style/SettingsControl"
- android:id="@+id/mapCctvSwitch"
- android:text="Show CCTV cameras" />
+ <TextView android:id="@+id/radarTopLabel" style="@style/SettingsLabel" android:text="Top of the radar" />
- <com.google.android.material.switchmaterial.SwitchMaterial
- style="@style/SettingsControl"
- android:id="@+id/mapCctvPrivateSwitch"
- android:paddingStart="24dp"
- android:text="Include private and indoor CCTV" />
+ <RadioGroup
+ android:id="@+id/radarTopGroup"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content">
- <!-- 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" />
+ <RadioButton android:id="@+id/radarTopFacing" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="The way you face" />
+ <RadioButton android:id="@+id/radarTopNorth" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="North" />
+ </RadioGroup>
- <com.google.android.material.slider.Slider
- style="@style/SettingsControl"
- android:id="@+id/cameraRadiusSlider"
- android:contentDescription="Camera download radius in kilometres"
- android:stepSize="10"
- android:value="100"
- android:valueFrom="10"
- android:valueTo="200" />
+ <TextView android:id="@+id/radarDotsLabel" style="@style/SettingsLabel" android:text="Dots without a direction" />
- <Button
- android:id="@+id/prefetchCamerasButton"
- style="@style/SettingsTextButton"
- android:text="Download cameras around me" />
+ <RadioGroup
+ android:id="@+id/radarDotsGroup"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content">
- <Button
- android:id="@+id/mapDeleteCamerasButton"
- style="@style/SettingsTextButton"
- android:text="Delete downloaded cameras" />
+ <RadioButton android:id="@+id/radarDotsFixed" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="Stay in place" />
+ <RadioButton android:id="@+id/radarDotsNorth" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="Turn with north" />
+ </RadioGroup>
- <TextView
- android:id="@+id/prefetchCamerasText"
- style="@style/SettingsLabel"
- android:paddingTop="0dp"
- android:textSize="@dimen/text_caption" />
+ <com.google.android.material.switchmaterial.SwitchMaterial
+ android:id="@+id/radarNamesSwitch"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="Names beside alerts" />
- <Button
- android:id="@+id/deflockButton"
- style="@style/SettingsTextButton"
- android:text="US &amp; Canada plate cameras · 18 MB" />
+ <com.google.android.material.switchmaterial.SwitchMaterial
+ android:id="@+id/radarSweepSwitch"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="Sweep line" />
+ </LinearLayout>
- <TextView
- android:id="@+id/deflockText"
- style="@style/SettingsLabel"
- android:paddingTop="0dp"
- android:textSize="@dimen/text_caption" />
+ <!-- ================= Navigation ================= -->
+ <TextView android:id="@+id/headerNav" style="@style/SettingsHeader" android:text="Navigation" />
+ <LinearLayout style="@style/SettingsControl" android:id="@+id/sectionNav" android:orientation="vertical" />
- <!-- Cameras silenced from the map (tap a camera > Ignore alerts). -->
- <TextView
- android:id="@+id/ignoredCamerasText"
- style="@style/SettingsLabel"
- android:paddingTop="4dp"
- android:textSize="@dimen/text_caption" />
+ <!-- ================= Location & traces ================= -->
+ <TextView android:id="@+id/headerLocation" style="@style/SettingsHeader" android:text="Location &amp; traces" />
+ <LinearLayout style="@style/SettingsControl" android:id="@+id/sectionLocation" android:orientation="vertical">
- <Button
- android:id="@+id/ignoredCamerasButton"
- style="@style/SettingsTextButton"
- android:text="Alert for all ignored cameras again" />
- </LinearLayout>
+ <com.google.android.material.switchmaterial.SwitchMaterial
+ style="@style/SettingsControl"
+ android:id="@+id/autoRecordSwitch"
+ android:text="Record a trace whenever scanning starts" />
- <!-- ================= Cell network ================= -->
- <TextView android:id="@+id/headerCell" style="@style/SettingsHeader" android:text="Cell network" />
- <LinearLayout style="@style/SettingsControl" android:id="@+id/sectionCell" android:orientation="vertical">
+ <com.google.android.material.switchmaterial.SwitchMaterial
+ android:id="@+id/traceEveryPingSwitch"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="Log every sighting in traces" />
<com.google.android.material.switchmaterial.SwitchMaterial
style="@style/SettingsControl"
- android:id="@+id/cellChangeSwitch"
- android:text="Alert when the cell tower changes" />
+ android:id="@+id/gpsSwitch"
+ android:text="Save GPS position with matches" />
- <TextView android:id="@+id/disable2gLabel" style="@style/SettingsLabel" android:text="Turn off 2G" />
+ <com.google.android.material.switchmaterial.SwitchMaterial
+ style="@style/SettingsControl"
+ android:id="@+id/pinpointSwitch"
+ android:text="Pinpoint flagged devices on the map" />
- <Button
- android:id="@+id/disable2gButton"
- style="@style/SettingsTextButton"
- android:text="Open SIM settings" />
+ <com.google.android.material.switchmaterial.SwitchMaterial
+ android:id="@+id/pinpointAlertsSwitch"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="Pinpoint alerts only" />
- <TextView android:id="@+id/cellSecurityLabel" style="@style/SettingsLabel" android:text="Network security alerts" />
+ <LinearLayout
+ style="@style/SettingsControl"
+ android:orientation="horizontal">
- <Button
- android:id="@+id/cellSecurityButton"
- style="@style/SettingsTextButton"
- android:text="Open cellular security settings" />
+ <Button
+ android:id="@+id/mapTracesButton"
+ style="@style/SettingsTextButton"
+ android:text="Recorded traces" />
+ </LinearLayout>
</LinearLayout>
<!-- ================= External hardware ================= -->
@@ -786,6 +820,11 @@
<RadioButton android:id="@+id/wifiBandHigh" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="5 and 6 GHz only" />
</RadioGroup>
+ <com.google.android.material.switchmaterial.SwitchMaterial
+ style="@style/SettingsControl"
+ android:id="@+id/usbQuickClearSwitch"
+ android:text="USB WiFi: end alerts out of range" />
+
<com.google.android.material.switchmaterial.SwitchMaterial
style="@style/SettingsControl"
android:id="@+id/rtl5gSwitch"
@@ -797,6 +836,10 @@
android:text="AWUS036ACS: light blinks with traffic" />
</LinearLayout>
+ <!-- ================= RTL-SDR radio (filled in by SettingsActivity.setupRadioSection) ================= -->
+ <TextView android:id="@+id/headerRadio" style="@style/SettingsHeader" android:text="RTL-SDR radio" />
+ <LinearLayout style="@style/SettingsControl" android:id="@+id/sectionRadio" android:orientation="vertical" />
+
<!-- ================= Sentinel Link ================= -->
<TextView android:id="@+id/headerLink" style="@style/SettingsHeader" android:text="Sentinel Link" />
<LinearLayout android:id="@+id/sectionLink" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical">
@@ -820,42 +863,6 @@
android:text="Open Sentinel Link" />
</LinearLayout>
- <!-- ================= RTL-SDR radio (filled in by SettingsActivity.setupRadioSection) ================= -->
- <TextView android:id="@+id/headerRadio" style="@style/SettingsHeader" android:text="RTL-SDR radio" />
- <LinearLayout style="@style/SettingsControl" android:id="@+id/sectionRadio" android:orientation="vertical" />
-
- <!-- ================= Location & traces ================= -->
- <TextView android:id="@+id/headerLocation" style="@style/SettingsHeader" android:text="Location &amp; traces" />
- <LinearLayout style="@style/SettingsControl" android:id="@+id/sectionLocation" android:orientation="vertical">
-
- <com.google.android.material.switchmaterial.SwitchMaterial
- style="@style/SettingsControl"
- android:id="@+id/autoRecordSwitch"
- android:text="Record a trace whenever scanning starts" />
-
- <com.google.android.material.switchmaterial.SwitchMaterial
- android:id="@+id/traceEveryPingSwitch"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="Log every sighting in traces" />
-
- <com.google.android.material.switchmaterial.SwitchMaterial
- style="@style/SettingsControl"
- android:id="@+id/gpsSwitch"
- android:text="Save GPS position with matches" />
-
- <com.google.android.material.switchmaterial.SwitchMaterial
- style="@style/SettingsControl"
- android:id="@+id/pinpointSwitch"
- android:text="Pinpoint flagged devices on the map" />
-
- <com.google.android.material.switchmaterial.SwitchMaterial
- android:id="@+id/pinpointAlertsSwitch"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="Pinpoint alerts only" />
- </LinearLayout>
-
<!-- ================= Data ================= -->
<TextView android:id="@+id/headerData" style="@style/SettingsHeader" android:text="Data" />
<LinearLayout style="@style/SettingsControl" android:id="@+id/sectionData" android:orientation="vertical">
@@ -943,12 +950,6 @@
android:layout_marginTop="8dp"
android:text="Ignored network names" />
- <Button
- android:id="@+id/checkUpdateButton"
- style="@style/SettingsOutlinedButton"
- android:layout_marginTop="8dp"
- android:text="Check for updates" />
-
<Button
android:id="@+id/aboutButton"
style="@style/SettingsOutlinedButton"