Instructions installing Lineage - OnePlus 6T Questions & Answers

Hello,
this is my first time installing a custom ROM, so a want to ask if I can use the original lineage instructions from their website for installing the https://forum.xda-developers.com/oneplus-6t/development/rom-lineageos-16-0-t3897334 ROM on my new 6T.
Do I have to take care of something special, are there differences in the installing process?
Better asking before then......
Thanks!

I haven't tried Lineage OS. I believe it is based on AOSP. I am currently running HavocOS which is also based on AOSP. Practically all custom ROMs I have tried have required ensuring a stable version of OOS has been flashed to both slots before installing the custom ROM and then GApps. I would recommend reading a thread from a few custom ROMs to familiarise yourself with the process as I believe it should be the some process for most. I would also recommend backing up your internal storage beforehand as there may be a chance that you'll need to format your internal storage to get around encryption issues. In some cases I have had the phone reboot back into TWRP constantly if the storage wasn't wiped first.

Due to the differences in encryption, here is the way I always install AOSP when bouncing back and forth between OOS and AOSP. I haven't tried not formatting data in a while, so it may work without these days, but it didn't use to.
- Backup everything to the PC, so you will need to copy all your data over.
- Sync all your accounts, etc.
- In TWRP format data. Reboot recovery
- Factory Reset.
- Flash Lineage
- Flash TWRP Installer
- Reboot to Recovery
- Flash Lineage (This is only the first time, to get the AOSP rom on both slots, only do this for the first install)
- Flash TWRP Installer (This is only the first time, to get the AOSP rom on both slots, only do this for the first install)
- Reboot to Recovery (This is only the first time, to get the AOSP rom on both slots, only do this for the first install)
- Flash Gapps
- Flash Magisk
- Reboot to System.
- Then you should be able to setup the device, copy everything back over. Restore your data.
After this you should be able to update Lineage as normal.
- Reboot to recovery
- Flash Lineage.
- Flash TWRP Installer
- Reboot to Recovery
- Flash Gapps.
- Flash Magisk.
- Reboot to system.
- No loss of data, or anything.

OhioYJ said:
Due to the differences in encryption, here is the way I always install AOSP when bouncing back and forth between OOS and AOSP. I haven't tried not formatting data in a while, so it may work without these days, but it didn't use to.
- Backup everything to the PC, so you will need to copy all your data over.
- Sync all your accounts, etc.
- In TWRP format data. Reboot recovery
- Factory Reset.
- Flash Lineage
- Flash TWRP Installer
- Reboot to Recovery
- Flash Lineage (This is only the first time, to get the AOSP rom on both slots, for updates, only do this for the first install)
- Flash TWRP Installer (This is only the first time, to get the AOSP rom on both slots, for updates, only do this for the first install)
- Reboot to Recovery (This is only the first time, to get the AOSP rom on both slots, for updates, only do this for the first install)
- Flash Gapps
- Flash Magisk
- Reboot to System.
- Then you should be able to setup the device, copy everything back over. Restore your data.
After this you should be able to update Lineage as normal.
- Reboot to recovery
- Flash Lineage.
- Flash TWRP Installer
- Reboot to Recovery
- Flash Gapps.
- Flash Magisk.
- Reboot to system.
- No loss of data, or anything.
Click to expand...
Click to collapse
Thank you for your answer, everthing worked fine for me installing Lineage, I did it exact the way you posted.
This double flash confused me at the beginning but as you described you have to do it just once.
So, thanks a lot and sorry for my late answer.

KKF32 said:
Thank you for your answer, everthing worked fine for me installing Lineage, I did it exact the way you posted.
This double flash confused me at the beginning but as you described you have to do it just once.
So, thanks a lot and sorry for my late answer.
Click to expand...
Click to collapse
Glad it worked out for you. The A/B slots are new to a lot of people still. The biggest thing to remember is when you flash a ROM you are flashing to the opposite slot. So if you are on Slot A and you flash a ROM, you are flashing Slot B. When you reboot to recovery it will switch to Slot B so you can install Gapps, Magisk, etc. to Slot B where your new ROM is installed. (Gapps, Magisk etc, flash to the current slot, not the opposite slot. )

Related

flashing custom rom on A/B device

Why,in custom ROMs section on 6t forum,every one of custom rom developer in his OP states DIFFERENT "Flashing instructions"?
Not a single rom dev,in his OP have same flashing instructions as some other dev! As I read more,it looks like half of them are wrong instructions,or that they don't have this device,or they don't know.
- flashing on both slots a&b?
flash OOS rom,them twrp.zip,reboot to TWRP (to any of slots),and internal will be encrypted and unreadable.Theres no way to flash on both slots in one take in TWRP or in two takes in row(with in TWRP,reboot to TWRP different slot).There's need for at least one full boot to Operating System,then back to TWRP,and internal will be visible and decrypt ed.
Many custom ROMs need OOS on both slots to be able to make them run,but this looks like nonsense to me.
- changing slots in TWRP?
let's say you flash magisk while in slot A,go to "reboot" and change slot to B, but dont reboot to TWRP.Now flash magisk.it will flash on same slot as first time,there was no slot changing.
- delete wipe "system" in TWRP,or worse "factory reset"?
it's mistake that costs me a lot of time,Ill never do it again.As all custom ROMs now have script that wipes all unnecessary files,there's no need to wipe system and screw your phone for few hours until you fix it.For me,a big No No.
best way of flashing custom os over OOS?
for me,I go into TWRP,flash custom rom,flash TWRP zip,then I reboot into TWRP and flash gapps and magisk.if internal is crypted and I can't flash gapps and magisk,I do a boot into rom,and back to TWRP to finish my flashing.wiola,it boots and works,clean rom and all is fine.
Flash back to OOS?I just go into TWRP,flash OOS ,flash twrp.zip,reboot to twrp and flash magisk.if internal is crypted,I boot into OOS,them back to TWRP,and flash everything else what I need(like magisk and kernel)
a/b devices are nothing new,but it looks to me Like on 6t is all overcomplicated.
So,tell me how you guys do it and what are yours ways of doing it right?
shawek said:
Why,in custom ROMs section on 6t forum,every one of custom rom developer in his OP states DIFFERENT "Flashing instructions"?
Not a single rom dev,in his OP have same flashing instructions as some other dev! As I read more,it looks like half of them are wrong instructions,or that they don't have this device,or they don't know.
- flashing on both slots a&b?
flash OOS rom,them twrp.zip,reboot to TWRP (to any of slots),and internal will be encrypted and unreadable.Theres no way to flash on both slots in one take in TWRP or in two takes in row(with in TWRP,reboot to TWRP different slot).There's need for at least one full boot to Operating System,then back to TWRP,and internal will be visible and decrypt ed.
Many custom ROMs need OOS on both slots to be able to make them run,but this looks like nonsense to me.
- changing slots in TWRP?
let's say you flash magisk while in slot A,go to "reboot" and change slot to B, but dont reboot to TWRP.Now flash magisk.it will flash on same slot as first time,there was no slot changing.
- delete wipe "system" in TWRP,or worse "factory reset"?
it's mistake that costs me a lot of time,Ill never do it again.As all custom ROMs now have script that wipes all unnecessary files,there's no need to wipe system and screw your phone for few hours until you fix it.For me,a big No No.
best way of flashing custom os over OOS?
for me,I go into TWRP,flash custom rom,flash TWRP zip,then I reboot into TWRP and flash gapps and magisk.if internal is crypted and I can't flash gapps and magisk,I do a boot into rom,and back to TWRP to finish my flashing.wiola,it boots and works,clean rom and all is fine.
Flash back to OOS?I just go into TWRP,flash OOS ,flash twrp.zip,reboot to twrp and flash magisk.if internal is crypted,I boot into OOS,them back to TWRP,and flash everything else what I need(like magisk and kernel)
a/b devices are nothing new,but it looks to me Like on 6t is all overcomplicated.
So,tell me how you guys do it and what are yours ways of doing it right?
Click to expand...
Click to collapse
I agree with you!!! This is a mess
even though I have flashed thousands of roms over the years, since I got rid of my Nexus 6, I havent had a phone that I could flash roms on, so, after dumping my Note 8 for this great phone, I was very hesitant to flash a custom rom, for all the reasons you have mentioned..
So, my question is, can you flash ANY of these custom roms by using the clear method that you mentioned in the OP?
If on one of the beta releases, is the procedure the same as I am showing below, or, do you always have to first return to stock OOS?
In my years of flashing dozens of phones, you never had to go back to "stock" if you wiped everything before flashing, but, it seems like on several of these roms, you are instructed to first return to "stock", THEN flash the new custom rom...
Plus, some roms say to wipe everything before you flash, and others say not to wipe system, or not to wipe data...
Unless I am nuts, I always thought that you wipe everything before converting to a totally new rom, but, maybe I am wrong here too..
"for me,I go into TWRP,flash custom rom,flash TWRP zip,then I reboot into TWRP and flash gapps and magisk.if internal is crypted and I can't flash gapps and magisk,I do a boot into rom,and back to TWRP to finish my flashing.wiola,it boots and works,clean rom and all is fine."
These instructions seem pretty clear and concise, hopefully, they are correct, and we can just use this exact method and be done with it!
No mention of wiping in your directions...what do YOU wipe before flashing a new custom rom?
Hopefully, this gets cleared up once and for all, and we can ask the MODS to make a sticky of the ACTUAL CORRECT INSTRUCTIONS>>
thanks
wase4711 said:
"for me,I go into TWRP,flash custom rom,flash TWRP zip,then I reboot into TWRP and flash gapps and magisk.if internal is crypted and I can't flash gapps and magisk,I do a boot into rom,and back to TWRP to finish my flashing.wiola,it boots and works,clean rom and all is fine."
These instructions seem pretty clear and concise, hopefully, they are correct, and we can just use this exact method and be done with it!
No mention of wiping in your directions...what do YOU wipe before flashing a new custom rom?
Hopefully, this gets cleared up once and for all, and we can ask the MODS to make a sticky of the ACTUAL CORRECT INSTRUCTIONS>>
thanks
Click to expand...
Click to collapse
-if on custom rom,probably it's good to first go to stock OOS and then to another custom rom.but this is also strange to me,as I don't understand what are benefits of this.i also read this,Google heh.i tried going from AOSCP to PixelEcpirince without flashing OOS in-between process,all was fine.
-I haven't been on Beta OOS yet,only stable.But that thing bout "before flashing custom rom,flash stable OOS even if your on Beta OOS" is also a big question to me.they are practically the same,both are latest OOS,one maybe more stable them other,but this also can be discussed hehe
-i don't wipe anything!! when my custom rom boots,I go into it's settings, without setting my Google account and other stuff, and I do "factory reset"( not in TWRP,in custom rom's settings!).Phone reboots,and all is fine,clean beginning,TWRP works,root works.About unwantedFolders in internal storage,I delete them manualy.
Only thing in my experience to wipe in TWRP is DATA,but this is also questionable,as I run into problems also doing data wipe I TWRP.
Now ROMs(maybe only for a/b devices) have scripts that wipe previous System during flashing new rom,so we don't have to do a Clean Flash anymore.
I'm also confused,more I read,less I understand ?
I like the idea of wiping via factory reset, once the rom boots, but, if it does NOT boot, then you wouldnt be able to do it that way..
I guess flashing an OOS based rom over an OOS based rom would always allow you to boot, if done right..
But, roms like RR, Carbon, AICP, and a couple others that have shown up here recently were never really OOS based roms, but AOSP based, at least I thought so..
the more I think about this, the more confusing it seems to get..
wase4711 said:
I like the idea of wiping via factory reset, once the rom boots, but, if it does NOT boot, then you wouldnt be able to do it that way..
I guess flashing an OOS based rom over an OOS based rom would always allow you to boot, if done right..
But, roms like RR, Carbon, AICP, and a couple others that have shown up here recently were never really OOS based roms, but AOSP based, at least I thought so..
the more I think about this, the more confusing it seems to get..
Click to expand...
Click to collapse
This is from the pixel 2 xl forum another a/b device
First time installing Pixel Dust ROM, or coming from another ROM:
As mentioned above, you are required to flash stock ROM before installing this custom ROM.
1. Flashing Stock ROM:
Follow these instructions: https://developers.google.com/android/images#taimen
2. Flashing PixelDust ROM:
Reboot to twrp
Wipe Dalvik cache and Data partitions
Flash ROM
Flash twrp zip
Reboot to System and enjoy the Pixel Dust Goodness!
Flashing Magisk:
You cannot flash Magisk during the initial install. You must boot into PixelDust ROM at least once!
Reboot to Recovery
Flash Magisk-v17.x.zip
Reboot to System
shawek said:
Why,in custom ROMs section on 6t forum,every one of custom rom developer in his OP states DIFFERENT "Flashing instructions"?
Not a single rom dev,in his OP have same flashing instructions as some other dev! As I read more,it looks like half of them are wrong instructions,or that they don't have this device,or they don't know.
- flashing on both slots a&b?
flash OOS rom,them twrp.zip,reboot to TWRP (to any of slots),and internal will be encrypted and unreadable.Theres no way to flash on both slots in one take in TWRP or in two takes in row(with in TWRP,reboot to TWRP different slot).There's need for at least one full boot to Operating System,then back to TWRP,and internal will be visible and decrypt ed.
Many custom ROMs need OOS on both slots to be able to make them run,but this looks like nonsense to me.
- changing slots in TWRP?
let's say you flash magisk while in slot A,go to "reboot" and change slot to B, but dont reboot to TWRP.Now flash magisk.it will flash on same slot as first time,there was no slot changing.
- delete wipe "system" in TWRP,or worse "factory reset"?
it's mistake that costs me a lot of time,Ill never do it again.As all custom ROMs now have script that wipes all unnecessary files,there's no need to wipe system and screw your phone for few hours until you fix it.For me,a big No No.
best way of flashing custom os over OOS?
for me,I go into TWRP,flash custom rom,flash TWRP zip,then I reboot into TWRP and flash gapps and magisk.if internal is crypted and I can't flash gapps and magisk,I do a boot into rom,and back to TWRP to finish my flashing.wiola,it boots and works,clean rom and all is fine.
Flash back to OOS?I just go into TWRP,flash OOS ,flash twrp.zip,reboot to twrp and flash magisk.if internal is crypted,I boot into OOS,them back to TWRP,and flash everything else what I need(like magisk and kernel)
a/b devices are nothing new,but it looks to me Like on 6t is all overcomplicated.
So,tell me how you guys do it and what are yours ways of doing it right?
Click to expand...
Click to collapse
You make it overcomplicated.
To flash both slots you only need to do a complete reboot to make sure the OS is not hosed.
You do that so if it is you can use the other slot. This is not necessary.
You flash in TWRP, change the slot and reboot into TWRP and flash the other slot.
It could be easier if TWRP allowed flashing on the inactive slot.
But, even if you are rooted and want to upgrade it is suggested to upgrade both slots.
I think it's just a minor pain. There are bigger problems.
tech_head said:
You make it overcomplicated.
To flash both slots you only need to do a complete reboot to make sure the OS is not hosed.
You do that so if it is you can use the other slot. This is not necessary.
You flash in TWRP, change the slot and reboot into TWRP and flash the other slot.
It could be easier if TWRP allowed flashing on the inactive slot.
But, even if you are rooted and want to upgrade it is suggested to upgrade both slots.
I think it's just a minor pain. There are bigger problems.
Click to expand...
Click to collapse
it's not a minor pain if most of time that I go to flash custom rom,I lost all my 60-80gigs of internal data, cuz of failed decryption,or failed rom flash,or failed TWRP flash.There were times when I did Factory reset in TWRP,flashed OOS,flashed TWRP.zip,did reboot to recovery,and I lost recovery.I was left with bootloader (fastboot) and had to fastbooting OOS few times(which led to full wipe of internal storage).OOS wasn't even flashed,or TWRP wanst even flashed.And I just followed instructions.
this are the things that I'm talking about.Even if I follow instructions, instructions are not detailed.
now I probably know how to do it right,,but still...I learned it hard way,and still learning
thanks for your opinion and answer:good:
shawek said:
it's not a minor pain if most of time that I go to flash custom rom,I lost all my 60-80gigs of internal data, cuz of failed decryption,or failed rom flash,or failed TWRP flash.There were times when I did Factory reset in TWRP,flashed OOS,flashed TWRP.zip,did reboot to recovery,and I lost recovery.I was left with bootloader (fastboot) and had to fastbooting OOS few times(which led to full wipe of internal storage).OOS wasn't even flashed,or TWRP wanst even flashed.And I just followed instructions.
this are the things that I'm talking about.Even if I follow instructions, instructions are not detailed.
now I probably know how to do it right,,but still...I learned it hard way,and still learning
thanks for your opinion and answer:good:
Click to expand...
Click to collapse
I understand now.
The instructions are not clear for most of this stuff and you can screw up.
If something fails to flash, there are very few reasons to ever completely wipe. Even a factory reset does not require a complete wipe of data.
I would suggest at all times keeping a boot image of the current OS you are using.
I would also suggest keeping a TWRP.img on your computer. You can always boot from a TWRP image even if it's not the one you want to install.
That will at least get decryption and the ability to flash.
I don't flash custom ROMs, because the stock one with root does what I need. Also the fingerprint sensor is not guaranteed under custom ROMs and I need that to work.
no verify opt on most after data wipe or that brands version of it, then reboot to twrp verify is still not there because twrp will say no os installed the avb changed things every phone is different depending on their security Samsung for one
Try this guide. Read the first paragraph if you have problems with decryption.
Boot twrp
Wipe dalvik and data
Flash rom+twrp
Reboot SYSTEM!
Boot back to recovery
Factory reset
Flash gapps+magisk
Reboot and done
No data loss or PC needed...
So here's some food for thought. I read somewhere that when you install a ROM zip via TWRP it actually Installs to the Inactive Slot. And when you reboot to TWRP after reflashing the Installer it Switches Slots and then you can Flash GAPPS etc. But what if someone were to flash the ROM twice ; once to each slot? Would be noice if We can use this to Multi-Boot Two ROMs at once....
Mannan Qamar said:
So here's some food for thought. I read somewhere that when you install a ROM zip via TWRP it actually Installs to the Inactive Slot. And when you reboot to TWRP after reflashing the Installer it Switches Slots and then you can Flash GAPPS etc. But what if someone were to flash the ROM twice ; once to each slot? Would be noice if We can use this to Multi-Boot Two ROMs at once....
Click to expand...
Click to collapse
I think that question was asked in one of the threads in here "can use this to Multi-Boot Two ROMs at once" and I don't think it's possible. I'm sorry I don't remember the thread it was in. You might try Google.
It's wise to do the oos in both slots which you can switch slots without rebooting fyi because when you flash a custom ROM no matter if you switch back to a it'll flash magisk and probably gapps in the inactive slot. If you try to return the custom ROM to slot a after it flashes it will say insufficient room for gapps and such. So to me it seems this makes it a clean slate so it can flash to inactive slot. Hope that clears up why they encourage the double oos flash
Everyone, I think you have almost helped me figure out how I screwed up my 6T. I made a post needing help but this thread I believe is the answer. I wanted to install lineage16 but opted for Resurrection Remix since that dev claimed the fingerprint reader worked. To make a long story short, I flashed the latest .15 OxyOS update first, switched partitions via TWRP and flashed it again, them flashed TWRP and rebooted to recovery. Flashed Remix then TWRP again and rebooted to Remix. Now I have no room for anything in storage although it's only 25% full and my file explorer cannot access any storage not can I update apps through play store or anything. I have the latest OxyOS on my OTG flash drive as well as TWRP and magisk, but every time I find a thread on hope to do an installation, it varies and I keep coming back to this storage issue. Can someone PLEASE link me out tell me where to find the correct process to now start from the beginning and get my phone back working on the OxyOS .15 stock rom? Thank you very much and I'm glad I found this thread because it finally makes sense as to how misinformation is causing many people to have issues.
SuperUnkn0wn0ne said:
Everyone, I think you have almost helped me figure out how I screwed up my 6T. I made a post needing help but this thread I believe is the answer. I wanted to install lineage16 but opted for Resurrection Remix since that dev claimed the fingerprint reader worked. To make a long story short, I flashed the latest .15 OxyOS update first, switched partitions via TWRP and flashed it again, them flashed TWRP and rebooted to recovery. Flashed Remix then TWRP again and rebooted to Remix. Now I have no room for anything in storage although it's only 25% full and my file explorer cannot access any storage not can I update apps through play store or anything. I have the latest OxyOS on my OTG flash drive as well as TWRP and magisk, but every time I find a thread on hope to do an installation, it varies and I keep coming back to this storage issue. Can someone PLEASE link me out tell me where to find the correct process to now start from the beginning and get my phone back working on the OxyOS .15 stock rom? Thank you very much and I'm glad I found this thread because it finally makes sense as to how misinformation is causing many people to have issues.
Click to expand...
Click to collapse
You may have solved this by now, but I found that using the MSM Download Tool has enabled me to return to stock OxygenOS even after getting stuck in a boot loop. I've not been able to successfully flash RR or LineageOS however, still getting stuck in said boot loop...

can somebody explain flashing roms on a/b devices?

I'm no stranger to rooting and ROM'ing I've been doing it for years now. However I've never had an a/b device and it's confusing me I have a T-Mobile variant switched to international the bootloader is unlocked I'm rooted with magisk 18.1, and TWRP 3.3.0-2 and I have OOS 9.0.12 installed. I don't understand having OOS as a base ROM for other custom ROMs, some people say to flash OOS twice because apparently it goes into both slot a and b but then twrp encrypts data forcing you to msmtool. I know to take any password and finger print off the phone before switching ROMs and to change the lock screen to none.
My understanding of the steps to follow are
Reboot into TWRP
Wipe like you normally would
Flash custom ROM if your choosing
Flash TWRP (so you don't lose TWRP)
Reboot into the ROM
Reboot into recovery and flash magisk and gapps if needed
Reboot and everything should be good
If that's correct please let me know and I appreciate the help
Joe199799 said:
I'm no stranger to rooting and ROM'ing I've been doing it for years now. However I've never had an a/b device and it's confusing me I have a T-Mobile variant switched to international the bootloader is unlocked I'm rooted with magisk 18.1, and TWRP 3.3.0-2 and I have OOS 9.0.12 installed. I don't understand having OOS as a base ROM for other custom ROMs, some people say to flash OOS twice because apparently it goes into both slot a and b but then twrp encrypts data forcing you to msmtool. I know to take any password and finger print off the phone before switching ROMs and to change the lock screen to none.
My understanding of the steps to follow are
Reboot into TWRP
Wipe like you normally would
Flash custom ROM if your choosing
Flash TWRP (so you don't lose TWRP)
Reboot into the ROM
Reboot into recovery and flash magisk and gapps if needed
Reboot and everything should be good
If that's correct please let me know and I appreciate the help
Click to expand...
Click to collapse
First you need to flash OOS stable because of vendor and second to avoid the bugs. If you flash open beta u will face alot of face issues that why stable is always recommend to flash before flashing ROM and it's also must to flash before flashing ROM again same thing to avoid bugs but it's personal choice if u flash Rom and face any Issue flash OOS stable and then flash Rom. If u don't flash OOS and u didn't face any Issue you are fine that's my experience so far if I flash issue I repeat but stable first then custom and 99% bugs fixed that I "Only" face ..
And method yes that is correct for flashing ROM at least for me I followed always and nothing happens!
farhan20 said:
First you need to flash OOS stable because of vendor and second to avoid the bugs. If you flash open beta u will face alot of face issues that why stable is always recommend to flash before flashing ROM and it's also must to flash before flashing ROM again same thing to avoid bugs but it's personal choice if u flash Rom and face any Issue flash OOS stable and then flash Rom. If u don't flash OOS and u didn't face any Issue you are fine that's my experience so far if I flash issue I repeat but stable first then custom and 99% bugs fixed that I "Only" face ..
And method yes that is correct for flashing ROM at least for me I followed always and nothing happens!
Click to expand...
Click to collapse
I flashed OOS 9.0.12 yesterday because I switched ROMS with 9.0.11 and it resulted in a msm flash, turns out switching roms from 9.0.11 is a bad idea. But after updating I flashed havoc OS and everything is all good. We appreciate the answer I understand it a little better now
A/B slotting implies having a pair of partitions for most partition types (eg., Boot, System, etc...). This does not include the Data partition, however. The purpose was never to allow the coexistence of multiple ROMs but to install an OTA stock update into the unused slot while you're already using the ROM. That way if there's an error during the update process, the OS can choose not to switch over to the updated partition on reboot and continue using the current one. This redundancy is why they were able and willing to scrap the Recovery partition, too.
When flashing a ROM for an A/B device, it actually flashes to the slot you are currently not using. Then upon reboot, it switches to that slot. This is why to maintain TWRP, you need to run TWRP installer after flashing the ROM but before the reboot. Otherwise, restarting into recovery would restart into the ROMs recovery or stock recovery. The TWRP installer unconditionally patches tho Boot partition of both slots. Note that other installers like Magisk and GApps do not. If you were to install Magisk before rebooting, it would install to the currently active slot, not the one the ROM was installed to.
After flashing the ROM and TWRP and rebooting into recovery, the slot would then be set to the newly installed ROM's slot and you can finish installing Magisk and/or GApps. You would wipe data unless you're dirty flashing an updated ROM. If you've removed security password/pin/pattern before flashing it's safe to flash before rebooting in recovery. In situations where I still had such security on, I had to wipe data after rebooting into recovery to maintain working decryption. Taking off the password/pin/pattern before flashing effectively disables the encryption of files on the data partition making it easier to transition to another ROM without any decryption problems.
Whether you need to flash OOS before flashing a ROM, I presume, would depend on whether the ROM, itself, is OOS based. It's not necessary for a non-OOS ROMs. There is a nasty problem that creeps up with OOS based ROMs in which it might boot-loop into recovery. I assume the double flashing might prevent that, though my experience with that problem is after a TWRP restore of OOS stock. You could use msmtool in such a situation as stated, but I always get rid of it by flashing stock Boot partition in fastboot, booting into stock recovery, and factory reset + erase sdcard.
Reboot into TWRP
Wipe like you normally would
Flash custom ROM if your choosing
Flash TWRP (so you don't lose TWRP)
Reboot into the ROM
Reboot into recovery and flash magisk and gapps if needed
Reboot and everything should be good.
Click to expand...
Click to collapse
Don't reboot into ROM before reboot into recovery and make sure to take off Pin/Password/Pattern/Fingerprints before booting into TWRP. Otherwise, this should be fine. For the wipe stage, you don't even need to wipe System or Boot (never Boot), in my experience. Just Data and Dalvik, if not dirty flashing the same ROM type.
Nsane457 said:
A/B slotting implies having a pair of partitions for most partition types (eg., Boot, System, etc...). This does not include the Data partition, however. The purpose was never to allow the coexistence of multiple ROMs but to install an OTA stock update into the unused slot while you're already using the ROM. That way if there's an error during the update process, the OS can choose not to switch over to the updated partition on reboot and continue using the current one. This redundancy is why they were able and willing to scrap the Recovery partition, too.
When flashing a ROM for an A/B device, it actually flashes to the slot you are currently not using. Then upon reboot, it switches to that slot. This is why to maintain TWRP, you need to run TWRP installer after flashing the ROM but before the reboot. Otherwise, restarting into recovery would restart into the ROMs recovery or stock recovery. The TWRP installer unconditionally patches tho Boot partition of both slots. Note that other installers like Magisk and GApps do not. If you were to install Magisk before rebooting, it would install to the currently active slot, not the one the ROM was installed to.
After flashing the ROM and TWRP and rebooting into recovery, the slot would then be set to the newly installed ROM's slot and you can finish installing Magisk and/or GApps. You would wipe data unless you're dirty flashing an updated ROM. If you've removed security password/pin/pattern before flashing it's safe to flash before rebooting in recovery. In situations where I still had such security on, I had to wipe data after rebooting into recovery to maintain working decryption. Taking off the password/pin/pattern before flashing effectively disables the encryption of files on the data partition making it easier to transition to another ROM without any decryption problems.
Whether you need to flash OOS before flashing a ROM, I presume, would depend on whether the ROM, itself, is OOS based. It's not necessary for a non-OOS ROMs. There is a nasty problem that creeps up with OOS based ROMs in which it might boot-loop into recovery. I assume the double flashing might prevent that, though my experience with that problem is after a TWRP restore of OOS stock. You could use msmtool in such a situation as stated, but I always get rid of it by flashing stock Boot partition in fastboot, booting into stock recovery, and factory reset + erase sdcard.
Don't reboot into ROM before reboot into recovery and make sure to take off Pin/Password/Pattern/Fingerprints before booting into TWRP. Otherwise, this should be fine. For the wipe stage, you don't even need to wipe System or Boot (never Boot), in my experience. Just Data and Dalvik, if not dirty flashing the same ROM type.
Click to expand...
Click to collapse
That was a very well written and insightful answer thank you. The way you wrote makes everything much easier to understand
I think with the new TWRP recovery flashing is about to be less of a d**k. TWRP 3.3.0-0

Flash custom ROM

From 6T (purchased from oneplus.com), any time I follow the instructions for how to flash one of the custom ROMs, I get stuck at the bootloader with no working rom.
I was able to use the MSMTool to restore to 9.0.13. I upgraded a few times flashing OnePlus6TOxygen_34_OTA_024_all_1909112343_9fd6e0057b8747dc, which works, but when I try to flash a custom ROM, I cannot get past the bootloader. I say a few times because I've tried this for a few days now with no success.
Most recently, I used the Flash-all.bat inside 10.3.0-OnePlus6TOxygen_34_OTA_042_all_1912142031_d9ef3-FASTBOOT
I am currently on 10.3.0, with twrp-3.3.1-31-fajita-Q-mauronofrio installed using the fastboot flash boot_a twrp-3.3.1-31-fajita-Q-mauronofrio.img then fastboot boottwrp-3.3.1-31-fajita-Q-mauronofrio.img commands from fastboot.
I can then install Magisk 19.4 or 20.3, however again when I try to flash a custom ROM, I cannot get past the bootloader.
What am I doing wrong?
When you 'fastboot boot' twrp, you can't flash twrp as .img file after that..... (There is no recovery partition on our phone, only a boot one)
If you flash a twrp img it will overwrite boot partition with only twrp and no kernel... Basic knowledge. Once temporarily booted in twrp by 'fastboot boot' command you must flash the installer, meaning the .zip file.
Then reboot your phone in twrp and flash whatever you want
Always latest versions of Magisk, why flashing a deprecated 19.4?
Striatum_bdr said:
When you 'fastboot boot' twrp, you can't flash twrp as .img file after that..... (There is no recovery partition on our phone, only a boot one)
If you flash a twrp img it will overwrite boot partition with only twrp and no kernel... Basic knowledge. Once temporarily booted in twrp by 'fastboot boot' command you must flash the installer, meaning the .zip file.
Then reboot your phone in twrp and flash whatever you want
Always latest versions of Magisk, why flashing a deprecated 19.4?
Click to expand...
Click to collapse
I was having an issue with the boot command in 10.3.0, which is how I found the flash command, and using both of those seemed to work (at least get me into twrp).
Now I am able to just run fastboot boot twrp-3.3.1-31-fajita-Q-mauronofrio.img and it works.
I was using 19.4 because somewhere in here someone mention twrp not working with magisk 20.3.
I've had no issues with 20.3 and twrp, so I will continue to use 20.3
The steps I use to flash a custom ROM (after twrp is installed)
1. remove the lock screen security from the existing ROM
2. boot straight into recovery from the existing ROM
3. wipe Data, Cache, and Dalvik by swiping right to factory reset from the wipe menu
4. flash the ROM from internal storage using the Install button
at this point I've tried a couple of approaches including a reboot here to see if the ROM flashed, and also installing twrp right after flashing ROM so that I will have a working twrp install.
Either way, I can never get past the bootloader.
Am I performing these steps correctly?
s7itch3s said:
I was having an issue with the boot command in 10.3.0, which is how I found the flash command, and using both of those seemed to work (at least get me into twrp).
Now I am able to just run fastboot boot twrp-3.3.1-31-fajita-Q-mauronofrio.img and it works.
I was using 19.4 because somewhere in here someone mention twrp not working with magisk 20.3.
I've had no issues with 20.3 and twrp, so I will continue to use 20.3
The steps I use to flash a custom ROM (after twrp is installed)
1. remove the lock screen security from the existing ROM
2. boot straight into recovery from the existing ROM
3. wipe Data, Cache, and Dalvik by swiping right to factory reset from the wipe menu
4. flash the ROM from internal storage using the Install button
at this point I've tried a couple of approaches including a reboot here to see if the ROM flashed, and also installing twrp right after flashing ROM so that I will have a working twrp install.
Either way, I can never get past the bootloader.
Am I performing these steps correctly?
Click to expand...
Click to collapse
I don't know I don't flash custom ROMs anymore, too old for that stuff and need my time for me.
There are specific instructions for each custom ROM it's better to ask in dedicated threads, some of them need to have OOS in both slots before, some of them need to be fleshed in both slots. Normally you eventually wipe things, flash the ROM and twrp to keep it, then reboot to twrp (necessary to boot on the slot where the ROM is actually fleshed, which is always the non active slot, which become the new active slot) and flash Gapps and Magisk ( because Gapps and Magisk can be flashed only in active slot) then reboot system
s7itch3s said:
Am I performing these steps correctly?
Click to expand...
Click to collapse
I've updated these instructions here, they are the same, just added to them really.
This is how I install Lineage 17. (If you are doing 16, replace 10.3.0 with 9.0.17, and the Q image of TWRP with the Pie image)
- Install 10.3.0 fastboot ROM again to start over, boot it once. Just to make sure everything is good.
- Reboot to fastboot.
- Boot the Q image of TWRP.
- Run the TWRP installer, reboot to recovery
- You backed everything up right?
- Factory reset (This is the slider at the bottom in the wipe menu).
- Format data. (This is the button that says Format data in the wipe menu)
- Do NOT wipe cache, do not Wipe system, do NOT Wipe Dalvik / ART, do not add anything else, Just Factory Reset and Format Data. After doing those two Reboot to Recovery one more time. You must do this after formatting data.
- Now transfer Lineage and TWRP to your phone, Windows / Linux should see TWRP fine as a media device when plugged in.
- Install Lineage
- Run the TWRP Installer.
- Reboot to Recovery.
- Install Lineage (You need Lineage on both slots, so yes run it again)
- Run the TWRP Installer (yes again).
- Reboot to Recovery.
- Install Gapps if you want them.
- Install Magisk 20.3 if you use Magisk. I used 20.3 it works fine. (20.4 also fine) Do not install modules or other add ons at this point. Boot once and go through the setup and everything, then install your add-ons.
- Be aware the phone will restart once, then Lineage will start up and all will be good.
From that point on updating should just be like normal :
- Reboot to recovery
- Flash Lineage.
- Flash TWRP Installer
- Reboot to Recovery
- Flash Gapps. (Assuming you use them, if you installed them once you must continue to install them or do a clean install)
- Flash Magisk. (If you use it)
- Reboot to system.
- No loss of data, or anything.
- No need to flash anything twice etc.
I've posted similar instructions here. It was just for LOS 16, same thing essentially though.
OhioYJ said:
I've updated these instructions here, they are the same, just added to them really.
This is how I install Lineage 17. (If you are doing 16, replace 10.3.0 with 9.0.17, and the Q image of TWRP with the Pie image)
- Install 10.3.0 fastboot ROM again to start over, boot it once. Just to make sure everything is good.
- Reboot to fastboot.
- Boot the Q image of TWRP.
- Run the TWRP installer, reboot to recovery
- You backed everything up right?
- Factory reset (This is the slider at the bottom in the wipe menu).
- Format data. (This is the button that says Format data in the wipe menu)
- Do NOT wipe cache, do not Wipe system, do NOT Wipe Dalvik / ART, do not add anything else, Just Factory Reset and Format Data. After doing those two Reboot to Recovery one more time. You must do this after formatting data.
- Now transfer Lineage and TWRP to your phone, Windows / Linux should see TWRP fine as a media device when plugged in.
- Install Lineage
- Run the TWRP Installer.
- Reboot to Recovery.
- Install Lineage (You need Lineage on both slots, so yes run it again)
- Run the TWRP Installer (yes again).
- Reboot to Recovery.
- Install Gapps if you want them.
- Install Magisk 20.3 if you use Magisk. I used 20.3 it works fine. (20.4 also fine) Do not install modules or other add ons at this point. Boot once and go through the setup and everything, then install your add-ons.
- Be aware the phone will restart once, then Lineage will start up and all will be good.
From that point on updating should just be like normal :
- Reboot to recovery
- Flash Lineage.
- Flash TWRP Installer
- Reboot to Recovery
- Flash Gapps. (Assuming you use them, if you installed them once you must continue to install them or do a clean install)
- Flash Magisk. (If you use it)
- Reboot to system.
- No loss of data, or anything.
- No need to flash anything twice etc.
I've posted similar instructions here. It was just for LOS 16, same thing essentially though.
Click to expand...
Click to collapse
Sir, apology for being an old noob, I am on OOS 10.3.2 TWRP 3.3.1-32 can I follow the above guide? If Yes,
Why aren't we using the "Lineage Recovery" provided in "Lineage OS Downloads" page?? If we use it, will the above instructions change ? What are the cons of using it?
Sorry again for asking!! Can you please share me the Link to Open Gapps which Will be suitable in my scenario ?
Advised Sloth said:
Sir, apology for being an old noob, I am on OOS 10.3.2 TWRP 3.3.1-32 can I follow the above guide? If Yes,
Why aren't we using the "Lineage Recovery" provided in "Lineage OS Downloads" page?? If we use it, will the above instructions change ? What are the cons of using it?
Sorry again for asking!! Can you please share me the Link to Open Gapps which Will be suitable in my scenario ?
Click to expand...
Click to collapse
Historically Lineage / CM recovery was hit or miss, or TWRP or other recoverys worked better. To be fair I haven't even tried the Lineage recovery. So maybe that is no longer true? Right now, I know TWRP works. The updated instructions link up there has links in it, FYI, link OpenGapps. OpenGapps can be found here. You will be using Arm64, Android 10 obviously.
Since you are already on 10.3.2 (I assume you were on 10.3.1 before) you should be good to skip the step about fastboot ROM or install OOS, and you already have TWRP., so you should be able to go right on to backing everything up, wiping everything, and installing Lineage. (So you can skip the first few steps)
Anymore questions feel free to ask.
OhioYJ said:
Historically Lineage / CM recovery was hit or miss, or TWRP or other recoverys worked better. To be fair I haven't even tried the Lineage recovery. So maybe that is no longer true? Right now, I know TWRP works. The updated instructions link up there has links in it, FYI, link OpenGapps. OpenGapps can be found here. You will be using Arm64, Android 10 obviously.
Since you are already on 10.3.2 (I assume you were on 10.3.1 before) you should be good to skip the step about fastboot ROM or install OOS, and you already have TWRP., so you should be able to go right on to backing everything up, wiping everything, and installing Lineage. (So you can skip the first few steps)
Anymore questions feel free to ask.
Click to expand...
Click to collapse
First of all, thank you very much for your time and explanation.
Sir, so i will proceed as follows:
* Boot into TWRP Recovery
* Perform "swipe to factory reset" & "swipe to wipe data"
* Reboot to TWRP recovery again
* Flash LOS 17.1 on slot A
* Reboot to TWRP recovery again
* Flash LOS 17.1 on slot B
* Reboot to system
Sir, please check are my steps correct? If not,
From which step( steps mentioned in your guide) should i start?
Last query is, which GApps zip will be best for me, micro/nano/pico/tv stock, If i want max coverage of google?
Very sorry for knocking you repeatedly!!!
Advised Sloth said:
First of all, thank you very much for your time and explanation.
Last query is, which GApps zip will be best for me, micro/nano/pico/tv stock, If i want max coverage of google?
Click to expand...
Click to collapse
Your starting point is correct. However make sure you don't miss the re-install TWRP after flashing Lineage each time, and the second time you need to flash Gapps before you reboot to system.
Personally I always do Nano. Anything else you need (that would be included in Micro) can be installed from the Play store. Nano at least includes all the things that can't be installed from the play store.
Pico has the least in it. TV is for TV devices. On OpenGapps there is a box next to each package you can click and it will tell you exactly what is in each package.
OhioYJ said:
I've updated these instructions here, they are the same, just added to them really.
This is how I install Lineage 17. (If you are doing 16, replace 10.3.0 with 9.0.17, and the Q image of TWRP with the Pie image)
- Install 10.3.0 fastboot ROM again to start over, boot it once. Just to make sure everything is good.
- Reboot to fastboot.
- Boot the Q image of TWRP.
- Run the TWRP installer, reboot to recovery
- You backed everything up right?
- Factory reset (This is the slider at the bottom in the wipe menu).
- Format data. (This is the button that says Format data in the wipe menu)
- Do NOT wipe cache, do not Wipe system, do NOT Wipe Dalvik / ART, do not add anything else, Just Factory Reset and Format Data. After doing those two Reboot to Recovery one more time. You must do this after formatting data.
- Now transfer Lineage and TWRP to your phone, Windows / Linux should see TWRP fine as a media device when plugged in.
- Install Lineage
- Run the TWRP Installer.
- Reboot to Recovery.
- Install Lineage (You need Lineage on both slots, so yes run it again)
- Run the TWRP Installer (yes again).
- Reboot to Recovery.
- Install Gapps if you want them.
- Install Magisk 20.3 if you use Magisk. I used 20.3 it works fine. (20.4 also fine) Do not install modules or other add ons at this point. Boot once and go through the setup and everything, then install your add-ons.
- Be aware the phone will restart once, then Lineage will start up and all will be good.
From that point on updating should just be like normal :
- Reboot to recovery
- Flash Lineage.
- Flash TWRP Installer
- Reboot to Recovery
- Flash Gapps. (Assuming you use them, if you installed them once you must continue to install them or do a clean install)
- Flash Magisk. (If you use it)
- Reboot to system.
- No loss of data, or anything.
- No need to flash anything twice etc.
I've posted similar instructions here. It was just for LOS 16, same thing essentially though.
Click to expand...
Click to collapse
Sorry for the necropost, but this also works for TWRP 3.6 and Lineage 18.1. I initially had a problem with the default TWRP for my 6t. During the initial TWRP fastboot the version on their site caused a firmware error which I could just barely get out of, but it screwed up the system boot process in some subtle way that even the fixed version of TWRP (found on this site) couldn't solve.
After trying your instructions above, it didn't work the first time because of the screwed up system boot. It just kept trying to boot to recovery. I suspected a firmware error and was almost going to do an mcmdownload soft-brick rescue. I tried one last thing, using the TWRP on the system to sideload the stock ROM. That worked and patched up the system boot process. Once I booted and ran through some basic initialization to make sure developer options were properly set I followed the above instructions and it worked nearly flawlessly.
One strange thing. After I installed Lineage 18.1 and TWRP to both partitions (as well as Gapps / magisk), it rebooted to system and almost booted without incident -- except a large circular logo popped up that said 100% and stopped. I figured that that meant someting completed properly, so I powered off, waited 10 seconds, powered on and then the Lineage green system initialization spinner came up for a few minutes and it went through the user initialization sequence.
Thanks. I almost gave up and bought a new phone.
OhioYJ said:
I've updated these instructions here, they are the same, just added to them really.
This is how I install Lineage 17. (If you are doing 16, replace 10.3.0 with 9.0.17, and the Q image of TWRP with the Pie image)
- Install 10.3.0 fastboot ROM again to start over, boot it once. Just to make sure everything is good.
- Reboot to fastboot.
- Boot the Q image of TWRP.
- Run the TWRP installer, reboot to recovery
- You backed everything up right?
- Factory reset (This is the slider at the bottom in the wipe menu).
- Format data. (This is the button that says Format data in the wipe menu)
- Do NOT wipe cache, do not Wipe system, do NOT Wipe Dalvik / ART, do not add anything else, Just Factory Reset and Format Data. After doing those two Reboot to Recovery one more time. You must do this after formatting data.
- Now transfer Lineage and TWRP to your phone, Windows / Linux should see TWRP fine as a media device when plugged in.
- Install Lineage
- Run the TWRP Installer.
- Reboot to Recovery.
- Install Lineage (You need Lineage on both slots, so yes run it again)
- Run the TWRP Installer (yes again).
- Reboot to Recovery.
- Install Gapps if you want them.
- Install Magisk 20.3 if you use Magisk. I used 20.3 it works fine. (20.4 also fine) Do not install modules or other add ons at this point. Boot once and go through the setup and everything, then install your add-ons.
- Be aware the phone will restart once, then Lineage will start up and all will be good.
From that point on updating should just be like normal :
- Reboot to recovery
- Flash Lineage.
- Flash TWRP Installer
- Reboot to Recovery
- Flash Gapps. (Assuming you use them, if you installed them once you must continue to install them or do a clean install)
- Flash Magisk. (If you use it)
- Reboot to system.
- No loss of data, or anything.
- No need to flash anything twice etc.
I've posted similar instructions here. It was just for LOS 16, same thing essentially though.
Click to expand...
Click to collapse
OhioYJ, these are great instructions but it initially left me with questions about how that procedures would create duplicate installs on slot A and B. The answer is of course that the Lineage installer for the 6t knows about the dual slot setup and always writes to the inactive slot. Booting into recovery activates the inactive slot so that installing again after that installs to the other slot and now you have Lineage on both slots. The installer for TWRP always installs to both slots and is needed because Lineage always installs its recovery handler and you don't want that so you overwrite.
PS: TWRP has an option for installing itself after installing the requested package. Would that be just as good as installing the TWRP zip?
PPS: I had to do an 'adb push' of the Lineage and TWRP zips to sdcard for the installs. Unfortunately installing and slot switching makes the sdcard unavailable so you have to push the zips again. Is there somewhere I can write them to that I don't lose access to after a boot to recovery?

flashing 10.3

Hey guys
I made a post and got no replies but have been looking into it more and remember I need adb to flash the 10.3 update, I've got all the files ready but from reading I'm confused as to how to flash via adb.
I've read you need the phone in twrp while doing flashing you need to flash the other slot blah blah blah , doesn't make sense to me...
Can anyone help me out? I've seen stuff has changed since the 10 update and I'm at a loss right now..
Thanks for any help in advance
CptUnicorns said:
Hey guys
I made a post and got no replies but have been looking into it more and remember I need adb to flash the 10.3 update, I've got all the files ready but from reading I'm confused as to how to flash via adb.
I've read you need the phone in twrp while doing flashing you need to flash the other slot blah blah blah , doesn't make sense to me...
Can anyone help me out? I've seen stuff has changed since the 10 update and I'm at a loss right now..
Thanks for any help in advance
Click to expand...
Click to collapse
You nearly never need adb to update.... Dable in some circumstances with fastboot.
Just...update. You don't specify what OS you run now, rooted , twrp etc...
Read my thread about OOS stable in Guide News section and ask there if it's not clear
Striatum_bdr said:
You nearly never need adb to update.... Dable in some circumstances with fastboot.
Just...update. You don't specify what OS you run now, rooted , twrp etc...
Read my thread about OOS stable in Guide News section and ask there if it's not clear
Click to expand...
Click to collapse
Cheers. I've read to much and watch to many videos and I've just completely confused myself buddy. I'll check your post out now someone else linked me to a proper guide I was unable to use.
I'm on havoc right, magisk 20 and twrp 3.2.3-2
CptUnicorns said:
Cheers. I've read to much and watch to many videos and I've just completely confused myself buddy. I'll check your post out now someone else linked me to a proper guide I was unable to use.
I'm on havoc right, magisk 20 and twrp 3.2.3-2
Click to expand...
Click to collapse
You're seriously late in versions of TWRP and Magisk. Update twrp with latest installer.
Then in twrp flash OOS, then twrp installer again
Reboot to recovery to switch slots
Flash again OOS and TWRP installer again
Reboot to twrp and flash Magisk then reboot system
If there's issues with encryption in recovery you can eventually use an OTG disk if you have one or ADB sideload
Last possibility is fastbooting oos ROM
Striatum_bdr said:
You're seriously late in versions of TWRP and Magisk. Update twrp with latest installer.
Then in twrp flash OOS, then twrp installer again
Reboot to recovery to switch slots
Flash again OOS and TWRP installer again
Reboot to twrp and flash Magisk then reboot system
If there's issues with encryption in recovery you can eventually use an OTG disk if you have one or ADB sideload
Last possibility is fastbooting oos ROM
Click to expand...
Click to collapse
Brilliant thanks! I've updated twrp and magisk now, had no internet so couldn't update. Do I not need to wipe the internal storage at all when flashing stock oos ontop of havoc?
And for the slot just so I know for certain;
I flash slot A with oos, twrp.
Now I reboot go to slot B, do the exact same.
Reboot again, flash new ROM , twrp/magisk.
Profit? I read you post detailing the slots, that's the part that confuses me. I'm going to have another read so I fully understand what I am actually doing instead of doing everything blind.
CptUnicorns said:
Brilliant thanks! I've updated twrp and magisk now, had no internet so couldn't update. Do I not need to wipe the internal storage at all when flashing stock oos ontop of havoc?
And for the slot just so I know for certain;
I flash slot A with oos, twrp.
Now I reboot go to slot B, do the exact same.
Reboot again, flash new ROM , twrp/magisk.
Profit? I read you post detailing the slots, that's the part that confuses me. I'm going to have another read so I fully understand what I am actually doing instead of doing everything blind.
Click to expand...
Click to collapse
Anytime you go from AOSP to OOS, or back you generally have to wipe DATA. If you don't OOS will dump you off at recovery, wipe data and then it will boot generally.
As for the slots, when flashing a ROM it always flashes to the opposite slot. So if you are currently on Slot A and you flash a ROM, it will flash to Slot B. The ROM will also overwrite install it's own recovery. So you install TWRP again if you want. Then you reboot to recovery, it will automatically switch to the new slot since you installed a new ROM. Now on the slot where the new ROM is installed, we could install Magisk or Gapps, things like that if needed. If we wanted to update the original slot (A) we would install the ROM again. As well as TWRP again. Reboot to recovery again, Magisk, etc.
ROMs install to opposite slots. After a ROM installation, rebooting to recovery will switch slots for you. Most other items install to the current slot (that is why you need to reboot before install things like Magisk, Gapps, etc). Hopefully that helps clarify things? If not ask.
OhioYJ said:
Anytime you go from AOSP to OOS, or back you generally have to wipe DATA. If you don't OOS will dump you off at recovery, wipe data and then it will boot generally.
As for the slots, when flashing a ROM it always flashes to the opposite slot. So if you are currently on Slot A and you flash a ROM, it will flash to Slot B. The ROM will also overwrite install it's own recovery. So you install TWRP again if you want. Then you reboot to recovery, it will automatically switch to the new slot since you installed a new ROM. Now on the slot where the new ROM is installed, we could install Magisk or Gapps, things like that if needed. If we wanted to update the original slot (A) we would install the ROM again. As well as TWRP again. Reboot to recovery again, Magisk, etc.
ROMs install to opposite slots. After a ROM installation, rebooting to recovery will switch slots for you. Most other items install to the current slot (that is why you need to reboot before install things like Magisk, Gapps, etc). Hopefully that helps clarify things? If not ask.
Click to expand...
Click to collapse
That does clear up things for me, I've either mis-read or not read that when on slot A you are actually flashing slot B and Visa versa.
I'll be flashing both my slots to 10.3.1 just so they're fully updated. ( A is my main)
Finally part from me, when I'm going to flash my custom ROM (havoc again) I've just got to repeat said steps but flashing havoc instead of OOS then on the last reboot, recovery and magisk?
CptUnicorns said:
Finally part from me, when I'm going to flash my custom ROM (havoc again) I've just got to repeat said steps but flashing havoc instead of OOS then on the last reboot, recovery and magisk?
Click to expand...
Click to collapse
Fair warning, I don't use Havoc. I use Lineage, here is how I install AOSP ROMs, (link) However, yes, on the final reboot would be when you install Magisk (Gapps as well if you need them). In theory recovery should already be installed, but installing it again won't hurt anything (installing recovery wipes out Magisk, so install Magisk after recovery if you do that). Remember you need Havoc on both slots (you don't want OOS on one and Havoc on another). So flash it twice.
OhioYJ said:
Fair warning, I don't use Havoc. I use Lineage, here is how I install AOSP ROMs, (link) However, yes, on the final reboot would be when you install Magisk (Gapps as well if you need them). In theory recovery should already be installed, but installing it again won't hurt anything (installing recovery wipes out Magisk, so install Magisk after recovery if you do that). Remember you need Havoc on both slots (you don't want OOS on one and Havoc on another). So flash it twice.
Click to expand...
Click to collapse
Great stuff. Thought I understood from how you explained it. I'll check that guide as well and have it to hand just incase.
OhioYJ said:
Fair warning, I don't use Havoc. I use Lineage, here is how I install AOSP ROMs, (link) However, yes, on the final reboot would be when you install Magisk (Gapps as well if you need them). In theory recovery should already be installed, but installing it again won't hurt anything (installing recovery wipes out Magisk, so install Magisk after recovery if you do that). Remember you need Havoc on both slots (you don't want OOS on one and Havoc on another). So flash it twice.
Click to expand...
Click to collapse
Something didnt want to play when I was flashing... Got to flashing gapps and magisk, gapps flash gave me a error 64 and i got magisk installed, booted, now I've got no twrp and when I use fastboot it just softbricks then restarts after about 5 minutes, I'm gonna try booting from 3.2.3-2 as that was fine and hope I can boot into recovery and just go lineage I think for something new
EDIT
So I used fastboot --set-active=a, managed to get back to twrp so now its flashed on both again. In the process of flashing lineage now, hopefully this wont chuck another error at me for gapps

Questions about upgrading Lineage OS 16 to 17

Hello,
I do have some questions about upgrading LOS from 16 to 17, maybe someone can help me bringing a little light into this upgrading process.
- Is the sideload way the correct way to do this? ( https:// wiki.lineageos.org /devices /fajita /upgrade)
- What´s about the play services, I dont have any installed ( ..."If you did not have Google Apps installed, you must wipe the Data partition (or perform a factory reset) to install them"...) So if later on I want to install e.g. opengapps I have to wipe all my data after upgrading to 17??? (How? TWRP - wipe -advanced wipe - data and cache ???)
and what´s with all may data? I have titanium backup pro (no SD card), so I backup may phone, put it to my PC, upgrade to 17, wipe all data, put the backup back to phone and reboot?
Or do I have to install Magisk.zip and titanium.zip from within TWRP again first
- What do I do if the sideload fails?
- Can I do the upgrad process with TWRP too? (copying and installing from within TWRP?)
- And what about with the A/B slots, no installing twice on both slots?
As you see, I am unsure on how to do things right and I only did this once before as I installed Lineage OS.
(This would be the way I would do this:
- backup all data to PC
- Boot into TWRP
- copy LOS17.zip. Magisk.zip and Titaniumbackup-pro.zip into internal storage
- install LOS17 and boot into TWRP
- wipe data and cache
- install magisk and TB
- copy all data back and restore? (only user data or the system data too??))
Maybe someone can help me with this. Thanks!
My guide for installing Lineage maybe helpful: Guide Installing Lineage
I would recommend a clean install. Most that have tried to follow that wiki have had issues (if you look in the LOS thread). I haven't used. TB zip, but I did use my TB data from the app without issues. If you dont use Gapps, just dont install them. Skip that step. You still have to reboot to recovery to install Magisk though. I dont think I would try a TB zip until after the first boot.
Installing twice is for the intial install to get the same thing on both slots. You dont want Android 9 on one slot and Android 10 on another, or LOS 17 on one and OOS on another. Once you have LOS 17 on both slots and go to update you will just flash once. See my guide about doing an update.
Thank you for your reply,
so if I got your answer right, I should install the LOS17 like the LOS16 before, as a clean,fresh install.
Seems reasonable to me
I will do the same steps as you gave me before https://forum.xda-developers.com/oneplus-6t/help/instructions-installing-lineage-t3949628
- Backup everything to the PC, so you will need to copy all your data over.
- Sync all your accounts, etc.
- In TWRP format data. Reboot recovery
- Factory Reset.
- Flash Lineage
- Flash TWRP Installer
- Reboot to Recovery
- Flash Lineage (This is only the first time, to get the *** rom on both slots, only do this for the first install)
- Flash TWRP Installer (This is only the first time, to get the *** rom on both slots, only do this for the first install)
- Reboot to Recovery (This is only the first time, to get the *** rom on both slots, only do this for the first install)
- Flash Gapps
- Flash Magisk
- Reboot to System.
- Then you should be able to setup the device, copy everything back over. Restore your data.
Will do the flash on weekend, then I will let you know....
Thanks.
KKF32 said:
Thank you for your reply,
so if I got your answer right, I should install the LOS17 like the LOS16 before, as a clean,fresh install.
Seems reasonable to me
I will do the same steps as you gave me before https://forum.xda-developers.com/oneplus-6t/help/instructions-installing-lineage-t3949628
- Backup everything to the PC, so you will need to copy all your data over.
- Sync all your accounts, etc.
- In TWRP format data. Reboot recovery
- Factory Reset.
- Flash Lineage
- Flash TWRP Installer
- Reboot to Recovery
- Flash Lineage (This is only the first time, to get the *** rom on both slots, only do this for the first install)
- Flash TWRP Installer (This is only the first time, to get the *** rom on both slots, only do this for the first install)
- Reboot to Recovery (This is only the first time, to get the *** rom on both slots, only do this for the first install)
- Flash Gapps
- Flash Magisk
- Reboot to System.
- Then you should be able to setup the device, copy everything back over. Restore your data.
Will do the flash on weekend, then I will let you know....
Thanks.
Click to expand...
Click to collapse
How did it go?
badpanda said:
How did it go?
Click to expand...
Click to collapse
To put it short: a disaster
What I did:
- Flash Lineage
- Flash TWRP Installer
- Reboot to Recovery
- Flash Lineage
- Flash TWRP Installer
- Reboot to Recovery
- Flash Magisk
- Flash TB
- Reboot to System.
What I got was a "Qualcom Crashdump Mode" kind of report
What I used: lineage-17.1-20200418-nightly-fajita-signed / twrp-installer-3.3.1-1-fajita / Magisk-v20.4
So I thought maybe the "no factory reset" at the beginning may caused this problem, so I started the whole flashing again.
Long story short: Being distracted I once forgt to flash TWRP after the LOS and now I am stuck in fastboot.
Cant get anymore into TWRP, "fastboot boot TWRP.img" always throws me into fastboot forever wait
Tried to flash TWRP direct from fastboot "fastboot flash recovery twrp.img", always get a write error.
So, at the moment all I can get in is the bootloader, and I have no clou how to get TWRP up and running again.
Edit: Managed to get into TWRP again, but this double flash + Magisk always gives me this "Qualcomm Crashdump Mode"
Help would very much appreciated!
KKF32 said:
To put it short: a disaster
What I did:
- Flash Lineage
- Flash TWRP Installer
- Reboot to Recovery
- Flash Lineage
- Flash TWRP Installer
- Reboot to Recovery
- Flash Magisk
- Flash TB
- Reboot to System.
What I got was a "Qualcom Crashdump Mode" kind of report
What I used: lineage-17.1-20200418-nightly-fajita-signed / twrp-installer-3.3.1-1-fajita / Magisk-v20.4
Click to expand...
Click to collapse
So you tried to go straight to LOS 17, used an old version of TWRP, and never wiped data while going between Android 9 and 10? None of that will work. I think didn't make it clear, you need you need to be on the OOS 10 firmware first. Flash OOS 10 to both slots, at this point using the fastboot ROM would be my suggestion, like my [Guide]Installing Lineage.
Once you have Android 10 in place one both slots, then start your OS 17 install. Note there is a cliff notes version of that guide in the second post, if you don't want all the "wordy" details.
Oh my, I really didn´t understood the step with "get OOS10 on both slots first"
I am often a little sloppy with details, bad habit, will take some time tomorrow and do the reading and the flashing then.
Thanks again.
KKF32 said:
Oh my, I really didn´t understood the step with "get OOS10 on both slots first"
I am often a little sloppy with details, bad habit, will take some time tomorrow and do the reading and the flashing then.
Thanks again.
Click to expand...
Click to collapse
Make sure you use the"unofficial" version of TWRP, linked to in that guide, rather than the outdated official one you used before as well.
OhioYJ said:
Make sure you use the"unofficial" version of TWRP, linked to in that guide, rather than the outdated official one you used before as well.
Click to expand...
Click to collapse
So, LOS17 is up and running, I did it the long way but good to know the fastboot Rom method now. I confess some part of this thread would not have been necessary if had read your installations instruction carefully....
So let me thank you for patience und help, "Reading broadens the mind", I often tell others, will remind myself nexttime

Categories

Resources