You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add SDK license acceptance support (move from android-platform-support) #12067
android-toolsIssues migrated from dotnet/android-tools / relates to the xamarin-android-tools subtreeenhancementProposed change to current functionality.
I've implemented partial support for this issue as part of MAUI DevTools work:
✅ Implemented: Basic license acceptance
csharp // In SdkManagerRunner class public async Task<ToolRunnerResult> AcceptLicensesAsync(CancellationToken cancellationToken = default) { // Runs: sdkmanager --licenses // Sends ""y"" to stdin to accept all licenses }
This handles the common ""accept all licenses"" use case for CI/CD.
❌ NOT Implemented
The full API surface from this issue is not yet implemented:
LicenseManager.IsAccepted(sdkPath, licenseId) — check specific license status
LicenseManager.GetPendingAsync(sdkPath) — list licenses needing acceptance
What's needed to complete this issue
Parse <SDK>/licenses/ directory to check accepted license hashes
Compare against known license IDs to determine pending status
Potentially parse sdkmanager --licenses output to get license text/IDs
Code location
Current implementation in SdkManagerRunner.AcceptLicensesAsync():
android-toolsIssues migrated from dotnet/android-tools / relates to the xamarin-android-tools subtreeenhancementProposed change to current functionality.
Activity
rmarinho commentedon Feb 23, 2026
Implementation Progress
I've implemented partial support for this issue as part of MAUI DevTools work:
✅ Implemented: Basic license acceptance
csharp // In SdkManagerRunner class public async Task<ToolRunnerResult> AcceptLicensesAsync(CancellationToken cancellationToken = default) { // Runs: sdkmanager --licenses // Sends ""y"" to stdin to accept all licenses }This handles the common ""accept all licenses"" use case for CI/CD.
❌ NOT Implemented
The full API surface from this issue is not yet implemented:
LicenseManager.IsAccepted(sdkPath, licenseId)— check specific license statusLicenseManager.GetPendingAsync(sdkPath)— list licenses needing acceptanceWhat's needed to complete this issue
<SDK>/licenses/directory to check accepted license hashessdkmanager --licensesoutput to get license text/IDsCode location
Current implementation in
SdkManagerRunner.AcceptLicensesAsync():src/Xamarin.Android.Tools.AndroidSdk/Runners/SdkManagerRunner.cs