From c0556c98305851deb966aa63fcf37a2c49bee311 Mon Sep 17 00:00:00 2001 From: Shawn Date: Thu, 28 Aug 2025 14:03:47 +0800 Subject: [PATCH] feat: linux computer control for android (termux) (#3890) Signed-off-by: Shawn Wang --- BUILDING_LINUX.md | 12 ++++++++++++ .../goose-mcp/src/computercontroller/platform/mod.rs | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/BUILDING_LINUX.md b/BUILDING_LINUX.md index 6c9b6cc78b..837d03a42d 100644 --- a/BUILDING_LINUX.md +++ b/BUILDING_LINUX.md @@ -27,6 +27,18 @@ sudo dnf install dpkg-dev fakeroot gcc gcc-c++ make sudo zypper install dpkg fakeroot gcc gcc-c++ make ``` +**android / termux:** + +goose is not officially support termux build yet, you need some minor patch to fix build issues. +We will publish goose (block-goose) into termux-packages. +If you want to try there is a non-official build, https://github.com/shawn111/goose/releases/download/termux/goose-termux-aarch64.tar.bz2 +For more details, see: https://github.com/block/goose/pull/3890 + +```bash +pkg install rust +pkg install cmake protobuf clang build-essential +``` + ### Development Tools - **Rust**: Install via [rustup](https://rustup.rs/) diff --git a/crates/goose-mcp/src/computercontroller/platform/mod.rs b/crates/goose-mcp/src/computercontroller/platform/mod.rs index 1ddfb0463f..a57b5df542 100644 --- a/crates/goose-mcp/src/computercontroller/platform/mod.rs +++ b/crates/goose-mcp/src/computercontroller/platform/mod.rs @@ -8,7 +8,7 @@ pub use self::windows::WindowsAutomation; #[cfg(target_os = "macos")] pub use self::macos::MacOSAutomation; -#[cfg(target_os = "linux")] +#[cfg(any(target_os = "linux", target_os = "android"))] pub use self::linux::LinuxAutomation; pub trait SystemAutomation: Send + Sync {