I've a galaxy s5, on OptimalRom R12, and it gets stuck on reboot/shut down. The Samsung logo appears, the screen goes black, but the light at the top is blue and the nav buttons are lit up, white. I tried flashing the rom in Odin which updated the boot.img, but that didn't fix it.