Does OTA flash the recovery and re-enable DM-Verity?

vortex-5

Senior Member
Jul 3, 2014
208
68
48
I'm about to provision my One Plus 5 for use I will be running it with TWRP a unencrypted data partition (makes restores easier) and root via Magisk day one.

I'm curious if I'm running it in this configuration when an OTA comes down the pipe will it do any of the following?

re apply fastboot oem lock?
flash the recovery to stock recovery?
remove magisk?
re-enable dm-verity?

Curious if the process after an OTA apply is to re-flash TWRP potentially re-apply magisk? Does applying ota mess with your data partition if you already decrypted it?

Also was thinking about leaving the data partition decrypted so I can push things to it via ADB or manipulate it when it's in a non-functional state can anyone here comment on if that's still possible while encrypted? And if so what dis-advantages of leaving it encrypted I hear one is you have to remove the lock screen password before you create a backup since the keys are not backed up and you might be locked out after a restore.
 

vortex-5

Senior Member
Jul 3, 2014
208
68
48
With some more research I've answered my own question I'll put them here in case anyone wants to refer to them in the future.

TWRP users will lose TWRP after a flash of the OTA.
Root will be lost regardless if you flash using TWRP or stock.

Data is not touched during flash so it should stay as is.

DM-verity requirement is unknown.

For rooted users it's better to do a full flash with TWRP OTA through TWRP will cause a problem.
 

ultramag69

Senior Member
Nov 6, 2007
5,884
1,021
243
Waratah
Actually, you won't get the small incremental OTA, you will download the complete 1.5 - 2gb rom... This happens when you have root whether you have got TWRP or stock recovery.
Root will always be lost, yes but if you flash with TWRP you can flash magisk oe SuperSU immediately afterwards to gain root again. Not having TWRP you will need to either boot TWRP or install it to install root again.
DM-Verity, I have never had any problems with this after flashing and then rooting...
 

stefr07

Senior Member
Dec 17, 2016
129
18
0
I dirty flash the 4.5.10 and i had to reflash the ROM + no_verity_op5.zip. My first and only issue was a sort of bootlop to the recovery.
 

Rhoban

Senior Member
Jan 8, 2015
4,739
1,567
0
Dobra
So wait. If I flash the OTA, then flash Magisk, I will have root and lose TWRP, right?
Then could I use some app like Flashify or the TWRP app to install the recovery?

I don't own a PC right now and want to know if it's possible.