摘要 |
A method and device for firmware downloading pre-processing, a method for verifying the integrity of a firmware, a method for downloading a firmware and the terminal thereof, based on OTA technology, are provided. In the method for downloading a firmware, a predetermined process is performed on the firmware to be downloaded to generate first digest data; the firmware to be downloaded and the first digest data are regarded as the air information to be downloaded by the terminal; the terminal downloads the air information via the radio channel, and obtains the firmware and the first digest data in air information; the terminal performs the predetermined process on the firmware to generate second digest data; the terminal compares the consistency between the first digest data and the second digest data, and in the case that the two are consistent, it is determined that the firmware passes the integrity verification. The method increases the safety of downloading the firmware over the air. |