android:oneplus:full-os-and-twrp
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| android:oneplus:full-os-and-twrp [2020/09/16 16:32] – oscar | android:oneplus:full-os-and-twrp [2022/01/15 11:38] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Full OS install with TWRP ====== | + | ====== Full Custom ROM install with TWRP ====== |
| + | ===== Overview ===== | ||
| + | The OnePlus 6T uses the newer AB partition scheme. As such there is no recovery partition. Instead, the recovery is part of the boot image. We will install the latest stock OnePlus OxygenOS on both slots before installing custom ROM (LineageOS). You will temporarily boot TWRP to perform and later perform a more permanent TWRP installation. | ||
| ===== Basic requirements ===== | ===== Basic requirements ===== | ||
| * Ensure that the device is on the latest Android 10 firmware. | * Ensure that the device is on the latest Android 10 firmware. | ||
| * Ensure that the device has at least 60% battery remaining. | * Ensure that the device has at least 60% battery remaining. | ||
| - | * First: if you use anything else than a PIN code to unlock your phone, change it now. Last TWRP image for Android 10 asks for a data decryption password. It will be easier if it’s a PIN code. Go to Settings > System > Security and change your screen locking choice by a PIN code. | ||
| * Make sure your computer has adb and fastboot. Setup instructions can be found here. | * Make sure your computer has adb and fastboot. Setup instructions can be found here. | ||
| * Make sure that bootloader is unlocked | * Make sure that bootloader is unlocked | ||
| - | ===== Install TWRP ===== | + | * In case there **is encrypted data on the phone** that should remain available after the installation: |
| - | The OnePlus 6T uses the newer AB partition scheme first introduced on the Pixel 1. As such there is no recovery partition. Instead, | + | |
| - | First: if you use anything else than a PIN code to unlock your phone, change it now. Last TWRP image for Android 10 asks for a data decryption password. It will be easier if it’s a PIN code. Go to Settings > System > Security and change your screen locking choice by a PIN code. | + | ===== Preparations ===== |
| - | + | ||
| - | - Prepare phone: | + | |
| - Enable Developer options: Settings > System > About. Tap repeatedly on “build number” | - Enable Developer options: Settings > System > About. Tap repeatedly on “build number” | ||
| - Go back to System, then go to developer options. | - Go back to System, then go to developer options. | ||
| Line 19: | Line 18: | ||
| - Connect the device to your PC via USB. | - Connect the device to your PC via USB. | ||
| - Download all the files and put them on your PC: | - Download all the files and put them on your PC: | ||
| - | - place Magisk & TWRP installer zip' | + | - TWRP installer zip |
| - | - place TWRP img on your PC | + | - TWRP img |
| - | - place ROM image on your PC | + | - stock-oos-10.zip |
| - | - Boot into fastboot bootloader mode. Open a terminal window, and type: < | + | - Lineage full image (los-10.zip) |
| - | - Temporarily boot into TWRP: < | + | - Magisk installer zip |
| + | ===== Installation latest OxygenOS | ||
| + | - Boot into fastboot bootloader mode. Open a terminal window, and type: < | ||
| + | - Temporarily boot into TWRP: < | ||
| - On your computer, execute adb devices (it should list your device) | - On your computer, execute adb devices (it should list your device) | ||
| - Transfer the TWRP installer to the phone, by executing: < | - Transfer the TWRP installer to the phone, by executing: < | ||
| - | - In TWRP, go to Wipe, don’t check any of the advanced wipe options, and swipe to do a factory reset | + | - In TWRP, go to Wipe, don’t check any of the advanced wipe options, and swipe to do a **factory reset** |
| - | - Go to TWRP home, then install. Click on “Up a level” to go to your device drive root. Select “twrp-installer.zip” and swipe to execute. | + | - Go to TWRP home, then install. Click on “Up a level” to go to your device drive root. Select |
| - | - Go to TWRP home, then “Reboot”. Select reboot to recovery. | + | - Go to TWRP home, then “Reboot”. Select |
| - You should now be in the durably installed TWRP. It won’t ask for your PIN code this time, and this will result to weird named folders in the “install” section if you go in it. | - You should now be in the durably installed TWRP. It won’t ask for your PIN code this time, and this will result to weird named folders in the “install” section if you go in it. | ||
| - | - Go to Wipe and execute a factory reset | + | - Go to **Wipe** and execute a **factory reset** |
| - | - Transfer the ROM image to the phone, by executing:< | + | - Transfer the original OxygenOS |
| - | - Transfer | + | - Again transfer |
| - | - Go to TWRP home, then install, click on “up a level”, go to “storage”, | + | - Go to TWRP home, then install, click on “up a level”, go to “storage”, |
| - | - Go back to TWRP home, then install, click on “up a level”, select “twrp-installer.zip” and swipe to install | + | - Go back to TWRP home, then install, click on “up a level”, select |
| - Go back to TWRP home, then go to reboot, and here comes the tricky part: __**note (and please don’t forget)**__ the selected slot. Let’s say it’s A for this tutorial. If it’s B for you, just invert it at each step you see it from now. | - Go back to TWRP home, then go to reboot, and here comes the tricky part: __**note (and please don’t forget)**__ the selected slot. Let’s say it’s A for this tutorial. If it’s B for you, just invert it at each step you see it from now. | ||
| - Reboot to recovery. | - Reboot to recovery. | ||
| - | | + | ===== Installation latest OxygenOS on second Slot ===== |
| - | - Go to TWRP home, then wipe, and swipe to do a factory reset like earlier | + | |
| + | - Go to TWRP home, then wipe, and **swipe to do a factory reset** like earlier | ||
| - Go to install (everything should have weird names) | - Go to install (everything should have weird names) | ||
| - | - Transfer | + | - Again transfer |
| - | - Transfer | + | - Again transfer |
| - | - Go to TWRP home, then install, click on “up a level”, go to “storage”, | + | - Go to TWRP home, then install, click on “up a level”, go to “storage”, |
| - | - Go back to TWRP home, then install, click on “up a level”, select “twrp-installer.zip” and swipe to install | + | - Go back to TWRP home, then install, click on “up a level”, select |
| - | - At this point, we have flashed a stock OxygenOS ROM based on Android | + | - At this point, we have flashed a stock OxygenOS ROM based on Android |
| - | - Go to TWRP home, select reboot. | + | - Go to TWRP home, select reboot. You should be on slot B (for this tutorial’s sake). |
| - | - You should be on slot B (for this tutorial’s sake). Reboot to recovery, and check again: you should be on slot A. | + | ===== Install LineageOS on first slot (with TWRP) ===== |
| - | - Go to Wipe and swipe to do a factory reset one more time | + | - Reboot to recovery, and check again: you should |
| - | - Execute < | + | - Go to Wipe and **swipe to do a factory reset** one more time |
| - | - In TWRP, select install, click on “up a level”, go to storage, select “e-os-9.zip” and swipe to install. | + | - Execute < |
| - | - Go to reboot, select “recovery”. | + | - In TWRP, select install, click on “up a level”, go to storage, select |
| - | - You should have rebooted into LineageOS recovery (which is the ROM of top of what is built /e/ OS). | + | - Go to reboot, select |
| - | - If you rebooted into TWRP, go to reboot again, and select “recovery”. | + | - You should have rebooted into LineageOS |
| - | - In LineageOS recovery, select factory reset, then format data / factory reset and do the formatting process. | + | ===== Install LineageOS on second slot (with LineageOS Recovery) ===== |
| - | - his will remove encryption entirely and delete all your data one more time, as well as format your cache partition. | + | - In LineageOS recovery, select |
| - | - Go to advanced, select sideload | + | - Go to **advanced**, select |
| - | - On your computer, execute adb sideload twrp-installer.zip. If you have a permission issue, execute adb kill-server to kill adb deamon on your computer, and then execute sudo adb devices. Deamon will start with sudo permission, and should list your device, showing that it is waiting for sideload. So re-execute the command. | + | - On your computer, execute:< |
| - | - Select reboot to recovery | + | - Select |
| - | - You should now be in TWRP again and you shouldn’t have any data in “install”. Go into “advanced”, | + | - You should now badvancede |
| - | - On your computer, execute (with sudo if required) adb sideload | + | - Go into **“advanced”**, select |
| + | - On your computer, execute (with sudo if required):< | ||
| + | - At the end, you should be able to press **“reboot system”**, and this should get you to your fresh LineageOS | ||
| + | __**PS: DO NOT BOOT IN OS JUST YET & CONTINUE WITH:**__ | ||
| + | * Installing GAPPS | ||
| + | * Rooting | ||
| - | - PS: DO NOT BOOT IN OS JUST YET & CONTINUE TO THE ROOTING POST | ||
android/oneplus/full-os-and-twrp.1600273925.txt.gz · Last modified: (external edit)
