CN111176679B - Application program updating method and device - Google Patents

Application program updating method and device Download PDF

Info

Publication number
CN111176679B
CN111176679B CN201911349448.3A CN201911349448A CN111176679B CN 111176679 B CN111176679 B CN 111176679B CN 201911349448 A CN201911349448 A CN 201911349448A CN 111176679 B CN111176679 B CN 111176679B
Authority
CN
China
Prior art keywords
application
package
bridging
packet
data table
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911349448.3A
Other languages
Chinese (zh)
Other versions
CN111176679A (en
Inventor
袁潇锋
肖群
王进
胡仲强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
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 China Construction Bank Corp filed Critical China Construction Bank Corp
Priority to CN201911349448.3A priority Critical patent/CN111176679B/en
Publication of CN111176679A publication Critical patent/CN111176679A/en
Application granted granted Critical
Publication of CN111176679B publication Critical patent/CN111176679B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention discloses an application program updating method and device, and relates to the technical field of computers. The method comprises the steps of decompressing and releasing a built-in bridging packet into a sandbox, acquiring a common application data set and corresponding latest version bridging packet information, and updating and storing the current system time into a memory; and receiving an instruction for starting an application program, acquiring current application data and current bridging packet version information, and determining a downloaded application resource packet and a bridging packet by comparing the current application data with the application version number in a corresponding common application data set and comparing the current application data with the bridging packet information of a corresponding latest version so as to finish updating. Therefore, the embodiment of the invention can solve the problems of time waste, flow waste and poor user experience of the existing application update.

Description

Application program updating method and device
Technical Field
The present invention relates to the field of computer technologies, and in particular, to an application program updating method and apparatus.
Background
The user experience is throughout all design and innovation processes, such as the user participating in the design and improvement of building design and working environment and living environment, the user participating in the design and improvement of IT products, and the like. The user experience in IT application design is mainly from the interactive process of the user and the human-machine interface.
As user demands increase, application functions become more powerful, and the volume becomes larger, and application versions iterate continuously.
In the process of implementing the present invention, the inventor finds that at least the following problems exist in the prior art:
in the prior art, the current application version can be checked before each opening of the application, whether a new version exists or not is compared, and if so, the current application version is updated immediately. The disadvantage of this method is that each time the user opens an application, there is a waiting time for checking version updates and version comparisons, resulting in wasted resources and poor timeliness. Even though the application does not have a new version, the user experience is poor waiting for loading.
In addition, in the last version check update, if a new version update is ready, the new version may be implicitly downloaded when the application is opened. The disadvantage of this approach is that the update checks of the user's exit to the background and switch back to the foreground are not taken into account, but only the mere solution is that the application is opened without being in a waiting phase each time. Although the problem of opening the application without waiting each time is solved, the timeliness is made worse.
Disclosure of Invention
In view of the above, the embodiment of the invention provides an application program updating method and device, which can solve the problems of time waste, traffic waste and poor user experience of the existing application updating.
In order to achieve the above objective, according to an aspect of the embodiments of the present invention, an application program update method is provided, which includes releasing a built-in bridge packet to a sandbox, obtaining a common application data set and corresponding latest version of bridge packet information, and storing a current system time update to a memory;
and receiving an instruction for starting an application program, acquiring current application data and current bridging packet version information, and determining a downloaded application resource packet and a bridging packet by comparing the current application data with the application version number in a corresponding common application data set and comparing the current application data with the bridging packet information of a corresponding latest version so as to finish updating.
Optionally, downloading the application resource package and the bridge package includes:
downloading an application resource package from an application program downloading interface, calculating the MD5 value of the downloaded application resource package, and comparing the MD5 value with the MD5 value returned by the application program downloading interface; when the comparison result is consistent, the application resource package is considered to be successfully downloaded, and then the downloaded application resource package is decompressed;
The bridge package is downloaded from the bridge package downloading interface, the MD5 value of the downloaded bridge package is calculated, and the MD5 value returned by the bridge package downloading interface is compared; and when the comparison result is consistent, the bridge package is considered to be successfully downloaded, and then the downloaded bridge package is decompressed.
Optionally, after receiving the instruction for starting the application program, the method includes:
judging whether the cooling time of the first interface is longer than the minimum cooling time;
if yes, calling a first interface, respectively storing the returned common application data set and the corresponding latest version bridging packet information into a common application data table and a bridging packet data table to update the local common application data table and the local bridging packet data table, and recording the successful calling time of the interface; then, acquiring an application version number and corresponding latest version bridging packet information from the updated local common application data table and the bridging packet data table; the common application data set comprises a mapping relation between information of common applications and the latest version numbers of the applications;
if not, directly acquiring the application version number and the corresponding latest version bridging packet information from the local common application data table and the bridging packet data table.
Optionally, the obtaining the application version number and the corresponding latest version of the bridge packet information from the local common application data table and the bridge packet data table includes:
Judging whether an application latest version number corresponding to the started application program exists in a local common application data table;
if yes, acquiring an application latest version number and corresponding latest version bridging packet information from a local common application data table and a bridging packet data table;
if not, calling a second interface to acquire the started application program data and the corresponding latest version bridging packet information; the started application program data comprises a mapping relation between application information and an application latest version number.
Optionally, after determining to download the application resource package and the bridge package, the method includes:
calling a first interface, and respectively storing the returned common application data set and the corresponding latest version bridging packet information into a common application data table and a bridging packet data table to update the local common application data table and the local bridging packet data table;
and storing the current system time update into a memory.
Optionally, after determining to download the application resource package and the bridge package and further completing the update, the method further includes:
when an instruction of selecting the started application program through the latest application program list is received, judging whether the cooling time of the first interface is longer than the minimum cooling time or not;
If yes, calling a first interface, acquiring the started application program data and the corresponding latest version bridging packet information, and recording the current system time update and storing the current system time update into a memory; then, the current application data and the current bridging packet version information are acquired and respectively compared to determine that the downloading application resource packet and the bridging packet are updated;
if not, do not do any operation.
Optionally, determining the download application resource package and the bridge package includes:
and acquiring a preset transition interface and displaying until the updating is completed if the download application resource package and the bridging package are determined.
In addition, the invention also provides an application program updating device, which comprises a processing module, a processing module and a storage module, wherein the processing module is used for decompressing and releasing the built-in bridging packet into a sandbox, acquiring a common application data set and corresponding latest version bridging packet information, and updating and storing the current system time into the memory;
and the updating module is used for receiving an instruction for starting the application program, acquiring the current application data and the current bridging packet version information, and determining to download the application resource packet and the bridging packet by comparing the current application data with the application version number in the corresponding common application data set and comparing the current bridging packet with the corresponding latest version bridging packet information so as to finish updating.
One embodiment of the above invention has the following advantages or benefits: because the built-in bridging package is decompressed and released into the sandbox, the common application data set and the corresponding latest version bridging package information are obtained, and the current system time is updated and stored in the memory; the method comprises the steps of receiving an instruction for starting an application program, obtaining current application data and current bridging packet version information, determining to download an application resource packet and a bridging packet by comparing the current application data with an application version number in a corresponding common application data set and comparing the current bridging packet information with a corresponding latest version bridging packet, and further finishing the technical means of updating.
Further effects of the above-described non-conventional alternatives are described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
FIG. 1 is a schematic diagram of the main flow of an application update method according to a first embodiment of the present invention;
FIG. 2 is a schematic diagram of the main flow of an application update method according to a second embodiment of the present invention;
FIG. 3 is a schematic diagram of the main flow of an application update method according to a third embodiment of the present invention;
FIG. 4 is a schematic diagram of the main flow of an application update method according to a fourth embodiment of the present invention;
FIG. 5 is a schematic diagram of the main modules of an application update apparatus according to an embodiment of the present invention;
FIG. 6 is an exemplary system architecture diagram in which embodiments of the present invention may be applied;
fig. 7 is a schematic diagram of a computer system suitable for use in implementing an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present invention will now be described with reference to the accompanying drawings, in which various details of the embodiments of the present invention are included to facilitate understanding, and are to be considered merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Fig. 1 is a schematic diagram of main flow of an application program update method according to a first embodiment of the present invention, and as shown in fig. 1, the application program update method includes:
Step S101, decompressing and releasing the built-in bridging package into a sandbox, acquiring a common application data set and corresponding latest version bridging package information, and updating and storing the current system time into a memory.
In some embodiments, the Bridge packet may be a Bridge packet, and the Bridge packet is used for a module for communication between the micro-application and the client. The common application refers to an application with the use frequency being larger than a threshold value in a preset time.
In addition, after the common application data set and the corresponding latest version of the bridge packet information are acquired, the bridge packet information can be stored into the common application data table datebase appinfotable and the bridge packet data table datebase bridge.
Step S102, receiving an instruction for starting an application program, acquiring current application data and current bridging packet version information, and determining to download an application resource packet and a bridging packet by comparing the current application data with an application version number in a corresponding common application data set and comparing the current bridging packet with the bridging packet information of a corresponding latest version, thereby finishing updating.
In an embodiment, a common application data table datebase appinfotable and a bridge packet data table datebase bridge may be queried to respectively obtain an application version number and bridge packet information of a corresponding latest version in a corresponding common application data set.
In some embodiments, when downloading application resource packages and bridging packages, the following procedure may be used:
downloading an application resource package from an application program downloading interface (for example, an HTTPS interface provided by a server for downloading the latest micro-application resource package), calculating an MD5 value of the downloaded application resource package, and comparing the MD5 value with an MD5 value returned by the application program downloading interface; and when the comparison result is consistent, the application resource package is considered to be successfully downloaded, and then the downloaded application resource package is decompressed. Of course, when the comparison result is inconsistent, the application resource package is regarded as the download failure.
Downloading the Bridge package from a Bridge package downloading interface (for example, an HTTPS interface provided by a server for downloading the latest Bridge package), calculating the MD5 value of the downloaded Bridge package, and comparing with the MD5 value returned by the Bridge package downloading interface; and when the comparison result is consistent, the bridge package is considered to be successfully downloaded, and then the downloaded bridge package is decompressed. Of course, when the comparison result is inconsistent, the bridge packet is considered to be failed to download.
As other embodiments, after receiving the instruction to start the application, step S102 includes:
And judging whether the cooling time of the first interface is longer than the minimum cooling time. The minimum cooling time is the minimum time interval between two calls of a certain interface, and the data is issued by the server. The cooling time is the time interval between the current time and the success of calling a certain interface last time, and the success time of calling a certain interface each time is recorded in the memory variable of the client.
Preferably, the first interface may be set as an ApiAppInfoTable interface, that is, an HTTPS interface provided by the server side and used for obtaining a set of multiple pieces of commonly used micro-application data (including micro-application configuration and version number, etc.) and version information of the latest Bridge bridging packet.
And if so, calling the first interface, and respectively storing the returned common application data set and the corresponding latest version bridging packet information into a common application data table and a bridging packet data table to update the local common application data table and the local bridging packet data table, and recording the successful calling time of the interface. And then, acquiring the application version number and the corresponding latest version bridging packet information from the updated local common application data table and the bridging packet data table. The common application data set comprises a mapping relation between information of a common application and an application latest version number.
If not, directly acquiring the application version number and the corresponding latest version bridging packet information from the local common application data table and the bridging packet data table.
It should be noted that, in embodiments of the present invention, a silent manner may be used when an interface needs to be invoked.
Further embodiments, obtaining the application version number and the corresponding latest version of the bridge packet information from the local common application data table and the bridge packet data table, including:
and judging whether an application latest version number corresponding to the started application program exists in the local common application data table.
If yes, acquiring the latest version number of the application and the corresponding latest version bridging packet information from the local common application data table and the bridging packet data table.
And if not, calling a second interface, and acquiring the started application program data and the corresponding latest version bridging packet information. The started application program data comprises a mapping relation between application information and an application latest version number. Preferably, the second interface may be set as an ApiAppInfo interface, that is, an HTTPS interface provided by the server side and used for obtaining a certain micro application data and the latest Bridge bridging packet version information.
As still other embodiments, after step S102 determines to download the application resource package and the bridge package, it includes:
And calling a first interface, and respectively storing the returned common application data set and the corresponding latest version bridging packet information into a common application data table and a bridging packet data table to update the local common application data table and the local bridging packet data table. In addition, the current system time update is saved in the memory.
As still other embodiments, step S102 determines to download the application resource package and the bridge package, and further includes, after the update is completed:
when an instruction of selecting an started application program through the latest application program list is received (for example, after the micro application is opened and the user clicks a Home key of the mobile phone to switch to the desktop of the mobile phone, the user clicks the opened micro application program from the latest application program list of the system, and the micro application program wakes up again to display the micro application program), whether the cooling time of the first interface is larger than the minimum cooling time is judged.
If yes, calling a first interface, acquiring the started application program data and the corresponding latest version bridging packet information, and recording the current system time update and storing the current system time update into a memory; and then, acquiring the current application data and the current bridging packet version information to be respectively compared so as to determine that the downloading application resource packet and the bridging packet are updated.
If not, do not do any operation.
It should be further noted that, after determining to download the application resource package and the bridge package, the embodiments of the present invention may acquire a preset transition interface and display the transition interface until the update is completed.
Fig. 2 is a schematic diagram of main flow of an application program updating method according to a second embodiment of the present invention, the application program updating method may include:
step S201, decompressing and releasing the built-in bridging package into a sandbox, acquiring a common application data set and corresponding latest version bridging package information, respectively storing the common application data table and the bridging package data table, and updating and storing the current system time into a memory.
Step S202, receiving an instruction for starting an application program, judging whether the cooling time of the first interface is greater than the minimum cooling time, if yes, proceeding to step S203, otherwise proceeding to step S204.
Step S203, call the first interface, store the returned common application data set and the corresponding latest version bridging packet information into the common application data table and the bridging packet data table respectively, so as to update the local common application data table and the bridging packet data table, record the successful time of interface call, and carry out step S204.
Step S204, the application version number and the corresponding latest version bridging packet information are obtained from the local common application data table and the bridging packet data table.
Preferably, if the application version number of the started application program cannot be obtained from the local common application data table, a second interface (ApiAppInfo interface) may be called to obtain the started application program data.
If the corresponding latest version of the bridge package information cannot be obtained from the bridge package data table, a second interface (ApiAppInfo interface) can be called to obtain the latest version of the bridge package information of the started application program.
Step S205, the current application data and the current bridging packet version information are obtained, and compared with the application version numbers in the corresponding common application data sets and the bridging packet information of the corresponding latest version.
In some embodiments, when comparing the version number of the current application data with the corresponding common application data set and with the corresponding latest version of the bridge package information, if the version number of the current application data is greater than the application version number in the common application data set, there is no need to download the application resource package (i.e., there is no need to execute the download application resource package in step S206), and vice versa. If the current bridge package version information is greater than the corresponding latest version of the bridge package information, then no bridge package needs to be downloaded (i.e., the download bridge package in step S206 need not be performed), and vice versa.
It should be noted that, the comparison between the version number of the current application data and the application version number in the common application data set and the comparison between the version information of the current bridge packet and the corresponding latest version of the bridge packet may be performed simultaneously or may have sequential execution (and the sequential order is not specified).
Step S206, determining to download the application resource package and the bridge package, and finishing updating.
Preferably, when downloading the application resource package, the application resource package is downloaded from the application program downloading interface, the MD5 value of the downloaded application resource package is calculated, and the MD5 value returned by the application program downloading interface is compared; and when the comparison result is consistent, the application resource package is considered to be successfully downloaded, and then the downloaded application resource package is decompressed.
When the bridge package is downloaded, the bridge package is downloaded from a bridge package downloading interface, the MD5 value of the downloaded bridge package is calculated, and the MD5 value returned by the bridge package downloading interface is compared; and when the comparison result is consistent, the bridge package is considered to be successfully downloaded, and then the downloaded bridge package is decompressed.
It should be noted that, the application resource package and the bridge package may be downloaded at the same time or may have sequential execution (and the sequential order is not specified).
Fig. 3 is a schematic diagram of main flow of an application program updating method according to a third embodiment of the present invention, the application program updating method may include:
step S301, decompressing and releasing the built-in bridging package into a sandbox, acquiring a common application data set and corresponding latest version bridging package information, respectively storing the common application data table and the bridging package data table, and updating and storing the current system time into a memory.
Step S302, an instruction for starting an application program is received.
Step S303, the application version number and the corresponding latest version of the bridge package information are obtained from the local common application data table and the bridge package data table.
Preferably, if the application version number of the started application program cannot be obtained from the local common application data table, a second interface (ApiAppInfo interface) may be called to obtain the started application program data.
If the corresponding latest version of the bridge package information cannot be obtained from the bridge package data table, a second interface (ApiAppInfo interface) can be called to obtain the latest version of the bridge package information of the started application program.
Step S304, the current application data and the current bridging packet version information are obtained, and compared with the application version numbers in the corresponding common application data sets and the bridging packet information of the corresponding latest version.
In some embodiments, when comparing the version number of the current application data with the corresponding common application data set and with the corresponding latest version of the bridge package information, if the version number of the current application data is greater than the application version number in the common application data set, there is no need to download the application resource package (i.e., there is no need to execute the download application resource package in step S305), and vice versa. If the current bridge package version information is larger than the corresponding latest version of the bridge package information, no bridge package needs to be downloaded (i.e. the download bridge package in step S305 does not need to be performed), and vice versa.
It should be noted that, the comparison between the version number of the current application data and the application version number in the common application data set and the comparison between the version information of the current bridge packet and the corresponding latest version of the bridge packet may be performed simultaneously or may have sequential execution (and the sequential order is not specified).
Step S305, determining to download the application resource package and the bridge package, and completing the update.
Preferably, when downloading the application resource package, the application resource package is downloaded from the application program downloading interface, the MD5 value of the downloaded application resource package is calculated, and the MD5 value returned by the application program downloading interface is compared; and when the comparison result is consistent, the application resource package is considered to be successfully downloaded, and then the downloaded application resource package is decompressed.
When the bridge package is downloaded, the bridge package is downloaded from a bridge package downloading interface, the MD5 value of the downloaded bridge package is calculated, and the MD5 value returned by the bridge package downloading interface is compared; and when the comparison result is consistent, the bridge package is considered to be successfully downloaded, and then the downloaded bridge package is decompressed.
It should be noted that, the application resource package and the bridge package may be downloaded at the same time or may have sequential execution (and the sequential order is not specified).
Step S306, calling a first interface, and respectively storing the returned common application data set and the corresponding latest version bridging packet information into a common application data table and a bridging packet data table to update the local common application data table and the local bridging packet data table; and storing the current system time update into a memory.
Fig. 4 is a schematic diagram of main flow of an application program updating method according to a fourth embodiment of the present invention, the application program updating method may include:
step S401, decompressing and releasing the built-in bridging package into a sandbox, acquiring a common application data set and corresponding latest version bridging package information, respectively storing the common application data table and the bridging package data table, and updating and storing the current system time into a memory.
Step S402, an instruction for starting an application program is received.
Step S403, the application version number and the corresponding latest version bridging packet information are obtained from the local common application data table and the bridging packet data table.
Step S404, the current application data and the current bridging packet version information are obtained, and compared with the application version number in the corresponding common application data set and the bridging packet information of the corresponding latest version.
In some embodiments, when comparing the version number of the current application data with the corresponding common application data set and with the corresponding latest version of the bridge package information, if the version number of the current application data is greater than the application version number in the common application data set, there is no need to download the application resource package (i.e., there is no need to execute the download application resource package in step S405), and vice versa. If the current bridge package version information is greater than the corresponding latest version of the bridge package information, then no bridge package needs to be downloaded (i.e., the download bridge package in step S405 need not be performed), and vice versa.
It should be noted that, the comparison between the version number of the current application data and the application version number in the common application data set and the comparison between the version information of the current bridge packet and the corresponding latest version of the bridge packet may be performed simultaneously or may have sequential execution (and the sequential order is not specified).
Step S405, determining to download the application resource package and the bridge package, and completing the update.
Preferably, when downloading the application resource package, the application resource package is downloaded from the application program downloading interface, the MD5 value of the downloaded application resource package is calculated, and the MD5 value returned by the application program downloading interface is compared; and when the comparison result is consistent, the application resource package is considered to be successfully downloaded, and then the downloaded application resource package is decompressed.
When the bridge package is downloaded, the bridge package is downloaded from a bridge package downloading interface, the MD5 value of the downloaded bridge package is calculated, and the MD5 value returned by the bridge package downloading interface is compared; and when the comparison result is consistent, the bridge package is considered to be successfully downloaded, and then the downloaded bridge package is decompressed.
It should be noted that, the application resource package and the bridge package may be downloaded at the same time or may have sequential execution (and the sequential order is not specified).
In step S406, an instruction to select the started application program by the latest use program list is received.
Step S407, judging whether the cooling time of the first interface is greater than the minimum cooling time, if yes, proceeding to step S408, otherwise, pushing out the flow.
Step S408, call the first interface, obtain the application program data started and the corresponding bridge package information of the latest version, and record the current system time update and save in the memory.
Step S409, the current application data and the current bridging packet version information are obtained and compared respectively, so as to determine that the downloading application resource packet and the bridging packet are updated.
In summary, the present invention provides various asynchronous update manners (i.e. update at various occasions) to reduce the amount of data interface call acquired by application portal trigger, reduce waiting time of most users at portal interface, and improve user experience. Meanwhile, when a certain time is reached and updating is needed, the updating is triggered, otherwise, the module function is directly entered, frequent triggering and calling of an updating interface are reduced, the pressure of a server is reduced, and meanwhile user experience is improved. In addition, the background switches the detection flow of the foreground, so that the problem that the micro-application update cannot be triggered when a user switches the program back after the program is placed in the background for a long time can be avoided, and the user can use the latest application in time. And the cooling time distributed by the server side is configured, so that the cooling time can be adjusted at any time in the operation process without updating the client side, and the method is beneficial to dynamically adjusting the updating strategy according to market conditions, server states and the like in the operation process so as to achieve the optimal updating scheme under different conditions. And the invention adds MD5 integrity check, which can prevent packet loss in the downloading process, enhance program robustness and reduce error possibility.
Fig. 5 is a schematic diagram of main modules of an application updating apparatus according to an embodiment of the present invention, and as shown in fig. 5, the application updating apparatus 500 includes a processing module 501 and an updating module 502. The processing module 501 decompresses and releases the built-in bridge package into the sandbox, obtains the common application data set and the corresponding latest version of bridge package information, and updates and saves the current system time into the memory. The update module 502 receives an instruction for starting an application program, obtains current application data and current bridge package version information, and determines to download an application resource package and a bridge package by comparing the current application data with an application version number in a corresponding common application data set and comparing the current application data with the bridge package information of a corresponding latest version, thereby completing updating.
In some embodiments, when downloading the application resource package and the bridge package, the update module 502 may download the application resource package from the application download interface, calculate the MD5 value of the downloaded application resource package, and compare with the MD5 value returned by the application download interface; and when the comparison result is consistent, the application resource package is considered to be successfully downloaded, and then the downloaded application resource package is decompressed. In addition, the bridge package can be downloaded from the bridge package downloading interface, the MD5 value of the downloaded bridge package is calculated, and the MD5 value returned by the bridge package downloading interface is compared; and when the comparison result is consistent, the bridge package is considered to be successfully downloaded, and then the downloaded bridge package is decompressed.
As some preferred embodiments, after receiving an instruction to launch an application, the update module 502 includes:
judging whether the cooling time of the first interface is longer than the minimum cooling time;
if yes, calling a first interface, respectively storing the returned common application data set and the corresponding latest version bridging packet information into a common application data table and a bridging packet data table to update the local common application data table and the local bridging packet data table, and recording the successful calling time of the interface; then, acquiring an application version number and corresponding latest version bridging packet information from the updated local common application data table and the bridging packet data table; the common application data set comprises a mapping relation between information of common applications and the latest version numbers of the applications;
if not, directly acquiring the application version number and the corresponding latest version bridging packet information from the local common application data table and the bridging packet data table.
In a further embodiment, when the update module 502 obtains the application version number and the corresponding latest version of the bridge packet information from the local common application data table and the bridge packet data table, the update module includes:
judging whether an application latest version number corresponding to the started application program exists in a local common application data table;
If yes, acquiring an application latest version number and corresponding latest version bridging packet information from a local common application data table and a bridging packet data table;
if not, calling a second interface to acquire the started application program data and the corresponding latest version bridging packet information; the started application program data comprises a mapping relation between application information and an application latest version number.
In other embodiments, the update module 502, after determining to download the application resource package and the bridge package, comprises:
calling a first interface, and respectively storing the returned common application data set and the corresponding latest version bridging packet information into a common application data table and a bridging packet data table to update the local common application data table and the local bridging packet data table; and storing the current system time update into a memory.
In still other embodiments, the update module 502, after determining to download the application resource package and the bridge package, further completes the update, further comprises:
when an instruction of selecting the started application program through the latest application program list is received, judging whether the cooling time of the first interface is longer than the minimum cooling time or not;
if yes, calling a first interface, acquiring the started application program data and the corresponding latest version bridging packet information, and recording the current system time update and storing the current system time update into a memory; then, the current application data and the current bridging packet version information are acquired and respectively compared to determine that the downloading application resource packet and the bridging packet are updated;
If not, do not do any operation.
It should be further noted that, after the update module 502 determines to download the application resource package and the bridge package, a preset transition interface is obtained and displayed until the update is completed.
In the application program updating method and the application program updating device of the present invention, the specific implementation content has a corresponding relationship, so the repeated content is not described.
Fig. 6 illustrates an exemplary system architecture 600 to which the application update method or application update apparatus of embodiments of the present invention may be applied.
As shown in fig. 6, the system architecture 600 may include terminal devices 601, 602, 603, a network 604, and a server 605. The network 604 is used as a medium to provide communication links between the terminal devices 601, 602, 603 and the server 605. The network 604 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
A user may interact with the server 605 via the network 604 using the terminal devices 601, 602, 603 to receive or send messages, etc. Various communication client applications such as shopping class applications, web browser applications, search class applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only) may be installed on the terminal devices 601, 602, 603.
The terminal devices 601, 602, 603 may be various electronic devices with application update screens and supporting web browsing, including but not limited to smartphones, tablets, laptop and desktop computers, and the like.
The server 605 may be a server providing various services, such as a background management server (by way of example only) providing support for shopping-type websites browsed by users using terminal devices 601, 602, 603. The background management server may analyze and process the received data such as the product information query request, and feedback the processing result (e.g., the target push information, the product information—only an example) to the terminal device.
It should be noted that, the application program updating method provided by the embodiment of the present invention is generally executed by the server 605, and accordingly, the computing device is generally disposed in the server 605.
It should be understood that the number of terminal devices, networks and servers in fig. 6 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to FIG. 7, there is illustrated a schematic diagram of a computer system 700 suitable for use in implementing an embodiment of the present invention. The terminal device shown in fig. 7 is only an example, and should not impose any limitation on the functions and the scope of use of the embodiment of the present invention.
As shown in fig. 7, the computer system 700 includes a Central Processing Unit (CPU) 701, which can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 702 or a program loaded from a storage section 708 into a Random Access Memory (RAM) 703. In the RAM703, various programs and data required for the operation of the computer system 700 are also stored. The CPU701, ROM702, and RAM703 are connected to each other through a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
The following components are connected to the I/O interface 705: an input section 706 including a keyboard, a mouse, and the like; an output section 707 including a Cathode Ray Tube (CRT), a liquid crystal application updater (LCD), and the like, and a speaker, and the like; a storage section 708 including a hard disk or the like; and a communication section 709 including a network interface card such as a LAN card, a modem, or the like. The communication section 709 performs communication processing via a network such as the internet. The drive 710 is also connected to the I/O interface 705 as needed. A removable medium 711 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 710 as necessary, so that a computer program read therefrom is mounted into the storage section 708 as necessary.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication portion 709, and/or installed from the removable medium 711. The above-described functions defined in the system of the present invention are performed when the computer program is executed by a Central Processing Unit (CPU) 701.
The computer readable medium shown in the present invention may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules involved in the embodiments of the present invention may be implemented in software or in hardware. The described modules may also be provided in a processor, for example, as: a processor includes a processing module and an updating module. The names of these modules do not constitute a limitation on the module itself in some cases.
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be present alone without being fitted into the device. The computer readable medium carries one or more programs, and when the one or more programs are executed by the device, the device comprises means for decompressing and releasing the built-in bridging packet into a sandbox, acquiring a common application data set and corresponding latest version bridging packet information, and updating and storing the current system time into a memory; and receiving an instruction for starting an application program, acquiring current application data and current bridging packet version information, and determining a downloaded application resource packet and a bridging packet by comparing the current application data with the application version number in a corresponding common application data set and comparing the current application data with the bridging packet information of a corresponding latest version so as to finish updating.
According to the technical scheme provided by the embodiment of the invention, the problems of time waste, flow waste and poor user experience of the existing application update can be solved.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives can occur depending upon design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (10)

1. An application update method, comprising:
releasing the built-in bridging package to a sandbox, acquiring a common application data set and corresponding latest version bridging package information, and updating and storing the current system time to a memory; the bridge package is used for communication between the micro application and the client;
and receiving an instruction for starting an application program, acquiring current application data and current bridging packet version information, and determining a downloaded application resource packet and a bridging packet by comparing the current application data with the application version number in a corresponding common application data set and comparing the current application data with the bridging packet information of a corresponding latest version so as to finish updating.
2. The method of claim 1, wherein downloading the application resource package and the bridge package comprises:
downloading an application resource package from an application program downloading interface, calculating the MD5 value of the downloaded application resource package, and comparing the MD5 value with the MD5 value returned by the application program downloading interface; when the comparison result is consistent, the application resource package is considered to be successfully downloaded, and then the downloaded application resource package is decompressed;
the bridge package is downloaded from the bridge package downloading interface, the MD5 value of the downloaded bridge package is calculated, and the MD5 value returned by the bridge package downloading interface is compared; and when the comparison result is consistent, the bridge package is considered to be successfully downloaded, and then the downloaded bridge package is decompressed.
3. The method of claim 1, wherein after receiving the instruction to launch the application, comprising:
judging whether the cooling time of the first interface is longer than the minimum cooling time;
if yes, calling a first interface, respectively storing the returned common application data set and the corresponding latest version bridging packet information into a common application data table and a bridging packet data table to update the local common application data table and the local bridging packet data table, and recording the successful calling time of the interface; then, acquiring an application version number and corresponding latest version bridging packet information from the updated local common application data table and the bridging packet data table; the common application data set comprises a mapping relation between information of common applications and the latest version numbers of the applications;
if not, directly acquiring the application version number and the corresponding latest version bridging packet information from the local common application data table and the bridging packet data table.
4. A method according to claim 3, wherein obtaining the application version number and the corresponding latest version of the bridge package information from the local common application data table and the bridge package data table comprises:
judging whether an application latest version number corresponding to the started application program exists in a local common application data table;
If yes, acquiring an application latest version number and corresponding latest version bridging packet information from a local common application data table and a bridging packet data table;
if not, calling a second interface to acquire the started application program data and the corresponding latest version bridging packet information; the started application program data comprises a mapping relation between application information and an application latest version number.
5. The method of claim 1, wherein after determining to download the application resource package and the bridge package, comprising:
calling a first interface, and respectively storing the returned common application data set and the corresponding latest version bridging packet information into a common application data table and a bridging packet data table to update the local common application data table and the local bridging packet data table;
and storing the current system time update into a memory.
6. The method of claim 1, wherein after determining to download the application resource package and the bridge package, and further completing the updating, further comprising:
when an instruction of selecting the started application program through the latest application program list is received, judging whether the cooling time of the first interface is longer than the minimum cooling time or not;
if yes, calling a first interface, acquiring the started application program data and the corresponding latest version bridging packet information, and recording the current system time update and storing the current system time update into a memory; then, the current application data and the current bridging packet version information are acquired and respectively compared to determine that the downloading application resource packet and the bridging packet are updated;
If not, do not do any operation.
7. The method of any of claims 1-6, wherein determining to download the application resource package and the bridge package comprises:
and acquiring a preset transition interface and displaying until the updating is completed if the download application resource package and the bridging package are determined.
8. An application updating apparatus, comprising:
the processing module is used for decompressing and releasing the built-in bridging package into the sandbox, acquiring the common application data set and the corresponding latest version bridging package information, and updating and storing the current system time into the memory; the bridge package is used for communication between the micro application and the client;
and the updating module is used for receiving an instruction for starting the application program, acquiring the current application data and the current bridging packet version information, and determining to download the application resource packet and the bridging packet by comparing the current application data with the application version number in the corresponding common application data set and comparing the current bridging packet with the corresponding latest version bridging packet information so as to finish updating.
9. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs,
when executed by the one or more processors, causes the one or more processors to implement the method of any of claims 1-7.
10. A computer readable medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the method according to any of claims 1-7.
CN201911349448.3A 2019-12-24 2019-12-24 Application program updating method and device Active CN111176679B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911349448.3A CN111176679B (en) 2019-12-24 2019-12-24 Application program updating method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911349448.3A CN111176679B (en) 2019-12-24 2019-12-24 Application program updating method and device

Publications (2)

Publication Number Publication Date
CN111176679A CN111176679A (en) 2020-05-19
CN111176679B true CN111176679B (en) 2023-06-16

Family

ID=70654133

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911349448.3A Active CN111176679B (en) 2019-12-24 2019-12-24 Application program updating method and device

Country Status (1)

Country Link
CN (1) CN111176679B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7080371B1 (en) * 1998-03-03 2006-07-18 Siebel Systems, Inc. Method, system, apparatus and program product for distribution and instantiation of software upgrades
US9280338B1 (en) * 2013-03-11 2016-03-08 Amazon Technologies, Inc. Dynamic application updates
CN105653298A (en) * 2014-11-12 2016-06-08 Tcl集团股份有限公司 Application program update method and terminal
CN106155722A (en) * 2015-04-09 2016-11-23 华为技术有限公司 A kind of software method for updating pages and terminal
CN108304207A (en) * 2018-03-01 2018-07-20 上海找钢网信息科技股份有限公司 Mix the resource regeneration method and system of APP application programs
CN108509211A (en) * 2018-02-07 2018-09-07 深圳壹账通智能科技有限公司 Application program updating method, apparatus, mobile terminal and storage medium
CN109117174A (en) * 2018-07-04 2019-01-01 北京德惠众合信息技术有限公司 The system and method for the front end page of compatible different engines

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201224814A (en) * 2010-12-07 2012-06-16 Hon Hai Prec Ind Co Ltd System and method for updating software on android
CN102932777B (en) * 2012-10-24 2016-08-10 华为终端有限公司 The update method of a kind of terminal applies and user terminal
CN104951336B (en) * 2015-05-27 2017-11-17 小米科技有限责任公司 application program installation method and device
CN106528193B (en) * 2015-09-15 2019-11-12 腾讯科技(深圳)有限公司 A kind of application update method and terminal
CN105549996B (en) * 2015-12-10 2020-03-17 网易(杭州)网络有限公司 Application program updating method of mobile terminal and mobile terminal
CN108234171B (en) * 2016-12-15 2021-04-30 腾讯科技(深圳)有限公司 Data processing method, system and device
CN109981522A (en) * 2017-12-27 2019-07-05 深圳市优必选科技有限公司 The compatibility method and device of communication protocol

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7080371B1 (en) * 1998-03-03 2006-07-18 Siebel Systems, Inc. Method, system, apparatus and program product for distribution and instantiation of software upgrades
US9280338B1 (en) * 2013-03-11 2016-03-08 Amazon Technologies, Inc. Dynamic application updates
CN105653298A (en) * 2014-11-12 2016-06-08 Tcl集团股份有限公司 Application program update method and terminal
CN106155722A (en) * 2015-04-09 2016-11-23 华为技术有限公司 A kind of software method for updating pages and terminal
CN108509211A (en) * 2018-02-07 2018-09-07 深圳壹账通智能科技有限公司 Application program updating method, apparatus, mobile terminal and storage medium
CN108304207A (en) * 2018-03-01 2018-07-20 上海找钢网信息科技股份有限公司 Mix the resource regeneration method and system of APP application programs
CN109117174A (en) * 2018-07-04 2019-01-01 北京德惠众合信息技术有限公司 The system and method for the front end page of compatible different engines

Also Published As

Publication number Publication date
CN111176679A (en) 2020-05-19

Similar Documents

Publication Publication Date Title
CN112506584B (en) Resource file loading method, device, equipment, storage medium and product
CN111045833A (en) Interface calling method and device
CN110648216A (en) Wind control method and device
CN107347093B (en) Configuration method and device for distributed server system
CN109408256B (en) Application calling method and device
CN113282589A (en) Data acquisition method and device
CN112685481B (en) Data processing method and device
CN113010238A (en) Permission determination method, device and system for micro application call interface
CN115934076B (en) Cross-platform client micro-service providing device and method and electronic equipment
CN111176679B (en) Application program updating method and device
CN113760487B (en) Service processing method and device
CN112966201B (en) Object processing method, device, electronic equipment and storage medium
CN116861397A (en) Request processing method, device, electronic equipment and computer readable medium
CN109213815B (en) Method, device, server terminal and readable medium for controlling execution times
CN111737218A (en) File sharing method and device
WO2019223759A1 (en) Method and device for displaying wireless access point information
CN109840073B (en) Method and device for realizing business process
CN113127416A (en) Data query method and device
CN114237752B (en) Push page display method and device, electronic equipment and storage medium
CN114401300B (en) Cloud application control method, device, equipment, medium and program product
CN111314457B (en) Method and device for setting virtual private cloud
CN113472565B (en) Method, apparatus, device and computer readable medium for expanding server function
CN110262756B (en) Method and device for caching data
CN112487001A (en) Method and device for processing request
CN116775670A (en) Data interaction method and device, electronic equipment and readable storage medium

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20221009

Address after: 25 Financial Street, Xicheng District, Beijing 100033

Applicant after: CHINA CONSTRUCTION BANK Corp.

Address before: 25 Financial Street, Xicheng District, Beijing 100033

Applicant before: CHINA CONSTRUCTION BANK Corp.

Applicant before: Jianxin Financial Science and Technology Co.,Ltd.

GR01 Patent grant
GR01 Patent grant