[RECOVERY][DUALBOOT][MAGISK][3.5.0-9 V5] Modified TWRP for the OnePlus 6/6t [05-Mar-2021]

Wishmasterflo

Senior Member
Nov 21, 2018
874
350
73
Stockholm
@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.
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.
 
  • Like
Reactions: xdrc45

S1RR

Member
Dec 2, 2014
9
0
21
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?

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 .
 

brandon79

Senior Member
Feb 15, 2015
79
20
28
check
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 .
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.
 

S1RR

Member
Dec 2, 2014
9
0
21
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.
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.
 

brandon79

Senior Member
Feb 15, 2015
79
20
28
check
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.
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.
 

Wishmasterflo

Senior Member
Nov 21, 2018
874
350
73
Stockholm
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.
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 .
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.
 

Wishmasterflo

Senior Member
Nov 21, 2018
874
350
73
Stockholm
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?
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!
 

Wishmasterflo

Senior Member
Nov 21, 2018
874
350
73
Stockholm
@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.
@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.
 

Tomkumato

Member
Feb 2, 2018
46
23
8
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.
 
Last edited:
  • Like
Reactions: Wishmasterflo

Wishmasterflo

Senior Member
Nov 21, 2018
874
350
73
Stockholm
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.
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!
 

Tomkumato

Member
Feb 2, 2018
46
23
8
I'm
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!
Thank you so much for your answer you have been most helpful I'll wait till next version
 

koobie777

Senior Member
Sep 15, 2009
449
124
63
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
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.
 
  • Like
Reactions: Wishmasterflo

Wishmasterflo

Senior Member
Nov 21, 2018
874
350
73
Stockholm
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.
I have updated that today here.
 

jhedfors

Senior Member
Oct 16, 2009
1,363
662
143
Chandler, AZ
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?
 
Last edited:

Wishmasterflo

Senior Member
Nov 21, 2018
874
350
73
Stockholm
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?
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.
 
  • Like
Reactions: jhedfors
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone