Stable Magisk 20.4Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â [Build date: March 28, 2020]
Canary Magisk ef9d077c (20401)Â Â [Build date: March 28, 2020]
Can you upload a "clean" magisk_patched.img and a "dirty" magisk_patched.img for comparison?
@osm0sis,
magisk_patched_clean_20.4.img (bootable without issues)(no magisk to 20.4)
https://my.pcloud.com/publink/show?code=XZcKrMkZ9uqLvq9i8EXJ4jcRyiQSBhX0hPgk
magisk_patched_dirty_from_20.3_to_20.4.img (bootloop)(20.3 to 20.4)
https://my.pcloud.com/publink/show?code=XZVlrMkZhQ90gBzjFPkQE1sHE2yKDp08XUXk
File â„–1: I "clean" patched my stock kernel with Magisk 20.4
File â„–2: I "dirty" patched my custom kernel with Magisk 20.4. I don't know how to patch the stock kernel with an older version of Magisk. Difference between the stock and the custom kernel is some changes in init.rc, also added two files with kernel parameters tweaks in the ramdisk, you will see them. I don't think that will be a problem for the comparison you want.
@topjohnwu, looks like for the (broken) dirty patched image the install script incorrectly backed up the previous build's magiskinit instead of keeping the original init for some reason.
Can you upload the working 20.3 boot.img now? I want to see if I can reproduce the patching issue on my side.
@martobg10, how was the boot.img originally patched? Looks manual, since it isn't correctly done, so the /.backup/.magisk configuration file is missing, and that's why dirty patching doesn't detect Magisk in it and doesn't keep the backed up original init file.
Your magisk_patched_clean_20.4.img does dirty patch correctly, so you just need to use it going forward, and this issue can be closed as (technically) invalid, though I believe resolved. :+1:
@osm0sis, I just found the reason why my .backup is missing.
After patching the kernel with Magisk. I had made several changes to the ramdisk using Carliv Image Kitchen. I just found out that the .backup folder disappears when I repack the boot image. I tried the same with your Android Image Kitchen but didn't have this problem. The .magisk folder is not deleted, after repack.
Most helpful comment
@osm0sis, I just found the reason why my .backup is missing.
After patching the kernel with Magisk. I had made several changes to the ramdisk using Carliv Image Kitchen. I just found out that the .backup folder disappears when I repack the boot image. I tried the same with your Android Image Kitchen but didn't have this problem. The .magisk folder is not deleted, after repack.