[Unofficial] enhanced TWRP

anupritaisno1

Senior Member
Apr 29, 2014
1,811
1,898
153
Important: official TWRP does NOT backup the EFS partition correctly while this one does. Do NOT restore an EFS backup that you did not take on the same build of TWRP as the one you're currently using. You will lose IMEI

Get support here: https://discord.gg/UF9qnts
Same as official twrp but

Built with latest lineageOS trees
Built with latest kernel with ext4, f2fs, exfat and sdfat driver
Thanks a lot to @jcadduono for the exfat upstream
Undervolting
Supports signature verification for lineageOS official zips
Supports signature verification for haruhirom official zips
Built with GCC 8 for maximum speed
Support for backing up, restoring and flashing system image zips

Manifest: https://github.com/GlassROM-devices/platform_manifest_twrp_lineageos
Toolchain: https://bitbucket.org/anupritaisno1/aarch64-linux-gnu/overview

You can flash a recovery using fastboot (
Code:
fastboot flash recovery recovery.img
).

Other method, if you already have a custom recovery (I suspect official twrp), go to the directory where you placed the recovery.img, press install img at the bottom of the twrp screen and the img should be visible.
Select it, tap on recovery and swipe to flash/install.
Also guys twrp can be flashed on locked bootloaders

If you are on a locked bootloader you must make sure that you ALWAYS flash twrp while booted into Android, using the dd command

Code:
dd if=recovery.img of=/dev/block/bootdevice/by-name/recovery
If you use the twrp flasher while on a locked bootloader you're just dumb
 
Last edited:

FPSUsername

Senior Member
Jun 18, 2012
3,504
963
253
FPSUsername.cf
Install instructions please.
Can we flash the IMG file using inbuilt official twrp?

Sent from my OnePlus2 using XDA Labs
Yes. You probably have never flashed something or you just don't know all features of twrp.
You can flash a recovery using fastboot:
Code:
fastboot flash recovery recovery.img
Other method, if you already have a custom recovery (I suspect official twrp), go to the directory where you placed the recovery.img, press install img at the bottom of the twrp screen and the img should be visible.
Select it, tap on recovery and swipe to flash/install.
 

anupritaisno1

Senior Member
Apr 29, 2014
1,811
1,898
153
Yes. You probably have never flashed something or you just don't know all features of twrp.
You can flash a recovery using fastboot (
Code:
fastboot flash recovery recovery.img
).

Other method, if you already have a custom recovery (I suspect official twrp), go to the directory where you placed the recovery.img, press install img at the bottom of the twrp screen and the img should be visible.
Select it, tap on recovery and swipe to flash/install.
Adding these to the main post
 

anupritaisno1

Senior Member
Apr 29, 2014
1,811
1,898
153
Also guys twrp can be flashed on locked bootloaders

If you are on a locked bootloader you must make sure that you ALWAYS flash twrp while booted into Android, using the dd command

Code:
dd if=recovery.img of=/dev/block/bootdevice/by-name/recovery
If you use the twrp flasher while on a locked bootloader you're just dumb
 
  • Like
Reactions: Sam Nakamura

sanjeetkumar495

Senior Member
Nov 23, 2014
58
24
0
Jamshedpur
Yes. You probably have never flashed something or you just don't know all features of twrp.
You can flash a recovery using fastboot:

Other method, if you already have a custom recovery (I suspect official twrp), go to the directory where you placed the recovery.img, press install img at the bottom of the twrp screen and the img should be visible.
Select it, tap on recovery and swipe to flash/install.
Thanks but FYI I know all the methods of flashing recovery but currently I don't have access to a PC so just in case something goes wrong I won't be able to use recovery therefore was a little cautious so asking for twrp process of flashing.

Sent from my OnePlus2 using XDA Labs
 

anupritaisno1

Senior Member
Apr 29, 2014
1,811
1,898
153
Thanks but FYI I know all the methods of flashing recovery but currently I don't have access to a PC so just in case something goes wrong I won't be able to use recovery therefore was a little cautious so asking for twrp process of flashing.

Sent from my OnePlus2 using XDA Labs
Then use the locked bootloader method
 

ucb83

Senior Member
Feb 1, 2009
111
32
0
Thanks but FYI I know all the methods of flashing recovery but currently I don't have access to a PC so just in case something goes wrong I won't be able to use recovery therefore was a little cautious so asking for twrp process of flashing.

Sent from my OnePlus2 using XDA Labs
Use Flashify.
 

sujju

Senior Member
Jun 26, 2014
288
24
38
Hi all,

I tried to install official twrp 3.2 from within twrp 3.1. and ran into issues. The recovery overall got deleted and the phone's bootloader got locked. Besides, 'allow OEM Unlock' toggle in developer options is not working. I'm seriously in a mess now.

Can someone pls detail the steps of installing this enhanced TWRP on a locked bootloader like mine? Would be extremely thankful.
 

erzherzog

Senior Member
Mar 6, 2015
86
27
18
Hi all,

I tried to install official twrp 3.2 from within twrp 3.1. and ran into issues. The recovery overall got deleted and the phone's bootloader got locked. Besides, 'allow OEM Unlock' toggle in developer options is not working. I'm seriously in a mess now.

Can someone pls detail the steps of installing this enhanced TWRP on a locked bootloader like mine? Would be extremely thankful.
If your phone is rooted, you might want to give flashfire or flashify a try.
 

anupritaisno1

Senior Member
Apr 29, 2014
1,811
1,898
153
Hi all,

I tried to install official twrp 3.2 from within twrp 3.1. and ran into issues. The recovery overall got deleted and the phone's bootloader got locked. Besides, 'allow OEM Unlock' toggle in developer options is not working. I'm seriously in a mess now.

Can someone pls detail the steps of installing this enhanced TWRP on a locked bootloader like mine? Would be extremely thankful.
You must patch the rom to provide SuperSU's binaries at boot with oxygenos recovery and a signed boot.img

After booting you have to flash twrp using dd

Instructions for doing so are in the haruhirom thread

This definitely isn't for beginners
 
  • Like
Reactions: sujju