大侠阿木博客
大侠阿木博客

Magisk 更新v24.0,允许Magisk模块检测自身更新

因为Magisk去除了模块仓库,所以提供了模块自更新的功能,模块可以检测并提醒用户更新。

如何为模块添加自更新功能

  1. 模块module.prop内增加字段

    updateJson="http(s)://我是更新文件.json"
  2. json文件格式如下

    {
    "versionCode": 11,
    "version": "v1.1.1 beta",
    "zipUrl": "模块文件链接.zip",
    "changelog": "模块更新日志.md"
    }

以下是Magisk v24.0 完整更新日志

2022.1.26 Magisk v24.0

It has been a while since the last public release, long time no see! A personal update for those unaware: I am now working at Google on the Android Platform Security team. Without further ado, let's jump right into it!

MagiskHide Removal

I have lost interest in fighting this battle for quite a while; plus, the existing MagiskHide implementation is flawed in so many ways. Decoupling Magisk from root hiding is, in my opinion, beneficial to the community. Ever since my announcement on Twitter months ago, highly effective "root hiding" modules (much MUCH better than MagiskHide) has been flourishing, which again shows that people are way more capable than I am on this subject. So why not give those determined their time to shine, and let me focus on improving Magisk instead of drowning in the everlasting cat-and-mouse game 馃槈.

Sunsetting Magisk-Modules-Repo

Due to lack of time and maintenance, the centralized Magisk-Modules-Repo was frozen, and the functionality to download modules from the repo is removed in v24.0. As a supplement, module developers can now specify an updateJson URL in their modules. The Magisk app will use that to check, download, and install module updates.

Introducing Zygisk

Zygisk is Magisk in Zygote, the next big thing for Magisk! When this feature is enabled, a part of Magisk will run in the Zygote daemon process, allowing module developers to run code directly in every Android apps' processes. If you've heard of Riru, then Zygisk is inspired by that project and is functionally similar, though the implementation is quite different internally. I cannot wait to see what module developers can achieve using Zygisk!

Documentation

For developers, details about updateJson and building Zygisk modules can all be found in the updated documentation.

Full Changelog: here

# # #
首页      Android      Android 教程      Magisk 更新v24.0,允许Magisk模块检测自身更新

推荐文章

大侠阿木博客

Magisk 更新v24.0,允许Magisk模块检测自身更新
因为Magisk去除了模块仓库,所以提供了模块自更新的功能,模块可以检测并提醒用户更新。 如何为模块添加自更新功能 模块module.prop内增加字段 updateJson="http(s)://我是更新文…
扫描二维码继续阅读
2022-01-28