Is it safe to re-lock the bootloader on an Xperia XZ2 Compact?

Once /e/OS has been installed, is it safe to re-lock the bootloader on my Xperia XZ2 Compact or will it screw everything up?

Regain your privacy! Adopt /e/ the unGoogled mobile OS and online servicesphone

No, it is not possible; even with stock android.

1 Like

Whats the problem when the bootloader is not re-locked?

It is not possible to re-lock the bootloader of any Sony devices, at least not the ones supported by Sony’s Open Devices project:

If I change my mind later on, is there any way to restore my device?

No. Once you have unlocked the bootloader, you will not be able to revert the device back to a locked or original state or restore the DRM security keys. You can however use the Flash tool for Xperia™ devices to flash a generic Sony ROM, although it will not receive automatic software upgrades.

Have a look at this post