[Asus ZenFone 3 ROMs, Kernels, Recoveries, & Other ] Giovix92:
This is a TWRP fully Treble-ready with "Treble enabler" option in order to repartition safely the device.

Features:

TWRP fully Treble-ready;

Maintained with latest TWRP version;

Fully compatible with non-Treble devices - can be used as normal without Treble partitioning;

USB-OTG fixed

Has 'TWRP survival' function for automatically re-installing TWRP recovery when installing ROMs and kernels;

Adds a "Treble enabler" option that allows you to repartition your device in order to support Treble.

Has the option to shrink userdata to create Vendor partitions. All relevant partitions will be resized and formatted in one go.

If you shrink Userdata, it will ERASE DATA AND INTERNAL STORAGE COMPLETELY - but your device will stay compatible with all existing non-Treble ROM's

Instructions

Flash the recovery.

Reboot Recovery

Optional - Use the "Advanced > Treble enabler" option for repartition option.

If you opted to repartition for Treble, you are ready to flash a Treble ROM/Vendor pack.

About TWRP survival

TWRP survival is a simple hook that detects if a boot.img will be installed and restores TWRP after it's flashed. This only works if you have booted TWRP with Tissot Manager 2.0 from a real recovery boot - NOT from a recovery 'hot boot' (fastboot boot method).

You will see in the install log if a TWRP survival attempt is successful in the flash text output.

Automatic TWRP survival works when:

Flashing a ROM ZIP (or AIO) with TWRP

Flashing a boot.img in TWRP "Install Image" mode

Automatic TWRP survival does NOT work when:

Flashing a boot.img via fastboot

Restoring boot in a TWRP backup

Any other way of flashing a boot.img

In these cases, be sure the use the TWRP Installer immediately after flashing or restoring a backup - otherwise you may get the device into a confused state (especially if you restore a non-TWRP boot then try to install an AIO ROM without installing a new TWRP first).

Download

https://zenfone3-dev.gitlab.io/recovery/twrp-treble/

FAQ

Q) After I flash TWRP, I get kicked into fastboot when trying to boot the ROM!

A) Your kernel is not Treble-compatible.

Q) How do I update TWRP?

A) Just flash the ZIP installer again, then Reboot Recovery. Note that this will erase Magisk on BOTH slots if you have it installed to either, requiring you to reflash it to one/both slots. See my Treble guide FAQ section for more info on Magisk interaction.

Q) My PC can't see the MTP (storage) device from TWRP!

A) For dualboot compatibility, MTP is automatically disabled at various points. Just enable it manually in the Mounts menu to get access.

Q) If I shrink Userdata for Treble, will stock and OTA work?

A) I have heard varying results on this. It does for some, not for others. Please assume that this will NOT work.

Q) Can I restore a non-Treble TWRP backup after I repartition for Treble? And the other way around?

A) Yes!

Q) I see "Failed to mount '/system' (Device or resource busy)" red error in TWRP after flashing a ROM

A) You can safely ignore it. You just need to reboot recovery before you can flash anything else (like Gapps) to this ROM.

Thanks to:

[MENTION=1844875]CosmicDan[/MENTION] for his files for Tissot Manager & this thread template

[MENTION=7889472]makorn645[/MENTION], [MENTION=8232311]planet9[/MENTION], [MENTION=319057]Oki[/MENTION] for Party

XDA:DevDB Information

TWRP Recovery for Zenfone 3, Tool/Utility for the Asus ZenFone 3

Contributors

Giovix92, makorn645,

Source Code: https://github.com/Giovix92/android_device_asus_zenfone3/tree/twrp-8.1

Version Information

Status: Stable

Current Stable Version: 20190312

Stable Release Date: 2019-03-12

Created 2019-03-12

Last Updated 2019-03-12