yashsingh1/xdaforums huggingface dataset:
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] alukarulz:
1. Unencrypt Device (will wipe everything)

2. Open Dualboot Patcher

3. Open Menu and choose Patch Zip FIle.

4. Select the Primary Rom you will be using. Optional select roms you flash with your rom (kernels, magisk, etc)

5. Flash the primary rom created using TWRP.

6. Dualboot Patcher will now work.

This will delete everything. You must save your files or use Titanium Backup.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] david19au:
I also unencrypted my phone right after getting it but then I found out that Magisk isn't working when I'm unencrypted. That's why I encrypted my phone again
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] ztywyj:
Well I don't know what your problem is but magisk 13.1 works fine on my device, both stock rom and rr.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] david19au:
When you're unencrypted, Magisk won't work (or at least it did not 2 weeks before)
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] UniX1rm:
I think the encryption stuff. Has anyone been able to have oos working as primary and Los and secondary?

Also, how about patching roms with the aroma installer do they patch or not ?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] yshalsager:
Maybe

You can flash patched aroma zip from recovery
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] alukarulz:
aroma patched works. Tried it with xXx
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Interceptor777:
I deleted the lines in updater-script and now I get this, this is for every ROM in both primary and data slots, phone is unencrypted running stock 4.5.5 with magisk
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] UniX1rm:
Do you take out the same exact lines or anything between those lines? There were two lines that started with "assert" to the "ifesle"?

---------- Post added at 10:23 PM ---------- Previous post was at 10:22 PM ----------

Magisk doesn't work with decryption. I am trying RR along with stock decrypted! Still patching! Which lines did you take out exactly and which rom were you trying to modify?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Interceptor777:
I had it working before with stock OOS on primary and RR with Magisk on Data 1, no issues. I tried out F2FS then switched back to ext4 and now it's giving me this. I removed only the lines listed in Post#2, also using ResurrectionRemix.

This error happens with every zip that I patch with the app.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] UniX1rm:
Interesting. I don't get that then, when i try to flash rr zip on data after removing the lines, i get stuck. I bypass the error part, but then it kind of gets stuck on patching system unconditionally! I kind of gave up and installed RR as a primary rom and wiped the dualboot. I'll try again later. Also I am 9.2.0.r221.g4661ff8e build because the latest one crashes!
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] caki25:
Hm, can't install any secondary ROM... Primary went fine, but can't add a new one... Getting this error:
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Dns94:
Read the last 4 pages, and as far as I know this seem very unstable, so I should wait before trying it right? As I can't afford to let anything go wrong.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] daveve:
I have the same error.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] yshalsager:
Remove assert lines from updater-script like post 2
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] caki25:
Cool thanks and sorry for missing this info. Will try. ?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] yshalsager:
Where is your thank? I can't see it on thanks button :D
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] caki25:
Oooops ? you're right ? well deserved ?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] VampireHeart:
I'm waiting for new release that don't crash, many users are having that issue.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] UniX1rm:
I am having an impossible time getting this to work. Any pointers as far as what is your setup if anyone got it to work?

What is the base rom before installing it and which version (it keeps crashing).

What is the other rom flashed and which slot? secondary, data etc.. ?

Edit: So I have the RR as my primary with whatever kernel it came with, It has magisk pre-installed. I patched xxnolimits as a secondary. Then flashed it via twrp. Flashed successfully but cannot reboot. So used the utilities and switched back to my primary and booted, but couldn't get into the secondary yet!
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Interceptor777:
So I'm running RR as Primary decrypted and just installed xXx ROM as data1 and now the phone won't boot, the dualboot utilities zip refuses to change the ROM to boot, it ends in error code 1, now my phone is stuck on OnePlus powered by Android logo.

I can still get into TWRP, what do I do now?

EDIT: re-flashed primary and now it's fixed.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Eliminater:
[MENTION=4277844]chenxiaolong[/MENTION] needs some logs to fix the issues [MENTION=6084385]yshalsager[/MENTION] do you post any log to the main thread?

Regards
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] VampireHeart:
In that case you must start in TWRP then choose install, navigate to Multiboot folder and changing the tipe of file in Image, select the primary image, now reboot.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Interceptor777:
Ah, so the utlities zip basically swaps out the boot image for each ROM when you choose a new one?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] fenchel01:
Is it possible, to flash an aroma-based patched ZIP as secondary Rom?

Gesendet von meinem ONEPLUS A5000 mit Tapatalk
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] yshalsager:
Nothing till now. I'm not in my town

Yes you can but flash using recovery
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] UniX1rm:
I flashed one with aroma successfully through the recovery but cannot boot! It gets stuck at the oneplus logo. but when i switch the the primary I can boot up fine!
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] VampireHeart:
Utilities restore only the primary ROM if I'm remembering right, through TWRP you choice manually which ROM you want to boot in case of problems.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] daveve:
So far i got it working that i see a primary rom and a second rom in the app. I installed rr as second but it doesn't start up it keeps hanging on the Android logo. So I had to start in recovery again. And start primary by using the utilities zip. Btw i removed the lines mentioned in post 2.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Interceptor777:
Is there anyway to pass SafetyNet on a data slot ROM?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] Supersaiyan.IV:
Great work! I hope that the x86 emulation experiments can commence soon!
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] VampireHeart:
Downloaded last release but have same problem, opening the tab ROM the app crash. :(

I don't know which is the cause, never happened before on other devices.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] daveve:
You need to install on primary a rom. Than set-up and install patcher app. Patch the same zip you just flash in primary. Dirty flash this patched file and the app will work. From there on I am stuck because second rom install fails. Hope it will help you further.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] VampireHeart:
Thanks i tried but it won't work, i have RR Official like primary rom, I patched the ROM file and then try to flash on TWRP, i received trust zone error.

Deleting the string of trust zone with mixplorer editor I retried to flash on TWRP but I get error 1, this for two times, is very very strange.

At this point I don't know if can depend from Magisk or other problems.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] daveve:
I have no limit by xxx as primary and rr as secondary. It boots up the primary and I can switch to the secondary in the patch app but when I start up the secondary it keeps hanging on Android logo.:confused:
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] UniX1rm:
Same thing here but the other way around. RR is the primary.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] VampireHeart:
A this point I think more problems depends from TWRP and data partition decrypted, never had this problem with dual boot patcher before.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] prile97:
So i am reading alll these posts.... Is this patcher working or what? Can anyone boot 2 roms or more successfully?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] prile97:
OK so i've successfully installed xxx as primary ROM and i can enter the ROM list. Removed assert lines from the RR and patched it for dual, when trying to flash it it gives me the error provided in the screenshot. What am I doing wrong?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] fenchel01:
Look at Post #2 :)

Gesendet von meinem ONEPLUS A5000 mit Tapatalk
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] prile97:
I managed to do it. But post #2 says that I should remove 1st and 3rd line in updater-script which did not work for me. In fact, I removed the 2nd line as well, and tried to flash RR as a dual ROM. That also did not work, idk why. So I patched rr, SuperSU and gapps for data slot 1, tried flashing in recovery and finally succeeded.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] monkeytools:
I get the same thing hit ROMs and app crashes. So did some hunting and came up with some things. Here are some screen shots.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] prile97:
You have to patch your primary rom in order for the ROM section to work in app. To do so, flash your ROM like you would usually do it, then open the patcher app and patch your rom. After that, reboot to recovery and DIRTY flash the patched rom over the regular one. Then, the rom menu will work. Hope it helps

---------- Post added at 07:18 PM ---------- Previous post was at 06:43 PM ----------

Przemyslaw Grzegorzky:

Ok, so i see there is a lot of confusion regarding making this work, so i decided to write step by step how i did it. It was very frustrating to figure it out, and i can only confirm that it will work if you do it EXACTLY as i did it.

First and foremost, you CAN'T do this on stock OOS as it forces encryption. You NEED to choose a custom ROM like xxx or RR. So i chose xxx as my primary, and RR as my secondary ROM. Also you need the patcher app and utilities zip.

1.In TWRP, clean flash your primary ROM (note that i chose xxx which comes with supersu, if you chose another ROM, make sure that you have supersu flashable zip on your device).

2.Boot your ROM

3.Open the patcher app, don't press on ROMs list just yet. Instead, go to "patch zip file" and there select your primary ROM zip file. Under partition tab, leave it to be "primary rom update" or smth like that.(Note that if you are installing a ROM like RR which comes with separated gapps and supersu, that you need to patch those zips as well).

4.After the patching is done, reboot to recovery and DIRTY FLASH the patched ROM zip.

5.Reboot

6.Now ROMs list should be working in the patcher app.

Now for the second ROM. I noticed that if you want to install it as a dual rom, it does not work. Instead, it did work if you patch it for data slot. Here is what i did.

1.Download the desired second ROM.

2.Open patcher app. Patch it for data slot (it will ask you to type in data id number, smth like that, just type 1).

3.Now transfer the patched ROM file to your PC (there is a method without PC, PM me and i will explain)

4. In your PC, open patched ROM zip file and under META-INF->com->google->android find the file called updater-script. Edit it in your favourite note editing program (i use and recommend notepad++) by deleting the first 3 lines(2 lines start with "assert" and 3rd one is starting with "ifelse"). Save the file. It will prompt you to update it in the archive, click yes.

5. Transfer the patched ROM zip back again to your phone.

6. Reboot to recovery and flash your patched ROM zip. Do not reboot just yet.

7. Now flash utilities zip. Aroma should start and you should see primary and data1 ROMs. Select data 1 ROM and "switch to" button. After that is done you can just reboot and it should start booting your second ROM for the first time. Be patient as the first boot lasts a bit longer.

That's it! If you've understood and done this exactly how i've written it here, you should have 2 ROMs successfully installed. If this was helpful to you smash the thanks button, if not, PM me and i will try to sort it out. Cheers!
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] daveve:
I have the same but for me only primary boots up and second stays on Android logo and don't boot. I also removed the 3 lines in post 2. It doesn't say remove 2 lines but says remove lines like this. I was also confused and tried finally the third line also.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] prile97:
Try doing it again using my steps. Idk what else to say. I'm using xxx as primary and rr as second and both work. So that can only mean you did smth wrong.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] UniX1rm:
Did you have to decrypt everything before doing this, or we're you originally decrypted ?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] prile97:
I was decrypted since i moved from stock oos to xxx a few days ago.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] UniX1rm:
Alright, I'll try again for the 500th time. Question, which apk did you use? is it the official or from the thread here?

Thanks,
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] monkeytools:
Ok so what if I want stock rom as primary. Never mind reread post can't use stock rom. I'm out until they find a work around. Thanks
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] prile97:
What apk are you referring to?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] VampireHeart:
Finally got working the tab of ROM like suggested, reflashing the primary ROM pathced from the app, but I'm not able to install others ROM, all end with error of trust zone, so I deleted that line in update script but now all give me error 1.

I think that it isn't only a bug of the app, there's also some bug with TWRP and how manage partitions.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] HuskersRule:
I'm unable to patch the ROM, i get different error codes (0, -1, 200, etc.). I'm using xXx as the primary. I'm not encrypted.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] prile97:
1. Did you choose data slot for second ROM?

2. Did you remove the first 3 lines in updater-script?

I was also getting error 1 but when i did it exactly like i wrote a few posts up there, it worked. Idk man, try again.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] VampireHeart:
Yes thanks, I every time flash in data slot, from OnePlus 3T, don't tried to delete all the 3 lines because I updated AICP ROM (primary) and reapplied root so to use Dual Boot Patcher o need to reflash patched zip, I don't want to spend more time in this, I will wait for a stable application.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] UniX1rm:
Nvm. I had an issue before but I saw the latest update on their website for July 14th. Got it all working. Candy rom is working without taking any lines out. I just had to uninstall magisk for SuperSU, but magisk was pre installed and everything worked fine.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] JhinCuatro:
Omg so many replies and people not getting this to work.... Does what the original post says work 100% or must things be done differently or edited? What is a 100% WAY I can get things to work? Do I really have to remove encryption? The lack of uniformity makes me uncomfortable to try this out....
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] HuskersRule:
Success!!

Using the Windows dual boot patcher I was able to successfully patch the roms, for whatever reason the app wasn't working. I'm running xXx primary and crDroid secondary (largely for the sound upgrades). I did not have to delete any lines from the crDroid rom.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] UniX1rm:
I finally for it to work..I am running XXX primary and candy and RR on the data. Patch gaps and su with the same ID and flash via recovery. I was decrypted. Not sure about the encryption.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] prile97:
You NEED to be decrypted.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] JhinCuatro:
So you followed the aforementioned steps without deleting any lines? > I know I CANNOT delete any lines due to the lack of clarity. It says first 3 lines, and even says what the lines START with. HOWEVER, on my RR UNOFFICIAL, only the first 2 start with the assert, and the 4th one starts with ifelse, aka what the "3rd" line is supposed to be! Regardless, using dualboot is a *****, OP instructions totally unclear, and glad ya'll could give instructions. >Still gonna continue with my operation without removing lines, let's see how this goes. *EDIT* Failed, looks like I'll move on to cdDroid or RR Official.

---------- Post added at 05:41 AM ---------- Previous post was at 04:56 AM ----------

HOLY **** FINALLY. Got it working, but deleted first 4 lines, aka, the lines ASSERTED all the way thru ifelse (the 4th line). Used note++ too btw, so I'm pretty sure it was just me using RR unofficial that i had 4 lines. This should help anyone that plans to dual boot RR unofficial. Thanks dude with peter griffin profile. 1+T xXx Primary, RR Unofficial data slot. *Still Curious on how to add/patch gapps for RR/unofficial....I'll await your response to be on the safe side?

---------- Post added at 06:21 AM ---------- Previous post was at 05:41 AM ----------

So, whenever I upgrade my primary ROM (xXx) would I just flash a patched version of the new one? Or do i have to install it first?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] negrata:
I read and read but my english is not good. I don't have clear if is possible to get a stock rom and a custom rom.

Enviado desde mi ONEPLUS A5000 mediante Tapatalk
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] prile97:
When you want to upgrade ROM, download the new version on the ROM, patch it and flash it. That's it.

---------- Post added at 09:07 AM ---------- Previous post was at 09:05 AM ----------

NOT POSSIBLE.

Hope that was clear enough....

---------- Post added at 09:09 AM ---------- Previous post was at 09:07 AM ----------

Just patch the gapps for a data slot and flash them in recovery. The procees is the same for any flashable zip, including gapps and supersu.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] negrata:
Pretty clear, thanks and sorry for the inconveniences.

Enviado desde mi ONEPLUS A5000 mediante Tapatalk
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] prile97:
Ok i also noticed a bug. If you use the same PIN for both ROMs, you will not be able to unlock one of the ROMs, the PIN just does not work. I did not try with different PINs tough.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] fenchel01:
I confirm. If you use fingerprint to unlock, it still works

Gesendet von meinem ONEPLUS A5000 mit Tapatalk
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] prile97:
Yes but you can't unlock it with fingerprint if you restart the device, you must input pin/pattern/password. :)

---------- Post added at 03:51 PM ---------- Previous post was at 03:50 PM ----------

I'm gonna try installing third ROM later this day, wish me luck haha
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] fenchel01:
In rr, you can define to use the fingerprint for the First time as well. You just must enter the sim-pin

Gesendet von meinem ONEPLUS A5000 mit Tapatalk
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] prile97:
I know, but i think that is a bit unsafe so i don't use it
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] shadowstep:
MultiROM for OnePlus 5 incoming! :)
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] pegasus5862:
manage to install 6 roms but some query

ok i manage to install 6 six roms with this, but i have a query abt something

1. unlocking is not possible with fingerprint pin, so i haven't made any unlocking thing.

2. abt whats app, in every rom i have to verify whats app everytime i switched to. its bit annoying

anu solution abt this ?:)
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] prile97:
I think there is no solution
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] UniX1rm:
I have about 2 roms. For WhatsApp. Backup a working version with titanium backup then restore in the other rom. It is going to work, you won't have to re verify every time but you won't have the same data. However, app sharing feature will require you to re verify every time you boot into another rom.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] jayfallen:
oos 4.5.6, superSU 2.82 and boeffla kernel

installed dual boot patcher app, root access granted.

when I open the app, switch to ROMs, it just quit...

it says cannot connect mbtool...as the screenshot shows.

any idea what caused this and how to fix it?
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] ali nz:
Go to data/system and then delete all files which start with locksettingxxx
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] UniX1rm:
Stock has a problem. You have to re-flash your stock rom patched.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] faizul134:
how to patch stock rom. I am using stock rom based experience OS as primary. but same problem. don't go further. app closed.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] UniX1rm:
Ok so, uninstall the patcher.

Go to the website and download the latest one. You can Google dualboot patcher apk.

Install the app.

After installing don't click on roms. Go to patch zip files. Then patch your rom. Then it will ask you where you want to save it. Pick a place and save then click on the check mark to start patching

Then reboot into TWRP. And go to install and flash the file that was produced by the patcher wherever you saved it.

The then reboot. And open the dualboot patcher app click on roms and you'll be all good to go with your primary. If you need help I can help you on Hangouts.

Also forgot to mention you can patch the file via a Windows patcher available on their website as well.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] penciluser:
Tried every method but it doesnt seem to work. When patching xXx rom and rebooting to twrp, twrp says the file is corrupted and doesnt flash.
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] yshalsager:
try to share whatapp data between two roms from dbp settings
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] faizul134:
Uninstall

How to uninstall multiboot? I have wipe all secondary rom. Then flash the primary room again without patch. But without utilities zip, I can't boot into rom. Want to go back
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] UniX1rm:
Doesn't work. Had tried it already and it has to re-authenticate every time with the sms verification. Titanium Backup and Restore works just fine if you restored
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] yshalsager:
You will find first rom boot.img in storage/multiboot/primary, flash it via twrp then flash utilities zip and full wipe secondary rom and primary multiboot files only
[OnePlus 5 ROMs, Kernels, Recoveries, & Other Devel] milantenhave1:
I have a problem, I want to patch the zip file of the rom, so I installed a clean version of RR, then I installed the dual boot patcher apk and selected patch a zip file, then I select the zip file and made it a primary zip file. Then I wanted to patch it but the app crashed. now if I select the zip file again the app crashes every time...

Does anyone know what I am doing wrong? Is there another way to dual boot?