yashsingh1/xdaforums huggingface dataset:
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
New Updated V2

Hi all!

I have updated it to Version 2 now. :highfive:

Have updated the information in the OP as well.

10/12/2020 - 3.4.0-0 v2

- Fixed automatic Formatting and creating of the partitions

- added quickmode options which can be provided directly to the ZIP file name

- A lot of other bugfixes and improvments

Download here

Also take a look here where you can find instructions done by user vitaly51370 on how to create a shortcut on the Homescreen to

directly boot to the other slot without the need to change the slot via TWRP!

Still open issues which I am trying to fix now:

-The mounting of the Commondata is not yet working from within the ROMs/slots (only in TWRP right now).

-When flashing an Android 11 ROM in one of the slots and then flash this Dualboot-TWRP it will get stuck while patching that slot with Android 11 in it.

I acutally tried a fix/workaround now to get Android 11 booted with Dualboot as well but that needed some additional steps and fixes to work and that caused now that I can not install Magisk on the Android 11 ROM.

I have right now Carbon ROM Android 10 on one slot with Magisk and everything and PixenOS Android 11 on the other but without working Magisk.
[OnePlus 6 & 6T Cross Device Development] RMarques:
[MENTION=9574498]Wishmasterflo[/MENTION]

Keep it up bud, ATM, IMHO, it's one of the most promising work-in-progress to our OP6/6T devices!

That shortcut to directly change slots is so awesome!

I'm really willing to give it ago as soon as it's a bit more mature and also able to handle both Android 11 and 10 ROMs!
[OnePlus 6 & 6T Cross Device Development] UsPdSr:
[MENTION=9574498]Wishmasterflo[/MENTION]

Very promising work.. Thanks for your effort to get this working! :)

I don't have this device long and are not that familiar with the A/B file system..

Do we have the option to install a kernel for OOS 10 on the one partition and on the second one another one (or at least not the same at all), for a AOSP 10 based custom rom for example?

Best regards
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Yes you can install different OS and Kernels per partition (A and B).
[OnePlus 6 & 6T Cross Device Development] isoladisegnata:
Also Custom Rom A11 ?
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Yes I am running a custon ROM 11 now in one slot. But for Android 11 I need to do some adjustments to the script to get it to work correctly.
[OnePlus 6 & 6T Cross Device Development] UsPdSr:
Thanks a lot for the quick reply!

I am more interested in OOS 10/Android 10 based roms respective the recent OOS version and a specific kernel; not so much in Android 11.

If you refer to 'the script', do you mean the OP or the Readme in github?

I read it twice or three times, but I have to admit, that I don't really get it so far.. :(
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
The script is the whole Dualboot-TWRP.zip file.
[OnePlus 6 & 6T Cross Device Development] UsPdSr:
Okay, I see.

Do you plan to re-write the installation instructions for the newbies or other user, who aren't that experienced with this subject matter?
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Yes I agree, I have to adjust the instructions a bit more to make it more clear and easier to understand. Will do that later today or tomorrow.

I first want to get it fixed with Android 11. At least I now know what the issue is I just have to see how to fix/implement this in the best way.
[OnePlus 6 & 6T Cross Device Development] UsPdSr:
On github I read about the a-b-c layout.Does the 'c' by any chance stand for the common partition? ;)

I'm looking forward to seeing the further development of this project!
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Yes correct the A/B/C Layout is Partition_A for ROM A, Partition_B for ROM B, and Partition_C is the Common Data partition!
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
New Updated V2.1 Beta

Hi all!

I have updated it to Version 2.1 Beta now. :highfive:

Still no 100% Android 11 Support but at least it can be used with Android 11 now.

10/13/2020 - 3.4.0-0 v2.1

-Fixed hanging when on Android 11

Download here
[OnePlus 6 & 6T Cross Device Development] brajesh.sharma87:
What do you mean when you say no 100% Android 11 support but can be used with it. A bit confusing.
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
It seems that not everything is working 100% in Android 11.

When re-flashing the TWRP after Magisk got installed on Android 11 it seems that something is breaking Magisk and after a reboot to the Android 11 ROM Magisk is shown as not Installed even if you re-install Magisk on that slot.

Guess I have to adjust some directories for Android 11 to get that fixed/working as it should.
[OnePlus 6 & 6T Cross Device Development] RMarques:
I'm getting more and more interested on this project, that's why I'll be asking some questions every now and then...some might be kinda noobish but better to be a safe noob than a sorry smart a$$!

Thank you y'all for helping me out if you can!

I'm rolling with an 8/128 OP6, with unlocked bootloader ofc, and I'm willing to keep stock/rooted oxygen OS in one partition + A11 custom ROMs (PiXeN-OS for now) in the other one.

1. What would be the recommended size for each data partition?

2. PiXeN-OS is reported to kinda only work well with a certain Magisk version.

When I choose to install Magisk from the "changing zip name" (su.AB) option or during the installation, does it mean that it'll opening the option to me to, later on, install the Magisk version I want or does it install a preset Magisk version, if so, which one does it install?

3. About the options that can be provided directly through the filename.

I can't see anything about F2FS or EXT4, just "fast-fec.ab-su.ab".

- Will I have to choose the filesystem directly into the options, prior to start the ROM flashing?

- BTW, which one would you go for?

A video showing the whole process as detailed as possible and/or covering the major doubts ppl have had so far, would help a lot!

Also, the telegram group to have discussions!

Once again, thanks [MENTION=9574498]Wishmasterflo[/MENTION] for this amazing project!
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Hello!

Yes better to ask more than to mess something up.

I have the 8/128 GB Oneplus 6t and I use it now with 32GB per Data partition.

I might think of adjusting these sizes a bit different since still the mounting of the Common Data partition from inside the ROMS is not working and when I had a conversation with Zackptg5 who originally wrote this dualboot for the Oneplus 7 series he said that the mounting of the Common Data partition was the most difficult thing to get working. He said sometimes it worked in one ROM but then not in another. I still have not gotten that to work now with my adjusted one for the Oneplus 6 Series and also with Android 11 there are changes in the file structure that some system files are in different locations than on Android 10 so I need to fix/adjust more things and try if I can get the mounting of the Common Data partition to work from inside the ROMs.

I would use 32GB per partition.

Yes exaclty I just flashed the latest Pixen-OS as well on one slot.

The Magisk Version which is getting installed from my TWRP-Dualboot when choosing to install it on a slot is now Magisk 21.0 so then you just select to not install Magisk from this for the slot where you have Pixen-OS installed and flash the suggested one in that slot afterwards.

For the first install you need to use the original filename and go through all the options once!

The quickmode when changing the options directly from the filename is most for the cases when you have updated one ROM and need to reflash TWRP, then you can adjust that with the options for encryption and Magisk.

You dont have all the options to specify since all the others like file system you choose once when first flashing the Dualboot-TWRP and repartiton.

The recommonded options are mentioned when flashing it and going through all options.

For the filesystem it is recommonded to use EXT4 (and I actually always use EXT4, have never used F2FS). I think when using F2FS you will need to have a ROM/Kernel which is compatible with F2FS.

There is a Telegram group link in the OP. :)
[OnePlus 6 & 6T Cross Device Development] RMarques:
Thanks a lot for such a complete explanation! It's all clear now!

About the Telegram channel, since I only have the option to mute/unmute it, I assume it's kinda read-only ATM, isn't it?

Cheers and keep it up bud, it has the potential to be a real banger!
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Here you can download the black themed TWRP.
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
FYI

I am just testing my Dualboot with creating EFI and NTFS Windows Partitions.

Have successfully repartitioned to EFI, NTFS, Android (ext4) partitions now and can boot the UEFI Shell from Windows.

I am using the Renegate Project Windows 11 on ARM for this. :)

So the next Update of my Dualboot will have options to create the EFI, NTFS partitions if someone wants to try it out with the above mentioned project.
[OnePlus 6 & 6T Cross Device Development] mht21:
Cool.btw it would be awasome to see mass storage function of oneplus as button option ,just like mtp button in mount page.it will be much easier deploy windows and creat efi bcd on pc. i already can use it . by unpacking cpio and adding these lines under "on property:sys.usb.ffs.ready=1 && property:sys.usb.config=mtp,adb" in init.recovery.usb.rc file

symlink /config/usb_gadget/g1/functions/mass_storage.0 /config/usb_gadget/g1/configs/b.1/f3
write /config/usb_gadget/g1/functions/mass_storage.0/lun.0/cdrom 0
write /config/usb_gadget/g1/functions/mass_storage.0/lun.0/removable 1
write /config/usb_gadget/g1/functions/mass_storage.0/lun.0/ro 0
write /config/usb_gadget/g1/functions/mass_storage.0/lun.0/file "/dev/block/sda"
[OnePlus 6 & 6T Cross Device Development] JedidroidX:
Ok, I thought this project was abandoned but now I see a new update. I'm really surprised! Has anyone successfully flashed and booted 2 different roms on an OP devices? If so, which roms? And what a creative project, very innovative!
[OnePlus 6 & 6T Cross Device Development] taadow1030:
Hello. 1st, thank you very much @Wishmasterflo for your time and effort in bringing this to our device. I've read countless pages in this thread and also watched the video, but I'm still a little confused. I am currently on OOS 10. If I want to keep my current ROM, can I just flash the dual boot TWRP zip, select A/B/C layout to use common partition, install a secondary ROM on the opposite slot, flash Dual boot TWRP again as per the instructions and then boot into both ROMs? Or will I have to start completely over and flash OOS10 again, format data, etc and then go from there? Please advise whenever it is convenient for you.
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Hello

Thanks.

Yes you will have to reflash and format data on both slots.
[OnePlus 6 & 6T Cross Device Development] Michael-Franklin:
So far this dualboot system is great. Loaded Siberia for my daily, Great rom. and loaded lineageos 18.1 with nethunter to toy around with. Hadn't updated my phone in over 2 years and decided it was time when I made a mess of the filesystem toying around with things.

I have found that when installing a new rom I get a bootloop unless I follow this exactly:

Flash oos android v.10

Flash rom

Flash dualboot twrp

Reboot to opposite slot

Flash Gapps/other zips (if desired)

Format

Reboot to system

I ran into a few other issues that were easy to figure out between this thread and google but that one issue bugged me. New rom just wouldn't boot unless I flashed stock rom first.

Anyone else notice slow shutdown/reboot?

I'm having trouble with slow rebooting and shut down. It takes just at a minute and a half between hitting reboot and the phone actually shutting down. This happens with both roms. I've tried disabling firewall in case something was hanging there with no luck. Not sure if its helpful but the last few lines of the logcat seem like they may be on to something. After the last line on the logcat it still takes another minute to reboot. Any idea on how to troubleshoot this further?

Logcat

09-01 18:52:49.218 564 564 I vold : Unmounting /mnt/installer/0/emulated/0/Android/obb

09-01 18:52:49.266 564 564 I vold : Unmounting /mnt/user/0/emulated/0/Android/data

09-01 18:52:49.326 564 564 I vold : Unmounted /mnt/user/0/emulated/0/Android/data

09-01 18:52:49.326 564 564 I vold : Unmounting /mnt/user/0/emulated/0/Android/obb

09-01 18:52:49.406 564 564 I vold : Unmounted /mnt/user/0/emulated/0/Android/obb

09-01 18:52:49.406 564 564 I vold : Unmounting pass_through_path /mnt/pass_through/0/emulated

09-01 18:52:49.556 564 564 I vold : ForceUnmount failed: Device or resource busy

09-01 18:52:49.556 564 564 E vold : Failed to unmount /mnt/pass_through/0/emulated

09-01 18:52:49.556 564 564 I vold : Unmounting fuse path /mnt/user/0/emulated

09-01 18:53:09.850 564 564 I vold : ForceUnmount failed: Device or resource busy
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Hello

Regarding the shutdown/reboot that is due to common data is taking long time to unmount during normal reboot/shutdown.

It is fixed/working when doing the reboot through the Dualboot companion app.
[OnePlus 6 & 6T Cross Device Development] Michael-Franklin:
That worked! Thanks for the info. Finally got everything working the way I want. I did try and search my problem before and after asking and still didn't find any reference to rebooting being slow using standard power menu.

So, related question, when rebooting using Dualboot companion options in the device controls in power menu it is still slow is this normal? It works fine in the app itself. Just figured the power menu control would execute the same command giving the same result as the in app buttons.

And finally, is it possible to mount CommonData as a separate drive? I know its probly not easy otherwise it would have likely been done that way from the start just curious why it isn't.

I'm just getting into learning linux filesystems, I was just thinking when I plug in a partitioned drive on a pc each partition shows up as its own drive. I'd imagine that might help any mounting/unmounting issues and would also accurately reflect the drive capacities and usage. I probly wouldn't ask if I knew more about the android system and filesystem but I look forward to learning what I can..
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Yes the device controls in the Power menu are executing the same as the Dualboot Companion app.

Not sure if it is so easy to mount that as a seperate drive.

Will have to take a look at that.

Firsr I will implement othernew things with V6.2 and trying to get Magisk 23.0 added into the Dualboot.

I am back from vacation on monday and then I will have a bit more time again to take a look st all this and release the new Version hopefully soon.

In that it is also added that it can create the EFI/Windows partitions needed to boot Windows for ARM64.
[OnePlus 6 & 6T Cross Device Development] Michael-Franklin:
That's awesome what you do for the community . Thanks!

Hope you enjoyed your vacation and thanks for taking the time to respond.
[OnePlus 6 & 6T Cross Device Development] brandon79:
Ok guys I need help.

I have msm tooled this one plus 6t so many times. It's just a phone I use as a back up but wanna get it fixed.

I used dual boot before with zero issues and thanks to the devs and everyone involved.

But now I go through the process msm, unlock, boot twrp, flash dual boot zip, reboot recovery, flash latest oos, flash Rom 1, flash dual boot zip, reboot recovery and here is the problem it never reboots to recovery. It hangs or something on the bootloader has been unlocked screen.

Ok then fastboot mode reboot recovery and it goes to bootloader screen again like it's going to boot then it doesn't screen goes black then Qualcomm crash dump.

Attempted to kill init! Exit code =0x0000000b

Complete and exit.

Any idea what I'm doing wrong. Thanks.
[OnePlus 6 & 6T Cross Device Development] brandon79:
Ok guys I need help.

I have msm tooled this one plus 6t so many times. It's just a phone I use as a back up but wanna get it fixed.

I used dual boot before with zero issues and thanks to the devs and everyone involved.

But now I go through the process msm, unlock, boot twrp, flash dual boot zip, reboot recovery, flash latest oos, flash Rom 1, flash dual boot zip, reboot recovery and here is the problem it never reboots to recovery. It hangs or something on the bootloader has been unlocked screen.

Ok then fastboot mode reboot recovery and it goes to bootloader screen again like it's going to boot then it doesn't screen goes black then Qualcomm crash dump.

Attempted to kill init! Exit code =0x0000000b

Complete and exit.

Any idea what I'm doing wrong.

edit

ok msm again, unlock bootloader, boot twrp ,flash twrp, flash magisk, twrp is 3.4.0.2 magisk is 21.1 . Ok so flashed twrp after booting it. Went through process. Before rebooting to system I tried rebooting recovery and it doesn't switch slots. It always stays on slot A. So I switch to slot B in recovery and reboot recovery and it goes straight to crash dump again. Same error code. So something is not booting or something on slot B. Any ideas.
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Hello!

OK lets see!

You use OOS10 right? (not OOS11?) (latest OOS10 should be used as of now).

TWRP 3.4.0.2 is a bit outdated. Please try with TWRP 3.5.2-9

So you are using Magisk 21.1? The inbuild Dualboot has Magisk 21.4.

Please flash the latest Magisk 23.0 after flashing the Dualboot and see if that helps.

FYI: The new Dualboot Version 6.2 ist still not full ready but perhaps I can provide a new Version of it with new features during the Weekend now or in the beginning of next week.
[OnePlus 6 & 6T Cross Device Development] brandon79:
I tried latest twrp and magisk 23 , went to older version thinking maybe I needed to because of flashing oos 10. I ll try downloading some files again today maybe I got a bad download.
[OnePlus 6 & 6T Cross Device Development] shaemasa:
I haven't used this since last may. One of the main issues I faced while using this dual boot was it didn't allow to set screen lock for both ROMs. However, both ROMs worked like charm. I just wanted to clarify if screen lock for both ROMs have been fixed.
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Yes you can set a screen lock on one ROM if you are encrypted.
[OnePlus 6 & 6T Cross Device Development] shaemasa:
Yes back then I was able set lock screen on one but not in both. Seems like there aren't much changes since I migrated to my current rom. Anyway I think I should check it myself this time again. Thanks for the reply.
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
View attachment 5418075

Hi all!

New Dualboot Update :)

09/25/2021 - 3.5.2-9 v6.2

Changelog:

- Some small adjustments to the Dualboot flashing

- Changed first time flashing folder from /tmp to /dev due to issues with Orangefox recovery

- Updated to Magisk 23.0 app (Magisk itself is still 21.4 but you can install Magisk 23.0 from within the Magisk app)

- Added quickmode options "EFI128"/"EFI256" to repartition to EFI Layout with Windows NTFS partition and Android userdata for dualboot

- Added patch to enable SDCARDFS Support on Android 11 ROMS for which it is disabled by default

Download Link is updated in the OP.

With the added quickmode/fastmode options "efi128" and "efi256" you can now create the needed EFI and NTFS partitions used by the Windows ARM64 renegade project to Install Windows 10/11 on the Oneplus 6/6t.

One thing to note! When you have repartitioned to EFI/NTFS Layout with the above quickmode options and you want to go back to Stock Layout you need to go via msmdownloadtool!

So repartitioning back to Stock from the Dualboot recovery does not work when you are on the EFI Layout right now!!!
[OnePlus 6 & 6T Cross Device Development] kmr168401:
Thanks for the best recovery ever. 😍
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Thanks a lot. :)
[OnePlus 6 & 6T Cross Device Development] shaemasa:
@Wishmasterflo How do you recommend ROMs to be flashed? Stock to Slot A and Custom to Slot B? Or both customs?
[OnePlus 6 & 6T Cross Device Development] kmr168401:
That is dependent on you, both slot is treated as different so one will not affect other, so if you like custom+custom or oos+custom or custom+oos, anything possible, when i am using the dualboot, in slot A i flashed cherishos custom rom and in slot B i flashed oos 11 to test how it is. Everything works fine. Try it, it is the best 👍
[OnePlus 6 & 6T Cross Device Development] shaemasa:
Thanks 🙏
[OnePlus 6 & 6T Cross Device Development] Causical:
You are a Mad Lad my dude... Not long before you build the next most popular operating system from scratch.
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Hello!

In these Instructions I have updated some information about how to set up EFI/NTFS partitions etc.
[OnePlus 6 & 6T Cross Device Development] shaemasa:
Actually I was worried about EFI/NTFS during last few days. I hope this would be the solution. Thanks for the information.
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Hi all!

FYI

I got display issues on my Oneplus 6t so I can not use it anymore.

Got a Oneplus 8t now so I will not do any more big development for this Dualboot for the Oneplus 6 series anymore unfortunately. :cry:

Of course if it is just to Update Orangefox or TWRP to a newer Version I will still update it but I dont think I will be able to release much with new feature anymore.

I know it is so sad.

Have to see how I will live with my Oneplus 8t without Dualboot now.

I can say that I already miss that I do not have my Dualboot on the Oneplus 8t now but since this device has dynamic partitions I can not implement/build a Dualboot for this device!
[OnePlus 6 & 6T Cross Device Development] All_New_BoB:
HI All and glad to see this project on the OnePlus 6! It's bee a while I didn't tweak with my enchilada and decided to try and make it a bit more exciting with dualboot, also many apps are detecting root and not working, some of them are vital and can't be replaced so I was wondering if it would be possible to install default non-rooted OOS (Android 11) on one slot and custom rooted ResurrectionRemix (Android 10) on the other one? I've watched the video and I'm worried about the part that said both ROMs should be on the same security patch, which is difficult to achieve when mixing android 10 and android 11 that's why I wanted to clarify this. Thanks again for the effort to keep the enchilada alive!
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Hi!

That should be no problem to use OOS on one slot and a custom ROM on the other slot even if they have different security patch levels.
[OnePlus 6 & 6T Cross Device Development] eperu1220:
Hi, I've been reading the instructions and comments and I am a little bit confused: Can I have android and w11 at the same time and dual boot to one or the other or I can only have installed w11 without android? I was going to test w11 and return to android but If I can have both installed at the same time it would be very useful to have a w11 computer to do basics things on the go... Thx in advance
[OnePlus 6 & 6T Cross Device Development] Wishmasterflo:
Hi!

Yes you can have Windows and Android Dualboot at the same time but it is not recommended to flash the UEFI boot so you should boot that manually with fastboot boot when you want to boot Windows and if you want to boot Android/Dualboot Android you just boot up the phone as usual.
[OnePlus 6 & 6T Cross Device Development] Evon88:
hi people,

how to use this only recovery? i dont want to dualboot and anything more

just stable twrp or similar stable recovery

what is the steps? pls help