Wait for Android JDWP application readiness - #12611
Closed
davidnguyen-tech wants to merge 3 commits into
Closed
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 3c573669-b4d3-4441-85ee-5a906a62b6f7
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 3c573669-b4d3-4441-85ee-5a906a62b6f7
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 3c573669-b4d3-4441-85ee-5a906a62b6f7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Status
Discontinued on 2026-09-01. Three exact downstream product campaigns
(
15165979,15165980, and15165981) ended at 0/3: the validated packageoverlay did not release the application from Android's Java debugger gate.
The consumer investigation has moved to managed-only debugging with
_AndroidAllowJavaDebugging=falseand transientam set-debug-appwithout-w. No additional producer build or JDWP package is planned, and this PR isclosing unmerged. The validation below remains as historical provenance.
Description
Backports the JDWP application-readiness fix from #12589 to
release/11.0.1xx-preview7.The existing bounded hold can end before ART reaches
Debug.waitForDebugger().When that happens, the temporary JDWP connection closes and the app can enter
the debugger gate afterward with no Java debugger attached.
This change queries DDM capabilities with
HELOandFEAT, waits for theruntime-advertised
STAGboot-stage signal, treatsA_GOas the sticky readystate, and retains the existing 1.4-second fallback for runtimes that do not
advertise boot-stage support.
Changes
HELO,FEAT, and asynchronousSTAG.A_GOinstead of treating the pre-gateDEBGstage as ready.AndroidToolsVersionproperty ineng/Versions.props, consumed byAndroidTools.GitInfo.targetsand the external Android tools version target.GitInfo remains the fallback when the release property is not defined.
Validation
project.
Xamarin.AndroidToolsbuild succeeds with zero warnings and zeroerrors without command-line assembly-version overrides.
uses merge commit
7557a9dbad6caf048e52c612504db292aa29a1f6.Microsoft.Android.Sdk.Windows.37.0.0-ci.pr.gh12611.0.nupkgee60d1803cac7dd9a2f8b51742ac2ee13d68def057649b18cdcba9c9dcfc660dtools/Xamarin.AndroidTools.dll47d867a5c5ee08d6eceee0982a4f6cd9f26ac67cc16a1983e4832860c9339aa2Xamarin.AndroidTools, Version=99.61.4269.087f7c026dcad9390; strong-name verification passes.Mono.AndroidTools99.61.4269.0,Xamarin.Android.Tools.AndroidSdk99.61.4269.0,netstandard2.0.0.0, andSystem.Memory4.0.1.2.Current CI state
Aggregate build 1576007 completed
failedat2026-09-01T06:59:30.3838212Z. Its source remained exact pull-request merge7557a9dbad6caf048e52c612504db292aa29a1f6. The package producer, dedicatedAndroid Tools jobs on macOS and Windows, all eight Windows MSBuild shards, and
eleven of twelve macOS emulator shards passed.
Windows > Build & Smoke Testfailed independently while copyingXamarin.Android.Tools.AndroidSdk.dllinto Java.Interop BootstrapTasks:MSBuild reported
MSB3027/MSB3021because another MSBuild process held thedestination file. This file-lock failure is outside the version/identity output
validated in the published package.
MSBuild Emulator Tests > macOS > MSBuild+Emulator 6also failed whenMarshalMethodsAppRuns(CoreCLR)did not emitXXX:OnStart done. The test onlyinstalls and starts an app and watches logcat; it never enters the debugger
attach path changed here. Current
mainexplicitly ignores this test as theknown CoreCLR marshal-methods issue #12206. These were the build's only two
failed job paths.
Testing