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
Watchlist button: Remove now removes a device watched by its WPS UUID, probe fingerprint or shape instead of opening Add; the long-press menu agrees
CIS-C04c4b7a7b7815
diff --git a/app/src/main/java/com/rfsentinel/app/ui/DeviceActions.kt b/app/src/main/java/com/rfsentinel/app/ui/DeviceActions.ktindex 919f350..3b36a35 100644--- a/app/src/main/java/com/rfsentinel/app/ui/DeviceActions.kt+++ b/app/src/main/java/com/rfsentinel/app/ui/DeviceActions.kt@@ -53,10 +53,23 @@ object DeviceActions {)}+ /**+ * Your own watchlist entry this device is on: its address, else its WPS UUID, probe fingerprint or probe shape.+ * The device page's button label, its click and the long-press menu all use this, so they agree.+ */+ fun watchEntry(mac: String): OuiEntry? {+ val probe = com.rfsentinel.app.usb.ProbeIntel.of(mac)+ return OuiWatchlist.customAddressEntry(mac) ?: listOfNotNull(+ probe?.wps?.uuid?.let { com.rfsentinel.app.usb.ProbeIntel.uuidKey(it) },+ probe?.fingerprint,+ probe?.skeleton?.let { com.rfsentinel.app.usb.ProbeIntel.shapeKey(it) }+ ).firstNotNullOfOrNull { OuiWatchlist.customEntry(OuiEntry.FINGERPRINT + it) }+ }+/** Long-press menu. */fun showQuickActions(activity: AppCompatActivity, mac: String) {val snap = DeviceRegistry.get(mac)- val custom = OuiWatchlist.customAddressEntry(mac)+ val custom = watchEntry(mac)val whitelisted = WhitelistCache.inTable(mac)val ignoredTracker = com.rfsentinel.app.data.TrackerMutes.isMuted(mac)// Trackers that change their address can't be whitelisted: offer ignoring instead.diff --git a/app/src/main/java/com/rfsentinel/app/ui/DeviceDetailActivity.kt b/app/src/main/java/com/rfsentinel/app/ui/DeviceDetailActivity.ktindex 48d49ca..79bc357 100644--- a/app/src/main/java/com/rfsentinel/app/ui/DeviceDetailActivity.kt+++ b/app/src/main/java/com/rfsentinel/app/ui/DeviceDetailActivity.kt@@ -255,9 +255,7 @@ class DeviceDetailActivity : AppCompatActivity() {}// Action labels- val fp = com.rfsentinel.app.usb.ProbeIntel.of(mac)?.fingerprint- val custom = OuiWatchlist.customAddressEntry(mac)- ?: fp?.let { OuiWatchlist.customEntry(com.rfsentinel.app.oui.OuiEntry.FINGERPRINT + it) }+ val custom = DeviceActions.watchEntry(mac)binding.actionWatchlist.text = if (custom != null) "Remove from watchlist" else "Add to watchlist"radioHz?.let { hz ->// A radio transmission (RTL-SDR / HackRF): found with the waterfall, watched as a frequency.@@ -478,7 +476,7 @@ class DeviceDetailActivity : AppCompatActivity() {// ---- Actions --------------------------------------------------------------private fun onWatchlistAction() {- val custom = OuiWatchlist.customAddressEntry(mac)+ val custom = DeviceActions.watchEntry(mac)if (custom != null) {OuiWatchlist.removeCustomEntry(this, custom.prefix)com.rfsentinel.app.util.Undo.show(this, "Removed ${custom.prefix} from the watchlist") {