From f1d3754e65ef74717240c7a54df10195e118fb79 Mon Sep 17 00:00:00 2001 From: Leendert de Borst Date: Wed, 21 Jan 2026 10:28:47 +0100 Subject: [PATCH] Update Android autofill deeplinks (#1465) --- .../net/aliasvault/app/autofill/AutofillService.kt | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/apps/mobile-app/android/app/src/main/java/net/aliasvault/app/autofill/AutofillService.kt b/apps/mobile-app/android/app/src/main/java/net/aliasvault/app/autofill/AutofillService.kt index 59ac26cda..59731197a 100644 --- a/apps/mobile-app/android/app/src/main/java/net/aliasvault/app/autofill/AutofillService.kt +++ b/apps/mobile-app/android/app/src/main/java/net/aliasvault/app/autofill/AutofillService.kt @@ -380,12 +380,12 @@ class AutofillService : AutofillService() { val dataSetBuilder = Dataset.Builder(presentation) - // Get the app/website information to use as service URL + // Get the app/website information to use as item URL val appInfo = fieldFinder.getAppInfo() val encodedUrl = appInfo?.let { java.net.URLEncoder.encode(it, "UTF-8") } ?: "" // Create deep link URL - val deepLinkUrl = "aliasvault://credentials/add-edit-page?serviceUrl=$encodedUrl" + val deepLinkUrl = "aliasvault://items/add-edit-page?itemUrl=$encodedUrl" // Add a click listener to open AliasVault app with deep link val intent = Intent(Intent.ACTION_VIEW).apply { @@ -508,12 +508,12 @@ class AutofillService : AutofillService() { val dataSetBuilder = Dataset.Builder(presentation) - // Get the app/website information to use as service URL + // Get the app/website information to use as item URL val appInfo = fieldFinder.getAppInfo() val encodedUrl = appInfo?.let { java.net.URLEncoder.encode(it, "UTF-8") } ?: "" - // Create deep link URL to credentials page with service URL - val deepLinkUrl = "aliasvault://credentials?serviceUrl=$encodedUrl" + // Create deep link URL to items page with item URL + val deepLinkUrl = "aliasvault://items?itemUrl=$encodedUrl" // Add a click listener to open AliasVault app with deep link val intent = Intent(Intent.ACTION_VIEW).apply { @@ -553,10 +553,10 @@ class AutofillService : AutofillService() { val dataSetBuilder = Dataset.Builder(presentation) - // Create deep link URL to open the credentials page + // Create deep link URL to open the items page val appInfo = fieldFinder.getAppInfo() val encodedUrl = appInfo?.let { java.net.URLEncoder.encode(it, "UTF-8") } ?: "" - val deepLinkUrl = "aliasvault://credentials?serviceUrl=$encodedUrl" + val deepLinkUrl = "aliasvault://items?itemUrl=$encodedUrl" // Add a click listener to open AliasVault app with deep link val intent = Intent(Intent.ACTION_VIEW).apply {