From 67c9efd3a2a9f4cc9051a613ac5066610c0cfd31 Mon Sep 17 00:00:00 2001 From: jacquarg Date: Tue, 8 Apr 2025 13:19:23 +0200 Subject: [PATCH 1/2] feat:3015: Whitelist findmydevice from fakelocation. --- .../domain/usecases/FakeLocationForAppUseCase.kt | 3 ++- app/src/main/res/values/strings.xml | 2 +- .../e/advancedprivacy/data/repositories/AppListRepository.kt | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/foundation/e/advancedprivacy/domain/usecases/FakeLocationForAppUseCase.kt b/app/src/main/java/foundation/e/advancedprivacy/domain/usecases/FakeLocationForAppUseCase.kt index fd6c78d0..0c8b64e5 100644 --- a/app/src/main/java/foundation/e/advancedprivacy/domain/usecases/FakeLocationForAppUseCase.kt +++ b/app/src/main/java/foundation/e/advancedprivacy/domain/usecases/FakeLocationForAppUseCase.kt @@ -36,7 +36,8 @@ class FakeLocationForAppUseCase( private val nullFakeLocationPkgs = listOf( AppListRepository.PNAME_MICROG_SERVICES_CORE, AppListRepository.PNAME_FUSED_LOCATION, - AppListRepository.PNAME_ANDROID_SYSTEM + AppListRepository.PNAME_ANDROID_SYSTEM, + AppListRepository.PNAME_FIND_MY_DEVICE ) init { diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 22e01528..41a4618b 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -179,7 +179,7 @@ While this option is active, in some rare cases, some apps may not work properly. If you meet any problems, you can disable trackers control for specific apps and websites at anytime. Manage app trackers Fake my location - While this option is active, some apps that rely on your real location may not work properly. It\'s recommended to enable it only occasionally, only when needed. + While this option is active, some apps that rely on your real location may not work properly. It\'s recommended to enable it only occasionally, only when needed. \nFind my device is authorized to access your real location in order to work as expected. Hide my IP This option uses the TOR network to hide your real IP address. Only use it for specific applications. While your IP is faked, your Internet speed is likely to be reduced.\nImportant: we advise disabling this feature for email services as your address may end into permanent ban from your provider. I understand diff --git a/core/src/main/java/foundation/e/advancedprivacy/data/repositories/AppListRepository.kt b/core/src/main/java/foundation/e/advancedprivacy/data/repositories/AppListRepository.kt index c0a7909f..8e09e908 100644 --- a/core/src/main/java/foundation/e/advancedprivacy/data/repositories/AppListRepository.kt +++ b/core/src/main/java/foundation/e/advancedprivacy/data/repositories/AppListRepository.kt @@ -53,6 +53,7 @@ class AppListRepository( const val PNAME_MICROG_SERVICES_CORE = "com.google.android.gms" const val PNAME_FUSED_LOCATION = "com.android.location.fused" const val PNAME_ANDROID_SYSTEM = "android" + const val PNAME_FIND_MY_DEVICE = "foundation.e.findmydevice" private val compatibilityInternetPNames = setOf( PNAME_PWAPLAYER, -- GitLab From 94432be27efdb0e5a1477f18d5fb41968b795984 Mon Sep 17 00:00:00 2001 From: jacquarg Date: Mon, 14 Apr 2025 10:20:59 +0200 Subject: [PATCH 2/2] feat:3015: Update message --- app/src/main/res/values-de/strings.xml | 2 +- app/src/main/res/values-es/strings.xml | 2 +- app/src/main/res/values-fr/strings.xml | 2 +- app/src/main/res/values-it/strings.xml | 2 +- app/src/main/res/values/strings.xml | 2 +- .../e/advancedprivacy/data/repositories/AppListRepository.kt | 2 ++ 6 files changed, 7 insertions(+), 5 deletions(-) diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xml index 76c80c6a..64f4b09b 100644 --- a/app/src/main/res/values-de/strings.xml +++ b/app/src/main/res/values-de/strings.xml @@ -75,7 +75,7 @@ Diese Option benutzt das TOR-Netzwerk, um deine echte IP-Adresse zu verschleiern. Benutze dies nur für bestimme Anwendungen. Beim Verschleiern einer IP wird die Internetgeschwindigkeit stark beeinträchtigt. \nBitte beachten: wir empfehlen, diese Option nicht für E-Maildienste zu aktivieren, da deine E-Mail-Adresse von deinem Dienstanbieter permanent verbannt werden könnte. Meine IP-Adresse verstecken - Wenn diese Option aktiviert wird, ist es möglich, dass einige Apps, die auf Standortbestimmung angewiesen sind, nicht ordnungsgemäß funktionieren. Es wird deshalb empfohlen, diese Option nur zeitweise zu benutzten, wenn sie gebraucht wird. + Wenn diese Option aktiviert wird, ist es möglich, dass einige Apps, die auf Standortbestimmung angewiesen sind, nicht ordnungsgemäß funktionieren. Es wird empfohlen, diese Option nur bei Bedarf zu aktivieren oder die notwendigen Apps in den Einstellungen von "Fake my location" auf die Whitelist zu setzen.\nWenn aktiviert, ist "Gerät finden" berechtigt, auf Ihren tatsächlichen Standort zuzugreifen, um wie erwartet zu funktionieren. Wenn diese Option aktiviert wird, ist es möglich, dass einige Apps nicht ordnungsgemäß funktionieren. Falls Probleme auftreten, kann die Tracker-Sperrung für bestimmte Apps oder Webseiten deaktiviert werden. Meinen Standort täuschen App-Tracker verwalten diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml index 439ae571..92a91b83 100644 --- a/app/src/main/res/values-es/strings.xml +++ b/app/src/main/res/values-es/strings.xml @@ -59,7 +59,7 @@ Esta opción utiliza la red TOR para ocultar tu dirección IP real. Utilízala sólo para aplicaciones específicas. Mientras uses una IP alternativa, es probable que tu velocidad de Internet sea reducida. \nImportante: te aconsejamos que desactives esta función para los servicios de correo electrónico, ya que tu dirección podría ser bloqueada permanentemente por tu proveedor. Ocultar mi IP - Mientras esta opción está activa, es posible que algunas aplicaciones que dependen de tu ubicación real no funcionen correctamente. Se recomienda activarla sólo ocasionalmente o cuando sea necesario. + Mientras esta opción está activa, es posible que algunas aplicaciones que dependen de tu ubicación real no funcionen correctamente. Se recomienda activarla solo cuando sea necesario o agregar las aplicaciones necesarias a la lista blanca en la configuración de "Fake my location".\nSi está activada, "Encontrar mi dispositivo" está autorizado para acceder a tu ubicación real para funcionar como se espera. Cambiar mi ubicación Administrar rastreadores de aplicaciones Mientras esta opción esté activa, en casos raros, algunas aplicaciones no funcionarán correctamente. Si tienes algún problema, puedes desactivar el control de rastreadores para determinadas aplicaciones y sitios web en cualquier momento. diff --git a/app/src/main/res/values-fr/strings.xml b/app/src/main/res/values-fr/strings.xml index 2972162f..65f871a2 100644 --- a/app/src/main/res/values-fr/strings.xml +++ b/app/src/main/res/values-fr/strings.xml @@ -68,7 +68,7 @@ Cette option utilise le réseau TOR pour masquer votre véritable adressse IP. Ne l\'utilisez que pour des applications spécifiques. Tant que votre vraie adresse IP est cachée, votre vitesse de connexion est susceptible d\'être réduite. \nImportant : nous vous recommandons de désactiver cette fonctionnalité pour utiliser les services emails car votre adresse email pourrait être radiée définitivement par votre fournisseur. Contrôle des pisteurs - Tant que cette option est activée, certaines applications se basant sur votre vraie position pourraient ne pas fonctionner correctement. Il est recommandé de ne l\'activer qu\'occasionnellement, quand c\'est nécessaire. + Tant que cette option est activée, certaines applications se basant sur votre vraie position pourraient ne pas fonctionner correctement. Il est recommandé de l\'activer uniquement lorsque c\'est nécessaire ou d\'ajouter les applications nécessaires à la liste blanche dans les paramètres de "Fake my location". Si activée, "Localiser mon appareil" est autorisé à accéder à votre véritable position pour fonctionner comme prévu. Falsifier ma position Je comprends Masquer mon adresse IP diff --git a/app/src/main/res/values-it/strings.xml b/app/src/main/res/values-it/strings.xml index 316eae7f..996074fe 100644 --- a/app/src/main/res/values-it/strings.xml +++ b/app/src/main/res/values-it/strings.xml @@ -55,7 +55,7 @@ Questa scelta usa il network TOR per nascondere l\'indirizzo IP reale. Attivala solo per usare determinate App. Quando l\'indirizzo IP è nascosto, la velocità su Internet viene ridotta. \nAttenzione: è opportuno disabilitare la scelta per i servizi email, dato che l\'indirizzo potrebbe finire per essere bannato permanentemente dal tuo provider. Nascondi IP - Con questa scelta attiva, alcune App che utilizzano la posizione reale possono non funzionare correttamente. Raccomandiamo di attivarla occasionalmente, solo quando serve. + Con questa scelta attiva, alcune App che utilizzano la posizione reale possono non funzionare correttamente. Si consiglia di attivarla solo quando necessario o di inserire le app necessarie nella whitelist nelle impostazioni di "Fake my location".\nSe attivata, "Trova il mio dispositivo" è autorizzato ad accedere alla tua posizione reale per funzionare come previsto. Nascondi la posizione Gestisci i tracker nelle App Se questa scelta è attiva, in alcuni rari casi, alcune App possono non funzionare correttamente. In caso di problemi, puoi sempre disabilitare il controllo tracker per queste App e siti web. diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 41a4618b..3d0c3a40 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -179,7 +179,7 @@ While this option is active, in some rare cases, some apps may not work properly. If you meet any problems, you can disable trackers control for specific apps and websites at anytime. Manage app trackers Fake my location - While this option is active, some apps that rely on your real location may not work properly. It\'s recommended to enable it only occasionally, only when needed. \nFind my device is authorized to access your real location in order to work as expected. + While this option is active, some apps that rely on your real location may not work properly. It\'s recommended to enable it only when needed or to whitelist the necessary apps in Fake my location\'s settings. \nIf enabled Find my device is authorized to access your real location in order to work as expected. Hide my IP This option uses the TOR network to hide your real IP address. Only use it for specific applications. While your IP is faked, your Internet speed is likely to be reduced.\nImportant: we advise disabling this feature for email services as your address may end into permanent ban from your provider. I understand diff --git a/core/src/main/java/foundation/e/advancedprivacy/data/repositories/AppListRepository.kt b/core/src/main/java/foundation/e/advancedprivacy/data/repositories/AppListRepository.kt index 8e09e908..64cc12e8 100644 --- a/core/src/main/java/foundation/e/advancedprivacy/data/repositories/AppListRepository.kt +++ b/core/src/main/java/foundation/e/advancedprivacy/data/repositories/AppListRepository.kt @@ -333,6 +333,8 @@ class AppListRepository( private fun isNotHiddenSystemApp(app: ApplicationInfo, launcherApps: List): Boolean { if (app.packageName == PNAME_SETTINGS) { return false + } else if (app.packageName == PNAME_FIND_MY_DEVICE) { + return false } else if (app.packageName == PNAME_PWAPLAYER) { return true } else if (app.hasFlag(ApplicationInfo.FLAG_UPDATED_SYSTEM_APP)) { -- GitLab