yashsingh1/xdaforums huggingface dataset:
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Yes that is really cool stuff. I used the Version which Zackptg5 did for the Oneplus 7 series since I had a Oneplus 7 before which is dead now so I got a Oneplus 6t now.

Then of course I missed to have Dualboot on that so I tried to adjust the one from Zackptg5 from the Oneplus 7 series to the Oneplus 6 series.

This is really an Alpha stage of this mod now since I have not gotten everything to work as it should, also it seems to have issues when one of the slots is having Android 11 installed.

I am trying to fix all the things which are not working right now within the next days.

So one thing is that the Common data partition is not getting mounted from inside the ROM and I have not figured out yet what exactly is failing there.

The other thing is that it seems that sometimes for formatting of the partitions after changing to A/B/C Layout is not working so you have to manually do that. I have updated this information how to do this in the OP now.
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
I will push an Updated Version of the Dualboot-TWRP with some more nice features and hopefully some bug fixes at the Weekend I guess!
[OnePlus 6 & 6T Cross Device Development] RMarques:
Awesome job bud! Can't wait to have this at least on beta stage!
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Yes actually most thanks should go to user Zackptg5 who did that script for the Oneplus 7 series.

I just took it now and adjusted it for the Oneplus 6 series and will do some more adjustments and fixed now in the next days!
[OnePlus 6 & 6T Cross Device Development] koobie777:
The last one I used was dualsix which was looking very promising with a custom twrp too but failed to work with the 6T, would be cool to see the black opo themed twrp with this for sure. Very glad to see this is coming to light and will gladly test as much as I can, was also going to suggest what you did there with further instructions which is always a good thing. Keep up the good work!
[OnePlus 6 & 6T Cross Device Development] Causical:
Wow! This sounds like a very complicated thing to develop. Very nice work dude!
[OnePlus 6 & 6T Cross Device Development] HatRiGt:
This looks great. Gonna give a try. Thanks a lot for bringing this mate ?
[OnePlus 6 & 6T Cross Device Development] YousifG7:
could i suggest adding a ~48gb userdata_a and userdata_b option to the re-partitioning script for 128gb models so that we'd have a bit of a large space for each data slot and maybe leaving behind the rest of the space ~10gb for that commondata partition?... if not, is it possible to manually edit the script to achieve a similar result? Thanks in advance ?
[OnePlus 6 & 6T Cross Device Development] isoladisegnata:
Is It possible to have a video guide? Please?
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Hi! Thanks for your input. Yes, I can adjust that.
[OnePlus 6 & 6T Cross Device Development] YousifG7:
Thank you for putting this into consideration. I appreciate the work you're doing here, Best of regards.
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
I can do that later. First I have to fix some other things in the script to get everything working correctly. As of now by some reason the script is failing when trying to format the new partitions so that has to be done manually and is of cause not the best thing so I am focusing right now on to getting this fixed!
[OnePlus 6 & 6T Cross Device Development] brajesh.sharma87:
Yes, give priority to making it better for now. Havent tried it yet but will do it tonight. Good job done.

Please tell if following combination of rom can work:

1. AOSP 10 based rom and AOSP 11 based rom

2. OOS 10 and AOSP 10 based rom

3. OOS 11 (once released) and AOSP 10 based rom

Is there any complications with kernels or they totally are independent

How do you handle booting into each rom, is it handled by twrp?
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Hi!

Yes it works with AOSP 10 and AOSP 11 based ROM.

Yes OOS 10 will work as well I guess the latest OOS Beta had some issues when used with Dualboot so I guess there needs

to be some more changes done here in order to get it better working with future OOS 11 updates and so on.

Yes you switch the slots (A to B or B to A) from within TWRP and boot to system then.

There is actually a way to create a shortcut on your Homescreen which will boot you to the opposite slot done by another user for here.
[OnePlus 6 & 6T Cross Device Development] Causical:
Great Questions!

This is incredibly cool and the stuff in that link is dope af!
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Yes, best is to wait for my updated Version 2 which is almost done sine this Alpha Version 1 needs too much manual interactions to get everything working as it should!

So stay tuned.
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Yes exactly so from tmp etc it is only needed the first time or when you want to repartition.

When reflashing it later you csb flash it from internal Storage or Common Storage as well.
[OnePlus 6 & 6T Cross Device Development] jukyO:
Question, [MENTION=9574498]Wishmasterflo[/MENTION]

I Want to keep current stock Oxygen OS,so will this work:

1. Backup current OOS with TWRP

2. Backup internal phone folders to PC

3. Install Dualboot TWRP and do repartitioning as described in the OP

4. Copy TWRP folder backed up in step 2 to the internal storage of phone from PC

5. From TWRP, pick restore backed up in step 1, can I pick from TWRP where to restore?

6. Install other ROM as described in the OP
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
I am not sure if that will work. I have never used the Backup/restore function within TWRP. I use Migrate to have all my data backed up.
[OnePlus 6 & 6T Cross Device Development] jukyO:
Application?
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Migrate
[OnePlus 6 & 6T Cross Device Development] koobie777:
When it comes to twrp backups all you need is data backup and that's it, I used migrate for a long time then I started using just data and it works better than migrate imo but I haven't tried data backups in oos yet just lineage or aosp based roms.
[OnePlus 6 & 6T Cross Device Development] jukyO:
Problem is, android data backup is not done for all the APKs, at least not for me.
[OnePlus 6 & 6T Cross Device Development] koobie777:
Any specific ones? Or are you trying to backup system apps too?
[OnePlus 6 & 6T Cross Device Development] jukyO:
E.g Aircash; Some banking apps; BBS; Brave; Shazam.....
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
New December Build is up Dualboot TWRP v3.3 :)

Changelog

12/01/2020 - 3.4.0-0 v3.3

- Added to flash Magisk Canary 20422 on Android 11 automatically

- Added mount file to mount Android Data to Commondata (still Beta/Test)

Download here.
[OnePlus 6 & 6T Cross Device Development] mitchst2:
What does the Android Data to common data mount mean to the user?
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Hi!

That should mount the Android/Data to the Common Data partition so that all Program Data is shared on both ROMs through the Common Data partition but that still needs fixed/adjustments and is not really tested yet.

I just put the script and option to do that in the latest Update now. Also that option is only coming up on the initial flash of the Dualboot-TWRP.
[OnePlus 6 & 6T Cross Device Development] meistr91:
Hello @Wishmasterflo i have tried to update to version 3.3 from version 3.2 and i got option to choose like encryption and su, after choosing an options i got an error and installation was aborted. I have tried to flash it from /tmp too but same behavior.. what i want to say that with version 3.3 repartitioning is necessary i think
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Hi! No if you were on Version 3.2 before there is no repartitioning needed when going to Version 3.3

Do you have a Oneplus6 or 6t ??

Can you pull the recovery.log from /tmp after getting the error in TWRP and attach it here/send it to me? Then I can have a look what is going wrong there.
[OnePlus 6 & 6T Cross Device Development] meistr91:
Im having OP6, it might be because im running low on storage?
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
OK I am on a OP6t so could of course be that I missed to update something in the OP6 Version though.

If you still get that error please share your recovery.log file from /tmp after getting the error in TWRP.

Yes of course it could also be due to low of storage since it is copying/Installing files to the Storage. So just try again when you have cleaned up the Storage perhaps. :)
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Hi all :)

FYI

I have had some issues to edit/update the information in the OP. Looks like it was due to strange formatting orsomething so I removed everything and did it again.

Then I recognized that I could not use more than 2000 characters in the Post so for now I had to shorten it a lot and have removed a lot of informatrion in the OP now like Installing instructions and the rest of the older Changelog.

I will rewrite that all later today in a better way and in some way include everything again in the OP and also adjust the formatting of the Text but now at least the latest Changelog is with there and the correct download link to the latest 3.3 Version!

Stay tuned!
[OnePlus 6 & 6T Cross Device Development] meistr91:
Hey i have tried and getting same error, seems from recovery log something with my empty space?
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Thanks. Let me check!

OK got it. Guess it was my fault that I had missed something when updating the script for the Oneplus6 series so nothing to do with your storage space on the device.

/tmp/updater[308]: syntax error: unexpected 'fi'

I will fix that error now and re-upload the Dualboot TWRP for Oneplus6!!

EDIT: OK fixed now. Please re-download the Dualboot-TWRP for the Oneplus6 from here now and try again!
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Hi!

OP information is updated now to the latest one!
[OnePlus 6 & 6T Cross Device Development] mitchst2:
That would certainly be a great addition
[OnePlus 6 & 6T Cross Device Development] mitchst2:
Might be of interest to you

https://xdaforums.com/t/recovery-3-...-twrp-recovery-for-oneplus-6t-stable.3861482/
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Yes thanks I saw that. Have downloaded it and already implemented that for the next Version of my Dualboot.

Ohhh guess I was too fast here when I tried to update the TWRP to the latest Version from Mauronofrio and as well tried to set the dark themed TWRP to it since now I can not boot into TWRP at all.

Have to reinstall everything from scratch later today but then I have the possibility to test some other features as well since these only can be test when doing a repartition. :)

Stay tuned!
[OnePlus 6 & 6T Cross Device Development] YousifG7:
thanks for the continued support, the work you put in is appreciated and good job for making this mod stable. cheers
[OnePlus 6 & 6T Cross Device Development] alp47470:
I had a quick querry.

So i wanted to install OOS on Slot A for example and on Slot B MIUI Port Rom.

Now the port rom installation requires to boot to bootloader in order to flash it. So my question is can i reboot to bootloader after flashing your recovery and force reboot back to twrp and continue further process?

Please let me know more about it.
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
I have never tried with MIUi so just give it a try.
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Short info Update:

I have build an Updated Dualboot-TWRP Version which is updated with the new TWRP 3.4.0-11 .

I have not uploaded it yet since I want to wait until I have that with the black theme as well since that is of course in the normal TWRP blue now!
[OnePlus 6 & 6T Cross Device Development] jhedfors:
Is there a way to remove the PIN/password without removing fingerprints? It is easy enough to add the PIN, but the fingerprints take a long time to re-add.

It would be cool if you could remove PIN and reboot to other ROM with one-click.
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Hi!

No that is not possible. Sorry.
[OnePlus 6 & 6T Cross Device Development] jhedfors:
Thanks... That's a bummer. If I format data, boot once and restore TWRP backup, my fingerprints are still saved, but there is no password/pin. So I thought there might be a way.
[OnePlus 6 & 6T Cross Device Development] urgali:
If you just remove pin/psw fingerprints should stay saved and usable as soon as you re enable pin/psw
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Also one thing to mention here is that on our Oneplus 6 with this Dualboot it is only possible to set a password/PIN when you are on OOS, it is not working on custom ROMs to set a password/PIN and I had no luck in getting this to work. Seems that it is something device specific on our Oneplus 6 causing it not to work since it was working on the Oneplus 7 where I adopted the initial Version of this Dualboot TWRP from!
[OnePlus 6 & 6T Cross Device Development] jhedfors:
From github page...

Only set a PIN/password in one of the ROMs leave the other without PIN/password!!!

OK. I was understanding that i could set a password as long as I removed it from the other slot first...

So if it am understanding this correctly, I wont even be able to boot the custom ROM if I set a password?
[OnePlus 6 & 6T Cross Device Development] jhedfors:
It indeed removes the fingerprints + face unlock when l removed the pin... They were not restored when I re-added the pin.

View attachment 5167441View attachment 5167443
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
As it is now it seems only to be possible to set a PIN/password in OOS ROM and not on any custom ROM.

That seems to be something device specific to the Oneplus 6 causing that it is not working on custom ROMs and I had no luck in getting that fixed.

Will update that info on the Github page with the next Update!
[OnePlus 6 & 6T Cross Device Development] koobie777:
Great work wishmasterflo! Seems the latest magisk beta and canary is working with a11. Since encryption only works for OOS on the dualboot anyways right now is it OK to release a version like the current one just with an updated magisk for dualboot a11? Or even remove the check since you'd essentially be able to use the same magisk for both now.
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
I just Updated the V4 here for the next release with the new Magisk 21.2 now.

I just test that successfully on Android 10 so that Magisk 21.2 get installed automatically from the Dualboot TWRP flasher.

On Android 11 I have it still to flash the 20422 Canary. So is the 21.2 working on Android 11 now?

If yes so then I will remove the Canary Version and just let the Magisk 21.2 get installed.

Guess I can release the final V4 Version in the next days. Have to test some more things here and get the TWRP Version updated with the black theme again. :cowboy:

EDIT: Yes indeed the new Magisk 21.2 is working with Android 11 and TWRP. Really great.
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
New Updated Version 4 :)

Changelog:

12/29/2020 - 3.4.0-0 v4

- Updated with Magisk 21.2

- Removed Magisk Canary 20422 since Magisk 21.2 is now working with TWRP and Android 11

Download link is updated in the OP.

So in this new Update the new released Magisk 21.2 is included which will work now with TWRP on Android 11 as well.

I have removed to flash the "old" Canary 20422 on Android 11 since this latest Magisk 21.2 will work on both Android 10 and Android 11 now!

I have not updated the TWRP Version itself now with the new one from Mauronofrio (3.4.0-11) since I want to keep the black themed TWRP for now and I had no luck yet in getting the new TWRP 3.4.0-11 Version updated successfully with the black Theme.

Enjoy and happy flashing!:cowboy:
[OnePlus 6 & 6T Cross Device Development] jhedfors:
This may be too much of a departure from the dual boot focus, but would it be possible to have an option to retain the stock a/b functionality but create a common unencrypted partition?

This is my first device without an external sd card which offered the benefit of being able to format the data partition, but leaving the external sd card (and it's contents) available.

Basically, I am wishing that the device could think that the partition is an sd card, allowing me to restore a TWRP backup after formatting the data partition.
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Hi!

Yes I got what you mean. I heard from someone else wishing that as well. I have to think how to implement that in a good way and how easy/difficult this is. :)
[OnePlus 6 & 6T Cross Device Development] brandon79:
Ok so maybe I'm doing something wrong. I'm hoping someone can help. I installed the dual boot twrp and formatted data. I went through all the instructions, disabled dm verity, disabled encryption, installed magisk. After my computer only shows internal storage still. But I proceeded and flashed my roms anyway, flashed kang os on slot A and havoc on slot B. Kang is android 11 havoc is android 10. After install I formatted data once again. Booted havoc everything went smooth. Then rebooted to recovery and booted kang that went fine as well. Then rebooted recovery and booted havoc. It booted bit had a force close on launcher and some other stuff sorry didn't get the names of those. So I rebooted recovery and wiped, I then had to set up everything on kang os again. But now when I try to boot havoc it bootloops and stays on boot forever. Tried flashing it again but still bootloops. I think it's something to do with only having internal storage show up, but not sure what. Can anyone lend some advice or help me out. It would be greatly appreciated thanks.
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Hi

The Bootloop has nothing to do with only showing Internal Storage.

Does it work when you do a Format Data on that slot which is Bootlooping?

So you dont see Common Data from TWRP or from the booting ROM?

Have you chosen to have the Common Data Partition during the first flash of Dualboot TWRP?

If you dont see the Common Data from the booting ROM...is Magisk showing as installed when launching Magisk Manager?

If yes do a re-flash of the Dualboot TWRP and you should see a line during flashing saying "Installing Commondata mount script".
[OnePlus 6 & 6T Cross Device Development] brandon79:
Ok so i went through the process again and i think the first time i messed up by noy copyin dual boot twrp to tmp the first time cause i had a lot more options on the intial install of dual boot twrp. I also noticed i had common and internal storage. flashed both my roms again rebooted to make sure i could boot both roms and i could. im now setting things up again. Thanks for the quick response and all the work you put into this.
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Great.

Yes during the initial setup you have more Options because of the repartitioning options etc so these are only during the initial set up.

During re-flash you choose for Encryption, Magisk etc only.

Have fun with Dualboot.

I am running Carbon ROM 10 and KangOS 11 right now.
[OnePlus 6 & 6T Cross Device Development] brandon79:
This is awesome got both roms up and running smooth. Thanks again for this dual boot twrp and all your work you put into it. Having two roms on this phone is something I always thought made more sense. Again thanks for everything.
[OnePlus 6 & 6T Cross Device Development] ed57:
Hi Wishmasterflo,

I look at your app since a while now and I'm wondering if this would be possible (maybe already asked before) :

If I set my OP6 with a dualboot + common data partition, would it be possible to restore a nandroid backup afterwards in one slot and boot from there directly? (that would avoid to set up a rom all over again from the start)

Thanks for this great app available for our OP6! 👍

Best regards
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Yes that should work. Have not tried it though as I am using Migrate to Backup my data and not nandroid Backup!
[OnePlus 6 & 6T Cross Device Development] jhedfors:
If you try this, please report back. I am curious about this too!

I am wondering...Can restore my current backup taken while encryption is on? ...
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Yeah. I am just on the way to implement this for a future update. About 80% done with that. Just have to add a few more things and then of course re-pratition my phone back to Stock and try that out.

Hope that I will have more time in testing that during next week.

Right now i am cleaning up old stuff from the Dualboot-TWRP and trying to implement that have an option to have a new partition (StockSD) on Stock layout which will be unencrypted!! :)
[OnePlus 6 & 6T Cross Device Development] jhedfors:
Awesome! Thank you for your excellent work!
[OnePlus 6 & 6T Cross Device Development] koobie777:
Thank you! One of the best things to happen to our device!
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Oh great. I saw that TWRP 3.5.0 is released now.

Will check that out for my next Update.
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
OK I have implemented now to have an option to create a seperate unencrypted "SDSTOCK" partition when on Stock Layout without dualboot.

Now I just need to test this. Guess I will have to fix some small bugs here and there but have no possibility to Test that now during the weekend but next week I will have time for it to test.

When that is done and working I will update the TWRP Version as well to the latest one TWRP-3.5.0 and some other small changes here and there.

EDIT: Yeah and now I managed to apply the nice black Theme to the new official TWRP 3.5.0 as well.
[OnePlus 6 & 6T Cross Device Development] jhedfors:
Thanks for the update! I am curious... What would be the difference between SDSTOCK and the "common partition" you have currently implemented? I was assuming they would be the same.
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Yes exactly these will be the same. It is just the naming I set for them so "Common data" when using Dualboot with A/B/C Layout and "STOCKSD" when using Stock Layout.
[OnePlus 6 & 6T Cross Device Development] meistr91:
Hey @Wishmasterflo happy new year! thanks for your work here, really appreciated!

just want to get clear wtih some things. About this new stocksd feature, as you and other stated above we will be able to use stock layout and have separate stocksd part, but in the case if i need to format data via TWRP I could do that and stocksd partition will be untouched?

if so, does formation needs to be done via dualboot.zip or it simple can be done via twrp?
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Hi.

Thanks Happy new year to you too.

Yes exactly that will appear as a seperate Partition in TWRP so if you format you Data/Internal Storage the other StockSD partition will stay untouched.

In order to get it with the new Version when I release it you will need to Format all your data/storage once to get it since it will remove the Main partition and create new ones.
[OnePlus 6 & 6T Cross Device Development] da_jan:
Hello @Wishmasterflo

I spent the whole day trying to get your TWRP installed. No success. I am on latest Stock ROM and TWRP 3.4.0-0-mauronofrio. I tried sideloading as well as copying your zip to my OP6.

Problem: whenever your installer asks me to select an option via the volume buttons +/- the device would not pass the input to the twrp shell.

I'm stuck here. pls help
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Hi!

Huh? That's intressting. I never had this issue. So when you press the vol+ or vol- button nothing happens?

You could check in the /tmp/recovery.log file if there is shown any error after you pressed VOL+ or Vol- .

That would perhaps give some indication of why it is not working for you.