How to patch magisk when you're on a ota firmware update ? - Huawei Mate 20 Pro Themes, Apps, and Mods

I tried to extract the update.app but there is no recovery ramdisk which is required to patch magisk.
I'm 9.1.0.359 btw, And to my knowledge there is no full firmware update under this version than the ota update..
If anyone could help me that would be cool

You should extract boot.img and use magisk manager to patch boot.img. Then flash boot partition for that patch boot.img.
flyl0 said:
I tried to extract the update.app but there is no recovery ramdisk which is required to patch magisk.
I'm 9.1.0.359 btw, And to my knowledge there is no full firmware update under this version than the ota update..
If anyone could help me that would be cool ☺
Click to expand...
Click to collapse

Related

[Guide] OTA update installation on rooted phone

This may be known to many but there are many users who were struggling with this.
Hello Folks,
Was getting few requests on XDA, Telegram and Facebook for this. As title says, there were few users reporting OTA failures while they were rooted with Magisk. Yes, that's obvious, it will fail as you have modified the boot.img (ramdisk) and stock recovery (Recovery_ramdisk.img) while rooting and installing TWRP.
Please follow below steps to update via OTA if you were rooted or using magisk.
Uninstall busybox binaries and Xposed framework (if you are using by any chance)
Uninstall Magisk (inside the app or by flashing the magisk uninstaller via TWRP)
Download update.app of your current firmware and extract stock recovery and boot file via Huawei extractor
Flash stock recovery of your actual variant as fastboot flash recovery_ramdisk recovery.img
Flash stock boot as fastboot flash ramdisk ramdisk.img
Boot to system.
Perform OTA update and reboot.
Root your phone again if you want.
Enjoy.
You could just :
1.patch the new ramdisk's update via magiskmanager then,
2.update via HuRUpdater without removing your root before,
3.then reboot straight to fastboot, and flash your new patched ramdisk
4.reboot to your rooted updated firmware with magisk module still working and root mods still applyied.
PS: I don't know about xposed frameworks
shashank1320 said:
This may be known to many but there are many users who were struggling with this.
Hello Folks,
Was getting few requests on XDA, Telegram and Facebook for this. As title says, there were few users reporting OTA failures while they were rooted with Magisk. Yes, that's obvious, it will fail as you have modified the boot.img (ramdisk) and stock recovery (Recovery_ramdisk.img) while rooting and installing TWRP.
Please follow below steps to update via OTA if you were rooted or using magisk.
Uninstall busybox binaries and Xposed framework (if you are using by any chance)
Uninstall Magisk (inside the app or by flashing the magisk uninstaller via TWRP)
Download update.app of your current firmware and extract stock recovery and boot file via Huawei extractor
Flash stock recovery of your actual variant as fastboot flash recovery_ramdisk recovery.img
Flash stock boot as fastboot flash ramdisk ramdisk.img
Boot to system.
Perform OTA update and reboot.
Root your phone again if you want.
Enjoy.
Click to expand...
Click to collapse
Do we need to keep "Enable OEM Unlock" checked or unchecked in developer settings?
mohsyn said:
Do we need to keep "Enable OEM Unlock" checked or unchecked in developer settings?
Click to expand...
Click to collapse
Doesn't matter unless you are rooting
shashank1320 said:
Doesn't matter unless you are rooting
Click to expand...
Click to collapse
Thanks
I am unable to download OTA update through system
I have the zips downloaded using firmware finder but both the dload and copying the zips to /data/update/HWoUC folder fails
dload method keeps throwing erecovery on screen and does nothing
my recovery + ramdisk + kernal are all stock
magisk completely removed
bootloader unlocked
frp unlock
am i missing something or is there some other manual update method
mohsyn said:
Thanks
I am unable to download OTA update through system
I have the zips downloaded using firmware finder but both the dload and copying the zips to /data/update/HWoUC folder fails
dload method keeps throwing erecovery on screen and does nothing
my recovery + ramdisk + kernal are all stock
magisk completely removed
bootloader unlocked
frp unlock
am i missing something or is there some other manual update method
Click to expand...
Click to collapse
It should be hwouc folder directly under root of internal memory and not data/update/hwouc

is it safe do update OTA while having Magisk ?

Hello guys i'm on emui 9 and having magisk running finally
few days ago i got an ota update , so if i installed it is it safe ? and will i lose the root and have to install magisk again ?!
Thank you in advance
foxvb74 said:
Hello guys i'm on emui 9 and having magisk running finally
few days ago i got an ota update , so if i installed it is it safe ? and will i lose the root and have to install magisk again ?!
Thank you in advance
Click to expand...
Click to collapse
Thats a fullrom.zip it will uninstall magisk even if its installed after OTA.
is it worth it ?
foxvb74 said:
is it worth it ?
Click to expand...
Click to collapse
As its downloaded already I would suggest to install it as it will get installed during the next time your device gets rebooted ?
Just root it again. and then disable updates if you dont want them.
To use OTA update you have to flash the stock recovery_ramdisk of your version.
Then do the OTA update.
Afterwards you can reflash TWRP etc. and magisk.
It's just a few minutes of effort so totally worth to do it every 1-2 month from my point of view.
Can you help me ? How can i get the recovery ramdisk and how to flash it alone
foxvb74 said:
Can you help me ? How can i get the recovery ramdisk and how to flash it alone
Click to expand...
Click to collapse
Download an ota file with FirmwareFinder of your current firmware version. Extract the UPDATE.APP file and use HuaweiUpdateExtractor to get a stock recovery ramdisk img file.
Run prompt and type: fastboot flash recovery_ramdisk RECOVERY_RAMDIS.IMG

flash back to stock.

So I currently have USA Hawaii mate 10 pro on 9.0.0264 BL unlocked and magisk patched ramdisk and I keep getting notification to install the .267 update but it will not install due to the patched ramdisk so I just want to flash back to stock, I have downloaded the full ota through Hawaii hisuite application and its in zip format, so how do i flash this zip to go back to stock, thank you.
lingarajug said:
So I currently have USA Hawaii mate 10 pro on 9.0.0264 BL unlocked and magisk patched ramdisk and I keep getting notification to install the .267 update but it will not install due to the patched ramdisk so I just want to flash back to stock, I have downloaded the full ota through Hawaii hisuite application and its in zip format, so how do i flash this zip to go back to stock, thank you.
Click to expand...
Click to collapse
You don't have to flash the whole update, just extract the recovery_ramdisk from 9.0.0.264 firmware (use Huawei Extractor to do that) and flash it with fastboot.
Another way to get the stock recovery it's to use Partitions Backup by Wanam (from Playstore), in its options enable the "raw partition image" and backup "erecovery_ramdisk".
Copy the backup on PC and flash it with this fastboot command :
fastboot flash recovery_ramdisk erecovery_ramdisk.img
Note: replace "erecovery_ramdisk.img" with the filename of the image that you backed up previously.
After flashing the stock recovery_ramdisk, you can install the official OTA.
I am confused, there is recovery_ramdis and erecovery_ramdisk and which one is it.
Update- i just flashed recovery_ramdis and then system from ota and i am updated now. Thank you.

New magisk update for rooting rui 2

Rename file as apk install and patch stock boot then flash patched boot via fastboot :
https://github.com/topjohnwu/Magisk/files/6876339/app-debug.zip
thank's to magisk dev.

Question boot image for magisk?

Does anyone have boot image for RMX3300 A.19 or fireware download link for rmx3300_11_a.19?
thanks
I'm looking too. Only found it at Halab Tech Support. It's not free, unfortunately I can't cope with the payment methods via PayPal. Otherwise I would have already tried to extract the boot.img
here is the magisk patched boot image for RMX3300 chinese firmware C.19
i only have this version
backup the stock boot.img before flashing
and dont forget to flash vbmeta.img before magisk.img
Very nice thank you.
However, my question is how do I backup my boot.img without root?
I have version A.19. If I can make a backup without root, I could patch the boot.img from the backup and install it via Magisk.
Or am I wrong?
Just how to backup without root.....?
shyzj666666 said:
here is the magisk patched boot image for RMX3300 chinese firmware C.19
i only have this version
backup the stock boot.img before flashing
and dont forget to flash vbmeta.img before magisk.img
Click to expand...
Click to collapse
How can I do a backup of boot.img?

Categories

Resources