Why are the high-energy photons from a solar flare largely harmless to a smartphone?

Answer

The phone's metal casing and atmosphere deflect them

The high-energy photons associated with solar flares are largely deflected by the Earth’s atmosphere and the metal casing and internal shielding present in the smartphone.

Why are the high-energy photons from a solar flare largely harmless to a smartphone?
deviceweatherphoneimpactsolar storm