CN110231947A - A kind of update of plug-in method, equipment, server and the storage medium of application program - Google Patents

A kind of update of plug-in method, equipment, server and the storage medium of application program Download PDF

Info

Publication number
CN110231947A
CN110231947A CN201910423150.6A CN201910423150A CN110231947A CN 110231947 A CN110231947 A CN 110231947A CN 201910423150 A CN201910423150 A CN 201910423150A CN 110231947 A CN110231947 A CN 110231947A
Authority
CN
China
Prior art keywords
file
character string
plug
update
difference
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
CN201910423150.6A
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.)
OneConnect Smart Technology Co Ltd
Original Assignee
OneConnect Smart 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 OneConnect Smart Technology Co Ltd filed Critical OneConnect Smart Technology Co Ltd
Priority to CN201910423150.6A priority Critical patent/CN110231947A/en
Publication of CN110231947A publication Critical patent/CN110231947A/en
Priority to PCT/CN2019/120602 priority patent/WO2020233045A1/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • 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
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses update of plug-in method, equipment, server and the storage mediums of a kind of application program, this method comprises: receiving the update of plug-in request of destination application transmission, the update of plug-in request includes the current version information and update version information of plug-in unit installation kit;Deconsolidation process is carried out according to the installation kit of the current version acquisition of information current version, and to the installation kit of the current version, to obtain the first file;The installation kit of more new version is obtained according to the update version information, and deconsolidation process is carried out to the installation kit of the more new version, to obtain the second file;Character string all in first file and character string all in second file are compared, determine the difference character string of first file Yu second file, and according to the difference text string generation difference packet;The plug-in unit of the current version is updated according to the difference packet, to improve the efficiency and resource utilization of application plug update.

Description

A kind of update of plug-in method, equipment, server and the storage medium of application program
Technical field
The present invention relates to technical field of data processing more particularly to a kind of update of plug-in method of application program, equipment, clothes Business device and storage medium.
Background technique
As the function of application program (APPlication, APP) in mobile device needs more and more, each function mould Block plug-in unitization also becomes more and more popular, in APP plug-in unit scheme, it may be desirable to which main works download plug-in installation kit is simultaneously installed.Due to Plug-in unit installation kit has version iteration and upgrading, if needing by common full dose download plug-in installation kit and in the way of replacing The plug-in unit installation kit of downloading can be bigger, expend that flow, resource utilization are low, and renewal speed is slow, poor user experience.Therefore, The efficiency and resource utilization that how to improve update of plug-in become the emphasis of research.
Summary of the invention
The embodiment of the invention provides update of plug-in method, equipment, server and the storage mediums of a kind of application program, can Improve the efficiency and resource utilization of update of plug-in.
In a first aspect, the embodiment of the invention provides a kind of update of plug-in methods of application program, this method comprises:
The update of plug-in request that destination application is sent is received, the update of plug-in request includes working as plug-in unit installation kit Preceding version information and update version information;
It is carried out according to the installation kit of the current version acquisition of information current version, and to the installation kit of the current version Deconsolidation process, to obtain the first file;
The installation kit of more new version is obtained according to the update version information, and the installation kit of the more new version is carried out Deconsolidation process, to obtain the second file;
Character string all in first file and character string all in second file are compared, determined The difference character string of first file and second file, and according to the difference text string generation difference packet;
The plug-in unit of the current version is updated according to the difference packet.
Further, described by character string all in character string all in first file and second file It compares, determines the difference character string of first file Yu second file, and according to the difference text string generation Difference packet, comprising:
Character string all in first file and character string all in second file are compared, detected It whether there is and different first character string in first file in second file;
If detect in second file exist with different first character string in first file, to institute The first character string addition first position mark is stated, and determines that first character string is the difference character string;
Difference packet is generated according to first character string and first position mark.
It is further, described that the plug-in unit of the current version is updated according to the difference packet, comprising:
Decompression processing is carried out to the difference packet, obtains the first character string for carrying first position mark;
According to the first position identify will in first character string replacement, first file with the first position The character string for identifying corresponding position, is updated with the plug-in unit to the current version.
Further, described by character string all in character string all in first file and second file It compares, determines the difference character string of first file Yu second file, and according to the difference text string generation Difference packet, comprising:
Character string all in first file and character string all in second file are compared, detected With the presence or absence of the second character string not having in first file in second file;
If detecting that there are the second character strings not having in first file in second file, to described Two character strings add second position mark, and determine that second character string is the difference character string;
The difference packet is generated according to second character string and second position mark.
It is further, described that the plug-in unit of the current version is updated according to the difference packet, comprising:
Decompression processing is carried out to the difference packet, obtains the second character string for carrying second position mark;
It is identified according to the second position and is added to second character string in first file and the second The corresponding position of mark is set, is updated with the plug-in unit to the current version.
Further, described by character string all in character string all in first file and second file It compares, determines the difference character string of first file Yu second file, and according to the difference text string generation Difference packet, comprising:
Character string all in first file and character string all in second file are compared, detected With the presence or absence of the third character string not having in second file in first file;
If detecting that there are the third character strings not having in second file in first file, to described Three character strings add the third place mark, and determine that the third character string is the difference character string;
The difference packet is generated according to the third character string and the third place mark.
It is further, described that the plug-in unit of the current version is updated according to the difference packet, comprising:
Decompression processing is carried out to the difference packet, obtains the third character string for carrying the third place mark;
The third of corresponding position will be identified in first file with the third place according to the third place mark Character string is deleted, and is updated with the plug-in unit to the current version.
Second aspect, the embodiment of the invention provides a kind of update of plug-in equipment of application program, which is inserted Part more new equipment includes the unit of the update of plug-in method for executing the application program of above-mentioned first aspect.
The third aspect, the embodiment of the invention provides a kind of server, including processor, input equipment, output equipment and Memory, the processor, input equipment, output equipment and memory are connected with each other, wherein the memory is for storing branch The update of plug-in equipment for holding application program executes the computer program of the above method, and the computer program includes program instruction, The processor is configured for calling described program instruction, the method for executing above-mentioned first aspect.
Fourth aspect, the embodiment of the invention provides a kind of computer readable storage medium, the computer-readable storage Media storage has computer program, and the computer program includes program instruction, and described program instructs when being executed by a processor The method for making the processor execute above-mentioned first aspect.
In the embodiment of the present invention, the update of plug-in equipment of application program can receive the plug-in unit of destination application transmission more New request, the update of plug-in request include the current version information of plug-in unit installation kit and update version information, and according to described The installation kit of current version acquisition of information current version, and deconsolidation process is carried out to the installation kit of the current version, to obtain First file, and obtain according to the update version information installation kit of more new version, and the installation to the more new version Packet carries out deconsolidation process, to obtain the second file.By will in character string all in the first file and the second file it is all Character string compares, and determines the difference character string of the first file and the second file, and poor according to the difference text string generation Subpackage, to be updated according to the difference packet to the plug-in unit of the current version, to improve update of plug-in efficiency and resource Utilization rate.
Detailed description of the invention
Technical solution in order to illustrate the embodiments of the present invention more clearly, below will be to needed in embodiment description Attached drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the invention, general for this field For logical technical staff, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of schematic flow diagram of the update of plug-in method of application program provided in an embodiment of the present invention;
Fig. 2 is the schematic flow diagram of the update of plug-in method of another application program provided in an embodiment of the present invention;
Fig. 3 is a kind of schematic block diagram of the update of plug-in equipment of application program provided in an embodiment of the present invention;
Fig. 4 is a kind of schematic block diagram of server provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
The update of plug-in method of application program provided in an embodiment of the present invention can be by a kind of update of plug-in of application program Equipment executes, wherein the update of plug-in equipment of the application program can be set on the server, and the server may include The terminal devices such as mobile phone, computer, plate, smartwatch.In one embodiment, the update of plug-in equipment of the application program can It is communicated to connect with being established with intelligent terminal, to carry out two-way communication.In certain embodiments, the update of plug-in of the application program Equipment may be mounted on the intelligent terminal, and in certain embodiments, the update of plug-in equipment of the application program can be Spatially independently of the intelligent terminal, in certain embodiments, the update of plug-in equipment of the application program can be described The component of terminal, i.e., the described terminal include the update of plug-in equipment of application program.In certain embodiments, the intelligent terminal can To include: the terminal devices such as mobile phone, computer, plate, smartwatch.
In the embodiment of the present invention, the update of plug-in equipment of application program can receive the plug-in unit of destination application transmission more Newly request, the update of plug-in request include the current version information and update version information of plug-in unit installation kit.It is described to apply journey The update of plug-in equipment of sequence, can be according to the plug-in unit more after receiving the update of plug-in request of destination application transmission The installation kit of the current version acquisition of information current version of the plug-in unit installation kit carried in new request, and to the current version Installation kit carries out deconsolidation process, to obtain the first file.The update of plug-in equipment of the application program can be according to the plug-in unit The installation kit for updating version information and obtaining more new version of the plug-in unit installation kit carried in request is updated, and to the more new version Installation kit carry out deconsolidation process, to obtain the second file.The update of plug-in equipment of the application program can be by described first All character strings are compared with character string all in second file in file, determine first file with it is described The difference character string of second file, and according to the difference text string generation difference packet, thus according to the difference packet to described The plug-in unit of current version is updated.The update of plug-in method of the application program of the embodiment of the present invention is carried out with reference to the accompanying drawing It schematically illustrates.
Referring to Figure 1, Fig. 1 is a kind of exemplary flow of the update of plug-in method of application program provided in an embodiment of the present invention Figure, as shown in Figure 1, this method can be executed by the update of plug-in equipment of application program, the update of plug-in of the application program is set Standby specific explanations are as previously mentioned, details are not described herein again.Specifically, described method includes following steps for the embodiment of the present invention.
S101: the update of plug-in request that destination application is sent is received, the update of plug-in request includes that plug-in unit is installed The current version information and update version information of packet.
In the embodiment of the present invention, the update of plug-in equipment of application program can receive the plug-in unit of destination application transmission more Newly request, the update of plug-in request include the current version information and update version information of plug-in unit installation kit.In certain implementations In example, the destination application can be any one application program on intelligent terminal, and the destination application can be with It is shown in the user interface of intelligent terminal, the explanation of the intelligent terminal is as previously described.
In certain embodiments, the current version information may include current version identifications (such as current version number);Institute Stating update version information may include updating version identifier (such as more new version number).For example, it is assumed that the plug-in unit installation kit is peace Tall and erect plug-in unit apk, then the available version identifier to current version of the update of plug-in equipment of the application program is 1.0.0 editions This, the version identifier of more new version is 1.1.0 version.
S102: according to the installation kit of the current version acquisition of information current version, and the installation to the current version Packet carries out deconsolidation process, to obtain the first file.
In the embodiment of the present invention, the update of plug-in equipment of application program can be current according to the current version acquisition of information The installation kit of version, and deconsolidation process is carried out to the installation kit of the current version, to obtain the first file.In some embodiments In, first file includes all character strings of the installation kit of the current version.
In one embodiment, the update of plug-in equipment of the application program can be determined according to the current version information Current version number, and work as according to the installation kit of the current version number acquisition current version, and according to preset rules to described The installation kit of preceding version carries out deconsolidation process, to obtain the first file.
S103: the installation kit of more new version, and the installation to the more new version are obtained according to the update version information Packet carries out deconsolidation process, to obtain the second file.
In the embodiment of the present invention, the update of plug-in equipment of application program can be obtained according to the update version information to be updated The installation kit of version, and deconsolidation process is carried out to the installation kit of the more new version, to obtain the second file.In some embodiments In, second file includes all character strings of the installation kit of the more new version.
In one embodiment, the update of plug-in equipment of the application program can be determined according to the update version information More new version number, and according to the more new version number obtain more new version installation kit, and according to preset rules to it is described more The installation kit of new version carries out deconsolidation process, to obtain the second file.
S104: character string all in character string all in first file and second file is carried out pair Than determining the difference character string of first file Yu second file, and according to the difference text string generation difference packet.
In the embodiment of the present invention, the update of plug-in equipment of application program can be by character string all in first file It is compared with character string all in second file, determines the difference character of first file Yu second file String, and according to the difference text string generation difference packet.
In one embodiment, the update of plug-in equipment of the application program can be by word all in first file Symbol string is compared with character string all in second file, and detecting in second file whether there is and described first Different first character string in file.If detect in second file exist with it is different in first file First character string can then add first position mark to first character string, and determine that first character string is described Difference character string, to generate difference packet according to first character string and first position mark.
For example, it is assumed that the plug-in unit installation kit is the apk of Android, if detecting the second of the apk of the more new version Exist in file and different first character string a in the first file of the apk of the current version, the then plug-in unit of application program More new equipment can add first position mark 1 to the first character string a, and determine that the first character string a is the difference Different character string, to generate difference packet according to the first character string a and first position mark 1.
It gets the first character string concentration and concentrates the second no character string there are second character string, and obtain It gets the second character string concentration and concentrates no third character string there are first character string, then it can be to described first Character string point of addition mark 1, to the second character string point of addition mark 2, to third character string point of addition mark 3.
In one embodiment, the update of plug-in equipment of the application program can be by word all in first file Symbol string is compared with character string all in second file, is detected in second file with the presence or absence of first text The second character string not having in part.If detecting that there are the second characters not having in first file in second file String can then add second position mark to second character string, and determine that second character string is the difference character String, to generate the difference packet according to second character string and second position mark.
For example, it is assumed that the plug-in unit installation kit is the apk of Android, if detecting the second of the apk of the more new version There are the second character string b not having in the first file of the apk of the current version in file, then the update of plug-in of application program Equipment can add second position mark 2 to the second character string b, and determine that the second character string b is the difference word Symbol string, to generate difference packet according to the second character string b and second position mark 2.
In one embodiment, the update of plug-in equipment of the application program can be by word all in first file Symbol string is compared with character string all in second file, is detected in first file with the presence or absence of second text The third character string not having in part.If detecting that there are the third characters not having in second file in first file String can then add the third place mark to the third character string, and determine that the third character string is the difference character String, to generate the difference packet according to the third character string and the third place mark.
For example, it is assumed that the plug-in unit installation kit is the apk of Android, if detecting the first of the apk of the current version The third character string c not having in the second file that there is the apk of the more new version in file, the then update of plug-in of application program Equipment can add the third place mark 3 to the third character string c, and determine that the third character string c is the difference word Symbol string, to generate difference packet according to the third character string c and the third place mark 3.
In one embodiment, the update of plug-in equipment of the application program is by character all in first file When string is compared with character string all in second file, if detecting first character string, second word Symbol string and the third character string, then the update of plug-in equipment of the application program can add the to first character string One station location marker identifies the second character string addition second position, to third character string addition the third place mark.
S105: the plug-in unit of the current version is updated according to the difference packet.
In the embodiment of the present invention, the update of plug-in equipment of application program can be according to the difference packet to the current version Plug-in unit be updated.
In one embodiment, the update of plug-in equipment of the application program can carry out at decompression the difference packet Reason, if decompression obtains carrying the first character string of first position mark, can be identified according to the first position will be described First character string replaces the character string in first file with first position mark corresponding position, to the current version This plug-in unit is updated.
For example, it is assumed that the update of plug-in equipment of application program carries out decompression processing to the difference packet, carrying first is obtained First character string a of station location marker 1, if identifying the character string of 1 corresponding position in first file with the first position For d, then the update of plug-in equipment of the application program can by the first file of the current version with the first position The character string d for identifying 1 corresponding position replaces with the first character string a, to realize that the plug-in unit to the current version carries out more Newly.
In one embodiment, the update of plug-in equipment of the application program can carry out at decompression the difference packet Reason, if decompression obtains carrying the second character string of second position mark, can be identified according to the second position will be described Second character string is added to position corresponding with second position mark in first file, to the current version Plug-in unit is updated.
For example, it is assumed that the update of plug-in equipment of application program carries out decompression processing to the difference packet, carrying second is obtained Second character string b of station location marker 2, if the second position described in first file identifies 2 corresponding positions and do not have character String, then the update of plug-in equipment of the application program can be marked in the first file of the current version with the second position Know and add the second character string b at 2 corresponding positions, the plug-in unit of the current version is updated with realizing.
In one embodiment, the update of plug-in equipment of the application program can carry out at decompression the difference packet Reason, if decompression obtains carrying the third character string of the third place mark, can be identified according to the third place will be described In first file with the third place mark corresponding position third character string delete, with the plug-in unit to the current version into Row updates.
For example, it is assumed that the update of plug-in equipment of application program carries out decompression processing to the difference packet, obtain carrying third The third character string c of station location marker 3, if identifying 3 corresponding positions in the third place in second file does not have word Symbol string, then the update of plug-in equipment of the application program can the third place mark described in the first file by the current version The third character string c for knowing 3 corresponding positions is deleted, and is updated with realizing to the plug-in unit of the current version.
In one embodiment, the update of plug-in equipment of the application program can carry out at decompression the difference packet Reason, if decompression obtain carry first position mark the first character string, carry the second position mark the second character string and The third character string of the third place mark is carried, then can be identified according to the first position and first character string is replaced into institute State the character string in the first file with first position mark corresponding position, and according to second position mark by described the Two character strings are added to position corresponding with second position mark in first file, and according to the third place Mark deletes the third character string in first file with the third place mark corresponding position, to the current version This plug-in unit is updated.
For example, it is assumed that the update of plug-in equipment of application program carries out decompression processing to the difference packet, carrying first is obtained First character string a of station location marker 1, the second character string b for carrying second position mark 2 and carry the of the third place mark 3 Three character string c, if the character string for identifying 1 corresponding position in first file with the first position is d, first text The second position described in part, which identifies 2 corresponding positions, does not have a character string, identifies 3 pairs in the third place in second file Answering does not have character string at position, then the update of plug-in equipment of the application program can will be in the first file of the current version The character string d for identifying 1 corresponding position with the first position replaces with the first character string a, the of the current version Identify addition the second character string b at 2 corresponding positions in one file with the second position, and by the current version The first file described in the third place identify 3 corresponding positions the third character string c delete, thus realize to current version This plug-in unit is updated.
In the embodiment of the present invention, the update of plug-in equipment of application program can receive the plug-in unit of destination application transmission more Newly request, the update of plug-in request include the current version information and update version information of plug-in unit installation kit.Application program Update of plug-in equipment can installation according to the installation kit of the current version acquisition of information current version, to the current version Packet carries out deconsolidation process, to obtain the first file;And the installation kit of more new version is obtained according to the update version information, and Deconsolidation process is carried out to the installation kit of the more new version, to obtain the second file.The update of plug-in equipment of application program can be with Character string all in first file and character string all in second file are compared, and according to described The difference text string generation difference packet of one file and second file, thus according to the difference packet to the current version Plug-in unit is updated.Update of plug-in efficiency and resource utilization can be improved by this embodiment.
Fig. 2 is referred to, Fig. 2 is the signal stream of the update of plug-in method of another application program provided in an embodiment of the present invention Cheng Tu, as shown in Fig. 2, this method can be executed by the update of plug-in equipment of application program, the update of plug-in of the application program is set Standby specific explanations are as previously mentioned, details are not described herein again.The difference of the embodiment of the present invention and embodiment described in above-mentioned Fig. 1 is, The embodiment of the present invention is schematically illustrated to an implementation process of the update of plug-in method of the application program.Specifically Ground, described method includes following steps for the embodiment of the present invention.
S201: the update of plug-in request that destination application is sent is received, the update of plug-in request includes that plug-in unit is installed The current version information and update version information of packet.
In the embodiment of the present invention, the update of plug-in equipment of application program can receive the plug-in unit of destination application transmission more Newly request, the update of plug-in request include the current version information and update version information of plug-in unit installation kit, specific embodiment As previously mentioned, details are not described herein again.
S202: according to the installation kit of the current version acquisition of information current version, and the installation to the current version Packet carries out deconsolidation process, to obtain the first file.
In the embodiment of the present invention, the update of plug-in equipment of application program can be current according to the current version acquisition of information The installation kit of version, and deconsolidation process is carried out to the installation kit of the current version, to obtain the first file, specific implementation is for example Preceding described, details are not described herein again.
S203: the installation kit of more new version, and the installation to the more new version are obtained according to the update version information Packet carries out deconsolidation process, to obtain the second file.
In the embodiment of the present invention, the update of plug-in equipment of application program can be obtained according to the update version information to be updated The installation kit of version, and deconsolidation process is carried out to the installation kit of the more new version, to obtain the second file, specific implementation is for example Preceding described, details are not described herein again.
S204: character string all in character string all in first file and second file is carried out pair Than detecting in second file whether there is and different first character string in first file.
In the embodiment of the present invention, the update of plug-in equipment of application program can be by character string all in first file It is compared with character string all in second file, detecting in second file whether there is and first file In different first character string.
S205: if detect in second file exist with different first character string in first file, Then to first character string addition first position mark, and determine that first character string is the difference character string, and Difference packet is generated according to first character string and first position mark.
In the embodiment of the present invention, exist and institute if the update of plug-in equipment of application program detects in second file Different first character string in the first file is stated, then can add first position mark to first character string, and determine First character string is the difference character string, and poor according to first character string and first position mark generation Subpackage.
S206: the plug-in unit of the current version is updated according to the difference packet.
In the embodiment of the present invention, the update of plug-in equipment of application program can be according to the difference packet to the current version Plug-in unit be updated.
In the embodiment of the present invention, the update of plug-in equipment of application program can receive the plug-in unit of destination application transmission more Newly request, the update of plug-in request include the current version information and update version information of plug-in unit installation kit.Application program Update of plug-in equipment can installation according to the installation kit of the current version acquisition of information current version, to the current version Packet carries out deconsolidation process, to obtain the first file;And the installation kit of more new version is obtained according to the update version information, and Deconsolidation process is carried out to the installation kit of the more new version, to obtain the second file.The update of plug-in equipment of application program can be with Character string all in first file and character string all in second file are compared, and according to described The difference text string generation difference packet of one file and second file, thus according to the difference packet to the current version Plug-in unit is updated.Update of plug-in efficiency and resource utilization can be improved by this embodiment.
The embodiment of the invention also provides a kind of update of plug-in equipment of application program, the update of plug-in of the application program is set It is ready for use on the unit for executing aforementioned described in any item methods.It specifically, is provided in an embodiment of the present invention one referring to Fig. 3, Fig. 3 The schematic block diagram of the update of plug-in equipment of kind application program.The update of plug-in equipment of the application program of the present embodiment includes: to receive Unit 301, first processing units 302, the second processing unit 303, determination unit 304 and updating unit 305.
Receiving unit 301, for receiving the update of plug-in request of destination application transmission, the update of plug-in request packet It includes the current version information of plug-in unit installation kit and updates version information;
First processing units 302, for the installation kit according to the current version acquisition of information current version, and to described The installation kit of current version carries out deconsolidation process, to obtain the first file;
The second processing unit 303, for obtaining the installation kit of more new version according to the update version information, and to described The installation kit of more new version carries out deconsolidation process, to obtain the second file;
Determination unit 304, for by word all in character string all in first file and second file Symbol string compares, and determines the difference character string of first file Yu second file, and according to the difference character string Generate difference packet;
Updating unit 305, for being updated according to the difference packet to the plug-in unit of the current version.
Further, the determination unit 304 will be in character string all in first file and second file All character strings compare, and determine the difference character string of first file Yu second file, and according to the difference When different text string generation difference packet, it is specifically used for:
Character string all in first file and character string all in second file are compared, detected It whether there is and different first character string in first file in second file;
If detect in second file exist with different first character string in first file, to institute The first character string addition first position mark is stated, and determines that first character string is the difference character string;
Difference packet is generated according to first character string and first position mark.
Further, when the updating unit 305 is updated the plug-in unit of the current version according to the difference packet, It is specifically used for:
Decompression processing is carried out to the difference packet, obtains the first character string for carrying first position mark;
According to the first position identify will in first character string replacement, first file with the first position The character string for identifying corresponding position, is updated with the plug-in unit to the current version.
Further, the determination unit 304 will be in character string all in first file and second file All character strings compare, and determine the difference character string of first file Yu second file, and according to the difference When different text string generation difference packet, it is specifically used for:
Character string all in first file and character string all in second file are compared, detected With the presence or absence of the second character string not having in first file in second file;
If detecting that there are the second character strings not having in first file in second file, to described Two character strings add second position mark, and determine that second character string is the difference character string;
The difference packet is generated according to second character string and second position mark.
Further, when the updating unit 305 is updated the plug-in unit of the current version according to the difference packet, It is specifically used for:
Decompression processing is carried out to the difference packet, obtains the second character string for carrying second position mark;
It is identified according to the second position and is added to second character string in first file and the second The corresponding position of mark is set, is updated with the plug-in unit to the current version.
Further, the determination unit 304 will be in character string all in first file and second file All character strings compare, and determine the difference character string of first file Yu second file, and according to the difference When different text string generation difference packet, it is specifically used for:
Character string all in first file and character string all in second file are compared, detected With the presence or absence of the third character string not having in second file in first file;
If detecting that there are the third character strings not having in second file in first file, to described Three character strings add the third place mark, and determine that the third character string is the difference character string;
The difference packet is generated according to the third character string and the third place mark.
Further, when the updating unit 305 is updated the plug-in unit of the current version according to the difference packet, It is specifically used for:
Decompression processing is carried out to the difference packet, obtains the third character string for carrying the third place mark;
The third of corresponding position will be identified in first file with the third place according to the third place mark Character string is deleted, and is updated with the plug-in unit to the current version.
In the embodiment of the present invention, the update of plug-in equipment of application program can receive the plug-in unit of destination application transmission more Newly request, the update of plug-in request include the current version information and update version information of plug-in unit installation kit.Application program Update of plug-in equipment can installation according to the installation kit of the current version acquisition of information current version, to the current version Packet carries out deconsolidation process, to obtain the first file;And the installation kit of more new version is obtained according to the update version information, and Deconsolidation process is carried out to the installation kit of the more new version, to obtain the second file.The update of plug-in equipment of application program can be with Character string all in first file and character string all in second file are compared, and according to described The difference text string generation difference packet of one file and second file, thus according to the difference packet to the current version Plug-in unit is updated.Update of plug-in efficiency and resource utilization can be improved by this embodiment.
Referring to fig. 4, Fig. 4 is a kind of schematic block diagram of server provided in an embodiment of the present invention.This implementation as shown in the figure Server in example may include: one or more processors 401;One or more input equipments 402, one or more output Equipment 403 and memory 404.Above-mentioned processor 401, input equipment 402, output equipment 403 and memory 404 pass through bus 405 connections.Memory 404 is for storing computer program, and the computer program includes program instruction, and processor 401 is used for Execute the program instruction that memory 404 stores.Wherein, processor 401 is configured for calling described program instruction execution:
The update of plug-in request that destination application is sent is received, the update of plug-in request includes working as plug-in unit installation kit Preceding version information and update version information;
It is carried out according to the installation kit of the current version acquisition of information current version, and to the installation kit of the current version Deconsolidation process, to obtain the first file;
The installation kit of more new version is obtained according to the update version information, and the installation kit of the more new version is carried out Deconsolidation process, to obtain the second file;
Character string all in first file and character string all in second file are compared, determined The difference character string of first file and second file, and according to the difference text string generation difference packet;
The plug-in unit of the current version is updated according to the difference packet.
Further, the processor 401 is by institute in character string all in first file and second file Some character strings compare, and determine the difference character string of first file Yu second file, and according to the difference When text string generation difference packet, it is specifically used for:
Character string all in first file and character string all in second file are compared, detected It whether there is and different first character string in first file in second file;
If detect in second file exist with different first character string in first file, to institute The first character string addition first position mark is stated, and determines that first character string is the difference character string;
Difference packet is generated according to first character string and first position mark.
Further, when the processor 401 is updated the plug-in unit of the current version according to the difference packet, tool Body is used for:
Decompression processing is carried out to the difference packet, obtains the first character string for carrying first position mark;
According to the first position identify will in first character string replacement, first file with the first position The character string for identifying corresponding position, is updated with the plug-in unit to the current version.
Further, the processor 401 is by institute in character string all in first file and second file Some character strings compare, and determine the difference character string of first file Yu second file, and according to the difference When text string generation difference packet, it is specifically used for:
Character string all in first file and character string all in second file are compared, detected With the presence or absence of the second character string not having in first file in second file;
If detecting that there are the second character strings not having in first file in second file, to described Two character strings add second position mark, and determine that second character string is the difference character string;
The difference packet is generated according to second character string and second position mark.
Further, when the processor 401 is updated the plug-in unit of the current version according to the difference packet, tool Body is used for:
Decompression processing is carried out to the difference packet, obtains the second character string for carrying second position mark;
It is identified according to the second position and is added to second character string in first file and the second The corresponding position of mark is set, is updated with the plug-in unit to the current version.
Further, the processor 401 is by institute in character string all in first file and second file Some character strings compare, and determine the difference character string of first file Yu second file, and according to the difference When text string generation difference packet, it is specifically used for:
Character string all in first file and character string all in second file are compared, detected With the presence or absence of the third character string not having in second file in first file;
If detecting that there are the third character strings not having in second file in first file, to described Three character strings add the third place mark, and determine that the third character string is the difference character string;
The difference packet is generated according to the third character string and the third place mark.
Further, when the processor 401 is updated the plug-in unit of the current version according to the difference packet, tool Body is used for:
Decompression processing is carried out to the difference packet, obtains the third character string for carrying the third place mark;
The third of corresponding position will be identified in first file with the third place according to the third place mark Character string is deleted, and is updated with the plug-in unit to the current version.
In the embodiment of the present invention, server can receive the update of plug-in request of destination application transmission, the plug-in unit The current version information and update version information that request includes plug-in unit installation kit are updated, is worked as according to the current version acquisition of information The installation kit of preceding version carries out deconsolidation process to the installation kit of the current version, to obtain the first file;And according to described The installation kit that version information obtains more new version is updated, and deconsolidation process is carried out to the installation kit of the more new version, to obtain Second file.The server can be by character all in character string all in first file and second file String compares, and according to the difference text string generation difference packet of first file and second file, thus according to institute Difference packet is stated to be updated the plug-in unit of the current version.Update of plug-in efficiency and money can be improved by this embodiment Source utilization rate.
It should be appreciated that in embodiments of the present invention, alleged processor 401 can be central processing unit (CenSral Processing UniS, CPU), which can also be other general processors, digital signal processor (DigiSal Signal Processor, DSP), specific integrated circuit (ApplicaSion Specific InSegraSed CircuiS, ASIC), ready-made programmable gate array (Field-Programmable GaSe Array, FPGA) or other programmable logic Device, discrete gate or transistor logic, discrete hardware components etc..General processor can be microprocessor or this at Reason device is also possible to any conventional processor etc..
Input equipment 402 may include Trackpad, microphone etc., output equipment 403 may include display (LCD etc.), Loudspeaker etc..
The memory 404 may include read-only memory and random access memory, and to processor 401 provide instruction and Data.The a part of of memory 404 can also include nonvolatile RAM.For example, memory 404 can also be deposited Store up the information of device type.
In the specific implementation, processor 401 described in the embodiment of the present invention, input equipment 402, output equipment 403 can It executes and is retouched in embodiment of the method described in Fig. 1 or Fig. 2 of the update of plug-in method of application program provided in an embodiment of the present invention The implementation of the update of plug-in equipment of application program described in Fig. 3 of the embodiment of the present invention also can be performed in the implementation stated, Details are not described herein.
A kind of computer readable storage medium is additionally provided in the embodiment of the present invention, the computer readable storage medium is deposited Computer program is contained, the computer program is realized when being executed by processor answers described in embodiment corresponding to Fig. 1 or Fig. 2 With the update of plug-in method of program, the update of plug-in equipment of the application program of embodiment corresponding to Fig. 3 of the present invention can also be realized, This is repeated no more.
The update of plug-in that the computer readable storage medium can be application program described in aforementioned any embodiment is set Standby internal storage unit, for example, application program update of plug-in equipment hard disk or memory.The computer-readable storage medium Matter is also possible to the External memory equipment of the update of plug-in equipment of the application program, such as the update of plug-in of the application program The plug-in type hard disk being equipped in equipment, intelligent memory card (SmarS Media Card, SMC), secure digital (Secure DigiSal, SD) card, flash card (Flash Card) etc..Further, the computer readable storage medium can also be wrapped both The internal storage unit for including the update of plug-in equipment of the application program also includes External memory equipment.It is described computer-readable to deposit Storage media is for storing other program sum numbers needed for the update of plug-in equipment of the computer program and the application program According to.The computer readable storage medium can be also used for temporarily storing the data that has exported or will export.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware With the interchangeability of software, each exemplary composition and step are generally described according to function in the above description.This A little functions are implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Specially Industry technical staff can use different methods to achieve the described function each specific application, but this realization is not It is considered as beyond the scope of this invention.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the present invention Portion or part steps.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can store journey The medium of sequence code.
The above, some embodiments only of the invention, but scope of protection of the present invention is not limited thereto, and it is any Those familiar with the art in the technical scope disclosed by the present invention, can readily occur in various equivalent modifications or replace It changes, these modifications or substitutions should be covered by the protection scope of the present invention.

Claims (10)

1. a kind of update of plug-in method of application program characterized by comprising
The update of plug-in request that destination application is sent is received, the update of plug-in request includes the current version of plug-in unit installation kit This information and update version information;
It is split according to the installation kit of the current version acquisition of information current version, and to the installation kit of the current version Processing, to obtain the first file;
The installation kit of more new version is obtained according to the update version information, and the installation kit of the more new version is split Processing, to obtain the second file;
Character string all in first file and character string all in second file are compared, described in determination The difference character string of first file and second file, and according to the difference text string generation difference packet;
The plug-in unit of the current version is updated according to the difference packet.
2. the method according to claim 1, wherein described by character string all in first file and institute It states character string all in the second file to compare, determines the difference character string of first file Yu second file, And according to the difference text string generation difference packet, comprising:
Character string all in first file and character string all in second file are compared, described in detection It whether there is and different first character string in first file in second file;
If detect in second file exist with different first character string in first file, to described the One character string adds first position mark, and determines that first character string is the difference character string;
Difference packet is generated according to first character string and first position mark.
3. according to the method described in claim 2, it is characterized in that, described insert the current version according to the difference packet Part is updated, comprising:
Decompression processing is carried out to the difference packet, obtains the first character string for carrying first position mark;
First character string is replaced in first file according to first position mark and is identified with the first position The character string of corresponding position is updated with the plug-in unit to the current version.
4. method according to claim 1-3, which is characterized in that described by word all in first file Symbol string is compared with character string all in second file, determines the difference of first file Yu second file Character string, and according to the difference text string generation difference packet, comprising:
Character string all in first file and character string all in second file are compared, described in detection With the presence or absence of the second character string not having in first file in second file;
If detecting that there are the second character strings not having in first file in second file, to second word Symbol string addition second position mark, and determine that second character string is the difference character string;
The difference packet is generated according to second character string and second position mark.
5. according to the method described in claim 4, it is characterized in that, described insert the current version according to the difference packet Part is updated, comprising:
Decompression processing is carried out to the difference packet, obtains the second character string for carrying second position mark;
Second character string is added in first file according to second position mark and is marked with the second position Know corresponding position, is updated with the plug-in unit to the current version.
6. method according to claim 1-3, which is characterized in that described by word all in first file Symbol string is compared with character string all in second file, determines the difference of first file Yu second file Character string, and according to the difference text string generation difference packet, comprising:
Character string all in first file and character string all in second file are compared, described in detection With the presence or absence of the third character string not having in second file in first file;
If detecting that there are the third character strings not having in second file in first file, to the third word Symbol string addition the third place mark, and determine that the third character string is the difference character string;
The difference packet is generated according to the third character string and the third place mark.
7. method according to claim 1-3, which is characterized in that it is described according to the difference packet to described current The plug-in unit of version is updated, comprising:
Decompression processing is carried out to the difference packet, obtains the third character string for carrying the third place mark;
The third character of corresponding position will be identified in first file with the third place according to the third place mark String is deleted, and is updated with the plug-in unit to the current version.
8. a kind of update of plug-in equipment of application program characterized by comprising
Receiving unit, for receiving the update of plug-in request of destination application transmission, the update of plug-in request includes plug-in unit The current version information and update version information of installation kit;
First processing units, for the installation kit according to the current version acquisition of information current version, and to the current version This installation kit carries out deconsolidation process, to obtain the first file;
The second processing unit, for obtaining the installation kit of more new version according to the update version information, and to the more new edition This installation kit carries out deconsolidation process, to obtain the second file;
Determination unit, for carrying out character string all in character string all in first file and second file Comparison, determines the difference character string of first file Yu second file, and according to the difference text string generation difference Packet;
Updating unit, for being updated according to the difference packet to the plug-in unit of the current version.
9. a kind of server, which is characterized in that including processor, input equipment, output equipment and memory, the processor, Input equipment, output equipment and memory are connected with each other, wherein the memory is for storing computer program, the calculating Machine program includes program instruction, and the processor is configured for calling described program instruction, is executed as claim 1-7 is any Method described in.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has computer journey Sequence, the computer program include program instruction, and described program instruction executes the processor such as The described in any item methods of claim 1-7.
CN201910423150.6A 2019-05-21 2019-05-21 A kind of update of plug-in method, equipment, server and the storage medium of application program Pending CN110231947A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910423150.6A CN110231947A (en) 2019-05-21 2019-05-21 A kind of update of plug-in method, equipment, server and the storage medium of application program
PCT/CN2019/120602 WO2020233045A1 (en) 2019-05-21 2019-11-25 Plug-in update method and device, server and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910423150.6A CN110231947A (en) 2019-05-21 2019-05-21 A kind of update of plug-in method, equipment, server and the storage medium of application program

Publications (1)

Publication Number Publication Date
CN110231947A true CN110231947A (en) 2019-09-13

Family

ID=67860900

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910423150.6A Pending CN110231947A (en) 2019-05-21 2019-05-21 A kind of update of plug-in method, equipment, server and the storage medium of application program

Country Status (2)

Country Link
CN (1) CN110231947A (en)
WO (1) WO2020233045A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111522574A (en) * 2020-03-04 2020-08-11 平安科技(深圳)有限公司 Differential packet generation method and related equipment
WO2020233045A1 (en) * 2019-05-21 2020-11-26 深圳壹账通智能科技有限公司 Plug-in update method and device, server and computer readable storage medium
CN112068864A (en) * 2020-09-02 2020-12-11 深圳创维-Rgb电子有限公司 Terminal equipment camera software updating method and device and terminal equipment

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113138768B (en) * 2021-04-29 2023-11-07 北京百度网讯科技有限公司 Application package generation method and device, electronic equipment and readable storage medium
CN113434472A (en) * 2021-06-25 2021-09-24 平安国际智慧城市科技股份有限公司 File generation method and device, server and storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102707977A (en) * 2012-05-17 2012-10-03 江苏中科梦兰电子科技有限公司 Increment upgrading method based on Android application software
CN103428188A (en) * 2012-05-25 2013-12-04 北京小米科技有限责任公司 Method and apparatus for file updating, and associated equipment
US20140380295A1 (en) * 2013-06-04 2014-12-25 Tencent Technology (Shenzhen) Company Limited Method and system for updating application, and computer storage medium thereof
CN105045631A (en) * 2015-07-30 2015-11-11 北京奇虎科技有限公司 Method and device for upgrading client-side applications
CN105049514A (en) * 2015-07-30 2015-11-11 北京奇虎科技有限公司 File downloading method and file downloading device
CN106330936A (en) * 2016-08-31 2017-01-11 广州品唯软件有限公司 Plug-in data transmission method, client and server
CN106648712A (en) * 2017-02-27 2017-05-10 百度在线网络技术(北京)有限公司 Incremental updating packet generating method and device, and server
CN106681720A (en) * 2016-12-23 2017-05-17 光锐恒宇(北京)科技有限公司 Compression method and device and decompression method and device for installation packages
CN106919382A (en) * 2017-01-22 2017-07-04 百度在线网络技术(北京)有限公司 For generating the method and apparatus that application updates bag
CN109471653A (en) * 2018-09-29 2019-03-15 百度在线网络技术(北京)有限公司 Update method, electronic equipment, server and the storage medium of application program
CN109697071A (en) * 2017-10-24 2019-04-30 腾讯科技(深圳)有限公司 Installation kit synthetic method, device, terminal and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110231947A (en) * 2019-05-21 2019-09-13 深圳壹账通智能科技有限公司 A kind of update of plug-in method, equipment, server and the storage medium of application program

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102707977A (en) * 2012-05-17 2012-10-03 江苏中科梦兰电子科技有限公司 Increment upgrading method based on Android application software
CN103428188A (en) * 2012-05-25 2013-12-04 北京小米科技有限责任公司 Method and apparatus for file updating, and associated equipment
US20140380295A1 (en) * 2013-06-04 2014-12-25 Tencent Technology (Shenzhen) Company Limited Method and system for updating application, and computer storage medium thereof
CN105045631A (en) * 2015-07-30 2015-11-11 北京奇虎科技有限公司 Method and device for upgrading client-side applications
CN105049514A (en) * 2015-07-30 2015-11-11 北京奇虎科技有限公司 File downloading method and file downloading device
CN106330936A (en) * 2016-08-31 2017-01-11 广州品唯软件有限公司 Plug-in data transmission method, client and server
CN106681720A (en) * 2016-12-23 2017-05-17 光锐恒宇(北京)科技有限公司 Compression method and device and decompression method and device for installation packages
CN106919382A (en) * 2017-01-22 2017-07-04 百度在线网络技术(北京)有限公司 For generating the method and apparatus that application updates bag
CN106648712A (en) * 2017-02-27 2017-05-10 百度在线网络技术(北京)有限公司 Incremental updating packet generating method and device, and server
CN109697071A (en) * 2017-10-24 2019-04-30 腾讯科技(深圳)有限公司 Installation kit synthetic method, device, terminal and storage medium
CN109471653A (en) * 2018-09-29 2019-03-15 百度在线网络技术(北京)有限公司 Update method, electronic equipment, server and the storage medium of application program

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020233045A1 (en) * 2019-05-21 2020-11-26 深圳壹账通智能科技有限公司 Plug-in update method and device, server and computer readable storage medium
CN111522574A (en) * 2020-03-04 2020-08-11 平安科技(深圳)有限公司 Differential packet generation method and related equipment
CN111522574B (en) * 2020-03-04 2024-05-03 平安科技(深圳)有限公司 Differential packet generation method and related equipment
CN112068864A (en) * 2020-09-02 2020-12-11 深圳创维-Rgb电子有限公司 Terminal equipment camera software updating method and device and terminal equipment

Also Published As

Publication number Publication date
WO2020233045A1 (en) 2020-11-26

Similar Documents

Publication Publication Date Title
CN110231947A (en) A kind of update of plug-in method, equipment, server and the storage medium of application program
CN106502725B (en) Upgrade method, equipment and the electronic equipment of application program
CN105100191B (en) The method, apparatus and system of Java application installations are realized in a kind of cloud compiling
CN105357204B (en) Method and device for generating terminal identification information
CN109829457A (en) A kind of image processing method, equipment and computer readable storage medium
EP3518102B1 (en) Method and apparatus for dynamic display of application interface
CN106681749B (en) Local code patch updating method and device based on android platform
CN110083379A (en) A kind of server component upgrade method and relevant apparatus
CN108804175A (en) Multilingual adaptation method, mobile terminal and computer readable storage medium
CN106686578A (en) Difference package generation method and apparatus
CN107656750A (en) Update of plug-in method and device
CN106897153A (en) Call the method and system of API
WO2017112266A1 (en) Embedded architecture based on process virtual machine
CN112995806A (en) Method, device, system and storage medium for upgrading optical network unit
CN103686821A (en) Control method for application program traffic statistics according to unique identification of mobile terminal
CN110990350B (en) Log analysis method and device
CN109471620A (en) A kind of automatic generation method of APP, device, terminal device and readable storage medium storing program for executing
CN106657361A (en) Android installation package OTA upgrade method with mixed codes
CN113961226B (en) Software development kit repairing method, terminal, server and equipment
CN109862399A (en) It shows the method for rich media information, handle method, computer installation and the computer readable storage medium of rich media information
CN109165712A (en) Distributed generation method, device and computer storage medium by stages number
CN103379145A (en) Information processing method, apparatus and system
CN108399071B (en) Application program installation package size processing method, device, equipment and storage medium
CN107332988A (en) Information processing method, mobile terminal and computer-readable recording medium
CN113645151A (en) DUP equipment message management method and device

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