Update Manager, then patch Magisk by using that new Manager 278.Did you patch after update magisk (not just the manager)?
I updated magisk manager 278 and then updated to latest magisk 72f6770d. Then I tried to patch.
I am guessing updating the magisk (not manager) caused my issue.
I clearly made distinguish between magisk and magisk manager in my previous post. Magisk means magisk and magisk manager is magisk manager. There is no confusion from me. If you read as it is, definitely you won't be confused.Update Manager, then patch Magisk by using that new Manager 278.
Again, bug was and now fix is in the Manager - guys, please distinguish MM (Magisk Manager) from Magisk, some say Magisk but obviously talking about MM (Manager).
Also, what would be the point of patching if you first already updated Magisk directly
EDIT: See screenshot, FIRST (to update Manager) and then, SECOND (to update Magisk)
Probably a suggestion to avoid confusion, to change the main screen in Manager, to show Manager on top and Magisk below (opposite from now)
NotI clearly made distinguish between magisk and magisk manager in my previous post. Magisk means magisk and magisk manager is magisk manager. There is no confusion from me. If you read as it is, definitely you won't be confused.
The point of patching: I want to patch a new boot image from new security updates because I want to update but didn't receive OTA notification. I will manually flash ota update and flash the patched boot image to regain root.
That's the point that there is a "Select and patch a file" option in magisk beside "Direct Install".
So you only updated magisk manager but not magisk. That is probably the issue.
You: update magisk manager, then patch and no problem.
Me: update magisk manager, update magisk in magisk manager, then patch. It fails and partially break magisk (removing modules).
Im using Canary (release), not Canary debug channelActually just tried on mine also.
Pixel 3a XL
Same problem patching a boot image, just hangs..
Now to complicate matters, I have been running a hidden (renamed) Manager and I can patch the same boot image if I point Manager to a custom channel.
Hang on a moment..
Intermission
@zgfg are you patching with canary or canary (debug) ?
@googlephoneFKLenAsh I'm guessing you are using the debug channel.
Cheers all.![]()
Canary channel. Not debug.Actually just tried on mine also.
Pixel 3a XL
Same problem patching a boot image, just hangs..
Now to complicate matters, I have been running a hidden (renamed) Manager and I can patch the same boot image if I point Manager to a custom channel.
Hang on a moment..
Intermission
@zgfg are you patching with canary or canary (debug) ?
@googlephoneFKLenAsh I'm guessing you are using the debug channel.
Cheers all.![]()
So I am correct. You only updated magisk manager before patch. You then flashed patched boot image to update magisk.Not
- Of course that I update both Manager and then Magisk
- Of course that for patching you must use "select and patch" method
So responding third (and lreally ast) time:
1) Update first Magisk Manager (to 278).
It will download, install and restart into the new Manager 278.
2) Then update Magisk by "select and patch" to 20307.
Of course, you must reboot then to Fastboot or TWRP and to flash "patched_boot.img"
If something still not clear, please consult the Magisk Installation guide![]()
Once I update Magisk by patching (select and patch, then flash it), then Magisk is already updated (upon flashing, reboot to system and check the version of Magisk)Canary channel. Not debug.
---------- Post added at 01:57 PM ---------- Previous post was at 01:53 PM ----------
So I am correct. You only updated magisk manager before patch. You then flashed patched boot image to update magisk.
People like me who updated magisk manager, and then updated magisk using "direct install" would have problems patching using "select and patch a file" which will just hang.
I am guessing if you try to patch a boot image again now it would hang too since you manually updated magical by flashing patched boot image.
No, someone else who is not clear with what's happening needs to read and read the guide, not me.
I switched to stable channel in magisk manager settings (just change update channel to stable, not reinstall magisk) and it patched the same boot image without any problem. So the bug is related to 72f6770d (20307) magisk with canary channel.Actually just tried on mine also.
Pixel 3a XL
Same problem patching a boot image, just hangs..
Now to complicate matters, I have been running a hidden (renamed) Manager and I can patch the same boot image if I point Manager to a custom channel.
Hang on a moment..
Intermission
@zgfg are you patching with canary or canary (debug) ?
@googlephoneFKLenAsh I'm guessing you are using the debug channel.
Cheers all.![]()
Maybe, but in that case bug depends on device/firmwareI switched to stable channel and it patched the same boot image without any problem. So the bug is related to 72f6770d (20307) magisk with canary channel.
Thanks.
You are not reading.Maybe, but in that case bug depends on device/firmware
I used Magisk Manager Canary 278 and without any problem updated my Magisk to 20307 by select and patch method
But for that it is crucial that you first update Manager (Canary) to 278 because Manager 277 did have exactly the bug you were describing (crash on patching the image) - scroll back in this thread and find reports when 277 was released
276 did not have that bug and 278 by Chsngelog (see attached screenshot) is fixed again
But maybe the fix in 278 is not good on your device and Manager 278 is still crashing when patching your image
And of course that there is no such bug in the stable. Stable is already out long ago and nobody reported such a bug for stable. And if there was such a serious bug in STABLE, stable would have already been stabilized by an updated fix
I had the same issue patching the boot.img after updating both today on the canary channel. I foreclosed magisk manager and then was able to patch it.Thank you @zgfg and @googlephoneFKLenAsh for your response to my question.
It helps understand a little bit about the differences between users, setup/options and devices.
I don't think the version of Magisk vs. Manager matters.
I've run newer magisk versions with older managers versions before.
Actually I think I did the other week to get around the patching issue..
Regardless, for me (on Pixel 3a XL) something is borked when selecting the Beta or Canary (debug) update channel list.
Setting it as a custom channel, both patch a boot image just fine.
Canary Debug - Link
Magisk Beta - Link
Yes, I normally update Magisk via direct install on my 3a XL since it's currently my daily use.
I use the patch boot image option to patch a stock boot.img that way I have a magisk patched version on hand as part of my backups files.
If something goes wrong or I need to clean flash/install or for testing purposes.
No TWRP for Android 10, so using a magisk patched boot.img is the only way to initially root it.
Still trying to narrow things down. I did try on an older device (arm) that has been brought up to Android 10 (2SI) and I was able to patch a boot image regardless with update channel I selected.
Not sure if it's a layover from the original magisk(version) installed..
TWRP flash vs. using a patched boot.img..
Symptom of something else..
Cheers all.
PS.
Nothing jumps out in logcat when magisk freezes patching a boot image.
Edit:
@googlephoneFKLenAsh
I just hit the same bug(s) you found.
I accidentally installed magisk (direct install) when I was trying to patch a boot.img file, now I get the same errors you did.
So apparently you can not reinstall magisk 20307 over magisk on 20307 ??)
That sounds more like a twrp issue. Other flashable zips, not magisk modules, work ok?I have error1 on Magisk 20307 Canary when I will flash any magisk module in TWRP, via Magisk Manager is ok. All is good on 20306 version. My friend said help only flash again latest version. Pls fix this.
Yes, Magisk 20308 is out