Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

Add passkey create activity view (#520)

Leendert de Borst4c9de1fc2f3b
diff --git a/apps/mobile-app/android/app/build.gradle b/apps/mobile-app/android/app/build.gradle
index b9619c215..13d1fb2d6 100644
--- a/apps/mobile-app/android/app/build.gradle
+++ b/apps/mobile-app/android/app/build.gradle
@@ -187,6 +187,9 @@ dependencies {
implementation("androidx.credentials:credentials:1.6.0-beta02")
implementation("androidx.credentials:credentials-play-services-auth:1.6.0-beta02")
+ // Add Material Design components for UI
+ implementation("com.google.android.material:material:1.11.0")
+
// Add vector drawable support for SVG
implementation("com.caverock:androidsvg-aar:1.4")
diff --git a/apps/mobile-app/android/app/src/main/AndroidManifest.xml b/apps/mobile-app/android/app/src/main/AndroidManifest.xml
index 481ff9146..ce0beadc6 100644
--- a/apps/mobile-app/android/app/src/main/AndroidManifest.xml
+++ b/apps/mobile-app/android/app/src/main/AndroidManifest.xml
@@ -47,7 +47,7 @@
<activity
android:name=".credentialprovider.PasskeyRegistrationActivity"
android:exported="true"
- android:theme="@android:style/Theme.Translucent.NoTitleBar" />
+ android:theme="@style/PasskeyRegistrationTheme" />
<activity android:name=".MainActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenSize|screenLayout|uiMode" android:launchMode="singleTask" android:windowSoftInputMode="adjustResize" android:theme="@style/Theme.App.SplashScreen" android:exported="true" android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
diff --git a/apps/mobile-app/android/app/src/main/java/net/aliasvault/app/credentialprovider/PasskeyRegistrationActivity.kt b/apps/mobile-app/android/app/src/main/java/net/aliasvault/app/credentialprovider/PasskeyRegistrationActivity.kt
index 875e4a264..094e5f9cd 100644
--- a/apps/mobile-app/android/app/src/main/java/net/aliasvault/app/credentialprovider/PasskeyRegistrationActivity.kt
+++ b/apps/mobile-app/android/app/src/main/java/net/aliasvault/app/credentialprovider/PasskeyRegistrationActivity.kt
@@ -1,16 +1,23 @@
package net.aliasvault.app.credentialprovider
+import android.animation.ObjectAnimator
import android.app.Activity
import android.content.Intent
import android.os.Bundle
import android.util.Log
+import android.view.View
+import android.widget.TextView
import androidx.credentials.CreatePublicKeyCredentialResponse
import androidx.credentials.provider.PendingIntentHandler
import androidx.credentials.provider.ProviderCreateCredentialRequest
+import com.google.android.material.button.MaterialButton
+import com.google.android.material.textfield.TextInputEditText
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
+import kotlinx.coroutines.delay
import kotlinx.coroutines.launch
import kotlinx.coroutines.withContext
+import net.aliasvault.app.R
import net.aliasvault.app.credentialprovider.AliasVaultCredentialProviderService.Companion.EXTRA_CREATE_REQUEST_JSON
import net.aliasvault.app.credentialprovider.AliasVaultCredentialProviderService.Companion.EXTRA_CREATE_RP_ID
import net.aliasvault.app.credentialprovider.AliasVaultCredentialProviderService.Companion.EXTRA_CREATE_USER_DISPLAY_NAME
@@ -30,17 +37,9 @@ import java.util.UUID
/**
* PasskeyRegistrationActivity
*
- * Handles passkey registration (credential creation) when a website requests passkey creation.
- * This activity:
- * 1. Generates the WebAuthn credential using PasskeyAuthenticator
- * 2. Stores the passkey in the vault
- * 3. Syncs with server
- * 4. Returns the registration response to the calling app
- *
- * Flow:
- * - Website requests passkey creation
- * - This activity is launched with registration details
- * - We generate credential, save to vault, sync, and return attestation
+ * Handles passkey registration (credential creation) with a full UI.
+ * Shows a form where the user can edit the display name, then creates and saves the passkey.
+ * Displays loading states and error messages similar to iOS PasskeyRegistrationView.
*/
class PasskeyRegistrationActivity : Activity() {
@@ -51,11 +50,40 @@ class PasskeyRegistrationActivity : Activity() {
private lateinit var vaultStore: VaultStore
private lateinit var webApiService: WebApiService
+ // UI elements
+ private lateinit var headerSubtitle: TextView
+ private lateinit var displayNameInput: TextInputEditText
+ private lateinit var websiteText: TextView
+ private lateinit var usernameContainer: View
+ private lateinit var usernameText: TextView
+ private lateinit var errorText: TextView
+ private lateinit var saveButton: MaterialButton
+ private lateinit var cancelButton: MaterialButton
+ private lateinit var scrollView: View
+ private lateinit var loadingOverlay: View
+ private lateinit var loadingMessage: TextView
+ private lateinit var loadingDot1: View
+ private lateinit var loadingDot2: View
+ private lateinit var loadingDot3: View
+ private lateinit var loadingDot4: View
+
+ // Request data
+ private var providerRequest: ProviderCreateCredentialRequest? = null
+ private var requestJson: String = ""
+ private var rpId: String = ""
+ private var userName: String? = null
+ private var userDisplayName: String? = null
+ private var userId: ByteArray? = null
+
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
+ setContentView(R.layout.activity_passkey_registration)
Log.d(TAG, "PasskeyRegistrationActivity onCreate called")
+ // Initialize UI elements
+ initializeViews()
+
try {
// Initialize VaultStore and WebApiService
vaultStore = VaultStore.getExistingInstance()
@@ -65,34 +93,32 @@ class PasskeyRegistrationActivity : Activity() {
Log.d(TAG, "VaultStore and WebApiService initialized")
// Retrieve provider request
- val providerRequest = PendingIntentHandler.retrieveProviderCreateCredentialRequest(intent)
+ providerRequest = PendingIntentHandler.retrieveProviderCreateCredentialRequest(intent)
if (providerRequest == null) {
Log.e(TAG, "No provider request found in intent")
- setResult(RESULT_CANCELED)
- finish()
+ showError(getString(R.string.passkey_creation_failed))
return
}
Log.d(TAG, "Provider request retrieved successfully")
// Extract parameters from intent
- val requestJson = intent.getStringExtra(EXTRA_CREATE_REQUEST_JSON) ?: ""
- val rpId = intent.getStringExtra(EXTRA_CREATE_RP_ID) ?: ""
- val userName = intent.getStringExtra(EXTRA_CREATE_USER_NAME)
- val userDisplayName = intent.getStringExtra(EXTRA_CREATE_USER_DISPLAY_NAME)
+ requestJson = intent.getStringExtra(EXTRA_CREATE_REQUEST_JSON) ?: ""
+ rpId = intent.getStringExtra(EXTRA_CREATE_RP_ID) ?: ""
+ userName = intent.getStringExtra(EXTRA_CREATE_USER_NAME)
+ userDisplayName = intent.getStringExtra(EXTRA_CREATE_USER_DISPLAY_NAME)
val userIdB64 = intent.getStringExtra(EXTRA_CREATE_USER_ID)
Log.d(TAG, "Parameters: rpId=$rpId, userName=$userName, userDisplayName=$userDisplayName")
if (rpId.isEmpty() || requestJson.isEmpty()) {
- Log.e(TAG, "Missing required parameters: rpId=$rpId, requestJson length=${requestJson.length}")
- setResult(RESULT_CANCELED)
- finish()
+ Log.e(TAG, "Missing required parameters")
+ showError(getString(R.string.passkey_creation_failed))
return
}
// Decode user ID from base64url
- val userId = if (!userIdB64.isNullOrEmpty()) {
+ userId = if (!userIdB64.isNullOrEmpty()) {
try {
base64urlDecode(userIdB64)
} catch (e: Exception) {
@@ -103,38 +129,129 @@ class PasskeyRegistrationActivity : Activity() {
null
}
- Log.d(TAG, "Starting passkey creation coroutine")
-
- // Start passkey creation in coroutine
- CoroutineScope(Dispatchers.Main).launch {
- createPasskey(
- providerRequest = providerRequest,
- requestJson = requestJson,
- rpId = rpId,
- userName = userName,
- userDisplayName = userDisplayName,
- userId = userId,
- )
+ // Populate UI
+ populateUI()
+
+ // Set up button listeners
+ saveButton.setOnClickListener {
+ onSaveClicked()
+ }
+
+ cancelButton.setOnClickListener {
+ onCancelClicked()
}
} catch (e: Exception) {
Log.e(TAG, "Error in onCreate", e)
- setResult(RESULT_CANCELED)
- finish()
+ showError(getString(R.string.passkey_creation_failed))
}
}
+ private fun initializeViews() {
+ headerSubtitle = findViewById(R.id.headerSubtitle)
+ displayNameInput = findViewById(R.id.displayNameInput)
+ websiteText = findViewById(R.id.websiteText)
+ usernameContainer = findViewById(R.id.usernameContainer)
+ usernameText = findViewById(R.id.usernameText)
+ errorText = findViewById(R.id.errorText)
+ saveButton = findViewById(R.id.saveButton)
+ cancelButton = findViewById(R.id.cancelButton)
+ scrollView = findViewById(R.id.scrollView)
+ loadingOverlay = findViewById(R.id.loadingOverlay)
+ loadingMessage = findViewById(R.id.loadingMessage)
+ loadingDot1 = findViewById(R.id.loadingDot1)
+ loadingDot2 = findViewById(R.id.loadingDot2)
+ loadingDot3 = findViewById(R.id.loadingDot3)
+ loadingDot4 = findViewById(R.id.loadingDot4)
+ }
+
+ private fun populateUI() {
+ // Set subtitle
+ headerSubtitle.text = "Create a new passkey for $rpId"
+
+ // Set display name (default to rpId)
+ displayNameInput.setText(rpId)
+ displayNameInput.requestFocus()
+
+ // Set website
+ websiteText.text = rpId
+
+ // Set username if available
+ if (!userName.isNullOrEmpty()) {
+ usernameContainer.visibility = View.VISIBLE
+ usernameText.text = userName
+ } else {
+ usernameContainer.visibility = View.GONE
+ }
+ }
+
+ private fun onSaveClicked() {
+ // Validate display name
+ val displayName = displayNameInput.text.toString().trim()
+ if (displayName.isEmpty()) {
+ errorText.text = getString(R.string.passkey_error_empty_name)
+ errorText.visibility = View.VISIBLE
+ return
+ }
+
+ // Hide error and start creation
+ errorText.visibility = View.GONE
+
+ // Start passkey creation in coroutine
+ CoroutineScope(Dispatchers.Main).launch {
+ createPasskey(displayName)
+ }
+ }
+
+ private fun onCancelClicked() {
+ setResult(RESULT_CANCELED)
+ finish()
+ }
+
+ private fun showLoading(message: String) {
+ loadingMessage.text = message
+ loadingOverlay.visibility = View.VISIBLE
+ scrollView.alpha = 0.3f
+ scrollView.isEnabled = false
+
+ // Start pulsing animation on dots
+ startDotAnimation(loadingDot1, 0)
+ startDotAnimation(loadingDot2, 200)
+ startDotAnimation(loadingDot3, 400)
+ startDotAnimation(loadingDot4, 600)
+ }
+
+ private fun hideLoading() {
+ loadingOverlay.visibility = View.GONE
+ scrollView.alpha = 1.0f
+ scrollView.isEnabled = true
+ }
+
+ private fun startDotAnimation(dot: View, delayMillis: Long) {
+ CoroutineScope(Dispatchers.Main).launch {
+ delay(delayMillis)
+ val animator = ObjectAnimator.ofFloat(dot, "alpha", 0.3f, 1.0f)
+ animator.duration = 700
+ animator.repeatCount = ObjectAnimator.INFINITE
+ animator.repeatMode = ObjectAnimator.REVERSE
+ animator.start()
+ }
+ }
+
+ private fun showError(message: String) {
+ hideLoading()
+ errorText.text = message
+ errorText.visibility = View.VISIBLE
+ }
+
/**
* Create the passkey
*/
- private suspend fun createPasskey(
- providerRequest: ProviderCreateCredentialRequest,
- requestJson: String,
- rpId: String,
- userName: String?,
- userDisplayName: String?,
- userId: ByteArray?,
- ) = withContext(Dispatchers.IO) {
+ private suspend fun createPasskey(displayName: String) = withContext(Dispatchers.IO) {
try {
+ withContext(Dispatchers.Main) {
+ showLoading(getString(R.string.passkey_creating))
+ }
+
Log.d(TAG, "Creating passkey for RP: $rpId, user: $userName")
// Extract favicon (optional)
@@ -155,7 +272,7 @@ class PasskeyRegistrationActivity : Activity() {
val challenge = requestObj.optString("challenge", "")
// Construct origin from calling app signing certificate
- val origin = appInfoToOrigin(providerRequest.callingAppInfo)
+ val origin = appInfoToOrigin(providerRequest!!.callingAppInfo)
Log.d(TAG, "Origin: $origin")
// Build clientDataJSON
@@ -182,7 +299,6 @@ class PasskeyRegistrationActivity : Activity() {
// Create Passkey model object
val now = Date()
- val displayName = userDisplayName ?: userName ?: rpId
val passkey = Passkey(
id = passkeyId,
parentCredentialId = UUID.randomUUID(), // Will be set by createCredentialWithPasskey
@@ -198,7 +314,11 @@ class PasskeyRegistrationActivity : Activity() {
isDeleted = false,
)
- // Store in database (transaction handled internally by VaultStore)
+ // Store in database
+ withContext(Dispatchers.Main) {
+ showLoading(getString(R.string.passkey_saving))
+ }
+
Log.d(TAG, "Saving passkey to vault...")
vaultStore.createCredentialWithPasskey(
rpId = rpId,
@@ -210,11 +330,19 @@ class PasskeyRegistrationActivity : Activity() {
Log.d(TAG, "Passkey saved successfully")
// Upload vault changes to server
+ withContext(Dispatchers.Main) {
+ showLoading(getString(R.string.passkey_syncing))
+ }
+
try {
vaultStore.mutateVault(webApiService)
} catch (e: Exception) {
Log.w(TAG, "Vault mutation failed, but passkey was created locally", e)
// Continue - passkey is still saved locally
+ withContext(Dispatchers.Main) {
+ showError("Saved locally, but sync failed: ${e.message}")
+ delay(2000)
+ }
}
// Build response
@@ -226,17 +354,25 @@ class PasskeyRegistrationActivity : Activity() {
put("id", credentialIdB64)
put("rawId", credentialIdB64)
put("type", "public-key")
+ put("authenticatorAttachment", "platform")
put(
"response",
JSONObject().apply {
- put("attestationObject", attestationObjectB64)
put("clientDataJSON", clientDataJsonB64)
+ put("attestationObject", attestationObjectB64)
+ put(
+ "transports",
+ org.json.JSONArray().apply {
+ put("internal")
+ },
+ )
},
)
- if (enablePrf && passkeyResult.prfResults != null) {
- val prfResults = passkeyResult.prfResults
+ // Add PRF extension results if present
+ val prfResults = if (enablePrf) passkeyResult.prfResults else null
+ if (prfResults != null) {
put(
"clientExtensionResults",
JSONObject().apply {
@@ -267,24 +403,25 @@ class PasskeyRegistrationActivity : Activity() {
val response = CreatePublicKeyCredentialResponse(responseJson.toString())
withContext(Dispatchers.Main) {
+ hideLoading()
val resultIntent = Intent()
try {
Log.d(TAG, "Setting credential response...")
PendingIntentHandler.setCreateCredentialResponse(resultIntent, response)
Log.d(TAG, "Credential response set successfully")
+
setResult(RESULT_OK, resultIntent)
- Log.d(TAG, "Result set to RESULT_OK")
+ Log.d(TAG, "Result set to RESULT_OK, finishing activity")
+ finish()
} catch (e: Exception) {
Log.e(TAG, "Error setting credential response", e)
- setResult(RESULT_CANCELED)
+ showError(getString(R.string.passkey_creation_failed) + ": ${e.message}")
}
- finish()
}
} catch (e: Exception) {
Log.e(TAG, "Error creating passkey", e)
withContext(Dispatchers.Main) {
- setResult(RESULT_CANCELED)
- finish()
+ showError(getString(R.string.passkey_creation_failed) + ": ${e.message}")
}
}
}
diff --git a/apps/mobile-app/android/app/src/main/res/drawable/loading_dot.xml b/apps/mobile-app/android/app/src/main/res/drawable/loading_dot.xml
new file mode 100644
index 000000000..fc4aea753
--- /dev/null
+++ b/apps/mobile-app/android/app/src/main/res/drawable/loading_dot.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<shape xmlns:android="http://schemas.android.com/apk/res/android"
+ android:shape="oval">
+ <solid android:color="@color/colorPrimary" />
+</shape>
diff --git a/apps/mobile-app/android/app/src/main/res/layout/activity_passkey_registration.xml b/apps/mobile-app/android/app/src/main/res/layout/activity_passkey_registration.xml
new file mode 100644
index 000000000..0b58124bd
--- /dev/null
+++ b/apps/mobile-app/android/app/src/main/res/layout/activity_passkey_registration.xml
@@ -0,0 +1,248 @@
+<?xml version="1.0" encoding="utf-8"?>
+<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:background="?android:attr/colorBackground">
+
+ <!-- Main content -->
+ <ScrollView
+ android:id="@+id/scrollView"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:fillViewport="true">
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="vertical"
+ android:padding="24dp">
+
+ <!-- Header -->
+ <TextView
+ android:id="@+id/headerTitle"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/passkey_registration_title"
+ android:textSize="24sp"
+ android:textStyle="bold"
+ android:textColor="?android:attr/textColorPrimary"
+ android:layout_marginBottom="8dp" />
+
+ <TextView
+ android:id="@+id/headerSubtitle"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:textSize="14sp"
+ android:textColor="?android:attr/textColorSecondary"
+ android:layout_marginBottom="32dp" />
+
+ <!-- Display Name Input -->
+ <com.google.android.material.textfield.TextInputLayout
+ android:id="@+id/displayNameLayout"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:hint="@string/passkey_display_name_label"
+ app:boxBackgroundMode="outline"
+ app:boxStrokeColor="@color/colorPrimary"
+ app:hintTextColor="@color/colorPrimary"
+ android:layout_marginBottom="24dp">
+
+ <com.google.android.material.textfield.TextInputEditText
+ android:id="@+id/displayNameInput"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:inputType="text"
+ android:textSize="16sp"
+ android:maxLines="1" />
+ </com.google.android.material.textfield.TextInputLayout>
+
+ <!-- Website (Read-only) -->
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="horizontal"
+ android:gravity="center_vertical"
+ android:layout_marginBottom="16dp">
+
+ <ImageView
+ android:layout_width="24dp"
+ android:layout_height="24dp"
+ android:src="@android:drawable/ic_menu_compass"
+ android:tint="@color/colorPrimary"
+ android:layout_marginEnd="12dp"
+ android:contentDescription="@string/passkey_website_label" />
+
+ <LinearLayout
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:orientation="vertical">
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/passkey_website_label"
+ android:textSize="12sp"
+ android:textColor="?android:attr/textColorSecondary" />
+
+ <TextView
+ android:id="@+id/websiteText"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:textSize="16sp"
+ android:textColor="?android:attr/textColorPrimary" />
+ </LinearLayout>
+ </LinearLayout>
+
+ <!-- Username (Read-only, optional) -->
+ <LinearLayout
+ android:id="@+id/usernameContainer"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="horizontal"
+ android:gravity="center_vertical"
+ android:layout_marginBottom="32dp"
+ android:visibility="gone">
+
+ <ImageView
+ android:layout_width="24dp"
+ android:layout_height="24dp"
+ android:src="@android:drawable/ic_menu_myplaces"
+ android:tint="@color/colorPrimary"
+ android:layout_marginEnd="12dp"
+ android:contentDescription="@string/passkey_username_label" />
+
+ <LinearLayout
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:orientation="vertical">
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/passkey_username_label"
+ android:textSize="12sp"
+ android:textColor="?android:attr/textColorSecondary" />
+
+ <TextView
+ android:id="@+id/usernameText"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:textSize="16sp"
+ android:textColor="?android:attr/textColorPrimary" />
+ </LinearLayout>
+ </LinearLayout>
+
+ <View
+ android:layout_width="match_parent"
+ android:layout_height="0dp"
+ android:layout_weight="1" />
+
+ <!-- Error message -->
+ <TextView
+ android:id="@+id/errorText"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:textColor="#D32F2F"
+ android:textSize="14sp"
+ android:layout_marginBottom="16dp"
+ android:visibility="gone" />
+
+ <!-- Action Buttons -->
+ <com.google.android.material.button.MaterialButton
+ android:id="@+id/saveButton"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/passkey_create_button"
+ android:textColor="#FFFFFF"
+ android:backgroundTint="@color/colorPrimary"
+ android:layout_marginBottom="12dp"
+ app:cornerRadius="8dp"
+ android:paddingVertical="12dp" />
+
+ <com.google.android.material.button.MaterialButton
+ android:id="@+id/cancelButton"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/passkey_cancel_button"
+ android:textColor="@color/colorPrimary"
+ style="@style/Widget.Material3.Button.TextButton"
+ android:paddingVertical="12dp" />
+ </LinearLayout>
+ </ScrollView>
+
+ <!-- Loading overlay -->
+ <FrameLayout
+ android:id="@+id/loadingOverlay"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:background="#CC000000"
+ android:visibility="gone"
+ android:clickable="true"
+ android:focusable="true">
+
+ <LinearLayout
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center"
+ android:orientation="vertical"
+ android:gravity="center">
+
+ <!-- Loading animation container -->
+ <FrameLayout
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:background="@drawable/rounded_corner_background"
+ android:padding="20dp">
+
+ <LinearLayout
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:orientation="horizontal"
+ android:gravity="center">
+
+ <!-- Four pulsing dots -->
+ <View
+ android:id="@+id/loadingDot1"
+ android:layout_width="8dp"
+ android:layout_height="8dp"
+ android:layout_margin="5dp"
+ android:background="@drawable/loading_dot" />
+
+ <View
+ android:id="@+id/loadingDot2"
+ android:layout_width="8dp"
+ android:layout_height="8dp"
+ android:layout_margin="5dp"
+ android:background="@drawable/loading_dot" />
+
+ <View
+ android:id="@+id/loadingDot3"
+ android:layout_width="8dp"
+ android:layout_height="8dp"
+ android:layout_margin="5dp"
+ android:background="@drawable/loading_dot" />
+
+ <View
+ android:id="@+id/loadingDot4"
+ android:layout_width="8dp"
+ android:layout_height="8dp"
+ android:layout_margin="5dp"
+ android:background="@drawable/loading_dot" />
+ </LinearLayout>
+ </FrameLayout>
+
+ <!-- Loading message -->
+ <TextView
+ android:id="@+id/loadingMessage"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="16dp"
+ android:textColor="#FFFFFF"
+ android:textSize="16sp"
+ android:gravity="center" />
+ </LinearLayout>
+ </FrameLayout>
+</FrameLayout>
diff --git a/apps/mobile-app/android/app/src/main/res/values/strings.xml b/apps/mobile-app/android/app/src/main/res/values/strings.xml
index ec01f2f97..a1318c98e 100644
--- a/apps/mobile-app/android/app/src/main/res/values/strings.xml
+++ b/apps/mobile-app/android/app/src/main/res/values/strings.xml
@@ -17,4 +17,20 @@
<string name="biometric_store_key_subtitle">Authenticate to securely store your encryption key in the Android Keystore. This enables secure access to your vault.</string>
<string name="biometric_unlock_vault_title">Unlock Vault</string>
<string name="biometric_unlock_vault_subtitle">Authenticate to access your vault</string>
+
+ <!-- Passkey registration -->
+ <string name="passkey_registration_title">Create Passkey</string>
+ <string name="passkey_display_name_label">Passkey Name</string>
+ <string name="passkey_display_name_hint">Enter a name for this passkey</string>
+ <string name="passkey_website_label">Website</string>
+ <string name="passkey_username_label">Username</string>
+ <string name="passkey_create_button">Save Passkey</string>
+ <string name="passkey_cancel_button">Cancel</string>
+ <string name="passkey_creating">Creating passkey</string>
+ <string name="passkey_saving">Saving to vault</string>
+ <string name="passkey_syncing">Syncing with server</string>
+ <string name="passkey_error_title">Error</string>
+ <string name="passkey_error_empty_name">Please enter a name for the passkey</string>
+ <string name="passkey_creation_failed">Failed to create passkey</string>
+ <string name="passkey_retry_button">Retry</string>
</resources>
\ No newline at end of file
diff --git a/apps/mobile-app/android/app/src/main/res/values/styles.xml b/apps/mobile-app/android/app/src/main/res/values/styles.xml
index 7830ed292..734fe88d3 100644
--- a/apps/mobile-app/android/app/src/main/res/values/styles.xml
+++ b/apps/mobile-app/android/app/src/main/res/values/styles.xml
@@ -17,4 +17,11 @@
<item name="windowSplashScreenAnimatedIcon">@drawable/splashscreen_logo</item>
<item name="postSplashScreenTheme">@style/AppTheme</item>
</style>
+ <style name="PasskeyRegistrationTheme" parent="Theme.Material3.Light.NoActionBar">
+ <item name="colorPrimary">@color/colorPrimary</item>
+ <item name="android:statusBarColor">#fff</item>
+ <item name="android:navigationBarColor">#fff</item>
+ <item name="android:windowDrawsSystemBarBackgrounds">true</item>
+ <item name="android:windowLightStatusBar">true</item>
+ </style>
</resources>
\ No newline at end of file