[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] Oki:
- T W R P 3.2.3-0L [Labs Mod] -

The Swiss Army Knife TWRP Mod for the Axon 7​

INTRODUCTION

This was a long term project that I have been using for a long time. I created some scripts to make it easier and faster to flash new roms and quickly restore the daily driver configuration after a testing session. For easier access I modified the TWRP interface to add direct access to the scripts. They had many problems but they were good to me since I created them and I knew how to used them well, but they were not ready for other users.

But the time has come and I have cleaned up most of the annoyances in the tools and in the UI. I have named it "Labs Mod" since it allows me to have my flashing lab on the go, making it extremely easy to switch to different configurations, or recover the daily driver configuration in a few minutes. I believe it is free of major bugs and now I can concentrate on adding new scripts, and more options to the current scripts.

FEATURES

On top of the latest improvements introduced in the official TWRP 3.2.3-0, this mod offers the following added features:

Full vendor partition support (mount, format, wipe, partition image flash, TWRP backup and restore).

Integrated Bootstack backup and restore.

Modem firmware image flash

Reboot to EDL

Button to enable device mapper verity (DM-Verity) enforcing

Button to disable the eMMC write protection (disemmcwp)

Backup/Restore internal storage to the TWRP Backup folder in the external SD. Ensure you have enough free space, free space check is not yet implemented.

EDL backup zip creation. Dual zip use since the resulting zip can be installed using TWRP from the phone or using MiFlash from the computer. It offers the following package creation options:

OS: Operating system (boot, vendor and system).

GPT: Partition table only.

CONFIG: Device config data (IMEI, SN, MAC, etc).

BOOTSTACK: Boot firmware without modem.

MINIMAL: Includes GPT+bootstack+modem+recovery.

EMERGENCY: Minimal + device config.

FULL: Minimal + OS.

FACTORY: Includes Full + config.​

Integrated Treble PARTY tool for creating and removing the vendor partition. Vendor partition is required for Treble ROMs. Removal is required for flashing old non-treble roms.

Lockscreen security removal. Removes password, pattern, fingerprint, etc... (in case you forget your password or the security descriptor gets corrupted).

Google account binding removal (in case you want to wipe from within recovery and test with different google accounts).

Bootloader unlock message removal.

New! Expand OS partitions (Vendor and System) to fit the whole partition. Useful for expanding the GSI filesystem for having space for adding GApps or moving apps to system.

New! Deep Wipe function performs a low level wipe of the partition data, erasing the remaining the portions of the eMMC that stored the partition information.

REQUIREMENTS

You need an unlocked Axon 7

INSTALLATION

WARNING, THIS SOFTWARE COULD WIPE ALL THE DATA IN YOUR DEVICE, INCLUDING THE INTERNAL STORAGE.

IT REQUIRES TWRP CUSTOM RECOVERY IN AN UNLOCKED DEVICE, OTHERWISE YOUR DEVICE COULD BE BRICKED.

!!! Whatever you do, it is at your own risk !!!​

Follow these steps:

1. Download the TWRP Labs Mod image to your External SD card.

2. Boot to TWRP and select the Install option in the main manu.

3. Tap on the install image button and select your external SD. select the image file you downloaded, select the recovery partition and confirm.

4. Reboot to recovery again to ensure the changes are applied properly.

DOWNLOAD

TWRP_3.2.3-0L_v1.3-Axon7-Labs_Mod.img

Flavor of the mod using the official TWRP 3.2.3-0 Kernel binary (Quick boot even when using F2FS, full ADB support, NO B12 Oreo encryption). Use this if you do not plan on using device encryption. Please note that you won't be able to use any tool of this version if your device is encrypted.

TWRP_3.2.3-0L_v1.3.B12-Axon7-Labs_Mod.img

Device encryption enabled flavor of the Labs mod. It use the 3.2.1-8 TWRP Kernel binary (Long boot when using F2FS, NO ADB support, B12 Oreo encryption). Use this one if you use device encryption. Please note that this flavor doesn't support adb interface.

NOTES

1. I do not have the time and expertise to dig into kernel hack so this is why I do not provide a unified kernel with fast F2FS boot, ADB and B12 encryption. Probably people developing kernels could help on this issue. It would be nice having a kernel with proper F2FS boot support, B12 encryption and ADB interface. Until then, there is no other way than having 2 flavors depending on the features we require.

SOURCES

C'mon, all of them are scripts!!! the sources are at glance. Use them in your projects but don't forget to give credit to the source !!!

CREDITS

[MENTION=5492451]NFound[/MENTION] for the recovery kernel binary supporting Oreo B12 encryption.

[MENTION=4275152]someone755[/MENTION] for the keycheck binary I use in my scripts.

[MENTION=631273]Chainfire[/MENTION] for the TWRP install script hacks.