[No longer maintained] [RECOVERY] [11] [OFFICIAL] TeamWin Recovery Project (8T / Kebab) (2022-03-09)

Search This thread

enkidu70

Senior Member
Nov 9, 2012
265
87
That means that the rom you installed included those three system partitions files
It is still on original stock OxygenOS 11.0.11.11 and I was about to prepare it for crDroid...

and that the copy-partitions did it's work properly (if you look at the shell script it runs it has some partitions excluded).
Ok... I did not look so deep into it... :D

If you want to be able to boot either slot, then you'll have to manually sync those three partitions.
I'll do so. Tnx!

I created my own shell script (attached, needs root) because I wanted to be able to sync all partitions and to be able to specify just one.
That's perfect. I'll try it asap!

Thank you!
 

BillGoss

Senior Member
Sep 2, 2010
5,225
4,601
Sydney
OnePlus 8T
It is still on original stock OxygenOS 11.0.11.11 and I was about to prepare it for crDroid...


Ok... I did not look so deep into it... :D


I'll do so. Tnx!


That's perfect. I'll try it asap!

Thank you!
The shell script I gave you was a modified version of copy-partition (I'd forgotten that!). And looking at it again I see that the original ignored partitions were "dtbo_a dtbo_b system_a system_b boot_a boot_b vbmeta_a vbmeta_b". So that explains what you saw after running copy-partition.
 
  • Like
Reactions: enkidu70

Patjutzu

Senior Member
Aug 3, 2013
133
12
Berlin
OnePlus 8T
Good morning
I have a question

I have made a backup with their TWRP of my crDroid Rom (data only) as described.

I wanted to restore it then unfortunately the restore has only limited worked because all my apps are back but all the settings I made in the system are gone.

Did I make a mistake or is it just not possible at the moment?

Greetings
 

Fif_

Senior Member
Jun 5, 2013
1,214
1,346
Google Nexus 10
Google Nexus 4
Good morning
I have a question

I have made a backup with their TWRP of my crDroid Rom (data only) as described.

I wanted to restore it then unfortunately the restore has only limited worked because all my apps are back but all the settings I made in the system are gone.

Did I make a mistake or is it just not possible at the moment?

Greetings
I had the same experience the one time I had to restore on stock OOS.
 

BillGoss

Senior Member
Sep 2, 2010
5,225
4,601
Sydney
OnePlus 8T
Good morning
I have a question

I have made a backup with their TWRP of my crDroid Rom (data only) as described.

I wanted to restore it then unfortunately the restore has only limited worked because all my apps are back but all the settings I made in the system are gone.

Did I make a mistake or is it just not possible at the moment?

Greetings
I'm pretty sure that happens if you've formatted the data partition.

If you only do a factory reset (if restoring a backup of the current rom), then the settings usually survive.
 
  • Like
Reactions: Fif_

Patjutzu

Senior Member
Aug 3, 2013
133
12
Berlin
OnePlus 8T
I'm pretty sure that happens if you've formatted the data partition.

If you only do a factory reset (if restoring a backup of the current rom), then the settings usually survive.
Hello @BillGoss

I just tested another ROM maybe that was the error !?!
Since I have made only a factory reset in TWRP that was all.
Otherwise I have proceeded exactly according to instructions.
 
It's been a few years since I used TWRP and flash custom Rom to a phone so sorry in advance for the overall noob questions.
I read everything at the OnePlus 8T Wikipage HERE
It mentions there is a lineage recovery to use. Which I don't understand and also says a manditory step is to flash copy-partitions-20210323_1922.zip using said recovery method.

I am coming from stock. I would like to have TWRP installed fully with latest version of Lineage and Magisk as root.
I am confused about the Rom install instructions Here on XDA

Can anyone guide me in the right direction. NOT sure how to proceed to use TWRP or this other recovery that I'm not familiar with.
 
Last edited:

theincognito

Senior Member
Feb 26, 2015
613
864
Redmi K20 Pro
OnePlus 8T
It's been a few years since I used TWRP and flash custom Rom to a phone so sorry in advance for the overall noob questions.
I read everything at the OnePlus 8T Wikipage HERE
It mentions there is a lineage recovery to use. Which I don't understand and also says a manditory step is to flash copy-partitions-20210323_1922.zip using said recovery method.

I am coming from stock. I would like to have TWRP installed fully with latest version of Lineage and Magisk as root.
I am confused about the Rom install instructions Here on XDA

Can anyone guide me in the right direction. NOT sure how to proceed to use TWRP or this other recovery that I'm not familiar with.

As long as you have latest OOS on both partitions, you dont need the copy partitions zip. But, unless you intentionally did that, your both slots will have different firmware for sure. So use that copy partitions zip.

To go from OOS to LOS with the help of TWRP, follow this:

1. Make sure to backup your internal storage to PC or external drives.

2. Get the latest twrp img and installer from first post/twrp website and boot the twrp image using fastboot. (The TWRP logo may seem to be stuck, but it will boot in around 50s max, mostly lower time)

3. Copy and flash the copy partitions zip, then format /data using TWRP. Dont reboot yet

4. Flash the twrp installer using adb sideload option from TWRP.

5. Switch slot to opposite slot from reboot menu and then reboot to TWRP.

6. adb sideload lineage rom zip.

7. adb sideload twrp installer zip and reboot to TWRP.

8. adb sideload gapps and reboot to system.

9. Now you have a working lineage with TWRP.

PS: This is only like this for the first time. After this, simply update lineage ROM with TWRP like old days.
 

tyler19820201

Senior Member
Jun 19, 2011
381
70
London
I am using AICP and flashed every update from AICP recovery till now. Can anybody explain a bit how to flash the official twrp without losing anything?
This is how i do:
Update AICP via OTA preserve TWRP recovery and magisk root & magisk settings and modules

0. THIS STEP IS OPTIONAL!
Remove your PIN/pattern/password on your device.
(I have not tested with no removing password but latest twrp should manage encryption now, so if you are not removing password/PIN/pattern should be okay...However i have not tested yet. I recommend remove all password/PIN/pattern before you are doing anything. But the choiche is yours...)

1. Make sure you have twrp installer .zip and magisk.zip on your internal storage.

2. Perform the OTA update. Once you see Reboot DO NOT reboot!! Open Magisk Manager.

3. On Magisk Manager go to modules and select Install from Storage. Select the twrp installer zip and flash it.

4. On Magisk Manager click on Install and select "Install to Inactive Slot (After OTA)" and select the magisk.zip and flash it.

5. Reboot your device. Once you have succesfully booted into the updated AICP, reboot again into recovery. You should get TWRP recovery again, it means installer .zip has been succesfully applied. Now you can flash gapps and addons and whatever you want.

6. Reboot into system. Set it back your password/PIN/pattern.
7. Reboot AGAIN!!
8. Done

It can be applied on other custom ROMs also.
 
  • Like
Reactions: iTalisman

BillGoss

Senior Member
Sep 2, 2010
5,225
4,601
Sydney
OnePlus 8T
This is how i do:
Update AICP via OTA preserve TWRP recovery and magisk root & magisk settings and modules

0. THIS STEP IS OPTIONAL!
Remove your PIN/pattern/password on your device.
(I have not tested with no removing password but latest twrp should manage encryption now, so if you are not removing password/PIN/pattern should be okay...However i have not tested yet. I recommend remove all password/PIN/pattern before you are doing anything. But the choiche is yours...)

1. Make sure you have twrp installer .zip and magisk.zip on your internal storage.

2. Perform the OTA update. Once you see Reboot DO NOT reboot!! Open Magisk Manager.

3. On Magisk Manager go to modules and select Install from Storage. Select the twrp installer zip and flash it.

4. On Magisk Manager click on Install and select "Install to Inactive Slot (After OTA)" and select the magisk.zip and flash it.

5. Reboot your device. Once you have succesfully booted into the updated AICP, reboot again into recovery. You should get TWRP recovery again, it means installer .zip has been succesfully applied. Now you can flash gapps and addons and whatever you want.

6. Reboot into system. Set it back your password/PIN/pattern.
7. Reboot AGAIN!!
8. Done

It can be applied on other custom ROMs also.
I would skip:
- removing password/pin (only required if doing the TWRP data backup restore process)
- flashing Magisk.zip (you haven't uninstalled Magisk, so all the Magisk data is still there, as is the app).
 
  • Like
Reactions: tyler19820201

tyler19820201

Senior Member
Jun 19, 2011
381
70
London
I would skip:
- removing password/pin (only required if doing the TWRP data backup restore process)
- flashing Magisk.zip (you haven't uninstalled Magisk, so all the Magisk data is still there, as is the app).
Maybe i am wrong but regarding my theory if i flash magisk .zip i am patching the boot .img. If i do not do, obviously the updated rom will boot with the updated & unpatched boot .img therefore magisk manager will be there but root itself will be gone. In other words i have to flash magisk again from manager. That is why i am 'patching' again the updated boot .img after OTA is done.
Am i wrong then??
 

Top Liked Posts

  • There are no posts matching your filters.
  • 20
    Hello fellow 8T users: It's the end of the road for me, being the TWRP maintainer for 8T. I no longer possess 8T with me and have got a new device.

    Reasons for this were basically just one:- Personal life got in the way, hard.

    Thank you everyone for all the support you did, especially @BillGoss , @osm0sis and @bigbiff

    If anyone else wanna step up and continue maintaining this device, please feel free to ping me or @bigbiff

    Ciao!


    To the mods: Please keep this thread open, until a new maintainer is found.
    8
    A minor update (twrp-3.6.2_11-0) is now available: https://twrp.me/oneplus/oneplus8t.html
    Changes: see https://twrp.me/site/update/2022/06/01/twrp-3.6.2-released.html
    And, no, this update doesn't boot up on OOS 12, even if you remove encryption (tested on KB2005 C.20).
    3
    Hello fellow 8T users: It's the end of the road for me, being the TWRP maintainer for 8T. I no longer possess 8T with me and have got a new device.

    Reasons for this were basically just one:- Personal life got in the way, hard.

    Thank you everyone for all the support you did, especially @BillGoss , @osm0sis and @bigbiff

    If anyone else wanna step up and continue maintaining this device, please feel free to ping me or @bigbiff

    Ciao!


    To the mods: Please keep this thread open, until a new maintainer is found.
    Sorry to hear. 😭
    Hope somebody will do Android12 encryption support ... 🙄
    2
    Hello fellow 8T users: It's the end of the road for me, being the TWRP maintainer for 8T. I no longer possess 8T with me and have got a new device.

    Reasons for this were basically just one:- Personal life got in the way, hard.

    Thank you everyone for all the support you did, especially @BillGoss , @osm0sis and @bigbiff

    If anyone else wanna step up and continue maintaining this device, please feel free to ping me or @bigbiff

    Ciao!


    To the mods: Please keep this thread open, until a new maintainer is found.
    Thank you for all your effort!
    2
    If adb works you can try to input your passcode/pin/password through adb shell
    If you are lucky that might unlock your phone and decrypt data

    If that work you can at least use adb to backup your internal storage
  • 94



    Introduction:

    Team Win Recovery Project or TWRP for short, is a custom recovery built with ease of use and customization in mind. We started from the ground up by taking AOSP recovery and loading it with the standard recovery options, then added a lot of our own features. It's a fully touch driven user interface , no more volume rocker or power buttons to mash. The GUI is also fully XML driven and completely theme-able. You can change just about every aspect of the look and feel.

    Key Features:

    Touchscreen driven with real buttons and drag-to-scroll
    XML-based GUI that allows full customization of the layout true theming!
    Settings are saved to the sdcard and persist through reboots
    Ability to choose which partitions to back up and which to restore
    Ability to choose to compress backups now with pigz (multi-core processor support for faster compression times)
    Onscreen keyboard
    Easy selection of internal/external storage

    In addition to the above new features, TWRP features a scripting engine that allows an app to send commands to the recovery for the recovery to perform during startup. We call this scripting engine OpenRecoveryScript. This engine will be put to use immediately in the GooManager app. GooManager will be able to install recoveries automatically for most supported devices. The app will also let you choose to install multiple zips from within Android, wipe, and run a backup.

    We are looking for other talented developers, themers, and device maintainers if they are interested in helping with a free, open source project.

    Source Code:

    GitHub - https://github.com/TeamWin/android_bootable_recovery

    Gerrit Instance - http://gerrit.twrp.me

    If you have made your own TWRP build for an unsupported device, please let us know. We might add your build to the list of unofficial builds. Bear in mind that we are working hard to add more devices and we may add your device to our official build list later.


    Hello, this is TWRP, for Oneplus 8T

    Installation:
    # To temporarily boot it
    fastboot boot <twrp_file_name>.img

    # Since 8T/9R has a separate recovery partition, you can flash the recovery with
    fastboot flash recovery <twrp_file_name>.img

    Updating to a newer build:
    Simply flash the latest TWRP installer zip from TWRP

    OR

    Flash the img from TWRP/fastboot


    FAQ/Know Bugs are given in post #2

    Send me a beer, if you think I deserve it: PayPal


    Huge thanks to:
    @bigbiff (For everything :D 🥰 )
    @Lossyx
    @osm0sis
    @Nebrassy
    @Qnorsten

    for helping in making this recovery. Without these people, TWRP for this device would not have been possible. :D

    Special mention to a friend @apophis9283 :)

    Trees:
    Device: https://github.com/theincognito-inc/android_device_oneplus_kebab
    Kernel: https://github.com/AOSPA/android_kernel_oneplus_sm8250

    Download:

    If you need a black themed TWRP (same TWRP as the above, but themed black), you can go to this thread:
    31
    FAQ and Known bugs of TWRP:

    • If you are planning to switch to a custom ROM, and are currently on OOS/H2OS, format /data, switch slot, reboot to TWRP and then sideload/flash the ROM + installer.
    • It's better to flash ROM + TWRP installer, if you want to keep your TWRP after flashing a ROM.
    • Don't format /data, after a flashing a ROM, before the first reboot.
    • It takes around 50s to actually boot into TWRP.

    Ideal way to flash:
    • For OOS to Custom ROM - Format /data, switch slot, reboot to TWRP, sideload/flash ROM + installer, reboot to TWRP, flash Magisk/Gapps. Reboot to system.
    • For Custom to Custom ROM - Format /data. Flash ROM + installer, reboot to TWRP, flash Magisk/Gapps. Reboot to system.
    • For updating a custom ROM - Flash ROM + installer, reboot to TWRP, flash Magisk/Gapps. Reboot to system
    • For custom ROM to OOS - Format /data. Flash ROM + installer, reboot to TWRP, flash Magisk. Reboot to system.

    PS: After formatting /data, until the first time the device is booted to system, the files you send to phone via MTP (USB) will be at /data/media, not at /sdcard

    PS2: If, for some reason, you cannot send files to phone after formatting /data and rebooting to TWRP, press vol +, vol - and power button simultaneously.

    PS3: Factory reset WILL NOT wipe internal storage.
    24
    New build released - 20210726 (Kebab only)

    Changelog:

    1. Removed 9R support
    2. Fixed the TWRP screen overlapping with the notch
    3. Various mount errors while flashing ROMs should be gone now (atleast my testers think so)
    4. Latest upstream changes
    5. Removed AOSPA kernel, and updated to latest LOS kernel
    Download links:

    IMG: twrp-3.5.2_11-0-kebab-20210726-alpha
    Installer: twrp-installer-3.5.2_11-0-kebab-20210726-alpha

    As always, links are updated in the OP too.
    23
    Steps for backing up and restoring data in TWRP (Huge thanks to @BillGoss )

    TL;DR for data backup on custom ROMs:

    1. Backup /data (copy the backup folder to PC if you will format /data).
    2. Flash the ROM and boot it once to system.
    3. Restore /data (copy the backup folder back from PC if you formatted in step 1) and boot into system.
    4. If you find any issues like missing navigation bar or blank screen or something, just do a normal reboot again to system.

    System Backup and Restore
    The "system" partitions on the OnePlus 8T are:
    • Boot
    • DTBO
    • Super which contains the logical system, system_ext, odm, product, and vendor partitions
    Just backup and restore these partitions.
    Do NOT backup/restore any of the logical partitions individually.


    Data Backup
    1. Make sure USB debugging is enabled
    2. You do NOT need to remove your password

    In TWRP
    1. Backup: Select only the Data partition.
    2. Reboot System

    Restore
    Remove the current password before starting the restore process by Settings>Security & Lock Screen>Screen lock: Select Swipe (if prompted tap on "Yes, remove")
    If you don't do this, the system will not reboot properly after restoring.

    This will also remove your fingerprint data and your lockscreen (encryption) password (you won't be prompted for a password in TWRP or when you restart the system)

    In TWRP
    1. Wipe>Factory Reset
    2. Reboot System (this will rebuild the data partition)

    Back in TWRP
    1. Restore: Select the backup you want to restore
    2. Remove the SIM card. If you don't do this the system won't boot properly.
    3. Reboot system, making sure the phone is not connected to a PC

    Notes:
    1. At this point the phone will take longer than usual to boot - that's normal
    2. You will be presented with a blank screen
      • Connect the phone to a PC. You should be able to see the phone using adb devices
      • Disconnect the phone from the PC
    3. Hold the Power button down and select Restart

    In System
    1. Settings>Security & Lock Screen>Screen lock: set your password
    2. Insert the SIM card
    Note: Your fingerprints will have been restored because the backup was taken with the password set.
    20
    Hello fellow 8T users: It's the end of the road for me, being the TWRP maintainer for 8T. I no longer possess 8T with me and have got a new device.

    Reasons for this were basically just one:- Personal life got in the way, hard.

    Thank you everyone for all the support you did, especially @BillGoss , @osm0sis and @bigbiff

    If anyone else wanna step up and continue maintaining this device, please feel free to ping me or @bigbiff

    Ciao!


    To the mods: Please keep this thread open, until a new maintainer is found.