Problems with Magisk 22 (recent RN7 ROMs)
I haven't read all the posts, so may be repeating known information; I read a few pages yesterday and didn't find the answer to a problem I was having.
I am using a rooted Redmi Note 7/lavender, with OrangeFox recovery and Magisk root. Until Magisk 21.4 I would install a new ROM and the current Magisk in a single operation (from OrangeFox, not the Updater app), and everything was hunky-dory. With Magisk 22 I made a copy of the .apk with .zip extension and found that nothing worked, I ended up without root, either trying to install from the app or installing from recovery. Worse, if I uninstalled Magisk then installed the previous 21.4 and the Manager I still didn't have root. What worked (copying notes I made for myself):
Magisk 22 (new format) didn't work by renaming the .apk as .zip and installing from a custom recovery; phone was not rooted. The method that works:
With a custom recovery, OrangeFox or TWRP, installed:
- Extract boot.img from the current .eu ROM ZIP image into a directory on the phone.
- Running Magisk installed as an app, click Install Magisk (not the app). With "Preserve force encryption" and "Recovery Mode" both ticked, click Next, then tick "Select and Patch a File" and LET'S GO. Find boot.img (lot's of picture files with "Img" in the name are found, use the Search magnifying glass) and click it. This creates a file with a name like "magisk_patched_pxIX8.img" in the same directory as boot.img.
Boot to recovery (power button, select boot to recovery) and with OrangeFox or TWRP find magisk_patched_pxIX8.img (or whatever name) and install it in the boot partition. That's all, reboot and the phone will be rooted.
Choose one of: "hope this helps"/"apologies for repeating what everyone knows". Best wishes, pol098