Ksape 是一个 KernelSU WebUI 模块,提供专业级安卓进程监控与管理功能。通过 KernelSU 的 root 权限直接读取 /proc 文件系统,实现深度进程信息查看和实时性能监控。
- 进程列表 — 实时刷新,支持 PID/名称/CPU/内存排序、搜索过滤、进程状态筛选(All/Running/Sleeping/Disk/Stopped/Zombie)
- 性能仪表板 — CPU/内存用量、负载均值、CPU 频率,含 Sparkline 趋势图
- 进程详情 — 概览、内存(PSS/USS/RSS)、文件句柄、环境变量、线程、网络连接
- 进程操作 — Kill 进程(带确认对话框)、Renice 调整优先级
- 系统信息 — 内核版本、CPU 信息、内存详情、挂载点、dmesg、logcat
- Find Window Process — 检测前台应用,自动匹配对应进程及详细信息
- 设置 — 刷新频率调节、内核线程过滤、系统进程过滤
- 响应式布局 — 适配窄屏/小窗模式,详情面板覆盖层+返回按钮
- 在 Releases 下载
Ksape-*.zip - 打开 KernelSU Manager → 模块 → 从存储安装 → 选择 ZIP
- 安装完成后,在模块列表点击 Ksape → 打开 WebUI
Ksape/
├── module.prop # KernelSU 模块元数据
├── package.json # npm 配置
├── scripts/
│ └── package.js # ZIP 打包脚本 (Node.js, 正斜杠路径)
└── webroot/ # WebUI 根目录
├── index.html # 入口 (ES modules 直接加载)
├── scripts/
│ ├── app.js # 入口:初始化、轮询、事件绑定
│ ├── bridge.js # KernelSU API 封装 (ksu.exec 回调模式)
│ ├── collector.js # 数据采集 + 解析器
│ ├── store.js # 发布/订阅状态管理
│ ├── table.js # 进程列表 + 状态筛选栏
│ ├── detail.js # 进程详情面板
│ ├── status.js # 底部状态栏
│ ├── perf.js # 性能仪表板
│ ├── settings.js # 设置弹窗
│ ├── sysinfo.js # 系统信息弹窗
│ ├── findwin.js # Find Window Process 弹窗
│ └── utils.js # 格式化 + DOM 工具
└── styles/
├── base.css # Reset + CSS 变量
├── layout.css # Grid 布局 + 响应式断点
└── components.css # 组件样式
- 零构建步骤 — ES modules 直接通过
<script type="module">加载,无需 Parcel/Webpack - ksu 全局对象 — 直接调用
ksu.exec(command, "{}", callbackName),不依赖 npm 包 /proc文件系统 — 所有数据来源于 Linux/proc,跨 Android 版本兼容- 发布/订阅状态 — 轻量级
setState()/subscribe()模式,UI 组件订阅状态键自动重渲染
git clone https://github.com/privateAccountOfLiu/Ksape.git
cd Ksape
npm install # 仅打包需要
npm run build # 输出 dist/Ksape-v0.1.2.zip
# 直接推送到设备测试
MSYS_NO_PATHCONV=1 adb push webroot/ /data/adb/modules/Ksape/webroot/KernelSU 使用 BusyBox ash shell 独立模式执行命令。注意以下语法:
| GNU | BusyBox/Toybox |
|---|---|
head -1 |
head -n 1 |
tail -10 |
tail -n 10 |
renice 10 -p PID |
renice -n 10 PID |
sed -E |
sed (仅 BRE) |
- KernelSU — 内核级 root 方案
- systemapp_nuker — WebUI 架构参考
Apache 2.0
Ksape is a KernelSU WebUI module providing professional-grade Android process monitoring and management. Leveraging KernelSU's root access, it reads /proc directly for deep process inspection and real-time performance monitoring.
- Process List — Real-time refresh with sorting by PID/name/CPU/memory, search/filter, and state filter (All/Running/Sleeping/Disk/Stopped/Zombie)
- Performance Dashboard — CPU/Memory usage, load average, CPU frequency with sparkline trend charts
- Process Detail — Overview, Memory (PSS/USS/RSS), File Descriptors, Environment, Threads, Network
- Process Actions — Kill (with confirmation dialog), Renice priority adjustment
- System Info — Kernel version, CPU info, memory details, mount points, dmesg, logcat
- Find Window Process — Detects foreground app and matches to process with detailed info
- Settings — Refresh interval, kernel thread filter, system process filter
- Responsive Layout — Adapts to narrow/portrait screens with detail panel overlay and back button
- Download
Ksape-*.zipfrom Releases - Open KernelSU Manager → Modules → Install from storage → Select ZIP
- After installation, tap Ksape in the module list → Open WebUI
- Zero build step — ES modules loaded directly via
<script type="module">, no Parcel/Webpack needed - ksu global object — Direct
ksu.exec(command, "{}", callbackName)calls, no npm dependency at runtime /procfilesystem — All data sourced from Linux/proc, compatible across Android versions- Pub/sub state — Lightweight
setState()/subscribe()pattern, UI components subscribe to state keys for auto re-render
git clone https://github.com/privateAccountOfLiu/Ksape.git
cd Ksape
npm install # For packaging only
npm run build # Output: dist/Ksape-v0.1.2.zip
# Push directly to device for testing
MSYS_NO_PATHCONV=1 adb push webroot/ /data/adb/modules/Ksape/webroot/- KernelSU — Kernel-level root solution
- systemapp_nuker — WebUI architecture reference
Apache 2.0
