Patent ID: 9367303
Filing Date: 2016-06-14
CPC Classification: G06F

Claim Text:
1. A method of generating a Firmware Over-The-Air (FOTA) upgrade package, comprising the following steps of: determining, by a server, whether a first file in a software package of an old version has a same filename as that of a second file in a software package of a new version by scanning, by the server, filenames and file attributes of files in the software package of the old version and the software package of the new version to obtain type file lists of the software package of the old version and type file lists of the software package of the new version, wherein each of the type file lists comprises filenames of files of a same type; when the first file has the same filename as that of the second file, then generating, by the server, a first difference file between the first file in the software package of the old version and the second file in the software package of the new version and adding, by the server, the first difference file into the FOTA upgrade package; and when the first file doesn't have the same filename as that of the second file, then continuing to determine whether the first file in the software package of the old version is similar to the second file in the software package of the new version, a determination of whether the existing file in the old version is similar to the file in the new version being made by determining whether the existing file and the file in the new version are of the same type and whether a difference between a volume of the difference file and a volume of either the existing file or the file in the new version, whichever is smaller, is smaller than a predetermined value; and when the first file is similar to the second file, then generating, by the server, a second difference file between the first file in the software package of the old version and the second file in the software package of the new version and adding, by the server, the second difference file into the FOTA upgrade package; and when the first file is not similar to the second file, then adding the second file in the software package of the new version into the FOTA upgrade package, wherein the FOTA upgrade package is used to upgrade software of a mobile terminal from the old version of the software package into the new version of the software package.