In short.
This is E2B's documentation page for starting an Android 16 system in an E2B sandbox and driving it with adb. It is written for developers who test Android apps and for people building AI agents that operate a phone UI. The main catch is that the image is plain x86_64 AOSP with no Google Play Services, no GPU and a documented 720x1280 screen. Apps that depend on Play Services, Play Integrity, arm64-only native libraries or heavy graphics will not behave as they do on a real phone. Technically, the android-16 template boots redroid (AOSP in a Docker container) when the template is built. Each new sandbox therefore starts with Android already running and adb reachable at 127.0.0.1:5555 inside the sandbox. You control it through the E2B SDK's commands.run() and files.write() calls. The page includes JavaScript/TypeScript and Python examples for taking a screenshot, installing an APK, tapping, typing, dumping the UI tree, and pausing and resuming. Nothing was executed for this report. The page does not state pricing, concurrency limits, maximum session length, licensing or a version history, so those remain unknown.
Researched and written by an AI model and checked by a second AI model. How it works
The report covers the complete text of one documentation page, [https://docs.e2b.dev/use-cases/android.md], as captured on 2026-11-15. That includes its quickstart, install-and-drive example, adb command table, pause-and-resume section, sandbox contents and known limitations. Pages it links to were not read: the E2B Sandbox persistence page [https://docs.e2b.dev/sandbox/persistence.md], the documentation index [https://docs.e2b.dev/llms.txt] and the redroid project [https://github.com/remote-android/redroid-doc]. Pricing, authentication, licences, plan limits and persistence details are therefore unknown. No code was executed, no sandbox was created and none of the behaviour described on the page was tested.
The overview
What this resource is
This is a single documentation page titled Run Android on E2B's docs site [https://docs.e2b.dev/use-cases/android.md]. It describes a prebuilt sandbox template named android-16 that runs Android 16 (API level 36) inside an E2B Sandbox. The page says Android is booted when the template is built, so a new sandbox starts with Android already running, the screen on and adb ready.
The Android system is redroid, which the page describes as AOSP in a container. The page links to the redroid project at [https://github.com/remote-android/redroid-doc]. It gives no author, publication date or version number for the template itself.
Overall assessment
Based on the page alone, this is a focused, practical guide. It gives complete, copyable examples in two languages, a reference table of adb commands, a precise description of what is in the sandbox and a candid list of limitations. It suits teams that want a disposable, scriptable Android environment built from a prebuilt template.
The page does not show how well the environment performs. It contains no benchmarks, boot-time figures, reliability data or compatibility results, and nothing was run for this report. Treat it as documentation of intended behaviour, not verified behaviour. Whether it fits depends mostly on whether your app works on plain AOSP: no Play Services, x86_64 native libraries only, and software rendering.
Who it is for
The page names two audiences: an agent or a test that needs a real Android system. In practice that means developers who want to install an APK, tap through its UI, read the screen and then throw the environment away, and people building mobile agents. The page says an agent can send the screenshot and the UI hierarchy to a model, then act on the answer with taps, swipes and key events.
Beginners should know that the examples assume comfort with Node.js or Python, the E2B SDK and basic adb commands. Experienced Android developers will recognise the commands (am start, input tap, uiautomator dump, logcat). It is a poor fit for anyone who needs Google Play Services, the Play Store, Play Integrity checks, 32-bit or arm64-only apps, or GPU-heavy games.
What it can do
According to the page, you can create a sandbox from the android-16 template, connect adb and read system properties, for example the Android version through getprop ro.build.version.release. You can also launch system activities such as Settings and capture a screenshot with screencap, which the example saves locally.
You can upload an APK with the sandbox filesystem API and install it with adb install. The -g flag grants runtime permissions at install, so no permission dialog covers the app on first launch. You can resolve and start a launcher activity, then tap, swipe, type text, press keys, dump the UI hierarchy to XML and read the device log with logcat -d. The page's table gives the exact command for each of these actions.
You can pause a sandbox and resume it later with connect(). By default, pausing saves memory as well as the filesystem, so Android stays booted, installed apps stay installed and the foreground app stays open. Details of pausing are on a separate persistence page that was not part of this review.
Using it
Requirements
The examples need the E2B SDK: the e2b package for JavaScript/TypeScript (import { Sandbox } from 'e2b') and the e2b package for Python (from e2b import Sandbox). The page does not cover installing the SDK, creating an E2B account, getting an API key or authenticating, so those requirements are not established here.
The install example needs a local APK file, and any native libraries in it must include x86_64 builds. The TypeScript examples use Node's fs module, and the Python quickstart uses base64 from the standard library. The page does not state minimum SDK versions or supported Node.js or Python versions.
How it works
The android-16 template boots redroid at build time. Inside the sandbox, Android runs in a Docker container named android, and adb is connected to it at 127.0.0.1:5555. Because adb runs inside the sandbox, every Android command goes through sandbox.commands.run(), which runs a shell command in the sandbox and returns its output. Files are uploaded with sandbox.files.write().
To take a screenshot, the examples run adb exec-out screencap -p piped through base64 -w0 inside the sandbox, then decode the base64 on the client and write a PNG. To inspect the UI, they run uiautomator dump to /sdcard/ui.xml and read the file with adb shell cat.
The page specifies the sandbox as follows: an Android 16 (API 36) x86_64 AOSP image; a 720x1280 display at 320 dpi, rendered in software with SwiftShader and no GPU; and 8 vCPUs and 4 GB of RAM, set by the template. The start script's log is at /var/log/android-start.log, and Android's own log is available through logcat.
Setup
Android itself needs no installation step because the template ships with it already booted. The page's flow is: create a sandbox with Sandbox.create('android-16', ...) and a timeout, run adb connect 127.0.0.1:5555 inside it, then issue adb -s 127.0.0.1:5555 commands. The examples wrap the work in try/finally so that sandbox.kill() always runs.
The JavaScript examples set timeoutMs to 5 and 10 minutes, and the Python examples set timeout to 300 and 600 seconds. The page does not say what the default or maximum timeout is. To install an app, you upload the APK to a path such as /tmp/app.apk, run adb install -g, and replace the placeholder package name com.example.app with your own.
This page does not cover creating an account, configuring an API key or installing the SDK.
Worked example from the page
The first example, the quickstart, creates a sandbox, connects adb and prints the Android version. It then opens Settings with am start -a android.settings.SETTINGS, waits 2 seconds, captures a screenshot, saves it as screenshot.png on the client and kills the sandbox. It is given in TypeScript and in Python.
The second example installs an app. It writes app.apk to /tmp/app.apk in the sandbox and installs it with adb install -g. It finds the package's launcher activity with cmd package resolve-activity --brief and starts it with am start -W -n. It then taps at (360, 640), types the text hello, dumps the UI tree and prints the XML.
A third snippet pauses the sandbox and later resumes it with Sandbox.connect(sandbox.sandboxId) (sandbox.sandbox_id in Python). It then checks sys.boot_completed, which the page annotates as returning 1. None of these examples were run for this report, so their actual output is unverified here.
Assessment & evidence
Limitations
The page lists these known limitations. First, there is no Google Play Services or Play Store: the image is plain AOSP, so apps that depend on Play Services or require the device to pass Play Integrity checks do not work. Second, it is x86_64 only: an app that ships only arm64 native libraries installs but fails when it loads them. Third, it is 64-bit only, with no 32-bit ABIs. Fourth, rendering is in software, so graphics-heavy apps and games run slower than on a phone with a GPU. Fifth, the template must be used as is: Android does not start in a custom template built on android-16, so that build fails, and you should install apps at runtime with adb install instead.
The specification adds further constraints: a documented 720x1280 display at 320 dpi and 4 GB of RAM. The page does not discuss hardware features such as camera, sensors, telephony, Bluetooth or GPS, nor networking behaviour, concurrency limits or maximum session length, so those are not assessed. The examples return screenshots (as base64 text) and UI dumps through command output, but the page says nothing about the speed or output size of this approach, so those properties are unknown from the page.
Reasoning behind the assessment
The assessment rests entirely on what the page claims, and the page is specific. It names the Android version and API level, the container name, the adb address, the display, the CPU and RAM, the log locations and the failure mode for custom templates. That level of detail, together with a complete example in each language, suggests a real, usable feature rather than a marketing summary.
Nothing on the page was corroborated by running it, by independent reviews or by reading the linked redroid or persistence pages. Claims such as Android being already booted, the paused state keeping the foreground app open, or the commands working as shown are therefore reported as documented, not verified.
Alternatives
The page does not compare itself with other options. A reader might consider running redroid in a container themselves (the page links the project), using the Android Studio emulator locally or in CI, or using physical devices or hosted device clouds. None of these were assessed here. How they compare with this template on Play Services support, architectures, graphics acceleration or operational effort is unknown from the captured evidence. On this template's side, the page provides a prebuilt Android template that is already booted when a sandbox starts and can be killed afterwards. The trade-off is a plain AOSP image, software rendering and an x86_64-only, 64-bit-only ABI. If your tests need Play Services, Play Integrity or arm64-only libraries, the limitations on this page point you away from this template.
Evidence base
One captured document supports this report: the Run Android documentation page at [https://docs.e2b.dev/use-cases/android.md], 7,644 bytes, captured on 2026-11-15. Every statement in this report about the template, the examples, the sandbox contents and the limitations comes from it. Statements about missing information, such as costs, licences, authentication and timeout limits, are this report's observations about what the page does not say. The alternatives named in this report are general suggestions, and the captured evidence does not establish their capabilities. No test, run or benchmark result exists for this report.
Access & freshness
Costs
The page states no prices, quotas, free-tier terms or billing details, so cost is unknown from this evidence. The page specifies 8 vCPUs and 4 GB of RAM per sandbox, but it does not say whether or how that affects cost. The examples set timeouts of five and ten minutes and call kill() when they finish. This page does not establish how sandboxes are billed, what lifecycle guarantees apply, or whether paused sandboxes incur charges or how long they are kept. You would need to check those details in E2B's pricing and persistence documentation, which were not reviewed.
Rights and licensing
The captured page states no licence and no reuse or redistribution permissions for the documentation, the example code, the android-16 template or the components it includes, such as redroid and the AOSP image. All of these are unknown from this evidence. The page links to the redroid project but does not state its licence. Before relying on any of this for commercial or redistributed use, check the applicable terms, including E2B's terms and the licence in the redroid repository.
Freshness
The page was captured on 2026-11-15. It shows no publication or last-updated date, template version or changelog, so how recently it changed is unknown. It documents Android 16 (API level 36) and uses the SDK calls Sandbox.create, commands.run, files.write, pause, connect and kill. The E2B SDK and template can change, so check the live page and the SDK reference before relying on exact signatures. For example, the timeout parameter differs between the JavaScript examples (timeoutMs) and the Python examples (timeout, in seconds).
Suggested next steps
First, check that your app fits the limitations: it must not need Play Services or Play Integrity, and any native libraries must have x86_64 builds. Second, confirm account, API key, pricing, timeout and concurrency details in E2B's other documentation, since this page does not cover them. Third, if you try it, start with the quickstart to confirm the Android version and get a screenshot. Then install your APK with adb install -g, and call kill() in a finally block, as the page's examples do. Fourth, if you build an agent, send the screenshot and the uiautomator XML to your model and map its answers onto tap, swipe, text and keyevent commands. When something fails, check logcat and /var/log/android-start.log. Finally, before commercial use or redistribution, check the applicable terms, including E2B's terms, the redroid project's licence and your own app's terms, because the page states no licence.
