Skip to content

Fix Wi-Fi Aware and Hotspot2 documentation (R079, pass 3) - #1961

Merged
jonathanpeppers merged 1 commit into
mainfrom
jonathanpeppers-review-wifi-aware-hotspot2-docs
Nov 28, 2026
Merged

jonathanpeppers merged 1 commit into
mainfrom
jonathanpeppers-review-wifi-aware-hotspot2-docs

Conversation

@jonathanpeppers

@jonathanpeppers jonathanpeppers commented Nov 28, 2026 •

Copy link
Copy Markdown
Member

Agent assessment

Self-reported assessment, not an independent review.

Assessed revision: fbef78f741a73ee952259e00f7c99b0167ae3ec9

Dimension Assessment Rationale
Change confidence 8.5/10 ↑ All 234 eligible blocks were reviewed against pinned sources; XML, preservation, links, publishing, and independent review checks passed.
↑ Copilot reported no open issues.
↓ The available SDK source archive is r01 while the bindings use r02; device behavior was not tested.
Diagnosis confidence 9/10 ↑ Pinned Android and binding code establish the corrected contracts.
↓ Some platform behavior was checked from source rather than on a device.
Evidence fit 9/10 ↑ Each change addresses a specific documentation error in the assigned scope.
↓ There was no reported runtime incident to reproduce.

Scope

Third-pass review of Wi-Fi Aware and Hotspot2 documentation. Reviewed 64 files and all 234 eligible AI-changed documentation blocks. The personal ledger covers 590 eligible channels. This patch changes 135 existing channels in 34 files and adds two exception entries.

Fixes and evidence

  • Correct JNI ownership wording: the flags control release of the incoming reference and peer registration; the managed object creates its own peer reference. See the pinned .NET object implementation and JNI reference release.
  • Correct managed parcel and enum links, remove duplicate Java flag wording, and correct the certificate credential property's getter/setter summary. See IParcelable and the credential accessors.
  • Clarify termination notifications: the setting controls hardware indications, but a local close can still deliver the callback on Android 12–17. See the HAL request, local termination, and Android 12 source.
  • Correct the time-to-live range to Android 8–17 and the service-name warning for Android 11 and earlier. TTL narrowing was checked across the releases, including Android 8, Android 13, Android 14, Android 16, and Android 17. The Android 11 validator rejects underscores.
  • Clarify that the publish configuration checks the pairing cipher intersection when device characteristics are available, while subscribe validation does not make that check. See pairing validation, publish validation, and subscribe validation.
  • Describe compatible bootstrapping methods, the non-null message requirement, and the unset ingress/egress getter exceptions. See method matching, the pinned SDK archive below, and the distance getters.
  • Document TXT writer rejection of empty keys or values and loss of some entries or values containing an equals sign on decoding. See the writer and reader.

The SDK source is 37.2 r01, SHA-256 9d637c3af6654a2f1b696b3d19c54bb77e38df2b0106116934703f314b3d4e84. The bindings use 37.2 r02; r01 was not used to override contradictory r02 evidence.

Uncertain findings

None. The previous pass's offloaded-pairing questions are supported by the SDK source and the current Android references for publish and subscribe; an older implementation predates those setters.

Checks

  • Parsed all 64 scoped XML files; placeholder count remained zero.
  • Checked bytes outside approved documentation channels, API metadata, BOM, line-ending style, attribution bytes, and reference URLs; all were preserved.
  • Verified all 31 new unique managed cref values and ran git diff --check.
  • Compared imported Javadoc with pinned source by script and personally reviewed nonexact or ambiguous channels.
  • Independent gemini-4-argon review found no issues; model use was verified in local session usage events.
  • Copilot reported no open issues. OpenPublishing.Build passed.

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

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 remain that require resolution.

No open issues 🎉

What changed in this PR

This documentation-only PR refines Wi-Fi Aware and Hotspot2 API guidance for .NET Android, aligning descriptions with managed bindings and platform behavior. It does not change API signatures or runtime code.

Changes:

  • Corrects JNI reference-handling wording, managed API links, and parcel documentation.
  • Clarifies discovery lifetime, termination callbacks, pairing compatibility, and version-specific constraints.
  • Documents unset-distance exceptions and TXT record conversion limitations.
File Description
docs/​xml/​Android.Net.Wifi.Hotspot2/​PasspointConfiguration.xml Clarifies creator return types and parcel documentation.
docs/​xml/​Android.Net.Wifi.Hotspot2.Pps/​HomeSp.xml Corrects parcel links and wording.
docs/​xml/​Android.Net.Wifi.Hotspot2.Pps/​Credential+UserCredential.xml Corrects parcel links and wording.
docs/​xml/​Android.Net.Wifi.Hotspot2.Pps/​Credential+SimCredential.xml Corrects parcel links and wording.
docs/​xml/​Android.Net.Wifi.Hotspot2.Pps/​Credential+CertificateCredential.xml Corrects parcel links and wording.
docs/​xml/​Android.Net.Wifi.Hotspot2.Pps/​Credential.xml Documents both credential accessors and corrects parcel guidance.
docs/​xml/​Android.Net.Wifi.Aware/​WifiAwareSession.xml Clarifies JNI reference handling and peer registration.
docs/​xml/​Android.Net.Wifi.Aware/​WifiAwareNetworkSpecifier+Builder.xml Clarifies PMK as an alternative to a passphrase.
docs/​xml/​Android.Net.Wifi.Aware/​WifiAwareNetworkSpecifier.xml Corrects parcel links and wording.
docs/​xml/​Android.Net.Wifi.Aware/​WifiAwareNetworkInfo.xml Corrects parcel links and wording.
docs/​xml/​Android.Net.Wifi.Aware/​WifiAwareManager.xml Clarifies JNI handling and TXT conversion limitations.
docs/​xml/​Android.Net.Wifi.Aware/​WifiAwareDataPathSecurityConfig.xml Corrects parcel links and wording.
docs/​xml/​Android.Net.Wifi.Aware/​WifiAwareChannelInfo.xml Corrects parcel links and wording.
docs/​xml/​Android.Net.Wifi.Aware/​SubscribeType.xml Links subscription modes to the managed builder method.
docs/​xml/​Android.Net.Wifi.Aware/​SubscribeDiscoverySession.xml Clarifies JNI reference handling and peer registration.
docs/​xml/​Android.Net.Wifi.Aware/​SubscribeConfig+Builder.xml Clarifies pairing, service-name compatibility, callbacks, and lifetime limits.
docs/​xml/​Android.Net.Wifi.Aware/​SubscribeConfig.xml Adds unset-distance exceptions and corrects managed links.
docs/​xml/​Android.Net.Wifi.Aware/​PublishType.xml Links publishing modes to managed enums and builder methods.
docs/​xml/​Android.Net.Wifi.Aware/​PublishDiscoverySession.xml Clarifies JNI reference handling and peer registration.
docs/​xml/​Android.Net.Wifi.Aware/​PublishConfig+Builder.xml Clarifies pairing, service-name compatibility, callbacks, and lifetime limits.
docs/​xml/​Android.Net.Wifi.Aware/​PublishConfig.xml Corrects parcel links and wording.
docs/​xml/​Android.Net.Wifi.Aware/​PeerHandle.xml Clarifies JNI reference handling and peer registration.
docs/​xml/​Android.Net.Wifi.Aware/​ParcelablePeerHandle.xml Corrects parcel links and wording.
docs/​xml/​Android.Net.Wifi.Aware/​IdentityChangedListener.xml Clarifies JNI reference handling and peer registration.
docs/​xml/​Android.Net.Wifi.Aware/​DiscoverySessionCallback.xml Clarifies JNI reference handling and peer registration.
docs/​xml/​Android.Net.Wifi.Aware/​DiscoverySession.xml Clarifies bootstrapping compatibility, non-null messages, and JNI handling.
docs/​xml/​Android.Net.Wifi.Aware/​Characteristics.xml Corrects parcel links and wording.
docs/​xml/​Android.Net.Wifi.Aware/​AwareResources.xml Corrects parcel links and wording.
docs/​xml/​Android.Net.Wifi.Aware/​AwarePairingConfig+Builder.xml Improves pairing descriptions and qualifies cipher-suite validation.
docs/​xml/​Android.Net.Wifi.Aware/​AwarePairingConfig.xml Corrects parcel links and wording.
docs/​xml/​Android.Net.Wifi.Aware/​AwareDataPathRequest+InterfaceConsts.xml Links parcel constants to managed methods and clarifies return-value wording.
docs/​xml/​Android.Net.Wifi.Aware/​AwareDataPathRequest+Builder.xml Corrects the documented return-type name and adds its managed link.
docs/​xml/​Android.Net.Wifi.Aware/​AwareDataPathRequest.xml Adds managed data-path method links and corrects parcel guidance.
docs/​xml/​Android.Net.Wifi.Aware/​AttachCallback.xml Clarifies JNI reference handling and peer registration.

Review effort: Balanced

@jonathanpeppers

Copy link
Copy Markdown
Member Author

@dalexsoto review

@dalexsoto

Copy link
Copy Markdown
Member

In response to @jonathanpeppers's request: I have checked the WifiAwareSession incoming-reference wording against the inspected SetHandle, DeleteRef and reference-option code. The other 33 changed files still need review, including the version-specific termination callbacks, pairing-cipher validation, service-name/TXT-record rules and distance-getter exceptions against the pinned Wi-Fi sources, followed by the whole-change final pass. This is a reviewer coverage gap, not an identified defect in the PR. The initial reviewer setup mistake was local; it was not a GitHub authentication or source-availability failure.

@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 34 changed documentation files and the affected Wi-Fi Aware callback, parcelable, and JNI ownership contracts. The updated wording and references are consistent with the relevant implementations; no blocking issues found.

@jonathanpeppers
jonathanpeppers merged commit 538763b into main Nov 28, 2026
4 checks passed
@jonathanpeppers
jonathanpeppers deleted the jonathanpeppers-review-wifi-aware-hotspot2-docs branch November 28, 2026 08:02
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