Repository navigation
Fix Android.App documentation errors (R128, pass 3) - #2008
Conversation
Correct JNI reference handling, managed links, list-adapter descriptions, serialization wording, and unsupported keyguard deprecation dates. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues block approval of these documentation-only corrections.
No open issues 🎉
What changed in this PR
Continues the Android.App documentation corrections from #1819. This documentation-only update clarifies managed API contracts and guidance across 24 files without changing API declarations or runtime behavior.
Changes:
- Clarifies Java Native Interface (JNI) reference release and managed peer registration in activation-constructor documentation.
- Corrects list-adapter and AndroidX guidance, removes unsupported keyguard deprecation dates, and replaces links to obsolete members with plain names.
- Adds managed Parcelable method links and corrects “in to” to “into” in serialization descriptions.
| File | Description |
|---|---|
| docs/xml/Android.App/NativeActivity.xml | Clarifies JNI reference handling. |
| docs/xml/Android.App/MissingForegroundServiceTypeException.xml | Corrects parcel serialization wording. |
| docs/xml/Android.App/MediaRouteButton.xml | Clarifies JNI reference handling. |
| docs/xml/Android.App/MediaRouteActionProvider.xml | Clarifies JNI reference handling. |
| docs/xml/Android.App/LocaleManager.xml | Clarifies JNI reference handling. |
| docs/xml/Android.App/LocaleConfig.xml | Clarifies JNI handling and parcel wording. |
| docs/xml/Android.App/LocalActivityManager.xml | Clarifies JNI handling and replaces obsolete-member links. |
| docs/xml/Android.App/LoaderManager.xml | Clarifies JNI handling and replaces obsolete callback links. |
| docs/xml/Android.App/ListFragment.xml | Corrects AndroidX and adapter guidance, JNI wording, and an obsolete-member link. |
| docs/xml/Android.App/ListActivity.xml | Corrects AndroidX and adapter guidance and JNI wording. |
| docs/xml/Android.App/LauncherActivity+ListItem.xml | Clarifies JNI handling and replaces an obsolete property link. |
| docs/xml/Android.App/LauncherActivity+IconResizer.xml | Clarifies JNI reference handling. |
| docs/xml/Android.App/LauncherActivity.xml | Clarifies JNI reference handling. |
| docs/xml/Android.App/KeyguardManager+KeyguardLock.xml | Corrects deprecation wording, JNI handling, and obsolete-member references. |
| docs/xml/Android.App/KeyguardManager+KeyguardDismissCallback.xml | Clarifies JNI reference handling. |
| docs/xml/Android.App/KeyguardManager.xml | Removes unsupported deprecation dates and clarifies JNI handling. |
| docs/xml/Android.App/InvalidForegroundServiceTypeException.xml | Corrects parcel serialization wording. |
| docs/xml/Android.App/IntentService.xml | Clarifies JNI handling and replaces obsolete callback links. |
| docs/xml/Android.App/Instrumentation+ActivityMonitor.xml | Clarifies JNI reference handling. |
| docs/xml/Android.App/Instrumentation.xml | Clarifies JNI reference handling. |
| docs/xml/Android.App/HandoffActivityParams+InterfaceConsts.xml | Links constants to managed Parcelable methods. |
| docs/xml/Android.App/HandoffActivityParams.xml | Corrects parcel serialization wording. |
| docs/xml/Android.App/HandoffActivityData+InterfaceConsts.xml | Links constants to managed Parcelable methods. |
| docs/xml/Android.App/HandoffActivityData.xml | Corrects parcel serialization wording. |
Review effort: Balanced
|
@dalexsoto review |
|
In response to @jonathanpeppers's request: Reviewer coverage gap, not an identified defect in this PR: I still need to check the activation-constructor JNI-reference/managed-peer guidance in NativeActivity.xml, MediaRouteButton.xml and MediaRouteActionProvider.xml against the binding implementation, the Parcelable member links, and the Keyguard deprecation claims across this 24-file change. These source and cross-reference checks have not yet been performed in this pass; no source-fetch error occurred. The review remains queued for the next pass. |
dalexsoto
left a comment
There was a problem hiding this comment.
Reviewed at c300013. The constructor reference-ownership wording and documentation links match the JNI implementation and managed APIs; no blocking issues remain. Current-target integration and a separate final pass are complete. Static documentation review only.
Agent assessment
Self-reported assessment, not an independent review.
Assessed revision:
c300013b1c8c159be5fa6adf15829fa4db4d5ae3↑ XML, API metadata, other bytes, BOM and line endings are preserved.
↑ Gemini found no blocking errors.
↑ Constructor and link errors are checked against source and managed declarations.
↓ One separate r01/r02 source conflict remains unchanged.
Scope and personal review
R128, pass 3; Android.App only. Reviewed all 51 existing files from the 52-file assignment against pre-AI revision
86f7744a1, including the pass-2 changes from #1819.The fresh inventory contains 496 changed Docs blocks and 1,120 changed channels. There are 260 deferred shared-binding channels. The personal ledger has 860/860 non-deferred channel rows across 408 Docs blocks: 801 correct, 49 fixed, eight pre-existing errors excluded from changes, one formatting-only row excluded, and one uncertain. Thus 859 rows contain semantic review; no non-deferred channel lacks a row. Each row records the member, channel, current XML text, specific claim checked, verdict and numeric source lines. No script or sub-agent assigned these verdicts.
This PR changes 49 channels in 42 Docs blocks across 24 files. API declarations and unassigned files are unchanged.
Corrections and evidence
transferparameters now describe incoming reference release and peer registration, not reference adoption.IParcelable.DescribeContentsandWriteToParcellinks.Parcelable.java:103–110,166–171; the managed DocIds resolve and are not obsolete.HandoffActivityData.java:173–186,HandoffActivityParams.java:85–86,InvalidForegroundServiceTypeException.java:44–45,LocaleConfig.java:309–311,MissingForegroundServiceTypeException.java:44–45.SimpleCursorAdapter.java:94–110,ListActivity.java:28–177,ListFragment.java:31–150. The retained row layout matches two_line_list_item.xml:20–36.a86d4baa4c388da71b6afe4d82b493d4c6063ce1:IntentService.xml:237–238,KeyguardManager.xml:532–533,KeyguardManager+KeyguardLock.xml:83–84,154–155,LauncherActivity+ListItem.xml:307–308,ListFragment.xml:489–490,LoaderManager+ILoaderCallbacks.xml:131–132,182–183,LocalActivityManager.xml:593–594,633–634. These declarations carry the obsolete attributes.The five keyguard channels overlap one obsolete-link channel; the total is 49, not 50.
SDK source: source-37.2_r01.zip, SHA256
9d637c3af6654a2f1b696b3d19c54bb77e38df2b0106116934703f314b3d4e84. Managed source is pinned todotnet/android@9bc18c75acd8945015e14e460f067a75f32ec20f. The source manifest records exact paths and hashes, including the archived binding XML used for obsolete declarations.Uncertain finding — unchanged
MemoryBudgetManager type remarks: r01 source
MemoryBudgetManager.java:42–115,149–170,181–202says requests beyond limits throw. The captured current 37.2 reference, lines 33152–33169, instead describes state-specific clamping and throwing only when the request exceeds limits in every state. Snapshot SHA256:c03af97099d6bfaddfbd5334d93d315e39492ff0d449e7c0238f29d76214e624. Bindings follow r02; no immutable r02 implementation was found to settle this conflict. The text is retained under the campaign's r01/r02 rule.Checks and review
All 51 existing assigned XML files parse; zero placeholders. The exact change scope is checked against the initial byte snapshots. Bytes outside Docs, Docs attributes, API metadata, BOM and line endings are unchanged.
git diff --checkpassed. All 163 crefs introduced since the pre-AI baseline were checked against 145,851 DocIds; no missing or obsolete targets remain.Independent rubber-duck review: gemini-4-argon, no blocking findings. Verified through 19 local
assistant_usage_eventsrows for agent5b6f190f-7880-4dd6-9dae-655eba661a27, IDs 351784–351849, recorded 2026-11-28 19:38:49–19:42:53 UTC. The actual rows and result are saved inindependent-review.json.Evidence remains outside the commit in this session's
filesdirectory:final-ledger.tsv,final-ledger.json,source-manifest.json,validation.json,independent-review.json, initial XML snapshots and pinned sources. Copilot review, then dalexsoto review, are required before merge. Native protected squash auto-merge will be enabled.