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
Locate camera view: Google Play Services for AR notice before first use
CIS-C08750f37b0f03
diff --git a/app/src/full/java/com/rfsentinel/app/ui/ArSupport.kt b/app/src/full/java/com/rfsentinel/app/ui/ArSupport.ktindex 35de33c..0a6e626 100644--- a/app/src/full/java/com/rfsentinel/app/ui/ArSupport.kt+++ b/app/src/full/java/com/rfsentinel/app/ui/ArSupport.kt@@ -3,11 +3,30 @@ package com.rfsentinel.app.uiimport android.app.Activityimport android.content.Intentimport android.content.pm.PackageManager+import android.net.Uri+import com.google.android.material.dialog.MaterialAlertDialogBuilder+import com.rfsentinel.app.util.Prefs/** The full build: Locate's camera view (ARCore, Google Play Services for AR, which it offers to install). */internal object ArSupport {/** A back camera: whether ARCore runs on it is only asked when you open the view (no query to Google before). */fun available(activity: Activity) = activity.packageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA)- fun open(activity: Activity) = activity.startActivity(Intent(activity, ArLocateActivity::class.java))+ /** Opens the camera view; the first time, Google's notice (ARCore's terms ask apps to show it) comes first. */+ fun open(activity: Activity) {+ if (Prefs.arNoticeSeen(activity)) return start(activity)+ MaterialAlertDialogBuilder(activity)+ .setTitle("Camera view uses Google")+ .setMessage("This runs on Google Play Services for AR (ARCore), which is provided by Google and governed by " ++ "the Google Privacy Policy. Google may collect usage data from it.\n\n" ++ "RF Sentinel keeps the camera picture on the phone and saves nothing from it.")+ .setPositiveButton("Continue") { _, _ -> Prefs.setArNoticeSeen(activity); start(activity) }+ .setNegativeButton("Cancel", null)+ .setNeutralButton("Privacy Policy") { _, _ ->+ runCatching { activity.startActivity(Intent(Intent.ACTION_VIEW, Uri.parse("https://policies.google.com/privacy"))) }+ }+ .show()+ }++ private fun start(activity: Activity) = activity.startActivity(Intent(activity, ArLocateActivity::class.java))}diff --git a/app/src/main/java/com/rfsentinel/app/util/Prefs.kt b/app/src/main/java/com/rfsentinel/app/util/Prefs.ktindex 1da2f8b..7eabec2 100644--- a/app/src/main/java/com/rfsentinel/app/util/Prefs.kt+++ b/app/src/main/java/com/rfsentinel/app/util/Prefs.kt@@ -35,6 +35,10 @@ object Prefs {fun bleScanMode(context: Context): Int = int(context, "ble_scan_mode", ScanSettings.SCAN_MODE_LOW_LATENCY)fun setBleScanMode(context: Context, value: Int) = setInt(context, "ble_scan_mode", value)+ /** The Google Play Services for AR notice was accepted (Locate's camera view, full build). */+ fun arNoticeSeen(context: Context): Boolean = bool(context, "ar_notice_seen", false)+ fun setArNoticeSeen(context: Context) = setBool(context, "ar_notice_seen", true)+fun autoStartOnBoot(context: Context): Boolean = bool(context, "auto_start_boot", false)fun setAutoStartOnBoot(context: Context, value: Boolean) = setBool(context, "auto_start_boot", value)