When you install a custom recovery or modify your system, two Android security features typically trigger a boot loop or lock your data:

If you are a standard user who does not plan to modify system partitions or root your phone, .

: A kernel feature that checks the integrity of your system partition. If it detects changes (like a root install), it prevents the phone from booting. Forced Encryption