Android Week 15

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/19

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

20 Terms

1
New cards

What is biometric authentication?

Verifying identity using unique physical or behavioral characteristics

2
New cards

What API does Android provide for biometric authentication?

BiometricPrompt API

3
New cards

Name three biometric types supported by Android?

Fingerprint, Face, Iris

4
New cards

What are the three biometric security levels in Android?

Strong, Weak, Device Credential

5
New cards

What class check biometric hardware availbility in Android?

BiometricManager

6
New cards

What are the permissions needed for biometric use?

USE_BIOMETRIC and USE_FINGERPRINT

7
New cards

How do you check if biometrics are supported on a device?

Use biometricManager.canAuthenticate()

8
New cards

What does BiometricPrompt.AuthenticationCallback handle?

Success, failure, and error events during authentication

9
New cards

What is BiometricPrompt.PromptInfo.Builder() used for?

To configure the authentication prompt dialog

10
New cards

In Compose, how can you trigger biometric auth in the UI?

Use a Button that calls biometricPrompt.authenticate(…)

11
New cards

What is a fallback mechanism in biometric auth?

Using a PIN or password if biometrics fail or are unavailable

12
New cards

Should biometric data be stored on the device?

No. Always use BiometricPrompt to handle it securely

13
New cards

How can biometricPrompt be customized?

Change title, subtitle, description, and negative button text

14
New cards

Can you use multiple biometric types in Android?

Yes, fingerprint and face recognition can both be supported

15
New cards

What is biometricPrompt.CryptoObject used for?

To handle encrypted data authentication with biometrics

16
New cards

What should you do if no biometric data is enrolled?

Prompt the user to enroll via system settings

17
New cards

What causes consistent biometric failures?

Dirty sensor, improper enrollment, or hardware issues

18
New cards

How do you avoid blocking UI during authentication?

Run BiometricPrompt on ContextCompat.getMainExecutor()

19
New cards

How to use biometric authentication with Firebase?

Trigger Firebase logic after biometric successH

20
New cards

How is biometric auth used for encrypted data?

Use BiometricPrompt with a CryptoObject to decrypt