HuskyDG / magisk-files

1.89k stars 78 forks source link

System not booting after reverting to stock Magisk #46

Closed fragtion closed 6 months ago

fragtion commented 6 months ago

Hi I hope you can help

I was trying Magisk Delta (R65894F03-kitsune) (upgraded from Magisk using Kitsune Manager apk method, not zip). Everything seemed fine, but I noticed that MagiskHide mode was not working while Zygisk was enabled. Pressing the app icon for any hidden app would only show the app splash screen and not load the app properly. When removing the app from MagiskHide it would start up normally again.

So I disabled Zygisk, which resulted in LSPosed Zygisk module not loading... (as expected) So then installed Riru module and LSPosed Riru, and after reboot Riru seemed to be loading fine according to logs inside Kitsune Manager, however LSPosed manager was saying that LSPosed is not installed.

At this point I thought Magisk Delta is the cause for Riru LSPosed not working, as earlier in the day LSPosed Riru version was working fine for me on official Magisk v26.4 ...

So then I installed official Magisk APK again and tried to "downgrade" back to official version using the in-app/apk flashing method (the same way I upgraded to Magisk Delta, but in reverse) -- however after reboot, this time my system is completely unbootable... It doesn't even reach the flashing SAMSUNG logo stage.

Stuck at this stage: image

I've tried to rename the magisk delta apk to uninstall.zip, and flash it with TWRP, and also the same with official magisk. I also tried to reinstall both versions this way, to no avail Also tried to install Magisk-Manager-for-Recovery-Mode and use mm binary to disable modules from recovery But I am stuck at this stage and cant reach system.

At the moment I'm doing a full TWRP backup of /data to see if wiping /data will result in a bootable system... but I suspect system/kernel image is somehow corrupted (similar to #3) and may need to flash stock boot img...?

Update: wiping /data did not work, so it appears the problem is elsewhere

Update 2: Hooray - I managed to restore booting by flashing stock (from ROM) boot.img, flashed magisk & necessary modules, restored /data backup, and now all is well 🙌🏻 Additionally Riru LSPosed is working again on stock magisk, so next step is to try make it work with Delta.

~~

So this could be a warning for other users that "downgrading" back to official magisk via the app should be avoided

Also, I suggest to modify kitsune manager app to disallow toggling MagiskHide if Zygisk mode is active...? this will prevent more confusion for other noobs