Here's a step-by-step guide to install the latest stable LineageOS 20 (based on Android 13) on your OnePlus 6T (codename: fajita). Always verify the latest instructions on theofficial LineageOS Wiki for fajita.
⚠️ Important Warnings & Prerequisites
Backup Everything: This process WIPES ALL DATA (photos, apps, messages, internal storage).
Unlock Bootloader: Required and VOIDS WARRANTY. OnePlus allows this officially.
Go to Settings > About Phone > Tap "Build Number" 7 times.
Go to Settings > System > Developer options.
Enable OEM unlocking and USB debugging.
(Highly Recommended) Backup Critical Partitions: Use the MSM Download Tool to create a full device backup in case of emergencies. This is complex but can save a bricked phone.
🔧 Installation Steps
Unlock Bootloader:
Connect phone to PC via USB (ensure USB debugging is enabled).
Open a command prompt/terminal in your platform-tools folder.
Immediately boot into TWRP: Use Volume keys to select Recovery Mode and press Power. Don't let the OS boot normally yet, or stock recovery will overwrite TWRP.
Wipe Data in TWRP:
In TWRP: Tap Wipe > Format Data > Type "yes". (This decrypts storage).
Go back, tap Advanced Wipe, select Dalvik / ART Cache, System, Cache, Data, then Swipe to Wipe.
Return to main menu.
Transfer Files:
Connect phone to PC.
On PC, copy the lineage-20.0-XXXXXXXX-nightly-fajita-signed.zip and MindTheGapps-XX.X-XXXX-XXXXXXX-ARCH-signed.zip files to the phone's internal storage/OTG drive.
In TWRP, tap Advanced > ADB Sideload > Swipe to Start Sideload.
Sideload LineageOS & GApps:
On PC, run: adb sideload lineage-20.0-XXXXXXXX-nightly-fajita-signed.zip.
Wait for completion (may show 47% error - ignore it if install succeeds).
Without rebooting, tap Back > ADB Sideload > Swipe to Start Sideload again.
On PC, run: adb sideload MindTheGapps-XX.X-XXXX-XXXXXXX-ARCH-signed.zip (use correct filename).
✅ Post-Installation
Complete the LineageOS setup wizard.
Install apps, restore contacts/sms (if backed up to cloud/exported), but not app data backups from stock OS.
Check for OTA updates in Settings > System > Updater.
⚠️ Troubleshooting Tips
Bootloop? Try wiping Dalvik/Cache in TWRP. If stuck, re-flash LineageOS/GApps via sideload.
TWRP Overwritten? Fastboot flash TWRP again and immediately boot into it.
MSM Tool: If completely bricked, use the MSM Download Tool to restore stock OxygenOS (requires EDL mode).
Always double-check the official LineageOS wiki and XDA forums for your specific device model before proceeding! Good luck!
Wait for completion.
(Optional) Flash Magisk for Root:
If you want root, sideload the Magisk APK (rename to .zip first) after GApps.