tsw

Crates.iotsw
lib.rstsw
version0.3.2-rc.3
created_at2025-10-29 01:03:07.126264+00
updated_at2026-01-21 20:54:36.560654+00
descriptionSU wrapper for termux
homepage
repositoryhttps://github.com/nteditor/tsw
max_upload_size
id1905869
size82,936
(NTeditor)

documentation

README

Termux SU Wrapper

License: GPL-3.0-only

Installing

apt install rust
cargo install tsw
# And add '~/.cargo/bin' in $PATH

Supported

  • Magisk
  • KernelSU Next

Unsupported

  • APatch - Not tested.
  • SukiSU Ultra - Not tested.
  • KernelSU - Out of scope.
  • SuperSU - Out of scope.

Example

# Run interactive shell
tsw

# Run command in interactive shell
tsw nvim /data/adb/service.d/service.sh

# Run with fish
tsw --shell fish

# Run with master namespace
tsw --mount-master

Config

Config location on /data/data/com.termux/files/usr/etc/tsw.toml.

# Path to SU file (only absolute)
su_file = "/system/bin/su"
# Path to home directory for root session (only absolute)
home_dir = "/data/data/com.termux/files/root"
# $PATH variable for root session
path_env = "/data/data/com.termux/files/usr/bin:/system/bin:/debug_ramdisk:/sbin:/sbin/su:/su/bin:/su/xbin:/system/bin:/system/xbin"
# Use master namespace
mount_master = false

License

The project is licensed under the GPL 3.0 License.

Commit count: 43

cargo fmt