Skip to content
Taku Docs
Getting startedImages and device setup

Version 1.4.0 (current)

Build and update Taku Memory

Build Taku Memory from source and update it together with the assistant and Surfaces, keeping existing data.

The Taku OS image includes Taku Memory as a privileged system app in SYSTEM_EXT/priv-app/TakuMemory/, so it updates with the system. This page is for developers who build and install components from source on their own.

Update three components together

Nightly organizing and the assistant's memory tools are implemented in the task service (Broker) inside the system assistant. Build and install these three components from the same commit:

bash system/memory/build.sh
bash system/assistant/build.sh
bash system/surfaces/build.sh

If only Taku Memory is updated, the old Broker does not recognize the new organizing request: nightly organizing fails and retries after 30 minutes. Capture, search and per-record analysis keep working.

Vector model

system/memory/vector-dependencies.json pins the ONNX Runtime Android AAR and the quantized bge-small-zh-v1.5 model (about 24 MB) by URL and SHA-256. build.sh runs scripts/prepare-memory-vectors.py on its first build to download and verify them; run that script once before a ROM build. Release builds must include the vector model. The resulting APK is about 37 MB.

Data across updates

An in-place update keeps Taku Memory's database: records, edit history, settings and organizing results remain. When the vector model changes, vectors for all records and graph nodes are recomputed automatically.

Uninstalling Taku Memory deletes its private database. Do not uninstall and reinstall in place of an update.

Tests

bash system/memory/build-tests.sh

The tests also build a home feed stand-in, TakuHomeFeedStub.apk, which takes over the home feed's interface. If you install it for testing, uninstall it afterwards so the real home feed works again.

Debug builds (TAKU_DEBUG_HOOKS=1) add test hooks such as simulated time and organizing at a given time, callable only by root. Release builds reject them.

For building the whole image, see Component builds.

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