Changed device DPI now stuck in a bootloop
The reason for a boot loop after editing build.prop is its permissions.
Just go to TWRP &gt; Advanced &gt; File Manager and navigate to /system/build.prop. Select it and change its permissions to -rw-r--r--. To do that, enter 0644 in chmod and reboot your device.
If you cannot see build.prop in /system folder, go to Mounts and select System in the TWRP home menu.