Repository navigation
Description
Thanks for taking the time to fill out this report! Please make sure to add as much detail as you can, preferably with a reproduction if possible. This will help us diagnose the issue faster and thus resolve it quicker.
Android framework version
net11.0-android (Preview)
This primarily concerns host-side build tooling, shared Android SDK utilities, installers, CLI runners, and test infrastructure, rather than Android application APIs. Some affected code is also used with earlier Android target frameworks.
Affected platform version
Windows, macOS, and Linux host tooling. The baseline desktop tooling targets net10.0; many shipped task/helper assemblies target netstandard2.0. The Windows thread-pool scalability problem applies to hosting runtimes before .NET 11. Pipe ordering, cancellation, inherited-handle, and ownership problems can remain on newer runtimes too.
Description
Summary and scope
The .NET 11 Process API improvements article prompted a repository-wide audit of direct System.Diagnostics.Process usage and the callers of shared execution helpers.
We found concrete unsafe capture-order patterns, cancellation that can wait indefinitely for inherited pipes, ineffective timeout handling, unnecessary worker/handle retention, and long-lived processes whose standard-stream lifetime is not properly separated from their parent's lifetime.
This issue is a tracking analysis, not a claim that every listed call site currently hangs. Most findings are source-confirmed patterns whose manifestation depends on output volume, descendant behavior, host runtime, or cancellation timing. Normal low-volume commands can conceal the problem for a long time.
Source links below are pinned to the audited baseline, 296ab555e30e33af927adc3479423440f1733cb9, rather than a mutable working branch.
Audience classification
The exhaustive baseline inventory lists every named operation/mode identified under the audited process-launch paths, including helper consumers and inherited MSBuild tool tasks. It contains 254 rows, with pinned source references and finding/safe-case qualifications.
| Category | Named use cases | Exposure |
|---|---|---|
| a) Repository work and CI | 110 | Maintainer preparation/builds, test tooling, CI investigation, emulator management and test cleanup. |
| b) Developer-host app tooling | 132 | Shipped app build tasks, native/resource compilation, SDK/JDK setup, deployment and development execution. CI also exercises these paths. |
| Shared a+b helpers | 12 | Generic capture, input, exit, callback and ownership modes listed once rather than duplicated as bugs. |
| c) Final installed app runtime | 0 confirmed findings | No audited .NET Process launcher was found in final-app runtime code; customer app/dependency Process usage requires a separate audit. |
Running dotnet run, instrumentation, logcat or remote ADB commands is b, not c: the affected .NET parent/capture process executes on the developer/build host. The inventory explicitly includes framework-managed, already-bounded, no-redirection, query-only, deliberate-repro and unused-helper cases; 254 rows does not mean 254 bugs.
The complete tables are in the linked comment because combining them with this original detailed analysis exceeds GitHub's issue-body size limit. The original analysis and issue-form sections are retained below.
1. Capture ordering: classic pipe-buffer deadlocks
Redirected pipes have finite capacity. Waiting for the child to exit before draining output can deadlock once either pipe fills. Reading stdout to EOF before starting stderr is also unsafe: the child can block writing stderr while the parent is waiting for stdout EOF.
| Priority | Baseline locations | Finding |
|---|---|---|
| High | JarContentBuilder.cs:44–76 | Both javac and jar redirect stdout/stderr and wait without draining either. jar cvf is verbose, making larger inputs a particularly plausible trigger. The identical jar command is also run twice, adding avoidable work. |
| High | BaseTest.AssertApkIsSigned:524–536 | Reads stdout to completion and only then reads stderr when running apksigner verify. |
| High | ci_failures.cs:329–344 | The az/gh command helper reads the redirected streams sequentially. It is also used from parallel test-result retrieval. |
| Lower likelihood under normal output | AndroidSdkResolver.cs:66–104 | Java version discovery redirects both streams and waits first. MSBuild-based SDK path discovery also waits before reading stdout. Normally small output does not make the ordering safe. |
| Lower likelihood under normal output | MSBuildLocator.cs:49–64 | Waits for vswhere before draining stdout. |
| Lower likelihood under normal output | BaseTest.cs:395–406, JdkInfoTests.cs:120–131 | chmod helpers redirect output but never drain it. Successful invocations are usually silent; unexpected diagnostics remain unhandled. |
Fix direction: start both drains before awaiting either or awaiting exit. On .NET 11, use RunAndCaptureText[Async] for finite capture or multiplexed ReadAllText/Lines[Async] when explicit process control is needed. Preserve exit codes, encoding, diagnostic streams, and trailing partial text.
2. Shared runner: cancellation and EOF are separate lifetimes
ProcessUtils.StartProcess:41–110 correctly starts both output drains concurrently. It is not a sequential-capture bug. However:
- Cancellation calls
Kill()on the immediate child only. ReadStreamAsynchas no cancellation token.Task.WhenAll(output, error, exit)requires both streams to reach EOF even after the direct child exits or is killed.- A descendant retaining a standard-handle write end can therefore keep the whole operation pending after cancellation.
- If a destination writer throws, its drain stops, but the aggregate still waits for the child and the other tasks. Continued child output can fill the now-undrained pipe.
onStartedis invoked before the drains/cancellation registration are established; failures or blocking work there also require an explicit cleanup policy.
This helper is used by ADB runners, SDK/AVD management, fast deployment, instrumentation, archive extraction, JDK installation, and installer progress tooling. A fix here has broad value, but should be independently reviewed for API/behavior compatibility.
Fix direction: cancellation-aware readers; explicit cleanup on reader/writer/start-callback failure; process-exit observation independent of stream EOF; and a bounded, documented post-exit drain policy. Selectively terminate owned descendants, rather than indiscriminately killing shared ADB servers.
3. Timeouts that do not bound execution or cleanup
| Baseline locations | Finding |
|---|---|
| FileSystemUtils.cs:160–168, BaseTest.RunCommand:624–632 | A timed wait is followed unconditionally by unlimited WaitForExit(), including when the timed wait returned false. |
| MonoAndroidHelper.cs:93–179, CompileNativeAssembly.cs:46–93 | Both readers run, but unlimited WaitForExit() can itself await reader EOF. The subsequent 30-second event waits are too late to protect against inherited handles. Root-only cancellation cannot resolve all such cases. |
| Bootstrap Adb.cs:257–278, GitCommitInfo.cs:305–329 | Timeout/root-kill handling is followed by unlimited exit/output draining. Configured output timeouts do not bound that earlier wait. |
| GradleCLI.cs:61–66, EnvironmentHelper.cs:843–859 | Timeout does not reliably terminate the child; these paths can then access ExitCode while the process is still running. |
| SevenZipHelper.cs:35–39 | Disposes the wrapper after a timeout without terminating the command. |
| check-boot-times Program.cs:393–443, RunAndroidEmulatorCheckBootTimes.cs:145–193 | Output-marker waits and process lifetime are conflated. Completion/timeout paths do not consistently terminate the specific process started; later name-based cleanup is not a substitute for ownership. |
| DeviceTest.cs:375–400, InstallAndRunTests.cs at 522, 628, 700, 805, 3365, and 3544 | Cleanup or post-exit event draining uses unlimited waits. Even tree-killing cannot discover every already-detached/reparented pipe holder. |
Fix direction: separate command deadline, termination deadline, and output-drain deadline. Do not append unlimited waits to timed waits. Observe termination and reader tasks before disposing sinks. Use tree termination only where the complete toolchain is owned.
Existing bounded-drain implementations in Builder, BaseTest.RunProcessWithExitCode, and DotNetCLI provide useful prior art. Their partial-output policy should be considered before changing caller behavior.
4. AAPT2 daemon protocol and cancellation
Aapt2Daemon.cs:187–290 needs a dedicated protocol/lifetime fix:
- Active jobs block in synchronous stderr
ReadLine()without observing job/build cancellation. - Unexpected EOF is not treated as a failed
Doneresponse. - Waiting for an expected output file has no deadline or child-exit check; a crashed daemon can leave it polling indefinitely.
- Stdout is redirected but never drained. Normal
Ready/exit control output is small, so this is a latent risk, not proof of a usual buffer-fill deadlock. A generic daemon command can also produce stdout. - Shutdown ignores the result of its five-second wait and does not reliably kill/dispose an unresponsive daemon.
- Outstanding jobs need a completion policy when a worker fails or disposal cancels the queue.
This is a persistent stdin-driven protocol, so replacing it with a one-shot capture call is not appropriate. A multiplexed output pump should preserve stderr Done/Error framing, Unicode input without a BOM, bounded worker concurrency, and reliable completion of every queued job.
5. License input/output pumps and busy polling
- AndroidLicensesStorage.cs:284–380 busy-polls
HasExitedbetween prompts without a delay or pending asynchronous wait. It consumes a worker/core and does not join output callbacks before progress/log sinks are disposed. - SdkManager.Process.cs:35–59 and SdkManager.Licenses.cs:77–94 launch unowned input tasks using synchronous writes. A child that stops reading stdin can block the writer, and task/writer shutdown is not joined.
Fix direction: cancellable asynchronous stdin writes; awaitable queues for prompt-driven answers; owned and observed input/output tasks; and explicit shutdown before disposing writers. Preserve selective license acceptance and final diagnostics.
6. Persistent emulators and CLI process ownership
EmulatorRunner.LaunchEmulator/BootEmulatorAsync creates event-based redirected pipes, then successful boot disposes the still-live process wrapper.
Process.Dispose() does not terminate the OS process, but closing its event readers does close the parent pipe ends. Subsequent emulator writes can therefore fail even though the intended lifetime is persistent. Root-only termination also cannot reliably stop a forked QEMU process after the original launcher has exited.
Related ownership sites: StartAndroidEmulator.cs:104–192, and instrumentation/logcat in Microsoft.Android.Run/Program.cs and its logcat cleanup.
Fix direction: explicitly distinguish persistent detached emulators from owned finite clients. StartDetached with file/null standard handles can remove dependence on parent-owned pipes; diagnostics must remain available, not simply be discarded. CLI instrumentation/logcat tasks need cancellation, bounded draining, and awaited/disposed cleanup. Preserve Ctrl+C/app force-stop semantics.
7. Performance and resource management
| Area | Locations and implications |
|---|---|
| Pre-.NET 11 Windows pipe reads | Event readers, and asynchronous reads over the older redirected pipes, can occupy two pool workers per process. Hotspots include RunParallelCmds, CompileNativeAssembly, MonoAndroidHelper, ProcessUtils, persistent emulator readers, and CLI logcat. A synchronous process wait can consume an additional worker. No repository-specific speedup has been measured yet. |
| Per-line logging/capture overhead | Builder.cs:348–361 opens/appends/closes its log file for each line. MonoAndroidHelper and NativeLinker can retain the same output twice. Slow callbacks also slow pipe draining. |
| Reader ownership | The shared runner accesses StandardOutput/StandardError readers without disposing them explicitly. .NET 10 Process.Close deliberately leaves user-accessed readers to their owner. This can cause handle pressure until collection; a using Process is not an ownership analysis by itself. |
| Process/wait-handle/registration ownership | MonoAndroidHelper, CompileNativeAssembly, CommonUtilities.RunCommand, Bootstrap Adb, GitCommitInfo, StartAndroidEmulator, CLI logcat, and several test helpers retain wrappers/wait handles or discard cancellation registrations instead of disposing them. |
| CancelOutputRead misconception | On the audited runtime implementation, cancellation of line notifications does not itself release the underlying reader pump. Persistent redirected processes can therefore retain readers/workers after callbacks are detached. |
Additional event-based capture sites already start both readers correctly: ProcessUtils.Exec and JDK probes, DexUtils, Which, CodeGenDiff, and CheckApiCompatibility. These are modernization/timeout/callback-serialization candidates, not sequential-read deadlock findings.
Two lower-priority legacy helpers have no in-tree callers: ExecuteToolAsync can leave its returned completion source pending if the result callback throws; ProcessRocks uses delegate BeginInvoke/EndInvoke, unsupported on modern .NET.
8. What .NET 11 changes, and what still requires policy
- Hosting on .NET 11 brings Windows asynchronous-pipe and macOS
posix_spawnimprovements even for existing API calls. An Android application'snet11.0-androidtarget does not guarantee that every host tool is running on .NET 11. - Calling the new APIs directly requires a .NET 11 compilation target. Baseline desktop tooling targets net10.0, build tasks target netstandard2.0, and shared SDK tools default to netstandard2.0.
- A .NET 11-only migration affects dependent libraries, MSBuild hosts, Java.Interop tool targets/output paths, test targets, and packaging. Treat the runtime-floor decision as a separate reviewable concern rather than a prerequisite for every bug fix.
InheritedHandles = []restricts accidental inheritance and can improve parallel Windows launches. It does not prevent a child from passing its standard handles to a grandchild. New capture APIs can still await EOF unless a cancellation/deadline policy is supplied.RunAndCaptureText[Async]fits finite capture;ReadAllLines[Async]fits line streaming;Run[Async]fits execution without capture. None should be substituted blindly for a persistent daemon protocol or ongoing emulator session.KillOnParentExitis useful selectively for owned workers on supported platforms. It is not a blanket policy for shared ADB servers or persistent emulators, and does not supply the same macOS guarantee.
Suggested independently reviewable workstreams
- Capture-order fixes in isolated test/CI helpers: (partial: CI/repository helpers fixed in [build] Bound repository process capture and parser lifetimes #12986 (merged); host test harness incl.
JarContentBuilderduplicatejar,AssertApkIsSigned,AndroidSdkResolver, chmod helpers in [tests] Use .NET 11 Process APIs in host test helpers #12985 (open)) repair wait-before-drain and sequential stdout/stderr reads; remove the duplicatejarinvocation. This is a suitable small first PR and need not force a repository-wide runtime-floor change. - Shared ProcessUtils correctness: ([Microsoft.Android.Build.Tasks, Microsoft.Android.Run] Use Process.RunAndCaptureTextAsync #12988 (open, needs rebase) removes
ProcessUtilsand moves owners to native .NET 11 APIs; public API break fordotnet/maui-labsconsumers) reader cancellation, bounded post-exit draining, callback-failure cleanup, exact-text preservation, explicit stream ownership, and returned-task fault propagation. - Timeout and cleanup consistency: (partial:
GitCommitInfo/version/CI commands in [build] Bound repository process capture and parser lifetimes #12986 (merged); bootstrap ADB,RunParallelCmds, emulator boot-time tooling in [build] Use native Process APIs in bootstrap tasks #13516 (draft);MonoAndroidHelper/NativeAOT linker/strip in [Xamarin.Android.Build.Tasks] Retire finite process facade #13518 (open); test harness in [tests] Use .NET 11 Process APIs in host test helpers #12985 (open); device tests in [tests] Read device process output with Process.ReadAllLinesAsync () #13519 (open)) repair ineffective timeouts and running-processExitCodeaccess; distinguish owned process trees from shared servers; dispose wait handles/registrations. - License pumps: (SdkManager pumps in [Microsoft.Android.Build.Tasks, Microsoft.Android.Run] Use Process.RunAndCaptureTextAsync #12988 (open);
AndroidLicensesStorageand Java extraction in [Microsoft.Android.Build.Tasks] Move InstallAndroidDependencies into MABT #13520 (open)) eliminate busy polling; make stdin writes cancellable; join input/output tasks before disposing sinks. - AAPT2 daemon lifetime: ([Microsoft.Android.Build.Tasks] Move the AAPT2 tasks and use the .NET 11 Process APIs #13515 (open, stacked on [Microsoft.Android.Build.Tasks, Microsoft.Android.Run] Use Process.RunAndCaptureTextAsync #12988)) preserve its protocol and BOM-free Unicode input while making cancellation, EOF, queued-job completion, and shutdown reliable.
- Detached emulator and CLI lifetime: (persistent emulator in [AndroidSdk] Limit inherited handles for persistent emulators #13523 (open);
Microsoft.Android.Runinstrumentation/logcat and live run/test/watch in [tests] Read device process output with Process.ReadAllLinesAsync () #13519 (open)) separate persistent standard handles from parent pipes; preserve diagnostics and Ctrl+C/force-stop behavior. - .NET 11 API/runtime migration and performance follow-up: (partial: repository hosts on stable
net11.0via [build] Move Java.Interop projects into the standard layout #13378 (merged); native API adoption across [tests] Use .NET 11 Process APIs in host test helpers #12985/[build] Bound repository process capture and parser lifetimes #12986/[Microsoft.Android.Build.Tasks, Microsoft.Android.Run] Use Process.RunAndCaptureTextAsync #12988 and follow-ups;ProcessRocksremoved andBuilderper-line log reopen fixed ([build] Bound repository process capture and parser lifetimes #12986, [tests] Use .NET 11 Process APIs in host test helpers #12985); measurements still outstanding) decide host compatibility explicitly, wire target/deployment surfaces, adopt new APIs in appropriate runners, and measure relevant workloads.
The work has been split into reviewable PRs (see Progress below) instead of one large migration.
Progress (updated 2026-11-12)
| Workstream | PR | State |
|---|---|---|
Repository/CI command tools, GitCommitInfo, ApiCompat/GenAPI, ProcessRocks removal |
#12986 | ✅ merged |
Host test harness capture/lifetime (JarContentBuilder, BaseTest, Builder, DotNetCLI, GradleCLI, SDK/JDK discovery) |
#12985 | open, review required |
↳ Live device/CLI processes (Microsoft.Android.Run, run/test/watch) |
#13519 | open, stacked on #12985 |
Bootstrap ADB, RunParallelCmds, emulator boot-time tooling, Helix submission |
#13516 | draft |
Remove ProcessUtils; native APIs in SDK/ADB/FastDeploy/instrumentation (public API break) |
#12988 | open, merge conflicts |
| ↳ AAPT2 daemon lifetime | #13515 | open, stacked on #12988 |
↳ Retire MonoAndroidHelper.RunProcess; finite native commands, NativeAOT linker |
#13518 | open, stacked on #13515; Windows lint-version timeout (XALNT7017) needs a decision |
↳ License/installer pumps, Java extraction, CommonUtilities.RunCommand |
#13520 | open, stacked on #13518 |
| ↳ Persistent emulator lifetimes | #13523 | open, stacked on #13520 |
Next steps
- Rebase [Microsoft.Android.Build.Tasks, Microsoft.Android.Run] Use Process.RunAndCaptureTextAsync #12988 onto
mainand settle theProcessUtilspublic-API removal (migration path or notice fordotnet/maui-labs). The [Microsoft.Android.Build.Tasks] Move the AAPT2 tasks and use the .NET 11 Process APIs #13515 → [Xamarin.Android.Build.Tasks] Retire finite process facade #13518 → [Microsoft.Android.Build.Tasks] Move InstallAndroidDependencies into MABT #13520 → [AndroidSdk] Limit inherited handles for persistent emulators #13523 stack depends on it. - Get [tests] Use .NET 11 Process APIs in host test helpers #12985 reviewed and merged (it fixes the original capture-order deadlocks); then [tests] Read device process output with Process.ReadAllLinesAsync () #13519.
- Decide the Windows
Lint.GetLintVersiondeadline policy that blocks [Xamarin.Android.Build.Tasks] Retire finite process facade #13518 (the observed run took 35.7 s against the new 30 s capture budget). - Move [build] Use native Process APIs in bootstrap tasks #13516 out of draft once its validation is current.
- Run Windows CI for the IOCP/stdin fix in [Microsoft.Android.Build.Tasks] Move InstallAndroidDependencies into MABT #13520 and the Windows job cleanup in [AndroidSdk] Limit inherited handles for persistent emulators #13523; these have not run on a Windows host yet.
- After the stack lands, re-scan the 254-row inventory for zero remaining unsafe patterns, then run the performance measurements in section 7 before closing this issue.
Steps to Reproduce
There is no single application repro for the whole audit. Regression cases should exercise each failure mode independently:
- Have a child write output well beyond pipe capacity to both streams. Waiting first or reading the streams sequentially must not hang. The local prototype uses 256 KiB per stream, with exact-content assertions.
- Have the direct child start a descendant that retains stdout/stderr, then exit. Distinguish direct-child exit from EOF and verify the configured post-exit deadline.
- Cancel while a descendant retains a pipe. Assert prompt task completion and the intended owned-process termination policy.
- Throw from an output consumer or result parser. The returned operation must fault rather than remain pending, and owned children/readers must be cleaned up.
- Time out a still-running command. Verify termination, bounded cleanup, and no premature
ExitCodeaccess. - For AAPT2, simulate missing
Done, unexpected EOF, cancellation while waiting for a response, and missing output files; all queued jobs must receive a terminal result. - Leave license input idle between prompts and verify that no worker busy-spins; cancel blocked input and join all pumps before disposing progress sinks.
- Dispose an emulator launcher handle while the emulator continues producing diagnostics. Its output handles must remain valid; no parent-owned pipe should keep an upstream client alive.
Did you find any workaround?
For existing target frameworks, start both reads concurrently before waiting; establish cancellation and explicit process/stream ownership; use bounded cleanup and post-exit draining. For persistent children, use independent file/null handles or an explicitly owned long-lived pump. Avoid treating Dispose, HasExited, or a timed process wait as proof that all output processing has completed.
On .NET 11, use the new high-level/multiplexed APIs where their semantics match the runner, but retain the lifecycle policies above.
Relevant log output
This is primarily a source audit rather than a customer build-log report. Validation of the uncommitted prototype, not proof that every baseline call site was dynamically reproduced:
- Installed host: .NET SDK
11.0.100-rc.2.26475.136. dotnet test tests/Xamarin.Android.Tools.AndroidSdk-Tests/Xamarin.Android.Tools.AndroidSdk-Tests.csproj --no-restore --filter 'FullyQualifiedName~ProcessUtilsTests|FullyQualifiedName~SdkManagerTests|FullyQualifiedName~EmulatorRunnerTests' --verbosity quiet --nologo— passed: 104 tests.dotnet test tests/Microsoft.Android.Build.BaseTasks-Tests/Microsoft.Android.Build.BaseTasks-Tests.csproj --no-restore --filter 'FullyQualifiedName~AsyncTaskExtensionsTests' --verbosity quiet --nologo— passed: 8 tests.dotnet build build-tools/Xamarin.Android.Tools.BootstrapTasks/Xamarin.Android.Tools.BootstrapTasks.csproj --verbosity quiet --nologo— passed: 0 warnings, 0 errors at that prototype stage.dotnet build src/Microsoft.Android.Run/Microsoft.Android.Run.csproj --verbosity quiet --nologo— passed: 0 warnings, 0 errors.dotnet build build-tools/check-boot-times/check-boot-times.csproj --verbosity quiet --nologo— passed: 0 warnings, 0 errors.- Full product/deployment validation is incomplete. The unprepared worktree required explicit Java paths, and product-task builds exposed target-dependent Java.Interop reference-pack paths during the broader retargeting. After correcting those paths, the latest in-flight product build reached compilation and failed on additional nullable-contract mismatches introduced by the .NET 11 framework upgrade (including IEqualityComparer implementations and LLVM attribute/signature overrides). No further migration fixes are being made while this issue is prioritized. These results are additional evidence for separating runtime/packaging migration from the smaller correctness fixes.
By opening the issue you agree to follow this project's Code of Conduct.
Activity
simonrozsival commentedon Oct 2, 2026
Audience classification and exhaustive process-use inventory
a = repository work/CI; b = developer-host app build, setup, deployment or development execution; c = installed final-app runtime.
This baseline inventory contains 110 repository/CI use cases, 132 developer-host use cases, and 12 cross-cutting helper modes. Each named operation/mode is a separate row; overloaded generic command runners represent arbitrary caller-supplied commands rather than an infinite list of possible arguments. Repeated calls and package/user/ABI variants are called out where they share one launch path.
Coverage includes the direct Process sites from the original audit, their named helper consumers (including partial FastDeploy files), process cleanup/query-only cases, PowerShell/file-redirection cases, and identified inherited MSBuild ToolTask consumers. This is not a claim that every MSBuild Exec or shell subprocess in the repository was audited, nor that every row is defective.
A source-confirmed unsafe pattern is not the same as a reproduced customer hang. ORDER = wait-before-drain or sequential capture; EOF/CANCEL = exit/reader completion or cancellation mismatch; TIMEOUT = ineffective deadline/cleanup or premature ExitCode; INPUT = stdin-pump ownership; LIFETIME = process/handle/sink ownership; PERF = worker/allocation/logging overhead. Framework-managed, no-redirection, already-bounded, query-only and deliberately reproducing cases are retained explicitly.
A b-category operation executed by repo CI is still a shipped developer-tooling path; it is not a second distinct bug. Remote ADB shell commands and instrumentation running on a device are b, because the affected .NET parent/capture runner executes on the host.
a) Working with this repository — maintainers and CI
b) Developer-host app builds and development tooling
Cross-cutting a+b helper modes — listed once
c) Running the final installed application on an end customer's device
src/Mono.Android/src/nativeNon-launch matches and scope exclusions
ProcessStartInfo construction/argument formatting and environment helpers do not themselves launch a child.
ProcessUtilsTestsin the baseline tests argument construction rather than process I/O;AndroidSdkBase.ExecutableFilesenumerates filenames rather than starting commands. TheWaitForExitMSBuild property inBuildOrderTests/application targets selects host development execution, not a separate final-app process API call. These were reviewed as inventory matches, not counted as additional launch use cases.The independent-small-PR candidates are primarily A rows: CI capture, JAR test fixtures, logging I/O, individual helper timeouts. Shared-helper fixes benefit A and B; AAPT2, license pumps, persistent emulators and host-runtime retargeting each need a separately scoped review. Category C currently has no confirmed findings from this audit.
[build] Use native .NET 11 process APIs in repository tools
[build] Apply native process modernization review rules
[tests] Require .NET 11 for Android SDK fixture execution
[tests] Build SDK discovery tools on the .NET 11 CI host
[tests] Remove apkdiff facade and align native harness hosts
[tests] Dispose apkdiff redirected readers after native capture
[tests] Use native .NET 11 process APIs in the host harness
[tests] Require .NET 11 for Android SDK fixture execution
[tests] Build SDK discovery tools on the .NET 11 CI host
[tests] Remove apkdiff facade and align native harness hosts
[tests] Dispose apkdiff redirected readers after native capture
[tooling] Remove process facade and use native .NET 11 APIs
[Xamarin.Android.Build.Tasks] Fix .NET 11 nullable contracts
146 remaining items
[tests] Use .NET 11 Process APIs for live device process output
[Microsoft.Android.Build.Tasks] Move InstallAndroidDependencies into …
[Xamarin.Android.Build.Tasks] Scope the aapt2 daemon to each task
[Xamarin.Android.Build.Tasks] Move the AAPT2 tasks to Microsoft.Andro…
[Microsoft.Android.Build.Tasks] Use the .NET 11 Process APIs for the …
[Microsoft.Android.Build.Tasks] Move InstallAndroidDependencies into …
[build] Use native Process APIs in bootstrap tasks (#13516)
[Microsoft.Android.Build.Tasks, Microsoft.Android.Run] Use Process.Ru…
[tests] Use .NET 11 Process APIs in host test helpers (#12985)
[tests] Use .NET 11 Process APIs for live device process output
[tests] Read device process output with `Process.ReadAllLinesAsync()` (…
[Build.Tasks] Move the AAPT2 tasks and use the .NET 11 Process APIs (#…
[Microsoft.Android.Build.Tasks] Move InstallAndroidDependencies into …