CN108111331B - Method, device, storage medium, processor and system for acquiring update data packet - Google Patents

Method, device, storage medium, processor and system for acquiring update data packet Download PDF

Info

Publication number
CN108111331B
CN108111331B CN201711079036.3A CN201711079036A CN108111331B CN 108111331 B CN108111331 B CN 108111331B CN 201711079036 A CN201711079036 A CN 201711079036A CN 108111331 B CN108111331 B CN 108111331B
Authority
CN
China
Prior art keywords
version
data packet
updated
information
server
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.)
Active
Application number
CN201711079036.3A
Other languages
Chinese (zh)
Other versions
CN108111331A (en
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.)
Beijing Qunar Software Technology Co Ltd
Original Assignee
Beijing Qunar Software 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 Beijing Qunar Software Technology Co Ltd filed Critical Beijing Qunar Software Technology Co Ltd
Priority to CN201711079036.3A priority Critical patent/CN108111331B/en
Publication of CN108111331A publication Critical patent/CN108111331A/en
Application granted granted Critical
Publication of CN108111331B publication Critical patent/CN108111331B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 

Abstract

The invention discloses a method, a device, a storage medium, a processor and a system for acquiring an update data packet. The method comprises the following steps: receiving an update request message from a terminal, wherein the update request message is used for requesting a server to perform incremental update on one or more components of an application program installed on the terminal, and the update request message carries version information and first check information of the one or more components; acquiring a data packet to be updated according to the version information and the first check information, wherein the data packet to be updated is used for performing incremental updating on one or more components; and returning the download address of the data packet to be updated to the terminal. The invention solves the technical problems that the update data volume of the application program update mode provided in the related technology is large, the update speed is slow, and the iteration efficiency of the application program is seriously restricted.

Description

Method, device, storage medium, processor and system for acquiring update data packet
Technical Field
The invention relates to the field of computers, in particular to a method, a device, a storage medium, a processor and a system for acquiring an update data packet.
Background
At present, along with the explosive growth of communication services and the more detailed scenes, the volume of application programs installed on a terminal is obviously increased compared with the prior art, and the release of application versions is continuously changed. The existing application program updating mode has the defects of large updating data volume and slow updating speed, so that the network flow loss of a terminal can be caused, the technical defects of the application program make up or the instantaneity of the emerging function release reaching a user is poor, and the iteration efficiency of the application program is severely limited.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
At least some embodiments of the present invention provide a method, an apparatus, a storage medium, a processor, and a system for acquiring an update data packet, so as to at least solve the technical problems that an update data amount is large, an update speed is slow, and an iteration efficiency of an application program is severely restricted in an application program update manner provided in the related art.
According to an embodiment of the present invention, a method for acquiring an update packet is provided, including:
receiving an update request message from a terminal, wherein the update request message is used for requesting a server to perform incremental update on one or more components of an application program installed on the terminal, and the update request message carries version information and first check information of the one or more components; acquiring a data packet to be updated according to the version information and the first check information, wherein the data packet to be updated is used for performing incremental updating on one or more components; and returning the download address of the data packet to be updated to the terminal.
Optionally, the obtaining the data packet to be updated according to the version information and the first check information includes: determining that a first version application component installation package corresponding to the version information is currently stored in the server according to the first check information; determining that a differential data packet does not exist locally on the server, wherein the differential data packet is used for performing incremental updating on one or more components; and carrying out differential processing on the second version application component installation package and the first version application component installation package to obtain a differential data package, wherein the second version is higher than the first version.
Optionally, the obtaining the data packet to be updated according to the version information and the first check information includes: determining that a first version application component installation package corresponding to the version information is currently stored in the server according to the first check information; and acquiring a data packet to be updated from a preset storage area, wherein the data packet to be updated is obtained by performing differential processing on a second version application component installation package and a first version application component installation package in advance by a server, and the second version is higher than the first version.
Optionally, after returning the download address of the data packet to be updated to the terminal, the method further includes: receiving a downloading request message from a terminal, wherein the downloading request message is used for acquiring a data packet to be updated according to a downloading address; and responding to the downloading request message, and sending the data packet to be updated and second check information to the terminal, wherein the second check information is used for verifying whether the data packet to be updated is matched with one or more components.
According to an embodiment of the present invention, another method for acquiring an update packet is further provided, including:
sending an update request message to a server, wherein the update request message is used for requesting the server to perform incremental update on one or more components of an application program locally installed in the terminal, and the update request message carries version information and first check information of the one or more components; and receiving a download address of the data packet to be updated, which is returned by the server, wherein the data packet to be updated is obtained by the server according to the version information and the first verification information, and the data packet to be updated is used for performing incremental updating on one or more components.
Optionally, after receiving the download address returned by the server, the method further includes: acquiring a data packet to be updated and second check information from the server according to the download address, wherein the second check information is used for checking whether the data packet to be updated is matched with one or more components; determining that the data packet to be updated is matched with one or more components through the second check information; and merging the data packet to be updated with one or more components.
According to an embodiment of the present invention, an apparatus for obtaining an update packet is provided, including:
the system comprises a first receiving module, a first verification module and a second receiving module, wherein the first receiving module is used for receiving an update request message from a terminal, the update request message is used for requesting a server to perform incremental update on one or more components of an application program installed on the terminal, and the update request message carries version information and first verification information of the one or more components; the acquisition module is used for acquiring a data packet to be updated according to the version information and the first check information, wherein the data packet to be updated is used for performing incremental updating on one or more components; and the first feedback module is used for returning the download address of the data packet to be updated to the terminal.
Optionally, the obtaining module includes: the first determining unit is used for determining that the server currently stores a first version application component installation package corresponding to the version information according to the first checking information; the second determining unit is used for determining that a differential data packet does not exist locally in the server, wherein the differential data packet is used for performing incremental updating on one or more components; the first obtaining unit is used for carrying out differential processing on the second version application component installation package and the first version application component installation package to obtain a differential data package, wherein the second version is higher than the first version.
Optionally, the obtaining module includes: the third determining unit is used for determining that the first version application component installation package corresponding to the version information is currently stored in the server according to the first checking information; and the second obtaining unit is used for obtaining the data packet to be updated from the preset storage area, wherein the data packet to be updated is obtained by performing differential processing on the second version application component installation package and the first version application component installation package in advance by the server, and the second version is higher than the first version.
Optionally, the apparatus further comprises: the second receiving module is used for receiving a downloading request message from the terminal, wherein the downloading request message is used for acquiring a data packet to be updated according to the downloading address; and the second feedback module is used for responding to the downloading request message and sending the data packet to be updated and second check information to the terminal, wherein the second check information is used for verifying whether the data packet to be updated is matched with one or more components.
According to an embodiment of the present invention, there is provided another apparatus for acquiring an update packet, including:
the device comprises a sending module, a receiving module and a sending module, wherein the sending module is used for sending an update request message to a server, the update request message is used for requesting the server to carry out incremental update on one or more components of an application program locally installed in a terminal, and the update request message carries version information and first check information of the one or more components; and the receiving module is used for receiving a download address of the data packet to be updated, which is returned by the server, wherein the data packet to be updated is obtained by the server according to the version information and the first check information, and the data packet to be updated is used for performing incremental updating on one or more components.
Optionally, the apparatus further comprises: the acquisition module is used for acquiring the data packet to be updated and second check information from the server according to the download address, wherein the second check information is used for verifying whether the data packet to be updated is matched with one or more components; the determining module is used for determining that the data packet to be updated is matched with one or more components through the second check information; and the processing module is used for merging the data packet to be updated with one or more components.
According to an embodiment of the present invention, a storage medium is provided, where the storage medium includes a stored program, and when the program runs, a device in which the storage medium is located is controlled to execute the above-mentioned update package obtaining method.
According to an embodiment of the present invention, a processor is provided, where the processor is configured to execute a program, where the program executes the method for acquiring the update package.
According to an embodiment of the present invention, there is provided an update system for an application component, including: the terminal is used for executing the method for acquiring the update data packet, and the terminal is used for the other method for acquiring the update data packet.
In at least part of embodiments of the present invention, a method of receiving an update request message from a terminal, where the update request message is used to request a server to perform incremental update on one or more components of an application installed on the terminal, and the update request message carries version information and first check information of the one or more components, is adopted, a data packet to be updated is obtained according to the version information and the first check information, the data packet to be updated is used to perform incremental update on the one or more components, and a download address of the data packet to be updated is returned to the terminal, so as to achieve the purpose of improving update timeliness of the application component, thereby achieving the technical effects of reducing network traffic consumed by application update and reducing time cost, and further solving the problems of large update data volume and slow update speed of an application update method provided in the related art, the technical problem of severely restricting the iteration efficiency of the application program.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a flow chart of a method for obtaining an update package according to one embodiment of the invention;
FIG. 2 is a flow chart of another update package acquisition method according to one embodiment of the invention;
FIG. 3 is a block diagram of an update system for application components according to one embodiment of the invention;
FIG. 4 is a block diagram of an apparatus for obtaining an update package according to an embodiment of the present invention;
FIG. 5 is a block diagram of an apparatus for obtaining update packets according to a preferred embodiment of the present invention;
FIG. 6 is a block diagram of another apparatus for obtaining update packets according to an embodiment of the invention;
fig. 7 is a block diagram of another apparatus for acquiring update packets according to a preferred embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In accordance with one embodiment of the present invention, there is provided an embodiment of a method for obtaining an update package, where the steps illustrated in the flowchart of the figure may be performed in a computer system such as a set of computer-executable instructions, and where a logical order is illustrated in the flowchart, in some cases, the steps illustrated or described may be performed in an order different than that illustrated or described herein.
Fig. 1 is a flowchart of a method for acquiring an update packet according to an embodiment of the present invention, as shown in fig. 1, the method includes the following steps:
step S10, receiving an update request message from the terminal, wherein the update request message is used for requesting the server to perform incremental update on one or more components of the application program installed on the terminal, and the update request message carries version information and first check information of the one or more components;
step S12, acquiring a data packet to be updated according to the version information and the first check information, wherein the data packet to be updated is used for performing incremental updating on one or more components;
and step S14, returning the download address of the data packet to be updated to the terminal.
Through the steps, the data packet to be updated can be obtained according to the version information and the first check information by adopting a mode of receiving the update request message from the terminal, wherein the update request message is used for requesting the server to carry out incremental update on one or more components of the application program installed on the terminal, and the update request message carries the version information and the first check information of the one or more components, the data packet to be updated is used for performing incremental updating on one or more components and returning the download address of the data packet to be updated to the terminal, so that the aim of improving the updating timeliness of the application program components is fulfilled, thereby realizing the technical effects of reducing the network flow consumed by the application updating and reducing the time cost, and the technical problems that the updating data volume of the application program updating mode provided by the related technology is large, the updating speed is low, and the iteration efficiency of the application program is seriously restricted are solved.
Incremental updating refers to that the server searches for a part of the new version content that is different from the old version content through a specific algorithm (this process is called differentiation), and then extracts the different part to form an update patch (patch), i.e. the above-mentioned data packet to be updated. In the process of detecting and updating, the terminal only needs to download the updating patch to the local of the terminal, and then the updating patch is combined to the local application program component installation package, so that a new version of application program component installation package is formed. The application component installation package local to the terminal is obtained by extracting a currently installed application package file (APK).
Optionally, in step S12, obtaining the data packet to be updated according to the version information and the first verification information may include the following steps:
step S121, determining that a first version application component installation package corresponding to the version information is currently stored in the server according to the first check information;
step S122, determining that a differential data packet does not exist locally in the server, wherein the differential data packet is used for performing incremental updating on one or more components;
step S123, performing differential processing on the second version application component installation package and the first version application component installation package to obtain a differential data package, where the second version is higher than the first version.
First, the terminal needs to send the version number of the locally installed first version application component installation package and first check information (e.g., fifth version of message digest algorithm (MD5)) to the server. Secondly, the server needs to determine that the first version application component installation package reported by the terminal is consistent with the first version application component installation package stored locally by the server according to the first check information, for example: the first version of the application component installation package for terminal installation is downloaded from a regular channel and is not obtained through brute force cracking. And then, the server judges whether a difference data packet generated in advance is stored locally, wherein the data packet to be updated is obtained by the server by carrying out difference processing on a second version application component installation packet and a first version application component installation packet in advance, and the second version application component installation packet is obtained by upgrading the first version application component installation packet. Finally, if the server determines that the differential data package does not exist locally, the update patch can be generated according to two different versions of binary files, namely the second version application component installation package and the first version application component installation package, by using a tool 'bsdiff' provided in android (android) for making the binary differential incremental upgrade package. Specifically, the server may use the following commands: the bsdiff old renewal patch generates the above-described update patch.
Optionally, in step S12, obtaining the data packet to be updated according to the version information and the first verification information may include the following steps:
step S124, determining that the server currently stores a first version application component installation package corresponding to the version information according to the first check information;
step S125, obtaining a data package to be updated from the preset storage area, where the data package to be updated is obtained by the server performing differential processing on the second version application component installation package and the first version application component installation package in advance, and the second version is higher than the first version.
If the server judges that the difference data package generated in advance is locally stored, namely the server uses a tool 'bsdiff' provided in the android for making the binary difference increment upgrade package in advance to perform difference processing on the binary files of the second version application component installation package and the first version application component installation package which are different in version, so as to generate the update patch, the server can directly acquire the update patch from the preset storage area.
Optionally, in step S14, after returning the download address of the data packet to be updated to the terminal, the method may further include the following steps:
step S15, receiving a download request message from the terminal, wherein the download request message is used for acquiring a data packet to be updated according to a download address;
and step S16, responding to the download request message, sending the data package to be updated and second check information to the terminal, wherein the second check information is used for verifying whether the data package to be updated is matched with one or more components.
And the server stores the generated update patch xx in a preset storage area on the server for the terminal to download and update. Different versions are required to be differentially processed respectively corresponding to the updating of the application program components of the multiple versions, so that purposeful upgrading can be performed according to the actual requirements of the terminal. However, in the case of a large version span, the application update process may be completed in a manner of updating the entire application. In addition, the server can also issue second check information (for example, MD5) to the terminal, so that the terminal can confirm that the update patch is matched with the first version application component installation package, and can also confirm that the basis of the update is the first version application component installation package, and also confirm that the second version application component installation package obtained by merging the first version application component installation package with the data package to be updated by the terminal is consistent with the second version application component installation package stored on the server in the process of updating the application component.
According to an embodiment of the present invention, another embodiment of a method for acquiring an update packet is provided, and fig. 2 is a flowchart of another method for acquiring an update packet according to an embodiment of the present invention, as shown in fig. 2, the method includes the following steps:
step S20, sending an update request message to a server, wherein the update request message is used for requesting the server to perform incremental update on one or more components of an application program locally installed in the terminal, and the update request message carries version information and first check information of the one or more components;
and step S22, receiving a download address of the data packet to be updated returned by the server, wherein the data packet to be updated is obtained by the server according to the version information and the first verification information, and the data packet to be updated is used for performing incremental updating on one or more components.
Optionally, after receiving the download address returned by the server in step S22, the method may further include the following steps:
step S23, obtaining the data package to be updated and second check information from the server according to the download address, wherein the second check information is used for verifying whether the data package to be updated is matched with one or more components;
step S24, determining that the data packet to be updated is matched with one or more components through the second check information;
and step S25, merging the data packet to be updated with one or more components.
After the terminal downloads the xx.patch patch package from the server, the APK corresponding to the xx.patch needs to be acquired. And the terminal synthesizes the old version APK and the update patch which are installed originally into a new version APK by using a bspatch tool. The APK of the old version of the terminal can be obtained by copying an APK file under a preset directory (for example: data/app).
In addition, the server can also issue second check information (for example, MD5) to the terminal, so that the terminal can confirm that the update patch is matched with the first version application component installation package, and can also confirm that the basis of the update is the first version application component installation package, and also confirm that the second version application component installation package obtained by merging the first version application component installation package with the update patch by the terminal is consistent with the second version application component installation package stored on the server in the process of updating the application component.
Fig. 3 is a schematic structural diagram of an update system of application components according to an embodiment of the present invention, and as shown in fig. 3, the system includes: a terminal 1 and a server 2. The system is a framework which is universal for clients of various componentization developments, can be integrated into various types of APPs, and completes incremental updating of all android application components under the condition that a user cannot perceive. The system may include the following operational flows:
first, the terminal needs to send the version number of the locally installed first version application component installation package and first check information (e.g., MD5) to the server.
Secondly, the server needs to determine that the first version application component installation package reported by the terminal is consistent with the first version application component installation package stored locally by the server according to the first check information.
And thirdly, the server judges whether a difference data packet generated in advance is stored locally, wherein the data packet to be updated is obtained by the server by carrying out difference processing on a second version application component installation packet and a first version application component installation packet in advance, and the second version application component installation packet is obtained by upgrading the first version application component installation packet.
Then, if the server determines that the differential data package does not exist locally, the update patch can be generated according to two different versions of binary files, namely the second version application component installation package and the first version application component installation package, by using a tool "bsdiff" for making a binary differential incremental upgrade package provided in the android. If the server judges that the difference data package generated in advance is locally stored, namely the server uses a tool 'bsdiff' provided in the android for making the binary difference increment upgrade package in advance to perform difference processing on the binary files of the second version application component installation package and the first version application component installation package which are different in version, so as to generate the update patch, the server can directly acquire the update patch from the preset storage area.
Finally, after the terminal downloads the update patch package from the server, the application component installation package corresponding to the update patch needs to be acquired. And the terminal uses a synthesis tool to combine the first version application component installation package and the update patch to obtain a second version application component installation package. The first version application component installation package of the terminal can be obtained by copying an APK file under a preset directory (for example: data/app). In addition, the server can also issue second check information (for example, MD5) to the terminal, so that the terminal can confirm that the update patch is matched with the first version application component installation package, and can also confirm that the basis of the update is the first version application component installation package, and also confirm that the second version application component installation package obtained by merging the first version application component installation package with the data package to be updated by the terminal is consistent with the second version application component installation package stored on the server in the process of updating the application component.
According to an embodiment of the present invention, there is provided an embodiment of an apparatus for acquiring an update packet, and fig. 4 is a block diagram of a structure of an apparatus for acquiring an update packet according to an embodiment of the present invention, as shown in fig. 4, the apparatus includes: a first receiving module 10, configured to receive an update request message from a terminal, where the update request message is used to request a server to perform incremental update on one or more components of an application installed on the terminal, and the update request message carries version information and first check information of the one or more components; an obtaining module 20, configured to obtain a data packet to be updated according to the version information and the first check information, where the data packet to be updated is used to perform incremental update on one or more components; the first feedback module 30 is configured to return a download address of the data packet to be updated to the terminal.
Optionally, the obtaining module 20 includes: a first determining unit (not shown in the figure) configured to determine, according to the first verification information, that the server currently stores the first version application component installation package corresponding to the version information; a second determining unit (not shown in the figure) for determining that a differential data packet does not exist locally in the server, wherein the differential data packet is used for performing incremental updating on one or more components; a first obtaining unit (not shown in the figure), configured to perform differential processing on the second version application component installation package and the first version application component installation package to obtain a differential data package, where the second version is higher than the first version.
Optionally, the obtaining module 20 includes: a third determining unit (not shown in the figure), configured to determine, according to the first verification information, that the first version application component installation package corresponding to the version information is currently stored in the server; and a second obtaining unit (not shown in the figure) configured to obtain the data packet to be updated from the preset storage area, where the data packet to be updated is obtained by performing, by the server, differential processing on the second version application component installation package and the first version application component installation package in advance, and the second version is higher than the first version.
Optionally, fig. 5 is a block diagram of a structure of an apparatus for acquiring an update packet according to a preferred embodiment of the present invention, as shown in fig. 5, the apparatus further includes: a second receiving module 40, configured to receive a download request message from a terminal, where the download request message is used to obtain a data packet to be updated according to a download address; and a second feedback module 50, configured to send, in response to the download request message, the data packet to be updated and second verification information to the terminal, where the second verification information is used to verify whether the data packet to be updated is adapted to one or more components.
According to an embodiment of the present invention, there is provided an embodiment of an apparatus for acquiring an update packet, and fig. 6 is a block diagram of another apparatus for acquiring an update packet according to an embodiment of the present invention, as shown in fig. 6, the apparatus includes: a sending module 60, configured to send an update request message to a server, where the update request message is used to request the server to perform incremental update on one or more components of an application locally installed in the terminal, and the update request message carries version information and first check information of the one or more components; and a receiving module 70, configured to receive a download address of a to-be-updated data packet returned by the server, where the to-be-updated data packet is obtained by the server according to the version information and the first verification information, and the to-be-updated data packet is used to perform incremental update on one or more components.
Optionally, fig. 7 is a block diagram of another apparatus for acquiring an update data packet according to a preferred embodiment of the present invention, and as shown in fig. 7, the apparatus further includes: an obtaining module 80, configured to obtain, from the server, a data packet to be updated and second verification information according to the download address, where the second verification information is used to verify whether the data packet to be updated is adapted to one or more components; a determining module 90, configured to determine, through the second check information, that the data packet to be updated is adapted to one or more components; the processing module 100 is configured to merge the data packet to be updated with one or more components.
According to an embodiment of the present invention, there is further provided a storage medium, where the storage medium includes a stored program, and when the program runs, the apparatus where the storage medium is located is controlled to execute the method for acquiring the update package. The storage medium may include, but is not limited to: various media capable of storing program codes, such as a U disk, a Read Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
According to an embodiment of the present invention, there is further provided a processor, where the processor is configured to execute a program, and the program executes the method for acquiring the update data packet. The processor may include, but is not limited to: a Microprocessor (MCU) or a programmable logic device (FPGA), etc.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple 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, units or modules, and may be in an electrical 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 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 invention 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 unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (9)

1. An update packet obtaining method, comprising:
receiving an update request message from a terminal, wherein the update request message is used for requesting a server to perform incremental update on one or more components of an application program installed on the terminal, the update request message carries version information and first check information of the one or more components, and the first check information is used for verifying an acquisition channel of the application program;
acquiring a data packet to be updated according to the version information and the first check information, wherein the data packet to be updated is used for performing incremental updating on the one or more components;
returning the download address of the data packet to be updated to the terminal;
after the downloading address of the data packet to be updated is returned to the terminal, the method further comprises the following steps: receiving a download request message from the terminal, wherein the download request message is used for acquiring the data packet to be updated according to the download address; responding to the downloading request message, and sending a data packet to be updated and second check-up information to the terminal, wherein the second check-up information is used for verifying whether the data packet to be updated is matched with the one or more components;
wherein, obtaining the data packet to be updated according to the version information and the first check information comprises: determining that a first version application component installation package corresponding to the version information is currently stored in the server according to the first check information; determining that a differential packet does not exist locally at the server, wherein the differential packet is used for performing incremental updates on the one or more components; and carrying out differential processing on the second version application component installation package and the first version application component installation package to obtain the differential data package, wherein the second version is higher than the first version.
2. The method of claim 1, wherein obtaining the data packet to be updated according to the version information and the first check information comprises:
determining that a first version application component installation package corresponding to the version information is currently stored in the server according to the first check information;
and acquiring the data packet to be updated from a preset storage area, wherein the data packet to be updated is obtained by the server by performing differential processing on a second version application component installation package and a first version application component installation package in advance, and the second version is higher than the first version.
3. An update packet obtaining method, comprising:
sending an update request message to a server, wherein the update request message is used for requesting the server to perform incremental update on one or more components of an application program locally installed in a terminal, the update request message carries version information and first check information of the one or more components, and the first check information is used for verifying an acquisition channel of the application program;
receiving a download address of a data packet to be updated, which is returned by the server, wherein the data packet to be updated is obtained by the server according to the version information and the first check information, and the data packet to be updated is used for performing incremental updating on the one or more components;
after receiving the download address returned by the server, the method further includes: acquiring the data packet to be updated and second check-up information from the server according to the download address, wherein the second check-up information is used for verifying whether the data packet to be updated is matched with the one or more components; determining that the data packet to be updated is adapted to the one or more components through the second check-up information; merging the data packet to be updated with the one or more components;
the server is further used for determining that the first version application component installation package corresponding to the version information is currently stored in the server according to the first verification information; determining that a differential packet does not exist locally at the server, wherein the differential packet is used for performing incremental updates on the one or more components; and carrying out differential processing on the second version application component installation package and the first version application component installation package to obtain the differential data package, wherein the second version is higher than the first version.
4. An apparatus for acquiring an update packet, comprising:
a first receiving module, configured to receive an update request message from a terminal, where the update request message is used to request a server to perform incremental update on one or more components of an application installed on the terminal, and the update request message carries version information and first verification information of the one or more components, where the first verification information is used to verify an acquisition channel of the application;
an obtaining module, configured to obtain a data packet to be updated according to the version information and the first check information, where the data packet to be updated is used to perform incremental update on the one or more components;
the first feedback module is used for returning the download address of the data packet to be updated to the terminal;
wherein the apparatus further comprises: a second receiving module, configured to receive a download request message from the terminal, where the download request message is used to obtain the data packet to be updated according to the download address; a second feedback module, configured to send, in response to the download request message, a data packet to be updated and second check information to the terminal, where the second check information is used to verify whether the data packet to be updated is adapted to the one or more components;
wherein the acquisition module comprises: a first determining unit, configured to determine, according to the first verification information, that the server currently stores a first version application component installation package corresponding to the version information; a second determining unit, configured to determine that a differential packet does not exist locally at the server, where the differential packet is used to perform incremental update on the one or more components; the first obtaining unit is configured to perform differential processing on a second version application component installation package and the first version application component installation package to obtain the differential data package, where the second version is higher than the first version.
5. The apparatus of claim 4, wherein the obtaining module comprises:
a third determining unit, configured to determine, according to the first verification information, that the server currently stores a first version application component installation package corresponding to the version information;
and the second obtaining unit is used for obtaining the data packet to be updated from a preset storage area, wherein the data packet to be updated is obtained by the server by performing differential processing on a second version application component installation package and a first version application component installation package in advance, and the second version is higher than the first version.
6. An apparatus for acquiring an update packet, comprising:
the device comprises a sending module, a receiving module and a sending module, wherein the sending module is used for sending an update request message to a server, the update request message is used for requesting the server to perform incremental update on one or more components of an application program locally installed in a terminal, the update request message carries version information and first check information of the one or more components, and the first check information is used for verifying an acquisition channel of the application program;
the receiving module is used for receiving a download address of a data packet to be updated, which is returned by the server, wherein the data packet to be updated is obtained by the server according to the version information and the first verification information, and the data packet to be updated is used for performing incremental updating on the one or more components;
wherein the apparatus further comprises: the acquisition module is used for acquiring the data packet to be updated and second check information from the server according to the download address, wherein the second check information is used for verifying whether the data packet to be updated is matched with the one or more components; a determining module, configured to determine, through the second check-up information, that the data packet to be updated is adapted to the one or more components; the processing module is used for merging the data packet to be updated and the one or more components;
the server is further used for determining that the first version application component installation package corresponding to the version information is currently stored in the server according to the first verification information; determining that a differential packet does not exist locally at the server, wherein the differential packet is used for performing incremental updates on the one or more components; and carrying out differential processing on the second version application component installation package and the first version application component installation package to obtain the differential data package, wherein the second version is higher than the first version.
7. A storage medium, characterized in that the storage medium comprises a stored program, wherein when the program runs, a device in which the storage medium is located is controlled to execute the method for acquiring an update package according to any one of claims 1 to 2 or 3.
8. A processor, characterized in that the processor is configured to execute a program, wherein the program executes the method for acquiring an update package according to any one of claims 1 to 2 or 3.
9. An update system for an application component, comprising: a terminal and a server, wherein the server is used for executing the method for acquiring the update data packet according to any one of claims 1 to 2, and the terminal is used for executing the method for acquiring the update data packet according to claim 3.
CN201711079036.3A 2017-11-06 2017-11-06 Method, device, storage medium, processor and system for acquiring update data packet Active CN108111331B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711079036.3A CN108111331B (en) 2017-11-06 2017-11-06 Method, device, storage medium, processor and system for acquiring update data packet

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711079036.3A CN108111331B (en) 2017-11-06 2017-11-06 Method, device, storage medium, processor and system for acquiring update data packet

Publications (2)

Publication Number Publication Date
CN108111331A CN108111331A (en) 2018-06-01
CN108111331B true CN108111331B (en) 2021-04-16

Family

ID=62207425

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711079036.3A Active CN108111331B (en) 2017-11-06 2017-11-06 Method, device, storage medium, processor and system for acquiring update data packet

Country Status (1)

Country Link
CN (1) CN108111331B (en)

Families Citing this family (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110737447B (en) * 2018-07-18 2023-11-14 阿里巴巴集团控股有限公司 Application updating method and device
CN109189427A (en) * 2018-08-30 2019-01-11 百度在线网络技术(北京)有限公司 Using update method, device, system and storage medium
CN109471653B (en) * 2018-09-29 2022-06-17 阿波罗智联(北京)科技有限公司 Application program updating method, electronic device, server and storage medium
CN109413186B (en) * 2018-10-31 2021-07-30 Oppo广东移动通信有限公司 Application program updating method, terminal, server and system
CN109656588A (en) * 2018-11-14 2019-04-19 中国电力科学研究院有限公司 A kind of method and system remotely fast implementing power information acquisition terminal software upgrading
CN111343217B (en) * 2018-12-18 2023-04-07 阿里巴巴集团控股有限公司 Resource data downloading method and device, terminal equipment and computer storage medium
CN109828770B (en) * 2018-12-28 2022-07-29 维沃移动通信有限公司 Software upgrading method, terminal equipment and server
CN109766127B (en) * 2019-01-16 2022-06-28 上海掌门科技有限公司 Method for updating application version information
CN110543318A (en) * 2019-08-30 2019-12-06 珠海格力电器股份有限公司 control device program updating method and device, storage medium and control device
CN110750547A (en) * 2019-10-21 2020-02-04 中国民航信息网络股份有限公司 Data acquisition method and device
CN111240767A (en) * 2020-02-04 2020-06-05 北京字节跳动网络技术有限公司 Component and page loading method and device, electronic equipment and storage medium
CN111478808B (en) * 2020-04-02 2021-05-25 清华大学 Method, system, electronic device and storage medium for assisting configuration update verification
CN112000347B (en) * 2020-07-27 2022-08-30 新华三大数据技术有限公司 Distributed file system and component version updating method thereof
CN112291600B (en) * 2020-10-26 2023-04-18 Vidaa(荷兰)国际控股有限公司 Caching method and display device
CN112860797A (en) * 2021-02-10 2021-05-28 上海商汤智能科技有限公司 Database synchronization method and device, storage medium and equipment
CN113238777B (en) * 2021-05-20 2023-08-22 网易(杭州)网络有限公司 Application program updating method, device, equipment and storage medium
CN113467801B (en) * 2021-06-11 2024-02-23 浪潮电子信息产业股份有限公司 BMC firmware application updating method, BMC, system and storage medium
CN113434211B (en) * 2021-06-24 2023-02-07 平安国际智慧城市科技股份有限公司 Application program function dynamic configuration method, device, equipment and storage medium
CN113377412B (en) * 2021-08-13 2022-01-11 武汉众智数字技术有限公司 Method and system for incremental updating of client software
CN114938365A (en) * 2022-03-18 2022-08-23 青岛海尔科技有限公司 Method and device for updating functional module, storage medium and electronic device
CN114900424A (en) * 2022-05-27 2022-08-12 网易(杭州)网络有限公司 Data hot-repair method and device, electronic equipment and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103200219A (en) * 2013-02-05 2013-07-10 北京小米科技有限责任公司 Data package updating method, device, terminal equipment and server

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104657170A (en) * 2013-11-25 2015-05-27 腾讯科技(上海)有限公司 Data updating method, device and system
US9892210B2 (en) * 2014-10-31 2018-02-13 Microsoft Technology Licensing, Llc Partial graph incremental update in a social network
CN105487905A (en) * 2015-11-27 2016-04-13 东软集团股份有限公司 Updating method and device of hybrid application

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103200219A (en) * 2013-02-05 2013-07-10 北京小米科技有限责任公司 Data package updating method, device, terminal equipment and server

Also Published As

Publication number Publication date
CN108111331A (en) 2018-06-01

Similar Documents

Publication Publication Date Title
CN108111331B (en) Method, device, storage medium, processor and system for acquiring update data packet
CN104346167B (en) The method and device of channel bag is applied in generation
CN101110788B (en) Method and system for updating client software
CN110058873B (en) Application page updating method, device, equipment and storage medium
CN104079673B (en) A kind of methods, devices and systems for preventing DNS from kidnapping in application downloading
CN109787774B (en) Upgrade downloading method and device based on digital signature verification, server and terminal
US20150100955A1 (en) Method and System for Updating Software
CN105786538B (en) software upgrading method and device based on android system
CN109495433B (en) Data downloading method and device, storage medium and electronic device
CN105653262A (en) Application program upgrade method, device and system
CN104573435A (en) Method for terminal authority management and terminal
CN104219198B (en) A kind of tamper resistant method of WebApp
CN102982258A (en) System for conducting original-edition check to mobile application program
CN103476002A (en) Method and device for data interaction
KR101674975B1 (en) System upgrade method, apparatus, device, program, and recording medium
CN109725952B (en) Method, system and related device for application program plug-in
CN102833350A (en) Processing method and processing device of WebApp updating
CN107294924B (en) Vulnerability detection method, device and system
CN104216719A (en) Method and device for updating android system
CN102612023A (en) Mobile terminal and application updating method and server thereof
CN105279436A (en) Software updating method and system
CN102137154A (en) Method and device for upgrading customer premise equipment (CPE)
CN110543324A (en) Plug-in increment updating method and device for application program
US10922064B2 (en) Method, device and user terminal for software installation
CN113961226B (en) Software development kit repairing method, terminal, server and equipment

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
GR01 Patent grant
GR01 Patent grant