Method for processing firmware based on firmware over the air technology, apparatus, and system
First Claim
1. A method for providing firmware upgrades based on a firmware over the air technology, comprising:
- performing, by a server, check processing on at least one firmware upgrade file to form first check data corresponding to the at least one firmware upgrade file;
performing, by the server, encryption processing on the first check data to form first encryption data; and
combining, by the server, the first encryption data, the first check data, and the at least one firmware upgrade file to form a firmware upgrade package, and sending, by the server, the firmware upgrade package, through an air interface, to a mobile terminal;
wherein performing check processing to form first check data comprises;
performing cyclic redundancy check (CRC) processing, by the server, on the at least one firmware upgrade file to form CRC data as the first check data;
orperforming Message-Digest Algorithm 5 (MD5) processing, by the server, on the at least one firmware upgrade file to form MD5 information check data as the first check data;
wherein performing encryption processing on the first check data to form the first encryption data comprises;
when the first check data is CRC data, performing MD5 processing on the CRC data to form MD5 information corresponding to the CRC data, and performing a private key encryption on the MD5 information corresponding to the CRC data to form the first encryption data;
orwhen the first check data is MD5 information check data, performing CRC processing on the MD5 information check data to form CRC data corresponding to the MD5 information check data, and performing a private key encryption on the CRC data corresponding to the MD5 information check data to form the first encryption data;
wherein the private key is internally stored in the server and matches with a public key internally stored in the mobile terminal.
3 Assignments
0 Petitions
Accused Products
Abstract
Embodiments of the present invention provide a method for processing firmware based on a firmware over the air technology, an apparatus, and a system. The method includes: performing check processing on at least one firmware upgrade file to form first check data; performing encryption processing on the first check data to form first encryption data; and combining the first encryption data, the first check data, and the firmware upgrade file to a firmware upgrade package, and sending the firmware upgrade package through an air interface to a mobile terminal. The apparatus includes: a checking module, an encrypting module, and a processing module. The system includes: a server and a mobile terminal. The embodiments of the present invention, by performing check, encryption, and combination processing on the firmware upgrade file, quickly implements upgrade of multiple pieces of firmware, and improves security of the mobile terminal.
31 Citations
10 Claims
-
1. A method for providing firmware upgrades based on a firmware over the air technology, comprising:
-
performing, by a server, check processing on at least one firmware upgrade file to form first check data corresponding to the at least one firmware upgrade file; performing, by the server, encryption processing on the first check data to form first encryption data; and combining, by the server, the first encryption data, the first check data, and the at least one firmware upgrade file to form a firmware upgrade package, and sending, by the server, the firmware upgrade package, through an air interface, to a mobile terminal; wherein performing check processing to form first check data comprises; performing cyclic redundancy check (CRC) processing, by the server, on the at least one firmware upgrade file to form CRC data as the first check data;
orperforming Message-Digest Algorithm 5 (MD5) processing, by the server, on the at least one firmware upgrade file to form MD5 information check data as the first check data; wherein performing encryption processing on the first check data to form the first encryption data comprises; when the first check data is CRC data, performing MD5 processing on the CRC data to form MD5 information corresponding to the CRC data, and performing a private key encryption on the MD5 information corresponding to the CRC data to form the first encryption data;
orwhen the first check data is MD5 information check data, performing CRC processing on the MD5 information check data to form CRC data corresponding to the MD5 information check data, and performing a private key encryption on the CRC data corresponding to the MD5 information check data to form the first encryption data; wherein the private key is internally stored in the server and matches with a public key internally stored in the mobile terminal. - View Dependent Claims (2)
-
-
3. A method for upgrading firmware based on a firmware over the air technology, comprising:
-
receiving, by a mobile terminal, through an air interface, a firmware upgrade package sent by a server, and storing the firmware upgrade package in a cache partition, wherein a file system of the firmware upgrade package is not supported the mobile terminal; reading, by the mobile terminal, the firmware upgrade package stored in the cache partition, wherein the firmware upgrade package comprises;
first encryption data, first check data, and a firmware upgrade file;performing, by the mobile terminal, decryption on the first encryption data in the firmware upgrade package to form second check data; and when the second check data is consistent with the first check data, performing, by the mobile terminal, an upgrade operation on corresponding firmware according to the firmware upgrade file in the firmware upgrade package; wherein reading the firmware upgrade package stored in the cache partition comprises; traversing the cache partition to obtain file headers corresponding to the firmware upgrade package; selecting, from the file headers corresponding to the firmware upgrade package, a valid file header as a target file header; and reading, according to an identity in the target file header, data packets corresponding to the identity, and rearranging the data packets corresponding to the identity to form the firmware upgrade package. - View Dependent Claims (4, 5, 6, 7, 8, 9, 10)
-
Specification