Repository navigation
Add Zstandard support to MagiskBoot - #10261
Andrey-Pepper wants to merge 1 commit into
Conversation
|
Which OEM uses zstd? Please upload the img file for test. |
I was using RestlessOS 17 on my Samsung Galaxy A13 (SM-A135F, Exynos 850). The boot image included KernelSU (GKI 2), but it didn't work on my device. I decided to switch to Magisk, but the boot image patching process failed. After investigating the boot image, I found that the ramdisk was compressed using Zstandard (ZSTD), which was not supported by MagiskBoot at the time. I added ZSTD support to my local MagiskBoot build, rebuilt Magisk, and everything worked correctly. I was able to patch the boot image and install Magisk successfully. Here is the RestlessOS 17 ROM package I used (originally shared on 4PDA): RestlessOS 17 boot.img: I hope this helps verify the issue and the implementation. |
|
It fails to build. |
Summary
Add Zstandard (ZSTD) compression and decompression support to MagiskBoot.
Changes
zstdcrate dependency.FileFormat::ZSTD.Testing
🤖 Generated with ChatGPT