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

Dualboot TWRP v5 is up now. :)

03/05/2021 - 3.5.0-9-v5

- Added Dualboot Companion app created by User Invernomut0

- small bugfixes and corrections

Download link and information is updated in the OP.

You can just dirty flash the new Version 5 over the Verion 4.x !!

This Version has still Magisk 21.4 built in but you can just flash Magisk 22.0 manually after flashing the Dualboot-TWRP.

Thanks to User Invernomut0 who is doing a Dualboot for the Oneplus 7 series a got a nice "app" now called Dualboot Companion app which is integrated in my Dualboot-TWRP now.

Under the section "Dualboot Companion app" here on my Github page I have written down some information about it.

So what you can acutally do with this app is to easily reboot to the other slots system or recovery.

It can even be added to the Power menu in Android 11.

I have updated the OP with some new screenshots from the app.

When opening the app you will get some useful information as well like the Android Version,SELinux state, active slot and information about the installed ROM.

From inside the app (when clicking on the upper left corner icon) you get some additional options like mount the inactive slots system or data partition.

You have as well a "Share app" function in the app with which you can select apps you want to share its data throughout both ROMs.

This feature is still in "beta" phase I would say. I mean I have test it and it works but need a few manual steps after applying and rebooting to the other slot.

Also it seems that it does not work with ever app!

Just try it out if you want and see if it works for you.

What it does actually is to create a folder on the Common Data partition called SharedData.

So this is only working when you use the A/B/C Layout with the Common Data partition!

Within the SharedData folder it copies the apps data from the apps you have selected in the Dualboot Companion shared apps list.

When then rebooting to the other slot it will mount the data from the SharedData folder to the apps data folder in that ROM.

Here comes the tricky part now. That needs some specific permissions and things set for each apps folder.

I actually added that mounting and setting of the permissions in the mount script which is executed on each boot but that seems a bit tricky and does not really work all the time.

To fix that manual settings I put a file called mount_shareddata.sh in the system_root.

So actually what you need to do if you have apps shared data through the SharedData folder is to execute the following commands from a adb shell on your computer:

adb shell
su
su --mount-master
sh ./mount_shareddata.sh
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
So try out the new Version 5. I hope you enjoy it. :)

That new Dualboot companion app is really great also that it integrades in the Power menu of Android 11.
[OnePlus 6 & 6T Cross Device Development] Tomkumato:
fast mode still right?
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Yes fastmode works as it should.

You can use it with warp then you dont get any confirmation at all like this:

Dualboot_TWRP_OP6t_fajita_v5-warp-fec.ab-su.AB.zip
[OnePlus 6 & 6T Cross Device Development] Tomkumato:
FANFREAKINGTASTIC!! would you suggest doing it the long way initially
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Doing it without fastmode options is only needed when you want to repartition to another layout.

For just updating from Version 4.x to Version 5 you can flash it with the fastmode options.
[OnePlus 6 & 6T Cross Device Development] Tomkumato:
you are an awesome individual l am crazy excited to use this THANKS SO MUCH
[OnePlus 6 & 6T Cross Device Development] Tomkumato:
huge props to the app dev awesome job l love it 100% purposeful great work..
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
We created a common Telegram Group now for the Oneplys6 and Oneplus7 Dualboot here.

Have updated the OP with the link to the Telegram group as well now.
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Hi!

OK next up is to redo the inbuild Magisk installation and update it with Magisk 22.0

Then I just get a new Updated Version of the Dualboot Companion app.

And I want to port Orangefox recovery to the Oneplus 6 series and update this Dualboot build on Orangefox. :cowboy:
[OnePlus 6 & 6T Cross Device Development] pankspoo:
Right now i am on pixel experience os android 11 did i need to revert to stock oos before flashing this mod or not?
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Hi!

You dont need to revert back but when you flash this and you want to use another layout like A/B or A/B/C for Dualbooting you will need to do a clean flash and re-flash the latest OOS and the ROM you want to have and do a format data. So back up all your data before proceeding!
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Hello folks!

i can tell that I just successfully build OrangeFox recovery for the Oneplus 6t and have integrated it in my Dualboot now. :cowboy:

So from all future Updates I will provide both a black themed TWRP Dualboot and a OrangeFox Dualboot so you can choose which one you like more and just flash it.

Doing the same for the Oneplus 6 enchilada now. Will be build done within the next hours.

Until then the Oneplus 6t owners can download a OrangeFox pre-release here.

And I can also mention that this step which is mentioned in post 306 regarding the mounting of the SharedData is not needed anymore with the Updated Version of the Dualboot Companion app in the new pre-release!

View attachment 5243917View attachment 5243919View attachment 5243921View attachment 5243923View attachment 5243971
[OnePlus 6 & 6T Cross Device Development] Tomkumato:
wow puttin in A LOT of work so appreciated
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Yes. Take a look here.
[OnePlus 6 & 6T Cross Device Development] Tomkumato:
SO cool can we just install fox over twrp or setup again?
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Yes you can just flash Orangefox over the normal TWRP one. I did it as well and it worked like a charm.

I like OrangeFox. It is reallt great. Never used that before I now build it for the Oneplus 6. :)
[OnePlus 6 & 6T Cross Device Development] jukyO:
Can we just use it as regular TWRP? Without Dualboot set up?
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Yes. You can just keep the Stock layout during flashing.

Otherwise I have a pure OrangeFox release as well for the Oneplus 6 series ready soon which I can upload!

Just waiting for the build process for Oneplus 6 enchilada to be finished here....
[OnePlus 6 & 6T Cross Device Development] Tomkumato:
l am officially lost can't find common folder anywhere its listed on internal storage but when I open it it's empty and I accidentally wiped it too what do l do help i'm drowning lol
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Guess I know what you mean. I recognized the same. Seems like the mounting is a bit different in OrangeFox.

So it shows no files when clicking on the mounted "CommonData".

So if you go to your root / and then to datacommon.
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
So OrangeFox Dualboot for Oneplus 6 enchilada is Uploaded as well now for testing. :)

Please give me feedback if everything is working fine with OrangeFox so far (flashing ROMs etc....)

I have updated a link to the V5.1 pre-release with OrangeFox and Updated Dualboot Companion app in the OP.

Thanks! (y)

Next I will try to integrate Magisk 22.0
[OnePlus 6 & 6T Cross Device Development] meistr91:
Really orange fox? Why tho? Is it better for whole dual boot system?
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Yes now I have both TWRP and OrangeFox which can be used as recovery for Dualboot.

I like OrangeFox recovery.

In regards of Dualboot it is no difference to TWRP. I just added it so users can decide if they want to use TWRP or OrangeFox with my Dualboot. The features for Dualboot are the same in both.
[OnePlus 6 & 6T Cross Device Development] pankspoo:
So for now i didn't need to i

Suppose now i am on android 11 custom rom after booting to twrp i will flash dualboot twrp and will select A/B/C partation and will. Install 2 different custom roms here at this or or any condition of this stage do. I need oos rom or not this is my question
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
If you want to use encryption and to set a PIN/password in one slot/ROM you will need to flash OOS on that slot before flashing the custom ROM!!

But you can just flash it from within Dualboot recovery so you dont need to use MSMtool or boot into OOS!

So from the stage where you are now you can just flash the ROMs in TWRP without the need to go back to Stock or OOS. You just need to flash OOS before a custom ROM if you want to use encryption/PIN/password !!
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Hi all!

FYI

There seems to be a thing in OrangeFox recovery which I will need to fix.

Seems when you try to flash a ROM in OrangeFox you get the below error:

"kDownloadPayloadPubKeyVerificationError"

And the process will abort.

Good that I put that release with OrangeFox only as I pre-release now so I hope I can fix that error soon!

EDIT: Error is fixed hopefully now. I just need to re-build the OrangeFox recovery. Will update here and uploaded a fixed pre-release Version when done!

OK: An updated pre-release 5.1 is uploaded here now. That should hopefully fix the "flashing error" mentioned above on OrangeFox and a bugfix for the Oneplus 6 64GB devices.

SORRY FOLKS. I need to re-build again. Seems like the patch/fix got not applied to my build!!!! :cautious:

Have removed the OrangeFox Dualboot files now. Will re-uploaded once rebuild the new Version with the fix.

I dont know whats going on here.....this is driving me crazy. My repository sync is discarding my change all the time and I dont get why. So thats the reason that the fix got not applied when I rebuild it.

Have to check on that tomorrow I have no clue right now why I have no luck with this here.
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Alright new day, new Dualboot v5.1 pre-release. :)

Download here

Full v5.1 Changelog until now:

Updated Dualboot Companion app to V2.8.1

Added Dualboot with OrangeFox Recovery R11.0

You can now choose which recovery you want to use with the Dualboot. TWRP or OrangeFox Recovery

Fixed bug in partition size details for 64GB Oneplus 6 devices

Fixed error when flashing a ROM in OrangeFox recovery
[OnePlus 6 & 6T Cross Device Development] kmr168401:
Hi @Wishmasterflo creating a password is working in the slot A ROM please answer I wish to use you beautiful creation :cry:
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Hi!

Creating a PIN/password is working on

one

slot (A or B). In order to set it you will need to clean flash OOS (from dualboot) on that slot, afterwards the custom ROM you want to use and then my Dualboot and choose to not change the encryption mode on that slot you flashed OOS to and want to use a PIN/password!
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
View attachment 5251183

Hi all!

New Update V5.1 is uploaded now. :)

Download link is updated in the OP.

Changelog:

03/15/2021 - 3.5.0-9 v5.1

- Updated Dualboot Companion app to V2.8.5

- Added Dualboot with OrangeFox Recovery R11.0

- Added Dualboot Logo to OrangeFox Recovery

- You can now choose which recovery you want to use with the Dualboot. TWRP or OrangeFox Recovery

- Fixed bug in partition size details for 64GB Oneplus 6 devices

- Fixed error when flashing a ROM in OrangeFox recovery

- Fixed hanging/timeout when rebooting to System or Recovery on Android 11 (works only when using reboot function from inside the Dualboot Companion app)
[OnePlus 6 & 6T Cross Device Development] Tomkumato:
YOU absolutely rock thank you so much for everything you do.
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
New updated Version 5.2 with Updated TWRP 3.5.1-9 :)

Changelog

03/18/2021 - 3.5.1-9 v5.2

- Updated with TWRP 3.5.1-9 (black Themed)

Download link is updated in the OP.

TWRP 3.5.1 Changelog
[OnePlus 6 & 6T Cross Device Development] Tomkumato:
can we use your dual boot with a9 also if so please elaborate I don't want to mess up thanks for everything have a great day.
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Hi!

I actually have only test if with Android 10 and Android 11 but I guess it will work with Android 9 as well!

Just give it a try.
[OnePlus 6 & 6T Cross Device Development] kmr168401:
Hi i installed and using your dualboot twrp on my OnePlus 6t, as well as using a/b/c partition scheme, my doubt is my slot a is encrypted and slot b is decrypted, so if i want to flash any rom on slot b then anything will happen to slot a data, because i stored some important files in slot a related to my banks as well as it is my daily driver. So my plan is if i want to try new rom for my 6t i can flash in my slot b, so that slot a will be always ready when i want to use mobile for my day to day usage, so my plan is correct i think, i can try new roms without affecting slot a. Sorry to say Thank you for your hard work at last of the message. 😔👍
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Hi!

Yes exactly when you flash a new ROM from Slot B it will be flashed to slot A and the other way around if you flash a ROM from slot A it will be flashed to slot B.
[OnePlus 6 & 6T Cross Device Development] kmr168401:
So if i flash any new rom to slot b from slot a, it will not affect anything on slot a right, because i am new to this dual boot twrp, so that's why i concerned
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Yes exactly.

Just make sure if you have slot A encrypted to have the other slot unencryted and not set a PIN/password otherwise you will not be able to unlock the encrypted ROM again.
[OnePlus 6 & 6T Cross Device Development] kmr168401:
So if i want to flash any rom on slot b from slot a, so i have change to change slot a (encrypted) screen lock to none, then boot to recovery of slot a and flash the rom in slot b, everything will be fine. My installation steps is correct i think
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Yes exactly.
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Hi all!

New Update is out with updated TWRP Version and updated Dualboot Companion app.

FYI: Integrated Magisk is still Version 21.4 (but you can install Magisk 22.1 manually afterwards)

I am quite busy with my Job these days so had not really the time to get working on the Magisk 22.x integration.

Download Link is updated in the OP.

Changelog:

04/09/2021 - 3.5.2-9 v5.3

- Updated TWRP to 3.5.2-9 (black Themed)

- Updated Dualboot Companion app to V2.8.9

DualBoot companion App V2.8.9 Changelog

- Added Splash screen at start

- Optimized starting time

- Added free space on CommonData

- Donate button

- Update Russian translation

- bug fix here and there

- Fixed Shortcuts

- Fixed colours in updated box

- Updated Italian and Russian translation

- new logo

- new info section

- fixed crash using shortcuts

- shared app updated:

- Data Restore feature (it will copy the shared data back to /data/data and dismount the bind mount)

- Data Delete feature (it will delete the shared data and dismount the bind mount)

- Info about shared data if they are in place in shared directory
[OnePlus 6 & 6T Cross Device Development] kmr168401:
Thank you sir I am started to enjoying your application.
[OnePlus 6 & 6T Cross Device Development] anhenrique:
Commondata is not recognized on oos 10 in op 6. On A11 it works, can anyone help?
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Have you tried to re-flash the dualboot?

Did you choose to install Magisk while flashing the dualboot?
[OnePlus 6 & 6T Cross Device Development] anhenrique:
I try to re-flash several times. Just work on custom a11.

Yes, and i try to formata data on oos, but no sucess
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
And have you installed Magisk through my recovery during flashing?

Otherwise CommonData will not mount automatically.
[OnePlus 6 & 6T Cross Device Development] anhenrique:
Yes Man, and still not showing
[OnePlus 6 & 6T Cross Device Development] Simmsypl:
i have maybe stupid question. But, can i use it as normal twrp (and don't use dualboot). Which one i need to use ?
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Yes you can you just choose to keep the current layout when flashing it.
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Hi all! :cowboy:

I have uploaded V6 of my Dualboot now.

Not many changes just updated the Dualboot Companion app to Version 2.9.1

Download link is updated in the OP.
[OnePlus 6 & 6T Cross Device Development] NLhardcore:
I flashed this mod in twrp after a format data
[OnePlus 6 & 6T Cross Device Development] shoerri:
Hi all,

I tried flashing this recovery onto my oneplus 6 because I was told I was able to, even though bootloader is not unlocked.

Sadly, this did not work. Does someone have any tips?
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
deleted
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
No this does not work without Bootloader unlocked.

You need to have an unlocked Bootloader to install this.
[OnePlus 6 & 6T Cross Device Development] koobie777:
Not sure if this was asked or not but anyone having issues installing Gapps? When I try to I get not enough system storage on some roms but not all so I've been using bitgapps. Even then I can't use the add-ons for bitgapps or I get the same error. Not a huge deal considering half of the roms do come with Gapps builds.
[OnePlus 6 & 6T Cross Device Development] pankspoo:
So i have installed DUAL boot using stock sd layout only one doubt that i am still using android 11 based roms on both slots can i use android 10 with Android 11
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
You can have mixed Android 10 and Android 11 per slot. So you dont need to have the same Android Version on both slots.

But for Dualboot you need to be on A/B/(C) Layout so if you use StockSD Layout now you can not use Dualboot and need to repartition to A/B/(C) Layout.
[OnePlus 6 & 6T Cross Device Development] pankspoo:
How in video i used stocksd layout but phone is booting and dual boot app showing me both the roms correctly, and when i tried to flash zip.file from temp folder i did not got any repartation prompt, so how do i repartation A,B,(C) layout can you explain me
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
OK intressting. I actually have not tried the app when on StockSD Layout but the StockSD Layout is not meant for dualbooting.

When you want dualboot you need to be on A/B or A/B/(C) Layout.

When you flash the dualboot zip (the original one not the adjusted ZIP with the quickmode options!) from the TMP folder you should get the question if you want to keep the current Layout. There you select NO and you should be able to repartition to A/B/(C) Layout.

Otherwise if that does not work by some reason you can use MSMdownloadtool to repartition your phone back to Stock and then repartition back to any other Layout again.

I hope that helps!
[OnePlus 6 & 6T Cross Device Development] pankspoo:
Ok in dualboot app it's showing A/B layout i think while flashing i selected no and flashed the zip from temp folder. My another question as this mod having comman data partion whatever apps i installs on one rom gets automatically updated to another rom correct na?

Also another's questions did we need same security patch level roms on both slots or not?
[OnePlus 6 & 6T Cross Device Development] NLhardcore:
great work with the dualboot , it works really good !

butt 1 qeustion if i exedently lose recovery because of some mistake ,

i flash twrp with fastboot boot twrp and then it can't detact the data partitiion if i then flash dualboot true sidel;oad it is fixed !

butt what is the best way to get back to normaal stock style ?

can i use the fastboot flash all command or must it be with MsmDownloadToolV4.0InternationalVersionOxygen ?

thnx in advance !!!
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Thanks. No the flash all will not work to get back to Stock layout. You need to use MSMdownload Tool for that.
[OnePlus 6 & 6T Cross Device Development] NLhardcore:
Thnx for fast reply ,

Keep up the great work !!!
[OnePlus 6 & 6T Cross Device Development] mcdachpappe:
Hi,

any news regarding this 'feature'?
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Which feature is it you are referring to?

But I can say I did not have much time the last weeks so no new development right now since the last weeks.
[OnePlus 6 & 6T Cross Device Development] mcdachpappe:
the quoted post / topic obviously :D

the one described in this post to be very exact: https://xdaforums.com/t/recovery-du...-6t-14-may-2021.4173429/page-15#post-84483965
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Ahh ok. That is already existing. That can be done with the Dualboot Companion app but it seems not to work with all apps.

Just try it out.
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
View attachment 5370419

Hi all!

New Dualboot Update is up now. :)

07/25/2021 - 3.5.2-9 v6.1

Changelog:

- Updated to OrangeFox Version R11.1

- Updated Dualboot Companion App to V2.9.2

- Added parted Tool to manage EFI/Windows partitions

- Added quickmode option to create EFI partition Layout (more info will come!)

Download Link is updated in the OP.

I also linked an Installation Video (done by user 4U Tech) in the OP.

More info regarding some more new stuff besides of the new Orangefox and Companion App Version will come soon.

Have fun!
[OnePlus 6 & 6T Cross Device Development] bahha:
Great project (y), I've been messing with it for a while. had my unfortunate format data because of data decryption failure.

I have the a/b/c partition mode.

I am on EvolutionX 5.7 on slot_a and Postmarketos on slot_b.

somehow the CommonData didn't mount properly, so I checked the update script and found where the mount script should be copied,

cp -f /system_root/init.mount_datacommon.sh /data/adb/service.d/

checked my phone and it didnt exist for whatever reason. it only exits in the root directory / , not system_root folder even after reflashing the duaboot zip.

so I copied init.mount_datacommon.sh to

/data/adb/service.d/

and everything is working fine.
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Hi!

Thanks.

Did you had Magisk installed from the Dualboot and booted to the ROM once before re-flashing the duallboot to get Commondata mounted?

It should copy it to the correct folder when reflashing the dualboot if you had Magisk installed through the dualboot before and booted once into the ROM.

I guess I will re-do the mounting of the Commondata in another way in the future since the way it is now is n ot the best way to have that implemented since you will need to flash Magisk from the Dualboot which is now still 21.4 and reboot into the ROM once to have the Magisk environment set up correctly and then re-flash the Dualboot to get the mount script correctly copied to the Magisk script folder to get it mounted on Boot.

Lets see but I hope I will have a better solution for that ready soon and also to build in a newer Version of Magisk than 21.4 is not that easy as I thought from the beginning since they changed a lot of things in Magisk from that Version on.
[OnePlus 6 & 6T Cross Device Development] pankspoo:
Thanks for tagging our videos in OP ❤️❤️
[OnePlus 6 & 6T Cross Device Development] Moe2003:
is it possible for you to provide a separate twrp zip for the black theme? for 6t
[OnePlus 6 & 6T Cross Device Development] Causical:
You still calling v2 alpha bro?
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
If I get everything what I wanted to fix here finished and test out within the day I guess it will be a much more stable first Beta then. :o