Skip to content
Taku Docs

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.

FieldSource value
apiMin30
minimumBasisKey methods used by the example / this project’s target version
publicSdkClassfalse
exampleApiMin30
declaredVersionNotesExport 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-10Android 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 qualificationAuthorization condition
Current root build/install scripts; regular web pages do not gain root themselves; depends on the preinstalled toolchainThe 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 pointAvailability
generate.sh / build.sh / package-app.shExisting 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 MyApp

Expected 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

FieldSource value
statusdocumented
scopeUpstream mechanism and research variants; see limitations for unimplemented parts

Emulator

FieldSource value
statuspassed_in_scope
targetAgentOS_ImageCheck / API36 / ARM64
scopeHistorically, 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.
date2026-10-10

Physical device

FieldSource value
statusnot_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

Chinese version.

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

Documentation retrieval

Search the published documentation for excerpts and citations. This uses full-text retrieval, not LLM-generated answers.

Every result links to the original article. Read research ideas separately from verified capabilities.

Help and troubleshooting →
Was this article helpful?
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

On this page