Repository navigation
Fix Wi-Fi Aware and Hotspot2 documentation (R079, pass 3) - #1961
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🟢 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
|
@dalexsoto review |
|
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
left a comment
There was a problem hiding this comment.
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.
Agent assessment
Self-reported assessment, not an independent review.
Assessed revision:
fbef78f741a73ee952259e00f7c99b0167ae3ec9↑ Copilot reported no open issues.
↓ The available SDK source archive is r01 while the bindings use r02; device behavior was not tested.
↓ Some platform behavior was checked from source rather than on a device.
↓ 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
IParcelableand the credential accessors.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
crefvalues and rangit diff --check.gemini-4-argonreview found no issues; model use was verified in local session usage events.OpenPublishing.Buildpassed.