WO2020233045A1 - 一种插件更新方法、设备、服务器及计算机可读存储介质 - Google Patents

一种插件更新方法、设备、服务器及计算机可读存储介质 Download PDF

Info

Publication number
WO2020233045A1
WO2020233045A1 PCT/CN2019/120602 CN2019120602W WO2020233045A1 WO 2020233045 A1 WO2020233045 A1 WO 2020233045A1 CN 2019120602 W CN2019120602 W CN 2019120602W WO 2020233045 A1 WO2020233045 A1 WO 2020233045A1
Authority
WO
WIPO (PCT)
Prior art keywords
file
character string
plug
character
difference
Prior art date
Application number
PCT/CN2019/120602
Other languages
English (en)
French (fr)
Inventor
陈少昀
Original Assignee
深圳壹账通智能科技有限公司
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 深圳壹账通智能科技有限公司 filed Critical 深圳壹账通智能科技有限公司
Publication of WO2020233045A1 publication Critical patent/WO2020233045A1/zh

Links

Images

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

Definitions

  • This application relates to the field of data processing technology, and in particular to a plug-in update method, device, server, and computer-readable storage medium.
  • plug-inization of each functional module is becoming more and more popular.
  • the main project will need to download and install the plug-in installation package. Since the plug-in installation package will have version iterations and upgrades, if you follow the normal way of downloading the plug-in installation package and replacing it in full, the required downloading plug-in installation package will be relatively large, which consumes traffic, low resource utilization, slow update speed, and user experience difference. Therefore, how to improve the efficiency and resource utilization of plug-in updates has become the focus of research.
  • the embodiments of the present application provide a plug-in update method, device, server, and computer-readable storage medium, which can improve the efficiency and resource utilization of plug-in update.
  • an embodiment of the present application provides a plug-in update method, which includes:
  • an embodiment of the present application provides a plug-in update device, which includes a unit for executing the plug-in update method of the first aspect.
  • embodiments of the present application provide a server, including a processor, an input device, an output device, and a memory.
  • the processor, input device, output device, and memory are connected to each other, wherein the memory is used for storage and support.
  • the plug-in update device executes a computer program of the foregoing method, the computer program includes program instructions, and the processor is configured to invoke the program instructions to execute the method of the foregoing first aspect.
  • an embodiment of the present application provides a computer-readable storage medium that stores a computer program.
  • the computer program includes program instructions that, when executed by a processor, cause all The processor executes the method of the first aspect described above.
  • a differential package including the difference character string between the first file and the second file is generated, and the plug-in is updated according to the differential package to Improve plug-in update efficiency and resource utilization.
  • FIG. 1 is a schematic flowchart of a plug-in update method provided by an embodiment of the present application
  • FIG. 2 is a schematic flowchart of another plug-in update method provided by an embodiment of the present application.
  • FIG. 3 is a schematic block diagram of a plug-in update device provided by an embodiment of the present application.
  • Fig. 4 is a schematic block diagram of a server provided by an embodiment of the present application.
  • the plug-in update method provided by the embodiments of the present application can be executed by a plug-in update device, where the plug-in update device can be set on a server, and the server can include terminal devices such as mobile phones, computers, tablets, and smart watches.
  • the plug-in update device may establish a communication connection with the smart terminal for two-way communication.
  • the plug-in update device may be installed on the smart terminal.
  • the plug-in update device may be spatially independent of the smart terminal.
  • the plug-in update device may be a component of the terminal, that is, the terminal includes a plug-in update device.
  • the smart terminal may include terminal devices such as mobile phones, computers, tablets, and smart watches.
  • the plug-in update device may receive a plug-in update request sent by the target application, where the plug-in update request includes current version information and updated version information of the plug-in installation package.
  • the plug-in update device may obtain the current version of the installation package according to the current version information of the plug-in installation package carried in the plug-in update request, and install the current version.
  • the package is split to obtain the first file.
  • the plug-in update device may obtain the updated version of the installation package according to the updated version information of the plug-in installation package carried in the plug-in update request, and perform split processing on the updated version of the installation package to obtain the second file.
  • the plug-in update device may compare all the character strings in the first file with all the character strings in the second file, determine the difference character strings between the first file and the second file, and determine the difference character strings according to The difference character string generates a difference package, so that the current version of the plug-in is updated according to the difference package.
  • FIG. 1 is a schematic flowchart of a plug-in update method provided by an embodiment of the present application. As shown in FIG. 1, the method can be executed by a plug-in update device. The specific explanation of the plug-in update device is as described above. I will not repeat it here. Specifically, the method in the embodiment of the present application includes the following steps.
  • S101 Receive a plug-in update request sent by a target application, where the plug-in update request includes current version information and updated version information of the plug-in installation package.
  • the plug-in update device may receive a plug-in update request sent by the target application, where the plug-in update request includes current version information and updated version information of the plug-in installation package.
  • the target application may be any application on the smart terminal, and the target application may be displayed on the user interface of the smart terminal. The explanation of the smart terminal is as described above.
  • the current version information may include a current version identifier (such as a current version number); the updated version information may include an updated version identifier (such as an updated version number).
  • a current version identifier such as a current version number
  • the plug-in update device can obtain the version identification of the current version as version 1.0.0, and the version identification of the updated version as version 1.1.0.
  • S102 Obtain the installation package of the current version according to the current version information, and perform split processing on the installation package of the current version to obtain a first file.
  • the plug-in update device may obtain the installation package of the current version according to the current version information, and perform split processing on the installation package of the current version to obtain the first file.
  • the first file includes all the strings of the installation package of the current version.
  • the plug-in update device may determine the current version number according to the current version information, obtain the installation package of the current version according to the current version number, and compare the installation package of the current version according to preset rules. Perform split processing to obtain the first file.
  • S103 Obtain an installation package of an updated version according to the updated version information, and perform split processing on the installation package of the updated version to obtain a second file.
  • the plug-in update device may obtain the installation package of the updated version according to the updated version information, and perform split processing on the installation package of the updated version to obtain the second file.
  • the second file includes all the strings of the installation package of the updated version.
  • the plug-in update device may determine an update version number according to the update version information, obtain an installation package of the update version according to the update version number, and perform an update on the installation package of the update version according to preset rules. Perform split processing to obtain the second file.
  • S104 Compare all character strings in the first file with all character strings in the second file, determine a difference character string between the first file and the second file, and determine the difference character string according to the difference character The string generates a differential packet.
  • the plug-in update device may compare all the character strings in the first file with all the character strings in the second file to determine the difference characters between the first file and the second file String, and generate a difference packet according to the difference character string.
  • the plug-in update device may compare all the character strings in the first file with all the character strings in the second file, and detect whether there is a character string in the second file that matches the first file. The first string that is not the same in a file. If it is detected that there is a first character string in the second file that is different from that in the first file, a first position identifier may be added to the first character string, and it is determined that the first character string is all The difference character string, thereby generating a difference packet according to the first character string and the first location identifier.
  • the plug-in update device may add a first position identifier 1 to the first character string a, and determine that the first character string a is the difference character string, so that the first character string a and the first position Mark 1 generates a differential packet.
  • the plug-in update device may compare all character strings in the first file with all character strings in the second file, and detect whether the first file exists in the second file. The second string not in the file. If it is detected that there is a second character string in the second file that is not in the first file, a second position identifier may be added to the second character string, and it is determined that the second character string is the difference Character string, thereby generating the differential packet according to the second character string and the second location identifier.
  • the plug-in installation package is an Android apk
  • the plug-in is updated
  • the device may add a second position identifier 2 to the second character string b, and determine that the second character string b is the difference character string, so as to determine according to the second character string b and the second position identifier 2 Generate differential packets.
  • the plug-in update device may compare all character strings in the first file with all character strings in the second file, and detect whether the second file exists in the first file. The third character string not in the file. If it is detected that there is a third character string in the first file that is not in the second file, a third position identifier may be added to the third character string, and it is determined that the third character string is the difference A character string, thereby generating the differential packet according to the third character string and the third location identifier.
  • the plug-in installation package is an Android apk
  • the plug-in is updated
  • the device may add a third position identifier 3 to the third character string c, and determine that the third character string c is the difference character string, so that the third character string c and the third position identifier 3 Generate differential packets.
  • the plug-in update device when the plug-in update device compares all the character strings in the first file with all the character strings in the second file, if the first character string, the The second character string and the third character string, the plug-in update device may add a first position identifier to the first character string, add a second position identifier to the second character string, and add a second position identifier to the third character string. Three position identification.
  • the plug-in update device when the plug-in update device compares all the character strings in the first file with all the character strings in the second file, if it detects that the first character string and the Second character string, the plug-in update device may add a first location identifier to the first character string and a second location identifier to the second character string.
  • the plug-in update device when the plug-in update device compares all the character strings in the first file with all the character strings in the second file, if it detects that the first character string and the The third character string, the plug-in update device may add a first position identifier to the first character string and a third position identifier to the third character string.
  • the plug-in update device when the plug-in update device compares all the character strings in the first file with all the character strings in the second file, if it detects that the second character string and the The third character string, the plug-in update device can add a second position identifier to the second character string and a third position identifier to the third character string.
  • the plug-in update device may update the plug-in of the current version according to the differential package.
  • the plug-in update device may decompress the differential package, and if the first character string carrying the first position identifier is obtained by decompression, the first character may be converted according to the first position identifier.
  • the string replaces the string corresponding to the position of the first position identifier in the first file to update the plug-in of the current version.
  • the plug-in update device decompresses the differential package to obtain the first character string a carrying the first position identifier 1. If the character string corresponding to the first position identifier 1 in the first file is d, the plug-in update device may replace the character string d at the position corresponding to the first position identifier 1 in the current version of the first file with the first character string a, so as to realize the comparison of the current version The plugin is updated.
  • the plug-in update device may decompress the differential package, and if the decompression obtains a second character string carrying a second location identifier, the second character may be The string is added to the location corresponding to the second location identifier in the first file to update the current version of the plug-in.
  • the plug-in update device decompresses the differential package to obtain the second character string b carrying the second location identifier 2. If there is no character string at the position corresponding to the second location identifier 2 in the first file, Then, the plug-in update device may add the second character string b at a position corresponding to the second location identifier 2 in the first file of the current version, so as to implement the update of the plug-in of the current version.
  • the plug-in update device may perform decompression processing on the differential package, and if the decompression obtains a third character string carrying a third location identifier, the first file may be converted according to the third location identifier.
  • the third character string corresponding to the third location identifier is deleted in order to update the current version of the plug-in.
  • the plug-in update device decompresses the differential package to obtain the third character string c carrying the third location identifier 3. If there is no character string at the position corresponding to the third location identifier 3 in the second file , The plug-in update device may delete the third character string c at the position corresponding to the third location identifier 3 in the first file of the current version, so as to update the plug-in of the current version.
  • the plug-in update device may decompress the differential package. If the decompression obtains a first character string carrying a first position identifier, a second character string carrying a second position identifier, and a third position identifier The third character string identified, the first character string may be replaced by the character string corresponding to the first position identifier in the first file according to the first position identifier, and according to the second position Add the second character string to the position in the first file corresponding to the second location identifier, and correspond to the third location identifier in the first file according to the third location identifier The third character string at the position is deleted to update the current version of the plug-in.
  • the plug-in update device decompresses the differential package to obtain a first character string a carrying a first position identifier 1, a second character string b carrying a second position identifier 2, and a first character string carrying a third position identifier 3.
  • Three character strings c if the character string corresponding to the first position identifier 1 in the first file is d, and there is no character string at the corresponding position of the second position identifier 2 in the first file, the If there is no character string at the position corresponding to the third position identifier 3 in the second file, the plug-in update device may use the character string d at the position corresponding to the first position identifier 1 in the current version of the first file.
  • a differential package including the difference character string between the first file and the second file is generated, and the plug-in is updated according to the differential package to Improve plug-in update efficiency and resource utilization.
  • Figure 2 is a schematic flowchart of another plug-in update method provided by an embodiment of the present application. As shown in Figure 2, the method can be executed by a plug-in update device. The specific explanation of the plug-in update device is as described above. I will not repeat it here. The difference between the embodiment of this application and the embodiment shown in FIG. 1 is that the embodiment of this application schematically illustrates an implementation process of the plug-in update method. Specifically, the method in the embodiment of the present application includes the following steps.
  • S201 Receive a plug-in update request sent by the target application, where the plug-in update request includes current version information and updated version information of the plug-in installation package.
  • the plug-in update device may receive a plug-in update request sent by the target application.
  • the plug-in update request includes the current version information and update version information of the plug-in installation package. The specific implementation is as described above and will not be repeated here. .
  • S202 Obtain the installation package of the current version according to the current version information, and perform split processing on the installation package of the current version to obtain a first file.
  • the plug-in update device can obtain the installation package of the current version according to the current version information, and split the installation package of the current version to obtain the first file.
  • the specific implementation is as described above. I won't repeat them here.
  • S203 Obtain an installation package of the updated version according to the updated version information, and perform split processing on the installation package of the updated version to obtain a second file.
  • the plug-in update device may obtain the installation package of the updated version according to the updated version information, and split the installation package of the updated version to obtain the second file.
  • the specific implementation is as described above. I won't repeat them here.
  • S204 Compare all character strings in the first file with all character strings in the second file, and detect whether there is a first character string in the second file that is different from that in the first file .
  • the plug-in update device may compare all the character strings in the first file with all the character strings in the second file, and detect whether there are any characters in the second file that are identical to those in the first file. The first string that is not the same in.
  • S205 If it is detected that there is a first character string in the second file that is different from that in the first file, add a first position identifier to the first character string, and determine that the first character string is The difference character string, and a difference packet is generated according to the first character string and the first location identifier.
  • the plug-in update device may add a first position identifier to the first character string, and It is determined that the first character string is the difference character string, and a difference packet is generated according to the first character string and the first location identifier.
  • the plug-in update device may update the plug-in of the current version according to the differential package.
  • a differential package including the difference character string between the first file and the second file is generated, and the plug-in is updated according to the differential package to Improve plug-in update efficiency and resource utilization.
  • the embodiment of the present application also provides a plug-in update device, which is used to execute the unit of any one of the foregoing methods.
  • FIG. 3 is a schematic block diagram of a plug-in update device provided by an embodiment of the present application.
  • the plug-in update device of this embodiment includes: a receiving unit 301, a first processing unit 302, a second processing unit 303, a determining unit 304, and an updating unit 305.
  • the receiving unit 301 is configured to receive a plug-in update request sent by the target application, the plug-in update request including current version information and updated version information of the plug-in installation package;
  • the first processing unit 302 is configured to obtain the installation package of the current version according to the current version information, and split the installation package of the current version to obtain the first file;
  • the second processing unit 303 is configured to obtain an installation package of an updated version according to the updated version information, and split the installation package of the updated version to obtain a second file;
  • the determining unit 304 is configured to compare all the character strings in the first file with all the character strings in the second file, determine the difference character strings between the first file and the second file, and according to The difference character string generates a difference packet;
  • the update unit 305 is configured to update the plug-in of the current version according to the differential package.
  • the determining unit 304 compares all the character strings in the first file with all the character strings in the second file to determine the difference character strings between the first file and the second file, And when generating a difference packet based on the difference character string, it is specifically used for:
  • a first position identifier is added to the first character string, and it is determined that the first character string is the Difference string
  • a differential packet is generated according to the first character string and the first location identifier.
  • update unit 305 updates the plug-in of the current version according to the difference package, it is specifically configured to:
  • the first character string is replaced with a character string corresponding to the first position identifier in the first file according to the first position identifier to update the plug-in of the current version.
  • the determining unit 304 compares all the character strings in the first file with all the character strings in the second file to determine the difference character strings between the first file and the second file, And when generating a difference packet based on the difference character string, it is specifically used for:
  • the difference packet is generated according to the second character string and the second location identifier.
  • update unit 305 updates the plug-in of the current version according to the difference package, it is specifically configured to:
  • the second character string is added to a location in the first file corresponding to the second location identifier according to the second location identifier, so as to update the plug-in of the current version.
  • the determining unit 304 compares all the character strings in the first file with all the character strings in the second file to determine the difference character strings between the first file and the second file, And when generating a difference packet based on the difference character string, it is specifically used for:
  • the difference packet is generated according to the third character string and the third location identifier.
  • update unit 305 updates the plug-in of the current version according to the difference package, it is specifically configured to:
  • a third character string corresponding to the third location identifier in the first file is deleted to update the plug-in of the current version.
  • the determining unit 304 compares all the character strings in the first file with all the character strings in the second file, it is specifically used for:
  • the A first position identifier is added to a character string, and a second position identifier is added to a second character string.
  • the determining unit 304 compares all the character strings in the first file with all the character strings in the second file, it is specifically used for:
  • the A first position identifier is added to the first character string, and a third position identifier is added to the third character string.
  • the determining unit 304 compares all the character strings in the first file with all the character strings in the second file, it is specifically used for:
  • the second character string Add a second location identifier, and add a third location identifier to the third character string.
  • the determining unit 304 compares all the character strings in the first file with all the character strings in the second file, it is specifically used for:
  • a first character string that is different from that in the first file exists in the second file If it is detected that a first character string that is different from that in the first file exists in the second file, a second character string that is not in the first file exists in the second file, and the first character string is not in the first file. If there is a third character string that is not in the second file in the file, a first position identifier is added to the first character string, a second position identifier is added to the second character string, and a third character string is added to the third character string. Location identification.
  • the plug-in update device can obtain the first file of the current version installation package and the second file of the updated version installation package, and update the plug-in according to the difference package including the difference character string of the first file and the second file to improve Plug-in update efficiency and resource utilization.
  • FIG. 4 is a schematic block diagram of a server according to an embodiment of the present application.
  • the server in this embodiment as shown in the figure may include: one or more processors 401; one or more input devices 402, one or more output devices 403, and a memory 404.
  • the aforementioned processor 401, input device 402, output device 403, and memory 404 are connected via a bus 405.
  • the memory 404 is configured to store a computer program including program instructions, and the processor 401 is configured to execute the program instructions stored in the memory 404.
  • the processor 401 is configured to call the program instructions to execute:
  • the processor 401 compares all the character strings in the first file with all the character strings in the second file to determine the difference character strings between the first file and the second file, And when generating a difference packet based on the difference character string, it is specifically used for:
  • a first position identifier is added to the first character string, and it is determined that the first character string is the Difference string
  • a differential packet is generated according to the first character string and the first location identifier.
  • processor 401 updates the plug-in of the current version according to the difference package, it is specifically configured to:
  • the first character string is replaced with a character string corresponding to the first position identifier in the first file according to the first position identifier to update the plug-in of the current version.
  • the processor 401 compares all the character strings in the first file with all the character strings in the second file to determine the difference character strings between the first file and the second file, And when generating a difference packet based on the difference character string, it is specifically used for:
  • the difference packet is generated according to the second character string and the second location identifier.
  • processor 401 updates the plug-in of the current version according to the difference package, it is specifically configured to:
  • the second character string is added to a location in the first file corresponding to the second location identifier according to the second location identifier, so as to update the plug-in of the current version.
  • the processor 401 compares all the character strings in the first file with all the character strings in the second file to determine the difference character strings between the first file and the second file, And when generating a difference packet based on the difference character string, it is specifically used for:
  • the difference packet is generated according to the third character string and the third location identifier.
  • processor 401 updates the plug-in of the current version according to the difference package, it is specifically configured to:
  • a third character string corresponding to the third location identifier in the first file is deleted to update the plug-in of the current version.
  • processor 401 compares all the character strings in the first file with all the character strings in the second file, it is specifically configured to:
  • the A first position identifier is added to a character string, and a second position identifier is added to a second character string.
  • processor 401 compares all the character strings in the first file with all the character strings in the second file, it is specifically configured to:
  • the A first position identifier is added to the first character string, and a third position identifier is added to the third character string.
  • processor 401 compares all the character strings in the first file with all the character strings in the second file, it is specifically configured to:
  • the second character string Add a second location identifier, and add a third location identifier to the third character string.
  • processor 401 compares all the character strings in the first file with all the character strings in the second file, it is specifically configured to:
  • a first character string that is different from that in the first file exists in the second file If it is detected that a first character string that is different from that in the first file exists in the second file, a second character string that is not in the first file exists in the second file, and the first character string is not in the first file. If there is a third character string that is not in the second file in the file, a first position identifier is added to the first character string, a second position identifier is added to the second character string, and a third character string is added to the third character string. Location identification.
  • the server may obtain the first file of the current version installation package and the second file of the updated version installation package, and update the plug-in according to the differential package including the difference string between the first file and the second file, so as to improve the plug-in Update efficiency and resource utilization.
  • the processor 401 may be a central processing unit (CenSral Processing UniS, CPU), and the processor may also be other general-purpose processors or digital signal processors (DigiSal Signal Processor, DSP). , Application-specific integrated circuits (ApplicaSion Specific InSegraSed Circuits, ASIC), ready-made programmable gate arrays (Field-Programmable GaSe Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc.
  • the general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
  • the input device 402 may include a touch panel, a microphone, etc.
  • the output device 403 may include a display (LCD, etc.), a speaker, and the like.
  • the memory 404 may include a read-only memory and a random access memory, and provides instructions and data to the processor 401.
  • a part of the memory 404 may also include a non-volatile random access memory.
  • the memory 404 may also store device type information.
  • the processor 401, input device 402, and output device 403 described in the embodiment of the present application can execute the plug-in update method provided by the embodiment of the present application as described in the method embodiment described in FIG. 1 or FIG.
  • the implementation manner can also implement the implementation manner of the plug-in update device described in FIG. 3 of the embodiment of the present application, which will not be repeated here.
  • the embodiment of the present application also provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the computer program described in the embodiment corresponding to FIG. 1 or FIG.
  • the plug-in update method can also implement the plug-in update device in the embodiment corresponding to FIG. 3 of the present application, which will not be repeated here.
  • the computer-readable storage medium may also be a non-volatile computer-readable storage medium, which is not specifically limited in the embodiment of the present invention.
  • the computer-readable storage medium may be the internal storage unit of the plug-in update device described in any of the foregoing embodiments, such as the hard disk or memory of the plug-in update device.
  • the computer-readable storage medium may also be an external storage device of the plug-in update device, for example, a plug-in hard disk equipped on the plug-in update device, a smart memory card (SmarS Media Card, SMC), and a secure digital (Secure DigiSal). , SD) card, flash card (Flash Card), etc.
  • the computer-readable storage medium may also include both an internal storage unit of the plug-in update device and an external storage device.
  • the computer-readable storage medium is used to store the computer program and other programs and data required by the plug-in update device.
  • the computer-readable storage medium can also be used to temporarily store data that has been output or will be output.
  • the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium.
  • the read storage medium includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned computer-readable storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disks or optical disks and other various programs that can store programs The medium of the code.

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

本申请实施例公开了一种插件更新方法、设备、服务器及计算机可读存储介质,该方法包括:接收目标应用程序发送的插件更新请求,所述插件更新请求包括插件安装包的当前版本信息和更新版本信息;根据所述当前版本信息获取当前版本的安装包,并对所述当前版本的安装包进行拆分处理,以得到第一文件;根据所述更新版本信息获取更新版本的安装包,并对所述更新版本的安装包进行拆分处理,以得到第二文件;将所述第一文件中所有的字符串与所述第二文件中所有的字符串进行对比,确定所述第一文件与所述第二文件的差异字符串,并根据所述差异字符串生成差分包;根据所述差分包对所述当前版本的插件进行更新,以提高应用程序插件更新的效率和资源利用率。

Description

一种插件更新方法、设备、服务器及计算机可读存储介质
本申请要求于2019年05月21日提交中国专利局、申请号为201910423150.6、申请名称为“一种应用程序的插件更新方法、设备、服务器及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及数据处理技术领域,尤其涉及一种插件更新方法、设备、服务器及计算机可读存储介质。
背景技术
随着移动设备中应用程序(APPlication,APP)的功能需要越来越多,每个功能模块插件化也越来越流行,在APP插件化方案中,会需要主工程下载插件安装包并安装。由于插件安装包会有版本迭代和升级,若按照普通的全量下载插件安装包并替换的方式,需要的下载的插件安装包会比较大,耗费流量、资源利用率低,更新速度慢,用户体验差。因此,如何提高插件更新的效率和资源利用率成为研究的重点。
发明内容
本申请实施例提供了一种插件更新方法、设备、服务器及计算机可读存储介质,可提高插件更新的效率和资源利用率。
第一方面,本申请实施例提供了一种插件更新方法,该方法包括:
接收目标应用程序发送的插件更新请求,所述插件更新请求包括插件安装包的当前版本信息和更新版本信息;
根据所述当前版本信息获取当前版本的安装包,并对所述当前版本的安装包进行拆分处理,以得到第一文件;
根据所述更新版本信息获取更新版本的安装包,并对所述更新版本的安装包进行拆分处理,以得到第二文件;
将所述第一文件中所有的字符串与所述第二文件中所有的字符串进行对比,确定所述第一文件与所述第二文件的差异字符串,并根据所述差异字符串生成差分包;
根据所述差分包对所述当前版本的插件进行更新。
第二方面,本申请实施例提供了一种插件更新设备,该插件更新设备包括用于执行上述第一方面的插件更新方法的单元。
第三方面,本申请实施例提供了一种服务器,包括处理器、输入设备、输出设备和存储器,所述处理器、输入设备、输出设备和存储器相互连接,其中,所述存储器用于存储支持插件更新设备执行上述方法的计算机程序,所述计算机程序包括程序指令,所述处理器被配置用于调用所述程序指令,执行上 述第一方面的方法。
第四方面,本申请实施例提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令当被处理器执行时使所述处理器执行上述第一方面的方法。
本申请实施例,通过获取当前版本安装包的第一文件以及更新版本安装包的第二文件,生成包括第一文件与第二文件的差异字符串的差分包,并根据差分包更新插件,以提高插件更新效率和资源利用率。
附图说明
图1是本申请实施例提供的一种插件更新方法的示意流程图;
图2是本申请实施例提供的另一种插件更新方法的示意流程图;
图3是本申请实施例提供的一种插件更新设备的示意框图;
图4是本申请实施例提供的一种服务器的示意框图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本申请实施例提供的插件更新方法可以由一种插件更新设备执行,其中,所述插件更新设备可以设置在服务器上,所述服务器可以包括手机、电脑、平板、智能手表等终端设备。在一个实施例中,所述插件更新设备可以与智能终端建立通信连接,以进行双向通信。在某些实施例中,所述插件更新设备可以安装在所述智能终端上,在某些实施例中,所述插件更新设备可以在空间上独立于所述智能终端,在某些实施例中,所述插件更新设备可以是所述终端的部件,即所述终端包括插件更新设备。在某些实施例中,所述智能终端可以包括:手机、电脑、平板、智能手表等终端设备。
本申请实施例中,插件更新设备可以接收目标应用程序发送的插件更新请求,所述插件更新请求包括插件安装包的当前版本信息和更新版本信息。所述插件更新设备在接收到目标应用程序发送的插件更新请求之后,可以根据所述插件更新请求中携带的插件安装包的当前版本信息获取当前版本的安装包,并对所述当前版本的安装包进行拆分处理,以得到第一文件。所述插件更新设备可以根据所述插件更新请求中携带的插件安装包的更新版本信息获取更新版本的安装包,并对所述更新版本的安装包进行拆分处理,以得到第二文件。所述插件更新设备可以将所述第一文件中所有的字符串与所述第二文件中所有的字符串进行对比,确定所述第一文件与所述第二文件的差异字符串,并根据所述差异字符串生成差分包,从而根据所述差分包对所述当前版本的插件进行更新。下面结合附图对本申请实施例的插件更新方法进行示意性说明。
请参见图1,图1是本申请实施例提供的一种插件更新方法的示意流程图,如图1所示,该方法可以由插件更新设备执行,所述插件更新设备的具体解释如前所述,此处不再赘述。具体地,本申请实施例的所述方法包括如下步骤。
S101:接收目标应用程序发送的插件更新请求,所述插件更新请求包括插件安装包的当前版本信息和更新版本信息。
本申请实施例中,插件更新设备可以接收目标应用程序发送的插件更新请求,所述插件更新请求包括插件安装包的当前版本信息和更新版本信息。在某些实施例中,所述目标应用程序可以是智能终端上的任意一个应用程序,所述目标应用程序可以显示在智能终端的用户界面上,所述智能终端的解释如前所述。
在某些实施例中,所述当前版本信息可以包括当前版本标识(如当前版本号);所述更新版本信息可以包括更新版本标识(如更新版本号)。例如,假设所述插件安装包为安卓的插件apk,则所述插件更新设备可以获取到当前版本的版本标识为1.0.0版本,更新版本的版本标识为1.1.0版本。
S102:根据所述当前版本信息获取当前版本的安装包,并对所述当前版本的安装包进行拆分处理,以得到第一文件。
本申请实施例中,插件更新设备可以根据所述当前版本信息获取当前版本的安装包,并对所述当前版本的安装包进行拆分处理,以得到第一文件。在某些实施例中,所述第一文件包括所述当前版本的安装包的所有字符串。
在一个实施例中,所述插件更新设备可以根据所述当前版本信息确定当前版本号,并根据所述当前版本号获取当前版本的安装包,以及根据预设规则对所述当前版本的安装包进行拆分处理,以得到第一文件。
S103:根据所述更新版本信息获取更新版本的安装包,并对所述更新版本的安装包进行拆分处理,以得到第二文件。
本申请实施例中,插件更新设备可以根据所述更新版本信息获取更新版本的安装包,并对所述更新版本的安装包进行拆分处理,以得到第二文件。在某些实施例中,所述第二文件包括所述更新版本的安装包的所有字符串。
在一个实施例中,所述插件更新设备可以根据所述更新版本信息确定更新版本号,并根据所述更新版本号获取更新版本的安装包,以及根据预设规则对所述更新版本的安装包进行拆分处理,以得到第二文件。
S104:将所述第一文件中所有的字符串与所述第二文件中所有的字符串进行对比,确定所述第一文件与所述第二文件的差异字符串,并根据所述差异字符串生成差分包。
本申请实施例中,插件更新设备可以将所述第一文件中所有的字符串与所述第二文件中所有的字符串进行对比,确定所述第一文件与所述第二文件的差异字符串,并根据所述差异字符串生成差分包。
在一个实施例中,所述插件更新设备可以将所述第一文件中所有的字符串与所述第二文件中所有的字符串进行对比,检测所述第二文件中是否存在与所述第一文件中不相同的第一字符串。如果检测到所述第二文件中存在与所述第一文件中不相同的第一字符串,则可以对所述第一字符串添加第一位置标识,并确定所述第一字符串为所述差异字符串,从而根据所述第一字符串和所述第一位置标识生成差分包。
例如,假设所述插件安装包为安卓的apk,如果检测到所述更新版本的apk的第二文件中存在与所述当前版本的apk的第一文件中不相同的第一字符串a,则插件更新设备可以对所述第一字符串a添加第一位置标识1,并确定所述第一字符串a为所述差异字符串,从而根据所述第一字符串a和所述第一位置标识1生成差分包。
获取到所述第一字符串集中存在所述第二字符串集中没有的第二字符串,以及获取到所述第二字符串集中存在所述第一字符串集中没有的第三字符串,则可以对所述第一字符串添加位置标识1,对第二字符串添加位置标识2,对第三字符串添加位置标识3。
在一个实施例中,所述插件更新设备可以将所述第一文件中所有的字符串与所述第二文件中所有的字符串进行对比,检测所述第二文件中是否存在所述第一文件中没有的第二字符串。如果检测到所述第二文件中存在所述第一文件中没有的第二字符串,则可以对所述第二字符串添加第二位置标识,并确定所述第二字符串为所述差异字符串,从而根据所述第二字符串和所述第二位置标识生成所述差分包。
例如,假设所述插件安装包为安卓的apk,如果检测到所述更新版本的apk的第二文件中存在所述当前版本的apk的第一文件中没有的第二字符串b,则插件更新设备可以对所述第二字符串b添加第二位置标识2,并确定所述第二字符串b为所述差异字符串,从而根据所述第二字符串b和所述第二位置标识2生成差分包。
在一个实施例中,所述插件更新设备可以将所述第一文件中所有的字符串与所述第二文件中所有的字符串进行对比,检测所述第一文件中是否存在所述第二文件中没有的第三字符串。如果检测到所述第一文件中存在所述第二文件中没有的第三字符串,则可以对所述第三字符串添加第三位置标识,并确定所述第三字符串为所述差异字符串,从而根据所述第三字符串和所述第三位置标识生成所述差分包。
例如,假设所述插件安装包为安卓的apk,如果检测到所述当前版本的apk的第一文件中存在所述更新版本的apk的第二文件中没有的第三字符串c,则插件更新设备可以对所述第三字符串c添加第三位置标识3,并确定所述第三字符串c为所述差异字符串,从而根据所述第三字符串c和所述第三位置标识3生成差分包。
在一个实施例中,所述插件更新设备在将所述第一文件中所有的字符串与所述第二文件中所有的字 符串进行对比时,如果检测到所述第一字符串、所述第二字符串以及所述第三字符串,则所述插件更新设备可以对所述第一字符串添加第一位置标识、对第二字符串添加第二位置标识、对第三字符串添加第三位置标识。
在一个实施例中,所述插件更新设备在将所述第一文件中所有的字符串与所述第二文件中所有的字符串进行对比时,如果检测到所述第一字符串和所述第二字符串,则所述插件更新设备可以对所述第一字符串添加第一位置标识、并对第二字符串添加第二位置标识。
在一个实施例中,所述插件更新设备在将所述第一文件中所有的字符串与所述第二文件中所有的字符串进行对比时,如果检测到所述第一字符串和所述第三字符串,则所述插件更新设备可以对所述第一字符串添加第一位置标识、并对第三字符串添加第三位置标识。
在一个实施例中,所述插件更新设备在将所述第一文件中所有的字符串与所述第二文件中所有的字符串进行对比时,如果检测到所述第二字符串和所述第三字符串,则所述插件更新设备可以对第二字符串添加第二位置标识、并对第三字符串添加第三位置标识。
S105:根据所述差分包对所述当前版本的插件进行更新。
本申请实施例中,插件更新设备可以根据所述差分包对所述当前版本的插件进行更新。
在一个实施例中,所述插件更新设备可以对所述差分包进行解压处理,如果解压得到携带第一位置标识的第一字符串,则可以根据所述第一位置标识将所述第一字符串替换所述第一文件中与所述第一位置标识对应位置的字符串,以对所述当前版本的插件进行更新。
例如,假设插件更新设备对所述差分包进行解压处理,得到携带第一位置标识1的第一字符串a,如果所述第一文件中与所述第一位置标识1对应位置的字符串为d,则所述插件更新设备可以将所述当前版本的第一文件中与所述第一位置标识1对应位置的字符串d替换为所述第一字符串a,以实现对所述当前版本的插件进行更新。
在一个实施例中,所述插件更新设备可以对所述差分包进行解压处理,如果解压得到携带第二位置标识的第二字符串,则可以根据所述第二位置标识将所述第二字符串添加至所述第一文件中与所述第二位置标识对应的位置,以对所述当前版本的插件进行更新。
例如,假设插件更新设备对所述差分包进行解压处理,得到携带第二位置标识2的第二字符串b,如果所述第一文件中所述第二位置标识2对应位置处没有字符串,则所述插件更新设备可以在所述当前版本的第一文件中与所述第二位置标识2对应的位置处添加所述第二字符串b,以实现对所述当前版本的插件进行更新。
在一个实施例中,所述插件更新设备可以对所述差分包进行解压处理,如果解压得到携带第三位置标识的第三字符串,则可以根据所述第三位置标识将所述第一文件中与所述第三位置标识对应位置的第 三字符串删除,以对所述当前版本的插件进行更新。
例如,假设插件更新设备对所述差分包进行解压处理,得到携带第三位置标识3的第三字符串c,如果所述第二文件中在所述第三位置标识3对应位置处没有字符串,则所述插件更新设备可以将所述当前版本的第一文件中所述第三位置标识3对应位置处的所述第三字符串c删除,以实现对所述当前版本的插件进行更新。
在一个实施例中,所述插件更新设备可以对所述差分包进行解压处理,如果解压得到携带第一位置标识的第一字符串、携带第二位置标识的第二字符串以及携带第三位置标识的第三字符串,则可以根据所述第一位置标识将所述第一字符串替换所述第一文件中与所述第一位置标识对应位置的字符串,并根据所述第二位置标识将所述第二字符串添加至所述第一文件中与所述第二位置标识对应的位置,以及根据所述第三位置标识将所述第一文件中与所述第三位置标识对应位置的第三字符串删除,以对所述当前版本的插件进行更新。
例如,假设插件更新设备对所述差分包进行解压处理,得到携带第一位置标识1的第一字符串a、携带第二位置标识2的第二字符串b和携带第三位置标识3的第三字符串c,如果所述第一文件中与所述第一位置标识1对应位置的字符串为d,所述第一文件中所述第二位置标识2对应位置处没有字符串,所述第二文件中在所述第三位置标识3对应位置处没有字符串,则所述插件更新设备可以将所述当前版本的第一文件中与所述第一位置标识1对应位置的字符串d替换为所述第一字符串a,在所述当前版本的第一文件中与所述第二位置标识2对应的位置处添加所述第二字符串b,以及将所述当前版本的第一文件中所述第三位置标识3对应位置处的所述第三字符串c删除,从而实现对当前版本的插件进行更新。
本申请实施例,通过获取当前版本安装包的第一文件以及更新版本安装包的第二文件,生成包括第一文件与第二文件的差异字符串的差分包,并根据差分包更新插件,以提高插件更新效率和资源利用率。
请参见图2,图2是本申请实施例提供的另一种插件更新方法的示意流程图,如图2所示,该方法可以由插件更新设备执行,该插件更新设备的具体解释如前所述,此处不再赘述。本申请实施例与上述图1所述实施例的区别在于,本申请实施例是对所述插件更新方法的一个实施过程进行示意性说明。具体地,本申请实施例的所述方法包括如下步骤。
S201:接收目标应用程序发送的插件更新请求,所述插件更新请求包括插件安装包的当前版本信息和更新版本信息。
本申请实施例中,插件更新设备可以接收目标应用程序发送的插件更新请求,所述插件更新请求包括插件安装包的当前版本信息和更新版本信息,具体实施例如前所述,此处不再赘述。
S202:根据所述当前版本信息获取当前版本的安装包,并对所述当前版本的安装包进行拆分处理,以得到第一文件。
本申请实施例中,插件更新设备可以根据所述当前版本信息获取当前版本的安装包,并对所述当前版本的安装包进行拆分处理,以得到第一文件,具体实施例如前所述,此处不再赘述。
S203:根据所述更新版本信息获取更新版本的安装包,并对所述更新版本的安装包进行拆分处理,以得到第二文件。
本申请实施例中,插件更新设备可以根据所述更新版本信息获取更新版本的安装包,并对所述更新版本的安装包进行拆分处理,以得到第二文件,具体实施例如前所述,此处不再赘述。
S204:将所述第一文件中所有的字符串与所述第二文件中所有的字符串进行对比,检测所述第二文件中是否存在与所述第一文件中不相同的第一字符串。
本申请实施例中,插件更新设备可以将所述第一文件中所有的字符串与所述第二文件中所有的字符串进行对比,检测所述第二文件中是否存在与所述第一文件中不相同的第一字符串。
S205:如果检测到所述第二文件中存在与所述第一文件中不相同的第一字符串,则对所述第一字符串添加第一位置标识,并确定所述第一字符串为所述差异字符串,以及根据所述第一字符串和所述第一位置标识生成差分包。
本申请实施例中,插件更新设备如果检测到所述第二文件中存在与所述第一文件中不相同的第一字符串,则可以对所述第一字符串添加第一位置标识,并确定所述第一字符串为所述差异字符串,以及根据所述第一字符串和所述第一位置标识生成差分包。
S206:根据所述差分包对所述当前版本的插件进行更新。
本申请实施例中,插件更新设备可以根据所述差分包对所述当前版本的插件进行更新。
本申请实施例,通过获取当前版本安装包的第一文件以及更新版本安装包的第二文件,生成包括第一文件与第二文件的差异字符串的差分包,并根据差分包更新插件,以提高插件更新效率和资源利用率。
本申请实施例还提供了一种插件更新设备,该插件更新设备用于执行前述任一项所述的方法的单元。具体地,参见图3,图3是本申请实施例提供的一种插件更新设备的示意框图。本实施例的插件更新设备包括:接收单元301、第一处理单元302、第二处理单元303、确定单元304以及更新单元305。
接收单元301,用于接收目标应用程序发送的插件更新请求,所述插件更新请求包括插件安装包的当前版本信息和更新版本信息;
第一处理单元302,用于根据所述当前版本信息获取当前版本的安装包,并对所述当前版本的安装包进行拆分处理,以得到第一文件;
第二处理单元303,用于根据所述更新版本信息获取更新版本的安装包,并对所述更新版本的安装包进行拆分处理,以得到第二文件;
确定单元304,用于将所述第一文件中所有的字符串与所述第二文件中所有的字符串进行对比,确 定所述第一文件与所述第二文件的差异字符串,并根据所述差异字符串生成差分包;
更新单元305,用于根据所述差分包对所述当前版本的插件进行更新。
进一步地,所述确定单元304将所述第一文件中所有的字符串与所述第二文件中所有的字符串进行对比,确定所述第一文件与所述第二文件的差异字符串,并根据所述差异字符串生成差分包时,具体用于:
将所述第一文件中所有的字符串与所述第二文件中所有的字符串进行对比,检测所述第二文件中是否存在与所述第一文件中不相同的第一字符串;
如果检测到所述第二文件中存在与所述第一文件中不相同的第一字符串,则对所述第一字符串添加第一位置标识,并确定所述第一字符串为所述差异字符串;
根据所述第一字符串和所述第一位置标识生成差分包。
进一步地,所述更新单元305根据所述差分包对所述当前版本的插件进行更新时,具体用于:
对所述差分包进行解压处理,得到携带第一位置标识的第一字符串;
根据所述第一位置标识将所述第一字符串替换所述第一文件中与所述第一位置标识对应位置的字符串,以对所述当前版本的插件进行更新。
进一步地,所述确定单元304将所述第一文件中所有的字符串与所述第二文件中所有的字符串进行对比,确定所述第一文件与所述第二文件的差异字符串,并根据所述差异字符串生成差分包时,具体用于:
将所述第一文件中所有的字符串与所述第二文件中所有的字符串进行对比,检测所述第二文件中是否存在所述第一文件中没有的第二字符串;
如果检测到所述第二文件中存在所述第一文件中没有的第二字符串,则对所述第二字符串添加第二位置标识,并确定所述第二字符串为所述差异字符串;
根据所述第二字符串和所述第二位置标识生成所述差分包。
进一步地,所述更新单元305根据所述差分包对所述当前版本的插件进行更新时,具体用于:
对所述差分包进行解压处理,得到携带第二位置标识的第二字符串;
根据所述第二位置标识将所述第二字符串添加至所述第一文件中与所述第二位置标识对应的位置,以对所述当前版本的插件进行更新。
进一步地,所述确定单元304将所述第一文件中所有的字符串与所述第二文件中所有的字符串进行对比,确定所述第一文件与所述第二文件的差异字符串,并根据所述差异字符串生成差分包时,具体用于:
将所述第一文件中所有的字符串与所述第二文件中所有的字符串进行对比,检测所述第一文件中是 否存在所述第二文件中没有的第三字符串;
如果检测到所述第一文件中存在所述第二文件中没有的第三字符串,则对所述第三字符串添加第三位置标识,并确定所述第三字符串为所述差异字符串;
根据所述第三字符串和所述第三位置标识生成所述差分包。
进一步地,所述更新单元305根据所述差分包对所述当前版本的插件进行更新时,具体用于:
对所述差分包进行解压处理,得到携带第三位置标识的第三字符串;
根据所述第三位置标识将所述第一文件中与所述第三位置标识对应位置的第三字符串删除,以对所述当前版本的插件进行更新。
进一步地,所述确定单元304将所述第一文件中所有的字符串与所述第二文件中所有的字符串进行对比时,具体用于:
将所述第一文件中所有的字符串与所述第二文件中所有的字符串进行对比;
如果检测到所述第二文件中存在与所述第一文件中不相同的第一字符串以及所述第二文件中存在所述第一文件中没有的第二字符串,则对所述第一字符串添加第一位置标识,并对第二字符串添加第二位置标识。
进一步地,所述确定单元304将所述第一文件中所有的字符串与所述第二文件中所有的字符串进行对比时,具体用于:
将所述第一文件中所有的字符串与所述第二文件中所有的字符串进行对比;
如果检测到所述第二文件中存在与所述第一文件中不相同的第一字符串、以及所述第一文件中存在所述第二文件中没有的第三字符串,则对所述第一字符串添加第一位置标识,并对第三字符串添加第三位置标识。
进一步地,所述确定单元304将所述第一文件中所有的字符串与所述第二文件中所有的字符串进行对比时,具体用于:
将所述第一文件中所有的字符串与所述第二文件中所有的字符串进行对比;
如果检测到所述第二文件中存在所述第一文件中没有的第二字符串,以及所述第一文件中存在所述第二文件中没有的第三字符串,则对第二字符串添加第二位置标识,并并对第三字符串添加第三位置标识。
进一步地,所述确定单元304将所述第一文件中所有的字符串与所述第二文件中所有的字符串进行对比时,具体用于:
将所述第一文件中所有的字符串与所述第二文件中所有的字符串进行对比;
如果检测到所述第二文件中存在与所述第一文件中不相同的第一字符串、所述第二文件中存在所述 第一文件中没有的第二字符串、以及所述第一文件中存在所述第二文件中没有的第三字符串,则对所述第一字符串添加第一位置标识、对第二字符串添加第二位置标识、以及对第三字符串添加第三位置标识。
本申请实施例,插件更新设备可以获取当前版本安装包的第一文件以及更新版本安装包的第二文件,并根据包括第一文件与第二文件的差异字符串的差分包更新插件,以提高插件更新效率和资源利用率。
参见图4,图4是本申请实施例提供的一种服务器的示意框图。如图所示的本实施例中的服务器可以包括:一个或多个处理器401;一个或多个输入设备402,一个或多个输出设备403和存储器404。上述处理器401、输入设备402、输出设备403和存储器404通过总线405连接。存储器404用于存储计算机程序,所述计算机程序包括程序指令,处理器401用于执行存储器404存储的程序指令。其中,处理器401被配置用于调用所述程序指令执行:
接收目标应用程序发送的插件更新请求,所述插件更新请求包括插件安装包的当前版本信息和更新版本信息;
根据所述当前版本信息获取当前版本的安装包,并对所述当前版本的安装包进行拆分处理,以得到第一文件;
根据所述更新版本信息获取更新版本的安装包,并对所述更新版本的安装包进行拆分处理,以得到第二文件;
将所述第一文件中所有的字符串与所述第二文件中所有的字符串进行对比,确定所述第一文件与所述第二文件的差异字符串,并根据所述差异字符串生成差分包;
根据所述差分包对所述当前版本的插件进行更新。
进一步地,所述处理器401将所述第一文件中所有的字符串与所述第二文件中所有的字符串进行对比,确定所述第一文件与所述第二文件的差异字符串,并根据所述差异字符串生成差分包时,具体用于:
将所述第一文件中所有的字符串与所述第二文件中所有的字符串进行对比,检测所述第二文件中是否存在与所述第一文件中不相同的第一字符串;
如果检测到所述第二文件中存在与所述第一文件中不相同的第一字符串,则对所述第一字符串添加第一位置标识,并确定所述第一字符串为所述差异字符串;
根据所述第一字符串和所述第一位置标识生成差分包。
进一步地,所述处理器401根据所述差分包对所述当前版本的插件进行更新时,具体用于:
对所述差分包进行解压处理,得到携带第一位置标识的第一字符串;
根据所述第一位置标识将所述第一字符串替换所述第一文件中与所述第一位置标识对应位置的字符串,以对所述当前版本的插件进行更新。
进一步地,所述处理器401将所述第一文件中所有的字符串与所述第二文件中所有的字符串进行对 比,确定所述第一文件与所述第二文件的差异字符串,并根据所述差异字符串生成差分包时,具体用于:
将所述第一文件中所有的字符串与所述第二文件中所有的字符串进行对比,检测所述第二文件中是否存在所述第一文件中没有的第二字符串;
如果检测到所述第二文件中存在所述第一文件中没有的第二字符串,则对所述第二字符串添加第二位置标识,并确定所述第二字符串为所述差异字符串;
根据所述第二字符串和所述第二位置标识生成所述差分包。
进一步地,所述处理器401根据所述差分包对所述当前版本的插件进行更新时,具体用于:
对所述差分包进行解压处理,得到携带第二位置标识的第二字符串;
根据所述第二位置标识将所述第二字符串添加至所述第一文件中与所述第二位置标识对应的位置,以对所述当前版本的插件进行更新。
进一步地,所述处理器401将所述第一文件中所有的字符串与所述第二文件中所有的字符串进行对比,确定所述第一文件与所述第二文件的差异字符串,并根据所述差异字符串生成差分包时,具体用于:
将所述第一文件中所有的字符串与所述第二文件中所有的字符串进行对比,检测所述第一文件中是否存在所述第二文件中没有的第三字符串;
如果检测到所述第一文件中存在所述第二文件中没有的第三字符串,则对所述第三字符串添加第三位置标识,并确定所述第三字符串为所述差异字符串;
根据所述第三字符串和所述第三位置标识生成所述差分包。
进一步地,所述处理器401根据所述差分包对所述当前版本的插件进行更新时,具体用于:
对所述差分包进行解压处理,得到携带第三位置标识的第三字符串;
根据所述第三位置标识将所述第一文件中与所述第三位置标识对应位置的第三字符串删除,以对所述当前版本的插件进行更新。
进一步地,所述处理器401将所述第一文件中所有的字符串与所述第二文件中所有的字符串进行对比时,具体用于:
将所述第一文件中所有的字符串与所述第二文件中所有的字符串进行对比;
如果检测到所述第二文件中存在与所述第一文件中不相同的第一字符串以及所述第二文件中存在所述第一文件中没有的第二字符串,则对所述第一字符串添加第一位置标识,并对第二字符串添加第二位置标识。
进一步地,所述处理器401将所述第一文件中所有的字符串与所述第二文件中所有的字符串进行对比时,具体用于:
将所述第一文件中所有的字符串与所述第二文件中所有的字符串进行对比;
如果检测到所述第二文件中存在与所述第一文件中不相同的第一字符串、以及所述第一文件中存在所述第二文件中没有的第三字符串,则对所述第一字符串添加第一位置标识,并对第三字符串添加第三位置标识。
进一步地,所述处理器401将所述第一文件中所有的字符串与所述第二文件中所有的字符串进行对比时,具体用于:
将所述第一文件中所有的字符串与所述第二文件中所有的字符串进行对比;
如果检测到所述第二文件中存在所述第一文件中没有的第二字符串,以及所述第一文件中存在所述第二文件中没有的第三字符串,则对第二字符串添加第二位置标识,并并对第三字符串添加第三位置标识。
进一步地,所述处理器401将所述第一文件中所有的字符串与所述第二文件中所有的字符串进行对比时,具体用于:
将所述第一文件中所有的字符串与所述第二文件中所有的字符串进行对比;
如果检测到所述第二文件中存在与所述第一文件中不相同的第一字符串、所述第二文件中存在所述第一文件中没有的第二字符串、以及所述第一文件中存在所述第二文件中没有的第三字符串,则对所述第一字符串添加第一位置标识、对第二字符串添加第二位置标识、以及对第三字符串添加第三位置标识。
本申请实施例中,服务器可以获取当前版本安装包的第一文件以及更新版本安装包的第二文件,并根据包括第一文件与第二文件的差异字符串的差分包更新插件,以提高插件更新效率和资源利用率。
应当理解,在本申请实施例中,所称处理器401可以是中央处理单元(CenSral Processing UniS,CPU),该处理器还可以是其他通用处理器、数字信号处理器(DigiSal Signal Processor,DSP)、专用集成电路(ApplicaSion Specific InSegraSed CircuiS,ASIC)、现成可编程门阵列(Field-Programmable GaSe Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。
输入设备402可以包括触控板、麦克风等,输出设备403可以包括显示器(LCD等)、扬声器等。
该存储器404可以包括只读存储器和随机存取存储器,并向处理器401提供指令和数据。存储器404的一部分还可以包括非易失性随机存取存储器。例如,存储器404还可以存储设备类型的信息。
具体实现中,本申请实施例中所描述的处理器401、输入设备402、输出设备403可执行本申请实施例提供的插件更新方法的图1或图2所述的方法实施例中所描述的实现方式,也可执行本申请实施例图3所描述的插件更新设备的实现方式,在此不再赘述。
本申请实施例中还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现图1或图2所对应实施例中描述的插件更新方法,也可实现本申请 图3所对应实施例的插件更新设备,在此不再赘述。在某些实施例中,所述计算机可读存储介质还可以为计算机非易失性可读存储介质,本发明实施例在此处不做具体限定。
所述计算机可读存储介质可以是前述任一实施例所述的插件更新设备的内部存储单元,例如插件更新设备的硬盘或内存。所述计算机可读存储介质也可以是所述插件更新设备的外部存储设备,例如所述插件更新设备上配备的插接式硬盘,智能存储卡(SmarS Media Card,SMC),安全数字(Secure DigiSal,SD)卡,闪存卡(Flash Card)等。进一步地,所述计算机可读存储介质还可以既包括所述插件更新设备的内部存储单元也包括外部存储设备。所述计算机可读存储介质用于存储所述计算机程序以及所述插件更新设备所需的其他程序和数据。所述计算机可读存储介质还可以用于暂时地存储已经输出或者将要输出的数据。
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分,或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个计算机可读存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的计算机可读存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本申请的部分实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本申请的保护范围之内。

Claims (20)

  1. 一种插件更新方法,其特征在于,包括:
    接收目标应用程序发送的插件更新请求,所述插件更新请求包括插件安装包的当前版本信息和更新版本信息;
    根据所述当前版本信息获取当前版本的安装包,并对所述当前版本的安装包进行拆分处理,以得到第一文件;
    根据所述更新版本信息获取更新版本的安装包,并对所述更新版本的安装包进行拆分处理,以得到第二文件;
    将所述第一文件中所有的字符串与所述第二文件中所有的字符串进行对比,确定所述第一文件与所述第二文件的差异字符串,并根据所述差异字符串生成差分包;
    根据所述差分包对所述当前版本的插件进行更新。
  2. 根据权利要求1所述的方法,其特征在于,所述将所述第一文件中所有的字符串与所述第二文件中所有的字符串进行对比,确定所述第一文件与所述第二文件的差异字符串,并根据所述差异字符串生成差分包,包括:
    将所述第一文件中所有的字符串与所述第二文件中所有的字符串进行对比,检测所述第二文件中是否存在与所述第一文件中不相同的第一字符串;
    如果检测到所述第二文件中存在与所述第一文件中不相同的第一字符串,则对所述第一字符串添加第一位置标识,并确定所述第一字符串为所述差异字符串;
    根据所述第一字符串和所述第一位置标识生成差分包。
  3. 根据权利要求2所述的方法,其特征在于,所述根据所述差分包对所述当前版本的插件进行更新,包括:
    对所述差分包进行解压处理,得到携带第一位置标识的第一字符串;
    根据所述第一位置标识将所述第一字符串替换所述第一文件中与所述第一位置标识对应位置的字符串,以对所述当前版本的插件进行更新。
  4. 根据权利要求1-3任一项所述的方法,其特征在于,所述将所述第一文件中所有的字符串与所述第二文件中所有的字符串进行对比,确定所述第一文件与所述第二文件的差异字符串,并根据所述差异字符串生成差分包,包括:
    将所述第一文件中所有的字符串与所述第二文件中所有的字符串进行对比,检测所述第二文件中是否存在所述第一文件中没有的第二字符串;
    如果检测到所述第二文件中存在所述第一文件中没有的第二字符串,则对所述第二字符串添加第二位置标识,并确定所述第二字符串为所述差异字符串;
    根据所述第二字符串和所述第二位置标识生成所述差分包。
  5. 根据权利要求4所述的方法,其特征在于,所述根据所述差分包对所述当前版本的插件进行更新,包括:
    对所述差分包进行解压处理,得到携带第二位置标识的第二字符串;
    根据所述第二位置标识将所述第二字符串添加至所述第一文件中与所述第二位置标识对应的位置,以对所述当前版本的插件进行更新。
  6. 根据权利要求1-3任一项所述的方法,其特征在于,所述将所述第一文件中所有的字符串与所述第二文件中所有的字符串进行对比,确定所述第一文件与所述第二文件的差异字符串,并根据所述差异字符串生成差分包,包括:
    将所述第一文件中所有的字符串与所述第二文件中所有的字符串进行对比,检测所述第一文件中是否存在所述第二文件中没有的第三字符串;
    如果检测到所述第一文件中存在所述第二文件中没有的第三字符串,则对所述第三字符串添加第三位置标识,并确定所述第三字符串为所述差异字符串;
    根据所述第三字符串和所述第三位置标识生成所述差分包。
  7. 根据权利要求1-3任一项所述的方法,其特征在于,所述根据所述差分包对所述当前版本的插件进行更新,包括:
    对所述差分包进行解压处理,得到携带第三位置标识的第三字符串;
    根据所述第三位置标识将所述第一文件中与所述第三位置标识对应位置的第三字符串删除,以对所述当前版本的插件进行更新。
  8. 根据权利要求6所述的方法,其特征在于,所述将所述第一文件中所有的字符串与所述第二文件中所有的字符串进行对比,包括:
    将所述第一文件中所有的字符串与所述第二文件中所有的字符串进行对比;
    如果检测到所述第二文件中存在与所述第一文件中不相同的第一字符串以及所述第二文件中存在所述第一文件中没有的第二字符串,则对所述第一字符串添加第一位置标识,并对第二字符串添加第二位置标识。
  9. 根据权利要求6所述的方法,其特征在于,所述将所述第一文件中所有的字符串与所述第二文件中所有的字符串进行对比,包括:
    将所述第一文件中所有的字符串与所述第二文件中所有的字符串进行对比;
    如果检测到所述第二文件中存在与所述第一文件中不相同的第一字符串、以及所述第一文件中存在所述第二文件中没有的第三字符串,则对所述第一字符串添加第一位置标识,并对第三字符串添加第三位置标识。
  10. 根据权利要求6所述的方法,其特征在于,所述将所述第一文件中所有的字符串与所述第二文件中所有的字符串进行对比,包括:
    将所述第一文件中所有的字符串与所述第二文件中所有的字符串进行对比;
    如果检测到所述第二文件中存在所述第一文件中没有的第二字符串,以及所述第一文件中存在所述第二文件中没有的第三字符串,则对第二字符串添加第二位置标识,并并对第三字符串添加第三位置标识。
  11. 根据权利要求6所述的方法,其特征在于,所述将所述第一文件中所有的字符串与所述第二文件中所有的字符串进行对比,包括:
    将所述第一文件中所有的字符串与所述第二文件中所有的字符串进行对比;
    如果检测到所述第二文件中存在与所述第一文件中不相同的第一字符串、所述第二文件中存在所述第一文件中没有的第二字符串、以及所述第一文件中存在所述第二文件中没有的第三字符串,则对所述第一字符串添加第一位置标识、对第二字符串添加第二位置标识、以及对第三字符串添加第三位置标识。
  12. 一种插件更新设备,其特征在于,包括:
    接收单元,用于接收目标应用程序发送的插件更新请求,所述插件更新请求包括插件安装包的当前版本信息和更新版本信息;
    第一处理单元,用于根据所述当前版本信息获取当前版本的安装包,并对所述当前版本的安装包进行拆分处理,以得到第一文件;
    第二处理单元,用于根据所述更新版本信息获取更新版本的安装包,并对所述更新版本的安装包进行拆分处理,以得到第二文件;
    确定单元,用于将所述第一文件中所有的字符串与所述第二文件中所有的字符串进行对比,确定所述第一文件与所述第二文件的差异字符串,并根据所述差异字符串生成差分包;
    更新单元,用于根据所述差分包对所述当前版本的插件进行更新。
  13. 根据权利要求12所述的设备,其特征在于,所述确定单元将所述第一文件中所有的字符串与所述第二文件中所有的字符串进行对比,确定所述第一文件与所述第二文件的差异字符串,并根据所述差异字符串生成差分包时,具体用于:
    将所述第一文件中所有的字符串与所述第二文件中所有的字符串进行对比,检测所述第二文件中是否存在与所述第一文件中不相同的第一字符串;
    如果检测到所述第二文件中存在与所述第一文件中不相同的第一字符串,则对所述第一字符串添加第一位置标识,并确定所述第一字符串为所述差异字符串;
    根据所述第一字符串和所述第一位置标识生成差分包。
  14. 根据权利要求13所述的设备,其特征在于,所述更新单元根据所述差分包对所述当前版本的插件进行更新时,具体用于:
    对所述差分包进行解压处理,得到携带第一位置标识的第一字符串;
    根据所述第一位置标识将所述第一字符串替换所述第一文件中与所述第一位置标识对应位置的字符串,以对所述当前版本的插件进行更新。
  15. 根据权利要求12-14任一项所述的设备,其特征在于,所述确定单元将所述第一文件中所有的字符串与所述第二文件中所有的字符串进行对比,确定所述第一文件与所述第二文件的差异字符串,并根据所述差异字符串生成差分包时,具体用于:
    将所述第一文件中所有的字符串与所述第二文件中所有的字符串进行对比,检测所述第二文件中是否存在所述第一文件中没有的第二字符串;
    如果检测到所述第二文件中存在所述第一文件中没有的第二字符串,则对所述第二字符串添加第二位置标识,并确定所述第二字符串为所述差异字符串;
    根据所述第二字符串和所述第二位置标识生成所述差分包。
  16. 根据权利要求15所述的设备,其特征在于,所述更新单元根据所述差分包对所述当前版本的插件进行更新时,具体用于:
    对所述差分包进行解压处理,得到携带第二位置标识的第二字符串;
    根据所述第二位置标识将所述第二字符串添加至所述第一文件中与所述第二位置标识对应的位置,以对所述当前版本的插件进行更新。
  17. 根据权利要求12-14任一项所述的设备,其特征在于,所述确定单元将所述第一文件中所有的字符串与所述第二文件中所有的字符串进行对比,确定所述第一文件与所述第二文件的差异字符串,并根据所述差异字符串生成差分包时,具体用于:
    将所述第一文件中所有的字符串与所述第二文件中所有的字符串进行对比,检测所述第一文件中是否存在所述第二文件中没有的第三字符串;
    如果检测到所述第一文件中存在所述第二文件中没有的第三字符串,则对所述第三字符串添加第三位置标识,并确定所述第三字符串为所述差异字符串;
    根据所述第三字符串和所述第三位置标识生成所述差分包。
  18. 根据权利要求12-14任一项所述的设备,其特征在于,所述更新单元根据所述差分包对所述当前 版本的插件进行更新时,具体用于:
    对所述差分包进行解压处理,得到携带第三位置标识的第三字符串;
    根据所述第三位置标识将所述第一文件中与所述第三位置标识对应位置的第三字符串删除,以对所述当前版本的插件进行更新。
  19. 一种服务器,其特征在于,包括处理器、输入设备、输出设备和存储器,所述处理器、输入设备、输出设备和存储器相互连接,其中,所述存储器用于存储计算机程序,所述计算机程序包括程序指令,所述处理器被配置用于调用所述程序指令,执行:
    接收目标应用程序发送的插件更新请求,所述插件更新请求包括插件安装包的当前版本信息和更新版本信息;
    根据所述当前版本信息获取当前版本的安装包,并对所述当前版本的安装包进行拆分处理,以得到第一文件;
    根据所述更新版本信息获取更新版本的安装包,并对所述更新版本的安装包进行拆分处理,以得到第二文件;
    将所述第一文件中所有的字符串与所述第二文件中所有的字符串进行对比,确定所述第一文件与所述第二文件的差异字符串,并根据所述差异字符串生成差分包;
    根据所述差分包对所述当前版本的插件进行更新。
  20. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令当被处理器执行时使所述处理器执行如权利要求1-11任一项所述的方法。
PCT/CN2019/120602 2019-05-21 2019-11-25 一种插件更新方法、设备、服务器及计算机可读存储介质 WO2020233045A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910423150.6A CN110231947A (zh) 2019-05-21 2019-05-21 一种应用程序的插件更新方法、设备、服务器及存储介质
CN201910423150.6 2019-05-21

Publications (1)

Publication Number Publication Date
WO2020233045A1 true WO2020233045A1 (zh) 2020-11-26

Family

ID=67860900

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/120602 WO2020233045A1 (zh) 2019-05-21 2019-11-25 一种插件更新方法、设备、服务器及计算机可读存储介质

Country Status (2)

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

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113138768A (zh) * 2021-04-29 2021-07-20 北京百度网讯科技有限公司 应用程序包生成方法、装置、电子设备以及可读存储介质
CN113434472A (zh) * 2021-06-25 2021-09-24 平安国际智慧城市科技股份有限公司 一种文件生成方法、装置、服务器及存储介质

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110231947A (zh) * 2019-05-21 2019-09-13 深圳壹账通智能科技有限公司 一种应用程序的插件更新方法、设备、服务器及存储介质
CN111522574B (zh) * 2020-03-04 2024-05-03 平安科技(深圳)有限公司 差分包生成方法及相关设备
CN112068864A (zh) * 2020-09-02 2020-12-11 深圳创维-Rgb电子有限公司 终端设备摄像头软件更新方法、装置和终端设备

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105049514A (zh) * 2015-07-30 2015-11-11 北京奇虎科技有限公司 一种文件下载方法和装置
CN105045631A (zh) * 2015-07-30 2015-11-11 北京奇虎科技有限公司 一种升级客户端侧应用程序的方法和装置
CN106648712A (zh) * 2017-02-27 2017-05-10 百度在线网络技术(北京)有限公司 增量更新包的生成方法、装置和服务器
CN106919382A (zh) * 2017-01-22 2017-07-04 百度在线网络技术(北京)有限公司 用于生成应用更新包的方法和装置
CN110231947A (zh) * 2019-05-21 2019-09-13 深圳壹账通智能科技有限公司 一种应用程序的插件更新方法、设备、服务器及存储介质

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102707977A (zh) * 2012-05-17 2012-10-03 江苏中科梦兰电子科技有限公司 一种基于Android应用软件的增量升级方法
CN103428188A (zh) * 2012-05-25 2013-12-04 北京小米科技有限责任公司 一种文件更新方法、装置及相关设备
CN104216727A (zh) * 2013-06-04 2014-12-17 腾讯科技(深圳)有限公司 应用升级方法和系统
CN106330936A (zh) * 2016-08-31 2017-01-11 广州品唯软件有限公司 一种插件数据传输方法、客户端和服务端
CN106681720A (zh) * 2016-12-23 2017-05-17 光锐恒宇(北京)科技有限公司 安装包压缩、解压方法及装置
CN109697071B (zh) * 2017-10-24 2022-02-08 腾讯科技(深圳)有限公司 安装包合成方法、装置、终端及存储介质
CN109471653B (zh) * 2018-09-29 2022-06-17 阿波罗智联(北京)科技有限公司 应用程序的更新方法、电子设备、服务器和存储介质

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105049514A (zh) * 2015-07-30 2015-11-11 北京奇虎科技有限公司 一种文件下载方法和装置
CN105045631A (zh) * 2015-07-30 2015-11-11 北京奇虎科技有限公司 一种升级客户端侧应用程序的方法和装置
CN106919382A (zh) * 2017-01-22 2017-07-04 百度在线网络技术(北京)有限公司 用于生成应用更新包的方法和装置
CN106648712A (zh) * 2017-02-27 2017-05-10 百度在线网络技术(北京)有限公司 增量更新包的生成方法、装置和服务器
CN110231947A (zh) * 2019-05-21 2019-09-13 深圳壹账通智能科技有限公司 一种应用程序的插件更新方法、设备、服务器及存储介质

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113138768A (zh) * 2021-04-29 2021-07-20 北京百度网讯科技有限公司 应用程序包生成方法、装置、电子设备以及可读存储介质
CN113138768B (zh) * 2021-04-29 2023-11-07 北京百度网讯科技有限公司 应用程序包生成方法、装置、电子设备以及可读存储介质
CN113434472A (zh) * 2021-06-25 2021-09-24 平安国际智慧城市科技股份有限公司 一种文件生成方法、装置、服务器及存储介质

Also Published As

Publication number Publication date
CN110231947A (zh) 2019-09-13

Similar Documents

Publication Publication Date Title
WO2020233045A1 (zh) 一种插件更新方法、设备、服务器及计算机可读存储介质
CN112765271B (zh) 区块链交易索引的存储方法、装置、计算机设备及介质
US9201642B2 (en) Extending platform trust during program updates
US9021468B1 (en) Bundling extension installation with web browser installation
TWI712956B (zh) 行動終端應用程式的更新方法和裝置
CN109726067B (zh) 一种进程监控方法以及客户端设备
CN105357204B (zh) 生成终端识别信息的方法及装置
US20210019418A1 (en) Technique for authentication and prerequisite checks for software updates
CN105740016B (zh) 应用程序的增量发布方法和装置、升级方法和装置
CN108280341B (zh) 渠道号添加、安装包校验方法及装置
CN111444547B (zh) 用于数据完整性证明的方法、设备及计算机存储介质
US20140033311A1 (en) Method and apparatus for determining virus-infected files
CN111079125A (zh) 一种应用程序调用第三方库动态提升权限的方法及装置
US20170177395A1 (en) Embedded architecture based on process virtual machine
CN114461223A (zh) 一种代码生成方法、装置及终端设备
CN106775835B (zh) 获取升级文件的方法、服务器及终端
KR20190021773A (ko) 전자 장치 및 그의 데이터 운용 방법
WO2021097624A1 (zh) 一种文件处理方法、文件处理装置及终端设备
CN111782244A (zh) 配置文件的更新方法、装置、计算机设备及存储介质
US11023426B1 (en) Method and system for detection of open source web application version
CN114096946A (zh) 用于管理应用的方法和装置
CN115964721A (zh) 一种程序验证方法及电子设备
US20240120991A1 (en) Method and apparatus for synchronizing time by parsing satellite navigation data
CN105975860B (zh) 一种信任文件管理方法、装置及设备
CN111444548B (zh) 用于数据完整性证明的方法、设备及计算机存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19930111

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 040322)

122 Ep: pct application non-entry in european phase

Ref document number: 19930111

Country of ref document: EP

Kind code of ref document: A1