- Rust 75.2%
- Slint 18.4%
- Python 4.6%
- Shell 1.8%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| crates | ||
| scripts | ||
| .gitignore | ||
| architecture.md | ||
| Bliss_visual_system.pdf | ||
| build.sh | ||
| Cargo.lock | ||
| Cargo.toml | ||
| LICENSE | ||
| plan.md | ||
| pure_rust.md | ||
| README.md | ||
| taskmgr.jpeg | ||
| timings.md | ||
taskmgr
A small Android (and Linux [1]) task manager: it shows what the device is doing
and lets you end processes. Written in Rust with Slint; the
UI runs in a plain NativeActivity, so the APK contains no Java code and no dex
files (see pure_rust.md).
AI Use disclosure.
AI was used for dialing the the slint UI, as well as generating the python script to test the application on linux. AI was used to generate the initial documentation, Readme, and some testing scripts.All code has been human reviewed, and much of the initial AI generated code was edited to be higher quality.
What it shows
- CPU — a live chart of user and system CPU usage, with the number of threads.
- Memory — used / buffers / cached / free as one segmented bar.
- Swap — used / free.
- Processes — one row per process with icon, name, CPU %, CPU time and memory.
Columns are sortable; rows can be filtered to user apps only or with idle
processes hidden;
Endkills a process.
The table only sees what the current mode is allowed to see:
| Mode | How it works |
|---|---|
| Priv-app | The app is a privileged system app and reads /proc directly. |
| Shizuku | Talks to a running Shizuku server over binder, no dex involved. |
| Root | Runs the reads through su. |
| Rootless | Unprivileged: the app's own processes only. |
Switching modes is a drop-down in the toolbar; the app picks the least privileged mode that works when it starts.
Building
Requirements:
- Rust with the Android targets:
rustup target add aarch64-linux-android x86_64-linux-android - Android SDK with build-tools, and
cargo-apk:cargo install cargo-apk - Android NDK (r27 or newer)
Point the build at the SDK and NDK:
export ANDROID_HOME=/opt/android-sdk
export ANDROID_NDK_HOME=/opt/android-ndk/android-ndk-r27c
With those exported, cargo apk builds the APK directly — there is nothing else
to set up:
cargo apk build --manifest-path crates/android/Cargo.toml --target aarch64-linux-android
The APK lands in target/debug/apk/taskmgr.apk (or target/release/apk/ when
you add --release). Use --target x86_64-linux-android for emulators. To put
it on the device and start it:
adb install -r target/debug/apk/taskmgr.apk
adb shell am start -n dev.taskmgr/android.app.NativeActivity
build.sh is only a wrapper that exports the SDK/NDK variables for you, picks a
build profile and can install in one step (./build.sh --arch arm64 [--release] [--install [SERIAL]]); it does not do anything cargo apk cannot.
Installing a priv-app or root build needs a rooted device; Shizuku mode needs a running Shizuku server.
Without a device, the same UI can be run on the desktop with made-up data:
cargo run -p taskmgr-ui --features desktop --example fake
Licence
GPL-3.0-or-later; the full text is in LICENSE.
[1]: On Linux the same UI is driven by scripts/linux_ui.py, a small Python host
that loads the identical crates/ui/ui/app.slint and feeds it from /proc
(python -m venv .venv && .venv/bin/pip install slint numpy, then
.venv/bin/python scripts/linux_ui.py). It offers Rootless as its only mode,
plus Root when run as root; chart, bars, table, sorting, filters and End all
work the same way.