Nexus 4 screen got hung until battery drained and on restart stuck on flying dots
Had a similar issue, when battery is high, restarting the phone goes into a boot loop.

I wait for the phone to drain out, and then connect it to power source and switch it on at once. The phone now boots fine. I have no idea why it does that though.