Repository navigation
Open
Labels
android-toolsIssues migrated from dotnet/android-tools / relates to the xamarin-android-tools subtreeenhancementProposed change to current functionality.
Milestone
Description
Summary
Add manifest feed parsing to Xamarin.Android.Tools.AndroidSdk so that consumers can resolve SDK/JDK download URLs and checksums from the Xamarin Android Manifest Feed and Google's repository without hardcoding URLs.
Background
The android-platform-support (internal) repository has XamarinRepository and GoogleV2Repository classes that parse:
- Xamarin Android Manifest Feed (
https://aka.ms/AndroidManifestFeed/d{version}) — JDK archives, platform-tools, command-line tools, emulator with per-platform/architecture URLs and SHA-1 checksums - Google SDK Repository (
https://dl.google.com/android/repository/repository2-3.xml) — SDK platforms, build-tools, system images, add-ons with SHA-1 checksums
It also includes LocalManifestProvider for offline/CI manifest caching.
This is a prerequisite for the JDK installation (#270) and SDK bootstrap (#271) features — both need manifest feed parsing to resolve download URLs and verify checksums.
Proposed API Surface
ManifestFeed.LoadAsync(feedUrl)— download and parse a manifest feedManifestFeed.ResolvePackage(packageId, os, arch)— get download URL + SHA-1 for a specific packageManifestFeed.GetJdkVersions()— list available JDK versions with download infoManifestFeed.Cache(localPath)— cache manifest for offline use
Key Requirements
- No hardcoded download URLs — all URLs come from manifest feeds
- SHA-1 checksum verification — every download must be verified against manifest checksums
- Manifest caching — support offline/CI scenarios with cached manifests
- Cross-platform — resolve correct URLs for Windows/macOS/Linux and x64/aarch64
Consumer
- MAUI DevTools CLI — see MAUI DevTools Spec PR
- JDK installation (Bump Mono to fix https://bugzilla.xamarin.com/show_bug.cgi?id=44296 #270) and SDK bootstrap ([Mono.Android] Include the Android.Service.Quicksettings.TileState type #271) depend on this
Related
- MAUI DevTools spec §6.8.1: Manifest-Driven Downloads & Checksum Verification
- Add JDK installation support (move from android-platform-support) android-tools#270 (JDK installation)
- Add SDK bootstrap and sdkmanager wrapper (move from android-platform-support) android-tools#271 (SDK bootstrap)
Reacted by Copilot
Metadata
Metadata
Labels
android-toolsIssues migrated from dotnet/android-tools / relates to the xamarin-android-tools subtreeenhancementProposed change to current functionality.
Activity
rmarinho commentedon Feb 23, 2026
Priority Note
This issue is a critical prerequisite for:
Current state in MAUI DevTools work
I've implemented sdkmanager/avdmanager/adb/emulator wrappers (see #12069, #12071, #12070), but they all assume the tools already exist. Without manifest feed parsing, we cannot:
Reference implementation
The
android-platform-supportrepo has working manifest parsing:XamarinRepository— parses Xamarin Android Manifest FeedGoogleV2Repository— parses Google SDK repository XMLLocalManifestProvider— caching for offline/CISuggested implementation order
Would be happy to help implement this if there's alignment on the approach.
rmarinho commentedon Feb 23, 2026
Implementation Update
I've implemented the manifest feed parsing as part of the MAUI DevTools consolidation work. Here's what's been added:
New Classes in
Xamarin.Android.Tools.AndroidSdkManifestFeed/
AndroidManifestFeedParser- Downloads and parses Xamarin manifest feed XMLManifestDownloader- Downloads archives with SHA-1 verificationSdkBootstrapper- Bootstrap SDK by downloading cmdline-tools from manifestJdkInstaller- Install JDK from manifest with version selectionModels:
ManifestArchive- Archive with URL, SHA-1, OS/arch targetingManifestPackage- SDK packages (cmdline-tools, platform-tools, etc.)JdkManifestPackage- JDK packages with vendor infoAndroidManifest- Parsed manifest resultAPI Surface
Features Implemented
✅ Download and parse Xamarin manifest feed (
https://aka.ms/AndroidManifestFeed/d{version})✅ Manifest caching for offline/CI scenarios
✅ Per-platform/architecture archive resolution
✅ SHA-1 checksum verification before extraction
✅ JDK version discovery and installation
✅ SDK bootstrap (cmdline-tools download)
Not Yet Implemented
❌ Google SDK repository parsing (
repository2-3.xml) - lower priority since Xamarin manifest has what we need❌ License text retrieval API
This implementation is in a local branch. Would be happy to create a PR if the approach looks good.