CN105138363B - The automatic upgrade processing method of application program and device - Google Patents

The automatic upgrade processing method of application program and device Download PDF

Info

Publication number
CN105138363B
CN105138363B CN201510518425.6A CN201510518425A CN105138363B CN 105138363 B CN105138363 B CN 105138363B CN 201510518425 A CN201510518425 A CN 201510518425A CN 105138363 B CN105138363 B CN 105138363B
Authority
CN
China
Prior art keywords
application
upgrade
service interface
heartbeat
download
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
CN201510518425.6A
Other languages
Chinese (zh)
Other versions
CN105138363A (en
Inventor
张迪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201510518425.6A priority Critical patent/CN105138363B/en
Publication of CN105138363A publication Critical patent/CN105138363A/en
Application granted granted Critical
Publication of CN105138363B publication Critical patent/CN105138363B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The application proposes a kind of automatic upgrade processing method of application program and device, wherein, this method comprises: monitoring upgrade service interface during keeping heartbeat to connect with the second application, wherein, second application carries out automatic upgrading processing by the first application with root authority;The upgrade command that the upgrade service interface is sent is received, the upgrade command includes: to carry the first download address of upgrade application mark;According to first download address, the first installation file corresponding with upgrade application mark is downloaded;The second application corresponding with upgrade application mark is unloaded, and first installation file is installed.By the automatic upgrade processing method of application program provided by the present application and device, the reliability that application program upgrades automatically is realized, avoids the risk of upgrading failure.

Description

The automatic upgrade processing method of application program and device
Technical field
This application involves field of communication technology more particularly to a kind of automatic upgrade processing methods of application program and device.
Background technique
With the extensive use of the embedded intelligence hardware with open operating system, such as intelligent appliance equipment, or Person intelligently gets tickets machine equipment etc., due to being mounted with many application programs in Intelligent hardware, at regular intervals in Intelligent hardware Application program will prompt user to upgrade.
Illustrate that the upgrading mode of the prior art, ticket taking machine application program regular request service end interface by taking ticket taking machine as an example, It determines whether to update ticket taking machine application program, if it is, downloading newest installation file, calls upgrading to help after downloading successfully Hand application program, upgrading HELPER APPLICATION unload existing ticket taking machine application programs, execute installation after unloading successfully.
However, there are the risks of malloc failure malloc during ticket taking machine routine call upgrading Helper program, alternatively, may Can be because of suspension, the reasons such as crash cause ticket taking machine program to be unloaded, but without being mounted, are just unable to operate normally and get tickets later Machine program, above situation, which is all eventually led to, to carry out normal upgrading processing to ticket taking machine program.
Summary of the invention
The application is intended to solve at least some of the technical problems in related technologies.
For this purpose, first purpose of the application is to propose a kind of automatic upgrade processing method of application program, this method is real Show the reliability that application program upgrades automatically, avoids the risk of upgrading failure.
Second purpose of the application is to propose a kind of automatic upgrading processing device of application program.
In order to achieve the above object, the application first aspect embodiment proposes a kind of automatic upgrade processing method of application program, It include: to monitor upgrade service interface during keeping heartbeat to connect with the second application, wherein second application is by having There is the first application of root authority to carry out automatic upgrading processing;Receive the upgrade command that the upgrade service interface is sent, the liter Grade instruction includes: to carry the first download address of upgrade application mark;According to first download address, downloading and the upgrading Corresponding first installation file of application identities;It unloads corresponding with upgrade application mark second to apply, and installs described the One installation file.
The automatic upgrade processing method of the application program of the embodiment of the present application keeps the heart in the first application and the second application first During jumping connection, upgrade service interface is monitored, wherein first application has root authority, for answering described second With automatic upgrading processing is carried out, when receiving the upgrade command that the upgrade service interface is sent, the upgrade command includes: to take The first download address with upgrade application mark is downloaded the first installation file corresponding with first download address, is then unloaded The second application corresponding with upgrade application mark is carried, and first installation file is installed.Hereby it is achieved that application program Automatically the reliability upgraded avoids the risk of upgrading failure.
In order to achieve the above object, the application second aspect embodiment proposes a kind of automatic upgrading processing device of application program, It include: monitoring modular, for monitoring upgrade service interface, wherein described during keeping heartbeat to connect with the second application Second application carries out automatic upgrading processing by the first application with root authority;First receiving module, for receiving the upgrading The upgrade command that service interface is sent, the upgrade command include: to carry the first download address of upgrade application mark;Under first Module is carried, for downloading the first installation file corresponding with upgrade application mark according to first download address;First Processing module for unloading the second application corresponding with upgrade application mark, and installs first installation file.
The automatic upgrading processing device of the application program of the embodiment of the present application is answered in the first application with second by monitoring modular During keeping heartbeat connection, upgrade service interface is monitored, wherein first application has root authority, for institute It states the second application and carries out automatic upgrading processing;The upgrading that the upgrade service interface is sent is received by the first receiving module to refer to It enables, the upgrade command includes: to carry the first download address of upgrade application mark;By the first download module downloading with it is described Corresponding first installation file of first download address;Corresponding with upgrade application mark the is unloaded by first processing module Two applications, and first installation file is installed.Hereby it is achieved that the reliability that application program upgrades automatically, avoids upgrading The risk of failure.
For this purpose, the third purpose of the application is to propose a kind of automatic upgrade processing method of application program, this method is real Show the reliability that application program upgrades automatically, avoids the risk of upgrading failure.
The 4th purpose of the application is to propose a kind of automatic upgrading processing device of application program.
In order to achieve the above object, the application third aspect embodiment proposes a kind of automatic upgrade processing method of application program, If including: to know that can not establish heartbeat with the first application connect, and sends to upgrade service interface and carries the first application identities Downloading request, wherein first application has root authority, for carrying out automatic upgrading processing to second application;It receives The third download address corresponding with first application identities that the upgrade service interface returns;Download ground according to the third Third installation procedure corresponding with first application identities is downloaded in location;The third installation procedure is installed, and with described first It is connected using heartbeat is established.
The automatic upgrade processing method of the application program of the embodiment of the present application, if knowing first, the second application can not be answered with first With heartbeat connection is established, then the downloading request for carrying the first application identities is sent to upgrade service interface, wherein described first answers With with root authority, it is used for described second using the automatic upgrading processing of progress;Then the upgrade service interface is received to return Third download address corresponding with first application identities, and then download corresponding with third download address third and pacify Program is filled, the third installation procedure is finally installed, and establish heartbeat with first application and connect.Hereby it is achieved that using The reliability that program upgrades automatically avoids the risk of upgrading failure.
In order to achieve the above object, the application fourth aspect embodiment proposes a kind of automatic upgrading processing device of application program, It include: the second request module, if for knowing that can not establish heartbeat with the first application connect, and takes to the transmission of upgrade service interface Downloading request with the first application identities, wherein described first using having root authority, for carrying out certainly to second application Dynamic upgrading processing;Second receiving module, for receiving the corresponding with first application identities of the upgrade service interface return Third download address;Second download module, for according to the third download address, downloading and first application identities pair The third installation procedure answered;Second processing module establishes the heart for installing the third installation procedure, and with first application Jump connection.
The automatic upgrading processing device of the application program of the embodiment of the present application, if knowing the second application by the second request module Heartbeat can not be established with the first application to connect, then the downloading request for carrying the first application identities is sent to upgrade service interface, In, first application has root authority, for carrying out automatic upgrading processing to second application;Pass through the second receiving module The third download address corresponding with first application identities that the upgrade service interface returns is received, the second downloading mould is passed through Block downloads third installation procedure corresponding with the third download address;The third is installed by Second processing module, journey is installed Sequence, and establish heartbeat with first application and connect.Hereby it is achieved that the reliability that application program upgrades automatically, avoids liter The risk of grade failure.
Detailed description of the invention
Above-mentioned and/or additional aspect and advantage of the invention will become from the following description of the accompanying drawings of embodiments Obviously and it is readily appreciated that, in which:
Fig. 1 is the flow chart of the automatic upgrade processing method of application program of the application one embodiment;
Fig. 2 is the flow chart of the automatic upgrade processing method of application program of the application another embodiment;
Fig. 3 is the flow chart of the automatic upgrade processing method of application program of the application another embodiment;
Fig. 4 is the structural schematic diagram of the automatic upgrading processing device of application program of the application one embodiment;
Fig. 5 is the structural schematic diagram of the automatic upgrading processing device of application program of the application another embodiment;
Fig. 6 is the structural schematic diagram of the automatic upgrading processing device of application program of the application another embodiment.
Specific embodiment
Embodiments herein is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached The embodiment of figure description is exemplary, it is intended to for explaining the application, and should not be understood as the limitation to the application.
Below with reference to the accompanying drawings the automatic upgrade processing method of application program and device of the embodiment of the present application are described.
Fig. 1 is the flow chart of the automatic upgrade processing method of application program of the application one embodiment.
As shown in Figure 1, the automatic upgrade processing method of the application program includes:
Step 101, during keeping heartbeat connect with the second application, monitoring upgrade service interface, wherein described the Two applications carry out automatic upgrading processing by the first application with root authority.
The automatic upgrade processing method of application program provided in this embodiment is configured in the embedding of open operating system Enter in formula Intelligent hardware, such as: in intelligent appliance equipment, in intelligent payment terminal equipment or, in automatic ticket taking machine.Wherein, Open operating system can be selected according to the actual application, such as: Android android operating system.Open behaviour Root authority can be assigned for an application in Intelligent hardware by making system, i.e., Root authority is (i.e. the involved in the present embodiment One application), so that the with root authority first application can be to the other application in Intelligent hardware (i.e. involved in the present embodiment Second application) upgrading or unloading processing are carried out automatically.It should be noted that all applications in Intelligent hardware are all to guarantee Under the premise of safety, the first application of authorization carries out automatic upgrading processing to other second applications, and the quantity of the second application can be One or more.
After Intelligent hardware powers on, the first application with root authority is applied to need to carry out automatic upgrading processing second Heartbeat detection signal is sent, if receiving the heartbeat response signal that second application returns within a preset time, illustrates that intelligence is hard The state of the second application on part is normal, does not occur abnormality, for example be unloaded, and illustrate on the Intelligent hardware It is mounted with for the first application to the second applications automatic upgrade.And then first is logical using heartbeat is established between the second application Road.
First application sends heartbeat detection signal to second application according to preset period timing by the heartbeat channel, If the heartbeat response signal that second application returns can be received within a preset time every time, know that the first application is answered with second Heartbeat connection is kept between.
During the first application keeps heartbeat to connect with the second application, upgrade service interface is monitored, wherein upgrading clothes Business interface for provide with the installation file using corresponding installation procedure on Intelligent hardware, such as: android operating system Under installation file be APK file.Specific monitoring mode is selected according to the actual application, for example, the first application can To judge whether upgrade service interface sends upgrade command according to preset intermittent scanning upgrade service interface.
Step 102, the upgrade command that the upgrade service interface is sent is received, the upgrade command includes: to carry upgrading First download address of application identities.
During monitoring upgrade service interface, if the upgrade command of upgrade service interface transmission is received, to this Upgrade command is parsed, and the first download address for carrying upgrade application mark is obtained.Wherein, upgrade application mark is for indicating The second corresponding application can carry out upgrading processing, and the first download address can use uniform resource locator, indicate downloading The path of installation file corresponding with upgrade application mark.
Step 103, according to first download address, the first installation text corresponding with upgrade application mark is downloaded Part.
Step 104, the second application corresponding with upgrade application mark is unloaded, and first installation file is installed.
Specifically, the first application downloads the first installation text corresponding with upgrade application mark according to first download address Then part unloads the second application corresponding with upgrade application mark, and installs the first newly downloaded installation file.
It can be seen that being that the second application actively obtains the installation text that can upgrade from upgrade service interface in the prior art Then part needs that the first application is called to be installed, the risk that can have malloc failure malloc leads to install failure.In the application due to First application has root authority, therefore the installation text for the second application that can upgrade can be actively obtained from upgrade service interface Part, and the installation file is downloaded, unloading installation then is carried out to original application, avoids the risk of malloc failure malloc, Er Qieti High installation effectiveness.
The automatic upgrade processing method of the application program of the embodiment of the present application keeps the heart in the first application and the second application first During jumping connection, upgrade service interface is monitored, wherein first application has root authority, for answering described second With automatic upgrading processing is carried out, when receiving the upgrade command that the upgrade service interface is sent, the upgrade command includes: to take The first download address with upgrade application mark is downloaded the first installation file corresponding with first download address, is then unloaded The second application corresponding with upgrade application mark is carried, and first installation file is installed.Hereby it is achieved that application program Automatically the safety and validity upgraded, avoids the risk of upgrading failure, and improves treatment effeciency.
Fig. 2 is the flow chart of the automatic upgrade processing method of application program of the application another embodiment.
As shown in Fig. 2, the automatic upgrade processing method of the application program includes:
Step 201, it is connect if knowing and can not establish heartbeat with the second application, sends and carry to the upgrade service interface The downloading of second application identities is requested.
When the first application with root authority sends heartbeat detection letter to the second application for needing to carry out automatic upgrading processing Number, if not receiving the heartbeat response signal that second application returns within a preset time, know that the first application can not be with the Heartbeat connection is established in two applications, at this point, illustrating the abnormal state of the second application on Intelligent hardware, for example is occurred after being unloaded dead Situations such as machine, power-off, the installation file of upgrading without installing successfully in time, and therefore, the first application is sent to upgrade service interface Carry the downloading request of the second application identities.
Step 202, the second downloading corresponding with second application identities ground that the upgrade service interface returns is received Location.
Upgrade service interface carries out parsing to the downloading request received and obtains the second application identities, then inquiry with this Corresponding second download address of two application identities, the second download address can use uniform resource locator, indicate downloading and second Application identities correspond to the path of installation file, and return to second download address to the first application.
Step 203, according to second download address, the second installation text corresponding with second application identities is downloaded Part.
Step 204, second installation file is installed, and establishes heartbeat with second application and connect.
Specifically, the first application downloads the second installation text corresponding with the second application identities according to second download address Then part installs second installation file, after installing successfully, the first application continues to establish with the second application in the manner described above Heartbeat connection, to carry out automatic upgrading processing to the second application in real time.
It can be seen that mode provided by the present application, which avoids, situations such as crashing, power-off occurs after the second application unloading, rise The installation file of grade can not also continue the case where working normally without installing in time successfully after powering on again.
The automatic upgrade processing method of the application program of the embodiment of the present application, if the heart can not be established with the second application first by knowing Jump connection then sends the downloading request for carrying the second application identities, when the reception upgrade service to the upgrade service interface When the second download address corresponding with second application identities that interface returns, according to second download address, downloading with Corresponding second installation file of second application identities, then installs second installation file, and with second application Establish heartbeat connection.The reliability that application program upgrades automatically is improved as a result, avoids the risk of upgrading failure.
Based on the above embodiment, it in order to further improve the reliability upgraded automatically, avoids due to power-off, crash, net Failed download caused by the reasons such as network or install failure lead to the case where upgrading failure, and avoid wasting excessive processing Resource, in another embodiment, further includes:
If the failed download within preset first time re-downloads after the preset period, alternatively,
If the install failure within preset second time, is reinstalled after the preset period.
It should be noted that be arranged according to the actual application with the second time at the first time, it can be identical, it can also not Together.For example: perhaps install failure is re-downloaded or is installed downloading time-out;If continuous 3 failed downloads or installation Failure is re-downloaded or is installed after stopping 1 hour.
Fig. 3 is the flow chart of the automatic upgrade processing method of application program of the application another embodiment.
As shown in figure 3, the automatic upgrade processing method of the application program includes:
Step 301, it is connect if knowing and can not establish heartbeat with the first application, is sent to upgrade service interface and carry first The downloading of application identities is requested, wherein first application has root authority, for being upgraded automatically to second application Processing.
The second application for needing to carry out automatic upgrading processing within a preset time, is never received with root authority First application then knows that the second application can not establish heartbeat with the first application and connect, at this point, explanation to heartbeat detection signal is sent The abnormal state of the first application on Intelligent hardware, such as manufacturer are fitted without, and therefore, the second application is sent out to upgrade service interface Send the downloading request for carrying the first application identities.
Step 302, third corresponding with first application identities downloading ground that the upgrade service interface returns is received Location.
Upgrade service interface carries out parsing to the downloading request received and obtains the first application identities, then inquiry with this The corresponding third download address of one application identities, third download address can use uniform resource locator, indicate downloading and first Application identities correspond to the path of installation file, and return to the third download address to the second application.
Step 303, it according to the third download address, downloads third corresponding with first application identities and journey is installed Sequence.
Step 304, the third installation procedure is installed, and establishes heartbeat with first application and connect.
Specifically, the second application downloads third installation text corresponding with the first application identities according to the third download address Then part installs the third installation file, after installing successfully, the second application continues to establish with the first application in the manner described above Heartbeat connection carries out automatic upgrading processing to itself to pass through the first application in real time.It can be seen that mode provided by the present application It avoids since the caused upgrading risk of failure of the first application of installation is forgotten by manufacturer.
The automatic upgrade processing method of the application program of the embodiment of the present application, if knowing first, the second application can not be answered with first With heartbeat connection is established, then the downloading request for carrying the first application identities is sent to upgrade service interface, wherein described first answers With with root authority, it is used for described second using the automatic upgrading processing of progress;Then the upgrade service interface is received to return Third download address corresponding with first application identities, and then download corresponding with third download address third and pacify Program is filled, the third installation procedure is finally installed, and establish heartbeat with first application and connect.Application is improved as a result, The reliability that program upgrades automatically avoids the risk of upgrading failure.
Based on the above embodiment, it in order to further improve the reliability upgraded automatically, avoids due to power-off, crash, net Failed download caused by the reasons such as network or install failure lead to the case where upgrading failure, and avoid wasting excessive processing Resource, in another embodiment, further includes:
If the failed download within preset first time re-downloads after the preset period, alternatively,
If the install failure within preset second time, is reinstalled after the preset period.
It should be noted that be arranged according to the actual application with the second time at the first time, it can be identical, it can also not Together.For example: perhaps install failure is re-downloaded or is installed downloading time-out;If continuous 3 failed downloads or installation Failure is re-downloaded or is installed after stopping 1 hour.
In order to more clearly describe the automatic upgrade processing method of application program provided in this embodiment, with ticket taking machine application It is illustrated for scene, there are two programs on ticket taking machine under normal circumstances: ticket taking machine program (quite in this present embodiment Second application) and upgrading assistant (the first application quite in this present embodiment).Two programs can establish connection hair heartbeat.
Upgrade assistant and kept for the case where connecting with ticket taking machine: whether upgrading assistant requests upgrade service interface, The download address for upgrading ticket taking machine program and ticket taking machine program, unloads existing ticket taking machine program, installs newest journey after downloading Sequence.Downloading time-out or install failure, re-download installation.
When upgrading the case where assistant and ticket taking machine can not create connection: the ticket taking machine program installation file of request downloading immediately Recent program is installed after downloading, and establishes heartbeat with ticket taking machine and connect in address.
When ticket taking machine can not with upgrading assistant create connection, request downloading upgrading assistant's installation file address, downloading at Function is mounted directly, and is established heartbeat with upgrading assistant and connect.
In order to realize above-described embodiment, the application also proposes a kind of automatic upgrading processing device of application program.
Fig. 4 is the structural schematic diagram of the automatic upgrading processing device of application program of the application one embodiment.
As shown in figure 4, the automatic upgrading processing device of the application program includes:
Monitoring modular 11, for monitoring upgrade service interface during keeping heartbeat to connect with the second application, In, second application carries out automatic upgrading processing by the first application with root authority;
First receiving module 12, the upgrade command sent for receiving the upgrade service interface, the upgrade command packet It includes: carrying the first download address of upgrade application mark;
First download module 13, for downloading corresponding with upgrade application mark according to first download address First installation file;
First processing module 14 is applied for unloading corresponding with upgrade application mark second, and installs described the One installation file.
It should be noted that the aforementioned explanation to the automatic upgrade processing method embodiment of application program is also applied for this The automatic upgrading processing device of the application program of embodiment, details are not described herein again.
The automatic upgrading processing device of the application program of the embodiment of the present application is answered in the first application with second by monitoring modular During keeping heartbeat connection, upgrade service interface is monitored, wherein first application has root authority, for institute It states the second application and carries out automatic upgrading processing;The upgrading that the upgrade service interface is sent is received by the first receiving module to refer to It enables, the upgrade command includes: to carry the first download address of upgrade application mark;By the first download module downloading with it is described Corresponding first installation file of first download address;Corresponding with upgrade application mark the is unloaded by first processing module Two applications, and first installation file is installed.Hereby it is achieved that the reliability that application program upgrades automatically, avoids upgrading The risk of failure.
Fig. 5 is the structural schematic diagram of the automatic upgrading processing device of application program of the application another embodiment, such as Fig. 5 institute Show, based on shown in Fig. 4 embodiment, described device further include: the first request module 15, wherein
First request module 15, if for knowing that can not establish heartbeat with the second application connect, to the upgrade service Interface sends the downloading request for carrying the second application identities;
First receiving module 12 is also used to receive the corresponding with second application identities of the upgrade service interface return The second download address;
First download module 13 is also used to be downloaded corresponding with second application identities according to second download address The second installation file;
First processing module 14 is also used to install second installation file, and establishes heartbeat with second application and connect It connects.
Further, in order to improve treatment effeciency and save process resource,
First download module 13, if being also used to the failed download within preset first time, the preset period it After re-download,
First processing module 14, if being also used to the install failure within preset second time, the preset period it After reinstall.
It should be noted that the aforementioned explanation to the automatic upgrade processing method embodiment of application program is also applied for this The automatic upgrading processing device of the application program of embodiment, details are not described herein again.
The automatic upgrading processing device of the application program of the embodiment of the present application, can not be with if being known by the first request module Heartbeat connection is established in two applications, then the downloading request for carrying the second application identities is sent to the upgrade service interface;Pass through One receiving module receives the second download address corresponding with second application identities that the upgrade service interface returns;Pass through First download module downloads the second installation file corresponding with second application identities according to second download address;It is logical It crosses first processing module and second installation file is installed, and establish heartbeat with second application and connect.Hereby it is achieved that answering The reliability upgraded automatically with program avoids the risk of upgrading failure.
Fig. 6 is the structural schematic diagram of the automatic upgrading processing device of application program of the application another embodiment, such as Fig. 6 institute Show, described device includes:
Second request module 21, if for knowing that can not establish heartbeat with the first application connect, to upgrade service interface Send the downloading request for carrying the first application identities, wherein first application has root authority, for second application Carry out automatic upgrading processing;
Second receiving module 22, for receiving the corresponding with first application identities of the upgrade service interface return Third download address;
Second download module 23, for downloading corresponding with first application identities according to the third download address Third installation procedure;
Second processing module 24 for installing the third installation procedure, and is established heartbeat with first application and is connect.
Further, in order to save process resource and improve treatment effeciency,
Second download module 23, if being also used to the failed download within preset first time, the preset period it After re-download,
Second processing module 24, if being also used to the install failure within preset second time, the preset period it After reinstall.
It should be noted that the aforementioned explanation to the automatic upgrade processing method embodiment of application program is also applied for this The automatic upgrading processing device of the application program of embodiment, details are not described herein again.
The automatic upgrading processing device of the application program of the embodiment of the present application, if knowing the second application by the second request module Heartbeat can not be established with the first application to connect, then the downloading request for carrying the first application identities is sent to upgrade service interface, In, first application has root authority, for carrying out automatic upgrading processing to second application;Pass through the second receiving module The third download address corresponding with first application identities that the upgrade service interface returns is received, the second downloading mould is passed through Block downloads third installation procedure corresponding with the third download address;The third is installed by Second processing module, journey is installed Sequence, and establish heartbeat with first application and connect.Hereby it is achieved that the reliability that application program upgrades automatically, avoids liter The risk of grade failure.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example Point is contained at least one embodiment or example of the application.In the present specification, schematic expression of the above terms are not It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office It can be combined in any suitable manner in one or more embodiment or examples.In addition, without conflicting with each other, the skill of this field Art personnel can tie the feature of different embodiments or examples described in this specification and different embodiments or examples It closes and combines.
In addition, term " first ", " second " are used for descriptive purposes only and cannot be understood as indicating or suggesting relative importance Or implicitly indicate the quantity of indicated technical characteristic.Define " first " as a result, the feature of " second " can be expressed or Implicitly include at least one this feature.In the description of the present application, the meaning of " plurality " is at least two, such as two, three It is a etc., unless otherwise specifically defined.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes It is one or more for realizing specific logical function or process the step of executable instruction code module, segment or portion Point, and the range of the preferred embodiment of the application includes other realization, wherein can not press shown or discussed suitable Sequence, including according to related function by it is basic simultaneously in the way of or in the opposite order, Lai Zhihang function, this should be by the application Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (such as computer based system, including the system of processor or other can be held from instruction The instruction fetch of row system, device or equipment and the system executed instruction) it uses, or combine these instruction execution systems, device or set It is standby and use.For the purpose of this specification, " computer-readable medium ", which can be, any may include, stores, communicates, propagates or pass Defeated program is for instruction execution system, device or equipment or the dress used in conjunction with these instruction execution systems, device or equipment It sets.The more specific example (non-exhaustive list) of computer-readable medium include the following: there is the electricity of one or more wirings Interconnecting piece (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable Medium, because can then be edited, be interpreted or when necessary with it for example by carrying out optical scanner to paper or other media His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each section of the application can be realized with hardware, software, firmware or their combination.Above-mentioned In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage Or firmware is realized.It, and in another embodiment, can be under well known in the art for example, if realized with hardware Any one of column technology or their combination are realized: having a logic gates for realizing logic function to data-signal Discrete logic, with suitable combinational logic gate circuit specific integrated circuit, programmable gate array (PGA), scene Programmable gate array (FPGA) etc..
Those skilled in the art are understood that realize all or part of step that above-described embodiment method carries It suddenly is that relevant hardware can be instructed to complete by program, the program can store in a kind of computer-readable storage medium In matter, which when being executed, includes the steps that one or a combination set of embodiment of the method.
In addition, can integrate in a first processing module in each functional unit in each embodiment of the application, It can be each unit to physically exist alone, can also be integrated in two or more units in a module.It is above-mentioned integrated Module both can take the form of hardware realization, can also be realized in the form of software function module.The integrated mould If block is realized and when sold or used as an independent product in the form of software function module, it also can store and counted at one In calculation machine read/write memory medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..Although having been shown and retouching above Embodiments herein is stated, it is to be understood that above-described embodiment is exemplary, and should not be understood as the limit to the application System, those skilled in the art can be changed above-described embodiment, modify, replace and become within the scope of application Type.

Claims (10)

1. a kind of automatic upgrade processing method of application program, which comprises the following steps:
During keeping heartbeat to connect with the second application, upgrade service interface is monitored, wherein second application is by having First application of root authority carries out automatic upgrading processing;
Receive the upgrade command that the upgrade service interface is sent, the upgrade command includes: carry upgrade application mark the One download address;
According to first download address, the first installation file corresponding with upgrade application mark is downloaded;
The second application corresponding with upgrade application mark is unloaded, and first installation file is installed;
Wherein, if described second using knowing that can not establish heartbeat with first application connect, described second is applied to institute State upgrade service interface and send the downloading request for carrying the first application identities, and receive that the upgrade service interface returns with institute The corresponding third download address of the first application identities is stated, and according to the third download address, downloading is marked with first application Know corresponding third installation procedure, and the third installation procedure is installed, and establishes heartbeat with first application and connect.
2. the automatic upgrade processing method of application program as described in claim 1, which is characterized in that the method also includes:
It is connect if heartbeat can not be established with the second application by knowing, is sent to the upgrade service interface and carry the second application identities Downloading request;
Receive the second download address corresponding with second application identities that the upgrade service interface returns;
According to second download address, the second installation file corresponding with second application identities is downloaded;
Second installation file is installed, and establishes heartbeat with second application and connect.
3. the automatic upgrade processing method of application program as claimed in claim 1 or 2, which is characterized in that the method also includes:
If the failed download within preset first time re-downloads after the preset period,
Alternatively,
If the install failure within preset second time, is reinstalled after the preset period.
4. a kind of automatic upgrade processing method of application program, which comprises the following steps:
If the second application knows that can not establish heartbeat with the first application connect, and sends to upgrade service interface and carries the first application The downloading of mark is requested, wherein first application has root authority, for carrying out automatic upgrading processing to the second application;
Receive the third download address corresponding with first application identities that the upgrade service interface returns;
According to the third download address, third installation procedure corresponding with first application identities, the third peace are downloaded Fill the installation procedure that program is first application;
The third installation procedure is installed, and establishes heartbeat with first application and connect.
5. the automatic upgrade processing method of application program as claimed in claim 4, which is characterized in that the method also includes:
If the failed download within preset first time re-downloads after the preset period;
Alternatively,
If the install failure within preset second time, is reinstalled after the preset period.
6. a kind of automatic upgrading processing device of application program characterized by comprising
Monitoring modular, for monitoring upgrade service interface, wherein described during keeping heartbeat to connect with the second application Second application carries out automatic upgrading processing by the first application with root authority;
First receiving module, the upgrade command sent for receiving the upgrade service interface, the upgrade command include: to carry First download address of upgrade application mark;
First download module, for downloading the first peace corresponding with upgrade application mark according to first download address Fill file;
First processing module for unloading the second application corresponding with upgrade application mark, and installs first installation File;
Wherein, if described second using knowing that can not establish heartbeat with first application connect, described second is applied to institute State upgrade service interface and send the downloading request for carrying the first application identities, and receive that the upgrade service interface returns with institute The corresponding third download address of the first application identities is stated, and according to the third download address, downloading is marked with first application Know corresponding third installation procedure, and the third installation procedure is installed, and establishes heartbeat with first application and connect.
7. the automatic upgrading processing device of application program as claimed in claim 6, which is characterized in that further include: first asks modulus Block, wherein
First request module, if for knowing that can not establish heartbeat with the second application connect, and connects to the upgrade service Mouth sends the downloading request for carrying the second application identities;
First receiving module is also used to receive the corresponding with second application identities of the upgrade service interface return Second download address;
First download module is also used to be downloaded corresponding with second application identities according to second download address Second installation file;
The first processing module is also used to install second installation file, and establishes heartbeat with second application and connect.
8. the automatic upgrading processing device of application program as claimed in claims 6 or 7, which is characterized in that
First download module, if being also used to the failed download within preset first time, after the preset period It re-downloads,
The first processing module, if the install failure within preset second time is also used to, after the preset period It reinstalls.
9. a kind of automatic upgrading processing device of application program characterized by comprising
Second request module, if knowing for the second application, can not establish heartbeat with the first application connect, and connects to upgrade service Mouthful send carry the first application identities downloading request, wherein it is described first application have root authority, for second application into The automatic upgrading processing of row;
Second receiving module, for receiving under the third corresponding with first application identities that the upgrade service interface returns Set address;
Second download module, for downloading third peace corresponding with first application identities according to the third download address Program is filled, the third installation procedure is the installation procedure of first application;
Second processing module for installing the third installation procedure, and is established heartbeat with first application and is connect.
10. the automatic upgrading processing device of application program as claimed in claim 9, which is characterized in that
Second download module, if being also used to the failed download within preset first time, after the preset period It re-downloads,
The Second processing module, if the install failure within preset second time is also used to, after the preset period It reinstalls.
CN201510518425.6A 2015-08-21 2015-08-21 The automatic upgrade processing method of application program and device Active CN105138363B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510518425.6A CN105138363B (en) 2015-08-21 2015-08-21 The automatic upgrade processing method of application program and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510518425.6A CN105138363B (en) 2015-08-21 2015-08-21 The automatic upgrade processing method of application program and device

Publications (2)

Publication Number Publication Date
CN105138363A CN105138363A (en) 2015-12-09
CN105138363B true CN105138363B (en) 2019-05-31

Family

ID=54723720

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510518425.6A Active CN105138363B (en) 2015-08-21 2015-08-21 The automatic upgrade processing method of application program and device

Country Status (1)

Country Link
CN (1) CN105138363B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106293702A (en) * 2016-07-25 2017-01-04 乐视控股(北京)有限公司 A kind of information processing method and equipment
CN109597632B (en) * 2017-09-30 2022-04-12 美的智慧家居科技有限公司 Household appliance module upgrade test method and device
CN107783774B (en) * 2017-11-28 2021-06-29 高新现代智能系统股份有限公司 Ticket selling interface updating method and device and computer readable storage medium
CN108804259A (en) * 2018-06-14 2018-11-13 北京旅居四方科技有限公司 Water power stake and the method and apparatus that program operation is detected
CN113672588A (en) * 2021-07-16 2021-11-19 浙江大华技术股份有限公司 Data storage method, data storage device, storage node and management node
CN115344291A (en) * 2022-09-14 2022-11-15 北京海泰方圆科技股份有限公司 Browser version updating system, method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101778022A (en) * 2009-01-12 2010-07-14 华为终端有限公司 Method and device for software management of universal plug and play equipment
CN103365732A (en) * 2012-03-29 2013-10-23 宇龙计算机通信科技(深圳)有限公司 Method and system for processing application program exception and mobile terminal
CN104503791A (en) * 2014-12-18 2015-04-08 天津市天安怡和信息技术有限公司 Intelligent remote upgrading and maintaining method for remote self-contained equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3485863B2 (en) * 2000-03-31 2004-01-13 パナソニック コミュニケーションズ株式会社 Image communication apparatus and program rewriting method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101778022A (en) * 2009-01-12 2010-07-14 华为终端有限公司 Method and device for software management of universal plug and play equipment
CN103365732A (en) * 2012-03-29 2013-10-23 宇龙计算机通信科技(深圳)有限公司 Method and system for processing application program exception and mobile terminal
CN104503791A (en) * 2014-12-18 2015-04-08 天津市天安怡和信息技术有限公司 Intelligent remote upgrading and maintaining method for remote self-contained equipment

Also Published As

Publication number Publication date
CN105138363A (en) 2015-12-09

Similar Documents

Publication Publication Date Title
CN105138363B (en) The automatic upgrade processing method of application program and device
JP6491299B2 (en) Automatic provisioning of server device firmware and custom settings
CN107066305B (en) Method and device for updating server firmware of server and server
EP2319211B1 (en) Method and apparatus for dynamically instantiating services using a service insertion architecture
WO2004025427A3 (en) Software application domain and storage domain management process and method
CN110278103A (en) Fault detection method, system and the vehicle of vehicle
CN109409096A (en) Kernel loophole restorative procedure, device, server and system
CN104123490A (en) Method and device for processing malicious bundled software and mobile terminal
KR20170026186A (en) Method and subsystem for installing a software update in a vehicle
CN101689395A (en) Systems and methods for determining refresh rate of memory based on RF activities
CN103971056A (en) Method and device for preventing application program in operating system from being uninstalled
US7805734B2 (en) Platform management of high-availability computer systems
CN106371859B (en) The Oftware updating method and device of vehicle electronics
CN109376072B (en) Application program development method and device based on third-party component library
KR102109125B1 (en) Method for managing state of ECU in vehicle based on automotive open system architecture
CN107305497A (en) Version upgrading method and device
KR20120117504A (en) Communication system and method for updating software thereof
CN104348646A (en) Configuration data processing method, device and system
JP2006318394A (en) Management method for uninterruptible power supply device in network system
CN114327781A (en) Virtual terminal control method, device, system, electronic equipment and storage medium
CN106933600A (en) A kind of method for upgrading system and device
US9648505B2 (en) Bi-directional link margin establishment for wireless embedded systems
JP2009217517A (en) Software update system, software update method, and program
KR102083473B1 (en) System and Method For Processing of Crash Information, and Apparatus and Device supporting the same
CN109474454A (en) A kind of device management method and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant