摘要 |
This application provides a method, an apparatus, a device, and a mobile terminal for updating firmware.The method for updating firmware includes: obtaining an update start command; after the update start command is obtained, reading a firmware update file from a secure data memory; and writing the firmware update file to a Flash memory. When an SD interface does not support an SDIO function, a mobile terminal and a communication device having an SD interface can only read data in the secure data memory in units of files. In this application, special files are defined in the secure data memory to store an update start command and update data in different files, so that the mobile terminal and the communication device having the SD interface can know, by identifying file names, whether data stored in the files is an update start command or update data. Therefore, the communication device having the SD interface can obtain the update start command from a command swap file, and obtain a firmware update file in a firmware update process to perform an update. |