Behind every smart device is a stack of hardware, firmware, and security choices most people never see. Here's the engineering ...