Skip to content

Fix documentation errors in Android.Hardware.Biometrics (R117, pass 3) - #1997

Merged
jonathanpeppers merged 1 commit into
mainfrom
jonathanpeppers-review-hardware-biometrics-docs-r117
Nov 28, 2026
Merged

jonathanpeppers merged 1 commit into
mainfrom
jonathanpeppers-review-hardware-biometrics-docs-r117

Conversation

@jonathanpeppers

@jonathanpeppers jonathanpeppers commented Nov 28, 2026 •

Copy link
Copy Markdown
Member

Agent assessment

Self-reported assessment, not an independent review.

Assessed revision: d211ee1a0bba58c3a760b01f42cc890bb6df935a

Dimension Assessment Rationale
Change confidence 9/10 ↑ Each fix cites a pinned AOSP source-37.2_r01 line.
↑ All 6 changed XML files parse; git diff --check is clean; all cref targets exist and are not obsolete.
↑ gemini-4-argon rubber duck found no problems.
↓ OpenPublishing.Build result is pending.

Pass-3 review of item R117: Android.Hardware.Biometrics (22 files). Earlier passes: #1624 (pass 1), #1807 (pass 2).

Scope

  • Reviewed every AI-changed channel (git diff 86f7744a1 origin/main): 675 channels, one ledger row each.
  • 257 rows are exactly equal (normalized) to the Javadoc of their own class and member, pinned to the exact source lines. 46 of these are constants that BiometricPrompt inherits from BiometricConstants (BiometricPrompt.java:79). 9 of these also have a hand judgment (see below).
  • 319 rows were judged by hand against pinned sources. 99 generator rows (JniPeerMembers, ThresholdClass, ThresholdType) were judged by hand against the dotnet/android generator and runtime sources; all are correct.
  • Sources: AOSP source-37.2_r01 (SHA256 9d637c3a…4e84), dotnet/android@9bc18c7 (Object.cs, JNIEnv.cs, generator, IJavaPeerable.xml).

Fixes (9 channels, 6 files)

File Change Evidence
BiometricManager.xml (BiometricSensorStrengths remarks) RoleManager#ROLE_WALLET, #ROLE_DEVICE_POLICY_MANAGEMENT raw link text → dotted names BiometricManager.java:782-783
BiometricPrompt+Builder.xml (SetAllowedAuthenticators remarks) BiometricPrompt#authenticate(...) → BiometricPrompt.authenticate(...) BiometricPrompt.java:714
BiometricPrompt.xml (FallbackOptions summary, remarks) Builder#addFallbackOption(...) → cref to Builder.AddFallbackOption BiometricPrompt.java:1335-1341
BiometricPromptStyleSpec+InterfaceConsts.xml (2 summaries) #describeContents(), #writeToParcel → crefs to BiometricPromptStyleSpec.DescribeContents / WriteToParcel Parcelable.java:103-110, 166-171; BiometricPromptStyleSpec.java:100-110
EmbeddedBiometricPrompt+AuthenticationCallback.xml (summary) EmbeddedBiometricPrompt#startAuthenticationSession(...) → cref EmbeddedBiometricPrompt.java:1360-1365
EmbeddedBiometricPrompt.xml (AuthSessionId value) Value now says -1 when no session id is set. The old text named a constant that apps cannot see. EmbeddedBiometricPrompt.java:660-668; BiometricConstants.java:37-38 (@Hide interface), :359-360 (BIOMETRIC_REQUEST_ID_UNSET = -1)
EmbeddedBiometricPrompt.xml (remarks) Builder#setLogoRes(int) → cref to Builder.SetLogoRes(Int32) EmbeddedBiometricPrompt.java:803

Pass-2 fixes in #1807 were checked again and are correct.

Checked and kept (no text change)

These were uncertain in pass 2. Each is now decided as correct:

  1. BiometricPrompt.Builder.SetAllowedAuthenticators and SetDeviceCredentialAllowed remarks say some combinations "make it an error". This is a caller contract from the Javadoc (BiometricPrompt.java:687-689, 718-722). Client build() (:898-909) checks only the title, but it does not allow the combination either, so the text is not contradicted (same rule as an unchecked @NonNull).
  2. EmbeddedBiometricPrompt.Builder.SetTitle (both overloads) says "Required" (EmbeddedBiometricPrompt.java:270-278, @NonNull at :278). Embedded build() (:542-568) does not check the title, but "Required" is a caller contract. Kept.
  3. EmbeddedBiometricPrompt.IsConfirmationRequired returns the value set by SetConfirmationRequired (EmbeddedBiometricPrompt.java:767-768; BiometricPrompt.java:674-676, 1437-1438), so the text is correct. The embedded success callback says "Called when a biometric is recognized" (EmbeddedBiometricPrompt.java:1397). The same receiver also reports device-credential success (BiometricPrompt.java:966-977, 1633-1637), so the upstream text is not complete, but it is not false. Kept.

Checks

  • All changed XML files parse. git diff --check is clean. BOM and CRLF are kept. No new To be added.
  • No edits to index.xml, _filter.xml or FrameworksIndex.
  • Known patterns: transfer param text is correct (Object.cs:110-118); no obsolete crefs in AI text (46 checked); no enum-return overpromises.
  • Rubber duck: gemini-4-argon (confirmed in local assistant_usage_events), no findings.

Replace raw Class#MEMBER link text with crefs or dotted names, and fix
the EmbeddedBiometricPrompt.AuthSessionId value text (unset value is -1).

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 28, 2026 17:40
@jonathanpeppers
jonathanpeppers enabled auto-merge (squash) November 28, 2026 17:40

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are reported for the biometric API documentation refinements.

No open issues 🎉

What changed in this PR

This third-pass update refines Android.Hardware.Biometrics API documentation following the earlier corrections. It improves references and clarifies an unset session value without changing API behavior.

Changes:

  • Replace raw Java member references with managed API links.
  • Normalize Java reference notation in authentication and role documentation.
  • Document -1 as the value returned when no existing authentication session ID is set.
File Description
docs/​xml/​Android.Hardware.Biometrics/​EmbeddedBiometricPrompt+AuthenticationCallback.xml Link the callback summary to StartAuthenticationSession.
docs/​xml/​Android.Hardware.Biometrics/​EmbeddedBiometricPrompt.xml Clarify the unset session ID and link to SetLogoRes.
docs/​xml/​Android.Hardware.Biometrics/​BiometricPromptStyleSpec+InterfaceConsts.xml Link parcelable constants to their related managed methods.
docs/​xml/​Android.Hardware.Biometrics/​BiometricPrompt+Builder.xml Normalize the Java authentication reference notation.
docs/​xml/​Android.Hardware.Biometrics/​BiometricPrompt.xml Link fallback-option documentation to Builder.AddFallbackOption.
docs/​xml/​Android.Hardware.Biometrics/​BiometricManager.xml Normalize role constant references in sensor-strength remarks.

Review effort: Balanced

@jonathanpeppers

Copy link
Copy Markdown
Member Author

@dalexsoto review

@dalexsoto dalexsoto left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed all 6 changed Android.Hardware.Biometrics files at d211ee1 against the pinned AOSP source-37.2_r01 sources and the head docs set. All 5 new crefs resolve to exactly one existing member, none of them obsolete (BiometricPrompt.Builder.AddFallbackOption(ICharSequence,Int32,IExecutor,IDialogInterfaceOnClickListener), BiometricPromptStyleSpec.DescribeContents/WriteToParcel(Parcel,ParcelableWriteFlags), EmbeddedBiometricPrompt.StartAuthenticationSession(...), EmbeddedBiometricPrompt.Builder.SetLogoRes(Int32)). Each one replaces the matching upstream Javadoc link, e.g. getFallbackOptions links to addFallbackOption(CharSequence, int, Executor, DialogInterface.OnClickListener) (BiometricPrompt.java:572-576, :1334-1337). The ExistingAuthSessionId value is correct: the getter defaults to the hidden BiometricConstants.BIOMETRIC_REQUEST_ID_UNSET, which is -1 (BiometricConstants.java:359-360; EmbeddedBiometricPrompt.java:183, :659-668). The BiometricManager and BiometricPrompt.Builder remarks changes are notation-only and match their upstream text. No blocking issues.

@jonathanpeppers
jonathanpeppers merged commit 81f1249 into main Nov 28, 2026
4 checks passed
@jonathanpeppers
jonathanpeppers deleted the jonathanpeppers-review-hardware-biometrics-docs-r117 branch November 28, 2026 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants