长期以来,Magisk/KernelSU的模块功能仅限于执行引导脚本和修改系统文件。现在,我们正在探索赋予模块显示UI界面能力的可能性!
以前,安装一些模块后,用户需要通过命令行或直接修改特定位置的配置文件进行配置。显然,这个过程对用户来说相当不方便。有时,为了配置设置,甚至需要编写一个单独的应用程序。有了模块显示界面的能力,这些问题可能会成为过去。
此外,显示界面可用于的不仅仅是配置。您可以自由地展示任何您想展示的内容并与用户交互。
当前的界面是通过WebUI实现的,您可以使用任何web技术创建超文本标记语言页面,并将其放置在模块的webroot目录中,安装模块后,用户可以通过KernelSU管理器的模块列表访问此页面。KernelSU还提供了一个JavaScript库,方便与系统交互。
然而,这些试验仍处于起步阶段,jsapi还不稳定。我们欢迎您的反馈!
更新日志:
[模块]添加对在模块中显示WebUI的支持。
[模块]使用稀疏镜像存储模块文件,解决某些大模块和动态大小模块安装失败的问题。
[模块]当可用于挂载模块文件时,使用新的挂载API。
[模块]允许为OverlayFS设置upperdir以使分区可写(仅限CLI)。
[内核]修复一些检测。
[内核]修复导致某些根进程无法被杀死的bug。
[管理器]添加禁用自动更新检查的选项。
[管理器]修复管理器授予root失败时的误导提示。
——————————————-
For a long time, the module functionality of Magisk / KernelSU was limited to executing boot scripts and modifying system files. Now, we are exploring the possibility of endowing modules with the capability to display UI interfaces!
Previously, after installing some modules, users needed to configure them either through the command line or by directly modifying configuration files in specific locations. Clearly, this process was quite inconvenient for users. At times, in order to configure settings, it was even necessary to write a separate app. With the ability for modules to display interfaces, these issues could become a thing of the past.
Moreover, the display interface can be used for more than just configurations. You have the freedom to present anything you’d like to showcase and interact with the user.
The current interface is implemented through WebUI. You can create HTML pages using any web technology and place them in the module’s webroot directory. After the module is installed, users can access this page through the KernelSU manager’s list of modules. KernelSU also provides a JavaScript library to facilitate interaction with the system.
However, these trials are still in their infancy, and the jsapi is not yet stable. We welcome your feedback!
Changelog:
[Module] Add support for displaying WebUI in modules.
[Module] Use sparse image to store module files to solve the problem of installation failure of certain large modules and dynamically sized modules.
[Module] Use new mount API when it is available for mounting module files.
[Module] Allow to set upperdir for OverlayFS to make the partition writable (CLI Only).
[Kernel] Fix some detections.
[Kernel] Fix a bug that causes some root processes cannot be killed.
[Manager] Add an option to disable automatic update check.
[Manager] Fix the misleading tips when manager grant root failed.