If your phone is stuck into a boot loop or It is not turning on after a software flash or after unlocking the bootloader, flash your phone with this file and it will start-up as new. I used the same method to solve the problem I had. Post in this thread if you have any problem. This solves the MDM locked phones too.