Skip to content
Taku Docs
Getting startedImages and device setup

Version 1.4.0 (current)

Update and recover a development environment

Record what is installed, update only what changed, then check that recovery works.

This page is for maintaining an existing Taku OS development environment. For a first try, start with Ways to try Taku OS.

There is no general rollback tool, so record the current state before you change anything.

Requires the system source

The git and SDK commands on this page run from the taku-os repository root. Clone taku-os first.

Before you start

  • Know the target device, how the current version was installed, what you are replacing and the recovery instructions for that version.
  • Run the commands from the repository root on your computer, and replace emulator-5582 with your device's serial.
  • An incremental update applies only to the exact build it was made from. Compare build IDs, not only product versions. See Versions and releases.
  • Back up anything you need before you update.

Update and verify

Record the current state

git rev-parse HEAD
adb -s emulator-5582 shell pm path org.agentos.assistant
adb -s emulator-5582 shell dumpsys package org.agentos.assistant
node sdk/cli/taku.mjs call system.info --transport adb --serial emulator-5582

Expected result: the commit of your checkout, the assistant's package path and version, and the system information. org.agentos.assistant is the assistant package. Its path shows whether it runs from the system partition or the data partition.

Pulling new source does not change the phone. Note which APK, JAR or image you are about to replace.

Choose the update scope

What you changedSmallest updateCheck afterwards
Application JSX or a business moduleThe device bundle or that moduleShared UI and API state, failure results
Home or independent-display JavaThe matching APK or JARPackage identity, service process, native operation
init, SELinux or the system partitionA new image and a cold bootMounts, services, permissions, user-data migration

Install with the instructions for that module and your device's version. If there are none for your device, ask whoever maintains your environment. Instructions for another model or an older build do not carry over.

Verify recovery for what you touched

Repeat the read-only checks for the affected feature, then test recovery for that service, component or image. If something fails, keep the first error, the version and the logs before restarting anything. Restarting every service hides what went wrong.

phone-display stop stops the background display host without uninstalling apps or clearing accounts. It can interrupt background UI work in progress. After you start it again, read the display ID again, because it changes. Device-shell steps are in the operations runbook.

After a system update

  • Rebind workspaces. Existing workspace references are kept but need an explicit rebind. Tasks do not restart on their own.
  • An older update hides the built-in app. If the assistant or Surfaces still runs from the data partition, an earlier update is covering the version built into the system. Ask whoever maintains your environment to remove that update. Do not uninstall the app, clear its data or downgrade it.

Signing or data problems

On a signature conflict, compare the signer of the installed package with the replacement first. Do not uninstall an app to get past it, since that deletes its data. Test and production signatures differ.

Do not share userdata or snapshots: they contain sign-in data.

Next: keep the failure state as described in Troubleshooting, and record the result of this recovery.

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