Unlocked bootloader would help, because you can boot your own recovery image and have access to the raw filesystem with a busybox shell. You can revert the changes which brick your device. Also you can dd you backuped system image, if you have one