• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[TWRP][3.6.0-11-b1][instantnoodle]TWRP for OnePlus 8/8Pro ][BETA]

Search This thread

infected_

Recognized Developer
Jul 12, 2008
5,901
14,436
OnePlus 8


TWRP for OnePlus 8 and 8 Pro



TWRP is an open source, community project. TWRP development is done by a large support community with many people who are willing to answer questions and help people with their devices either through our IRC channel or on forums like xda-developers, and zulip-chat.

A custom recovery is used for installing custom software on your device. This custom software can include smaller modifications like rooting your device or even replacing the firmware of the device with a completely custom "ROM".

You can find the source code for TWRP at github.com/teamwin/android_bootable_recovery/

#include <std_disclaimer.h>
/*
*
* We are not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this recovery.
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at us for messing up your device, we will laugh at you.
*
*/

A11 support is still a WIP, keep that in mind.

WORKING:
Decryption
ADB Sideload
Format Data
Flashing zips (kernels and ROM's)
Backup/Restore
MTP is working
adb is working

NOT WORKING
wip

Download:

https://www.androidfilehost.com/?w=files&flid=328628

Instructions

Windows

Install oneplus usb driver, after disabling driver signature enforcement

Download and install platform tools, unzip and add the folder to Windows path,

"Settings > Advanced System Settings > Environment Variables > New"

Example -> http:///imgur.com/a/x8XOofQ

open command prompt, or powershell, and:

fastboot flash recovery_a twrpname.img
fastboot flash recovery_b twrpname.img

Linux

Download and add to path (.bashrc) platform-tools:

export PATH=$HOME"/platform-tools:$PATH"

dont forget udev rules if you're using ubuntu based distro:

https://github.com/M0Rf30/android-udev-rules

open a terminal and:

fastboot flash recovery_a twrpname.img
fastboot flash recovery_b twrpname.img

that's all.


Source Code:

https://github.com/infectedmushi/android_device_oneplus_instantnoodle
https://github.com/infectedmushi/android_bootable_recovery
https://github.com/bigbiff/android_device_oneplus_instantnoodle
https://github.com/TeamWin/android_bootable_recovery
https://github.com/systemad/android_device_oneplus_instantnoodle

Credits:
@bigbiff
@Lossyx
@Captain_Throwback for original tree
@mauronofrio for original tree
TWRP team


(Thread is still WIP)
 
Last edited:

infected_

Recognized Developer
Jul 12, 2008
5,901
14,436
OnePlus 8
HOW TO BACKUP && RESTORE ON TWRP CORRECTLY

Steps for backing up and restoring data in TWRP (Huge thanks to @BillGoss )

Remove any password/pin/pattern before doing this

Backup

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

Restore
In TWRP
If you skip this step you will not be able to successfully start the system after restoring data
  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. Reboot system

    Note:
    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 or a toast message saying "com.android.phone keeps stopping."
      Tap "Close app", hold the Power button down to be presented with the option to (Lockdown), Power off, or Restart. Select Restart
    3. It may take a couple of restarts

If you want to backup and restore fingerprints too, follow the guide in the attached file

https://forum.xda-developers.com/t/...ect-8t-kebab-2021-09-04.4302449/post-85292199

thanks @BillGoss && @theincognito
 

Attachments

  • Backup data with FP.txt
    1.8 KB · Views: 139
  • fpbr.sh
    1.7 KB · Views: 60
Last edited:

infected_

Recognized Developer
Jul 12, 2008
5,901
14,436
OnePlus 8

Top Liked Posts

  • 12
    back to business guys. feels good to be ok, in good health and back to XDA..

    i'll compile a new build even today.

    let's keep rolling again!!

    regards.
    5
    Thanks for the update and all the best for you 🙂👍

    Updated the magisk module installer with the new beta. Can be flashed inside magisk like a module and twrp beta 8 will install to slot a and b.

    Thanks @osm0sis for the template. 😊
    Updated zip to twrp-op8-3.6.0_11-b1.img image. 😊
    4
    uploaded build 3.6.0-11 beta #1

    changelog in a bit.
    2
    Please fix ROM flashing
    need logs pls. @dyval you too if you can also
  • 18
    uploaded beta 8.

    * Handle XML files format properly
    * Add support of A12 keymaster_key_blob files structure
    * keymaster restore: warn when pin, password or pattern is enabled
    * rotation: fix switch statement for rotation
    * sepolicy: make postinstall permissive
    * recovery: Don't exclude the whole data system dir for the factory reset
    * module load: don't processed /vendor in fastbootd if not required
    * theme: Capitalize EDL
    * keyboard: add num template for PIN input
    * crypto: differentiate type for PIN
    * Revert "checkpoint: check checkpoint instead of assuming"
    * checkpoint: check checkpoint instead of assuming
    * postinstall: allow twrp to run postinstall scripts
    * sepolicy: update for exfat-fuse
    * apex: cleanup apex directory bind mount names
    * custom theme: fix libziparchive loading of custom themes

    i have to take care of some health issues, but i hope ill be back soon again.

    meanwhile.., you guys develop, code, and flash away! :)

    regards.
    12
    back to business guys. feels good to be ok, in good health and back to XDA..

    i'll compile a new build even today.

    let's keep rolling again!!

    regards.
    12
    uploaded beta 8.

    * Handle XML files format properly
    * Add support of A12 keymaster_key_blob files structure
    * keymaster restore: warn when pin, password or pattern is enabled
    * rotation: fix switch statement for rotation
    * sepolicy: make postinstall permissive
    * recovery: Don't exclude the whole data system dir for the factory reset
    * module load: don't processed /vendor in fastbootd if not required
    * theme: Capitalize EDL
    * keyboard: add num template for PIN input
    * crypto: differentiate type for PIN
    * Revert "checkpoint: check checkpoint instead of assuming"
    * checkpoint: check checkpoint instead of assuming
    * postinstall: allow twrp to run postinstall scripts
    * sepolicy: update for exfat-fuse
    * apex: cleanup apex directory bind mount names
    * custom theme: fix libziparchive loading of custom themes

    i have to take care of some health issues, but i hope ill be back soon again.

    meanwhile.., you guys develop, code, and flash away! :)

    regards.
    Thanks for the update and all the best for you 🙂👍

    Updated the magisk module installer with the new beta. Can be flashed inside magisk like a module and twrp beta 8 will install to slot a and b.

    Thanks @osm0sis for the template. 😊
    7
    I know this works but my point was to flash GAPPS Stock to replace LineageOS System apps. So I need to resize system on wipe, but system does not show up on wipe, only dalvik cache, vendor and etc, and I checked system on mount and I see another one called system_ext which I cannot check. Thanks for helping tho.

    My Wipe looks like this but in English: No system at all

    Not trying to be rude, but you need to rethink what you are doing, and understand that you have already been given the correct information.

    So take a step back. Think about partitions. Do you know how they are structured and are formed? They file you are trying to fit has to go IN the system partition, which contains the OS and all the other things the device uses to actually run what you see on the screen (everything). It (the system partition) has a limited size, as it is pre-made. It also cannot be re-sized, as that would change the signature, and this is SAR (system-as-root, as will all A11+ devices). you cannot modify the system partition, as you will BREAK the system partition.

    Then, and again apologies for this, you said something quite bad... You asked about formatting the system partition, so you can fit your file. The problem is, if you delete the system partition, you can't boot. No, you cannot just re-flash system, and, even if you could, it would replace the partition you wrote for gapps, as this all works a one IMAGE, not a file-based system you might be thinking of.

    So stop wasting your time, it will not work. You MUST choose a smaller package. Listen when people say something, we are not just trying to shrug you off, but 95% of the people do the same ****, and we don't want to repeat after years and years of not only learning and knowing the stuff, but even from telling people and expecting them to listen/learn.

    So, no, you can't do it.
    6
    Thanks for reply. I see some members flashing custom roms; are they doing that without wiping the system partition first?
    Yes. The old days where wiping system is necessary is no more because the partitions inside super partition will automatically be destroyed and recreated when flashing.
  • 50


    TWRP for OnePlus 8 and 8 Pro



    TWRP is an open source, community project. TWRP development is done by a large support community with many people who are willing to answer questions and help people with their devices either through our IRC channel or on forums like xda-developers, and zulip-chat.

    A custom recovery is used for installing custom software on your device. This custom software can include smaller modifications like rooting your device or even replacing the firmware of the device with a completely custom "ROM".

    You can find the source code for TWRP at github.com/teamwin/android_bootable_recovery/

    #include <std_disclaimer.h>
    /*
    *
    * We are not responsible for bricked devices, dead SD cards,
    * thermonuclear war, or you getting fired because the alarm app failed. Please
    * do some research if you have any concerns about features included in this recovery.
    * before flashing it! YOU are choosing to make these modifications, and if
    * you point the finger at us for messing up your device, we will laugh at you.
    *
    */

    A11 support is still a WIP, keep that in mind.

    WORKING:
    Decryption
    ADB Sideload
    Format Data
    Flashing zips (kernels and ROM's)
    Backup/Restore
    MTP is working
    adb is working

    NOT WORKING
    wip

    Download:

    https://www.androidfilehost.com/?w=files&flid=328628

    Instructions

    Windows

    Install oneplus usb driver, after disabling driver signature enforcement

    Download and install platform tools, unzip and add the folder to Windows path,

    "Settings > Advanced System Settings > Environment Variables > New"

    Example -> http:///imgur.com/a/x8XOofQ

    open command prompt, or powershell, and:

    fastboot flash recovery_a twrpname.img
    fastboot flash recovery_b twrpname.img

    Linux

    Download and add to path (.bashrc) platform-tools:

    export PATH=$HOME"/platform-tools:$PATH"

    dont forget udev rules if you're using ubuntu based distro:

    https://github.com/M0Rf30/android-udev-rules

    open a terminal and:

    fastboot flash recovery_a twrpname.img
    fastboot flash recovery_b twrpname.img

    that's all.


    Source Code:

    https://github.com/infectedmushi/android_device_oneplus_instantnoodle
    https://github.com/infectedmushi/android_bootable_recovery
    https://github.com/bigbiff/android_device_oneplus_instantnoodle
    https://github.com/TeamWin/android_bootable_recovery
    https://github.com/systemad/android_device_oneplus_instantnoodle

    Credits:
    @bigbiff
    @Lossyx
    @Captain_Throwback for original tree
    @mauronofrio for original tree
    TWRP team


    (Thread is still WIP)
    23
    uploaded beta 6.

    changelog:

    * Add custom kernel for recovery
    * crypto: only set crypto state and type if not already set
    * crypto: only show FBE error if device is encrypted
    * digest: fix checking of digest on restore
    * fs_mgr: allow deleting merged snapshots
    * merges: allow user to perform snapshot merges in advanced menu
    * mtp: don't create storage device after format data
    * recovery: Allow kernel to read and write unlabeled files
    * repacker: add root overwrite warning


    regards.
    20
    uploaded beta 5.

    changelog:

    * install_keyring: only set props if not already set
    * recovery: Allow kernel to read and write unlabeled files
    * mtp: don't create storage device after format data
    * repacker: add root overwrite warning
    * twrp.fstab: add persist and remove extra tabs

    regards.
    18
    uploaded beta 8.

    * Handle XML files format properly
    * Add support of A12 keymaster_key_blob files structure
    * keymaster restore: warn when pin, password or pattern is enabled
    * rotation: fix switch statement for rotation
    * sepolicy: make postinstall permissive
    * recovery: Don't exclude the whole data system dir for the factory reset
    * module load: don't processed /vendor in fastbootd if not required
    * theme: Capitalize EDL
    * keyboard: add num template for PIN input
    * crypto: differentiate type for PIN
    * Revert "checkpoint: check checkpoint instead of assuming"
    * checkpoint: check checkpoint instead of assuming
    * postinstall: allow twrp to run postinstall scripts
    * sepolicy: update for exfat-fuse
    * apex: cleanup apex directory bind mount names
    * custom theme: fix libziparchive loading of custom themes

    i have to take care of some health issues, but i hope ill be back soon again.

    meanwhile.., you guys develop, code, and flash away! :)

    regards.
    16
    uploaded beta 3.

    changelog:

    * zip install: unmap any dynamic partitions before installing
    * version: don't show as error if we cannot write the version string
    * relink recovery modules correctly - Added ziptool as unzip deprecated in a11

    regards.