CN107193597A - A kind of application program update method and terminal - Google Patents

A kind of application program update method and terminal Download PDF

Info

Publication number
CN107193597A
CN107193597A CN201710359369.5A CN201710359369A CN107193597A CN 107193597 A CN107193597 A CN 107193597A CN 201710359369 A CN201710359369 A CN 201710359369A CN 107193597 A CN107193597 A CN 107193597A
Authority
CN
China
Prior art keywords
application program
information
default version
error
server
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.)
Withdrawn
Application number
CN201710359369.5A
Other languages
Chinese (zh)
Inventor
陈利顺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Jinli Communication Equipment Co Ltd
Original Assignee
Shenzhen Jinli Communication Equipment 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 Shenzhen Jinli Communication Equipment Co Ltd filed Critical Shenzhen Jinli Communication Equipment Co Ltd
Priority to CN201710359369.5A priority Critical patent/CN107193597A/en
Publication of CN107193597A publication Critical patent/CN107193597A/en
Withdrawn legal-status Critical Current

Links

Classifications

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

Landscapes

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

Abstract

The embodiment of the invention discloses a kind of application program update method and terminal.The update method includes:Obtain the error information of the application program;Based on the error information, the feedback information that server is sent is obtained;Judge whether the feedback information includes the default version information of the application program, wherein, the default version information is the application version information for repairing the error information;If the feedback information includes the default version information of the application program, the application program is updated based on the default version information.This method according to the error information of application program targetedly update and operated when application program reports an error, in time, with reporting an error for occurring in repairing applications.

Description

A kind of application program update method and terminal
Technical field
The present invention relates to terminal communication technical field, more particularly to a kind of application program update method and terminal.
Background technology
Many application programs are often installed, these application programs can occur not in use in the terminals such as mobile phone Predictable mistake, causes application program normally to use.In order to solve the problem, user can be carried out application program more Newly, when but being updated at present to application program, often directly by application program update to latest edition, that is to say, that simultaneously It is not the version updating carried out for application program institute produced problem, the application program of latest edition may also occur identical Mistake.
The content of the invention
The embodiment provides a kind of application program update method and terminal, can be occurred according to application program Mistake targetedly updated, with allow renewal after application program repair foregoing mistake.
In a first aspect, the embodiments of the invention provide a kind of application program update method, this method includes:
Obtain the error information of the application program;
Based on the error information, the feedback information that server is sent is obtained;
Judge whether the feedback information includes the default version information of the application program, wherein, the default version Information is the application version information for repairing the error information;
If the feedback information includes the default version information of the application program, updated based on the default version information The application program.
Second aspect, the embodiment of the present invention additionally provides a kind of terminal, and the terminal includes:
First acquisition unit, the error information for obtaining the application program;
Second acquisition unit, for based on the error information, obtaining the feedback information that server is sent;
First judging unit, for judging whether the feedback information includes the default version information of the application program, Wherein, the default version information is the application version information for repairing the error information;
Updating block, if including the default version information of the application program for the feedback information, based on described pre- If version information updates the application program.
The embodiment of the present invention, based on the error information, obtains clothes by obtaining the error information of the application program The feedback information that business device is sent;Then judge whether the feedback information includes the default version information of the application program again, Wherein, the default version information is the application version information for repairing the error information;When judging the feedback letter When breath includes the default version information of the application program, the application program is updated based on the default version information.The party Method according to the error information of application program targetedly update and operated when application program reports an error, in time, is answered with repairing With reporting an error for occurring in program.
Brief description of the drawings
Technical scheme, is used required in being described below to embodiment in order to illustrate the embodiments of the present invention more clearly Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the present invention, general for this area For logical technical staff, on the premise of not paying creative work, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of schematic flow sheet of application program update method provided in an embodiment of the present invention;
Fig. 2 is the sub-step schematic flow sheet of step S102 in method shown in Fig. 1;
Fig. 3 is a kind of another schematic flow sheet of application program update method provided in an embodiment of the present invention;
Fig. 4 is the sub-step schematic flow sheet of step S205 in method shown in Fig. 3;
Fig. 5 is a kind of structural representation of terminal provided in an embodiment of the present invention;
Fig. 6 is a kind of another structural representation of terminal provided in an embodiment of the present invention;
Fig. 7 is the structural representation of updating block in terminal shown in Fig. 6;
Fig. 8 is a kind of another structural representation of terminal provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is a part of embodiment of the invention, rather than whole embodiments.Based on this hair Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made Example, belongs to the scope of protection of the invention.
It should be appreciated that ought be in this specification and in the appended claims in use, term " comprising " and "comprising" be indicated Described feature, entirety, step, operation, the presence of element and/or component, but be not precluded from one or more of the other feature, it is whole Body, step, operation, element, component and/or its presence or addition for gathering.
It is also understood that the term used in this description of the invention is merely for the sake of the mesh for describing specific embodiment And be not intended to limit the present invention.As used in description of the invention and appended claims, unless on Other situations are hereafter clearly indicated, otherwise " one " of singulative, " one " and "the" are intended to include plural form.
Referring to Fig. 1, Fig. 1 is a kind of schematic flow sheet of application program update method provided in an embodiment of the present invention.Should Method may operate in the terminals such as smart mobile phone (such as Android phone, IOS mobile phones), tablet personal computer or Intelligent worn device In, when being reported an error to application program in terminal, the application program that upgrades in time is carried out, with reporting an error that repairing applications occur Problem.As shown in figure 1, the application program update method comprises the following steps S101~S104.
S101, the error information for obtaining the application program.
The application program of installation in terminal can be divided into the preset application program that terminal carries and user voluntarily downloads peace The application program of dress.Either which kind of application program, during user uses these application programs, these application programs are all It is possible to that mistake occurs, and then this time is interrupted using application program.
In order to be repaired in time to the application program for mistake occur, to improve the stability of application program operation, In the present embodiment, when detecting application program and reporting an error, i.e., there is mistake in application program, and terminal system applies journey by this is obtained The error information of sequence.
In the present embodiment, the error information of application program includes error stack information and identification information.Wherein, mistake heap Stack information can be the lines of code of generation of reporting an error.In other embodiments, error information can also can be identified for that for others Go out the wrong information that application program occurs, be not particularly limited herein.
In addition, identification information can include one or more of groups in the much informations such as bag name, the version number of application program Close, as long as identification information can symbolize the identity information of application program.
It is understood that the content included by error information is not limited to the combination of above two, it can also be included His kind of information, such as, error information can also include IMEI (the International Mobile Equipment of terminal Identity, abbreviation IMEI) code, the user account of user's registration application program etc., be not particularly limited herein.
S102, the feedback information sent based on the error information, acquisition server.
Referring to Fig. 2, the sub-step schematic flow sheet that Fig. 2 is step S102 in the present embodiment.Step S102 sub-step Comprise the following steps S102a to S102b.
S102a, the error stack information and identification information are sent to the server.
In this embodiment, after terminal system gets error stack information and identification information, terminal system will be sent Error stack information and identification information are to server.
In one embodiment, feedback module can also be installed in terminal, when terminal system get error stack information and After identification information, error stack information and identification information are transferred to feedback module, error stack information is sent by feedback module With identification information to server.It is understood that the feedback module can also be independent application program, do not do specific herein Limitation.
, will be according to the wrong heap when server receives error stack information and the identification information of terminal system transmission Stack information and identification information search the default version information of corresponding application program, wherein, the default version information should to repair The application version information of error information.
Specifically, in one embodiment, mapping table can be prestored in server, mapping table is as shown in table 1.
Table 1
In the mapping table shown in table 1, including application package name, version number, error stack information and default version This information.When server receives error stack information and identification information, application program of the server in identification information Bag name, version number and error stack information determine corresponding default version information.
For example, the entitled application program 1 of bag in the identification information that server is received, version number is V1.1.1, mistake heap Stack information is the row of code 212, then server finds corresponding default in the mapping table according to error information in table 1 Version information is V1.1.2.
Again for example, the entitled application program 2 of bag in the identification information that server is received, version number is V2.1.2, mistake Stack information is the row of code 100, then server finds corresponding pre- in the mapping table according to error information in table 1 If version information is respectively V3.1.1, V3.1.4, V3.2.1.
Server can randomly select any one in above three version number as default version information, can also be with First version number found is not particularly limited herein as default version information.
In order to avoid the default version information that finds is there is also other problems that report an error, when server is according to mapping table When finding default version information, in addition it is also necessary to determine whether that the default version information whether there is error stack information.
Such as, if server using version number be V3.1.4 as default version information when, server is in mapping table The corresponding error stack information of version number V3.1.4 is found for the row of code 300, the default version of the mistake of code 300 is solved Information is V3.2.3, now server using version number be V3.2.3 as final default version information, so can reduce end The number of times that error information is sent to server is held, the stability of application program operation is improved, while also improving user experience.
Certainly, server is also possible to search default version letter corresponding less than with error information in mapping table Breath.Such as, the entitled application program 3 of bag in identification information, the correlation in the absence of application program 3 in mapping table reports an error letter Breath, now server will be unable to get default version information.
In order to solve the mistake that the current version of application program 3 occurs, server can by the modes such as mail to Corresponding technical staff etc., which sends, to be notified, to allow what relevant art personnel occurred to the current version of application program 3 Mistake is repaired, and will be repaired version information and installation file and be uploaded onto the server, and is easy to server in time to correspondence pass It is that table is updated and performed the follow-up relevant updates operation to end application 3.
It is understood that the mapping table shown by table 1 is only one kind in a variety of mapping tables, herein not Form and content to mapping table do concrete restriction.In addition, server searches corresponding default version according to error information The method of information is also not limited to aforesaid way, is not particularly limited herein.
The feedback information that S102b, the acquisition server are sent according to the error stack information and identification information.
, will be according to default version when server gets default version information according to error stack information and identification information Information generates feedback information, and send feedback information is to terminal.It is understood that default version will be included in the feedback information Information.
When server does not get default version information according to error stack information and identification information, that is to say, that clothes Do not occur the default version information of mistake in business device for repairing applications current version, now server is also generated instead Default version information will not be included in feedforward information, the feedback information.
S103, judge whether the feedback information includes the default version information of the application program.
After terminal receives the feedback information of server transmission, it will determine that and whether there is application program in the feedback information Default version information.
S104, the application program updated based on the default version information.
When step S103 judges there is default version information in feedback information, terminal system will be according to default version information More new application.
Specifically, in one embodiment, terminal system obtains the corresponding application program of default version information to server Installation file.After terminal receives the installation file of the application program of server transmission, it will be answered according to installation file upgrading With program to default version, to repair the problem that reports an error appeared in old edition application.
It is understood that in other embodiments, server in send feedback information to terminal, can also by with it is pre- If the installation file of the corresponding application program of version information is sent to terminal together, it can so reduce between terminal and server Interaction times, it is to avoid take server excess resource.
In the present embodiment, by when detecting application program and reporting an error, obtaining the error information of application program, and based on report Wrong information, obtains the feedback information that server is sent;Then judge whether feedback information includes the default version of application program again Information;When judging that feedback information includes the default version information of application program, updated based on default version information and apply journey Sequence.This method to the application program for occurring reporting an error can targetedly update and operated, to occur in repairing applications Report an error, improve application program stability, while the interaction times that report an error between terminal and server can also be reduced, it is to avoid Occupied terminal and server excess resource.
Referring to Fig. 3, Fig. 3 is a kind of another flow signal of application program update method provided in an embodiment of the present invention Figure.This method may operate in smart mobile phone (such as Android phone, IOS mobile phones), tablet personal computer or Intelligent worn device etc. In terminal, when being reported an error to application program in terminal, the application program that upgrades in time is carried out, is occurred with repairing applications Report an error problem.As shown in figure 3, the application program update method comprises the following steps S201~S207.
S201, the error information for obtaining the application program.
In the present embodiment, when detecting application program and reporting an error, i.e., there is mistake in application program, and terminal system will be obtained The error information of the application program.
Here, the error information of application program includes error stack information and identification information.Wherein, error stack information can Think the lines of code for the generation that reports an error.In other embodiments, error information can also can be identified for that out for others applies journey The wrong information that sequence occurs, is not particularly limited herein.
In addition, identification information can include one or more of groups in the much informations such as bag name, the version number of application program Close, as long as identification information can symbolize the identity information of application program.
It is understood that the content included by error information is not limited to the combination of above two, it can also be included His kind of information, such as, error information can also include IMEI (the International Mobile Equipment of terminal Identity, abbreviation IMEI) code, the user account of user's registration application program etc., be not particularly limited herein.
S202, the feedback information sent based on the error information, acquisition server.
In the present embodiment, after terminal system gets error stack information and identification information, terminal system will be sent Error stack information and identification information are to server.
In one embodiment, feedback module can also be installed in terminal, when terminal system get error stack information and After identification information, error stack information and identification information are transferred to feedback module, error stack information is sent by feedback module With identification information to server.It is understood that the feedback module can also be independent application program, do not do specific herein Limitation.
, will be according to the wrong heap when server receives error stack information and the identification information of terminal system transmission Stack information and identification information search the default version information of corresponding application program, wherein, the default version information should to repair The application version information of error information.
It should be noted that server can be corresponding with error information pre- according to the corresponding relation table search prestored If version information, it would however also be possible to employ other modes are searched, it is not particularly limited herein.
Server generates feedback information according to lookup result, and feedback information is sent to terminal.If it is understood that Whois lookup will include the default version letter to default version information corresponding with error information, in the feedback information generated Breath;If server is not found will not include being somebody's turn to do in default version information corresponding with error information, the feedback information generated Default version information.
S203, judge whether the feedback information includes the default version information of the application program, wherein, it is described default Version information is the application version information for repairing the error information;If the feedback information includes the application program Default version information, performs step S204;If the feedback information does not include the default version information of the application program, perform Step S206.
After terminal receives the feedback information of server transmission, it will determine that and whether there is application program in the feedback information Default version information.
If feedback information includes the default version information of application program, illustrate that presence can repair the letter that reports an error in server The application program of the default version of breath, now, will perform step S204.
If feedback information does not include the default version information of application program, illustrate to be not present to repair in server to report an error The application program of the default version of information, now, will perform step S206.
S204, judge the application program whether be in running status, if the application program be in running status, return Receipt row step S204;If the application program is not in running status, step S205 is performed.
When step S203 judges that feedback information includes default version information, first judge application program whether in fortune Row state.It should be noted that running status includes background operation state and front stage operation state.
When step S204 judges that application program is in running status, illustrate that user may use this to apply journey Sequence, in order to not influence user to use application program, wouldn't be updated operation, and be spaced weight after the scheduled time to application program It is new to perform step S204, that is, continue to judge the running status of application program.
When step S204 judges that application program is not in running status, in order to repairing applications be gone out in time Existing the problem of, step S205 will be performed.
S205, the application program updated based on the default version information.
When step S204 judges that application program is not in running status, terminal system will be according to default version information more New application.
Referring to Fig. 4, the sub-step schematic flow sheet that Fig. 4 is step S205 in Fig. 3.Step S205 sub-step includes Step S205a~S205d.
S205a, the installation file for obtaining to the server the corresponding application program of the default version information.
Terminal system downloads the installation file of corresponding application program according to default version information from server.
In one embodiment, in order to avoid mobile network's flow of waste user, terminal obtains described to the server The installation file of the corresponding application program of default version information, specifically performs following steps:
S205a1, judge the terminal whether be in wireless network connection status.
If S205a2, the terminal are in wireless network connection status, the default version is downloaded from the server The installation file of the corresponding application program of information.
If S205a3, the terminal are not in wireless network connection status, the state for recording the default version information is State to be downloaded, and return performs step S205a1 after the preset time of interval.
S205b, judge whether the application program is preset application program;If the application program is preset application journey Sequence, performs step S205c;If the application program is non-preset application program, step S205d is performed.
After the installation file that terminal gets the corresponding application program of default version information, it will determine that application program is No is preset application program.Wherein, preset application program can refer to the application program carried in terminal.Non- preset application program can To refer to the application program that user voluntarily downloads installation.
S205c, the silent mounting interface for calling terminal system simultaneously update the application program according to the installation file.
When application program is preset application program, the silent mounting interface of terminal system can be called, and according to described Installation file more new application, so can be in the case of user's unaware, and what repairing applications occurred, which report an error, asks Topic.
S205d, generation prompt message, for pointing out default update of user's triggering to operate to be updated according to the installation file The application program.
When application program is non-preset application program, in this case, application program is installed and generally requires user's ginseng With.Terminal generates prompt message, is operated for pointing out user to trigger default update manually.
For example, in prompt message, preset to update operating as a more new button, when user clicks on more new button, terminal The Action Events for clicking on more new button will be got, and according to the Action Events and installation file more new application.
It is understood that the above-mentioned mode according to installation file more new application is only numerous more new applications Mode in one kind, the update mode of application program can according to the actual requirements be configured, be not particularly limited herein.
S206, when the terminal meets preset trigger condition, sent to the server and obtain the default version and believe The request of breath.
When step S203 judges not include default version information in feedback information, it will determine that whether terminal meets default Trigger condition.
Here, preset trigger condition can turn back on for terminal.Such as, turn back on when detecting terminal, then judge Preset trigger condition is met, and performs corresponding steps.
Preset trigger condition can also be daily particular point in time or the interval scheduled time.Such as, triggering bar is preset Part is 8 points of every morning, or at interval of two hours.8 points of every morning is reached when the time, or at interval of two hours, All judge to meet trigger condition.
Certainly, preset trigger condition is not limited to above-mentioned several, can be configured according to the actual requirements, herein not to pre- If trigger condition is limited.
When judging that terminal meets preset trigger condition, terminal will send to the server and obtain the default version The request of information.Specifically, terminal generates the request for obtaining default version information according to error information, and sends this request to Server.It is understood that carrying error information in the request.
When server receives the request of terminal transmission, the error information in the request is obtained correspondence by server Default version information.
When error information of the server in request finds corresponding default version information, that is to say, that technology Personnel upload onto the server the default version information and corresponding installation file that solve error information, and now server will The default version information is sent to terminal.
When server does not find corresponding default version information according to request, that is to say, that technical staff will not also The default version information and corresponding installation file for solving error information are uploaded onto the server, and now server is not sent to terminal Any feedback information, that is to say, that terminal will not receive default version information.
The default version information that S207, the reception server are sent according to the request, and return to execution step S204.
Terminal is after the request for obtaining default version information is sent to server, if terminal receives server according to this Ask the default version information sent, then illustrate to there are problems that in server for repair default version information that this reports an error and Corresponding installation file, now, terminal will perform step S204.
In the present embodiment, by obtaining the error information of application program, and based on error information, obtain what server was sent Feedback information;Then judge whether feedback information includes the default version information of application program again;When judging feedback information bag The default version information of application program is included, and in the case where judging that application program is not in running status, based on default version information More new application.This method is targetedly updated in the case where user is without using application program to application program Operation, with reporting an error for occurring in repairing applications, improves the stability of application program, while terminal and service can also be reduced The interaction times that report an error between device, it is to avoid occupied terminal and server excess resource.
Referring to Fig. 5, Fig. 5 is a kind of structural representation of terminal provided in an embodiment of the present invention.The terminal 300 can be The electronic equipments such as smart mobile phone (such as Android phone, IOS mobile phones), tablet personal computer or Intelligent worn device, do not do have herein Body is limited.
As shown in figure 5, the terminal 300 in the present embodiment includes first acquisition unit 301, second acquisition unit 302, first Judging unit 303 and updating block 304.
(1) first acquisition unit 301;
First acquisition unit 301, the error information for obtaining the application program.
Specifically, when detecting application program and reporting an error, i.e., there is mistake in application program, and first acquisition unit 301 will be obtained Take the error information of the application program.
The error information of application program includes error stack information and identification information.Wherein, error stack information can be Report an error the lines of code of generation.In other embodiments, error information can also can be identified for that out application program institute for others The wrong information of appearance, is not particularly limited herein.
In addition, identification information can include one or more of groups in the much informations such as bag name, the version number of application program Close, as long as identification information can symbolize the identity information of application program.
First acquisition unit 301 sends error information to second acquisition unit 302 after error information is got.
(2) second acquisition unit 302;
Second acquisition unit 302, for based on the error information, obtaining the feedback information that server is sent.
After second acquisition unit 302 receives error information, error information is sent to server.Specifically, second Acquiring unit 302 sends error stack information and identification information to server.
When server finds corresponding default version information according to the error stack information and identification information that receive, Feedback information will be generated according to default version information, and send feedback information is to terminal.Second acquisition unit 302 will be obtained and serviced The feedback information that device is sent according to error stack information and identification information.It is understood that will include in the feedback information pre- If version information.
When server does not get default version information according to error stack information and identification information, that is to say, that clothes Do not occur the default version information of mistake in business device for repairing applications current version, now server is also generated instead Feedforward information is simultaneously sent to terminal.Second acquisition unit 302 will obtain the feedback information.Wherein, it will not include in the feedback information Default version information.
It should be noted that application version information of the default version information for the reparation error information.
(3) first judging units 303;
First judging unit 303, for judging whether the feedback information includes the default version letter of the application program Breath, wherein, the default version information is the application version information for repairing the error information.
The feedback information got is transferred to the first judging unit 303 by second acquisition unit 302.First judging unit 303 judge whether the feedback information includes the default version information of application program.
(4) updating block 304.
Updating block 304, if including the default version information of the application program for the feedback information, based on described Default version information updates the application program.
When the first judging unit 303 is judged to there is default version information in feedback information, the first judging unit 303 will The first signal is sent to updating block 304, to cause updating block 304 after the first signal is received, based on default version letter Cease more new application.
Specifically, updating block 304 obtains the installation file of the corresponding application program of default version information to server.When Updating block 304 is received after the installation file of the application program of server transmission, will be according to the installation file upgrade application journey Sequence is to default version, to repair the problem that reports an error appeared in old edition application.
In the present embodiment, the error information of application program is obtained in first acquisition unit 301, and by second acquisition unit 302 obtain the feedback information that server is sent based on error information;Then judge that feedback information is by the first judging unit 303 again The no default version information including application program;When the first judging unit 303 judges that feedback information includes the pre- of application program If during version information, updating block 304 is based on default version information more new application.The terminal 300 can be to reporting an error Application program carry out targetedly updating operation, with reporting an error for occurring in repairing applications, improve the steady of application program It is qualitative, while the interaction times that report an error between terminal and server can also be reduced, it is to avoid occupied terminal and server are excessively provided Source.
Referring to Fig. 6, Fig. 6 is a kind of another structural representation of terminal provided in an embodiment of the present invention.The terminal 400 can Think the electronic equipments such as smart mobile phone (such as Android phone, IOS mobile phones), tablet personal computer or Intelligent worn device, herein not Do concrete restriction.
As shown in figure 5, the terminal 400 in the present embodiment includes first acquisition unit 401, second acquisition unit 402, first Judging unit 403, the 3rd judging unit 404, updating block 405, transmitting element 406 and receiving unit 407.
(1) first acquisition unit 401;
First acquisition unit 401, the error information for obtaining the application program.
Specifically, when detecting application program and reporting an error, i.e., there is mistake in application program, and first acquisition unit 401 will be obtained Take the error information of the application program.
The error information of application program includes error stack information and identification information.Wherein, error stack information can be Report an error the lines of code of generation.In other embodiments, error information can also can be identified for that out application program institute for others The wrong information of appearance, is not particularly limited herein.
In addition, identification information can include one or more of groups in the much informations such as bag name, the version number of application program Close, as long as identification information can symbolize the identity information of application program.
First acquisition unit 401 sends error information to second acquisition unit 402 after error information is got.
(2) second acquisition unit 402;
Second acquisition unit 402, for based on the error information, obtaining the feedback information that server is sent.
Second acquisition unit 402 is got after error information is got, that is, after error stack information and identification information, will Error stack information and identification information are sent to server.
When server receives error stack information and the identification information of the second acquisition unit 402 transmission, by basis The error stack information and identification information search the default version information of corresponding application program, wherein, the default version information To repair the application version information of the error information.
It should be noted that server can be corresponding with error information pre- according to the corresponding relation table search prestored If version information, it would however also be possible to employ other modes are searched, it is not particularly limited herein.
Server generates feedback information according to lookup result, and feedback information is sent to terminal.If it is understood that Whois lookup will include the default version letter to default version information corresponding with error information, in the feedback information generated Breath;If server is not found will not include being somebody's turn to do in default version information corresponding with error information, the feedback information generated Default version information.
Second acquisition unit 402 will obtain the feedback information that server is sent, and feedback information is transferred into the first judgement Unit 403.
(3) first judging units 403;
First judging unit 403, for judging whether the feedback information includes the default version letter of the application program Breath, wherein, the default version information is the application version information for repairing the error information.
After the first judging unit 403 receives feedback information, it will determine that and whether there is application program in the feedback information Default version information.
If feedback information includes the default version information of application program, illustrate that presence can repair the letter that reports an error in server The application program of the default version of breath, now, the first judging unit 403 will send secondary signal to the 3rd judging unit 404, with So that the 3rd judging unit 404 performs corresponding operating according to secondary signal.
If feedback information does not include the default version information of application program, illustrate to be not present to repair in server to report an error The application program of the default version of information, now, the first judging unit 403 will send the 3rd signal to transmitting element 406, so that Obtain transmitting element 406 and corresponding operating is performed according to the 3rd signal.
(4) the 3rd judging units 404;
3rd judging unit 404, for judging whether the application program is in running status.
3rd judging unit 404 will determine that whether application program is in running status after secondary signal is received. This, running status includes background operation state and front stage operation state.
When the 3rd judging unit 404 judges that application program is in running status, illustrate that user may use this Application program, in order to not influence user to use application program, wouldn't be updated operation, and be spaced pre- timing to application program Between after, the 3rd judging unit 404 rejudges the running status of application program.
When the 3rd judging unit 404 judges that application program is not in running status, in order to which application can be repaired in time Program institute produced problem, the 3rd judging unit 404 sends the 4th signal to updating block 405, to cause updating block 405 Corresponding operating is performed according to the 4th signal.
(5) updating block 405;
Updating block 405, for updating the application program based on the default version information.
Referring to Fig. 7, Fig. 7 is the structural representation of updating block in Fig. 6.The updating block 405 includes the 3rd and obtains single First 4051, second judging unit 4052, call updating block 4053 and prompting updating block 4054.It is specific as follows:
(51) the 3rd acquiring units 4051;
3rd acquiring unit 4051, for obtaining the corresponding application program of the default version information to the server Installation file.
Specifically, the 3rd acquiring unit 4051 downloads corresponding application program according to default version information from server Installation file.
In one embodiment, in order to avoid wasting mobile network's flow of user, the 3rd acquiring unit 4051 is to the clothes It is specific to perform when business device obtains the installation file of the corresponding application program of the default version information:Whether judge the terminal In wireless network connection status, if the terminal is in wireless network connection status, downloaded from the server described pre- If the installation file of the corresponding application program of version information;If the terminal is not in wireless network connection status, record is described The state of default version information is state to be downloaded, and rejudges whether terminal is in wireless network after the preset time of interval Connection status.
(52) second judging units 4052;
Second judging unit 4052, for judging whether the application program is preset application program.
After the 3rd acquiring unit 4051 gets the installation file of the corresponding application program of default version information, second Judging unit 4052 will determine that whether application program is preset application program.Wherein, preset application program can refer in terminal certainly The application program of band.Non- preset application program can refer to the application program that user voluntarily downloads installation.
(53) updating block 4053 is called;
Updating block 4053 is called, if being preset application program for the application program, the silence of terminal system is called Mounting interface simultaneously updates the application program according to the installation file.
When it is preset application program that the second judging unit 4052, which judges application program, call updating block 4053 can be with The silent mounting interface of terminal system is called, and according to the installation file more new application, so can be noninductive in user In the case of knowing, problem that what repairing applications occurred report an error.
(54) updating block 4054 is pointed out.
Updating block 4054 is pointed out, if being non-preset application program for the application program, prompt message is generated, is used for Point out user's triggering is default to update operation to update the application program according to the installation file.
When it is non-preset application program that the second judging unit 4052, which judges application program, in this case, install Application program generally requires user's participation.The generation prompt message of updating block 4054 is pointed out, it is pre- for pointing out user to trigger manually If updating operation, and after the event for clicking on default renewal operation is received, the application program is updated according to installation file.
(6) transmitting element 406;
Transmitting element 406, if not including the default version information of the application program for the feedback information, described When terminal meets preset trigger condition, the request for obtaining the default version information is sent to the server.
When the first judging unit 403 judges that transmitting element 406 judges when not including default version information in feedback information Whether terminal meets preset trigger condition.
Here, preset trigger condition can turn back on for terminal, or daily particular point in time or interval Scheduled time etc., it is not particularly limited herein.
When transmitting element 406 judges that terminal 400 meets preset trigger condition, transmitting element 406 is to the server Send the request for obtaining the default version information.
Specifically, transmitting element 406 generates the request for obtaining default version information according to error information, and the request is sent out Deliver to server.It is understood that carrying error information in the request.
When server receives the request of the transmission of transmitting element 406, server will be corresponding pre- according to the acquisition request If version information.
When server finds corresponding default version information according to request, now server will be sent to terminal 400 The default version information.
When server does not find corresponding default version information according to request, that is to say, that technical staff will not also The default version information and corresponding installation file for solving error information upload onto the server, and now server is not to terminal 400 Send any feedback information.
(7) receiving unit 407.
Receiving unit 407, for receiving the default version information that the server is sent according to the request.
Sent in transmitting element 406 to server after the request for obtaining default version information, receiving unit 407 will be received The default version information that server is sent according to the request, and after the default version information is received, to the 3rd judging unit 404 send the 6th signal, to cause the 3rd judging unit 404 performs corresponding judgement according to the 6th signal to operate.
In the present embodiment, first acquisition unit 404 obtains the error information of application program, and by second acquisition unit 402 Based on error information, the feedback information that server is sent is obtained;Then whether feedback information is judged by the first judging unit 403 again Default version information including application program;When the first judging unit 403 judges that feedback information includes the default of application program Version information, and the 3rd judging unit 404 judges that application program is not under running status, updating block 405 is based on default Version information more new application.The terminal 400 carries out having pin to application program in the case where user is without using application program Renewal operation to property, with reporting an error for occurring in repairing applications, improves the stability of application program, while can also reduce The interaction times that report an error between terminal and server, it is to avoid occupied terminal and server excess resource.
The present invention also provides a kind of terminal, such as tablet personal computer, mobile phone, electronic reader mobile terminal, referring to Fig. 8, Fig. 8 is a kind of structural representation of terminal provided in an embodiment of the present invention.The terminal 600 can include input unit 601, storage Device 602, sensor 603, display device 604 and processor 605.
It will be understood by those skilled in the art that the restriction of the terminal structure shown in Fig. 8 not structure paired terminal 600, can With including than illustrating more or less parts, either combining some parts or different parts arrangement.
Input unit 601 can be used for numeral, character information or the user's characteristic information for receiving input, and produce and user Set and the relevant keyboard of function control, mouse, action bars, optics or the input of trace ball signal.
In one embodiment, input unit 601 may include touch sensitive surface and other input equipments.Touch sensitive surface, also referred to as For touch display screen or Trackpad, collecting touch operation of the user on or near it, (such as user uses finger, stylus Etc. the operation of any suitable object or annex on touch sensitive surface or near touch sensitive surface), and according to journey set in advance Formula drives corresponding attachment means.
Memory 602 can be used for storage application program and data.Include and can hold in the application program that memory 602 is stored Line code.Application program can constitute various functions module.Processor 605 is stored in the application journey of memory 602 by operation Sequence, so as to perform various function application and data processing.
Memory 602 can mainly include storing program area and storage data field, wherein, storing program area can store operation system Application program (such as sound-playing function, image player function etc.) needed for system, at least one function etc.;Storage data field can Storage uses created data (such as voice data, phone directory etc.) etc. according to terminal.
Sensor 603, such as optical sensor, motion sensor and other sensors.In one embodiment, optical sensor It may include ambient light sensor and proximity transducer.Motion sensor includes gravity accelerometer, and the acceleration of gravity is passed Sensor can detect in all directions the size of (generally three axles) acceleration, and size and the direction of gravity are can detect that when static, Application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification available for identification mobile phone posture is related Function (such as pedometer, percussion) etc..Barometer, hygrometer, thermometer, infrared ray sensor are can also configure as terminal 600 Etc. other sensors, it will not be repeated here.
Display device 604, available for the information that is inputted by user of display or be supplied to user information and terminal it is each Graphical user interface is planted, these graphical user interface can be made up of figure, text, icon, video and its any combination.It is aobvious Showing device 604 may include display panel.
Processor 605 is the control centre of terminal 600, utilizes each of various interfaces and the whole terminal 600 of connection Part, the application program in memory 602 is stored in by operation or execution, and call the number being stored in memory 602 According to the various functions and processing data of execution terminal 600, so as to carry out integral monitoring to terminal 600.
Although not shown in Fig. 8, it will be understood to those skilled in the art that terminal 600 can also include camera, bluetooth Module, Wireless Fidelity etc., will not be repeated here.
Specifically in the present embodiment, the processor 605 in terminal can be according to following instruction, will be one or more The corresponding executable code of process of application program is loaded into memory 602, by processor 605 to run is stored in memory Program code in 602, and perform following operation:Obtain the error information of the application program;Based on the error information, obtain The feedback information for taking server to send;Judge whether the feedback information includes the default version information of the application program, its In, the default version information is the application version information for repairing the error information;If the feedback information includes institute The default version information of application program is stated, the application program is updated based on the default version information.
In one embodiment, the error information includes error stack information and identification information.The processor 605 is being held Row is based on the error information, when obtaining the feedback information step that server is sent, specific to perform following operation:Send the mistake Stack information and identification information are missed to the server;The server is obtained according to the error stack information and identification information The feedback information of transmission.
Further, the processor 605 also performs following operation:If the feedback information does not include the application program Default version information, when the terminal meets preset trigger condition, sent to the server and obtain the default version The request of information;The default version information that the server is sent according to the request is received, and based on the default version letter Breath updates the application program.
In one embodiment, processor 605 is being performed based on the default version information renewal application program step When, specifically perform following steps:The installation file of the corresponding application program of the default version information is obtained to the server; Whether judge the application program is preset application program;If the application program is preset application program, terminal system is called Silent mounting interface and the application program is updated according to the installation file;If the application program is non-preset application journey Sequence, generates prompt message, for pointing out default update of user's triggering to operate to update the application journey according to the installation file Sequence.
In one embodiment, the processor 605 is being performed based on the default version information renewal application program Before step, following operation is also performed:Judge whether the application program is in running status;If the application program is not in Running status, the application program is updated based on the default version information.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein Member and algorithm steps, can be realized with electronic hardware, computer software or the combination of the two, in order to clearly demonstrate hardware With the interchangeability of software, the composition and step of each example are generally described according to function in the above description.This A little functions are performed with hardware or software mode actually, depending on the application-specific and design constraint of technical scheme.Specially Industry technical staff can realize described function to each specific application using distinct methods, but this realization is not It is considered as beyond the scope of this invention.
It is apparent to those skilled in the art that, for convenience of description and succinctly, the end of foregoing description End and the specific work process of unit, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
, can be by it in several embodiments provided herein, it should be understood that disclosed terminal and method Its mode is realized.For example, device embodiment described above is only schematical, for example, the division of the unit, only Only a kind of division of logic function, can there is other dividing mode when actually realizing, such as multiple units or component can be tied Another system is closed or is desirably integrated into, or some features can be ignored, or do not perform.In addition, shown or discussed phase Coupling or direct-coupling or communication connection between mutually can be INDIRECT COUPLING or the communication by some interfaces, device or unit Connection or electricity, mechanical or other forms are connected.
Step in present invention method can be sequentially adjusted, merged and deleted according to actual needs.This hair Unit in bright embodiment terminal can be combined, divided and deleted according to actual needs.
The unit illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize scheme of the embodiment of the present invention according to the actual needs Purpose.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, can also It is that unit is individually physically present or two or more units are integrated in a unit.It is above-mentioned integrated Unit can both be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
If the integrated unit is realized using in the form of SFU software functional unit and as independent production marketing or used When, it can be stored in a computer read/write memory medium.Understood based on such, technical scheme is substantially The part contributed in other words to prior art, or all or part of the technical scheme can be in the form of software product Embody, the computer software product is stored in a storage medium, including some instructions are to cause a computer Equipment (can be personal computer, server, or network equipment etc.) performs the complete of each embodiment methods described of the invention Portion or part steps.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey The medium of sequence code.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any Those familiar with the art the invention discloses technical scope in, various equivalent modifications can be readily occurred in or replaced Change, these modifications or substitutions should be all included within the scope of the present invention.Therefore, protection scope of the present invention should be with right It is required that protection domain be defined.

Claims (10)

1. a kind of application program update method, it is characterised in that including:
Obtain the error information of the application program;
Based on the error information, the feedback information that server is sent is obtained;
Judge whether the feedback information includes the default version information of the application program, wherein, the default version information To repair the application version information of the error information;
If the feedback information includes the default version information of the application program, update described based on the default version information Application program.
2. application program update method according to claim 1, it is characterised in that the error information includes error stack Information and identification information;
It is described to be based on the error information, the feedback information that server is sent is obtained, including:
The error stack information and identification information are sent to the server;
Obtain the feedback information that the server is sent according to the error stack information and identification information.
3. application program update method according to claim 1, it is characterised in that described whether to judge the feedback information After default version information including the application program, in addition to:
If the feedback information does not include the default version information of the application program, preset trigger condition is met in the terminal When, the request for obtaining the default version information is sent to the server;
The default version information that the server is sent according to the request is received, and institute is updated based on the default version information State application program.
4. the application program update method according to any one in claims 1 to 3, it is characterised in that described to be based on institute State default version information and update the application program, including:
The installation file of the corresponding application program of the default version information is obtained to the server;
Whether judge the application program is preset application program;
If the application program is preset application program, the silent mounting interface of terminal system is called and according to the installation file Update the application program;
If the application program is non-preset application program, prompt message is generated, for pointing out user's triggering is default to update operation To update the application program according to the installation file.
5. the application program update method according to any one in claims 1 to 3, it is characterised in that described to be based on institute State before default version information updates the application program, in addition to:
Judge whether the application program is in running status;
If the application program is not in running status, the application program is updated based on the default version information.
6. a kind of terminal, it is characterised in that including:
First acquisition unit, the error information for obtaining the application program;
Second acquisition unit, for based on the error information, obtaining the feedback information that server is sent;
First judging unit, for judging whether the feedback information includes the default version information of the application program, wherein, The default version information is the application version information for repairing the error information;
Updating block, if including the default version information of the application program for the feedback information, based on the default version Application program described in this information updating.
7. terminal according to claim 6, it is characterised in that the error information includes error stack information and mark is believed Breath;The second acquisition unit is used to send the error stack information and identification information to the server, and obtains described The feedback information that server is sent according to the error stack information and identification information.
8. terminal according to claim 6, it is characterised in that the terminal also includes transmitting element and receiving unit;
The transmitting element, if not including the default version information of the application program for the feedback information, at the end When end meets preset trigger condition, the request for obtaining the default version information is sent to the server;
The receiving unit, for receiving the default version information that the server is sent according to the request;
The updating block, for updating the application program based on the default version information.
9. the terminal according to any one in claim 6 to 8, it is characterised in that the updating block is obtained including the 3rd Take unit, the second judging unit, call updating block and prompting updating block;
3rd acquiring unit, the installation for obtaining the corresponding application program of the default version information to the server File;
Second judging unit, for judging whether the application program is preset application program;
It is described to call updating block, if being preset application program for the application program, call the silent installation of terminal system Interface simultaneously updates the application program according to the installation file;
The prompting updating block, if being non-preset application program for the application program, generates prompt message, for pointing out User's triggering is default to be updated operation to update the application program according to the installation file.
10. the terminal according to any one in claim 6 to 8, it is characterised in that the terminal also includes the 3rd and judged Unit;
3rd judging unit, for judging whether the application program is in running status;
The updating block, if being not in running status for the application program, institute is updated based on the default version information State application program.
CN201710359369.5A 2017-05-19 2017-05-19 A kind of application program update method and terminal Withdrawn CN107193597A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710359369.5A CN107193597A (en) 2017-05-19 2017-05-19 A kind of application program update method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710359369.5A CN107193597A (en) 2017-05-19 2017-05-19 A kind of application program update method and terminal

Publications (1)

Publication Number Publication Date
CN107193597A true CN107193597A (en) 2017-09-22

Family

ID=59875396

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710359369.5A Withdrawn CN107193597A (en) 2017-05-19 2017-05-19 A kind of application program update method and terminal

Country Status (1)

Country Link
CN (1) CN107193597A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111488156A (en) * 2020-04-08 2020-08-04 中国银行股份有限公司 Client function offline method and device
CN112860288A (en) * 2021-01-29 2021-05-28 上海二三四五网络科技有限公司 Control method and device for updating program versions in batch
CN113467821A (en) * 2021-06-03 2021-10-01 荣耀终端有限公司 Application program repairing method, device, equipment and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101499933A (en) * 2008-02-03 2009-08-05 突触计算机***(上海)有限公司 Method and apparatus for error control in network system
CN102855181A (en) * 2011-07-01 2013-01-02 腾讯科技(深圳)有限公司 Software repairing method and system
CN103246528A (en) * 2012-02-10 2013-08-14 中兴通讯股份有限公司 Software updating method and device
CN103309761A (en) * 2013-05-31 2013-09-18 深圳创维数字技术股份有限公司 Method and system for automatic mistake correction based on on-line service
CN103365732A (en) * 2012-03-29 2013-10-23 宇龙计算机通信科技(深圳)有限公司 Method and system for processing application program exception and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101499933A (en) * 2008-02-03 2009-08-05 突触计算机***(上海)有限公司 Method and apparatus for error control in network system
CN102855181A (en) * 2011-07-01 2013-01-02 腾讯科技(深圳)有限公司 Software repairing method and system
CN103246528A (en) * 2012-02-10 2013-08-14 中兴通讯股份有限公司 Software updating method and device
CN103365732A (en) * 2012-03-29 2013-10-23 宇龙计算机通信科技(深圳)有限公司 Method and system for processing application program exception and mobile terminal
CN103309761A (en) * 2013-05-31 2013-09-18 深圳创维数字技术股份有限公司 Method and system for automatic mistake correction based on on-line service

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111488156A (en) * 2020-04-08 2020-08-04 中国银行股份有限公司 Client function offline method and device
CN112860288A (en) * 2021-01-29 2021-05-28 上海二三四五网络科技有限公司 Control method and device for updating program versions in batch
CN113467821A (en) * 2021-06-03 2021-10-01 荣耀终端有限公司 Application program repairing method, device, equipment and readable storage medium

Similar Documents

Publication Publication Date Title
CN108241500A (en) A kind of restorative procedure of hardware component, device, system and storage medium
CN104967550A (en) Method and apparatus for displaying unread messages
CN106557339A (en) The upgrade method and device of equipment firmware
CN102804144A (en) Remotely locating and commanding a mobile device
CN106775827A (en) A kind of application program update method and device, computer equipment
CN103150513A (en) Method and device for intercepting embedded information in application program
CN107846511A (en) A kind of method, terminal and computer-readable recording medium for accessing moving advertising
CN111708557B (en) Method, device and storage medium for updating configuration file
CN106227588A (en) The creation method of a kind of multi-instance object, device and mobile terminal
CN108228230A (en) Upgrade method, terminal and the computer readable storage medium of UFS firmwares
CN104932955A (en) Method for backing up data during factory setting restoring of mobile terminal, and mobile terminal
CN103218705A (en) Method and device of agenda reminding
CN110058850A (en) A kind of development approach of application, device and storage medium
CN112379976A (en) Event processing method and device, mobile terminal and storage medium
CN107193597A (en) A kind of application program update method and terminal
CN106850800A (en) Method and client that a kind of download path determines
CN110609694A (en) BUG repairing method and device, terminal equipment and storage medium
CN1326410C (en) Method for obtaining updating power information of mobile terminal
CN109002314A (en) Oftware updating method, device, electronic equipment and storage medium
CN106506815A (en) A kind of application enables method and relevant device
CN106155691A (en) Interface data processing method, device and the mobile terminal of a kind of mobile terminal
CN106020917B (en) A kind of software installation method and device, user terminal
CN103198252B (en) Device and method for the control information for managing the application program in portable terminal
CN106933636A (en) Start method, device and the terminal device of plug-in services
CN104966205A (en) Object draw-off method and apparatus

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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20170922