Related
I want to go back to MIUI 9 from custom ROM Pixel Experience (8.1.0). My device is Redmi 4X (Santoni)
1st option. (tried)
- I downloaded the MIUI ROM from here. http://en.miui.com/download-323.html
- I flashed this ROM through TWRP.
- The flashing process passed.
- But when I want to boot, it says "no OS. Want to continue reboot?"
- When I boot, it stuck on the boot logo.
2nd option. (tried)
- I downloaded the fastboot ROM and XiaoMi flash Tool from here. http://en.miui.com/a-234.html (Under Redmi 4X Santoni)
- I flash using "XiaoMi Flash Tool".
- XiaoMi Flash Tool detected my device.
- During flash, I got an error "no such file or directory".
So now I'm stuck. I can't go back to MIUI.
Only able to go to other Custom ROM.
Or do I need any other files?
Try this https://androidfilehost.com/?fid=962187416754468805
this is xiaomi.eu rom
try that
http://en.miui.com/thread-621761-1-1.html
Try to flash again without Wipe.
1. Wipe data,chache,dalvik
2. Flash ROM ,dont wipe
3. Try to reboot,( if u have notice no OS try to Flash ROm once more but dont wipe )
XanverSky said:
I want to go back to MIUI 9 from custom ROM Pixel Experience (8.1.0). My device is Redmi 4X (Santoni)
1st option. (tried)
- I downloaded the MIUI ROM from here. http://en.miui.com/download-323.html
- I flashed this ROM through TWRP.
- The flashing process passed.
- But when I want to boot, it says "no OS. Want to continue reboot?"
- When I boot, it stuck on the boot logo.
2nd option. (tried)
- I downloaded the fastboot ROM and XiaoMi flash Tool from here. http://en.miui.com/a-234.html (Under Redmi 4X Santoni)
- I flash using "XiaoMi Flash Tool".
- XiaoMi Flash Tool detected my device.
- During flash, I got an error "no such file or directory".
So now I'm stuck. I can't go back to MIUI.
Only able to go to other Custom ROM.
Or do I need any other files?
Click to expand...
Click to collapse
Use any miui recovery rom to flash thru twrp or if you dont have twrp recovery the use fastboot rom
Here some steps..
#1 Recovery method
1) download any santoni miui recovery rom(stable, dev, xiaomi.eu, miuipro)
2) go to twrp
3) wipe system, cache, dalvik cache, data
4) install downloaded rom
5) flash root ( supersu or magisk)
6) flash lazy flasher( its recommend for miui roms)
7) reboot
Wait for start (it will take 5-10 min to start)
#2 fastboot method
1) download fastboot rom ( global or developer )
2) move to pc or if you download on pc then extract in drive C: root directory
3) make sure folder dont have any space between name like "roms here"
It must be "roms"
4) install and open xiaomi tool or mi flash tool
5) choose directory of rom ( not images folder)
Main folder like "santoni_global_images_xxxxxx"
6) enable USB debugging (if your phone dont have any rom skip it )
7) then go to fastboot mode
8) choose directory of fastboot rom
9) flash then wait to success
Your phone will reboot after success wait for boot and start its also take 5-10 min to start
From my Redmi 4X using Tapatalk VIP
In Fastboot method where did you extracted the '.tgz' setup file. If you extracted it to other than c drive, repeat the process by extracting the setup file in to desktop.
Solution
XanverSky said:
I want to go back to MIUI 9 from custom ROM Pixel Experience (8.1.0). My device is Redmi 4X (Santoni)
1st option. (tried)
- I downloaded the MIUI ROM from here. http://en.miui.com/download-323.html
- I flashed this ROM through TWRP.
- The flashing process passed.
- But when I want to boot, it says "no OS. Want to continue reboot?"
- When I boot, it stuck on the boot logo.
2nd option. (tried)
- I downloaded the fastboot ROM and XiaoMi flash Tool from here. http://en.miui.com/a-234.html (Under Redmi 4X Santoni)
- I flash using "XiaoMi Flash Tool".
- XiaoMi Flash Tool detected my device.
- During flash, I got an error "no such file or directory".
So now I'm stuck. I can't go back to MIUI.
Only able to go to other Custom ROM.
Or do I need any other files?
Click to expand...
Click to collapse
The solution would be xiaomi flash tool.Flash miui 8 first and then upgrade to miui 9
XanverSky said:
I want to go back to MIUI 9 from custom ROM Pixel Experience (8.1.0). My device is Redmi 4X (Santoni)
1st option. (tried)
- I downloaded the MIUI ROM from here. http://en.miui.com/download-323.html
- I flashed this ROM through TWRP.
- The flashing process passed.
- But when I want to boot, it says "no OS. Want to continue reboot?"
- When I boot, it stuck on the boot logo.
2nd option. (tried)
- I downloaded the fastboot ROM and XiaoMi flash Tool from here. http://en.miui.com/a-234.html (Under Redmi 4X Santoni)
- I flash using "XiaoMi Flash Tool".
- XiaoMi Flash Tool detected my device.
- During flash, I got an error "no such file or directory".
So now I'm stuck. I can't go back to MIUI.
Only able to go to other Custom ROM.
Or do I need any other files?
Click to expand...
Click to collapse
Once miui Rom flashing done, you may try my suggestions here " https://forum.xda-developers.com/xiaomi-redmi-4x/help/help-bootloop-oreo-rom-t3772856 "
Hey,
So I am new to this and I want to make sure I don't break anything.
I have the Mi 9T Pro with MIUI Global 10.3.3.0 (PFKMIXM). I am not sure if its the Global or the EEA Version (?) How can I see?
I did not yet get an option to update to MIUI11 unlike many others either. I did unlock my bootloader.
What steps in which order do I have to take to get LOS17? I also want to have root and TWRP.
Can someone guide me through this step by step? Would really appreciate.
The "instructions" in the LOS17 thread are pretty minimal and not very detailed.
KuroRyu said:
Hey,
So I am new to this and I want to make sure I don't break anything.
I have the Mi 9T Pro with MIUI Global 10.3.3.0 (PFKMIXM). I am not sure if its the Global or the EEA Version (?) How can I see?
I did not yet get an option to update to MIUI11 unlike many others either. I did unlock my bootloader.
What steps in which order do I have to take to get LOS17? I also want to have root and TWRP.
Can someone guide me through this step by step? Would really appreciate.
The "instructions" in the LOS17 thread are pretty minimal and not very detailed.
Click to expand...
Click to collapse
The ROM is global, so I assume the phone is too. In PFKMIXM look at characters 4 & 5. MI = global. For EEA these would be EU (CN = China, IN = India).
I don't think MIUI 11 has been released for the global ROM. AFAIK this week was only the European ROM that got updated to 11.
To install LOS you would need to install MIUI 11 firmware & vendor first (these can be flashed on there own or you could install a fastboot MIUI 11 ROM)
The LOS 17 OP recommends keeping these as the original region of the phone. In this case you will need to wait until global MIUI 11 arrives.
However, you would, in all probability, have no issues if you went with European MIUI 11 ROM/firmware instead.
The decision is yours, if you want to keep things 'proper' then wait for global MIUI 11 before proceeding. If you're happy to go with EU firmware then we can give you an overview of the process.
Robbo.5000 said:
The ROM is global, so I assume the phone is too. In PFKMIXM look at characters 4 & 5. MI = global. For EEA these would be EU (CN = China, IN = India).
I don't think MIUI 11 has been released for the global ROM. AFAIK this week was only the European ROM that got updated to 11.
To install LOS you would need to install MIUI 11 firmware & vendor first (these can be flashed on there own or you could install a fastboot MIUI 11 ROM)
The LOS 17 OP recommends keeping these as the original region of the phone. In this case you will need to wait until global MIUI 11 arrives.
However, you would, in all probability, have no issues if you went with European MIUI 11 ROM/firmware instead.
The decision is yours, if you want to keep things 'proper' then wait for global MIUI 11 before proceeding. If you're happy to go with EU firmware then we can give you an overview of the process.
Click to expand...
Click to collapse
Thanks for the reply, very helpful.
Is there any information when MIUI 11 will be released for the global version?
Also can I already install TWRP? That should not have any effect on the ROM flashing process, right?
If so, how do I do this correctly for my current configuration?
KuroRyu said:
Thanks for the reply, very helpful.
Is there any information when MIUI 11 will be released for the global version?
Also can I already install TWRP? That should not have any effect on the ROM flashing process, right?
If so, how do I do this correctly for my current configuration?
Click to expand...
Click to collapse
I've not heard anything about the global release, but as someone that doesn't use MIUI I don't go looking for information, so there could be some info around. Apparently there's no noticeable difference between EU and global versions for this phone, so now the EU version is released I don't think it would be too long for the global version to appear, but that's pure guesswork.
You can install TWRP now, it requires adb and fastboot. If you don't have these on your PC then search the xda forums for 'minimal adb'. The official post will give you all the details. Ordinarily whenever you boot MIUI ithe system checks the integrity of the recovery partition and, if it has changed, it will restore stock recovery. Therefore immediately after installing TWRP you'll need to install Magisk, which will then automatically protect the TWRP installation.
Copy your Magisk installation file onto the phone
Boot the phone into fastboot mode and connect to the PC.
To make life easier, copy the TWRP image file to the same folder that has adb and fastboot and rename the file as TWRP.img
Open command prompt and navigate to the adb/fastboot installation folder.
Code:
fastboot flash recovery TWRP.img
If you're using PowerShell then you'll need to qualify the location of fastboot and TWRP
Code:
.\fastboot flash recovery .\TWRP.img
When that's finished and still in fastboot mode.
Press and hold the vol+ and power buttons.
Keep holding both until the phone vibrates and the initial splash screen appears.
Release the power button, but keep holding vol+ for a second or 2.
You should now have booted into TWRP if everything went OK.
Go to install and select the Magisk installation file on the phone.
Confirm the selection.
Once that's finished you can reboot the phone.
If all's OK you should now have TWRP and Magisk installed.
Robbo.5000 said:
I've not heard anything about the global release, but as someone that doesn't use MIUI I don't go looking for information, so there could be some info around. Apparently there's no noticeable difference between EU and global versions for this phone, so now the EU version is released I don't think it would be too long for the global version to appear, but that's pure guesswork.
You can install TWRP now, it requires adb and fastboot. If you don't have these on your PC then search the xda forums for 'minimal adb'. The official post will give you all the details. Ordinarily whenever you boot MIUI ithe system checks the integrity of the recovery partition and, if it has changed, it will restore stock recovery. Therefore immediately after installing TWRP you'll need to install Magisk, which will then automatically protect the TWRP installation.
Copy your Magisk installation file onto the phone
Boot the phone into fastboot mode and connect to the PC.
To make life easier, copy the TWRP image file to the same folder that has adb and fastboot and rename the file as TWRP.img
Open command prompt and navigate to the adb/fastboot installation folder.
Code:
fastboot flash recovery TWRP.img
If you're using PowerShell then you'll need to qualify the location of fastboot and TWRP
Code:
.\fastboot flash recovery .\TWRP.img
When that's finished and still in fastboot mode.
Press and hold the vol+ and power buttons.
Keep holding both until the phone vibrates and the initial splash screen appears.
Release the power button, but keep holding vol+ for a second or 2.
You should now have booted into TWRP if everything went OK.
Go to install and select the Magisk installation file on the phone.
Confirm the selection.
Once that's finished you can reboot the phone.
If all's OK you should now have TWRP and Magisk installed.
Click to expand...
Click to collapse
Alright. Thanks for the instructions, I will try this.
Just to make sure: Is this the correct TWRP image: TWRP 3.3.1-22 Unofficial by mauronofrio ?
Where can I find the correct magisk files for my device? Do I need magisk or magisk manager?
Would be sick if you could link me the correct ones
Cheers
KuroRyu said:
I've not heard anything about the global release, but as someone that doesn't use MIUI I don't go looking for information, so there could be some info around. Apparently there's no noticeable difference between EU and global versions for this phone, so now the EU version is released I don't think it would be too long for the global version to appear, but that's pure guesswork.
You can install TWRP now, it requires adb and fastboot. If you don't have these on your PC then search the xda forums for 'minimal adb'. The official post will give you all the details. Ordinarily whenever you boot MIUI ithe system checks the integrity of the recovery partition and, if it has changed, it will restore stock recovery. Therefore immediately after installing TWRP you'll need to install Magisk, which will then automatically protect the TWRP installation.
Copy your Magisk installation file onto the phone
Boot the phone into fastboot mode and connect to the PC.
To make life easier, copy the TWRP image file to the same folder that has adb and fastboot and rename the file as TWRP.img
Open command prompt and navigate to the adb/fastboot installation folder.
If you're using PowerShell then you'll need to qualify the location of fastboot and TWRP
Alright. Thanks for the instructions, I will try this.
Just to make sure: Is this the correct TWRP image: TWRP 3.3.1-22 Unofficial by mauronofrio ?
Where can I find the correct magisk files for my device? Do I need magisk or magisk manager?
Would be sick if you could link me the correct ones
Cheers
Click to expand...
Click to collapse
EDIT: JUST READ THAT THERE IS AN ISSUE WITH MAGISK 20.1 AND MIUI 11.
DOWNLOAD MAGISK 19.4
That is the correct TWRP.
Only ever get Magisk from here
https://github.com/topjohnwu/Magisk
There are no device specific versions, just one size fits all. Download the latest 20.1 Magisk installer zip to flash in TWRP. It will install Magisk and Magisk manager at the same time. Also download the uninstaller zip at the same time, just in case. If, for any reason, you need to uninstall then it's there ready.
If you need to know more about Magisk, follow the link on github to the xda official thread, it has very good information.
Can I create a redmi 8 rom miui 12? There is a tool or a method to do this? Please answer me.
Yes there is go to your computer and:
Go to https://c.mi.com/oc/miuidownload/detail?device=1900376
find Redmi 8 Global in the list on the left
and click download full rom
it is about 2GB.
next you will need twrp
if you dont have twrp already flashed then go here
How to install TWRP recovery on Android smartphones
Installing TWRP on an Android device is the first step towards custom development.
www.xda-developers.com
now boot the phone in recovery (twrp)
DISCLAIMER: I recommend doing a full backup of your device through TWRP, just in case it gets bricked. If it bricks tell me here
the pc should recognize the phone automatically.
move the ROM in the downloads folder.
Go to install in the twrp menu and go to the downloads folder (it is in /sdcard)
select the zip named something with "OLIVE"
and swipe the bar in the bottom to confirm the flash
complete setup
BOOM, you now have miui 12 and android 10
Hope i helped you
Hi guys, i just flashed (with a light wipe) the last rom for my Xiaomi Mi 11 Ultra (obtained on the update section of parameters) and i first lost all my config.
So, i decided to restore the backup i made just before flashing and here is the drama, it boot directly into TWRP and i can't seem to find my storage anymore (tried file manager)
TWRP also tells me that no OS is installed, please help, i'm desperate
I think the first step is to recover access to internal sdcard, and maybe then i can restore a backup
Thank you !
simply, Fastboot and install official rom using mi flash tool.
thats one of the penalties you'd pay of installing eu rom.
hassanaliyeh said:
simply, Fastboot and install official rom using mi flash tool.
thats one of the penalties you'd pay of installing eu rom.
Click to expand...
Click to collapse
Ok, will try this tomorrow, thank you !
Is it this one : https://www.xiaomiflash.com/ ?
Xiaomi Flash Tool - Official Mi Flash Tool
Download the latest and Official Xiaomi Flash Tool from the Official Xiaomi Flash Tool Website.
xiaomiflashtool.com
This is the official one. Use the newest version
hassanaliyeh said:
Xiaomi Flash Tool - Official Mi Flash Tool
Download the latest and Official Xiaomi Flash Tool from the Official Xiaomi Flash Tool Website.
xiaomiflashtool.com
This is the official one. Use the newest version
Click to expand...
Click to collapse
Thank you very much, sir !
Will try this and post the result, maybe with a little tuto if it's not already everywhere ^^
So, tried 5 times and not once a good result, the better i can obtain is 12.5.7.0 global working, flashed with xiaomitool. TWRP ok, and i will try Magisk next.
Every other tries solded by an sdcard/os/data loss T_T
That's a mystery. I ran on 12.5.17.0 all fine before this incident and i cannot get it work anymore :/
I obtained rom from https://androidfilehost.com/?w=files&flid=321331
TWRP from https://androidfilehost.com/?fid=14943124697586336381
Also tried this method again (this was my first method and it worked like a charm till this 12.5.20.0... )
[ROM][MIUI][star/mars] Xiaomi.eu ROM for Xiaomi MI 11 Pro / Ultra
How to install Xiaomi.eu ROM for Xiaomi MI 11 Pro / Ultra We will release fastboot ROM versions until TWRP for star/mars is released TWRP RELEASED Steps to install xiaomi.eu ROM for first time from China ROM (All your data and files on...
forum.xda-developers.com
The problem with global is it seems to be greatly outdated (patch from 2021.09, that's a huge security risk to be months backward nowadays, let aside bug correction, new functionnality, etc)
I can't seem to find a more recent global version (updater within settings tells me there's no more up to date version).
Do someone have an idea, please ? :/
What i'm doing :
1. put device on fastboot mode
2. launch xiaomitool and flash 12.5.7.0 global rom
3. reboot into fastboot
4. launch xiaomi unlock and unlock device
5. boot TWRP with fastboot boot twrp.img in cmd (command returned all ok)
6. into "soft" TWRP, One Key Inject TWRP
7. into "hard" TWRP > install and give it the .zip rom file
8. after the rom installed, all broken again :/
Hi,
there is no TWRP-ROM available for the Ultra - it's still in fastboot-ROM phase.
Flash via fastboot. Unlocking is just needed once until relocking with orig. ROM.
(Optionally) Copy boot.img from ROM-folder to phone.
Use Magisk to patch boot.img
Flash patched boot.img to boot_a and boot_b via fastboot.
Wait until TWRP-compatible-zip's for the Ultra to begin to appear.
cya
gammelobst said:
Hi,
there is no TWRP-ROM available for the Ultra - it's still in fastboot-ROM phase.
Flash via fastboot. Unlocking is just needed once until relocking with orig. ROM.
(Optionally) Copy boot.img from ROM-folder to phone.
Use Magisk to patch boot.img
Flash patched boot.img to boot_a and boot_b via fastboot.
Wait until TWRP-compatible-zip's for the Ultra to begin to appear.
cya
Click to expand...
Click to collapse
Thanks for that ! ^^
That sure seem a simple task
You're telling me that i can, from my 12.5.7.0 global, patch the boot.img (90mb) from the 12.5.20.0 eu with magisk, flash this with fastboot and that it will work ?
Seems too wonderfull to be true XD
EDIT:
My bad, you said "optionnally", not "alternatively"
So, i'm stuck here, i don't know and can't seem to find the fastboot cmd to install the xiaomi eu rom in .zip format
Do you know it please ?
In all the 11 Ultra A12 weekly EU ROMs, the format is fastboot only. Just extract the .zip file to a folder on your desktop, connect your phone in fastboot mode, power on and vol down and then click on the update bat file. If your coming from a different branch, click on the update and format bat file ( the bat files will be in the upper most extracted folder). It is a simple as that .
Sathelp said:
In all the 11 Ultra A12 weekly EU ROMs, the format is fastboot only. Just extract the .zip file to a folder on your desktop, connect your phone in fastboot mode, power on and vol down and then click on the update bat file. If your coming from a different branch, click on the update and format bat file ( the bat files will be in the upper most extracted folder). It is a simple as that .
Click to expand...
Click to collapse
Hi Sathelp !
An ultra big thank you !! The flash worked wonderfuly it seems
That's awesome how simple it is, in fact, and to say that i lost hours and hours without being able to approach this, i'm so noob :/
much kudos :x
I'm now on the way to root and finally, can reuse my mi11 ^^
Hi Guys, so we got a pilot release for MIUI 13. Here is the guide to flash/update using Xiaomi.eu ROM:
Update to MIUI13 (Android 12) from MIUI EU V12.5
A TWRP backup of current rom is recommended before following the next steps
You can follow my guide to know how you do it here: https://forum.xda-developers.com/t/...-flash-twrp-root-device-flash-eu-rom.4402203/
Download Fastboot EU rom from here: https://sourceforge.net/projects/xi...13.0.1.0.SKDMIXM_v13-12-fastboot.zip/download
Extract all the contents in zip file to any normal folder
We will be using Bootloader/Fastboot mode. Boot into Bootloader: Power off your mobile then hold Volume Down + Power Button till Fastboot bunny pops up
Connect your device to PC
To update use the updater executable for respective OS platform windows_fastboot_update_rom.bat (for windows)
For clean flash you can use windows_fastboot_first_install_with_data_format.bat (for windows)
Follow the procedures as per above choice
Wait patiently while the PC does its Job.
You may see a long pause post “writing Cust” command depending on PC configuration. try hitting any letter key on your keyboard, the process continues this way.
You may hit letter key whenever you see unusual pauses during pushing of super partition file sparse sending 1 of 9 to 9 of 9
Wait till process finishes and reboots
Flash Magisk and Root
Copy boot.img from the extracted ROM images folder to your mobile
Global Boot.img (use this if you wanna root Globoal Miui13.
Install latest Magisk app from here: https://github.com/topjohnwu/Magisk/releases/download/v24.1/Magisk-v24.1.apk
Install the app and select install in Magisk and choose patch source file and select the boot.img you copied.
Wait for the process, copy the new patched image form mobile to your PC
Now lets flash the new pathced boot image using below, replace with path to boot image in place of “< --- >”
fastboot flash boot_a “<magisk_patched.img>”
fastboot flash boot_b “<magisk_patched.img>”
Reboot and check the magisk app
Follow my guide here to pass safteyNet: https://forum.xda-developers.com/t/...-flash-twrp-root-device-flash-eu-rom.4402203/
Update to miui 13 can't flash via twrp?
Yuditkiichi said:
Update to miui 13 can't flash via twrp?
Click to expand...
Click to collapse
Only the stock global rom is for recovery, xiaomi.eu rom is for fastboot.
I can boot the twrp.img, but I can't navigate in the main menu. It won't do anything
dandris86 said:
I can boot the twrp.img, but I can't navigate in the main menu. It won't do anything
Click to expand...
Click to collapse
Probably twrp is not yet compatible with the new android 12 firmware, some users also reported the same problem.
sushuguru said:
Probably twrp is not yet compatible with the new android 12 firmware, some users also reported the same problem.
Click to expand...
Click to collapse
Thanks for the quick reply
I'm updated whiteout format data. Everything looks ok.
Alright, so I was previously rooted on 12.5 (global), non twrp. its not necessary for rooting.
I did the ota update to v13 miui (global). but as its a switch between v11 and v12 of android its not possible to install magisk into an empty a/b slot.
I tried to fastboot flash your global miui boot.img after patching it with magisk and it did not work.
I suspect the boot.img to not be compatible with the global rom.
So I opted to flash the Eu fastboot version of miui 13, I set up the phone.
Then patched the stock boot.img with magisk and fastboot that. Done phone is now rooted on v13 miui. and passing safety net check.
phone data was lost as i had to switch from global to eu.
Can anyone confirm that we get widgets and other features that are not found in the miui 13 global I want to make the switch but I want to know what would still be missing
The global fastboot rom is now released. follow same steps above to have rooted global non twrp.
V13.0.1.0.SKDMIXM (https://xiaomifirmwareupdater.com/miui/vili/stable/V13.0.1.0.SKDMIXM/)
-Edit-
Ive also updated to the latest via ota V13.0.2.0.SKDMIXM (Stable beta). but as it detected the boot.img was modified it downloaded the entire recovery rom. Installed. Lost root access.
I then fastboot re flashed the patched boot.img from the V13.0.1.0.SKDMIXM and it works.
so im rooted/ safetynet check passed on V13.0.2.0.SKDMIXM (Global)
roms can be found here https://xiaomifirmwareupdater.com/miui/vili/
Downloaded the latest EEU vili_eea_global_images_V13.0.8.0.SKDEUXM_20220224.0000.00_12.0_eea_38cc4dcea7.tgz
but the only .bat files I see are
flash_all.bat, flash_all_except_storage.bat and flash_all_lock.bat
BettlePimp said:
Downloaded the latest EEU vili_eea_global_images_V13.0.8.0.SKDEUXM_20220224.0000.00_12.0_eea_38cc4dcea7.tgz
but the only .bat files I see are
flash_all.bat, flash_all_except_storage.bat and flash_all_lock.bat
Click to expand...
Click to collapse
It's a fastboot stock rom which this flash with miflash or with bat files
This thread is about XIAOMI EU custom rom
This phone is so ****ty, I'm trying to do OTA update via 100mbit/'s network in netherlands from about two f***NG weeks and it can not be finished. I can't belive that I have paid 800€ for so big ****!
Hello
For the ROOT it works perfectly (without TWRP, just with magisk)
You unlock the bootloader and wait 1 week, you extract the boot.img, you modify the file with magisk and do the command wtih adb with the modified boot
Very simple
(If you want to extract the rom file by yourself you can just extract with a little tool after your download the rom
, you can extract the fil with the payloaf file, for that, just have a look in the method 3 in this link)