[Guide][How to flash magisk v14.0+ in non-primary ROMs flashed by Dual boot patcher] - Magisk

Here I'm going to explain how to flash magisk or use magisk with magisk modules in non-primary (i.e. secondary, data, ext-sd slot) ROMs in dual boot patcher environment.
What's needed?
ROM or boot.img (Which should be flashed as non-primary ROM)
Magisk manager app
X-plore file manager (or any other file manager)
Now,
Install magisk manager app (latest)
Extract boot.img from ROM mentioned above
Now,
Patch boot.img using using magisk manager app,
To do so, open magisk manager, go to install/install/patch boot image file so file manager will be opened up, select extracted boot.img file.
Magisk will patch it then and save file in sdcard/MagiskManager folder with name patched_boot.img
Now,
Rename patched_boot.img to boot.img & replace boot.img of ROM.
Now flash ROM using dual boot patcher app.
Reboot
Non-primary flashed rom will be booted
Here install magisk manager app
Download magisk v14.3/ v14.0 from install/install/Download Zip Only
(Or you can download it from official magisk xda thread)
Flash magisk.zip manually just like flashing any other module.
Reboot
Done.
Enjoy magisk in non-primary dual booted ROMs!
Thanks!
Better & best method is here:
https://forum.xda-developers.com/showthread.php?t=2447534&p=74551998

Method 2..
Just patch Magisk v12.0
Flash from dual boot patcher
Reboot to non-primary ROM
Install magisk manager app (latest)
Flash magisk v14.0/14.3 manually
Reboot
Done.

How to flash magisk 14 manually in 2nd method?

lolnwl said:
How to flash magisk 14 manually in 2nd method?
Click to expand...
Click to collapse
Just open magisk manager app & flash magisk 14.3 just like flashing any other module.

lolnwl said:
How to flash magisk 14 manually in 2nd method?
Click to expand...
Click to collapse
Better try this..
https://forum.xda-developers.com/showthread.php?t=2447534&p=74551998

And can you give advice on how to install magisk on primary ROM (I mean after I installed Dual patcher)?

@dr.bathman Does "Flash from dual boot patcher" is same as flash rom on dual boot patcher app?

exodius48 said:
@dr.bathman Does "Flash from dual boot patcher" is same as flash rom on dual boot patcher app?
Click to expand...
Click to collapse
Download magisk v14.3 from attachment of below link
https://forum.xda-developers.com/showthread.php?t=2447534&p=74551998
Flash it just like flashing any other zip file (means patch it & flash)

little help
i did as mentioned in the DPB thread about flashing the modified magisk 13.4 for non primary rom and everything is ok but i dont know i try to install modules like viper4andrpod or adblock its there in installed but i cannot see viper in my system or can activate the adblock by terminal android ... should i patch the modules with the dual boot patcher !!?
thanks in advance

dr.bathman said:
Download magisk v14.3 from attachment of below link
https://forum.xda-developers.com/showthread.php?t=2447534&p=74551998
Flash it just like flashing any other zip file (means patch it & flash)
Click to expand...
Click to collapse
Do you have v14.0 stable?

exodius48 said:
Do you have v14.0 stable?
Click to expand...
Click to collapse
No, but v14.3 is working perfectly.

how i can activate the modules in the secondary rom should i patch the modules ?

I can't find the path to patch the boot img in magisk manager 5.5.5 (magisk 15.3)

Simonex16 said:
I can't find the path to patch the boot img in magisk manager 5.5.5 (magisk 15.3)
Click to expand...
Click to collapse
Open magisk manager, click on install. It will ask you if you want to patch a boot.img.

kloosgj said:
Open magisk manager, click on install. It will ask you if you want to patch a boot.img.
Click to expand...
Click to collapse
It asks me to flash magisk 15.3,nothing else

Easy step for Xiaomi MI Max2 & solution to lock screen issue.
--------------------------ROM1----------------------------
1.flash Custom-ROM-1 + flash magisk-v15.3-DBP-max2.zip--->reboot
2.setup Custom-ROM-1 + install DualBootPatcher.apk---->set kernel
=Now (Ramdisk is already up to date.)Status=
--------------------------ROM 2---------------------------
Patch Custom-ROM-2 with "DualBootPatcher-9.3.0.r409.g1ccd3798-win32.7z"
3.flash ROM-2_data-slot-1.zip--->reboot
4.setup ROM-2_data-slot-1 --->reboot
5.flash Magisk.v14.3(1437).zip
-IF Not show magisk'icon
5.1 install magisk-manager-v.555.apk
5.2 tap install update magisk.v15.3.zip
6.install DualBootPatcher.apk--->get Root -->set kernel
Note--Not try to pass safetyNet Check with "safetyNet Fix module".
https://mega.nz/#F!VuQmmKZS!qLT99EL17SKJ-7eevo9zzw
https://www.youtube.com/watch?v=yLSvCpZXZWI

Sorry need to ask the same: How can I install Magisk on my secondary ROM using DualBootPatcher? The "normal" way (patching and installing it) does not work - just brings me an error message.
Also installing MagiskManager and trying to install ZIP from there does not work.
So do I have to patch my secondary ROM ZIP with MagiskManage first and afterwards with DualBootPatcher and need to install the entire ROM again (loosing all data and settings)? Or can I install Magisk onto it somehow? (Reason is: 2nd ROM is RRemix and I cannot get root access besides using ADB and internal setting [which I did not try yet] - nothing worked yet to get it rooted!)

can Magisk 19.3 be installed

smallville7123 said:
can Magisk 19.3 be installed
Click to expand...
Click to collapse
Yes if you patch the bootimage of your RRemix ROM using Magisk. Then it can be used even with DualBootPatcher. But be warned! Do not update bootimage from within your secondary RRemix Magisk-rooted ROM - you won't be able to boot anymore afterwards (reflashing RRemix as secondary did the job and repaired it). If you want to update Magisk Bootimage you need to download it, patch your secondary RRemix bootimage with it and reflash secondary RRemix ROM completely using the patched bootimage.

I tried the first method and it worked thanks body.

Related

Magic v11 installation question

Hi, do i need install systemless SuperSU always in twrp before install magisk v11 if I want use new MagiskSU instead??
If I try install Magisk v11 with superSU uninstalled and phone unrooted TWRP give me error and installation fails and if I install superSU and after Magisk v11, Magisk manager say system is using SuperSU instead MagiskSU. How do I install Magisk with MagiskSU??
I have Samsung Galaxy S4 with optimized LineageOS 14.1
Read the pinned Magisk thread...
Unroot again using unSu by osm0sis (Google) before flashing magisk
Installation Instructions
If you're already rooted with MagiskSU, Magisk phh's superuser (not original), or Official Systemless SuperSU
Install/upgrade Magisk Manager from Play Store
Install/upgrade Magisk as prompted in the application
Reboot and you're done!!
If you're not rooted, or something went wrong and you need a clean start
(Recommended) Restore your boot image back to stock
Download the latest Magisk zip file
If you choose to use SuperSU (only support Android 6.0+), first flash SuperSU in systemless mode
Flash Magisk zip
Reboot, and update the stub Magisk Manager to the latest from Play Store
Click to expand...
Click to collapse
I read 200 times but when I install Magisk without SuperSU (because I want MagiskSU) TWRP give me an error and install fail... read my initial post first please....
Error:
Code:
! SU image mount failed...
! Please immediately flash SuperSU now
! Installation will complete after flashing SuperSU
[B]Updater process ended with ERROR: 1
Error installing zip file 'sdcard/Download/Magisk v11.1/Magisk-v11.1.zip[/B]
dhaern said:
I read 200 times but when I install Magisk without SuperSU (because I want MagiskSU) TWRP give me an error and install fail... read my initial post first please....
Error:
Click to expand...
Click to collapse
You need to FULLY unflash superSU using the zip that the other person told you to google.
PartyPlease said:
You need to FULLY unflash superSU using the zip that the other person told you to google.
Click to expand...
Click to collapse
Ok I will try unflash with the zip, I was using unroot inside superSU menu but installation instructions dont say nothing about the unflash with an extrenal script
dhaern said:
Ok I will try unflash with the zip, I was using unroot inside superSU menu.
Click to expand...
Click to collapse
Yeah that button doesn't work for systemless superSU. It doesn't roll back your boot.IMG like it should.
Worst case scenario, flash the stock boot.img and then flash magisk.
Thanks guys, I installed Magisk v11.1 with MagiskSU working, Magisk Hide enabled but I have CTS mismatch error now in Safetynet test. I guess I cant do nothing about this error. Optimized LineageOS 14.1 and Samsung Galaxy S4
EDIT: Finally I passed the Safetynet test (no CTS mismatch error) disabling ADB interface in developer options. Thanks for Magisk, amazing.
PartyPlease said:
Yeah that button doesn't work for systemless superSU. It doesn't roll back your boot.IMG like it should.
Worst case scenario, flash the stock boot.img and then flash magisk.
Click to expand...
Click to collapse
ahh, this would explain why my boot.img was not the same after "unrooting"! thanks for clearing this up for me...
dhaern said:
Thanks guys, I installed Magisk v11.1 with MagiskSU working, Magisk Hide enabled but I have CTS mismatch error now in Safetynet test. I guess I cant do nothing about this error. Optimized LineageOS 14.1 and Samsung Galaxy S4
EDIT: Finally I passed the Safetynet test (no CTS mismatch error) disabling ADB interface in developer options. Thanks for Magisk, amazing.
Click to expand...
Click to collapse
By disabling ADB interface, do you mean the USB debugging part? for some reason I am still getting Safetynet error.
vicky_ag said:
By disabling ADB interface, do you mean the USB debugging part? for some reason I am still getting Safetynet error.
Click to expand...
Click to collapse
Yeah I said USB debugging option, when I disabled this I passed Safetynet test.
dhaern said:
Yeah I said USB debugging option, when I disabled this I passed Safetynet test.
Click to expand...
Click to collapse
Thanks but doesn't seem to work for me.
dhaern said:
Yeah I said USB debugging option, when I disabled this I passed Safetynet test.
Click to expand...
Click to collapse
Thanks for this hint; got my build "passed" now appreciate it
What settings are you guys using in Magisk? I have disabled BusyBox, enabled Magisk Hide and systemless hosts. Superuser options are Access to "Apps and ADB" and Automatic Response set to prompt
I'm still having an issue installing Magisk on my phone with RAMROM V10. It gives me an ERROR 1.
It has been suggested that I should re-flash my boot.img with TWRP following the instruction:
Place your BOOT.img on your sdcard
Reboot into TWRP recovery
Tap "Install"
In the bottom right corner tap "Install Image"
Select your BOOT.img
Select the Boot Partition, then swipe to confirm Flash
However, when I follow the step, my TWRP cannot seem to find BOOT.IMG in my SD Card (I know it is there). What did I do wrong? Can anyone help?
i think the .img thingy is only for twrp.img files. You have to use another method to place your boot image like. -> make a backup of only your boot image via twrp backup function. Then duplicate that backup folder of twrp containing only the newly just regernated files, in the twrp folder. Then replace the su-modified boot file there with your original boot file, you obviously have to rename your boot image to fit the right name. (eg. with the logo image -> logo.bin changes to logo.emmc.win -> etc;.) Then use the twrp restore function to restore your "original" boot logo.
Hierarchy folder view would be like:
TWRP->folder 1 (original folder, in case something goes wrong)-> boot file and others
->folder 2 (our modified folder)-> files
sm00th4f3 said:
i think the .img thingy is only for twrp.img files. You have to use another method to place your boot image like. -> make a backup of only your boot image via twrp backup function. Then duplicate that backup folder of twrp containing only the newly just regernated files, in the twrp folder. Then replace the su-modified boot file there with your original boot file, you obviously have to rename your boot image to fit the right name. (eg. with the logo image -> logo.bin changes to logo.emmc.win -> etc;.) Then use the twrp restore function to restore your "original" boot logo.
Hierarchy folder view would be like:
TWRP->folder 1 (original folder, in case something goes wrong)-> boot file and others
->folder 2 (our modified folder)-> files
Click to expand...
Click to collapse
FIY: Flashing regular boot.img files works just fine with "Install Image" in TWRP (of course, YMMV, depending on your device).

Why magisk doesn't work with PIE Roms ?

Hi
Since PIE roms for santoni are available, some people, including me, can't root their santoni.
I don't know why.
Flash looks ok in recovery, but after reboot, Magisk Manager says that Magisk isn't installed.
I tried every solution found in forums here, but everytime, same result : "magisk isn't installed"...
So sad !
Could you guys (and girls) centralize here your solutions, step by step, from flash the rom to root it...
It would be so nice for helping desperate people...
I also tried SuperSU and am having the same problem. I've tried Magisk 17.1, 17.2 and the Canary build along with the newest SuperSU and the result is always the same. Flashes fine but Magisk Manager and SuperSU apps can't find root.
The weird thing is that Enpass always tells me that my device is rooted and that it's a security risk even though Magisk Manager can't find root.
Also, I'm positive Magisk is patching the ramdisk. The Uninstaller always finds a Magisk-patched image. I'm assuming something has to be happening during boot that's cancelling root.
Two things I don't understand :
- why some people, with same configuration, don't have root problem ?
- why, with same recovery, same flash method, root works with nougat/oreo rom, and doesn't work with pie...?
Just like that : do you think problem could come from the sd card ?
I'm using à 128 gb samsung sd-card. Maybe I should format it before trying again root ?
I'm not sure it's the problem, since I can flash all roms, but I could try...
Or flash Magisk from internal storage ?
Really desperate...
Hi,
I´m in the same situation like you.
Yesterday I made a new experience of that without solution:
- Backuped all
- Uninstalled magisk at twrp
- Installed santoni_twrp_silent 27_treble (recommended from dev to install havoc)
- Rebooted
- Formated data with factory reset
- Wiped vendor, cache, data... (everything)
- Installed havoc (version 2018-09-08)
- Rebooted
- Installed magisk at twrp
- Rebooted
Same issue like before...
If I try to install magisk on magisk manager I get the following log:
Copying image to cache
Device platform: arm64-v8a
Existing zip found
Extracting files
boot_patch.sh[73]: can't create /proc/self/fd/: Is a directory
MagiskBoot v17.1(17100) (by topjohnwu)
Boot Image Modification Tool
Parsing boot image: [/data/user_de/0/com.topjohnwu.magisk/install/boot.img]
No boot image magic found!
boot_patch.sh[91]: can't create /proc/self/fd/: Is a directory
boot_patch.sh[91]: can't create /proc/self/fd/: Is a directory!
Installation failed
It seems magisk can´t install correct in cause of failing permissions to create new directories. But why?
Edit:
I think there´s an old magisk information written in device system who has to removed manually, cause magisk uninstaller is not able to do
Edit:
I think there´s an old magisk information written in device system who has to removed manually, cause magisk uninstaller is not able to do
Click to expand...
Click to collapse
Ok, but I wiped AND format data of internal storage, same results.
Do you think I should format/wipe micro-sd too ?
newbie_or_not_newbie said:
Ok, but I wiped AND format data of internal storage, same results.
Do you think I should format/wipe micro-sd too ?
Click to expand...
Click to collapse
I don´t think so. Well, if you like you can try, but I think it´s an internal problem, not an external
So,
I tried another wipe of internal storage, made a format data with recovery. Then I flashed another pie rom, then magisk. And after reboot : tada !! still not working...
try with version 16.6 of magisk
Great news, actually my magisk works on Pixys 2.1!
I installed this twrp:
https://drive.google.com/file/d/1RR-8WMNSQgx6QzQv5U4i-sST1Af42nrI/view
What I did:
Uninstalled old magisk, rebooted to twrp, installed magisk 17.2, rebooted, installed magisk manager 6.0 and it works.
The only thing is I didn´t rebooted until now, maybe it still works after next reboot or not...
Lemmy554 said:
Great news, actually my magisk works on Pixys 2.1!
I installed this twrp:
https://drive.google.com/file/d/1RR-8WMNSQgx6QzQv5U4i-sST1Af42nrI/view
What I did:
Uninstalled old magisk, rebooted to twrp, installed magisk 17.2, rebooted, installed magisk manager 6.0 and it works.
The only thing is I didn´t rebooted until now, maybe it still works after next reboot or not...
Click to expand...
Click to collapse
I just tried this and it didn't work for me either. I tried multiple clean flashes, flashed MIUI then back to Pie and flashing things in different orders last night and nothing worked. I'm tired of messing with it. I don't know how to get logs without root. I've come to the conclusion that for now I either have Pie or root. Not both. lol
Me too. I stop trying every day a solution.
For the moment, no root for pie roms, so I keep staying with oreo roms (nice dot OS...) I can root.
Hope next builds of pie roms will accept to be rooted on our santoni...
You can try this:
1 Flash Magisk v 17.2, Reinica in fast boot mode, turn it off and turn the phone on again
2 Install Magiskmanager V6 APK, do not open and restart in recovery
3 Flash Magisk v 16.6 and ready...
It worked for me... important, do not update magisk... The root is lost again
Best regards
Thanks for your reply.
Did you have root trouble before trying your solution ?
yes, when installing Pie only. In oreo no, I tried it in havoc and pixys
Try OrangeFox recovery for flashing magisk.
hyperkin said:
Try OrangeFox recovery for flashing magisk.
Click to expand...
Click to collapse
That's what I've been using. Also tried TWRP. Neither worked for me. The flash always looks good with no errors but when I boot the ROM Magisk says it's not installed.
I just realize to make magisk work on pie roms i realize that i need dev miui firmware not stable miui firmware the file you need is named fw_santoni_miui_HM4XGlobal_8.9.20_3219de02e5_7.1.zip i not sure why stable firmware wont work on magisk.
i used OrangeFox Recovery Project R8.1 for recovery
1. install rom PixysOS 2.1 as normal (clean flash). Note: LineageOS 16.0 also works I have tested it
2. boot up os to make sure it that everything is working
3. then reboot back to recovery
4. flash firmware zip file named fw_santoni_miui_HM4XGlobal_8.9.20_3219de02e5_7.1
5. reboot to system making sure that it still boots in os
6. reboot back to recovery
7. flash magisk 17.2 beta i think magisk 17.1 also works
8. reboot up back to system
9. installl magisk manager apk
10. done
i just uplolad screenshot just to prove it
neijzen said:
I just realize to make magisk work on pie roms i realize that i need dev miui firmware not stable miui firmware the file you need is named fw_santoni_miui_HM4XGlobal_8.9.20_3219de02e5_7.1.zip i not sure why stable firmware wont work on magisk.
i used OrangeFox Recovery Project R8.1 for recovery
1. install rom PixysOS 2.1 as normal (clean flash). Note: LineageOS 16.0 also works I have tested it
2. boot up os to make sure it that everything is working
3. then reboot back to recovery
4. flash firmware zip file named fw_santoni_miui_HM4XGlobal_8.9.20_3219de02e5_7.1
5. reboot to system making sure that it still boots in os
6. reboot back to recovery
7. flash magisk 17.2 beta i think magisk 17.1 also works
8. reboot up back to system
9. installl magisk manager apk
10. done
i just uplolad screenshot just to prove it
Click to expand...
Click to collapse
Sounds like a plan! I'll try it out when I get home from work and let you know how it goes!
Trying asap.
Thanks
neijzen said:
I just realize to make magisk work on pie roms i realize that i need dev miui firmware not stable miui firmware the file you need is named fw_santoni_miui_HM4XGlobal_8.9.20_3219de02e5_7.1.zip i not sure why stable firmware wont work on magisk.
i used OrangeFox Recovery Project R8.1 for recovery
1. install rom PixysOS 2.1 as normal (clean flash). Note: LineageOS 16.0 also works I have tested it
2. boot up os to make sure it that everything is working
3. then reboot back to recovery
4. flash firmware zip file named fw_santoni_miui_HM4XGlobal_8.9.20_3219de02e5_7.1
5. reboot to system making sure that it still boots in os
6. reboot back to recovery
7. flash magisk 17.2 beta i think magisk 17.1 also works
8. reboot up back to system
9. installl magisk manager apk
10. done
i just uplolad screenshot just to prove it
Click to expand...
Click to collapse
This post right here works, thank you so much

Android PIE, Magisk and bootloop

After I've applied the OTA updated for Android Pie(V10.0.2.0.PDIMIFJ), using the classic restore image, apply OTA, patch image, reboot and profit. My phone started bootlooping, my first move was to restore boot.img, done, working again. Then I patched the original boot.img and flashed it using fastboot, the bootloop returned. Tried to clear ddr after flashing the patched image, reinstalled magisk manager, repatched boot.img, no success at all. Anyone having trouble installing magisk on PIE(V10.0.2.0.PDIMIFJ)?
Regards,
xdxita said:
After I've applied the OTA updated for Android Pie(V10.0.2.0.PDIMIFJ), using the classic restore image, apply OTA, patch image, reboot and profit. My phone started bootlooping, my first move was to restore boot.img, done, working again. Then I patched the original boot.img and flashed it using fastboot, the bootloop returned. Tried to clear ddr after flashing the patched image, reinstalled magisk manager, repatched boot.img, no success at all. Anyone having trouble installing magisk on PIE(V10.0.2.0.PDIMIFJ)?
Regards,
Click to expand...
Click to collapse
Search patched_boot.img for 10.0.2.0.PDIMIFJ and magisk manager.apk
Code:
fastboot boot patched_boot.img
Install magisk manager if is not already installed
Open Magisk manager and use Install option and select recommended instalation option
Reboot and you are rooted
fast_retina said:
Search patched_boot.img for 10.0.2.0.PDIMIFJ and magisk manager.apk
Code:
fastboot boot patched_boot.img
Install magisk manager if is not already installed
Open Magisk manager and use Install option and select recommended instalation option
Reboot and you are rooted
Click to expand...
Click to collapse
Hey! Actually the problem is related to some module i've installed, to remove this module I have to boot TWRP and remove magisk files, problem is that the \data is encrypted and current version of TWRP(or PBRC) is unable to decrypt . My only option so far is to format data. But i'm still waiting for a updated version of some recovery. Or any other ideas besides format.
Cheers!

Question How To Update System While Keeping Magisk

I have several modules in Magisk app and couple of apps having root authority after get root with Magisk (like Tasker). Now I want to update system while keeping my magisk apps and root-to-use apps working without any risk of stucking in reboot after install a new ROM.
Could I just firstly patch the boot.img of objective ROM in Magisk, replace the boot.img with magisk_pathed_XXXX.img and flash all the .img files needed? Will this way work? Or any other ways?
while flashing a newer rom version, the magisk modules are not deleted. After flashing the new version install magisk again and everything is working well. Before updatating the rom version "restore hide magisk by itself" if you have enabled it.
If you have modules like SmaliPatcher - These will cause a bootloop after update.
Disable all modules before any update and make sure to Restore the Magisk App if its hidden.
zuize411 said:
I have several modules in Magisk app and couple of apps having root authority after get root with Magisk (like Tasker). Now I want to update system while keeping my magisk apps and root-to-use apps working without any risk of stucking in reboot after install a new ROM.
Could I just firstly patch the boot.img of objective ROM in Magisk, replace the boot.img with magisk_pathed_XXXX.img and flash all the .img files needed? Will this way work? Or any other ways?
Click to expand...
Click to collapse
I take from your description that you are flashing a fastboot ROM. In that case you are correct, i.e.
take boot.img from new ROM, patch in Magisk and copy back into the original installation folder. Simplest is to rename the original boot image and name the new magisk boot image: boot.img
now you can simply start the installation batch and it will automatically install the magisk-patched boot.img
If you are using TWRP to flash the ROM this is not needed, just flash the corresponsing magisk installation ZIP/APK in TWRP right after the system update and BEFORE rebooting.
In addition @JazonX gave a good advice , but it really depends on which modules you use.

How install magisk on raphael/in with v13 android?

Hi.
How install magisk on raphael/in with v13 android?
mablue said:
hi
How install magisk on raphael/in with v13 android?
Click to expand...
Click to collapse
Why don't you try standard way:
- Extract boot img from your ROM zip
- Install Magisk app
- From Magisk app, use Magisk Install option to patch the boot.img (do not enable Recovery option)
- Flash from Fastboot the patched boot.img
Actually, instead of permanently flashing (you could also reflash the original boot.img if something goes wrong), first test just to boot with:
fastboot boot <patched boot. img>
That is actually the recommended method by Magisk GitHub documentation (not the old way through TWRP - and bcs of the lack of available custom recoveries for A12, A13)

Categories

Resources