π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[auth] Drop ente-auth:// scheme, narrow search deep link to enteauth://search
Benedikt Koeppel5d81a6fc6f1c
diff --git a/mobile/apps/auth/android/app/src/main/AndroidManifest.xml b/mobile/apps/auth/android/app/src/main/AndroidManifest.xmlindex dcf8df4a51..5410ab1cae 100644--- a/mobile/apps/auth/android/app/src/main/AndroidManifest.xml+++ b/mobile/apps/auth/android/app/src/main/AndroidManifest.xml@@ -16,13 +16,6 @@android:hardwareAccelerated="true"android:windowSoftInputMode="adjustResize">- <intent-filter>- <action android:name="android.intent.action.VIEW"/>- <category android:name="android.intent.category.DEFAULT"/>- <category android:name="android.intent.category.BROWSABLE"/>- <data android:scheme="ente-auth"/>- </intent-filter>-<intent-filter><action android:name="android.intent.action.VIEW" /><category android:name="android.intent.category.DEFAULT" />diff --git a/mobile/apps/auth/lib/ui/home_page.dart b/mobile/apps/auth/lib/ui/home_page.dartindex 0938ad2fe1..3e0c4602d6 100644--- a/mobile/apps/auth/lib/ui/home_page.dart+++ b/mobile/apps/auth/lib/ui/home_page.dart@@ -1908,10 +1908,9 @@ class _HomePageState extends State<HomePage> {return;}final lowerLink = link.toLowerCase();- if (mounted && (lowerLink.startsWith("ente-auth://") || lowerLink.startsWith("enteauth://"))) {+ if (mounted && lowerLink.startsWith("enteauth://search")) {try {final uri = Uri.parse(link);- if (uri.host != "search") return;final searchQuery = uri.queryParameters['query'];if (searchQuery != null && searchQuery.isNotEmpty) {_showSearchBox = true;@@ -1920,7 +1919,7 @@ class _HomePageState extends State<HomePage> {_applyFilteringAndRefresh();}} catch (e) {- _logger.warning("Malformed ente-auth deep link: $link", e);+ _logger.warning("Malformed enteauth deep link: $link", e);}} else if (mounted && lowerLink.startsWith("otpauth://")) {if (DateTime.now().millisecondsSinceEpoch - lastScanTime < 1000) {