Repository navigation
Fix Android.Systems documentation errors (R083, pass 3) - #1964
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🔵 Needs a closer look
Android-specific native behavior and release-boundary claims require human verification because the pinned AOSP sources and review ledger were unavailable and retrieval of the cited native-wrapper revision failed.
No open issues 🎉
What changed in this PR
This documentation-only PR corrects Android.Systems API descriptions to better reflect managed JNI behavior and Android implementation details. It does not change API signatures or runtime code.
Changes:
- Clarifies JNI reference release and runtime registration.
- Corrects system-call parameters, return values, edge cases, and legacy overload availability.
- Updates constant descriptions for resolver flags, errors, memory synchronization, and version-dependent
sysconfsupport.
| File | Description |
|---|---|
| docs/xml/Android.Systems/OsConstants.xml | Corrects constant meanings and Android-specific support limitations. |
| docs/xml/Android.Systems/Os.xml | Clarifies system-call behavior, edge cases, and version differences. |
| docs/xml/Android.Systems/Int64Ref.xml | Corrects the JNI constructor’s ownership-transfer description. |
Review effort: Balanced
|
@dalexsoto review |
dalexsoto
left a comment
There was a problem hiding this comment.
Reviewed all three changed documentation files against the Android libcore/bionic implementations and the referenced POSIX/Linux behavior. The resolver flags, recvfrom address handling, Android 6.0 sysconf selector boundary, errno descriptions, and file-descriptor/default-ACL wording are consistent with those sources. The separate final pass found no blocking issues. Static source review only.
Agent assessment
Self-reported assessment, not an independent review.
Assessed revision:
31847995ae8762b71c77427715035cf57294b8ba↑ An independent source review found no actionable changes.
↓ Copilot could not retrieve the AOSP sources or local ledger; Android-version behavior was not tested on devices.
↓ The independent review misstated JNI global-reference handling; that statement was checked separately against the managed source.
Scope
Third-pass review of AI-changed documentation in 16
Android.Systemsfiles against the pre-AI baseline. Reviewed 737 changed documentation blocks and 1,667 channels; 83 channels in three files needed correction. Excluded 32 boilerplate blocks. No in-scope blocks remain unreviewed.Corrections and sources
Poll, positional writes, default ACL handling, and legacySendfileandWaitpidoverloads. See Android libcore native wrappers, Android 17 dynamic-linker wrapper, Android 17 JNI string handling, Android 8.1 libcore, Linuxpwritemanual, and Linuxumaskmanual.msync.sysconfselectors and the result for unsupported selectors across Android versions. Android 9 bionic and Android 10 bionic.Uncertain findings
None. The 52 nonexact Javadoc comparisons were reviewed against the available pinned sources. The SDK source archive is 37.2 r01; it was not used to override contradictory r02 binding or implementation evidence.
Checks
git diff --checkpassed.gemini-4-argonreview found no actionable changes; model use was verified in local usage events. The review incorrectly described an incoming global JNI reference as adopted. The linked managed source confirms that the peer takes a copy and the transferred input is released; the revised documentation does not claim adoption.78b1788981c86aa0c03f8ae750a9fe7aaf14e43e).