User Tools

Site Tools


android:oneplus:full-os-and-twrp

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
android:oneplus:full-os-and-twrp [2020/09/16 17:03] oscarandroid:oneplus:full-os-and-twrp [2022/01/15 11:38] (current) – external edit 127.0.0.1
Line 25: Line 25:
 ===== Installation latest OxygenOS on first Slot ===== ===== Installation latest OxygenOS on first Slot =====
   - Boot into fastboot bootloader mode. Open a terminal window, and type: <code>adb reboot bootloader</code> You can also achieve this via a key combination: [[android:oneplus:enter-fastboot-recovery|Enter-fastboot-recovery]].   - Boot into fastboot bootloader mode. Open a terminal window, and type: <code>adb reboot bootloader</code> You can also achieve this via a key combination: [[android:oneplus:enter-fastboot-recovery|Enter-fastboot-recovery]].
-  - Temporarily boot into TWRP: <code>fastboot boot twrp-img-name.img</code>Wait for TWRP to start. Decrypt your data thanks to your PIN code. Swipe to allow system modifications.+  - Temporarily boot into TWRP: <code>fastboot boot twrp-img-name.img</code> (don’t forget sudo if required). Wait for TWRP to start. Decrypt your data thanks to your PIN code. Swipe to allow system modifications.
   - 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: <code>adb push twrp-installer.zip /storage/</code>   - Transfer the TWRP installer to the phone, by executing: <code>adb push twrp-installer.zip /storage/</code>
-  - 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 **“twrp-installer.zip”** and swipe to execute. 
-  - Go to TWRP home, then “Reboot”. Select reboot to recovery.+  - Go to TWRP home, then “Reboot”. Select **reboot to recovery**.
   - 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:<code>adb push stock-oos-9.zip /storage/</code> +  - Transfer the original OxygenOS ROM image to the phone, by executing:<code>adb push stock-oos-10.zip /storage/</code> 
-  - Transfer the TWRP installer to the phone, by executing: <code>adb push twrp-installer.zip /storage/</code> +  - Again transfer the TWRP installer to the phone, by executing: <code>adb push twrp-installer.zip /storage/</code> 
-  - Go to TWRP home, then install, click on “up a level”, go to “storage”, select “stock-oos-9.zip” and swipe to install +  - Go to TWRP home, then install, click on “up a level”, go to “storage”, select **“stock-oos-10.zip” and swipe to install** 
-  - 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 **“twrp-installer.zip” and swipe to install** 
   - 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 ===== ===== Installation latest OxygenOS on second Slot =====
   - In this tutorial, we should be on slot B. If you were on slot B earlier, you should be on slot A now. If you aren’t on the wanted slot, click on it and reboot to recovery again and check that it actually changed.   - In this tutorial, we should be on slot B. If you were on slot B earlier, you should be on slot A now. If you aren’t on the wanted slot, click on it and reboot to recovery again and check that it actually changed.
-  - 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 the ROM image to the phone, by executing:<code>adb push stock-oos-9.zip /storage/</code> +  - Again transfer the original OxygenOS ROM image to the phone, by executing:<code>adb push stock-oos-10.zip /storage/</code> 
-  - Transfer the TWRP installer to the phone, by executing: <code>adb push twrp-installer.zip /storage/</code> +  - Again transfer the TWRP installer to the phone, by executing: <code>adb push twrp-installer.zip /storage/</code> 
-  - Go to TWRP home, then install, click on “up a level”, go to “storage”, select “stock-oos-9.zip” and swipe to install +  - Go to TWRP home, then install, click on “up a level”, go to “storage”, select **“stock-oos-10.zip” and swipe to install** 
-  - 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 **“twrp-installer.zip” and swipe to install** 
-  - At this point, we have flashed a stock OxygenOS ROM based on Android 9, as well as TWRP, on both slots.  +  - At this point, we have flashed a stock OxygenOS ROM based on Android 10, as well as TWRP, on both slots.  
-  - Go to TWRP home, select reboot.  +  - Go to TWRP home, select reboot. You should be on slot B (for this tutorial’s sake)
-===== Install LineageOS ===== +===== Install LineageOS on first slot (with TWRP) ===== 
-  - You should be on slot B (for this tutorial’s sake). Reboot to recovery, and check again: you should be on slot A. +  - Reboot to recovery, and check again: you should now be on slot A. 
-  - Go to Wipe and swipe to do a factory reset one more time +  - Go to Wipe and **swipe to do a factory reset** one more time 
-  - Execute <code>adb push e-os-9.zip /storage/</code> +  - Execute <code>adb push los-10.zip /storage/</code> 
-  - In TWRP, select install, click on “up a level”, go to storage, select “e-os-9.zip” and swipe to install. +  - In TWRP, select install, click on “up a level”, go to storage, select **los-10.zip” and swipe to install**
-  - Go to reboot, select “recovery”.  +  - Go to reboot, select **“recovery”**.  
-  - You should have rebooted into LineageOS recovery (which is the ROM of top of what is built /e/ OS).  +  - You should have rebooted into LineageOS own recovery (TWRP is overwritten). If you rebooted into TWRP, go to reboot again, and select “recovery”. 
-  - If you rebooted into TWRP, go to reboot again, and select “recovery”. +===== Install LineageOS on second slot (with LineageOS Recovery) ===== 
-  - In LineageOS recovery, select factory reset, then format data / factory reset and do the formatting process.  +  - In LineageOS recovery, select **factory reset**, then **format data / factory reset** and do the formatting process. This will remove encryption entirely and delete all your data one more time, as well as format your cache partition. 
-  - his will remove encryption entirely and delete all your data one more time, as well as format your cache partition. +  - Go to **advanced**, select **sideload** 
-  - Go to advanced, select sideload +  - On your computer, execute:<code>adb sideload twrp-installer.zip.</code> 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 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. +  - Select **reboot to recovery** 
-  - Select reboot to recovery +  - You should now badvancede in TWRP again and you shouldn’t have any data in “install”.  
-  - You should now be in TWRP again and you shouldn’t have any data in “install”. Go into “advanced”, select adb sideload and swipe to begin sideloading  +  - Go into **“advanced”**, select **adb sideload** and swipe to begin sideloading  
-  - On your computer, execute (with sudo if required) adb sideload e-os-9.zipAt the end, you should be able to press “reboot system”, and this should get you to your fresh /e/ OS install! (note that we didn’t install TWRP after that, so we won’t have it on the device. You should be able to flash it also, if you want)+  - On your computer, execute (with sudo if required):<code>adb sideload los-10.zip</code> 
 +  - At the end, you should be able to press **“reboot system”**, and this should get you to your fresh LineageOS install! (note that we didn’t install TWRP after that, so we won’t have it on the device. You should be able to flash it also, if you want)
  
 +__**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.1600275796.txt.gz · Last modified: (external edit)