跳到主要内容
KernelSU 模块

KernelSU Grant Toast

不可变 Release 已同步

Show a root granted toast like Magisk.让KSU像Magisk一样显示超级用户授权Toast.

介绍

KernelSU Grant Toast

English | 简体中文 | Русский


Make KernelSU display a "Superuser access granted" toast, like Magisk.

Screenshots

Features

  • Shows a toast notification when an app gains elevated privileges.
  • Supports custom notification text.
  • Supports ignoring privilege-grant notifications for specified apps.

Installation

Download the module package from the Releases page, then select and install it in KernelSU.

After installation, reboot the device for the module to take effect.

This module does not depend on Zygisk or MetaModule.

Compatibility Notes

This module is intended only for the latest version of KernelSU that supports Su logging, and has only been tested with the official release.

Compatibility with other forks is unknown. In theory, it should work as long as their Su logging implementation has not been modified.

How It Works

When Su logging is enabled, KernelSU starts a persistent process that receives log data forwarded by the kernel and writes it to a file.

This data is highly real-time, making it fully suitable for event monitoring.

After the module is installed and the device has finished booting, the module kills the original process responsible for writing the logs. It then obtains the file descriptor used to receive the relevant data (only one process can hold this descriptor, so the original process must be terminated) and takes over event handling.

If an Android app is found to have been granted root access, the module retrieves information about the app and displays a notification when the configured conditions are met.

Notes

Because the process that originally writes the log file is terminated after the device finishes booting, Su logs will no longer be recorded.

To prevent files from accumulating, the module also deletes old log files after it starts.

As a result, you will no longer be able to view Su log data in the manager.

(In theory, the original process could be left running and the module could obtain information by monitoring changes to the log file, but this may have poor performance.)

Final Note

This module is mainly for fun.

Thanks for using it.

历史版本

2.5

最新

版本代码 16 2.5

下载

新增"审计"功能 当弹出提权提醒时写入日志 可在WebUI中查看(相比原始SuLog日志更简单 普通人可以很轻松的阅读 代价是丢失大量信息)
新增俄语翻译by LegacyFreeman
尝试优化WebUI启动速度
修复软重启后低概率触发模块描述异常
微调WebUI部分页面的布局

Added an "Audit" feature that records an audit log whenever a privilege grant toast is shown; the
log can be viewed in the WebUI (it is simpler than the original SuLog logs and easy for ordinary
users to read, at the cost of losing a lot of information).
Added Russian translation by LegacyFreeman.
Attempted to optimize WebUI startup speed.
Fixed a module description anomaly that could rarely occur after a soft reboot.
Fine-tuned the layout of some WebUI pages.

文件 1

KernelSUGrantToast.zip 627.5 KiB

SHA-256 ff255330202a0a12625ec9d7d90faf395dfdf9096f79075aee75627574f5e7a1 · Attestation

2.4

版本代码 15 2.4

下载

重写初始化时加载配置的方式
支持设置是否启用WebUI振动反馈
支持在提示提权时使用振动进行提醒 并支持设置振动时长 该功能默认关闭
修复部分配置项在保存时可能出现异常
修复WebUI在初始化时无论是否处于深色模式均会出现短暂白屏
更新依赖项

Rewrote the way the configuration is loaded during initialization.
Added an option to enable or disable vibration feedback in the WebUI.
Added support for using vibration as a reminder when a privilege grant toast is shown, with a configurable vibration duration; this feature is disabled by default.
Fixed an issue where some configuration items could be saved incorrectly.
Fixed a brief white screen in the WebUI during initialization regardless of whether dark mode was enabled.
Updated dependencies.

文件 1

KernelSUGrantToast.zip 284.2 KiB

SHA-256 8eb46180c506487f2c7014c75e6eb23cb468427c3d187a502fa5e853ad8bac4f · Attestation

透明度

Tag
2.5 不可变 Release
Tag commit
b8e99347d83b
内容 commit
f824d0e3b7f1
SHA-256
ff255330202a0a12625ec9d7d90faf395dfdf9096f79075aee75627574f5e7a1
最近同步到变更

自行复核

KernelSU 模块不对模块签名,也不审计模块代码。SHA-256 只证明下载内容与本索引一致。可使用 GitHub CLI 自行复核:

gh release verify 2.5 -R NativeStar/KernelSUGrantToast
gh release verify-asset 2.5 KernelSUGrantToast.zip -R NativeStar/KernelSUGrantToast