Google's Android ABFS team has open-sourced Another Build File Service (ABFS). It is a full stack for giant Git projects: a Linux kernel filesystem module, user-space tools, and server systems that lazy-load and cache source code and build results.
For Android, Google says ABFS cuts source checkout from about 36 minutes to under 8 seconds, and full builds from about 80 minutes to just over 2 minutes.
Why Android checkouts are so slow
The Android Open Source Project (AOSP) is huge. Google says the Android 17 open-source release has:
- 1,084 Git repositories
- About 1.62 million files
- About 161 GB of code and 155 GB of build output (about 300 GB for a built workspace)
A typical tree that also includes hardware vendor code and first-party apps can be two to three times larger. Fetching AOSP used to take more than 30 minutes, and a full build could take well over an hour, even on a strong workstation.
That delay hurts people and AI coding agents. Both need fast setup, several workspaces at once, and quick build-and-test loops.
What is ABFS?
ABFS replaces a full local copy of every file with a virtual, content-addressable filesystem. That means each file is known by a hash of its contents. The system downloads a file only when something actually reads it, and it reuses shared caches so the same work is not done twice.
On the server, Git changes are ingested into an ABFS content-addressable storage (CAS) service. On the developer machine, tools such as Cacheman, a mount daemon, and Tap connect build tools to a Linux kernel module called CASFS.
CASFS: metadata first, bytes later
CASFS is a virtual filesystem. When a file's hash is set, it can show the name and size at once, but it downloads the file bytes only on first read. Early checkouts mainly pull light directory metadata with Git hashes already filled in. Standard git and repo commands still work.
Two-phase build caching
Android's build uses Blueprint files, Soong, and then Ninja. Normal Ninja rebuilds when timestamps look newer. That is a poor fit for shared caches across machines.
Google's Ninja-go uses a two-step content check instead:
- Declared key lookup: hash the command, environment, and declared inputs, then look for a matching cached result.
- Read-patch check: confirm the candidate matches every file the step actually read. If a hidden dependency differs, ABFS rejects the stale result and runs the step again while recording what was read and written.
That design aims to keep results correct even when a build rule forgets to declare some inputs. Google notes that other build systems can use the same caching APIs, and there is already a proof-of-concept for Bazel.
Reported results
Google measured mean times over three Android runs on a cloud VM with 64 vCPUs and 256 GB of RAM, with the ABFS server on the same cloud network. The older checkout flow used documented repo init --partial-clone and repo sync -j8 settings.
- Source checkout: about 36 minutes → under 8 seconds
- Full build: about 80 minutes → just over 2 minutes
- Shared cache: can reuse up to 100% of build actions across CI and developer workspaces
Google also says an agent can check out a full Android tree in under 10 seconds and finish a full build in under 10 minutes. Several release branches can be mounted side by side in under 8 seconds each.
A note from the team: AOSP releases before Android 17 need some patching to work with ABFS.
Beyond Android
ABFS already backs parallel workflows for Android developers and agents, but Google says it is built for other massive Git projects too. Chromium, the Android Common Kernel, and other Google projects are exploring it. The open-source pieces live on GitHub as ABFS, CASFS, and Ninja-go.
What It Means for Developers
ABFS is mainly for teams with very large Git trees. Small app repos will not see the same gains, but the ideas matter for Android and for agent-driven workflows.
What It Means for Software Developers
- Faster checkouts mean less waiting before you can search, edit, or run a first build.
- Several branches or release trees can sit on one machine, which helps backporting and comparison work.
- AI coding agents become more practical on Android-sized trees when setup takes seconds instead of half an hour.
- For another take on agent sandboxes and short-lived environments, see our story on DigitalOcean MicroVMs for AI agents.
What It Means for DevOps Engineers
- Shared content-addressable caches can cut repeated CI work when local and remote builds share the same inputs.
- Two-phase verification is meant to catch stale cache hits when a rule has undeclared inputs.
- Running ABFS needs a Linux kernel module and server-side storage, so treat it as infrastructure, not a drop-in script.
- Local agent testing stacks are evolving too; our story on LocalStack's agentic AI testing support covers another local-dev angle.
Bottom line
Google's ABFS open-source stack attacks the cost of giant Git trees by streaming files on demand and caching build results by content. On Android, Google reports checkouts in under 8 seconds and full builds in a little over 2 minutes.
Those numbers come from Google's own tests on a strong cloud VM. Results will vary by network, cache warmth, and project size, but for AOSP-scale work the direction is clear: less waiting, more parallel workspaces.

