[OnePlus 3 & 3T Cross Device Development] anupritaisno1:
Enhanced twrp for op3 and op3t

Download from official server:

Download for oxygenos and other non-treble ROMs: https://glassrom.pw/op3_recovery.img

Download for treble ROMs: https://glassrom.pw/op3_recovery-treble.img

Download from CDN:

Download for oxygenos and other non-treble ROMs: https://cdn.glassrom.pw/op3_recovery.img

Download for treble ROMs: https://cdn.glassrom.pw/op3_recovery-treble.img

Unofficial mirrors:

Hosted by [MENTION=6493997]Sytis[/MENTION] https://storage.ceres-sys.de/glassrom

Don't ask these questions. Seriously:

Features: none. It's a recovery. It should be as simple as possible because you rely on this stuff to recover your device in case something goes wrong

Seriously. Were you expecting features from a custom recovery?

Screenshots: it looks like TWRP

Important. There is a blank option and a system_root option in the mounts section. These are only for compatibility with scripts. Do not try to tick them yourself

Some scripts may throw a "failed to umount /system_root" message. This is fine

Important: why do some ROMs refuse to flash?

Some ROMs like oxygenos and glassrom use a feature called "downgrade attack prevention". If TWRP's build date is higher than the build date of the ROM the installation script assumes a downgrade attack is happening and the flashing fails

System nandroid restore fails:

You are not supposed to be restoring file-based backups of the system partition on a device with dm-verity in the first place. Backup and restore system image backups.

Glassrom users: if this is your first time flashing glassrom remember that the current enhanced twrp will always have a build date higher than the current glassrom build. In other words you can only flash a newer glassrom build as long as your enhanced twrp build is older or in other words:

Switching to glassrom: use official twrp, flash glassrom and then flash enhanced TWRP to enforce downgrade attack prevention

Updating glassrom: no need to switch to official. Always update glassrom before you update enhanced twrp

This was intentionally done to prevent downgrade attacks on glassrom. Using enhanced twrp with glassrom is recommended

This TWRP addresses a number of issues that have been plaguing the op3:

Uses a backported F2FS driver (5.1-rc1-3.18) that fixes an issue where TWRP would get stuck on the TWRP splash screen for a long time if the user was using F2FS

Uses an upstream kernel that was taken from lineage's common kernel https://github.com/LineageOS/android_kernel_qcom_msm8996

Added all crypto footer code back to resolve all encryption issues

Improved detection of device variant. Recovery now validly detects op3 and op3t

A full selinux policy so that files do not get labelled incorrectly. This resolves a bunch of issues like "device doesn't boot after restoring nandroid"

Built against full lineage source. No minimal manifest or any other nonsense

Upstreamed sdfat driver for better suppport for USB-OTG drives

No prebuilt kernels. Uses a fully source built kernel

Kernel built with a compatible GCC 8. No weird compiler optimisation

Ext4 is the default filesystem instead of f2fs

Current issues: even if the source code is out building TWRP against lineage is not something a beginner can do. If somebody is willing to contribute build documentation they are more than welcome

XDA:DevDB Information

Anupritaisno1's enhanced twrp builds, Tool/Utility for the OnePlus 3

Contributors

anupritaisno1, anupritaisno1, dianlujitao

Source Code: https://github.com/GlassROM-devices

https://bitbucket.org/anupritaisno1/aarch64-linux-gnu

Version Information

Status: Stable

Current Stable Version: 3.3.0

Stable Release Date: 2019-05-01

Created 2019-05-03

Last Updated 2019-05-02