Conversation
Avoid querying incomplete handshake cipher information during certificate validation on Android API 24, 25, 27, and 28. Preserve early metadata on API 26 and 29+ and keep the handshake-completion refresh unchanged. Expand Android root-trust coverage across protocols and client/server validation roles, including callback-time metadata and encrypted data exchange. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 5d1eb39b-b333-42a0-b862-cefce2a6c517
|
Azure Pipelines: Successfully started running 4 pipeline(s). 12 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
|
Tagging subscribers to this area: @dotnet/ncl, @bartonjs, @vcsjones |
rzikm
approved these changes
Oct 27, 2026
wfurt
approved these changes
Oct 27, 2026
Member
Author
|
/azp run runtime-android |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
Member
Author
|
/azp run runtime-android |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 5d1eb39b-b333-42a0-b862-cefce2a6c517
Member
Author
|
/azp run runtime-android Note This CI request was issued by GitHub Copilot. |
|
No pipelines are associated with this pull request. |
Member
Author
|
/azp run runtime-android |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
This was referenced Nov 27, 2026
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.
Agent assessment
Self-reported assessment, not an independent review.
Assessed revision:
70c24e1743dc2a520c9eb43c2a810fe7f3899944↑ Fresh baseline, all seven product TFMs, Android managed test compilation, and desktop unit suite passed.
↓ Desktop functional suite has one exact pre-existing #132950 failure; refreshed Android execution and CI remain pending.
↑ Query deferral leaves certificate-validation timing and policy unchanged.
↓ November 27 refresh has not been executed locally on Android; historical results are distinguished below.
Summary
Avoid querying negotiated connection information from Android's handshake session during certificate validation when the platform cannot supply a valid cipher:
(NONE)), API 27 (native null-cipher crash), and API 28 (SSL_NULL_WITH_NULL_NULL).SslStream.Android.cs, with an Android-only call from shared code. Expand the existing root-trust regression across protocols and client/server validation roles, checking callback metadata, final connection information, and bidirectional encrypted data.Certificate-validation timing and policy are unchanged. This PR contains only the connection-info query fix; separate rejection/exception-handling hangs discovered during testing are not addressed here.
Validation
Historical isolated-patch validation
These results were collected before the November 27 main refresh. All are from the isolated patch in this PR, without the separate rejection-handling changes.
Full-suite execution on every Android API and other architectures was not performed for this isolated patch. Existing rejection-path hangs on other Android versions are deferred to a separate fix; no tests were disabled.
November 27 main refresh
Merged
mainat546a94e68c739515edcae2a4a13cd9ba0716d378without conflicts. The PR still changes exactly four files; their contents are byte-identical to the previous approved head.CMAKE_PREFIX_PATH="$(brew --prefix icu4c@78)" ./build.sh clr+libs -rc release: passed, zero warnings/errors. The initial attempt failed to locate ICU'sucurr.h; the successful retry used the already-installed ICU 78 via a command-local search path, with no package installation or global configuration change../dotnet.sh build src/libraries/System.Net.Security/src/System.Net.Security.csproj /p:RuntimeConfiguration=Release: passed for all seven TFMs, zero warnings/errors../dotnet.sh build /t:Compile src/libraries/System.Net.Security/tests/AndroidPlatformTrustTests/System.Net.Security.AndroidPlatformTrust.Tests.csproj /p:TargetFramework=net12.0-android /p:TargetOS=android /p:TargetArchitecture=arm64 /p:RuntimeConfiguration=Release /p:SelfContained=false /p:RuntimeIdentifier=: passed, managed compilation only. Android packaging attempts failed because this workspace has no current Android runtime pack; no fresh local APK or Android test execution is claimed../dotnet.sh build /t:Test src/libraries/System.Net.Security/tests/UnitTests/System.Net.Security.Unit.Tests.csproj /p:RuntimeConfiguration=Release: 131 passed, 4 skipped, zero failures../dotnet.sh build /t:Test src/libraries/System.Net.Security/tests/FunctionalTests/System.Net.Security.Tests.csproj /p:RuntimeConfiguration=Release: 5,049 passed, 34 skipped, one failure.ConnectWithRevocation_WithCallback(checkRevocation: True)reportsRevocationStatusUnknowninstead ofRevoked, exactly matching open pre-existing #132950. An isolated two-case run reproduced that same failure. The test is unchanged by this PR; no test was disabled or unrelated product fix added.Fresh CI is being requested for the pushed revision; its outcome is not yet known.
Fixes #136456
Note
This PR and its description were prepared with GitHub Copilot.