yashsingh1/xdaforums huggingface dataset:
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Hi all!

New Version is uploaded now. :)

Dualboot TWRP v4.1

01/08/2021 - 3.5.0-9 v4.1

- Cleaned up stuff which is not needed anymore

- Fixed bugs that were existing in the repartitioning part

- Updated with official TWRP 3.5.0-9 and added black Theme to it

- Added option to create a seperate partition called StockSD when on Stock Layout

Download link is updated in the OP.

This Updated has a lot of changes and cleaned up things under the hood.

I found a few bugs which were actually existing since the beginningn when I took over this Dualboot-TWRP and adjusted it to the Onplus 6 series.

One thing to mention here regarding the new StockSD layout which will create a seperate partition called StockSD when you repartition to the new StockSD layout.

I got it to work and show up in TWRP but I have had no luck to get the ROM booted when the new StockSD layout is used.

Could be that I have to investigate further here, or it was just something here on my device.

Not sure what I missed there otherwise since I implemented it in the same was as the Common Data partition is used/set up when on the A/B/C Layout.

Note:

If you want to try the new StockSD Layout you should back-up all your data before doing this since that will re-partition your Datapartition to create a second partition so it will wipe all data!!!

Have a nice weekend and stay save!
[OnePlus 6 & 6T Cross Device Development] meistr91:
@Wishmasterflo hi, if want to change from a/b/c to a/b layout without new stocksd, do I need to reparation and format everything?
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Yes all layout changes do need a format since that will repartition the data partition.
[OnePlus 6 & 6T Cross Device Development] Tomkumato:
Dude you freaking ROCK this is some amazing work I never want to go back to stock.
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Yes I know. Thanks a lot. If I would not have had the Oneplus 7 with the first beginning of this mod from Zack I would never had tried to adjust this for the Oneplus 6 series but when I like lost my Oneplus 7 and got a 6t then I like missed dualboot on that so I began to adjust it to the Oneplus 6 and suceeded and I kind good way.
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Hi all!

FYI

I just found a small typo in one of the files for the 4.1 Dualboot TWRP for OP6 enchilada.

So I you have re-uploaded the new 4.1 Version for OP6 enchilada please re-download the file.

I have just uploaded a fixed new file again.

Sorry for that.

Also it seems that the new function with the StockSD layout is not really working correctly yet.

You can switch to that layout and have the new StockSD parition showing up in TWRP but all ROMs I flashed on that layout were just bootlooping and not starting up by some reason!

I have not found the reason for that yet but I will look into it and hopefully can fix it with the next release Version.
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Hi all! :)

New Update V4.2 is up. Download link is updated in the OP.

Changelog:

- Updated with Magisk 21.3
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Hi!

New Update V4.3 is up. Download link is updated in the OP.

Changelog:

- Updated with Magisk 21.4
[OnePlus 6 & 6T Cross Device Development] S1RR:
Greetings

I have a question. Would using a rom that has twrp included (inbuilt) pose a problem? I'm trying to use Havoc (on a) with KangOS and I'm unable to boot up. well ended up in an eternally stuck boot. i cant confirm if that was the problem or probably i made an error. ill try again.
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Hi!

No that should not be a problem. Just flash the Dualboot-TWRP after flashing the ROM.

If you get stuck at the boot logo it normally helps to do a FORMAT DATA on that slot so give that a try.
[OnePlus 6 & 6T Cross Device Development] S1RR:
Awesome. I'll Give that a try.

Thanks
[OnePlus 6 & 6T Cross Device Development] S1RR:
Hey

another quick question. In the instructions for setting up the partitions. The 10th step says i am to flash Dualboot-TWRP.ZIP again before flashing the first rom. Is the correct? And what about the second rom, do i flash Dualboot-TWRP.ZIP again just before the rom? also it states to format data before booting into first rom. Do i format data for the second rom before booting into that one also? I hope i explained properly :)

I was about to try all the combinations but i thought it would be better to just ask because im having a little trouble.

Thanks again
[OnePlus 6 & 6T Cross Device Development] S1RR:
No luck both roms still stuck on boot logo.

Not sure what im doing wrong.
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Which formatting did you choose? Ext4 or F2FS?

Please try with EXT4.

And can you please tell me which Layout and options you choose during first flash of the Dualboot-TWRP?
[OnePlus 6 & 6T Cross Device Development] S1RR:
Ive been using the a/b/(c) layout. f2fs for both slots but ext4 for the common storage.

Disabled encryption on both slots

I'll try ext4
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Yes OK then I think it is due to F2FS that seems not to work with all ROMs/Kernels so please try with EXT4 instead!!
[OnePlus 6 & 6T Cross Device Development] alp47470:
Got a quick question.

Can we use this twrp just as a normal TWRP ? Like other ones. It's latest and BLACK which i love. Let me know. Also thanks for dual boot twrp. I tried once and had a great experience (y)
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Yes you can use it is normal TWRP. Just choose to keep the Stock Layout during flashing this.
[OnePlus 6 & 6T Cross Device Development] S1RR:
well I tried ext4 and still stuck on the boot logo. It sucks cause this is definitely something I could benefit. I even printed the steps out and highlighted as I went through them. I even went back to 100% stock and worked my way forward from there. I've given it a rest and will try again probably weekend cause I need this type of setup in my life :cool: .

Thanks again!
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Hmm...strange.

Do you have the latest OOS Version flashed to both slots before starting flashing the Dualboot TWRP?

Are you on Oneplus 6 or 6t ?

Which ROMs did you try it with?

And did you flash the Dualboot-TWRP again after flashing each ROM?
[OnePlus 6 & 6T Cross Device Development] xdrc45:
@Wishmasterflo you ROCK! Your dualboot TWRP is awesome! Thank you for this. I'm running a 6T with OOS and Kang currently and loving it! I've had the 6T since it came out and have been running OOS since. I have wanted to try some custom ROMs but OOS has been pretty solid. Now with your dualboot You have given me the opportunity to keep OOS and try other custom ROMs if I want. It's amazing!

The only thing I may suggest, is that in your instructions... you should clearly say, that you need to change the TWRP file name to

"-fast-su.AB.zip" or whatever the set up configuration may be that best suits the user and device. Whether it's with, encryption on slot A and or B or a and or B or A and b or vise versa. Would it be possible to make a separate flashable zip of all the configurations that you have available. I'm sure that it would be a pain in the a$$ and It's just a thought. That whole part was a little confusing when I was setting dualboot TWRP up. Believe me... I know you have a lot going on and you are busy but that may make thing a little easier for some that are not so inclined and it keeps TWRP from formatting partitions after the initial install.
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Hi!

Thank you so much for your Feedback. Great that you loving it. I am running KangOS as well and Carbon ROM A10.

OK I will think about how to make the file name configuration perhaps a bnit easier.
[OnePlus 6 & 6T Cross Device Development] S1RR:
Greetings

yes I did flash the very latest OOS on both slots before flashing dualboot twrp

i'm on the 6t

i tried Havoc OS and KangOS.

Yes i made sure to flash dualboot twrp after flashing each rom

tomorrow will try again one thing as a side note i know i asked about this before havoc does have twrp preinstalled now ofcourse im flashing dualboot twrp right so i'm guessing maybe that does't pose a problem. i will still try two roms that im certain doesnt have twrp inbuilt .
[OnePlus 6 & 6T Cross Device Development] brandon79:
I have Havoc on one slot and Kang on the other. I never faced any of the problems you are. Just curious but on the initial twrp dual boot install did you copy the file to tmp and flash from there. I only ask cause I made this mistake when I first flashed dual boot twrp.
[OnePlus 6 & 6T Cross Device Development] S1RR:
Good point. I did copy it to the internal storage and it did copy itself to the temp folder and i flashed from there. I mean i was able to create all the new partitions i wanted perform all subsequent flashing. I will manually copy to temp on my nest try.
[OnePlus 6 & 6T Cross Device Development] brandon79:
I manually copied mine but if you went through the repartition process sounds like that was successful. Sorry for not being more help. But I do know Havoc and Kang both work with dual boot twrp.
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Yes so as long as you flash the Dualboot-TWRP after the ROM flashing it does not matter if the ROM has TWRP inbuild.

And you did a Format Data on the slots after all flashing?

Which Version of KangOS do you use the GApps or non-Gapps Version? If non-Gapps have you flashed NikGapps on that Slot afterwards?

Its so strange that it does not work for you, I have a 6t with my latest Dualboot-TWRP as well and I am running KangOS (non-Gapps with NikGapps) without issues. I had the issue with just hanging/looping on the ROM Boot screen when I had forgotten to to a FORMAT DATA on that slot and even (when using the non-Gapps Version) if I did not flash NikGapps before booting to KangOS it was not booting up as well but otherwise I did not have any issues with it it all and I am using the A/B/C Layout as well now.

I have really no clue now why it is not working for you.
[OnePlus 6 & 6T Cross Device Development] mrbox23:
I modified the partition sizes to 90G/20G without common data. Will this break device if I apply it? Also why do you recommend disabling verity and force encryption?
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Hi!

No that should not break the device. Just try it out and if it fails you can just use MSMdownload tool to get everything as it should again because when the repartition part fails it not always possible to repartition back to Stock Layout so in that case you have to use MSMdownloadtool to get your phone up and running again.

Hmm yes the thing with the encryption it seems it is only working correctly when using OOS and not on custom ROMs but of course you can just try it therfor I recommended to disable that!
[OnePlus 6 & 6T Cross Device Development] rippledrums:
@Wishmasterflo will this TWRP's theme work on the official version without the dual boot functions?
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Yes you can flash it and keep the current Layout then it will install the black Themed TWRP 3.5.0-9 without Dualboot!!
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
@xdrc45 I actually just found a bug which is causing that the quickmode option is not working in the latest Version 4.3

I have fixed it now and it will work again with the next Version. I also updated the Installation instructions with some more examples regarding the use of the file naming for quickmode.
[OnePlus 6 & 6T Cross Device Development] Tomkumato:
First of all fantastic work great job. I'm using ABC and I would like to know how to write it out on my file name so that I can do the custom roms without having to make choices with the volume key every time. So hopefully I can automatically flash the file dual boot zip for ABC e x t partition with four subscription disabled please help sir. I'm also using magisk for both slots.
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Hi!

Thank you so much.

Actually the function to use the quickmode options via the filename is not working correctly since Version 4.1 now.

I have already fixed it for the next Version but want to wait a few more days to release it since I am just fixing some other small issues.

Sorry for that but with the next Version it will work again and I will also update the instructions with more details about the file nameing regarding this then!
[OnePlus 6 & 6T Cross Device Development] Tomkumato:
I'm

Thank you so much for your answer you have been most helpful I'll wait till next version
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Hi all!

A have uploaded a new Version with a small bug-fix now.

Download Link is updated in the OP.

Dualboot TWRP v4.4

02/07/2021 - 3.5.0-9 v4.4

- Fixed bug which caused that the quickmode options were not working
[OnePlus 6 & 6T Cross Device Development] koobie777:
Yes! Thank you! One small request, please make a more detailed guide on quick mode. I myself had some trouble using it with older versions. Also thought of another idea, making common data mount script a separate flash able zip for an insurance policy. I will always love your enthusiasm and tenacity for the op6 my friend, you're around more than most devs haha.
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
I have updated that today here.
[OnePlus 6 & 6T Cross Device Development] Tomkumato:
I just gotta say totally awesome job now with quick mode i can swap ROMs without ever having to make a choice it works flawlessly you absolutely rock!!!
[OnePlus 6 & 6T Cross Device Development] jhedfors:
I tried the stockSD layout and had trouble accessing anything in the file manager, even the root of the SDCARD. I have attempted to restore stock partitions, but am still having problems with accessing the SDCARD, and it shows a capacity of 107gb. How can I get back to stock?

Edit: I think "fix contexts" resolved the issue for me... back on stock, with the correct size as far as I can tell... May give it a go again.

Is there any way the stocksd can be recognized by regular TWRP?
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
When I test the StockSD layout after I had implemented it I had no issues to access it in TWRP but it needs to be my Dualboot TWRP so it will not work with a regaulr TWRP if it was that you ment.

Also as I remember when I tried the StockSD I had issues withe the ROMs I test that with. I guess all of them were just bootlooping and not booting up and I have no clue why.

But had actually not really the time to test further on that as I am now on the A/B/C Layout.
[OnePlus 6 & 6T Cross Device Development] jhedfors:
Yes, that is what I meant. I appreciate your work!
[OnePlus 6 & 6T Cross Device Development] ed57:
Hi Wishmasterflo :)

Regarding the common partition, can it be used to store the apps datas?

I mean by this, can we use the same apps between the two roms without downloading their datas on each rom?

For instance, if I wanna try another rom, are the datas on the common partition linked automatically to their respective apps?

Thanks for your hard work
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Hi!

No actually not right now but I am trying to implement that it can be used for that some time in the future.
[OnePlus 6 & 6T Cross Device Development] jukyO:
That'll be awesome.

Bulletproof dualboot.

So what's the actual use of common partition?

Can you point out some examples?

As internal storage for both ROMs?
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
I use the Common Data to have my files like Pictures and Music and some Install files like apks and ZIPs accessible from both ROMs.
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Hi!

I am on it now and try to implement that the common data partition can be used to share apps data between the ROMs. Of course that will not work with all apps I think most like security and Banking apps will not work with sharing the data through both ROMs I guess so I am just thinking how to implement that in the best way.

I guess the most benefit apps are like Messenger apps like Facebook Messenger and Whatsapp to share the data between both ROMs so perhaps I will just start with testing it with some Messenger apps and if that works out as expected I will implement that for more apps.

Will try to build a new Version now within the next days.

Have also some small other thing to adjust and fix here and there.

Have a nice weekend! :cowboy:
[OnePlus 6 & 6T Cross Device Development] jukyO:
Step by step. Make it work for one application 1st.
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Are you running Android 11 and have Whatsapp installed?

I dont use Whatsapp anymore so can not check myself on that now but if you have can you check with

a root explorer if you have a folder for whatsapp in the following location and what exactly that folder is called?

/mnt/runtime/write/emulated/0/android/data

or

/mnt/runtime/write/emulated/0/WhatsApp

Thanks!

In the meantime I will try that out now duriong the Weekend with Facebook Messenger and Signal Messenger. :)
[OnePlus 6 & 6T Cross Device Development] ed57:
Hi Wishmasterflo, :)

I'm giving you a hard time with my request.

Thank you for getting involved for our dear old oneplus 6.

I'm not using whatsapp anymore as well. I was thinking for instance about sharing the same gps app and downloaded maps (I use personally map factor navigator)

Thanks again for your prompt involvement (y)
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Yes ok got it.

I will start trying that out now with Facebook messenger app and Signal.

When that is working it is quite easy to just do the same for other apps as well.
[OnePlus 6 & 6T Cross Device Development] jukyO:
No, no A11.

Also try to include Viber if possible.

( Actually, I do not have Dualboot installed as well, just in plans).
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
I will make it like you can choose which apps will share the data through both ROMs.

Seems just like there are some SELinux permission things I need to figure out and fix but otherwise it seems to work. Hope I will get that fixed and working soon.
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Just saw that Magisk 22.0 got released today and with that it seems a lot is different.

It is a normal .apk file at first but you can actually just rename it .ZIP and flash from recovery as usual but it seems that I need to check how to integrate that into my Dualboot TWRP since all the files there are different now.

So Magisk Manager is renamed now to Magisk app.

Lets see how I will implement that new Magisk in my Dualboot.

I have another great thing which I have added now as well as some other stuff to Test.

Installation

The Magic Mask for Android

topjohnwu.github.io
[OnePlus 6 & 6T Cross Device Development] Aduser345:
i can test if thats okay with you
[OnePlus 6 & 6T Cross Device Development] david72262:
Looks like some phones are having problems with it haven't checked it personally yet
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Thanks. I guess I have figured out and adjusted the magisk.sh script now to work with my Dualboot.

Will test that out today.

Also some other great things are added to my Dualboot now so the next Version V5 will be a bigger nice Update. :)
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
It works on my Oneplus 6t. I had no issues when I just installed.

Now I am adjustring my script to flash it automatically with my Dualboot since that is now flashing Magisk 21.4.
[OnePlus 6 & 6T Cross Device Development] Aduser345:
Deleted
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Hi all!

Just a short Update information here.

I spend almost too much time the last week in trying to figure out how to implement Magisk 22.0 in my Dualboot and gave up on that to focus on other things.

So many things are changed in Magisk 22.0 that it seems not so easy to integrate that in my Dualboot-TWRP now.

That means that the next upcoming Version 5 will still have Magisk 21.4 build in.

(But of course you just can install Magisk 22.0 manually afterwards!)

I even tried to get some other things fixed without luck but I got a new "app" build in into my Dualboot now with some nice features. :giggle:

I just need some more time to get the last things fixed until I will release the new Version but hopefujlly before the beginning of next week.

Stay safe!

:)
[OnePlus 6 & 6T Cross Device Development] Tomkumato:
FREAKING fantastic you do phenomenal work thanks for what you do I will NEVER go back to stock and it is all your fault thank you immensely .
[OnePlus 6 & 6T Cross Device Development] Tomkumato:
Is fast mode going to work on the new version because I use it now and it is fantastic.
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Yes of course. It works. I use it almost every time now when re-flashing the Dualboot-TWRP while testing my new things out here.
[OnePlus 6 & 6T Cross Device Development] jhedfors:
What is "fast mode"? I have searched this thread and TWRP in general, and I cannot find an explanation.

Or are we talking about "fastboot" mode?

Thanks!
[OnePlus 6 & 6T Cross Device Development] Tomkumato:
it is a way of using the dual boot file without having to press the volume keys. you just rename the dual boot file appropriately ie-Dualboot_TWRP_OP6t_fajita_v4_4-fast-confirm.y-fec.ab-su.AB the choices are then made for you. it's AWESOME i change ROMs two or three times a day now lol.
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Take a look here there it is explained.

So with Quickmode/Fastmode you actually pre-define your Dualboot-TWRP file by putting the needed options for Encryption, Magisk, and Confirm directly into the filename.

When you then flash it you just flash that pre-defined file and it will do all the rest without asking you all the different options.