The secret key is in hardware. The phone signs a hash of the OS so the OS itself does not contain keys.