The physics of smartphones is a complicated and amazing mixture of engineering, physics, electronics and computer science.