CN110515642A - A kind of application program updating method and system - Google Patents

A kind of application program updating method and system Download PDF

Info

Publication number
CN110515642A
CN110515642A CN201910822460.5A CN201910822460A CN110515642A CN 110515642 A CN110515642 A CN 110515642A CN 201910822460 A CN201910822460 A CN 201910822460A CN 110515642 A CN110515642 A CN 110515642A
Authority
CN
China
Prior art keywords
application program
upgrading
primary application
helper applications
primary
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.)
Granted
Application number
CN201910822460.5A
Other languages
Chinese (zh)
Other versions
CN110515642B (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.)
Hangzhou Lifesmart Technology Co Ltd
Original Assignee
Hangzhou Lifesmart Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Lifesmart Technology Co Ltd filed Critical Hangzhou Lifesmart Technology Co Ltd
Priority to CN201910822460.5A priority Critical patent/CN110515642B/en
Publication of CN110515642A publication Critical patent/CN110515642A/en
Application granted granted Critical
Publication of CN110515642B publication Critical patent/CN110515642B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Abstract

The invention discloses a kind of application program updating methods, which comprises runs primary application program and HELPER APPLICATIONS in smart machine simultaneously, the primary application program runs on foreground, and the HELPER APPLICATIONS silence runs on backstage;When receiving upgrade notification information, the primary application program downloads application program updating packet, the HELPER APPLICATIONS saves the current operating conditions information of the primary application program, and the HELPER APPLICATIONS is run to foreground, and shows a upgrading interface on the smart machine;The HELPER APPLICATIONS upgrades the primary application program according to the application program updating packet;After the primary application program upgrades successfully, the operating status of the primary application program after upgrading is restored to the operating status to upgrading.Through the invention, it is not necessarily to user intervention escalation process, completes automatic updating.

Description

A kind of application program updating method and system
Technical field
The present invention relates to software upgrading technical field more particularly to a kind of application program updating method and system.
Background technique
After smart machine is installed, application software opens operation on the smart machine.When application program has more When new, need to upgrade smart machine.In prior art, user is needed to click application version update, program A series of upgrade steps such as downloading and program upgrading guarantee smart machine just to realize complete application version upgrading Often operation.The technical solution of this application program updating needs user to go intervention that could complete upgrading, in the process entirely upgraded In, the interface of smart machine is in black state, and poor experience effect is brought to user.
Therefore, the present invention proposes a kind of technical solution of application program updating, to solve the problems of the prior art, is not necessarily to User intervention, which achieves that, is automatically performed upgrading.
Summary of the invention
The purpose of the present invention is to provide a kind of application program updating method and system, solve the problems of the prior art, Improve the experience effect of user.
To achieve the above object, the present invention provides a kind of application program updating methods, which comprises
S1, primary application program and HELPER APPLICATIONS are run simultaneously in smart machine, wherein the primary application program fortune Row Yu Qiantai, the HELPER APPLICATIONS silence run on backstage;
S2, when receiving upgrade notification information, the primary application program downloads application program updating packet, and sends The notification information completed is carried to the HELPER APPLICATIONS;
S3, after receiving the notification information that the downloading is completed, the HELPER APPLICATIONS, which saves, described main applies journey The current operating conditions information of sequence runs the HELPER APPLICATIONS to foreground, and shows a upgrading interface in the intelligence In equipment;
S4, the HELPER APPLICATIONS upgrade the primary application program according to the application program updating packet, and After upgrading successfully, primary application program after starting the upgrading simultaneously makes its operation to foreground;
Primary application program after S5, the upgrading is according to the current operating conditions information of the preservation, by the master after upgrading The operating status of application program restores the operating status to upgrading.
Preferably, the step S1 includes:
The primary application program and HELPER APPLICATIONS are stored in a pre-set system partitioning, and the master answers It is set as forbidding unloaded state with program and HELPER APPLICATIONS.
Preferably, the step S2 is specifically included:
The primary application program periodically sends upgrading request to server;
The server sends a upgrade notification information to the primary application program, institute according to the upgrading request State the latest edition number, download address and downloading software check code that upgrade notification information includes application program;
The primary application program is according to the latest edition number in the upgrade notification information, with working as the primary application program Preceding version number is compared, and determines whether the main application journey upgrades according to the comparison result.
Preferably, the step S2 further include:
When determining the upgrading primary application program, the primary application program applies journey according to the download address, downloading Sequence upgrade package;
After the completion of downloading, the primary application program answers the downloading completion according to the downloading software check code It is verified with program upgrade package;
If verification passes through, the primary application program obtains and stores the application program updating packet to a preset file and deposits It stores up under path, the application program updating packet includes packet installation file, upgrade script and upgrade checkout code;
When the application program updating packet download complete and verify pass through after, the primary application program sends one and has downloaded At notification information to the HELPER APPLICATIONS.
Preferably, the step S3 includes:
The HELPER APPLICATIONS generates a dialog box, and the dialog box is shown in display circle of the smart machine On face, " upgrading " information is shown in the dialog box, and the dialog box is set as forbidding cancelling;
The HELPER APPLICATIONS backs up the currently running primary application program.
Preferably, the step S4 includes:
The HELPER APPLICATIONS closes currently running primary application program, and obtains system-level update permission;
The HELPER APPLICATIONS carries out update according to the application program updating packet, to the primary application program;
After the completion of primary application program upgrading, according to the upgrade checkout code, to main using journey after the upgrading Preface part is verified, if verification passes through, the primary application program is upgraded successfully, and otherwise, the primary application program upgrading is lost It loses;
After upgrading successfully, the HELPER APPLICATIONS starts the primary application program after the upgrading and runs it to preceding Platform.
Preferably, further include step S6 after Yu Suoshu step S5:
After the operating status of primary application program after the upgrading restores the operating status to upgrading, after the upgrading Primary application program send an operation success notification information to the HELPER APPLICATIONS;
The HELPER APPLICATIONS removes at the upgrading interface in the intelligence according to the operation success notification information In equipment;
The HELPER APPLICATIONS silence runs on backstage.
Preferably, the method also includes:
If after primary application program upgrading failure, the HELPER APPLICATIONS is by the version rollback of the primary application program Primary application program version before to upgrading;
The HELPER APPLICATIONS is according to the current operating conditions information of the primary application program, by primary application program version Operating status restore the operating status to upgrading, and execute step S6.
According to foregoing invention purpose, the present invention provides a kind of application program updating system, the system comprises:
Starting module, for running primary application program and HELPER APPLICATIONS simultaneously in smart machine, wherein the master Application program runs on foreground, and the HELPER APPLICATIONS silence runs on backstage;
Download module, for when receiving upgrade notification information, the primary application program downloads application program updating packet, And notification information that a downloading is completed is sent to the HELPER APPLICATIONS;
Memory module, for after receiving the notification information that the downloading is completed, the HELPER APPLICATIONS to save institute The current operating conditions information for stating primary application program runs the HELPER APPLICATIONS to foreground, and shows a upgrading interface In on the smart machine;
Upgraded module, for the HELPER APPLICATIONS according to the application program updating packet, to the primary application program Upgraded, and after upgrading successfully, the primary application program after starting the upgrading simultaneously makes its operation to foreground;
Recovery module will for the primary application program after the upgrading according to the current operating conditions information of the preservation The operating status of primary application program after upgrading restores the operating status to upgrading.
Preferably, the system also includes:
Notification module, the operating status for the primary application program after upgrading restore the operating status to upgrading Afterwards, the primary application program sends an operation success notification information to the HELPER APPLICATIONS;
Remove module, for the HELPER APPLICATIONS according to the operation success notification information, by the upgrading interface It removes on the smart machine.
Compared with prior art, a kind of application program updating method and system of the present invention, it is brought to have the beneficial effect that In It during application program updating, is achieved that without user intervention and is automatically performed upgrading, do not have to restart intelligent set after the completion of upgrading It is standby;After the completion of application program updating, application program can automatically restore to the operating status before upgrading;Ensure entirely to upgrade Journey does not influence for users, and be able to detect that program upgrading failure after, be automatically retracted back into original version, with guarantee The normal operation of smart machine;Improve the experience effect of user;It can guarantee that the smart machine sold can use up to the greatest extent The new function for using new version fastly, ensure that the upgrading coverage rate of application program new version, bring in time to user new Experience.
Detailed description of the invention
Fig. 1 is the flow chart of application program updating method middle according to one embodiment of present invention.
Fig. 2 is the system schematic of application program updating system middle according to one embodiment of present invention.
Specific embodiment
Below with reference to specific embodiment shown in the drawings, the present invention will be described in detail, but these embodiments are simultaneously The present invention is not limited, structure that those skilled in the art are made according to these embodiments, method or functionally Transformation is included within the scope of protection of the present invention.
In one embodiment of the invention as shown in Figure 1, the present invention provides a kind of application program updating method, the method packet It includes:
S1, primary application program and HELPER APPLICATIONS are run simultaneously in smart machine, wherein the primary application program fortune Row Yu Qiantai, the HELPER APPLICATIONS silence run on backstage;
S2, when receiving upgrade notification information, the primary application program downloads application program updating packet, and sends The notification information completed is carried to the HELPER APPLICATIONS;
S3, after receiving the notification information that the downloading is completed, the HELPER APPLICATIONS, which saves, described main applies journey The current operating conditions information of sequence runs the HELPER APPLICATIONS to foreground, and shows a upgrading interface in the intelligence In equipment;
S4, the HELPER APPLICATIONS upgrade the primary application program according to the application program updating packet, and After upgrading successfully, primary application program after starting the upgrading simultaneously makes its operation to foreground;
Primary application program after S5, the upgrading is according to the current operating conditions information of the preservation, by the master after upgrading The operating status of application program restores the operating status to upgrading.
The running environment for running on Android system of heretofore described primary application program and HELPER APPLICATIONS.Described In step S1, primary application program and HELPER APPLICATIONS are run simultaneously in smart machine.A specific implementation according to the present invention Example, the step S1 include: that the primary application program and HELPER APPLICATIONS are stored in a pre-set system partitioning, and And the primary application program and HELPER APPLICATIONS are set as forbidding unloaded state, user cannot unload the primary application program And HELPER APPLICATIONS.After smart machine electrifying startup, the primary application program and HELPER APPLICATIONS automatic starting simultaneously Operation.The primary application program runs on system foreground, complete with the information exchange of user, the operation for responding user interface etc., Complete the normal operation of application program.The HELPER APPLICATIONS is run in system background silence, and user can not perceive described The presence of HELPER APPLICATIONS.
In the step S2, when receiving upgrading request, the primary application program downloads application program updating Packet, and notification information that a downloading is completed is sent to the HELPER APPLICATIONS.Specifically, the primary application program keeps and takes The communication connection of business device, establishes the data communication channel with server, to obtain the data information of server in real time, guarantees application The data of program are newest.A specific embodiment according to the present invention, the step S2 are specifically included: the primary application program Upgrading request periodically is sent to server, whether new application version needs to upgrade to obtain;The server root According to the upgrading request, a upgrade notification information is sent to the primary application program, the upgrade notification information includes answering With the latest edition number of program, download address and downloading software check code;The primary application program is believed according to the upgrade notification Latest edition number in breath is compared with the current version number of the primary application program, determines institute according to the comparison result State whether main application journey upgrades.The upgrade notification information further include whether primary application program described in mandatory upgrade.It is risen when determining When the grade primary application program, the primary application program automatically links to the download address according to the download address, and downloading is answered With program upgrade package.After the completion of downloading, the primary application program completes the downloading according to the downloading software check code Application program updating packet verified, if verification passes through, obtain and store the application program updating packet to one preset Under file store path, the application program updating packet includes packet installation file, upgrade script and upgrade checkout code.Pass through downloading Software test code is verified, with the application program updating packet of determining downloading for correct upgrade package, in order to avoid the liter of downloading mistake Grade packet.After downloading is completed and application program updating packet verification passes through, the primary application program sends what a downloading was completed Notification information is to the HELPER APPLICATIONS.It can be by interprocess communication side between the primary application program and HELPER APPLICATIONS Formula completes data communication.
In the step S3, after receiving the notification information that the downloading is completed, the HELPER APPLICATIONS is saved The current operating conditions information of the primary application program runs the HELPER APPLICATIONS to foreground, and shows a upgrading circle Face is on the smart machine.When the auxiliary program receives the notification information that the downloading that the primary application program is sent is completed Afterwards, the HELPER APPLICATIONS saves the current operating conditions information of the primary application program, that is, saves the primary application program Snapshot, the current operating conditions information of the main program includes that current interface shows that information, current interactive information, user log in Information, configuration information etc..The HELPER APPLICATIONS is run to foreground, and shows a upgrading interface on the smart machine. A specific embodiment of the invention, the HELPER APPLICATIONS generates a dialog box, and the dialog box is shown in the intelligence On the display interface of energy equipment, " upgrading " information is shown in the dialog box, and dialog box setting is forbidden cancelling, The dialog box is forbidden to carry out cancellation operation.The HELPER APPLICATIONS backs up the currently running primary application program, to work as After the primary application program upgrading failure, it return back to currently running primary application program.
In the step S4, the HELPER APPLICATIONS is according to the application program updating packet, to described main using journey Sequence is upgraded, and after upgrading successfully, and the primary application program after starting the upgrading simultaneously makes its operation to foreground.Specifically, The HELPER APPLICATIONS closes currently running primary application program, and carries out edition upgrading to the primary application program.It is described HELPER APPLICATIONS obtains system-level update permission.The HELPER APPLICATIONS is right according to the application program updating packet The primary application program carries out update.The escalation process of the HELPER APPLICATIONS real-time detection primary application program;Work as institute After the completion of stating primary application program upgrading, according to the upgrade checkout code, whether the primary application program file after verifying the upgrading Correctly, if verification passes through, the primary application program is upgraded successfully;Otherwise the primary application program upgrading failure.As the master After application program updating success, the HELPER APPLICATIONS starts the primary application program after the upgrading, after the upgrading Primary application program is run to foreground.According to the technical solution, when primary application program upgrading, HELPER APPLICATIONS is run to preceding Platform, and pop up pop-up and be shown on the interface of smart machine, primary application program is run to backstage, by HELPER APPLICATIONS to master Application program is upgraded, and silently installation replaces the primary application program of current version, is not needed user and is gone to intervene upgrading, just The upgrading of primary application program can be automatically performed.
In the step S5, primary application program after the upgrading according to the current operating conditions information of the preservation, The operating status of primary application program after upgrading is restored to the operating status to upgrading.Specifically, according to described main using journey The operating status of primary application program after upgrading is restored the operating status to upgrading, i.e., by the current operating conditions information of sequence Interface display information, interactive information, user's logon information, configuration information etc. before restoring upgrading.According to the technical solution, will rise Primary application program after grade restores the operating status to upgrading, and for users, upgrading does not affect, system interface It is preceding consistent with upgrading, improve the experience effect of user.
A specific embodiment according to the present invention further includes step S6 after Yu Suoshu step S5: the master after upgrading After the operating status of application program restores the operating status to upgrading, primary application program after the upgrading send an operation at For function notification information to the HELPER APPLICATIONS, the HELPER APPLICATIONS, will be described according to the operation success notification information Upgrade interface to remove on the smart machine;The HELPER APPLICATIONS silence runs on backstage.The primary application program liter Grade is completed.
A specific embodiment according to the present invention, the method also includes: if after primary application program upgrading failure, institute HELPER APPLICATIONS is stated by the primary application program version before the version rollback of the primary application program to upgrading;The assistance application Program is restored the operating status of primary application program version to upgrading according to the current operating conditions information of the primary application program Preceding operating status;It is described main using journey after the operating status of the primary application program restores the operating status to upgrading Sequence sends an operation success notification information to the HELPER APPLICATIONS, and the HELPER APPLICATIONS successfully leads to according to described run Know information, the upgrading interface is removed on the smart machine;The HELPER APPLICATIONS silence runs on backstage.According to The technical solution is automatically retracted back into original version, after detecting program upgrading failure to guarantee the normal fortune of smart machine Row.
A specific embodiment according to the present invention, when HELPER APPLICATIONS upgrading, the upgrade step is same The upgrade step of the primary application program is consistent, and the upgrading of installation HELPER APPLICATIONS is assisted by primary application program.For more Using system resource and system resource is saved well, the version of HELPER APPLICATIONS can be with the version of the primary application program not Unanimously.
It according to the technical solution, is run by setting primary application program and HELPER APPLICATIONS, when upgrading, is passed through simultaneously HELPER APPLICATIONS rises primary application program and completes automatic grade, achieves that without user intervention and is automatically performed upgrading, has upgraded Do not have to restart smart machine at rear;After the completion of application program updating, application program can automatically restore to the operation shape before upgrading State;Ensure entire escalation process, do not influence for users, and be able to detect that program upgrading failure after, automatic rollback To original version, to guarantee the normal operation of smart machine;Improve the experience effect of user.
In one embodiment of the invention as shown in Figure 2, the present invention provides a kind of application program updating system, the system packet It includes:
Starting module 20, for running primary application program and HELPER APPLICATIONS simultaneously in smart machine, wherein described Primary application program runs on foreground, and the HELPER APPLICATIONS silence runs on backstage;
Download module 21, for when receiving upgrade notification information, the primary application program to download application program updating Packet, and notification information that a downloading is completed is sent to the HELPER APPLICATIONS;
Memory module 22, for after receiving the notification information that the downloading is completed, the HELPER APPLICATIONS to be saved The current operating conditions information of the primary application program runs the HELPER APPLICATIONS to foreground, and shows a upgrading circle Face is on the smart machine;
Upgraded module 23, for the HELPER APPLICATIONS according to the application program updating packet, to described main using journey Sequence is upgraded, and after upgrading successfully, and the primary application program after starting the upgrading simultaneously makes its operation to foreground;
Recovery module 24, for the primary application program after the upgrading according to the current operating conditions information of the preservation, The operating status of primary application program after upgrading is restored to the operating status to upgrading.
The running environment for running on Android system of heretofore described primary application program and HELPER APPLICATIONS.It is described to open Primary application program and HELPER APPLICATIONS are run in dynamic model block simultaneously, wherein the primary application program runs on foreground, described auxiliary Assisted application program silence runs on backstage in smart machine while running primary application program and HELPER APPLICATIONS.According to this hair A bright specific embodiment, the starting module further include storage unit, and the storage unit is by the primary application program and auxiliary Assisted application program is stored in a pre-set system partitioning, and the primary application program and HELPER APPLICATIONS are set as Forbid unloading.After smart machine electrifying startup, the starting module starts the operation primary application program simultaneously and auxiliary is answered Use program.The primary application program runs on system foreground, completes the operation with the information exchange of user, response user interface Deng.The HELPER APPLICATIONS is run in system background silence, and user can not perceive the presence of the HELPER APPLICATIONS.
In the download module, when receiving upgrading request, the primary application program downloads application program liter Grade packet, and notification information that a downloading is completed is sent to the HELPER APPLICATIONS.Specifically, the primary application program periodically to Server sends upgrading request;The server sends a upgrade notification information to institute according to the upgrading request Primary application program is stated, the upgrade notification information includes the latest edition number, download address and downloading software check of application program Code;Current version of the primary application program according to the latest edition number in the upgrade notification information, with the primary application program This number is compared, and determines whether the main application journey upgrades according to the comparison result;When determining upgrading is described main using journey When sequence, the primary application program downloads application program updating packet according to the download address;After the completion of downloading, the master is answered With program according to the downloading software check code, the application program updating packet completed to the downloading is verified, if verification is logical It crosses, then obtain and stores under the application program updating packet to a preset file store path, and send what a downloading was completed For notification information to the HELPER APPLICATIONS, the application program updating packet includes packet installation file, upgrade script and upgrading school Test code.
In the memory module, when the auxiliary program receives the logical of the downloading completion that the primary application program is sent After knowing information, the HELPER APPLICATIONS saves the current operating conditions information of the primary application program, and the main program is worked as Preceding running state information includes that current interface shows information, current interactive information, user's logon information, configuration information etc..It is described HELPER APPLICATIONS is run to foreground, and shows a upgrading interface on the smart machine.
In the upgrading mould, the HELPER APPLICATIONS closes currently running primary application program, and answers the master Edition upgrading is carried out with program, and after upgrading successfully, the primary application program after starting the upgrading simultaneously makes its operation to foreground. In the upgraded module, the HELPER APPLICATIONS obtains system-level update permission.The HELPER APPLICATIONS according to The application program updating packet carries out update to the primary application program.After the completion of primary application program upgrading, root According to the upgrade checkout code, whether the primary application program file after verifying the upgrading is correct, if verification passes through, the master is answered It is upgraded successfully with program;Otherwise the primary application program upgrading failure.After the primary application program upgrades successfully, the auxiliary Primary application program after upgrading described in application program launching, the primary application program after the upgrading is run to foreground.
The recovery module is according to the current operating conditions information of the primary application program, by the primary application program after upgrading Operating status restore the operating status to upgrading, that is, interface display information, interactive information before restoring upgrading, user log in Information, configuration information etc..
A specific embodiment according to the present invention, the system also includes notification modules and remove module.The notice mould It is described main using journey after the operating status of the primary application program after upgrading restores the operating status to upgrading in block Sequence sends an operation success notification information to the HELPER APPLICATIONS.In the remove module, the HELPER APPLICATIONS root According to the operation success notification information, the upgrading interface is removed on the smart machine.
A specific embodiment according to the present invention, the system also includes upgrading failure module, the upgrading failure module In, if the primary application program upgrading failure after, the HELPER APPLICATIONS by the version rollback of the primary application program to liter Primary application program version before grade;The HELPER APPLICATIONS, will according to the current operating conditions information of the primary application program The operating status of primary application program version restores the operating status to upgrading;The operation of primary application program after the upgrading After state restores the operating status to upgrading, the primary application program sends operation success notification information a to auxiliary and answers With program, the HELPER APPLICATIONS removes at the upgrading interface in the intelligence according to the operation success notification information In equipment;The HELPER APPLICATIONS silence runs on backstage.
It according to the technical solution, is achieved that without user intervention and is automatically performed upgrading, do not have to restart intelligence after the completion of upgrading It can equipment;After the completion of application program updating, application program can automatically restore to the operating status before upgrading;And it is able to detect To after program upgrading failure, it is automatically retracted back into original version, to guarantee the normal operation of smart machine;Improve the experience of user Effect.
Although for illustrative purposes, the preferred embodiment of the present invention is had been disclosed, but the ordinary skill people of this field Member will realize without departing from the scope and spirit of the invention as disclosed by the appended claims, various to change Into, increase and replace be possible.

Claims (10)

1. a kind of application program updating method, which is characterized in that the described method includes:
S1, primary application program and HELPER APPLICATIONS are run simultaneously in smart machine, wherein the primary application program is run on Foreground, the HELPER APPLICATIONS silence run on backstage;
S2, when receiving upgrade notification information, the primary application program downloads application program updating packet, and sends one and downloaded At notification information to the HELPER APPLICATIONS;
S3, when receive it is described downloading complete notification information after, the HELPER APPLICATIONS saves the primary application program Current operating conditions information runs the HELPER APPLICATIONS to foreground, and shows a upgrading interface in the smart machine On;
S4, the HELPER APPLICATIONS upgrade the primary application program according to the application program updating packet, and when liter After grade success, primary application program after starting the upgrading simultaneously makes its operation to foreground;
Primary application program after S5, the upgrading is according to the current operating conditions information of the preservation, by the main application after upgrading The operating status of program restores the operating status to upgrading.
2. application program updating method as described in claim 1, which is characterized in that the step S1 includes: the main application Program and HELPER APPLICATIONS are stored in a pre-set system partitioning, and the primary application program and assistance application journey Sequence is set as forbidding unloaded state.
3. application program updating method as described in claim 1, which is characterized in that the step S2 is specifically included:
The primary application program periodically sends upgrading request to server;
The server sends a upgrade notification information to the primary application program, the liter according to the upgrading request Grade notification information includes the latest edition number, download address and downloading software check code of application program;
Current version of the primary application program according to the latest edition number in the upgrade notification information, with the primary application program This number is compared, and determines whether the main application journey upgrades according to the comparison result.
4. application program updating method as claimed in claim 3, which is characterized in that the step S2 further include:
When determining the upgrading primary application program, the primary application program downloads application program liter according to the download address Grade packet;
After the completion of downloading, the primary application program is according to the downloading software check code, the application journey completed to the downloading Sequence upgrade package is verified;
If verification passes through, the primary application program obtains and stores the application program updating packet to a preset file storage road Under diameter, the application program updating packet includes packet installation file, upgrade script and upgrade checkout code;
When the application program updating packet download complete and verify pass through after, the primary application program sends what a downloading was completed Notification information is to the HELPER APPLICATIONS.
5. application program updating method as described in claim 1, which is characterized in that the step S3 includes: that the auxiliary is answered With one dialog box of Program Generating, and the dialog box is shown on the display interface of the smart machine, in the dialog box Show " upgrading " information, and the dialog box is set as forbidding cancelling;
The HELPER APPLICATIONS backs up the currently running primary application program.
6. application program updating method as claimed in claim 4, sign is that the step S4 includes: the assistance application The currently running primary application program of stop, and obtain system-level update permission;The HELPER APPLICATIONS is according to institute Application program updating packet is stated, update is carried out to the primary application program;
After the completion of primary application program upgrading, according to the upgrade checkout code, to the primary application program text after the upgrading Part is verified, if verification passes through, the primary application program is upgraded successfully, otherwise, the primary application program upgrading failure;
After upgrading successfully, the HELPER APPLICATIONS starts the primary application program after the upgrading and makes its operation to foreground.
7. application program updating method as claimed in claim 6, which is characterized in that further include step after Yu Suoshu step S5 S6:
Master after the operating status of primary application program after the upgrading restores the operating status to upgrading, after the upgrading Application program sends an operation success notification information to the HELPER APPLICATIONS;
The HELPER APPLICATIONS removes at the upgrading interface in the smart machine according to the operation success notification information On;
The HELPER APPLICATIONS silence runs on backstage.
8. programme upgrade method the use as claimed in claim 7, which is characterized in that the method also includes: if the master answers After program upgrading failure, the HELPER APPLICATIONS will be main using journey before the version rollback of the primary application program to upgrading Sequence version;
The HELPER APPLICATIONS is according to the current operating conditions information of the primary application program, by the fortune of primary application program version Row state restores the operating status to upgrading, and executes step S6.
9. a kind of application program updating system, which is characterized in that the system comprises:
Starting module, for running primary application program and HELPER APPLICATIONS simultaneously in smart machine, wherein the main application Program runs on foreground, and the HELPER APPLICATIONS silence runs on backstage;
Download module, for when receiving upgrade notification information, the primary application program to download application program updating packet, concurrently Send the notification information of downloading completion to the HELPER APPLICATIONS;
Memory module, for after receiving the notification information that the downloading is completed, the HELPER APPLICATIONS to save the master The current operating conditions information of application program runs the HELPER APPLICATIONS to foreground, and shows a upgrading interface in institute It states on smart machine;
Upgraded module carries out the primary application program for the HELPER APPLICATIONS according to the application program updating packet Upgrade, and after upgrading successfully, the primary application program after starting the upgrading simultaneously makes its operation to foreground;
Recovery module will upgrade for the primary application program after the upgrading according to the current operating conditions information of the preservation The operating status of primary application program afterwards restores the operating status to upgrading.
10. application program updating system as claimed in claim 9, which is characterized in that the system also includes: notification module, After operating status for the primary application program after upgrading restores the operating status to upgrading, the primary application program An operation success notification information is sent to the HELPER APPLICATIONS;
Remove module removes the upgrading interface for the HELPER APPLICATIONS according to the operation success notification information In on the smart machine.
CN201910822460.5A 2019-09-02 2019-09-02 Application program upgrading method and system Active CN110515642B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910822460.5A CN110515642B (en) 2019-09-02 2019-09-02 Application program upgrading method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910822460.5A CN110515642B (en) 2019-09-02 2019-09-02 Application program upgrading method and system

Publications (2)

Publication Number Publication Date
CN110515642A true CN110515642A (en) 2019-11-29
CN110515642B CN110515642B (en) 2022-04-29

Family

ID=68630230

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910822460.5A Active CN110515642B (en) 2019-09-02 2019-09-02 Application program upgrading method and system

Country Status (1)

Country Link
CN (1) CN110515642B (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4724521A (en) * 1986-01-14 1988-02-09 Veri-Fone, Inc. Method for operating a local terminal to execute a downloaded application program
US20050210459A1 (en) * 2004-03-12 2005-09-22 Henderson Gary S Controlling installation update behaviors on a client computer
CN101699399A (en) * 2009-11-03 2010-04-28 中兴通讯股份有限公司 Software update system and method
CN102955702A (en) * 2011-08-23 2013-03-06 腾讯科技(深圳)有限公司 Method and device for installing and upgrading software
US20130104118A1 (en) * 2011-10-19 2013-04-25 Visto Corporation Application installation system
CN103781057A (en) * 2014-01-08 2014-05-07 北京奇虎科技有限公司 Method and device for silently downloading upgrade package
US20140359596A1 (en) * 2013-05-29 2014-12-04 Microsoft Corporation Updating software components through online stores
CN104899065A (en) * 2015-06-11 2015-09-09 武汉虹信通信技术有限责任公司 Method and system for batch online recovery and software online upgrading
CN105335183A (en) * 2014-08-06 2016-02-17 乐视致新电子科技(天津)有限公司 Software upgrade method and system
CN105978921A (en) * 2016-07-29 2016-09-28 重庆长安汽车股份有限公司 Remote upgrading method for vehicle-mounted communication terminal
US20170010883A1 (en) * 2013-02-05 2017-01-12 Apple Inc. Automatic Updating of Applications
US20170168805A1 (en) * 2015-12-09 2017-06-15 Le Holdings (Beijing) Co., Ltd. Method and electronic device for system updating
WO2018076433A1 (en) * 2016-10-27 2018-05-03 宇龙计算机通信科技(深圳)有限公司 Multi-opening application program method, multi-opening application program apparatus and terminal

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4724521A (en) * 1986-01-14 1988-02-09 Veri-Fone, Inc. Method for operating a local terminal to execute a downloaded application program
US20050210459A1 (en) * 2004-03-12 2005-09-22 Henderson Gary S Controlling installation update behaviors on a client computer
CN101699399A (en) * 2009-11-03 2010-04-28 中兴通讯股份有限公司 Software update system and method
CN102955702A (en) * 2011-08-23 2013-03-06 腾讯科技(深圳)有限公司 Method and device for installing and upgrading software
US20130104118A1 (en) * 2011-10-19 2013-04-25 Visto Corporation Application installation system
US20170010883A1 (en) * 2013-02-05 2017-01-12 Apple Inc. Automatic Updating of Applications
US20140359596A1 (en) * 2013-05-29 2014-12-04 Microsoft Corporation Updating software components through online stores
CN103781057A (en) * 2014-01-08 2014-05-07 北京奇虎科技有限公司 Method and device for silently downloading upgrade package
CN105335183A (en) * 2014-08-06 2016-02-17 乐视致新电子科技(天津)有限公司 Software upgrade method and system
CN104899065A (en) * 2015-06-11 2015-09-09 武汉虹信通信技术有限责任公司 Method and system for batch online recovery and software online upgrading
US20170168805A1 (en) * 2015-12-09 2017-06-15 Le Holdings (Beijing) Co., Ltd. Method and electronic device for system updating
CN105978921A (en) * 2016-07-29 2016-09-28 重庆长安汽车股份有限公司 Remote upgrading method for vehicle-mounted communication terminal
WO2018076433A1 (en) * 2016-10-27 2018-05-03 宇龙计算机通信科技(深圳)有限公司 Multi-opening application program method, multi-opening application program apparatus and terminal

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
KAMALKISHOR1991: "what happens to background service when the app is updated in android?", 《HTTPS://STACKOVERFLOW.COM/QUESTIONS/30280089/WHAT-HAPPENS-TO-BACKGROUND-SERVICE-WHEN-THE-APP-IS-UPDATED-IN-ANDROID》 *
LIOILWIN: "Android-Accessibility(辅助功能/无障碍,自动安装APP)", 《HTTPS://WWW.JIANSHU.COM/P/04EBE2641290》 *
李立亚等: "基于事务模型的升级程序设计与实现", 《计算机工程与设计》 *
沐恩_: "Android:Java代码实现APP普通安装卸载和静默安装卸载", 《HTTPS://BLOG.CSDN.NET/WUSJ3/ARTICLE/DETAILS/94398322》 *
魏汪洋等: "基于Web服务的一种软件自动升级方法及实现", 《福建电脑》 *

Also Published As

Publication number Publication date
CN110515642B (en) 2022-04-29

Similar Documents

Publication Publication Date Title
CN110134418A (en) Vehicle upgrade method and device, storage medium and terminal based on space download technology
CN105487980B (en) The method and device that repairing applications are operating abnormally
CN106502747A (en) A kind of method of application upgrade and mobile terminal
CN107179909A (en) Method for upgrading software, device and computer-readable recording medium
CN107450945A (en) A kind of firmware update of virtual reality device
CN104166577A (en) Method and device for upgrading system of mobile terminal
CN109582331A (en) Upgrade method, the device and system of vehicle-carrying communication module
CN110262816A (en) It is a kind of to power off the upgrade method and its terminal system resumed
CN115202680A (en) System and method for automatically upgrading local client on line in remote manner
CN111949292B (en) Hot patch loading method and device, electronic equipment and storage medium
CN110515642A (en) A kind of application program updating method and system
CN116795408A (en) ECU software upgrading method and system and vehicle
CN107992318A (en) Application program updating method, apparatus, storage medium and processor
CN111857771A (en) Deep learning-based automatic operating system patch installation method and system
CN109408079A (en) A kind of embedded device and its upgrade method
CN110119285A (en) A kind of low side scm software upgrade method and relevant apparatus
CN109683929A (en) Test method, system and storage medium based on FOTA system update
CN114915554A (en) Remote upgrading method and device, computer equipment and storage medium
CN114422457A (en) Gray scale publishing method, system, device and medium based on message queue
CN111785316B (en) Method, system, storage medium and terminal for overcoming erasure interference
CN108958769A (en) A kind of embedded device software systems restorative procedure and system
CN104346239B (en) The abnormal restoring method and device of application program in embedded system
CN112764964A (en) Method and system for solving problem that FOTA cannot be refreshed after upgrading failure
CN110134456A (en) For managing the method, apparatus, equipment and storage medium of operating system
CN108008965A (en) A kind of system firmware upgrade mechanism of middle and high end storage

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 311215 rooms 601, 604, 2201, 2202, 2203, 2204, Yuesheng International Center, ningwei street, Xiaoshan District, Hangzhou City, Zhejiang Province

Applicant after: HANGZHOU LIFESMART TECHNOLOGY Co.,Ltd.

Address before: 310000 room 1001, building 2, 352 BINKANG Road, Changhe street, Binjiang District, Hangzhou City, Zhejiang Province

Applicant before: HANGZHOU LIFESMART TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant