Hat geantwortet auf: Why is my phone randomly shutting down? (And other problems)The battery is probably not delivering enough voltage to the processor to keep the phone on. Just like how Apple was slowing down iPhones as the batteries aged, the processor needed more voltage than the battery could deliver. Best bet is to replace the battery.
Hat geantwortet auf: Two holes above the earpiece in iPhone 7 plusThose are the sensors for your iPhone (proximity, ambient light sensor, etc). First off, what white iPhone are you using, is it a 7 or 7 Plus?