πŸ€–
Android CI Box v1.8.0
Production-Ready Β· AGP 9.x Β· SDK 35/36/37 Β· JDK 17/21

The Ultimate Android CI/CD Build Box.

A battle-tested, high-performance, and rootless Docker container engineered for lightning-fast Android pipelines. Features native multi-arch execution, zero-config dynamic project detection, and native AI Agent support.

$ docker run --rm -v "$(pwd):/project" hateum/android-ci-box:latest ./gradlew check
4,550+ Docker Pulls βœ“ Native amd64 & arm64 βœ“ :latest & :slim Variants βœ“ 0 Unfixed Critical CVEs βœ“ Sigstore Cosign & SPDX SBOM βœ“ Universal Rootless 777 βœ“ Fastlane 2.241.2
android-ci-box:latest
1080p
Silicon Architecture: Native Multi-Arch
Security Gate: Trivy & Scout Passed

Engineered For Zero Friction

Why Top Teams Choose hateum/android-ci-box

Say goodbye to flaky pipeline scripts, slow QEMU arm64 emulation, and broken permissions.

⚑

Native Multi-Arch Silicon

Native compilation on both amd64 and arm64. Build with 100% native silicon speed on Apple Silicon runners, AWS Graviton, and standard Linux servers without slow QEMU translation.

🎯

Zero-Config Dynamic Detection

Ultra-fast static scanner (<50ms) parses build.gradle(.kts) and version catalogs to automatically align target SDKs and Java toolchains without manual pipeline parameters.

β˜•

Dual-JDK (Java 21 + 17)

Comes with OpenJDK 21 (default) and OpenJDK 17 preinstalled. Instant dynamic toggle via switch-jdk [17|21] in <20ms without restarting the container.

πŸ›‘οΈ

Rootless & Supply Chain Security

Hardened with universal 777 read/write permissions for arbitrary UIDs. Cryptographically signed with Sigstore / Cosign and attested with SPDX SBOM for zero supply-chain risk.

🌐

Dual-Mode Enterprise Network

Works out-of-the-box on the public web. When behind corporate firewalls, automatically imports custom CA certificates into Java truststores and configures HTTP/S proxies & Nexus mirrors.

πŸš€

Fastlane & Mobile Tooling

Precompiled Ruby 4.0.9 + Fastlane 2.241.2 ready out-of-the-box in /opt/rbenv. Includes Bundletool 1.18.3, Android CLI, and Gradle Managed Devices with SwiftShader headless GPU.

Architecture & Internals

Built on a Solid 6-Tier Architecture

Explore the internal layer topology, automated proxy and mirror resolution, and multi-architecture execution paths.

graph TD classDef os fill:#1e293b,stroke:#475569,stroke-width:2px,color:#fff; classDef runtime fill:#0f172a,stroke:#0284c7,stroke-width:2px,color:#fff; classDef sdk fill:#14532d,stroke:#22c55e,stroke-width:2px,color:#fff; classDef sec fill:#450a0a,stroke:#ef4444,stroke-width:2px,color:#fff; classDef net fill:#3b0764,stroke:#a855f7,stroke-width:2px,color:#fff; classDef agent fill:#713f12,stroke:#eab308,stroke-width:2px,color:#fff; T1["Tier 1: Base Operating System
Ubuntu 26.04 LTS (Resolute) Β· Multi-Arch amd64/arm64"]:::os T1 --> T2_Java["Tier 2: Java Runtimes
OpenJDK 21 & 17 Β· switch-jdk"]:::runtime T1 --> T2_Ruby["Tier 2: Ruby & Fastlane
Ruby 4.0.9 (rbenv) Β· Fastlane 2.241.2"]:::runtime T1 --> T2_Sys["Tier 2: System Utilities
Python 3.12 Β· GitHub CLI Β· curl Β· git-lfs"]:::runtime T2_Java --> T3["Tier 3: Android Build Engine
Gradle 9.8.2 Β· Android SDK 35/36/37 Β· Google Android CLI Β· Bundletool"]:::sdk T2_Ruby --> T3 T2_Sys --> T3 T3 --> T4["Tier 4: Zero-Config Auto-Detection
detect-android-project <50ms Β· Auto SDK & JDK align"]:::net T4 --> T5["Tier 5: Dual-Mode Network & Security
Universal 777 Β· Auto-CA Import Β· Proxy & Nexus derivation Β· 0 Critical CVEs"]:::sec T5 --> T6["Tier 6: AI Agent Playbook & Helpers
.agents/skills Β· ci-doctor Β· GMD Headless SwiftShader"]:::agent

Copy-Paste & Ship

Ready-to-Use CI/CD Configurations

Drop-in pipeline files for your favorite CI platform with built-in caching and best practices. Full turnkey templates & GitLab Component available in ci-templates/.

.github/workflows/android.yml
name: Android CI

on: [push, pull_request]

jobs:
  build:
    name: Build & Test Android App
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4

      - name: Run Android CI Box Composite Action
        uses: hatem-noureddine/android-ci@v1
        with:
          version: 'latest' # or specific SemVer like '1.6.4' or '1.6.4-slim'
          run: |
            ci-doctor --summary
            ./gradlew test lintRelease assembleDebug --no-daemon

Agent-Ready Infrastructure

Built for Autonomous AI Coding Agents

Antigravity, Claude Code, GitHub Copilot Workspace, Roo Code and Cursor can inspect, build, lint, and fix Android projects in a closed-loop.

Autonomous Closed-Loop Execution

flowchart LR A["1. Inspect & Diagnose
ci-doctor --json
detect-android-project"] --> B["2. Autonomous Align
switch-jdk [17|21]
install-sdk-version <api>"] B --> C["3. Build & Test
./gradlew test lintRelease"] C --> D{Build Succeeded?} D -->|Yes| E["4. Package & Publish
bundletool / Fastlane"] D -->|No / Error Dump| F["5. Analyze & Fix
Parse error, fix source code
or adjust AGP / dependencies"] F --> C
CLI Utility Location Agent Purpose Latency
ci-doctor /usr/local/bin/ci-doctor Complete probe (Java, SDK, KVM/GMD, Proxies, Mirrors). Emits human-readable or --json. <150ms
detect-android-project /usr/local/bin/detect-android-project Scans build.gradle(.kts) & version catalogs to identify highest compileSdk & Java version. <50ms
switch-jdk /usr/local/bin/switch-jdk [17|21] Instant dynamic JAVA_HOME and binary symlink toggle without restarting container. <20ms
install-sdk-version /usr/local/bin/install-sdk-version <api> Installs older/preview SDK platforms using official Google Android CLI with sdkmanager fallback. On-demand
install-ndk-version /usr/local/bin/install-ndk-version <ndk> Installs Android NDK & CMake dynamically with universal rootless permissions. On-demand

1-Second Environment Triage

Built-in Diagnostic Suite: ci-doctor

Never waste developer or agent time wondering why a pipeline failed. ci-doctor validates your JDK, Android SDK packages, KVM hardware acceleration, proxies, and enterprise mirror connectivity in milliseconds.

  • βœ“ Emits human-readable colored report or machine-readable JSON
  • βœ“ Checks OpenJDK 17 and OpenJDK 21 binary readiness
  • βœ“ Detects KVM acceleration for Gradle Managed Devices (GMD)
  • βœ“ Verifies CA certificates in Java truststore
runner@android-ci-box: /project bash

runner@android-ci-box:~$ ci-doctor

=== hateum/android-ci-box Health Diagnostics (v1.8.0) ===

[OK] Operating System: Ubuntu 26.04 LTS (Resolute) - Arch: aarch64 (Native arm64)

[OK] Current User: runner (UID: 1000, GID: 0, Rootless: OK)

[OK] Default Java: OpenJDK 21.0.13 (/opt/jdk-21)

[OK] Secondary Java: OpenJDK 17.0.21 (/opt/jdk-17 ready for switch-jdk)

[OK] Standalone Gradle: 9.8.2 (/opt/gradle/gradle-9.8.2/bin/gradle)

[OK] Android SDK: API 35, 36, 37.0 pre-installed in /opt/android-sdk

[OK] Build-Tools: 35.0.0, 36.0.0, 37.0.0 available

[OK] Fastlane: 2.241.2 (Precompiled Ruby 4.0.9 in /opt/rbenv)

[OK] Security: 0 Unfixed Critical CVEs (Trivy & Scout Passed)

[OK] Supply Chain: Sigstore Cosign Signed & SPDX SBOM Attested

[OK] Network Mode: Public Internet (Direct unthrottled access)

✨ ALL SYSTEMS HEALTHY (0 Warnings, 0 Errors)

⚑ Turnkey Mobile DevOps

Turnkey Android CI/CD in 1 Single Line (ci-lane)

Zero Fastfile to maintain. Zero Ruby setup. The container embeds an autonomous Fastfile router that handles your complete build, badge, signing, and store deployment out of the box.

πŸ§ͺ

Quality & Static Analysis

Automated JUnit unit tests, Android Lint, Detekt Kotlin code smells analysis, SonarQube/Cloud, and Paparazzi/Roborazzi screenshot tests.

ci-lane test
ci-lane lint
ci-lane detekt
🏷️

Branding & Dynamic Badging

Overlay customized ribbons ("BETA", "QA", "STAGING", commit SHA) and shields on launcher icons so testers instantly recognize pre-release builds.

BADGE_TEXT="QA" ci-lane badge
ci-lane build_debug
ci-lane bundle
πŸš€

Stores & ChatOps Alerting

Base64 Keystore auto-decoding and signing. Push artifacts directly to Firebase App Distribution, Google Play Console, and send Slack/Teams/Discord alerts.

ci-lane sign
ci-lane distribute_firebase
ci-lane distribute_playstore

Want to run the complete production pipeline in a single command?

ci-lane all

Sequentially runs lint βž” detekt βž” unit tests βž” release assemble βž” release bundle (.aab).

πŸ’Ό Senior Android Engineer & Mobile Release Specialist

Tailored Android CI/CD & Mobile Release Services

Built by an Android developer for Android developers. Stop fighting generic DevOps pipelines that don't understand AGP, Gradle daemons, or Keystores. Get battle-tested mobile automation tailored to your app.

πŸš€

Turnkey Android CI/CD Pipeline Setup

Complete implementation or modernization of your mobile pipelines on GitHub Actions, GitLab CI, or Bitrise. Rootless execution, multi-stage builds, and zero infrastructure overhead for your mobile team.

  • βœ“ Automated unit tests, linting and APK/AAB builds
  • βœ“ Universal caching strategy (Gradle build cache & wrapper)
  • βœ“ Turnkey ci-lane integration for 1-line maintenance
⚑

Gradle Build Speedup & OOMKill Audit

In-depth audit of slow Android builds. We eliminate silent Exit Code 137 OOMKills with cgroups auto-tuning and accelerate cold and incremental build cycles by 3x to 5x.

  • βœ“ Cgroups v1/v2 JVM memory auto-tuning
  • βœ“ Configuration Cache and Build Cache profiling
  • βœ“ Measurable before/after performance KPI report
πŸ“¦

Store Release Automation & Fastlane

Eliminate stressful manual Friday releases. Complete automation of Keystore signing, QA/Beta icon badging, Firebase App Distribution, and Google Play Console phased rollout tracks.

  • βœ“ Secure Base64 Keystore decoding without secret leaks
  • βœ“ Automated launcher icon badging for QA builds
  • βœ“ Slack / Teams / Discord ChatOps release alerts
πŸ”„

AGP 9 & Modern Android Stack Migration

Direct engineering guidance to migrate legacy build configurations to modern Google standards: AGP 9.x, Gradle 9, Kotlin DSL (.kts), Version Catalogs (`libs.versions.toml`), and Compose compiler.

  • βœ“ Groovy to Kotlin DSL script modernization
  • βœ“ Centralized Version Catalog refactoring
  • βœ“ Deprecated API remediation and AAPT2 compatibility

Request an Android CI/CD Audit or Consultation

Tell me about your mobile team's current setup. I'll get back to you with actionable insights and availability.

πŸ”’ Secure submission via Formspree. Direct confidential response within 24h.

Support Open-Source Android Tooling

Back this project on GitHub Sponsors to help maintain multi-arch CI parity.

Sponsor on GitHub