TWRP and Root for Android 8.0 Oreo

Search This thread
I flashed the latest Open Beta 25 yesterday and it took me some time to figure out how to properly root that. I was searching for a compatible TWRP for Android Oreo and I stumbled upon one when I was reading through pages and pages of comments from our community.

So, I am writing the steps here with the necessary files so that everyone can find it in one place.


This is not my work. All credits go to the original developers. I am just consolidating the steps I followed here. If I am violating any rules, please feel free to close this thread.

Credits:
@akhilnarang for Modified TWRP
@Chainfire For SuperSU

Necessary Downloads:
Oreo Compatible TWRP: https://drive.google.com/open?id=0B46mMEeAPSYGd3dBbzJhMWJUVE0
SuperSU Zip: https://drive.google.com/open?id=0B46mMEeAPSYGV1U3c3JSRmF2dWs

Steps to install TWRP and Root:

Note: My phone was encrypted when I tried this.

1. Copy the downloaded SuperSU Zip file to your phone.
2. Copy the TWRP file to the folder where ADB and Fastboot are installed.
3. Turn off your OnePlus 3/3T. Boot your OnePlus 3/3T into Fasboot mode > Press and hold the Volume Up Button + Power Button.
4. Connect your phone to your PC via USB Cable.
5. Open a command window on the folder where ADB and Fastboot are installed. Go to the folder where ADB and Fastboot are installed. Hold down Shift Key > Right Click on the empty space > Choose ‘Open CMD Here’.
6. Execute the below command in the command window to see if your device is properly connected:
Code:
fastboot devices
7. Make sure the TWRP file is in the ADB folder. Execute the below command to install TWRP on your OnePlus 3/3T running Android Oreo:
Code:
fastboot flash recovery TWRP-Oreo-OnePlus-3-3T.img
Do not restart your device upon installation. The procedure is not yet over.
8. Assuming you are now in Fastboot Mode, use the volume buttons and choose ‘Recovery Mode’ and then press the power button to enter TWRP Recovery.
9. Once you are in TWRP > Tap on ‘Install’ > Choose the SuperSU Zip file which you have downloaded from above > Swipe right to flash.
10. Reboot your device.

Let me know if you have any questions/doubts!

Source
 
Install the recovery img in TWRP again after the zip. Reboot to recovery to confirm it didn't overwrite TWRP
No, what he says is that, once you install the Oreo Update Zip from TWRP it will be replaced with TWRP. I guess we could avoid this by immediately flashing the TWRP Zip soon after flashing the Oreo Zip.
 

liam_davenport

Senior Member
Apr 17, 2014
5,496
4,956
29
Wakefield
HTC Desire
HTC One X+
No, what he says is that, once you install the Oreo Update Zip from TWRP it will be replaced with TWRP. I guess we could avoid this by immediately flashing the TWRP Zip soon after flashing the Oreo Zip.

He means stock Oreo zip. If you flash OnePlus stock rom in TWRP and don't reflash TWRP stock zip replaces it with OnePlus recovery
 
  • Like
Reactions: starboi4eva

mauk

Senior Member
May 25, 2008
339
69
Got error 7 while trying to install official Oreo beta from TWRP. Maybe a recovery issue not sure. I needed to flash last N beta and update from settings to Oreo beta
 
Got error 7 while trying to install official Oreo beta from TWRP. Maybe a recovery issue not sure. I needed to flash last N beta and update from settings to Oreo beta

You could download the Stock Oxygen OS Recovery and fastboot flash the recovery > Go to Stock Recovery > Go to 'Install from ADB' > Connect phone to PC > Sideload the update Zip > Boot into OREO > Reboot to Fastboot > Flash TWRP > Flash SuperSU. Will hardly take 15 mins. :D
 

cruizer.pankaj

New member
Sep 2, 2017
2
0
Hi Guys,
I faced below issue while flashing Oreo beta update on oneplus 3 using twrp.
Details:
TWRP: 3.1.1.2
Rooted: Magisk v14.0

Do I need to unroot and uninstall twrp before updating?

TWRP:
OnePlus3Oxygen_16_OTA_035_all_1710131629_83503ca929ca4b82.zip'
Checking for MD5 file...
Skipping MD5 check: no MD5 file found
I:Update binary zip
I:Zip does not contain SELinux file_contexts file in its root.
I:Legacy property environment initialized.
selinux_android_file_context: Error getting file context handle (No such file or directory)
Warning: No file_contextsscript aborted: E3004: This package is for "OnePlus 3" devices; this is a "".
E3004: This package is for "OnePlus 3" devices; this is a "".error: 3004
Updater process ended with ERROR: 7
I:Legacy property environment disabled.
I:Install took 0 second(s).
Error installing zip file '/sdcard/TWRP/OnePlus3Oxygen_16_OTA_035_all_1710131629_83503ca929ca4b82.zip'
Updating partition details...
I:Data backup size is 8093MB, free: 37507MB.
I:Unable to mount '/usb_otg'
I:Actual block device: '', current file system: 'vfat'
...done
I:Set page: 'flash_done'
 

SanjuM

Member
Nov 6, 2013
14
1
31
kingsville
SuperSU not Working

I flashed the latest Open Beta 25 yesterday and it took me some time to figure out how to properly root that. I was searching for a compatible TWRP for Android Oreo and I stumbled upon one when I was reading through pages and pages of comments from our community.

So, I am writing the steps here with the necessary files so that everyone can find it in one place.


This is not my work. All credits go to the original developers. I am just consolidating the steps I followed here. If I am violating any rules, please feel free to close this thread.

Credits:
@akhilnarang for Modified TWRP
@Chainfire For SuperSU

Necessary Downloads:
Oreo Compatible TWRP: https://drive.google.com/open?id=0B46mMEeAPSYGd3dBbzJhMWJUVE0
SuperSU Zip: https://drive.google.com/open?id=0B46mMEeAPSYGV1U3c3JSRmF2dWs

Steps to install TWRP and Root:

Note: My phone was encrypted when I tried this.

1. Copy the downloaded SuperSU Zip file to your phone.
2. Copy the TWRP file to the folder where ADB and Fastboot are installed.
3. Turn off your OnePlus 3/3T. Boot your OnePlus 3/3T into Fasboot mode > Press and hold the Volume Up Button + Power Button.
4. Connect your phone to your PC via USB Cable.
5. Open a command window on the folder where ADB and Fastboot are installed. Go to the folder where ADB and Fastboot are installed. Hold down Shift Key > Right Click on the empty space > Choose ‘Open CMD Here’.
6. Execute the below command in the command window to see if your device is properly connected:
Code:
fastboot devices
7. Make sure the TWRP file is in the ADB folder. Execute the below command to install TWRP on your OnePlus 3/3T running Android Oreo:
Code:
fastboot flash recovery TWRP-Oreo-OnePlus-3-3T.img
Do not restart your device upon installation. The procedure is not yet over.
8. Assuming you are now in Fastboot Mode, use the volume buttons and choose ‘Recovery Mode’ and then press the power button to enter TWRP Recovery.
9. Once you are in TWRP > Tap on ‘Install’ > Choose the SuperSU Zip file which you have downloaded from above > Swipe right to flash.
10. Reboot your device.

Let me know if you have any questions/doubts!

Source
hello, i followed all the steps but for some reason, my phone is stuck in boot loop. everything is normal untill i see my lockscreen,but as soon as i try to unlock or even press powerbutton , the phone restarts again everytime.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 35
    I flashed the latest Open Beta 25 yesterday and it took me some time to figure out how to properly root that. I was searching for a compatible TWRP for Android Oreo and I stumbled upon one when I was reading through pages and pages of comments from our community.

    So, I am writing the steps here with the necessary files so that everyone can find it in one place.


    This is not my work. All credits go to the original developers. I am just consolidating the steps I followed here. If I am violating any rules, please feel free to close this thread.

    Credits:
    @akhilnarang for Modified TWRP
    @Chainfire For SuperSU

    Necessary Downloads:
    Oreo Compatible TWRP: https://drive.google.com/open?id=0B46mMEeAPSYGd3dBbzJhMWJUVE0
    SuperSU Zip: https://drive.google.com/open?id=0B46mMEeAPSYGV1U3c3JSRmF2dWs

    Steps to install TWRP and Root:

    Note: My phone was encrypted when I tried this.

    1. Copy the downloaded SuperSU Zip file to your phone.
    2. Copy the TWRP file to the folder where ADB and Fastboot are installed.
    3. Turn off your OnePlus 3/3T. Boot your OnePlus 3/3T into Fasboot mode > Press and hold the Volume Up Button + Power Button.
    4. Connect your phone to your PC via USB Cable.
    5. Open a command window on the folder where ADB and Fastboot are installed. Go to the folder where ADB and Fastboot are installed. Hold down Shift Key > Right Click on the empty space > Choose ‘Open CMD Here’.
    6. Execute the below command in the command window to see if your device is properly connected:
    Code:
    fastboot devices
    7. Make sure the TWRP file is in the ADB folder. Execute the below command to install TWRP on your OnePlus 3/3T running Android Oreo:
    Code:
    fastboot flash recovery TWRP-Oreo-OnePlus-3-3T.img
    Do not restart your device upon installation. The procedure is not yet over.
    8. Assuming you are now in Fastboot Mode, use the volume buttons and choose ‘Recovery Mode’ and then press the power button to enter TWRP Recovery.
    9. Once you are in TWRP > Tap on ‘Install’ > Choose the SuperSU Zip file which you have downloaded from above > Swipe right to flash.
    10. Reboot your device.

    Let me know if you have any questions/doubts!

    Source
    3
    TWRP Oreo 3/3T + open beta 27 + Magisk 14.3 beta == win
    3
    I do remember someone saying that they have successfully flashed magisk. It involves setting SElinux to permissive from bootloader or something. I don't remember it very well. I will update the OP after I dig up that info. :good:
    Yes I have. But it keeps loosing root. And sometimes doesn't boot in one go. I flashed over ob24 without wiping anything.

    Steps:
    1. Flash oreo compatible twrp
    2. Flash Oreo OB ROM
    3. Flash DM-Verity and Force Encryption Disabler For OOS Oreo.zip (credit @Xennet) see https://xdaforums.com/oneplus-3t/how-to/disable-dm-verity-force-encryption-op3t-t3688748 for attachment
    3. Flash oreo compatible twrp again
    4. Flash oneplus3 bootloader from OOS 3.2.6. (credit @baskaflyfer) see https://xdaforums.com/showpost.php?p=74158686&postcount=305 for attachment
    5. Phone off
    6. Power on and go straight to bootloader
    7. Issue the cmand 'fastboot OEM selinux permissive'
    8. Reboot to twrp
    9. Flash magisk
    10. Flash attached oneplus3 bootloader from open beta 25. you can make a zip yourself using @baskaflyfer zip
    11. Flash twrp
    12. Reboot to system

    Points to note:
    1. This should work on dirty flash over ob24
    2. Should ensure dm-verity is not triggered
    3. Should leave the data partition as is (unencrypted to unencrypted...or encrypted to encrypted)
    4. Some steps are redundant, but no harm in doing them to be on safe side
    EDIT: 5. flashing the new bootloader again may break magisk. hence removed step 10

    Cheers.
    2
    Yes, but isn't Oreo package replacing TWRP with OnePlus recovery?

    Sent from my OnePlus3 using XDA Labs

    Install the recovery img in TWRP again after the zip. Reboot to recovery to confirm it didn't overwrite TWRP
    2
    Its only possible with oneplus recovery. Trust me.