Version 1.4.0 (current)
Generate, preview, and export standalone APKs on the phone · apps.generate
Let Codex write arbitrary app core code and quickly turn it into a new tool
Purpose and status
Let Codex write arbitrary app core code and quickly turn it into a new tool
Inventory status as of 2026-10-10: Verified within the recorded emulator scope (emulator_verified).
Historically, two apps were generated/previewed on the device and a game launched as a standalone APK. In this run, both APK signatures and installed hashes matched.
Before calling
Source descriptions below retain their original language; identifiers and commands are unchanged.
| Field | Source value |
|---|---|
| apiMin | 30 |
| minimumBasis | Key methods used by the example / this project’s target version |
| publicSdkClass | false |
| exampleApiMin | 30 |
| declaredVersionNotes | Export wrapper minSdk30/target35; preview host minSdk26, but the full toolchain has been tested only on API36 ARM64. |
| Device conditions (source record as of 2026-10-10) | Historical source wording, 2026-10-10: Public APIs need matching hardware / OEM support; this project has only AgentOS_ImageCheck ARM64, with no verified physical device |
| Environments recorded as of 2026-10-10 | Android 16 / API 36 / ARM64 / AgentOS_ImageCheck / emulator-5582 |
ROM requirement: Requires appropriate Root or system signing/preinstall; may be deployed via OEM Root; this project has not verified that distribution path
Permissions and authorization
| Permission or qualification | Authorization condition |
|---|---|
| Current root build/install scripts; regular web pages do not gain root themselves; depends on the preinstalled toolchain | The phone has React, esbuild, aapt, a dex wrapper, and signing test tools; App.jsx/api.mjs are free-form code; code generation requires users to sign in to an Agent themselves |
Entry points
| Entry point | Availability |
|---|---|
| generate.sh / build.sh / package-app.sh | Existing experimental entry point |
Call examples
device_shell
Environment: Phone root shell
Prerequisites: The phone has React, esbuild, aapt, a dex wrapper, and signing test tools; App.jsx/api.mjs are free-form code; code generation requires users to sign in to an Agent themselves
cd /data/local/agentos/light-app-lab/free-app-kit
# apps/myapp needs main.jsx/ui.jsx and a real App.jsx; with an API it also needs api.mjs
/system/bin/sh build.sh myapp --no-open
/system/bin/sh package-app.sh myapp org.agentos.myapp MyAppExpected result: The generated app.apk passes signing, pm installs it, and a real Activity launches; preview cannot replace standalone APK verification
Executed in the source record’s run: Not executed in that run; see the validation scope below.
Limitations
- The first host/DEX shell was precompiled on a computer; subsequent core source writing and JSX/APK packaging happen on the phone.
- Owned app source and toolchain/runtime initialization are still required; shell packaging alone does not support arbitrary native SDK features.
- Values such as 760 ms are single packaging measurements, excluding AI generation, installation, and the first frame; they are not performance guarantees.
Validation records
Research
| Field | Source value |
|---|---|
| status | documented |
| scope | Upstream mechanism and research variants; see limitations for unimplemented parts |
Emulator
| Field | Source value |
|---|---|
| status | passed_in_scope |
| target | AgentOS_ImageCheck / API36 / ARM64 |
| scope | Historically, two apps were generated/previewed on the device and a game launched as a standalone APK. In this run, both APK signatures and installed hash values matched. |
| date | 2026-10-10 |
Physical device
| Field | Source value |
|---|---|
| status | not_verified |
| date | — |
| devices | [] |
Not yet verified on a physical device as of 2026-10-10. See current progress for later status.
Look up apps.generate in capabilities.en.json for the complete record. See current progress for later project evidence.
Upstream references
- PackageInstaller SessionParams — audit:
web_content_reviewed
Version and sources
Generated from the Taku OS specification 0.1.0. The inventory records 2026-10-10; see Current progress for later device support. Detailed source prose can remain in its original language.
Research preview · Current availability
Report an issue or give feedback
Delivery to the maintenance queue does not mean it has been handled. Feedback is retained for 90 days.
Built with Fumadocs