CN114402311A - Incremental updating method and device of file, terminal and computer-readable storage medium - Google Patents

Incremental updating method and device of file, terminal and computer-readable storage medium Download PDF

Info

Publication number
CN114402311A
CN114402311A CN201980100492.2A CN201980100492A CN114402311A CN 114402311 A CN114402311 A CN 114402311A CN 201980100492 A CN201980100492 A CN 201980100492A CN 114402311 A CN114402311 A CN 114402311A
Authority
CN
China
Prior art keywords
file
terminal
reduction
restored
incremental
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201980100492.2A
Other languages
Chinese (zh)
Inventor
赵杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Shenzhen Huantai Technology Co Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Shenzhen Huantai Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd, Shenzhen Huantai Technology Co Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Publication of CN114402311A publication Critical patent/CN114402311A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Stored Programmes (AREA)

Abstract

A method, a device, a terminal and a computer readable storage medium for incremental update of files are provided, wherein a first terminal obtains a differential file (201) generated by a second terminal, restores a third file to be subjected to incremental update into a third restored file (202), synthesizes the third restored file with the obtained differential file to obtain a first synthesized file (203), and reversely restores the first synthesized file to obtain a fourth file (204) which corresponds to the third file and is subjected to incremental update; the technical problem of reducing the data downloading amount of the differential file when the file is subjected to incremental updating is solved.

Description

Incremental updating method and device of file, terminal and computer-readable storage medium Technical Field
The present application belongs to the field of communications technologies, and in particular, to a method, an apparatus, a terminal, and a computer-readable storage medium for incremental update of a file.
Background
When the terminal updates the file, the terminal can be realized by adopting two modes of full update and incremental update.
When the file before update is updated in a full update manner, the terminal generally needs to download the entire updated file from the server to replace the file before update, thereby completing the file update. When the file before updating is updated in an incremental updating mode, the terminal only needs to download a differential file which records the difference between the updated file and the file before updating from the server, and then synthesizes the file before updating and the differential file to realize the updating of the file; therefore, compared with the full-volume update method, the incremental update method can reduce the data download amount to some extent.
Disclosure of Invention
The embodiment of the application provides a file incremental updating method, a file incremental updating device, a terminal and a computer readable storage medium, and can solve the technical problem that data downloading amount of a differential file is too large when files are incrementally updated.
A first aspect of the embodiments of the present application provides a method for updating an increment of a file, which is applied to a first terminal, and includes:
acquiring a difference file; the differential file comprises a differential file obtained by the second terminal performing differential operation on the first reduction file and the second reduction file; the first reduction file is obtained by reducing a first file to be subjected to incremental updating, which is stored by the second terminal, by the second terminal; the second reduction file is obtained by reducing a second file which is corresponding to the first file and is subjected to incremental updating by the second terminal;
acquiring a third file to be subjected to incremental updating and stored by the first terminal, and restoring the third file into a third restored file;
synthesizing the third reduction file and the difference file to obtain a first synthesized file;
and performing reverse reduction on the first synthesized file to obtain a fourth file which is corresponding to the third file and is subjected to incremental updating.
A second aspect of the present application provides a method for updating an increment of a file, which is applied to a second terminal, and includes:
acquiring a first file to be subjected to incremental updating and stored in the second terminal and a second file which is corresponding to the first file and is subjected to incremental updating;
restoring the first file into a first restored file, and restoring the second file into a second restored file;
performing differential operation on the first reduction file and the second reduction file to obtain a differential file; the differential file is used for synthesizing a third reduction file corresponding to a third file stored by the first terminal and to be subjected to incremental updating when the first terminal performs incremental updating on the third file to obtain a first synthesized file, and performing reverse reduction on the first synthesized file to obtain a fourth file which is corresponding to the third file and is subjected to incremental updating.
A third aspect of the present embodiment provides an incremental update apparatus for a file, configured at a first terminal, including:
a first obtaining unit configured to obtain a differential file; the differential file comprises a differential file obtained by the second terminal performing differential operation on the first reduction file and the second reduction file; the first reduction file is obtained by reducing a first file to be subjected to incremental updating, which is stored by the second terminal, by the second terminal; the second reduction file is obtained by reducing a second file which is corresponding to the first file and is subjected to incremental updating by the second terminal;
the first restoring unit is used for acquiring a third file to be subjected to incremental updating and stored by the first terminal, and restoring the third file into a third restored file;
the synthesis unit is used for synthesizing the third reduction file and the difference file to obtain a first synthesis file;
and the reverse reduction unit is used for performing reverse reduction on the first synthesized file to obtain a fourth file which corresponds to the third file and is subjected to incremental updating.
A fourth aspect of the present embodiment provides an incremental update apparatus for a file, configured at a second terminal, including:
a second obtaining unit, configured to obtain a first file to be subjected to incremental update and a second file that is corresponding to the first file and has completed incremental update, where the first file is stored in the second terminal;
the second restoring unit is used for restoring the first file into a first restored file and restoring the second file into a second restored file;
the difference unit is used for carrying out difference operation on the first reduction file and the second reduction file to obtain a difference file; the differential file is used for synthesizing a third reduction file corresponding to a third file stored by the first terminal and to be subjected to incremental updating when the first terminal performs incremental updating on the third file to obtain a first synthesized file, and performing reverse reduction on the first synthesized file to obtain a fourth file which is corresponding to the third file and is subjected to incremental updating.
A fifth aspect of embodiments of the present application provides a terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the method of the first aspect when executing the computer program.
A sixth aspect of embodiments of the present application provides a terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the method according to the second aspect when executing the computer program.
A seventh aspect of embodiments of the present application provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the steps of the method in the first aspect are implemented.
An eighth aspect of the present embodiment provides a computer-readable storage medium, in which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the method of the second aspect.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and it is obvious to those skilled in the art that other related drawings can be obtained from the drawings without inventive effort.
FIG. 1 is a system architecture diagram of a method for incremental update of a file according to an embodiment of the present disclosure;
FIG. 2 is a flowchart illustrating a first implementation of a method for incremental updating of a file according to an embodiment of the present application;
FIG. 3 is a schematic diagram of an implementation of document composition provided by an embodiment of the present application;
FIG. 4 is a flowchart illustrating an implementation of confirming that an incremental update has been successfully performed on a third file according to an embodiment of the present application;
FIG. 5 is a flowchart illustrating a specific implementation of step 202 of a file incremental update method provided in an embodiment of the present application;
FIG. 6 is a flowchart illustrating a second implementation of a method for incremental updating of a file according to an embodiment of the present application;
fig. 7 is a schematic diagram of an implementation flow for determining validity of a difference file according to an embodiment of the present application;
FIG. 8 is a first structural diagram of an incremental update apparatus for files provided by an embodiment of the present application;
FIG. 9 is a second structural diagram of an incremental update apparatus for files provided in an embodiment of the present application;
fig. 10 is a schematic structural diagram of a terminal according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the present application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to any and all possible combinations of one or more (where a plurality includes two or more) of the associated listed items, and includes such combinations.
In order to explain the technical solution of the present application, the following description will be given by way of specific examples.
At present, when a terminal updates a file, the terminal can be implemented by adopting two modes, namely full update and incremental update.
Specifically, when the terminal updates the file in the full update mode, the terminal generally needs to download the entire updated file from the server to replace the file before updating, and with the update of one time, the data volumes of the files are continuously overlapped.
When the file before updating is updated in an incremental updating mode, the terminal only needs to download a differential file which records the difference between the updated file and the file before updating from the server, and then synthesizes the file before updating and the differential file to realize the updating of the file; therefore, the incremental update method can reduce the amount of data downloaded to some extent compared to the full update method.
In a general incremental updating method, a differential file is often obtained by directly performing differential calculation on a first file to be incrementally updated and a second file which is stored in a server (a second terminal) and has been incrementally updated, but under the influence of file formats or compression algorithms of the first file and the second file, when data change of the first restored file before file format conversion or the second restored file before compression corresponding to the first file is smaller, larger data change still occurs between the first file and the second file, and finally, the data volume of the differential file obtained by directly performing differential calculation on the first file and the second file is relatively larger.
For example, if the content of the first file to be incrementally updated is a binary character obtained by compressing the character "aaabbb", and the compression dictionary of the compression algorithm is 0 for aaa and 1 for bbb, then the first file to be incrementally updated is "01", and at this time, if the content of the first file to be incrementally updated is a binary character obtained by compressing the character "aaabbb", then due to a change in the file content, the corresponding compression dictionary of the same compression algorithm will be changed, for example, if the compression dictionary is changed to 0 for a and 1 for b, then the file after incremental update will be changed to "00011", and thus, when the first file to be incrementally updated is incrementally updated, although only the character "aabb" before compression corresponding to the first file to be incrementally updated is changed by one character, that is, "aaabbb" is changed to "aaabbb", but this causes a large change in the compressed binary character corresponding to the file after the incremental update, that is, a change from "01" to "00011". Therefore, the differential file obtained by directly performing differential calculation on the first file to be subjected to incremental updating and the file subjected to incremental updating has the problem of overlarge data size.
Based on this, embodiments of the present application provide a method, an apparatus, a terminal, and a computer-readable storage medium for incremental update of a file, which can solve the technical problem that when a differential file for incremental update is downloaded, the data download amount is too large.
Fig. 1 is a schematic structural diagram of a file incremental updating system according to an embodiment of the present disclosure, where the file incremental updating system includes a first terminal 100 and a second terminal 200 that can implement bidirectional communication. The first terminal 100 and the second terminal 200 may be smart terminals such as a mobile phone, a computer, and a server, and the second terminal is taken as a server for example.
In practical applications, when a certain file a has an update, the server (the second terminal 200) may first restore the file a (a first file to be subjected to incremental update) and an updated file B corresponding to the file a (a second file corresponding to the first file and having completed the incremental update), respectively, to obtain a first restored file and a second restored file, and then perform a differential operation on the first restored file and the second restored file, to obtain a differential file.
When the first terminal 100 needs to perform incremental update on a file C (a third file to be incrementally updated) that is stored by the first terminal and is the same as the file a, the first terminal 100 may send a differential file acquisition request carrying file identification information (for example, identification information of the file C, and the identification information may include identification information such as a file name or an MD5 value of the file) to the second terminal, after receiving the differential file acquisition request sent by the first terminal 100, the second terminal 200 sends a differential file stored by the second terminal 200 and corresponding to the differential file acquisition request to the first terminal 100, after acquiring the differential file sent by the second terminal 200, the first terminal 100 may restore the file C to a third restored file, then synthesize the third restored file and the obtained differential file to obtain a first synthesized file, and then reversely restore the first synthesized file to obtain a fourth file corresponding to the file C and having been incrementally updated And the file C is updated in an increment mode.
In the embodiment of the application, a first terminal restores an acquired third file stored by the first terminal and to be subjected to incremental updating into a third restored file, synthesizes the third restored file with an acquired differential file obtained by performing differential operation on the first restored file and the second restored file by a second terminal to obtain a first synthesized file, and performs reverse restoration on the first synthesized file to obtain a fourth file corresponding to the third file and subjected to incremental updating; the differential file used for incremental updating is a file obtained by the second terminal through differential operation on the first reduced file and the second reduced file, but not a file obtained by directly performing differential operation on the first file to be incrementally updated and the second file corresponding to the first file, so that when the data variation of the first reduced file and the second reduced file is smaller than that of the first file and the second file, the data volume of the differential file obtained by performing differential operation on the first reduced file and the second reduced file can be smaller than that of the differential file obtained by directly performing differential operation on the first file and the second file, correspondingly, when the differential file generated by the second terminal is downloaded by the first terminal, the data volume required to be downloaded is also reduced, and the problem that when the file is incrementally updated is solved, the technical problem of overlarge data downloading amount of the differential file is solved, and the efficiency of incremental updating of the file is improved.
Specifically, as shown in fig. 2, a first implementation flow diagram of a file incremental updating method provided in the embodiment of the present application is shown, where the method is applied to a first terminal and may be executed by an incremental updating apparatus of a file configured on the first terminal, and the file incremental updating method may include steps 201 to 204.
Step 201, obtaining a difference file.
The differential file comprises a differential file obtained by the differential operation of the second terminal on the first reduction file and the second reduction file; the first reduction file is obtained by reducing a first file to be subjected to incremental updating, which is stored by a second terminal, by the second terminal; the second restore file is a file obtained by restoring the second file which is corresponding to the first file and has finished the incremental updating by the second terminal.
Step 202, obtaining a third file to be subjected to incremental updating and stored by the first terminal, and restoring the third file into a third restored file.
The third file is a file having the same content as the first file, but has a different storage location, and the third file is stored in the first terminal and the first file is stored in the second terminal.
In this embodiment of the application, when the first terminal needs to perform incremental update on the third file, the differential file generated according to the first file having the same content as the third file needs to be obtained first, and the third file is restored to the third restored file, so that in steps 203 to 204, the third restored file and the differential file are synthesized, and finally, a fourth file corresponding to the third file and having completed incremental update is obtained.
In some embodiments of the application, when the third file is a compressed file in a first preset format, the restoring the third file into the third restored file includes: and decompressing the third file into a first decompressed file.
For example, when the compressed file in the first preset format is a zip-format or rar-format compressed file, the restoring the third file to the third restored file may include decompressing the zip-format or rar-format compressed file to obtain a file before compression.
In some embodiments of the application, when the third file is a file to be converted in a second preset format, the restoring the third file into a third restored file includes: and carrying out format conversion on the third file to obtain a first conversion file in a third preset format corresponding to the second preset format.
For example, if the file to be converted in the second preset format is a file to be converted in a jpg format or a png format, and the third preset format corresponding to the second preset format is a bmp bitmap format, the restoring the third file to the third restored file may include converting the file to be converted in the jpg format or the png format into a file in the bmp bitmap format.
It should be noted that, here, the file to be converted in the second preset format is merely illustrated, and in other embodiments of the present application, the file to be converted in other second preset formats may also be included.
In some embodiments of the application, the restoring the third file into the third restored file may further include: and calling the first plug-in to restore the third file into a third restored file.
The first plug-in may include a plug-in provided by the second terminal or an open source, or a plug-in provided by another third-party software developer.
For example, when the third file is a file obtained by a customized encryption method of a third-party software developer or a file in a third-party customized format, the third file may be restored to a third restored file by calling a plug-in provided by the third-party software developer.
Correspondingly, the above-mentioned performing reverse reduction on the first synthesized file to obtain the fourth file corresponding to the third file and having completed the incremental update may also include: and calling a second plug-in to perform reverse reduction on the first synthesized file to obtain a fourth file which is corresponding to the third file and is subjected to incremental updating.
Similarly, the second plug-in may comprise a plug-in provided by the second terminal or an open source, or a plug-in provided by another third party software developer.
And step 203, synthesizing the third reduction file and the difference file to obtain a first synthesized file.
Specifically, the differential file may carry tag information of the second subfile with update, tag information of the second subfile without update, and file information of the newly added file, and an update position and data content of data that needs to be replaced and newly added to the third restored file may be determined according to the tag information of the second subfile with update, the tag information of the second subfile without update, and the file information of the newly added file.
For example, as shown in fig. 3, a line segment JK represents the data content of the third restored file, the differential file records that a data content MN needs to be added at a point L of the data content line segment JK of the third restored file, and replaces the data content of the OP line segment with O 'P', and then the third restored file and the differential file are synthesized to obtain the data content J 'K' of the first synthesized file.
In addition, in order to further improve the incremental update efficiency of the file and avoid the failure of incremental update of the file caused by the error of the data in the differential file, before the third restored file is synthesized with the differential file to obtain the first synthesized file, the integrity of the differential file can be checked, so as to reduce the probability of failure of incremental update of the file.
For example, the difference file acquired by the first terminal is compared with the difference file sent by the second terminal, whether the difference file acquired by the first terminal is consistent with the difference file sent by the second terminal is judged, if the difference file acquired by the first terminal is inconsistent with the difference file sent by the second terminal, the difference file sent by the second terminal is acquired again, and when the difference file acquired by the first terminal is consistent with the difference file sent by the second terminal, that is, when the integrity check is successful, the third restored file and the difference file are synthesized to obtain a first synthesized file.
Specifically, because the differential file sent by the second terminal and acquired by the processor of the first terminal may not be consistent with the differential file sent by the second terminal due to various factors in the data transmission process, that is, the differential file has an error in the transmission process, so that in order to avoid failure of incremental update of the file due to an error in data transmission, the incremental update efficiency of the file is improved.
For example, a Cyclic Redundancy Check (CRC) method may be used to verify whether the differential file sent by the second terminal and acquired by the processor of the first terminal is consistent, or determine whether the acquired differential file is consistent with the differential file sent by the second terminal by comparing MD5 values of the differential file or comparing hash values of the differential file. However, a person skilled in the art may also use a direct comparison method, a parity check method, an exclusive-or check method, a hamming code check method, and other data check methods to verify whether the differential file sent by the second terminal acquired by the processor of the first terminal is consistent, which all belong to the concepts of the present application.
And 204, performing reverse reduction on the first synthetic file to obtain a fourth file which is corresponding to the third file and is subjected to incremental updating.
And performing reverse reduction on the first synthetic file to obtain a fourth file which is corresponding to the third file and is subjected to incremental updating, and the fourth file represents that the incremental updating on the third file is completed.
However, in order to confirm that the fourth file obtained by the incremental update of the third file is the target file of the file incremental update, in some embodiments of the present application, as shown in fig. 4, after the fourth file corresponding to the third file and having completed the incremental update is obtained by performing the inverse reduction on the first composite file, the method may include: step 401 to step 402.
Step 401, determining whether the fourth file is consistent with the second file.
Step 402, if the fourth file is consistent with the second file, it is determined that the incremental update of the third file has been successfully performed.
In this embodiment of the application, the differential file may carry identification information for identifying a file content of the second file, for example, an MD5 value or a hash value of the second file, and therefore, the determining whether the fourth file is consistent with the second file may include: calculating identification information for identifying the file content of the fourth file, for example, an MD5 value or a hash value of the fourth file, and then comparing the identification information for identifying the file content of the fourth file with the identification information for identifying the file content of the second file, where the identification information for identifying the file content of the fourth file is the same as the identification information for identifying the file content of the second file, and thus the fourth file is identical to the second file, and the fourth file that has completed the incremental update and corresponds to the third file is a target file for performing the incremental update on the third file; otherwise, it indicates that the fourth file is inconsistent with the second file, and the above-mentioned incremental update-completed fourth file corresponding to the third file is not a target file for performing incremental update on the third file, at this time, the third file stored in the first terminal may be obtained and fully updated, that is, the third file stored in the first terminal is completely replaced by the obtained second file.
Specifically, the method for determining whether the fourth file is consistent with the second file may refer to the method for performing integrity check on the differential file, which is not described herein again.
It should be noted that, when the third file is a file such as an application installation package, the third file generally includes a plurality of first subfiles, some of the first subfiles are first subfiles to be subjected to incremental update, and some of the first subfiles are first subfiles that do not need to be updated, and in addition, limited by a restoration method, some of the first subfiles that have updates may not be restored, and therefore, in some embodiments of the present application, as shown in fig. 5, the restoring the third file into the third restored file may include: step 501 to step 502.
Step 501, confirming a first subfile to be subjected to incremental updating in the plurality of first subfiles according to the difference file.
In this embodiment of the application, the differential file may carry tag information of a second subfile that is updated and does not exist in a first file to be subjected to incremental update and file information of a newly added file, which are stored in a second terminal, so that each first subfile of a third file to be subjected to incremental update and stored in the first terminal is matched with the tag information of each second subfile of the first file to be subjected to incremental update and stored in the second terminal, and the first subfile to be subjected to incremental update and the first subfile not required to be updated in the third file to be subjected to incremental update and stored in the first terminal can be confirmed.
And 502, restoring the first subfile which can be restored in the first subfile to be subjected to incremental updating into a first restoration subfile.
Because limited by the restoration method, some first subfiles to be subjected to incremental updating may not be restored, and therefore, only the conventional incremental updating method may be used for updating, and for the first subfile to be subjected to restoration, the incremental updating method of the file in the above steps 201 to 204 may be used for updating, and therefore, it is necessary to confirm the first subfile capable of being restored in the first subfile to be subjected to incremental updating, and then restore the first subfile capable of being restored to the first restoration subfile.
Specifically, the first subfile capable of being restored may include: the method comprises the steps that a compressed file belonging to a first preset format or a first subfile belonging to a file to be converted belonging to a second preset format in the first subfile to be subjected to incremental updating, or the first subfile can be restored by calling a first plug-in.
In some embodiments of the present application, after the step 501, the method may further include: and synthesizing the first subfile which cannot be restored in the first subfile to be subjected to incremental updating with the differential file to obtain a file which is corresponding to the first subfile which cannot be restored and is subjected to incremental updating.
Specifically, the first subfile that cannot be restored may include: the file of the first subfile to be subjected to incremental updating, which does not belong to the compressed file in the first preset format and does not belong to the file to be converted in the second preset format, cannot be restored by calling the first plug-in.
It should be noted that, since the first subfile incapable of being restored belongs to the first subfile to be subjected to incremental update, that is, belongs to a file having a corresponding incremental update completed, it is necessary to synthesize the first subfile with the differential file to obtain a file having a incremental update completed corresponding to the first subfile incapable of being restored.
The differential file is obtained by performing differential operation on a second reduction sub-file obtained by reducing a second sub-file which can be reduced in the first file and a third reduction sub-file obtained by reducing a corresponding third sub-file which can be reduced in the second file, and performing differential operation on a second sub-file which cannot be reduced in the first file and a corresponding third sub-file which cannot be reduced in the second file. And, the differential file may carry the tag information of the second subfile with update, the tag information of the second subfile without update, and the file information of the newly added file. Specifically, the process of obtaining the difference file may refer to the description in the related embodiments below, and is not described herein again.
In this embodiment of the application, when the third file includes a plurality of first subfiles, the synthesizing the third restored file and the differential file to obtain the first synthesized file may include: directly copying first subfiles which do not need to be updated in the plurality of first subfiles; synthesizing the first subfile which can be restored in the first subfile to be subjected to incremental updating by adopting the file incremental updating method in the step 203 to obtain a file which is corresponding to the first subfile which can be restored and is subjected to incremental updating; synthesizing the first subfile which cannot be restored in the first subfile to be subjected to incremental updating with the differential file to obtain a file which is corresponding to the first subfile which cannot be restored and is subjected to incremental updating; and combining the copy file corresponding to the first subfile which is not required to be updated, the file which is subjected to incremental updating and corresponds to the first subfile which can be restored, the file which is subjected to incremental updating and corresponds to the first subfile which cannot be restored and the file information of the newly added file carried by the differential file to obtain a first synthesized file.
Fig. 6 shows a flowchart of a second implementation of a file incremental updating method provided in an embodiment of the present application, where the method is applied to a second terminal and may be executed by a file incremental updating apparatus configured on the second terminal, and the file incremental updating method may include steps 601 to 603.
Step 601, acquiring a first file to be subjected to incremental updating and a second file which is stored in the second terminal and is corresponding to the first file and has completed the incremental updating.
Step 602, the first file is restored to a first restored file, and the second file is restored to a second restored file.
In some embodiments of the application, when the first file is a compressed file in a first preset format, the restoring the first file into a first restored file may include: and decompressing the first file into a second decompressed file. When the first file is a file to be converted in a second preset format, the restoring the second file into a second restored file may include: and carrying out format conversion on the second file to obtain a second conversion file in a third preset format corresponding to the second preset format.
In addition, the restoring the second file to the second restored file may further include calling the first plug-in to restore the first file to the first restored file and/or restoring the second file to the second restored file.
Specifically, the detailed implementation manner of step 602 may refer to the description of step 202, and is not described herein again.
Step 603, performing a difference operation on the first restored file and the second restored file to obtain a difference file.
The differential file is used for synthesizing a third reduction file corresponding to a third file to be subjected to incremental updating stored in the first terminal when the first terminal performs incremental updating on the third file, so as to obtain a first synthesized file, and performing reverse reduction on the first synthesized file so as to obtain a fourth file which is corresponding to the third file and is subjected to incremental updating.
In order to ensure the validity of the obtained differential file, in some embodiments of the present application, as shown in fig. 7, after performing the differential operation on the first restored file and the second restored file to obtain the differential file, the method may include: step 701 to step 704.
Step 701, the difference file and the first reduction file are synthesized to obtain a second synthesis file.
The method for synthesizing the difference file and the first restored file may refer to the description in step 203, and is not described herein again.
And step 702, performing reverse reduction on the second synthesized file to obtain a file to be confirmed.
Step 703, determining whether the file to be confirmed is consistent with the second file.
Specifically, the above-mentioned method for determining whether the file to be confirmed is consistent with the second file may refer to the descriptions of step 401 to step 402, which are not described herein again.
Step 704, if the file to be confirmed is consistent with the second file, saving a differential file obtained by performing differential operation on the first restored file and the second restored file.
In the embodiment of the application, when the file to be confirmed is consistent with the second file, the differential file is indicated to be valid, so that the differential file can be saved, and the first terminal can acquire the differential file.
In some other embodiments of the present application, after determining whether the file to be confirmed is consistent with the second file, the method may further include: and if the file to be confirmed is not consistent with the second file, marking the differential file obtained by carrying out differential operation on the first reduction file and the second reduction file as an error file. That is, the obtained differential file is invalid, and further, the second terminal may delete the differential file marked as an error file, so that the first terminal may perform full update when the valid differential file cannot be obtained.
In some embodiments of the present application, when the first file is a file such as an application installation package, the first file may include a plurality of second subfiles, and correspondingly, the second file may also include a plurality of third subfiles; since some of the second subfiles are second subfiles with updates and some of the second subfiles are first subfiles without updates, and limited by the restoration method, some of the second subfiles with updates may not be restored, therefore, before the first file is restored to the first restored file and the second file is restored to the second restored file, the file identifier of each of the second subfiles in the plurality of second subfiles may be compared with the file identifier of each of the third subfiles in the plurality of third subfiles, so as to obtain a second subfile of the second subfiles that has the same file identifier as the corresponding third subfile and a second subfile of the third subfile that does not have the same file identifier; then, the second subfile with the same file identification as the corresponding third subfile is confirmed as the second subfile without update, and the second subfile without the same file identification as the third subfile is confirmed as the second subfile with update.
Further, the restoring the first file into the first restored file and the restoring the second file into the second restored file may include: and restoring a second subfile which can be restored in the second subfile with the update to a second restoration subfile, and restoring a third subfile with the same file name as the second subfile which can be restored to a third restoration subfile.
Correspondingly, the performing a difference operation on the first restored file and the second restored file to obtain a difference file may include: performing differential operation on the second subfile which cannot be restored in the updated second subfile and the corresponding third subfile, and performing differential operation on the second restored subfile and the corresponding third restored subfile to obtain a differential file; the differential file may carry flag information of the second subfile with the update, flag information of the second subfile without the update, and file information of the newly added file.
It should be noted that for simplicity of description, the aforementioned method embodiments are all presented as a series of combinations of acts, but those skilled in the art will appreciate that the present invention is not limited by the order of acts described, as some steps may occur in other orders in accordance with the present invention.
Fig. 8 shows a schematic structural diagram of an incremental updating apparatus 800 for a file according to an embodiment of the present application, where the incremental updating apparatus 800 for a file is configured at a first terminal, and includes an obtaining unit 801, a restoring unit 802, a synthesizing unit 803, and an inverse restoring unit 804.
A first acquisition unit 801 configured to acquire a differential file; the differential file comprises a differential file obtained by the second terminal performing differential operation on the first reduction file and the second reduction file; the first reduction file is obtained by reducing a first file to be subjected to incremental updating, which is stored by the second terminal, by the second terminal; the second reduction file is obtained by reducing a second file which is corresponding to the first file and is subjected to incremental updating by the second terminal;
a first restoring unit 802, configured to obtain a third file to be subjected to incremental update and stored by the first terminal, and restore the third file into a third restored file;
a synthesizing unit 803, configured to synthesize the third restored file and the differential file to obtain a first synthesized file;
a reverse reduction unit 804, configured to perform reverse reduction on the first synthesized file to obtain a fourth file that is corresponding to the third file and has completed incremental updating.
It should be noted that, for convenience and simplicity of description, the specific working process of the incremental file updating apparatus 800 described above may refer to the corresponding process of the method described in fig. 2 to fig. 5, and is not described herein again.
Fig. 9 shows a schematic structural diagram of an incremental updating apparatus 900 for a file according to an embodiment of the present application, where the incremental updating apparatus 900 for a file is configured at a second terminal and includes an obtaining unit 901, a restoring unit 902, and a differentiating unit 903.
A second obtaining unit 901, configured to obtain a first file to be subjected to incremental update and a second file corresponding to the first file, which is stored in the second terminal and has completed incremental update;
a second restoring unit 902, configured to restore the first file into a first restored file, and restore the second file into a second restored file;
a difference unit 903, configured to perform difference operation on the first restored file and the second restored file to obtain a difference file; the differential file is used for synthesizing a third reduction file corresponding to a third file stored by the first terminal and to be subjected to incremental updating when the first terminal performs incremental updating on the third file to obtain a first synthesized file, and performing reverse reduction on the first synthesized file to obtain a fourth file which is corresponding to the third file and is subjected to incremental updating.
It should be noted that, for convenience and simplicity of description, the specific working process of the incremental file updating apparatus 900 described above may refer to the corresponding process of the method described in fig. 6 to fig. 7, and is not described herein again.
The present application also provides a terminal for implementing the method for updating the increment of the file in fig. 2 to 5, that is, the first terminal, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, the processor implementing the steps of, when executing the computer program:
acquiring a difference file; the differential file comprises a differential file obtained by the second terminal performing differential operation on the first reduction file and the second reduction file; the first reduction file is obtained by reducing a first file to be subjected to incremental updating, which is stored by the second terminal, by the second terminal; the second reduction file is obtained by reducing a second file which is corresponding to the first file and is subjected to incremental updating by the second terminal;
acquiring a third file to be subjected to incremental updating and stored by the first terminal, and restoring the third file into a third restored file;
synthesizing the third reduction file and the difference file to obtain a first synthesized file;
and performing reverse reduction on the first synthesized file to obtain a fourth file which is corresponding to the third file and is subjected to incremental updating.
The present application also provides another terminal for implementing the method for incrementally updating files shown in fig. 6 to 7, that is, the second terminal includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, the processor implementing the steps of, when executing the computer program:
acquiring a first file to be subjected to incremental updating and stored in the second terminal and a second file which is corresponding to the first file and is subjected to incremental updating;
restoring the first file into a first restored file, and restoring the second file into a second restored file;
performing differential operation on the first reduction file and the second reduction file to obtain a differential file; the differential file is used for synthesizing a third reduction file corresponding to a third file stored by the first terminal and to be subjected to incremental updating when the first terminal performs incremental updating on the third file to obtain a first synthesized file, and performing reverse reduction on the first synthesized file to obtain a fourth file which is corresponding to the third file and is subjected to incremental updating.
Specifically, as shown in fig. 10, the first terminal or the second terminal may further include one or more input devices 13 (only one is shown in fig. 10) and one or more output devices 14 (only one is shown in fig. 1) in addition to the processor 11 and the memory 12. The processor 11, memory 12, input device 13 and output device 14 are connected by a bus 15.
It should be understood that, in the embodiment of the present Application, the Processor 11 may be a Central Processing Unit (CPU), and the Processor may also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The input device 13 may include a virtual keyboard, a touch pad, a fingerprint sensor (for collecting fingerprint information of a user and direction information of the fingerprint), a microphone, etc., and the output device 14 may include a display, a speaker, etc.
Memory 12 may include both read-only memory and random access memory and provides instructions and data to processor 11. Some or all of memory 12 may also include non-volatile random access memory. For example, the memory 12 may also store device type information.
The memory 12 stores a computer program that is executable by the processor 11, and the computer program is, for example, a program of a file incremental update method. When the processor 11 executes the computer program, steps in an embodiment of the method for incrementally updating the file are implemented, for example, steps 201 to 204 shown in fig. 2, or steps 601 to 603 shown in fig. 6. Alternatively, the processor 11 implements the functions of the modules/units in the device embodiments, such as the functions of the units 801 to 804 shown in fig. 8, or the functions of the units 901 to 903 shown in fig. 9, when executing the computer program.
The computer program may be divided into one or more modules/units, and the one or more modules/units are stored in the memory 12 and executed by the processor 11 to complete the present application. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program in the first terminal performing the incremental update of the file. For example, the computer program may be divided into a first obtaining unit, a first restoring unit, a synthesizing unit and a reverse restoring unit, and the specific functions of the units are as follows: a first obtaining unit configured to obtain a differential file; the differential file comprises a differential file obtained by the second terminal performing differential operation on the first reduction file and the second reduction file; the first reduction file is obtained by reducing a first file to be subjected to incremental updating, which is stored by the second terminal, by the second terminal; the second reduction file is obtained by reducing a second file which is corresponding to the first file and is subjected to incremental updating by the second terminal; the first restoring unit is used for acquiring a third file to be subjected to incremental updating and stored by the first terminal, and restoring the third file into a third restored file; the synthesis unit is used for synthesizing the third reduction file and the difference file to obtain a first synthesis file; and the reverse reduction unit is used for performing reverse reduction on the first synthesized file to obtain a fourth file which corresponds to the third file and is subjected to incremental updating.
Alternatively, the computer program may be divided into a second obtaining unit, a second restoring unit and a difference unit, and each unit specifically functions as follows: a second obtaining unit, configured to obtain a first file to be subjected to incremental update and a second file that is corresponding to the first file and has completed incremental update, where the first file is stored in the second terminal; the second restoring unit is used for restoring the first file into a first restored file and restoring the second file into a second restored file; the difference unit is used for carrying out difference operation on the first reduction file and the second reduction file to obtain a difference file; the differential file is used for synthesizing a third reduction file corresponding to a third file stored by the first terminal and to be subjected to incremental updating when the first terminal performs incremental updating on the third file to obtain a first synthesized file, and performing reverse reduction on the first synthesized file to obtain a fourth file which is corresponding to the third file and is subjected to incremental updating.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned functions may be distributed as different functional units and modules according to needs, that is, the internal structure of the apparatus may be divided into different functional units or modules to implement all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/terminal and method may be implemented in other ways. For example, the above-described embodiments of the apparatus/terminal are merely illustrative, and for example, the division of the above-described modules or units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units described above, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method of the embodiments described above may be implemented by a computer program, which may be stored in a computer readable storage medium and used by a processor to implement the steps of the embodiments of the methods described above. The computer program includes computer program code, and the computer program code may be in a source code form, an object code form, an executable file or some intermediate form. The computer readable medium may include: any entity or device capable of carrying the above-described computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signal, telecommunication signal, software distribution medium, etc. It should be noted that the computer readable medium described above may include content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media that does not include electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
The above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (20)

  1. An incremental update method for a file, applied to a first terminal, is characterized in that the incremental update method includes:
    acquiring a difference file; the differential file comprises a differential file obtained by the second terminal performing differential operation on the first reduction file and the second reduction file; the first reduction file is obtained by reducing a first file to be subjected to incremental updating, which is stored by the second terminal, by the second terminal; the second reduction file is obtained by reducing a second file which is corresponding to the first file and is subjected to incremental updating by the second terminal;
    acquiring a third file to be subjected to incremental updating and stored by the first terminal, and restoring the third file into a third restored file;
    synthesizing the third reduction file and the difference file to obtain a first synthesized file;
    and performing reverse reduction on the first synthesized file to obtain a fourth file which is corresponding to the third file and is subjected to incremental updating.
  2. The incremental update method of claim 1, wherein, when the third file is a compressed file of a first preset format, the restoring the third file to a third restored file comprises:
    and decompressing the third file into a first decompressed file.
  3. The incremental update method of claim 1, wherein, when the third file is a file to be converted in a second preset format, the restoring the third file into a third restored file comprises:
    and carrying out format conversion on the third file to obtain a first conversion file in a third preset format corresponding to the second preset format.
  4. The delta update method as set forth in claim 1, wherein said restoring said third file to a third restored file comprises:
    calling a first plug-in to restore the third file into a third restored file;
    the step of performing reverse reduction on the first synthesized file to obtain a fourth file corresponding to the third file and having completed incremental updating includes:
    and calling a second plug-in to perform reverse reduction on the first synthesized file to obtain the fourth file which is corresponding to the third file and is subjected to incremental updating.
  5. An incremental update method as claimed in any one of claims 2 to 4, wherein said third file comprises a plurality of first subfiles, and said restoring said third file to a third restored file comprises:
    confirming a first subfile to be subjected to incremental updating in the plurality of first subfiles according to the differential file;
    and restoring the first subfile which can be restored in the first subfile to be subjected to incremental updating into a first restoration subfile.
  6. The incremental update method of claim 5, wherein after said validating a first subfile of the plurality of first subfiles that is to be incrementally updated from the differential file, comprising:
    and synthesizing the first subfile which cannot be restored in the first subfile to be subjected to incremental updating with the differential file to obtain a file which is corresponding to the first subfile which cannot be restored and is subjected to incremental updating.
  7. The incremental update method of claim 1, wherein, before synthesizing the third restore file with the difference file to obtain the first synthesized file, the method comprises:
    carrying out integrity check on the differential file;
    the synthesizing the third restored file and the differential file to obtain a first synthesized file includes:
    and if the integrity check is successful, synthesizing the third reduction file and the differential file to obtain the first synthesized file.
  8. The incremental update method of claim 1, wherein after the performing the reverse restore on the first composite file to obtain a fourth file corresponding to the third file and having completed the incremental update, the method comprises:
    judging whether the fourth file is consistent with the second file or not;
    and if the fourth file is consistent with the second file, confirming that the incremental updating of the third file is successfully carried out.
  9. An incremental update method of a file, applied to a second terminal, is characterized in that the incremental update method includes:
    acquiring a first file to be subjected to incremental updating and stored in the second terminal and a second file which is corresponding to the first file and is subjected to incremental updating;
    restoring the first file into a first restored file, and restoring the second file into a second restored file;
    performing differential operation on the first reduction file and the second reduction file to obtain a differential file; the differential file is used for synthesizing a third reduction file corresponding to a third file stored by the first terminal and to be subjected to incremental updating when the first terminal performs incremental updating on the third file to obtain a first synthesized file, and performing reverse reduction on the first synthesized file to obtain a fourth file which is corresponding to the third file and is subjected to incremental updating.
  10. The incremental update method of claim 9, wherein the first file comprises a plurality of second subfiles, the second file comprising a plurality of third subfiles; before the restoring the first file into the first restored file and the restoring the second file into the second restored file, the method includes:
    comparing the file identifier of each second subfile in the plurality of second subfiles with the file identifier of each third subfile in the plurality of third subfiles to obtain a second subfile which is the same as the corresponding file identifier of the third subfile in the plurality of second subfiles and a second subfile which does not have the third subfile with the same file identifier;
    and confirming the second subfile with the same file identification as the corresponding third subfile as the second subfile without update, and confirming the second subfile without the same file identification as the third subfile with update.
  11. The incremental update method of claim 10, wherein restoring the first file to a first restored file and the second file to a second restored file comprises:
    and restoring a second subfile which can be restored in the second subfile with the update to a second restoration subfile, and restoring a third subfile with the same file name as the second subfile which can be restored to a third restoration subfile.
  12. The incremental update method of claim 11,
    the performing a differential operation on the first restored file and the second restored file to obtain a differential file includes:
    performing differential operation on the second subfile which cannot be restored in the updated second subfile and the corresponding third subfile, and performing differential operation on the second restored subfile and the corresponding third restored subfile to obtain a differential file; the differential file carries the mark information of the second subfile with the update, the mark information of the second subfile without the update and the file information of the newly added file.
  13. The incremental update method of claim 9, wherein after performing a difference operation on the first restored file and the second restored file to obtain a difference file, the method comprises:
    synthesizing the differential file and the first reduction file to obtain a second synthesized file;
    performing reverse reduction on the second synthetic file to obtain a file to be confirmed;
    judging whether the file to be confirmed is consistent with the second file or not;
    and if the file to be confirmed is consistent with the second file, saving a differential file obtained by performing differential operation on the first reduction file and the second reduction file.
  14. The incremental update method of claim 13, wherein after determining whether the file to be validated is consistent with the second file, the method comprises:
    and if the file to be confirmed is not consistent with the second file, marking a differential file obtained by performing differential operation on the first reduction file and the second reduction file as an error file.
  15. An incremental file update apparatus configured at a first terminal, comprising:
    a first obtaining unit configured to obtain a differential file; the differential file comprises a differential file obtained by the second terminal performing differential operation on the first reduction file and the second reduction file; the first reduction file is obtained by reducing a first file to be subjected to incremental updating, which is stored by the second terminal, by the second terminal; the second reduction file is obtained by reducing a second file which is corresponding to the first file and is subjected to incremental updating by the second terminal;
    the first restoring unit is used for acquiring a third file to be subjected to incremental updating and stored by the first terminal, and restoring the third file into a third restored file;
    the synthesis unit is used for synthesizing the third reduction file and the difference file to obtain a first synthesis file;
    and the reverse reduction unit is used for performing reverse reduction on the first synthesized file to obtain a fourth file which corresponds to the third file and is subjected to incremental updating.
  16. An incremental file update apparatus, configured at a second terminal, includes:
    a second obtaining unit, configured to obtain a first file to be subjected to incremental update and a second file that is corresponding to the first file and has completed incremental update, where the first file is stored in the second terminal;
    the second restoring unit is used for restoring the first file into a first restored file and restoring the second file into a second restored file;
    the difference unit is used for carrying out difference operation on the first reduction file and the second reduction file to obtain a difference file; the differential file is used for synthesizing a third reduction file corresponding to a third file stored by the first terminal and to be subjected to incremental updating when the first terminal performs incremental updating on the third file to obtain a first synthesized file, and performing reverse reduction on the first synthesized file to obtain a fourth file which is corresponding to the third file and is subjected to incremental updating.
  17. A terminal comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor when executing the computer program implements the steps of:
    acquiring a difference file; the differential file comprises a differential file obtained by the second terminal performing differential operation on the first reduction file and the second reduction file; the first reduction file is obtained by reducing a first file to be subjected to incremental updating, which is stored by the second terminal, by the second terminal; the second reduction file is obtained by reducing a second file which is corresponding to the first file and is subjected to incremental updating by the second terminal;
    acquiring a third file to be subjected to incremental updating and stored by the first terminal, and restoring the third file into a third restored file;
    synthesizing the third reduction file and the difference file to obtain a first synthesized file;
    and performing reverse reduction on the first synthesized file to obtain a fourth file which is corresponding to the third file and is subjected to incremental updating.
  18. A terminal comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor when executing the computer program implements the steps of:
    acquiring a first file to be subjected to incremental updating and stored in the second terminal and a second file which is corresponding to the first file and is subjected to incremental updating;
    restoring the first file into a first restored file, and restoring the second file into a second restored file;
    performing differential operation on the first reduction file and the second reduction file to obtain a differential file; the differential file is used for synthesizing a third reduction file corresponding to a third file stored by the first terminal and to be subjected to incremental updating when the first terminal performs incremental updating on the third file to obtain a first synthesized file, and performing reverse reduction on the first synthesized file to obtain a fourth file which is corresponding to the third file and is subjected to incremental updating.
  19. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 8.
  20. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 9 to 14.
CN201980100492.2A 2019-12-10 2019-12-10 Incremental updating method and device of file, terminal and computer-readable storage medium Pending CN114402311A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/124363 WO2021114101A1 (en) 2019-12-10 2019-12-10 Method and apparatus for incremental update of file, and terminal and computer-readable storage medium

Publications (1)

Publication Number Publication Date
CN114402311A true CN114402311A (en) 2022-04-26

Family

ID=76329181

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201980100492.2A Pending CN114402311A (en) 2019-12-10 2019-12-10 Incremental updating method and device of file, terminal and computer-readable storage medium

Country Status (2)

Country Link
CN (1) CN114402311A (en)
WO (1) WO2021114101A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113486313B (en) * 2021-07-05 2023-07-25 江苏欧帝电子科技有限公司 Unified identity authentication method and system for school system personnel

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103713928B (en) * 2013-12-31 2017-02-22 优视科技有限公司 Incremental file generating method, and application program installing file updating method and device
CN105573785A (en) * 2015-12-11 2016-05-11 青岛海信电器股份有限公司 Differential package manufacturing method and device
CN106462430B (en) * 2016-08-29 2020-06-02 北京小米移动软件有限公司 Application upgrade package obtaining method and device
CN107391145A (en) * 2017-07-27 2017-11-24 中兴通讯股份有限公司 AKU preparation method and device, the method and device of upgrade file

Also Published As

Publication number Publication date
WO2021114101A1 (en) 2021-06-17

Similar Documents

Publication Publication Date Title
CN108037946B (en) Method, system and server for hot updating of application program
US9594764B2 (en) Method and apparatus for modifying compressed files
CN109814524B (en) Vehicle diagnosis method, device and system
CN111367895B (en) Data migration method and device
CN114402311A (en) Incremental updating method and device of file, terminal and computer-readable storage medium
CN115269038A (en) Data processing method for stateless computing, program product and electronic device
CN113468118B (en) File increment storage method, device and storage medium based on blockchain
CN108053034B (en) Model parameter processing method and device, electronic equipment and storage medium
CN112035401A (en) Model data processing method and device, electronic equipment and readable medium
CN112445769A (en) Block chain-based on-chain storage method and device, terminal equipment and medium
CN111124939A (en) Data compression method and system based on full flash memory array
CN112685422A (en) Method and device for processing UTXO database and electronic equipment
CN110019040B (en) Folder processing method, mobile terminal and storage medium
WO2021097624A1 (en) File processing method, file processing apparatus, and terminal device
WO2021097623A1 (en) File processing method and device, and terminal apparatus
WO2021097704A1 (en) Data transmission method, data downloading method and terminal
CN114365096A (en) Memory allocation method, device, terminal and computer readable storage medium
WO2021128269A1 (en) File processing method, file processing device, mobile terminal and server
CN110852083A (en) Method and device for generating short message template
CN113688360B (en) Distributed digital signature processing method and system thereof
CN114218441B (en) Method for calling and displaying UOF document
CN112733210B (en) Equipment identifier obtaining method and device and computer readable storage medium
CN112579547B (en) Image file compression method and device for embedded system
CN115314382B (en) Configuration information processing method
TWI712033B (en) Voice identifying method, device, computer device and storage media

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination