This question already has an answer here:
I unlocked the bootloader in my OnePlus 5 right after it was delivered, so there was nothing to erase. Then I flashed TWRP and SuperSU. It comes with DM-Verity (and
/data force encrypted). I tried re-locking, but later I have to erase all data again before unlocking bootloader. So the questions are:
- Why is it required to erase all data when unlocking bootloader? Even with device encryption on?
- Can I avoid the erase?