How to flash magisk(Custom Rom Already Installed) - Huawei P20 Lite Questions & Answers

Hi! Ive just installed los 17.1 from this guide : https://forum.xda-developers.com/t/losq-lir-lineageos-17-1-18-1-unofficial-gsi.4219291/
I have also installed twrp
But now Im confused on how to install magisk
Do I use the ramdisk from emui stock firmware and patch it and fastboot flash it?
Is there a way to get a ramdisk from the los image ?
Or is it possible to just flash the normal magisk zip in twrp ?
Any help would be appreciated thank you!
(Ane-lx1
Was running emui 9.0.0.133(c185))

DonnyRedZone1 said:
Hi! Ive just installed los 17.1 from this guide : https://forum.xda-developers.com/t/losq-lir-lineageos-17-1-18-1-unofficial-gsi.4219291/
I have also installed twrp
But now Im confused on how to install magisk
Do I use the ramdisk from emui stock firmware and patch it and fastboot flash it?
Is there a way to get a ramdisk from the los image ?
Or is it possible to just flash the normal magisk zip in twrp ?
Any help would be appreciated thank you!
(Ane-lx1
Was running emui 9.0.0.133(c185))
Click to expand...
Click to collapse
Simply download and flash patched recovery_ramdisk
-Alf- said:
and also copy to the SD card patched Recovery_ramdisk:
https://mega.nz/file/lp1kHLxJ#htCMaPjSsg_dy0w_jNOft-t_DZRAPwhOvwy_Wr2cjX8
Click to expand...
Click to collapse
Note: If you don't plan to use TWRP, simply install patched Recovery_ramdisk in fastboot mode. Run command
fastboot flash recovery_ramdisk magisk_patched-23.img ).

-Alf- said:
Simply download and flash patched recovery_ramdisk
Note: If you don't plan to use TWRP, simply install patched Recovery_ramdisk in fastboot mode. Run command
fastboot flash recovery_ramdisk magisk_patched-23.img ).
Click to expand...
Click to collapse
Thank you so much for helping me over the past few days man ur a legend !

(realised i was being stupid nvm)

Related

Installing custom rom for first time -need help

Hi,this is my first time installing a custom rom and recovery and rooting and all.
I am on MIUI 10 8.11.22 beta on RN3 2gb.
And have unlocked bootloader using official method.
Currently following
https://forum.xda-developers.com/redmi-note-3/how-to/unlock-bootloader-twrp-root-7-2-3-t3359492
Planning to
flash official twrp-3.3.1-0-kenzo
Install Havoc 9.0 OS https://forum.xda-developers.com/redmi-note-3/development/rom-havoc-os-t3845305
Install Magisk
but twrp site is showing
This device uses dm-verity!
This means that swiping to allow system modifications will prevent you from being able to boot if you are using the stock kernel. In order to bypass dm-verity's boot prevention, you will have to install a kernel that has dm-verity disabled in the fstab.
Click to expand...
Click to collapse
I think it is about boot.img but I do not have patched boot.img of my miui version and also (from above guide) to patch boot.img i need fastboot rom but linkhttps://en.miui.com/a-234.html only takes me to Chinese miui website.
Can any one share link to boot.img of fastboot rom for MIUI 10 8.11.22 beta?
And in Havoc OS post
https://forum.xda-developers.com/redmi-note-3/development/rom-havoc-os-t3845305
do I need custom kernel for 9.0?
In Magisk Post
Prerequisite
If you plan to install custom kernels, flash the zip AFTER installing Magisk
Make sure to remove any ‘boot image mods’ such as other root solutions. The easiest way is to restore the boot image from factory images, or reflash a non-prerooted custom ROM
Click to expand...
Click to collapse
does that mean i do not need to flash boot.img or do i need to flash it afterwards?
Qustions
1) Do I need boot.img file of my version or any will do?
2)Do I need custom kernel for havoc os 9.0?
3) how to proceed after flashing twrp(need help)?
here what i think i have to do after flasing twrp(correct me If i am wrong)
(do not flash boot .img as installing magisk) -> flash havoc os -> flash magisk->flash custom kernel(which one?)-> (flash boot.img) ->reboot
ARY-Pyran said:
Hi,this is my first time installing a custom rom and recovery and rooting and all.
I am on MIUI 10 8.11.22 beta on RN3 2gb.
And have unlocked bootloader using official method.
Currently following
https://forum.xda-developers.com/redmi-note-3/how-to/unlock-bootloader-twrp-root-7-2-3-t3359492
Planning to
flash official twrp-3.3.1-0-kenzo
Install Havoc 9.0 OS https://forum.xda-developers.com/redmi-note-3/development/rom-havoc-os-t3845305
Install Magisk
but twrp site is showing
I think it is about boot.img but I do not have patched boot.img of my miui version and also (from above guide) to patch boot.img i need fastboot rom but linkhttps://en.miui.com/a-234.html only takes me to Chinese miui website.
Can any one share link to boot.img of fastboot rom for MIUI 10 8.11.22 beta?
And in Havoc OS post
https://forum.xda-developers.com/redmi-note-3/development/rom-havoc-os-t3845305
do I need custom kernel for 9.0?
In Magisk Post
does that mean i do not need to flash boot.img or do i need to flash it afterwards?
Qustions
1) Do I need boot.img file of my version or any will do?
2)Do I need custom kernel for havoc os 9.0?
3) how to proceed after flashing twrp(need help)?
here what i think i have to do after flasing twrp(correct me If i am wrong)
(do not flash boot .img as installing magisk) -> flash havoc os -> flash magisk->flash custom kernel(which one?)-> (flash boot.img) ->reboot
Click to expand...
Click to collapse
If u official unlocked using miunlock tool then u dont need any patched boot.img.
Flash latest twrp 3.3.1 kenzo
Download ur favourite rom and nano gapps zip to external sd card.
First go to wipe and do format data.
You must do it or rom wont boot.
So click Format data
Type Yes to format
This will decrypt and erase internal sd.
Then Swipe to "factory reset"
Then Go to install
Flash rom zip
Flash nano gapps.zip
Then Reboot and enjoy
Black_Stark said:
...
Click to expand...
Click to collapse
I know this is off topic but do you know something about "Red Light Blinking" and "init Storage:Fail" ?
Thanks for the tip. Currently on havoc os . Installation went smoothly

When will TWRP get support to Android 10?

I have flashed latest android 10 to my A3 and mistakenly uninstalled TWRP. Now i want to install twrp recovery. But everytime I flash it in partition b, it get stuck on fastboot screen.
If twrp doesn't support Android 10 then how come it supports other Android 10 based custom rom like Pixel Experience?
Because those custom ROMs use android 9 vendor, boot etc
Thanks for your helpful response
Sapper Morton said:
TWRP itself is compatible with Android 10, but not the pre-built image; the non-bootable state could be explained by the Pie Kernel inside twrp.img from official TeamWin website. Nonetheless, you can use Magisk to patch the Q boot image, or just download and flash the attached file, it's a v11.0.8.0 QFQMIXM boot image patched with the latest TWRP:
•https://app.blackhole.run/#5ae9e6c2301FpEtcnUSvhBisE7AD1JV98DHmKGDtK3WP
Click to expand...
Click to collapse
Thank you for your helpful response. If i want to flash twrp permanently, which zip file i need to flash after booting it temporarily with your attached twrp.img?
Sapper Morton said:
You must always use TWRP Installer (there's no need in specific custom ROMs, since they provide built-in custom recovery), the image I attached can only be used to install temporarily in Android 10 firmware (other than 11.0.8.0 QFQMIXM). And remember, all of this could be avoided if Xiaomi had implemented the boot command into Mi A3 bootloader:
Code:
fastboot boot image_example.img
Click to expand...
Click to collapse
so i am guessing there is no way to add the boot command to fastboot
build v11.0.11.0
Sapper Morton said:
TWRP itself is compatible with Android 10, but not the pre-built image; the non-bootable state could be explained by the Pie Kernel inside twrp.img from official TeamWin website. Nonetheless, you can use Magisk to patch the Q boot image, or just download and flash the attached file, it's a v11.0.8.0 QFQMIXM boot image patched with the latest TWRP:
•https://app.blackhole.run/#5ae9e6c2301FpEtcnUSvhBisE7AD1JV98DHmKGDtK3WP
Click to expand...
Click to collapse
Hi!
Thanks a lot, where I can find the file for the v11.0.11.0, or at least can you specify how I do this using stock boot?
Thanks! Hope to hear you back.
I booted with patched boot and finally was able to enter into TWRP recovery, but then I erased system/data/dalvik and tried to flash Pixel Experience but I am always getting error 1 when doing it. What can I do? It is something about the Android Q base? I'm now on build 11.0.11
Sapper Morton said:
You must always use TWRP Installer (there's no need in specific custom ROMs, since they provide built-in custom recovery), the image I attached can only be used to install temporarily in Android 10 firmware (other than 11.0.8.0 QFQMIXM). And remember, all of this could be avoided if Xiaomi had implemented the boot command into Mi A3 bootloader:
Code:
fastboot boot image_example.img
Click to expand...
Click to collapse
means that with this twrp it is used only to open the twrp periodically, once the custom rom is installed I install the twrp normally
Sapper Morton said:
TWRP itself is compatible with Android 10, but not the pre-built image; the non-bootable state could be explained by the Pie Kernel inside twrp.img from official TeamWin website. Nonetheless, you can use Magisk to patch the Q boot image, or just download and flash the attached file, it's a v11.0.8.0 QFQMIXM boot image patched with the latest TWRP:
•https://app.blackhole.run/#5ae9e6c2301FpEtcnUSvhBisE7AD1JV98DHmKGDtK3WP
Click to expand...
Click to collapse
What do you mean "patch the q boot image". What is that?
Sapper Morton said:
TWRP itself is compatible with Android 10, but not the pre-built image; the non-bootable state could be explained by the Pie Kernel inside twrp.img from official TeamWin website. Nonetheless, you can use Magisk to patch the Q boot image, or just download and flash the attached file, it's a v11.0.8.0 QFQMIXM boot image patched with the latest TWRP:
•https://app.blackhole.run/#5ae9e6c2301FpEtcnUSvhBisE7AD1JV98DHmKGDtK3WP
Click to expand...
Click to collapse
Thanks you saved me. I could boot into recovery with your boot.img but the encryption failed. Nevertheless I could sideload the recovery.zip to the device and install on both slots.

Can I flash GSI using SP Flash Tool?

I have OPPO a5s device that supports project treble and I want to install Havoc OS GSI on it. My device has no fastboot and no unlock bootloader capacities and I found out that I can use SP flash tool can flash without fastboot and without unlocked bootloader which is perfect for me. Can I flash GSI to system partition directly?
Yes
OwenLeGrande said:
I have OPPO a5s device that supports project treble and I want to install Havoc OS GSI on it. My device has no fastboot and no unlock bootloader capacities and I found out that I can use SP flash tool can flash without fastboot and without unlocked bootloader which is perfect for me. Can I flash GSI to system partition directly?
Click to expand...
Click to collapse
Yes You can Use SP Flash tool on OPPO but Do at your Own Risk then Can Brick your Phone
OwenLeGrande said:
I have OPPO a5s device that supports project treble and I want to install Havoc OS GSI on it. My device has no fastboot and no unlock bootloader capacities and I found out that I can use SP flash tool can flash without fastboot and without unlocked bootloader which is perfect for me. Can I flash GSI to system partition directly?
Click to expand...
Click to collapse
yes, flash full stock rom and reboot and setup
add the gsi (renamed to system.img) into the stock rom folder (rename stock system.img to systemBAK.img)
turn phone off and flash as normal, it should boot into havoc, might take a bit longer than usual.
If you have no TWRP or custom recovery you cant flash Gapps so hopefully your havoc has those inbuilt
robneymcplum said:
yes, flash full stock rom and reboot and setup
add the gsi (renamed to system.img) into the stock rom folder (rename stock system.img to systemBAK.img)
turn phone off and flash as normal, it should boot into havoc, might take a bit longer than usual.
If you have no TWRP or custom recovery you cant flash Gapps so hopefully your havoc has those inbuilt
Click to expand...
Click to collapse
Thanks! I'm going to try it.
robneymcplum said:
yes, flash full stock rom and reboot and setup
add the gsi (renamed to system.img) into the stock rom folder (rename stock system.img to systemBAK.img)
turn phone off and flash as normal, it should boot into havoc, might take a bit longer than usual.
If you have no TWRP or custom recovery you cant flash Gapps so hopefully your havoc has those inbuilt
Click to expand...
Click to collapse
Hello! Can I flash the gsi directly without flashing full stock rom?
OwenLeGrande said:
Hello! Can I flash the gsi directly without flashing full stock rom?
Click to expand...
Click to collapse
Helo bRo, Did you succeed flashing Havoc OS on Oppo A5s. I also have same device.pls let me know ?
I have something similar
moto e6 play
it has fastboot but there is no way to unlock the bootloader
sp flash tool does not work but the lenovo tool [LMSA]
I can flash gsi but there is a problem, dm-verity does not allow me to start, red state
I tried to use an empty vbmeta but there are no results, if someone thinks of what to do and can tell me, I appreciate it, I would also like to point out that in the stock there are verifie files in addition to the normal ones.

[Question][joyeuse] 11.0.6.0 fastboot EU ROM

Hi. Does anyone know where I could download the fastboot ROM 11.0.6.0 EU for joyeuse? I found only the recovery ROM, but I need it to extract the boot partition and flash Magisk without a custom recovery.
Thank you in advance.
MagikGab said:
Hi. Does anyone know where I could download the fastboot ROM 11.0.6.0 EU for joyeuse? I found only the recovery ROM, but I need it to extract the boot partition and flash Magisk without a custom recovery.
Thank you in advance.
Click to expand...
Click to collapse
The recovery rom is a zip right? I think you have to extract it twice to get to the boot.img file
apbucaneg said:
The recovery rom is a zip right? I think you have to extract it twice to get to the boot.img file
Click to expand...
Click to collapse
Yeah you're right. I thought that I need mandatory the fastboot ROM to get the boot.img.
Perfect, thank you

how to unlock bootloader realme 7 pro with realme ui 3.0 and flash the custom recovery and cuatom rom

hi guys i'm trying to unlock the bootloader and install a custom recovery and custom rom i've never done it if anyone can help me and all the necessary files thanks a lot
Well first downgrade to rui 2.0 and then using deep testing apk unlock the bootlorder and then flash custom recovery (ofox better) . Install your custom rom of your choice then ur good to go
Pranav060 said:
Bene, prima eseguire il downgrade a rui 2.0 e quindi utilizzare l'apk di deep testing per sbloccare il bootlorder e quindi eseguire il flashing del ripristino personalizzato (ofox migliore). Installa la tua rom personalizzata di tua scelta, quindi sei a posto
Click to expand...
Click to collapse
unfortunately I can't find the realme ui 2.0 downgrade file when I install what is written in the guides it tells me verification failed and I can't downgrade
andrea34334343 said:
unfortunately I can't find the realme ui 2.0 downgrade file when I install what is written in the guides it tells me verification failed and I can't downgrade
Click to expand...
Click to collapse
I have this version of realme ui 3
Hi, maybe my experience will be useful to you. I have Realme 7 pro with android 12 rmx2170_11_f.24. I was doing root to my device. What I was doing? First I downloaded deeptest rui3.apk. When I get confirmation from manufacturer I start deep test in app. Then I use ADB to send command for unlock bootloader. I completed this task. Then I downloaded and flash TWRP 3.6.2_12 (because it's can work with android 12. I tried 3.5.2_10 it's not worked). Also you need vbmeta file from rmx2170_11_f.24 to don't make your phone brick. First flash vbmeta then recovery. After recovery you need to install Magisk from TWRP to keep TWRP working after reboot. But, when I tryed install Magisk I was getting TWRP error 1: cannot write /system. How I fix it? I reboot device and install Magisk 25.2 via Android. Then you need patch boot.img from rmx2170_11_f.24 via Magisk and you get Magisk patched boot.img. Then you need flash TWRP again and reboot to recovery. In TWRP you need chose flash img button and flash Magisk patched boot.img to boot partition. Doing this you keep TWRP working and then you can flash custom ROM's to your phone.
Mod edit: 4pda link removed.
here you can get f24 ROM ( you need vbmeta and boot.img from this ROM). ROM is ~2 Gb size. Maybe you need registration on website to download. Also get TWRP 3.6.2. I'll pin deep test rui3.apk and Magisk 25.2 for you here. You can rename Magisk.zip to Magisk.apk and install via Android. I gaved you roadmap how to make this. Hope you can do it. By the way, hello from Ukraine)
s_svyrydenko said:
Hi, maybe my experience will be useful to you. I have Realme 7 pro with android 12 rmx2170_11_f.24. I was doing root to my device. What I was doing? First I downloaded deeptest rui3.apk. When I get confirmation from manufacturer I start deep test in app. Then I use ADB to send command for unlock bootloader. I completed this task. Then I downloaded and flash TWRP 3.6.2_12 (because it's can work with android 12. I tried 3.5.2_10 it's not worked). Also you need vbmeta file from rmx2170_11_f.24 to don't make your phone brick. First flash vbmeta then recovery. After recovery you need to install Magisk from TWRP to keep TWRP working after reboot. But, when I tryed install Magisk I was getting TWRP error 1: cannot write /system. How I fix it? I reboot device and install Magisk 25.2 via Android. Then you need patch boot.img from rmx2170_11_f.24 via Magisk and you get Magisk patched boot.img. Then you need flash TWRP again and reboot to recovery. In TWRP you need chose flash img button and flash Magisk patched boot.img to boot partition. Doing this you keep TWRP working and then you can flash custom ROM's to your phone.
Mod edit: 4pda link removed.
here you can get f24 ROM ( you need vbmeta and boot.img from this ROM). ROM is ~2 Gb size. Maybe you need registration on website to download. Also get TWRP 3.6.2. I'll pin deep test rui3.apk and Magisk 25.2 for you here. You can rename Magisk.zip to Magisk.apk and install via Android. I gaved you roadmap how to make this. Hope you can do it. By the way, hello from Ukraine)
View attachment 5867277 View attachment 5867279
Click to expand...
Click to collapse
Thanks for helping me out and passing me the necessary files
{Mod edit: Quoted post has been deleted. Oswald Boelcke, Senior Moderator}
You wrote in the wrong trend write in a new post
s_svyrydenko said:
Hi, maybe my experience will be useful to you. I have Realme 7 pro with android 12 rmx2170_11_f.24. I was doing root to my device. What I was doing? First I downloaded deeptest rui3.apk. When I get confirmation from manufacturer I start deep test in app. Then I use ADB to send command for unlock bootloader. I completed this task. Then I downloaded and flash TWRP 3.6.2_12 (because it's can work with android 12. I tried 3.5.2_10 it's not worked). Also you need vbmeta file from rmx2170_11_f.24 to don't make your phone brick. First flash vbmeta then recovery. After recovery you need to install Magisk from TWRP to keep TWRP working after reboot. But, when I tryed install Magisk I was getting TWRP error 1: cannot write /system. How I fix it? I reboot device and install Magisk 25.2 via Android. Then you need patch boot.img from rmx2170_11_f.24 via Magisk and you get Magisk patched boot.img. Then you need flash TWRP again and reboot to recovery. In TWRP you need chose flash img button and flash Magisk patched boot.img to boot partition. Doing this you keep TWRP working and then you can flash custom ROM's to your phone.
Mod edit: 4pda link removed.
here you can get f24 ROM ( you need vbmeta and boot.img from this ROM). ROM is ~2 Gb size. Maybe you need registration on website to download. Also get TWRP 3.6.2. I'll pin deep test rui3.apk and Magisk 25.2 for you here. You can rename Magisk.zip to Magisk.apk and install via Android. I gaved you roadmap how to make this. Hope you can do it. By the way, hello from Ukraine)
View attachment 5867277 View attachment 5867279
Click to expand...
Click to collapse
Please provide twrp link.
UNOFFICIAL TWRP RMX2170 TRIAL FOR ANDROID 12

			
				
give me
boot img .vbmeta and .persist img

Categories

Resources