CN103544033B - Method, device and associated equipment for rolling back application program - Google Patents

Method, device and associated equipment for rolling back application program Download PDF

Info

Publication number
CN103544033B
CN103544033B CN201310462919.8A CN201310462919A CN103544033B CN 103544033 B CN103544033 B CN 103544033B CN 201310462919 A CN201310462919 A CN 201310462919A CN 103544033 B CN103544033 B CN 103544033B
Authority
CN
China
Prior art keywords
application program
rollback
version
information
version information
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
CN201310462919.8A
Other languages
Chinese (zh)
Other versions
CN103544033A (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.)
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201310462919.8A priority Critical patent/CN103544033B/en
Publication of CN103544033A publication Critical patent/CN103544033A/en
Application granted granted Critical
Publication of CN103544033B publication Critical patent/CN103544033B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a method, device and associated equipment for rolling back an application program. The method for rolling back the application program comprises the steps of obtaining current version information of the application program and rollback target version information, further obtaining a patch file corresponding to upgrading from a target version to a current version of the application program, generating an installation file of the target version according to the patch file and a current installation file of the application program, and operating the installation file of the current version. The invention further provides the device, terminal device and server for rolling back the application program. According to the method, device and associated equipment for rolling back the application program, the installation file of the current version of the application program and the patch file corresponding to the upgrading from the target version to the current version of the application program are utilized for obtaining the installation file of the target version, the installation file of the target version is operated to roll back the application program from the current version to the target version.

Description

Application program backing method, device and relevant device
Technical field
It relates to field of computer technology, more particularly to a kind of application program backing method, device and correlation set Standby.
Background technology
Application developer is not in development and application program process, complete due to designing comprehensive or application program function Kind, application program after application issued in addition it is also necessary to by way of program is upgraded.Described program is upgraded, typically logical Cross modification application program or increase new functional realiey in the application, wherein, amended application program or increase New function, in the form of patch file issue, thus realizing the upgrading of application program.Therefore, same application may be deposited In different editions it is however generally that, the corresponding version label of redaction is higher.
But, it will usually this situation occurs in the service condition of user:It is believed that new after customer upgrade application program The experience of the application program of version not as in the previous version, or the application program of redaction do not meet oneself using practising Used.Wish this application recovery to version before, but under existing conditions, due to application program updating, it is right The installation file answered also can be covered it is impossible to carry out the rollback of version by the installation procedure of redaction.
Content of the invention
Present disclose provides a kind of application program backing method, device and electronic equipment, cannot be real to solve application program The problem of existing rollback.
In order to solve above-mentioned technical problem, present disclose provides following technical scheme:
In a first aspect, present disclose provides a kind of application program backing method is it is characterised in that methods described includes:
Obtain the current version information of application program, the application program rollback operation corresponding target version letter that user selectes Breath;And,
Obtain described application program and be upgraded to the corresponding patch file of current version from target version;
File and described patch file be currently installed on according to described application program, generate, and described application journey is installed The corresponding installation file of target version of sequence.
Preferably, methods described also includes:
Judge described application program whether there is can rollback target version, if there is can rollback target version, hold The step that row obtains application program rollback operation corresponding target version information.
Preferably, judge application program whether there is can rollback target version step, in the following way:
Obtain described application program corresponding all versions information;
Judge whether described current version information is minimum version information, if described current version information is not minimum version This information it is determined that described application program exist can rollback target version.
Preferably, if application program exist can rollback target version, display application program rollback prompt options;
Receive the first operation information comprising target version information that the described rollback prompt options of triggering produce;
Described target version information is obtained from described first operation information.
Preferably, the rollback prompt options of described application program include described application program less than current version information All versions information.
Preferably, if described current version information is not minimum version information, display whether to carry out application program rollback Rollback prompt options;And,
Receive the second operation information that the described rollback prompt options of triggering produce;
According to described second operation information, show that described application program is less than all version informations of current version information;
Receive operator from described less than all version informations of current version information select any one version information As described target version information.
Preferably, if described current version information is not minimum version information, whether judge described current version information It is highest version information, if described current version information is not highest version information, the upgrade tip choosing of display application program Item and rollback prompt options.
Preferably, the step that described acquisition application program upgrades to the corresponding patch file of current version from target version, In the following way:
From the server storing described application program patch file, download described application program and upgrade to from target version Patch file needed for current version.
Second aspect, the disclosure also provides a kind of application program backing method, including:
Receive rollback requests message corresponding with application program rollback operation;
Obtain the corresponding target version information of described rollback requests message;
Obtain described application program and be upgraded to the corresponding patch file of current version from target version, described patch file is used In described terminal unit according to described application program the file generated that is currently installed on, and install described application program target version This corresponding installation file.
Preferably, methods described also includes:Obtain described application program corresponding all versions information, so that terminal unit Judge whether described current version information is minimum version information according to all versions information of described application program, determine described Application program whether there is can rollback target version, and determine described application program exist can rollback target version Afterwards, obtain described application program corresponding target version information.
The third aspect, the disclosure also provides a kind of application program rollback device, is applied to terminal unit, described terminal unit At least include display unit, described device includes:
First acquisition unit, obtains the current version information of the application program that user selectes;
Second acquisition unit, obtains the rollback operation corresponding target version information of described application program;
3rd acquiring unit, obtains described application program and is upgraded to the corresponding patch file of current version from target version;
Application program signal generating unit, generates for be currently installed on file and the described patch file according to described application program The corresponding installation file of target version of described application program;
Application program installation unit, the corresponding installation file of the target version for installing described application program.
Preferably, described device also includes:
Judging unit, for judge described application program whether there is can rollback target version, can rollback when existing During target version, the described second acquisition unit of triggering obtains the rollback operation corresponding target version information of described application program.
Preferably, described judging unit includes:
4th acquiring unit, for obtaining described application program corresponding all versions information;
Judgment sub-unit, for judging whether described current version information is minimum version information, if not minimum version This information it is determined that described application program exist can rollback target version.
Preferably, determining that described application program exists in described judging unit can be described aobvious after the target version of rollback Show unit display rollback prompt options;
Described second acquisition unit includes:
First receiving unit, comprises the first of target version information for what the described rollback prompt options of reception triggering produced Operation information;
Obtain subelement, for obtaining described target version information from described first operation information.
Preferably, described rollback prompt options include all versions letter that described application program is less than current version information Breath.
Preferably, determining that described application program exists in described judging unit can be described aobvious after the target version of rollback Show that unit displays whether to carry out the rollback prompt options of application program rollback;
Described second acquisition unit includes:
Second receiving unit, for receiving the second operation information that the described rollback prompt options of triggering produce, triggering is described Display unit shows all version informations being less than current version information in described application program;
3rd receiving unit, for receive operator from described less than all version informations of current version information select Any one version information as described target version information.
Preferably, if described judgment sub-unit judges that described current version information is not minimum version information, and not It is highest version information, the described display unit of triggering shows upgrade tip option and the rollback prompt options of application program.
Fourth aspect, the disclosure also provides a kind of application program rollback device, including:
4th receiving unit, receives the rollback requests message that application program rollback operation produces;
5th acquiring unit, obtains the corresponding target version information of described rollback requests message;
6th acquiring unit, obtains described application program and is upgraded to the corresponding patch file of current version from target version, So that described terminal unit obtains described patch file, it is currently installed on literary composition according to described patch file and described application program Part, generates, and installs the corresponding installation file of target version of described application program.
Preferably, described device also includes:
7th acquiring unit, obtains described application program corresponding all versions information, so that terminal unit is according to described The all versions information of application program judges whether described current version information is minimum version information, determines described application program With the presence or absence of can rollback target version, and institute can be obtained after the target version of rollback determining that described application program exists State application program corresponding target version information.
5th aspect, the disclosure also provides a kind of terminal unit, including memorizer, and one or more than one journey Sequence, one of or more than one program storage is in memorizer, and is configured to by one or more than one processor Execution is one or more than one program bag contains the instruction for carrying out following operation:
Obtain the current version information of application program, the application program rollback operation corresponding target version letter that user selectes Breath;And,
Obtain described application program and be upgraded to the corresponding patch file of current version from target version;
File and described patch file be currently installed on according to described application program, generate, and described application journey is installed The corresponding installation file of target version of sequence.
6th aspect, the disclosure also provides a kind of server, including memorizer, and one or more than one journey Sequence, one of or more than one program storage is in memorizer, and is configured to by one or more than one processor Execution is one or more than one program bag contains the instruction for carrying out following operation:
Receive rollback requests message corresponding with application program rollback operation;
Obtain the corresponding target version information of described rollback requests message;
Obtain described application program and be upgraded to the corresponding patch file of current version from target version, described patch file is used In described terminal unit according to described application program the file generated that is currently installed on, and install described application program target version This corresponding installation file.
The following beneficial effect of the disclosure can include:Using the installation file of the current version of application program, Yi Jisuo State application program and be upgraded to the corresponding patch file of current version from target version, obtain the installation file of target version.Run The installation file of target version makes described application program return back to target version from current version.And, terminal unit only need to be from Server side downloads the patch file that the application program selected is upgraded to current version from target version, and usual patch file takies Space more much smaller than installation file, therefore, described application program backing method can save download file need flow and Time, thus save Internet resources.Additionally, server side only need to store the patch file of application program, thus saving clothes The memory space of business device.
It should be appreciated that above general description and detailed description hereinafter are only exemplary, can not be limited this Open.
Brief description
For the technical scheme being illustrated more clearly that in the disclosure, in embodiment being described below, required use is attached Figure be briefly described it should be apparent that, for those of ordinary skills, before not paying creative labor Put, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of schematic flow sheet of disclosure application program backing method;
Fig. 2 is the schematic flow sheet of disclosure another kind application program backing method;
Fig. 3 is the schematic flow sheet of step S202 in disclosure Fig. 2;
Fig. 4 is the schematic flow sheet of another application program backing method of the disclosure;
Fig. 5 A is a kind of schematic diagram of the display interface of terminal unit of the disclosure;
Fig. 5 B is the schematic diagram of the display interface of disclosure another kind terminal unit;
Fig. 5 C is the schematic diagram of the display interface of another terminal unit of the disclosure;
Fig. 6 is the schematic flow sheet of another application program backing method of the disclosure;
Fig. 7 A is a kind of schematic diagram of the display interface of terminal unit of the disclosure;
Fig. 7 B is the schematic diagram of the display interface of disclosure another kind terminal unit;
Fig. 8 is the schematic flow sheet of disclosure another kind application program backing method;
Fig. 9 is a kind of schematic flow sheet of the application program backing method being applied to server of the disclosure;
Figure 10 is a kind of structural representation of disclosure application program rollback device;
Figure 11 is the structural representation of disclosure another kind application program rollback device;
Figure 12 is the structural representation of the judging unit in Figure 11;
Figure 13 is the structural representation of another application program rollback device of the disclosure;
Figure 14 is the structural representation of another application program rollback device of the embodiment of the present disclosure;
Figure 15 is a kind of structural representation of disclosure application program rollback device;
A kind of structural representation of terminal unit that Figure 16 provides for the disclosure;
A kind of structural representation of server that Figure 17 provides for the disclosure.
By above-mentioned accompanying drawing it has been shown that the clear and definite embodiment of the disclosure, hereinafter will be described in more detail.These accompanying drawings It is not intended to limit the scope of disclosure design by any mode, but be art technology by reference to specific embodiment Personnel illustrate the concept of the disclosure.
Specific embodiment
Disclosure following examples provide application program backing method, device and relevant device.Wherein, described application journey Sequence backing method, is currently installed on file using application program, and described application program is from the corresponding target version of rollback operation Originally it is upgraded to the patch file of current version, obtains the installation file of target version, finally, run described installation file, you can Described application program is made to return back to target version from current version.
It is more than the core concept of the disclosure, in order that those skilled in the art more fully understand disclosure scheme, below By with reference to the accompanying drawing in the disclosure, the technical scheme in the disclosure is clearly and completely described.Obviously, described embodiment It is only a part of embodiment of the disclosure, rather than whole embodiments.Based on the embodiment in the disclosure, ordinary skill The every other embodiment that personnel are obtained under the premise of not making creative work, broadly falls into the scope of disclosure protection.
Fig. 1 shows a kind of schematic flow sheet of application program backing method that the disclosure provides.Method shown in Fig. 1 is applied In the terminal unit at least including display unit, and on described terminal unit, application program is installed.
According to Fig. 1, first in step S101, obtain the current version information of the application program that user selectes.
The current version information of application program described in this example is saved in the memorizer of terminal unit, and terminal unit can root According to the selected operation of user, find application program corresponding current version information, such as version number, version from described memorizer Title, or other can characterize the version identifier of application program.In a further embodiment, the current version of described application program This information be saved in can with the memorizer of the webserver of terminal equipment in communication in, now, by down operation, terminal sets The standby current version information obtaining the application program that user selectes from the described webserver.
It should be noted that user can be by the application program management software in terminal unit(For example, " application business Shop ")Select to want the application program of rollback naturally it is also possible to select by other means to want the application program of rollback, the disclosure pair This does not limit.
Then in step S102, obtain the corresponding target version information of described application program rollback operation.
Described target version information can be system default version or the foundation application program rollback of terminal unit The version that operation indicating option selects.Wherein, described default version can be version before application program updating or Less than any one version of the current version of application program, can also be the previous stage version of application program current version.Foundation The process of application program rollback operation prompt options selection target version can be, after user selectes certain application program, eventually On the display unit of end equipment, directly display comprise all can rollback version information prompt options, user therefrom selects certain Individual version is as target version information.
Then in step S103, obtain described application program and be upgraded to current version corresponding patch literary composition from target version Part.In the present embodiment, need to preserve in the server whole patch files of application program, terminal unit can be from server Download and be upgraded to, from target version, the acquisition process that the corresponding patch file of current version completes step S103.
Obtain after patch file in step S104, literary composition is currently installed on according to described patch file and described application program Part, generates the corresponding installation file of described application program target version.
Terminal unit needs to preserve the installation file of the current version of described application program, then from described application program It is currently installed in file, removing the part of described patch file, obtain the corresponding installation file of described application program target version.
In the present embodiment, it is possible to use the patch order in linux system, complete the generation application program of step S104 The corresponding installation file of target version, for example, the current version number of application program A is 1.2, and being currently installed on file is A1.2, should It is 1.1 with the target version number of program A, being upgraded to 1.2 corresponding patch files from 1.1 is P2, using order " patch R A1.2P2 " can be obtained by the corresponding installation file of 1.1 versions.
After obtaining the installation file of target version, in step S105, run the corresponding installation file of described target version. This step makes the described application program of terminal unit return back to target version from current version.
In embodiment of the disclosure, described installation file is software installation bag, can voluntarily decompress the file of operation, fortune The described installation file of row can achieve the installation of corresponding application program.In the other embodiment of the disclosure, described installation literary composition Part can also carry out decompressing the file running after user determines decompression, for example, prompts the user whether to carry out installing decompression, And carry out decompression operation after user determines the operation carrying out installing decompression receiving.
The application program backing method that the present embodiment provides, using the installation file of the current version of application program, and Described application program is upgraded to the corresponding patch file of current version from target version, obtains the installation file of target version.Fortune The installation file of row target version makes described application program return back to target version from current version.And, terminal unit only needs Download the patch file that the application program selected is upgraded to current version from target version from server side, usual patch file accounts for Space is more much smaller than installation file, and therefore, described application program backing method can be saved and download the flow that file needs And the time, thus save Internet resources.Additionally, server side only need to store the patch file of application program, thus saving The memory space of server.
In order to avoid user the application program of target version of rollback can carry out rollback operation to not existing, the disclosure provides Another kind of application program backing method, the method is applied to terminal unit, and described installing terminal equipment has application program, and wraps Include the display unit that can show described application program.
According to Fig. 2, first in step S201, obtain the current version information of the application program that user selectes.
Then in step S202, judge described application program whether there is can rollback target version, if there is can return The target version moving back, execution step S203;If there is no can rollback target version, terminate.
In the present embodiment, the judge process of step S202 can be realized by the step shown in Fig. 3:
S301, obtains all versions information of described application program.The present embodiment, all versions letter of described application program Breath can be stored in the memorizer of server, and now, terminal unit can be downloaded from server and obtain;Another in the disclosure Embodiment, all versions information of described application program can also be stored in the memorizer of terminal unit, now, terminal unit Can directly obtain from described memorizer.
S302, judges to whether there is the version information less than current version in described all versions information, if there is low In the version information of current version, then enter step S303;If there is no the version information less than current version, then enter step Rapid S304.
In the present embodiment, step S302 may determine that whether current version information is minimum version information.For example, compare and work as Whether the version number of front version is identical with the version number of minimum version.
In another embodiment of the present disclosure, step S302 is it is also possible that state current version information and the institute of application program State all versions information to compare one by one, so that it is determined that described application program whether there is version information, and then obtain less than current Version information whole can rollback target version information.
S303, determine described application program exist can rollback target version.
Adopt the example in step S302, when terminal unit judges version number and the minimum version of described current version When version number differs, then show that current version is not minimum version, now, determine that described application program presence can rollback version This.
S304, determine described application program do not exist can rollback target version.
When terminal unit judges that the version number of described current version is identical with the version number of minimum version, then show current Version is minimum version, and now, determining that described application program does not exist can rollback version.
Determine that described application program exists in step S202 in step S203, application program can be obtained and return after rollback version Move back the corresponding target version information of operation.Described target version information can be terminal unit system default version it is also possible to It is the version pointing out selection according to application program rollback operation.
After obtaining target version information, in step S204, obtain described application program and be upgraded to current version from target version This corresponding patch file.The described patch file of the present embodiment is stored in the memorizer of server, and now, terminal unit needs To download described patch file from server and to complete step S204.
After obtaining patch file, in step S205, literary composition is currently installed on according to described patch file and described application program Part, generates the corresponding installation file of target version of described application program.
Finally, in step S206, run the corresponding installation file of target version of described application program, so that described application Program return back to target version from current version.
The application program backing method that the present embodiment provides, in the current version information obtaining the application program that user selectes Afterwards, judge described application program whether there is can rollback version, if there is can rollback version, then obtain rollback operation Corresponding target version.Avoid user the application program of rollback version can to carry out rollback operation and lead to terminal unit to not existing The phenomenon of system resource waste occurs, thus saving the resource of terminal unit.
In order to allow users to be intuitive to see whether application program can carry out rollback operation, present disclose provides another Kind of application program backing method embodiment, can be after the target version of rollback, further judging that described application program exists Will determine that result is shown to user by way of information.The method is applied to terminal unit, described installing terminal equipment There is application program, and include showing the display unit of described application program.As shown in figure 4, methods described includes following step Suddenly:
S401, obtains the current version information of the application program that user selectes.
S402, judge described application program whether there is can rollback target version, if there is can rollback target version This, execute S403;If there is no can rollback target version, terminate.
It should be noted that the judge process of this step is identical with the judge process shown in Fig. 3, here is omitted.
S403, shows rollback prompt options.Described rollback prompt options in the present embodiment comprise can rollback target version This information.Wherein, caned rollback target version can be terminal unit system default version, this system default version is permissible It is the version of the current version previous stage of version before described application program updating or described application program, also may be used To be all can any one version in the target version of rollback.For example, one kind in the case of, application program from 1.0 edition upgradings to After 1.1 versions, then default version is 1.0 versions;In the case of another kind, the current version of application program is 1.2 versions, then system Default version is 1.1 versions.In the case of another, current version is 1.3 versions, now exist multiple can rollback target version (1.0 versions, 1.1 versions, 1.2 versions), system default version is all can arbitrary version in the target version of rollback(1.2 Version, or, 1.1 versions, or, 1.0 versions).
Described rollback prompt options in the present embodiment are only used for prompting the user whether to carry out rollback operation, do not show described Target version information;In another embodiment of the present disclosure, described rollback prompt options can directly display described target version Information, when described application program exist multiple can rollback target version, and need user therefrom to select one as target version This when, rollback point out type selecting directly display the plurality of can rollback target version.
The display mode of rollback prompt options is described, referring specifically to Fig. 5 A- Fig. 5 C with reference to specific example.Wherein, Fig. 5 A show rollback prompt options do not show can rollback target version when terminal unit display interface schematic diagram;Fig. 5 B shows Go out the schematic diagram of terminal unit display interface when rollback prompt options show a target version given tacit consent to;Fig. 5 C shows back Move back prompt options show multiple acquiescences target version when terminal unit display interface schematic diagram.
As shown in Figure 5A, after user selectes application program A on terminal unit 501, on the display interface of terminal unit Show the display icon 502 of described application program A.It is in same horizontal line in the display icon 502 with described application program, and Show rollback prompt options at the position on the right side of described display icon 502, it is concrete that described rollback prompt options show Content is " rollback ".In such cases, user's triggering " rollback " option, system default return back to the target version of acquiescence.
Fig. 5 B is different from the particular content that unlike Fig. 5 A, described rollback prompt options show, the rollback in Fig. 5 B carries Show that the particular content that option 513 shows is " returning back to 1.1 versions ".
, from unlike Fig. 5 A, described rollback prompt options display particular content is different for Fig. 5 C, the rollback prompting choosing of Fig. 5 C The particular contents of item 523 display are " returning back to 1.1 version 1.0 version ", and wherein, 1.1 versions and 1.0 versions are rollback prompting choosings Sub- option in, user can trigger the target version that arbitrary sub- option therein selects rollback.
It should be noted that above-mentioned Fig. 5 A- Fig. 5 C is only the specific example of rollback prompt options, the disclosure is to this not Limit, the particular content of the concrete form of rollback prompt options and display can be shown according to the needs of user, as long as energy Prompt the user whether to carry out rollback operation.
After user triggers the rollback prompt options in step S403, in step S404, receive triggering described rollback prompting choosing The first operation information comprising target version information that item produces.
After step S404 receives the first operation information, in step S405, obtain institute from described first operation information State target version information.
After obtaining target version information, in step S406, obtain described application program and be upgraded to current version from target version This patch file.In the present embodiment, described patch file is stored in server, and terminal unit obtains described from server download Patch file.
After obtaining patch file, in step S407, literary composition is currently installed on according to described patch file and described application program Part, obtains the installation file of described application program target version;
Finally, in step S408, run the installation file of the target version of described application program, so that described application program It return back to described target version.
The application program backing method that the present embodiment provides, determine the application program selected of user exist can rollback mesh After mark version, display to the user that rollback prompt options, what the described rollback prompt options of receive user triggering produced comprises target First operation information of version information, and then obtain described target version information from the first operation information.The present embodiment should Use program backing method, produce rollback operation receiving user's described rollback prompt options of triggering, it is to avoid user selects should Occurred with the phenomenon of the directly terminal unit wasting of resources that execution application program rollback leads to after program, thus save terminal setting Standby resource.
Refer to Fig. 6, show the schematic flow sheet of another application program backing method of the disclosure.The method is applied to Terminal unit, described installing terminal equipment has application program, and includes showing the display unit of described application program.
First in step S601, obtain the current version information of the application program that user selectes.
Then, according to the described current version information obtaining, in step S602, judge described application program with the presence or absence of can The target version of rollback, if there is can rollback target version, execution step S603;If there is no can rollback target version This, terminate.The judgment mode of this step is identical with the method shown in Fig. 3, and here is omitted.
Determine and exist and after the target version of rollback, in step S603, rollback prompt options can be shown.Described rollback prompting choosing Be only used for prompting the user whether to carry out rollback operation, specific display mode can according to user need set.
After shown rollback prompt options on the display unit of user's triggering terminal equipment, terminal unit is in step S604, receives the second operation information that the described rollback prompt options of triggering produce.When user wishes to carry out described application program During rollback operation, the described rollback prompt options of triggering produce the second operation information.
After receiving the second operation information, in step S605, show that described application program is less than the whole of current version The display option of version information.The described all versions information less than current version can be obtained by the judge process of step S602 , specifically detailed determination methods as shown in Figure 3, here is omitted.
After user triggers described rollback prompt options, all returning is shown on the display interface of terminal unit further The version information moving back.Specifically rollback prompting choosing can be substituted with showing the display option of all version informations less than current version ?;All all version informations less than current version can also be shown in the next stage display option of rollback prompt options. The disclosure do not limit described display option be particularly shown form, as long as can show described application program be less than current version All version informations, and be capable of receive user select version information.
Below with the display mode of a specific example explanation described display option, as shown in figures 7 a and 7b, terminal Equipment determine the application program A that selectes of user exist can rollback target version when, on the display interface of terminal unit 701 Whether display reminding user carries out the rollback prompt options 702 of rollback operation, described rollback prompt options be particularly shown content It can be " whether rollback?Be, no ", wherein, "Yes" and "No" are two sub- options in rollback prompt options.
As shown in Figure 7 B, after user's triggering "Yes" option, application program A is shown on the display interface of terminal unit 701 All can rollback target version information display option 703 it is assumed that application program A current version be 1.3, then terminal set The particular content of the display option on standby 701 display interface can be " 1.0,1.1,1.2 ", and wherein, 1.0,1.1,1.2 is permissible It is three sub- options.
It should be noted that Fig. 7 A and Fig. 7 B is only specific example, the disclosure does not limit the concrete of display option Display format, as long as rollback operation can be prompted the user whether to carry out, and display all can rollback target version.
S606, receives operator's any one version information of selection from described display option and believes as described target version Breath.
S607, obtains the patch file that described application program is upgraded to current version from target version.
S608, according to the installation being currently installed on file, obtaining target version of described patch file and described application program File.
S609, runs the installation file of described target version, so that described application program return back to target from current version Version.
The application program backing method that the present embodiment provides, can interpolate that out that all of the application program that user selectes return The target version information moved back, and display to the user that all can rollback target version information so that user therefrom select any one Individual version is as target version.This kind of mode makes the rollback of application program more flexible, is more capable of the demand of user, lifts user Experience.
In order to lift Consumer's Experience, the disclosure additionally provides another kind of application program backing method, when described application program Current version information when being intermediate releases, can prompt the user whether to carry out updating operation.Methods described application terminal equipment, Described installing terminal equipment has application program, and includes showing the display unit of described application program.As shown in figure 8, institute The method of stating includes:
S801, obtains the current version information of the application program that user selectes.
S802, judges whether described current version information is minimum version information, if not minimum version information, then enters Enter step S803;If minimum version information, then enter step S805.
Specific judge process is identical with the flow process shown in Fig. 3, and here is omitted.
S803, judges whether described current version information is highest version information, if not highest version information, then enters Enter step S804;If highest version information, then enter step S806.
When the current version information that step S802 judges described application program is not minimum version, continue judgement described Whether current version is highest version information, if not highest version information it is determined that described current version is intermediate releases.
S804, display upgrade tip option and rollback prompt options.When by step S802 and step S803 judge work as When front version is intermediate releases, display upgrade tip option prompting this application program of user can be upgraded, and display rollback carries Show that option prompting this application program of user can be with rollback.
S805, shows upgrade tip option.When the current version information judging described application program is minimum version letter During breath, then show that upgrade tip option prompting user can upgrade.User triggers this upgrade tip option, and described application program is certainly Dynamic upgrading, those skilled in the art have been able to realize the escalation process of application program, and here is omitted.
If step S803 judges that current version is highest version, in step S806, show rollback prompt options.Carry Show that application program described in user can return back to the version less than current version.
After the rollback prompt options that the display unit of user's triggering terminal equipment shows, produce the 3rd operation information, terminal Equipment, in step S807, receives described 3rd operation information.3rd operation information carries the target version information of rollback.
After receiving the 3rd operation information, in step S808, obtain rollback operation corresponding target version information.
S809, obtains described application program and is upgraded to the corresponding patch file of current version from target version.
S810, according to the file that is currently installed on of described patch file and described application program, obtains described application program The installation file of target version.
S811, runs the installation file of the target version of described application program.
The application program backing method that the present embodiment provides, is intermediate releases in the current version determining described application program When, upgrade tip option and rollback prompt options can be shown, provide the user more selections, improve Consumer's Experience.
Corresponding to the application program backing method of above-mentioned application and terminal unit, the disclosure additionally provides and is applied to service The application program backing method of device side.
Refer to Fig. 9, show a kind of schematic flow sheet of the application program backing method being applied to server of the disclosure, The method comprising the steps of:
After the rollback operation of terminal unit receive user, produce rollback requests message, in step S901, receiving should for server With program rollback operation corresponding rollback requests message.
Then in step S902, obtain the corresponding target version information of described rollback requests message.
The target version information that server receiving terminal apparatus send, this target version information can be terminal unit system The version of acquiescence or the target version selected of user.
S903, obtains described application program and is upgraded to the corresponding patch file of current version from target version;Wherein, described Patch file is used for described terminal unit and is currently installed on file generated according to described application program, and installs described application journey The corresponding installation file of target version of sequence.Terminal unit is finally realized described application program and is return back to target version.
All patch files of described application program are preserved, according to described target version information and current version in server Application program described in information searching is upgraded to the patch file of current version information from target version information.Terminal unit can be from Server obtains described patch file, can be specifically that the mode downloaded obtains.
Preferably, also include S900 before step S902, obtain all versions information of described application program, be supplied to Described terminal unit;
Terminal unit judges whether to believe less than described current version according to all versions information of described application program The version information of breath, if there is the version less than described current version information, target version information is sent out by described terminal unit Give described server.
The application program backing method being applied to server side that the present embodiment provides, preserves application program in server side Corresponding whole patch file, after server receives the rollback requests message of terminal unit transmission, obtaining described rollback please Seek message corresponding target version information, and then search from the patch file preserving and be upgraded to current version pair from target version The patch file answered, and it is supplied to terminal unit, so that terminal unit utilizes installation file and the described patch literary composition of current version Part obtains the installation file of target version, realizes described application program and return back to target version from current version.
And, server obtains all versions information of the application program that user selectes, so that terminal unit judgement is described Application program whether there is can rollback target version information, thus avoid user to do not exist can rollback version application journey Sequence carries out rollback operation and leads to the phenomenon of the system resource waste of terminal unit to occur, thus saving the resource of terminal unit.
Corresponding to above-mentioned application program backing method, the disclosure additionally provides application program rollback device embodiment, please Show a kind of structural representation of application program rollback device that the disclosure provides referring to Figure 10, this device is applied to including aobvious Show that, in the terminal unit of unit, this device includes:First acquisition unit 1010, second acquisition unit 1020, the 3rd acquiring unit 1030th, application program signal generating unit 1040 and application program installation unit 1050.
First acquisition unit 1010, for obtaining the current version information of the application program that user selectes, and will be described Current version information is supplied to described 3rd acquiring unit.
Second acquisition unit 1020, the corresponding target version information of the rollback operation for obtaining described application program, with And described target version information is supplied to described 3rd acquiring unit.
3rd acquiring unit 1030, is upgraded to the corresponding benefit of current version for obtaining described application program from target version Fourth file, and described patch file is supplied to application program signal generating unit.
Application program signal generating unit 1040, for by the installation of described patch file and the current version of described application program File, obtains the installation file of the target version of described application program, and the installation file of described target version is supplied to Described application program installation unit.
Terminal equipment side needs to preserve the installation file of the current version of described application program.Application program signal generating unit is straight Obtain take described application program be currently installed on file, be currently installed on file, removing the part of described patch file from described, Obtain the corresponding installation file of target version of described application program, specifically can pass through the patch order in linux system, According to application program be currently installed on file and target version is upgraded to the patch file of current version, return to target version Installation file.
Application program installation unit 1050, for running the installation file of described target version, so that described application program It return back to target version from current version.
The application program rollback device that the present embodiment provides, using the installation file of the current version of application program, and Described application program is upgraded to the corresponding patch file of current version from the target version that will return back to, and obtains target version Installation file.The installation file of installation targets version can achieve that described application program return back to target version.
In order to avoid user the application program of target version of rollback version can carry out rollback operation, the disclosure to not existing Additionally provide another kind of application program rollback device embodiment, before the rollback operation according to user carries out rollback, sentence first The application program that disconnected user selectes whether there is can rollback target version, thus saving the resource of terminal unit.This device It is applied to terminal unit, described terminal unit includes display unit.
As shown in figure 11, described application program rollback device includes:First acquisition unit 1110, judging unit 1120, Two acquiring units 1130, the 3rd acquiring unit 1140, application program signal generating unit 1150 and application program installation unit 1160.
First acquisition unit 1110, for obtaining the current version information of the application program that user selectes, and will be described Current version information is supplied to described judging unit and the 3rd acquiring unit.
Judging unit 1120, for judge described application program whether there is can rollback target version.
Referring to Figure 12, judging unit 1120 can include:4th acquiring unit 1210 and judgment sub-unit 1220.
4th acquiring unit 1210, for obtaining all versions information of described application program, and by described whole versions This information is supplied to described judgment sub-unit.
Whether judgment sub-unit 1220, be minimum version information for relatively described current version information, if not Lowest version information it is determined that described application program exist can rollback target version.
When being embodied as, judgment sub-unit 1220 determines minimum version information first from described all versions information, enters Whether one step compares current version information identical with minimum version information, if differing it is determined that the presence of described application program can The target version information of rollback.
Judgment sub-unit 1220, it is also possible that state current version information comparing one by one with described all versions information, from And obtain less than described current version information whole can rollback target version information.
Preferably, after judgment sub-unit 1220 judges that described current version information is not minimum version information, enter one Step judges whether described current version information is highest version information, if not highest version information, so that display unit is shown and rises Level prompt options and rollback prompt options;If highest version information, display unit is made to show rollback prompt options.
Second acquisition unit 1130, for when judging unit 1120 determine described application program exist can rollback target version This when, obtain the rollback operation corresponding target version information of described application program, and described target version information is provided To described 3rd acquiring unit.
Referring to Figure 13, described second acquisition unit 1130 can include:First receiving unit 1310 and acquisition subelement 1320.
When judging unit 1120 determine described application program exist can rollback target version after, make described terminal unit Display unit shows rollback prompt options.
First receiving unit 1310, comprises target version for receive that operator's described rollback prompt options of triggering produce First operation information of information, this first operation information is supplied to acquisition subelement 1320.
The target version information that described rollback prompt options are comprised can be the target version of terminal unit system default, It can also be the target version that user selectes.
Obtain subelement 1320, for obtaining described target version information from described first operation information.
Referring to Figure 14, described second acquisition unit 1130 can also include:Second receiving unit 1410, the 3rd receiving unit 1420.
When judging unit 1120 determine described application program exist can rollback target version after, make described terminal unit Display unit shows rollback prompt options.
Rollback prompt options in the present embodiment are only used for prompting the user whether to carry out rollback operation.
Second receiving unit 1410, for receiving the second operation letter that the described rollback prompt options of operator's triggering produce Breath, and make described display unit show all version informations less than current version information in described application program.
Second receiving unit receives the second operation information that user triggers the rollback prompt options generation on display unit Afterwards, triggering display unit shows all version informations less than current version information that judging unit 1120 determines further.
3rd receiving unit 1420, for receiving any one version that operator selects from the described information less than current version This information is as target version information.
3rd acquiring unit 1140, is upgraded to the corresponding benefit of current version for obtaining described application program from target version Fourth file, and described patch file is supplied to described application program signal generating unit.
Application program signal generating unit 1150, for being currently installed on literary composition according to described patch file and described application program Part, obtains the corresponding installation file of target version of described application program.
Application program installation unit 1160, for running the installation file of the described target version receiving, so that described Application program return back to target version from current version.
The application program rollback device that the present embodiment provides, gets, in first acquisition unit, the application program that user selectes Afterwards, by judging unit judge described application program whether there is can rollback target version, thus avoiding user to not depositing The application program of target version of rollback can carry out rollback operation, save the resource of terminal unit.
Corresponding to the above-mentioned application program rollback device being applied on terminal unit, the disclosure also provides and is applied to service The application program rollback device of device, as shown in figure 15, described device includes:4th receiving unit 1510, the 5th acquiring unit 1520 and the 6th acquiring unit 1530.
4th receiving unit 1510, for receiving the rollback requests message of application program rollback operation generation.
5th acquiring unit 1520, obtains the corresponding target version information of described rollback requests message.
6th acquiring unit 1530, obtains described application program and is upgraded to current version corresponding patch literary composition from target version Part;So that described terminal unit obtains described patch file, according to being currently installed on of described patch file and described application program File, generates, and installs the corresponding installation file of target version of described application program.
Preferably, described application program rollback device also includes the 7th acquiring unit 1540, obtains described application program pair The all versions information answered, so that terminal unit judges described current version letter according to all versions information of described application program Whether breath is minimum version information, determine described application program whether there is can rollback target version, and described determining Application program exists and can obtain described application program corresponding target version information after the target version of rollback.
Refer to Figure 16, show it relates to terminal unit structural representation, this terminal unit can be used for Implement the application program backing method providing in above-described embodiment, specifically:
Terminal unit 1600 can include RF(Radio Frequency, radio frequency)Circuit 110, include one or one The memorizer 120 of above computer-readable recording medium, input block 130, display unit 140, sensor 150, voicefrequency circuit 160th, the part such as WiFi module 170, the processor 180 including or more than one processing core and power supply 190. It will be understood by those skilled in the art that the terminal unit structure shown in Figure 16 does not constitute the restriction to terminal unit, permissible Illustrate more or less of part including ratio, or combine some parts, or different part arrangements.Wherein:
RF circuit 110 can be used for receiving and sending messages or communication process in, the reception of signal and transmission, especially, by base station After downlink information receives, transfer to one or more than one processor 180 is processed;In addition, by be related to up data is activation to Base station.Generally, RF circuit 110 includes but is not limited to antenna, at least one amplifier, tuner, one or more agitator, use Family identity module(SIM)Card, transceiver, bonder, LNA(Low Noise Amplifier, low-noise amplifier), duplex Device etc..Additionally, RF circuit 110 can also be communicated with network and other equipment by radio communication.This radio communication can use Arbitrary communication standard or agreement, including but not limited to GSM (Global System of Mobile communication, the whole world Mobile communcations system), GPRS (General Packet Radio Service, general packet radio service), CDMA (Code Division Multiple Access, CDMA), WCDMA (Wideband Code Division Multiple Access, WCDMA), LTE (Long Term Evolution, Long Term Evolution), Email, SMS (Short Messaging Service, Short Message Service) etc..
Memorizer 120 can be used for storing software program and module, and processor 180 is stored in memorizer 120 by operation Software program and module, thus executing various function application and data processing.Memorizer 120 can mainly include storing journey Sequence area and storage data field, wherein, storing program area can application program needed for storage program area, at least one function(Than As sound-playing function, image player function etc.)Deng;Storage data field can store according to terminal unit 1600 using being created Data(Such as voice data, phone directory etc.)Deng.Additionally, memorizer 120 can include high-speed random access memory, also may be used To include nonvolatile memory, for example, at least one disk memory, flush memory device or other volatile solid-state Part.Correspondingly, memorizer 120 can also include Memory Controller, to provide processor 180 and input block 130 to storage The access of device 120.
Input block 130 can be used for numeral or the character information of receives input, and produces and user setup and function Control relevant keyboard, mouse, action bars, optics or trace ball signal input.Specifically, input block 130 can include Touch sensitive surface 131 and other input equipments 132.Touch sensitive surface 131, also referred to as touch display screen or Trackpad, can collect User is thereon or neighbouring touch operation(Such as user uses any suitable object such as finger, stylus or adnexa touch-sensitive Operation on surface 131 or near Touch sensitive surface 131), and corresponding attachment means are driven according to formula set in advance.Can Choosing, Touch sensitive surface 131 may include touch detecting apparatus and two parts of touch controller.Wherein, touch detecting apparatus detection The touch orientation of user, and detect the signal that touch operation brings, transmit a signal to touch controller;Touch controller is from tactile Touch reception touch information in detection means, and be converted into contact coordinate, then give processor 180, and can receiving processor 180 orders sent simultaneously are executed.Furthermore, it is possible to using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves Touch sensitive surface 131 realized by type.Except Touch sensitive surface 131, input block 130 can also include other input equipments 132.Specifically Ground, other input equipments 132 can include but is not limited to physical keyboard, function key(Such as volume control button, switch key Deng), trace ball, mouse, one or more of action bars etc..
Display unit 140 can be used for showing by the information of user input or the information and the terminal unit that are supplied to user 1600 various graphical user interface, these graphical user interface can be by figure, text, icon, video and its combination in any To constitute.Display unit 140 may include display floater 141, optionally, can adopt LCD (Liquid Crystal Display, liquid crystal display), the form such as OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) comes Configuration display floater 141.Further, Touch sensitive surface 131 can cover display floater 141, when Touch sensitive surface 131 detects at it On or near touch operation after, send processor 180 to determine the type of touch event, with preprocessor 180 according to touch The type touching event provides corresponding visual output on display floater 141.Although in fig .15, Touch sensitive surface 131 and display Panel 141 is to realize input and input function as two independent parts, but in some embodiments it is possible to will be touch-sensitive Surface 131 is integrated with display floater 141 and realize input and output function.
Terminal unit 1600 may also include at least one sensor 150, such as optical sensor, motion sensor and other Sensor.Specifically, optical sensor may include ambient light sensor and proximity transducer, and wherein, ambient light sensor can basis The light and shade of ambient light adjusting the brightness of display floater 141, proximity transducer can when terminal unit 1600 moves in one's ear, Close display floater 141 and/or backlight.As one kind of motion sensor, Gravity accelerometer can detect all directions On(Generally three axles)The size of acceleration, can detect that size and the direction of gravity when static, can be used for identifying mobile phone attitude Application(Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function(Such as pedometer, strike Hit)Deng;The gyroscope that can also configure as terminal unit 1600, barometer, drimeter, thermometer, infrared ray sensor etc. its His sensor, will not be described here.
Voicefrequency circuit 160, speaker 161, microphone 162 can provide the audio frequency between user and terminal unit 1600 to connect Mouthful.The signal of telecommunication after the voice data receiving conversion can be transferred to speaker 161, by speaker 161 by voicefrequency circuit 160 Be converted to acoustical signal output;On the other hand, the acoustical signal of collection is converted to the signal of telecommunication by microphone 162, by voicefrequency circuit 160 receive after be converted to voice data, then after voice data output processor 180 is processed, through RF circuit 110 to be sent to ratio As another terminal unit, or voice data is exported to memorizer 120 to process further.Voicefrequency circuit 160 is also possible to Including earphone jack, to provide the communication of peripheral hardware earphone and terminal unit 1600.
WiFi belongs to short range wireless transmission technology, and terminal unit 1600 can help user to receive by WiFi module 170 Send e-mails, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and has accessed.Although figure 15 show WiFi module 170, but it is understood that, it is simultaneously not belonging to must be configured into of terminal unit 1600, completely may be used To omit in the scope of essence not changing invention as needed.
Processor 180 is the control centre of terminal unit 1600, each using various interfaces and connection whole mobile phone Individual part, is stored in software program and/or module in memorizer 120 by running or executing, and calls and be stored in storage Data in device 120, the various functions of execution terminal unit 1600 and processing data, thus carry out integral monitoring to mobile phone.Can Choosing, processor 180 may include one or more processing cores;Preferably, processor 180 can integrated application processor and modulation Demodulation processor, wherein, application processor mainly processes operating system, user interface and application program etc., and modulation /demodulation is processed Device mainly processes radio communication.It is understood that above-mentioned modem processor can not also be integrated in processor 180.
Terminal unit 1600 also includes the power supply 190 powered to all parts(Such as battery)It is preferred that power supply can lead to Cross power-supply management system logically contiguous with processor 180, thus by power-supply management system realize management charge, electric discharge and The functions such as power managed.Power supply 190 can also include one or more direct current or alternating current power supply, recharging system, electricity The random component such as source failure detector circuit, power supply changeover device or inverter, power supply status indicator.
Although not shown, terminal unit 1600 can also include photographic head, bluetooth module etc., will not be described here.At this In embodiment, the touch-screen display during display unit of terminal unit.
Terminal unit also includes one or more than one program, and one of or more than one program storage is in depositing In reservoir, and it is configured to by one or more than one computing device, this or more than one program bag contain and be used for Carry out the instruction of following operation:
Obtain the current version information of application program, the application program rollback operation corresponding target version letter that user selectes Breath;And,
Obtain described application program and be upgraded to the corresponding patch file of current version from target version;
File and described patch file be currently installed on according to described application program, generate, and described application journey is installed The corresponding installation file of target version of sequence.
It is preferred that also including the instruction for carrying out following operation:
Judge described application program whether there is can rollback target version, if there is can rollback target version, hold The step that row obtains application program rollback operation corresponding target version information.
It is preferred that also including the instruction for carrying out following operation:
Obtain described application program corresponding all versions information;
Judge whether described current version information is minimum version information, if described current version information is not minimum version This information it is determined that described application program exist can rollback target version.
It is preferred that also including the instruction for carrying out following operation:
If application program exist can rollback target version, display application program rollback prompt options;
Receive the first operation information comprising target version information that the described rollback prompt options of triggering produce;
Described target version information is obtained from described first operation information.
It is preferred that the rollback prompt options of described application program include described application program less than current version information All versions information.
It is preferred that also including the instruction for carrying out following operation:
If described current version information is not minimum version information, display whether that the rollback carrying out application program rollback carries Show option;And,
Receive the second operation information that the described rollback prompt options of triggering produce;
According to described second operation information, show that described application program is less than all version informations of current version information;
Receive operator from described less than all version informations of current version information select any one version information As described target version information.
It is preferred that also including the instruction for carrying out following operation:
If described current version information is not minimum version information, judge whether described current version information is highest version This information, if described current version information is not highest version information, shows upgrade tip option and the rollback of application program Prompt options.
It is preferred that also including the instruction for carrying out following operation:
From the server storing described application program patch file, download described application program and upgrade to from target version Patch file needed for current version.
The embodiment of the present disclosure passes through the current version information obtaining application program and the target version information returning back to, and enters one The target version that step obtains application program upgrades to the corresponding patch file of current version, according to described patch file and application journey The installation file being currently installed on file, generating target version of sequence, the installation file of operational objective version, realize application program and return Fall back on target version.
Refer to Figure 17, show a kind of structural representation of server that the disclosure provides.This server 1700 can be because Configuration or performance is different and the larger difference of producing ratio, can include one or more central processing units(central Processing units, CPU)1722(For example, one or more processors)With memorizer 1732, one or one with Upper storage application program 1742 or the storage medium 1730 of data 1744(Such as one or more mass memory units).Its In, memorizer 1732 and storage medium 1730 can be of short duration storage or lasting store.It is stored in the program of storage medium 1730 One or more modules can be included(Diagram is not shown), each module can include to the series of instructions in server Operation.Further, central processing unit 1722 could be arranged to communicate with storage medium 1730, executes on server 1700 Series of instructions operation in storage medium 1730.Server 1700 can also include one or more power supplys 1726, and one Individual or more than one wired or wireless network interface 1750, one or more input/output interfaces 1758, one or one With upper keyboard 1756, and/or, one or more operating systems 1741, such as WindowsServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM etc..
Concrete server also includes one or more than one program in the present embodiment, one of or one Procedure above is stored in memorizer, and is configured to by one or more than one computing device, this or one Procedure above comprises the instruction for carrying out following operation:
Receive rollback requests message corresponding with application program rollback operation;
Obtain the corresponding target version information of described rollback requests message;
Obtain described application program and be upgraded to the corresponding patch file of current version from target version, described patch file is used In described terminal unit according to described application program the file generated that is currently installed on, and install described application program target version This corresponding installation file.
It is preferred that also including the instruction for carrying out following operation:
Obtain described application program corresponding all versions information, so that terminal unit is whole according to described application program Version information judges whether described current version information is minimum version information, determine described application program whether there is can rollback Target version, and described application program can be obtained and corresponds to after the target version of rollback determining that described application program exists Target version information.
As on the other hand, the disclosure also provides a kind of computer-readable recording medium, this computer-readable recording medium It can be the computer-readable recording medium included in the memorizer in above-described embodiment;Can also be individualism, without Allocate the computer-readable recording medium in terminal into.Described computer-readable recording medium storage has one or more than one journey Sequence, one or more than one program is used for executing Fig. 1, Fig. 2, Fig. 4, Fig. 6 by one or more than one processor The application program backing method being provided with embodiment illustrated in fig. 8.
The disclosure also provides another kind of computer-readable recording medium, and this computer-readable recording medium can be above-mentioned reality Apply the computer-readable recording medium included in the memorizer in example;Can also be individualism, without allocating in terminal Computer-readable recording medium.Described computer-readable recording medium storage has one or more than one program, one Or more than one program is used for executing the application program of embodiment illustrated in fig. 9 offer by one or more than one processor Backing method.
Terminal unit those skilled in the art can be understood that technology in the disclosure can be by software plus must The mode of the general hardware platform needing is realizing.Based on such understanding, the technical scheme in the disclosure is substantially right in other words What prior art contributed partly can be embodied in the form of software product, and this computer software product can be stored in In storage medium, such as ROM/RAM, magnetic disc, CD etc., include some instructions use so that a computer equipment(Can be individual People's computer, server, or network equipment etc.)Execution each embodiment of the disclosure or embodiment some partly described Method.
Each embodiment in this specification is all described by the way of going forward one by one, identical similar portion between each embodiment Divide mutually referring to what each embodiment stressed is the difference with other embodiment.Real especially for system For applying example, because it is substantially similar to embodiment of the method, so description is fairly simple, referring to embodiment of the method in place of correlation Part illustrate.
Above-described disclosure embodiment, does not constitute the restriction to disclosure protection domain.Any in the disclosure Spirit and principle within modification, equivalent and improvement of being made etc., should be included within the protection domain of the disclosure.

Claims (13)

1. a kind of application program backing method is it is characterised in that methods described includes:
Obtain the current version information of the application program that user selectes;
Judge described application program whether there is can rollback target version, if there is can rollback target version, obtain should With program rollback operation corresponding target version information;Judge application program whether there is can rollback target version step, In the following way:Obtain described application program corresponding all versions information;Judge whether described current version information is Lowest version information, if described current version information is not minimum version information it is determined that the presence of described application program can rollback Target version;If described current version information is not minimum version information, judge whether described current version information is Highest version information, if described current version information is not highest version information, display application program upgrade tip option and Rollback prompt options;
And,
Obtain described application program and be upgraded to the corresponding patch file of current version from target version;
File and described patch file be currently installed on according to described application program, generate, and described application program is installed The corresponding installation file of target version.
2. method according to claim 1 it is characterised in that:
If application program exist can rollback target version, display application program rollback prompt options;
Receive the first operation information comprising target version information that the described rollback prompt options of triggering produce;
Described target version information is obtained from described first operation information.
3. method according to claim 2 is it is characterised in that the rollback prompt options of described application program include described answering With program less than current version information all versions information.
4. method according to claim 1 it is characterised in that:
If described current version information is not minimum version information, display whether to carry out the rollback prompting choosing of application program rollback ?;And,
Receive the second operation information that the described rollback prompt options of triggering produce;
According to described second operation information, show that described application program is less than all version informations of current version information;
Receive operator from described less than all version informations of current version information select any one version information conduct Described target version information.
5. method according to claim 1 is it is characterised in that described acquisition application program upgrades to currently from target version The step of this corresponding patch file, in the following way:
From the server storing described application program patch file, download described application program and upgrade to currently from target version Patch file needed for version.
6. a kind of application program backing method is it is characterised in that include:
Receive rollback requests message corresponding with application program rollback operation;
Obtain described application program corresponding all versions information, so that terminal unit is according to all versions of described application program Information judges whether current version information is minimum version information, determine described application program whether there is can rollback target version This, and the corresponding target version of described application program can be obtained after the target version of rollback determining that described application program exists This information;If described current version information is not minimum version information, judge whether described current version information is highest version This information, if described current version information is not highest version information, shows upgrade tip option and the rollback of application program Prompt options;
Obtain the corresponding target version information of described rollback requests message;
Obtain described application program and be upgraded to the corresponding patch file of current version from target version, described patch file is used for institute State the file generated that is currently installed on according to described application program for the terminal unit, and the target version pair installing described application program The installation file answered.
7. a kind of application program rollback device, is applied to terminal unit, described terminal unit at least includes display unit, its feature It is, including:
First acquisition unit, obtains the current version information of the application program that user selectes;
Judging unit, for judge described application program whether there is can rollback target version, when exist can rollback target During version, triggering second acquisition unit obtains the rollback operation corresponding target version information of described application program;Described judgement Unit includes:4th acquiring unit, for obtaining described application program corresponding all versions information;Judgment sub-unit, is used for Judge whether described current version information is minimum version information, if not minimum version information it is determined that described application journey Sequence exist can rollback target version;If described judgment sub-unit judges that described current version information is not minimum version letter Breath, and be not highest version information, the described display unit of triggering shows upgrade tip option and the rollback prompting choosing of application program ?;
Second acquisition unit, obtains the rollback operation corresponding target version information of described application program;
3rd acquiring unit, obtains described application program and is upgraded to the corresponding patch file of current version from target version;
Application program signal generating unit, for being currently installed on described in file and the generation of described patch file according to described application program The corresponding installation file of target version of application program;
Application program installation unit, the corresponding installation file of the target version for installing described application program.
8. device according to claim 7 it is characterised in that:
Determining that described application program exists in described judging unit can be after the target version of rollback, and described display unit shows back Move back prompt options;
Described second acquisition unit includes:
First receiving unit, for receiving the first operation comprising target version information that the described rollback prompt options of triggering produce Information;
Obtain subelement, for obtaining described target version information from described first operation information.
9. device according to claim 8 is it is characterised in that described rollback prompt options include described application program is less than The all versions information of current version information.
10. device according to claim 7 it is characterised in that:
Determining that described application program exists in described judging unit can be after the target version of rollback, and described display unit shows is The no rollback prompt options carrying out application program rollback;
Described second acquisition unit includes:
Second receiving unit, for receiving the second operation information that the described rollback prompt options of triggering produce, triggers described display Unit shows all version informations being less than current version information in described application program;
3rd receiving unit, for receive operator from described less than all version informations of current version information select appoint One version information is as described target version information.
A kind of 11. application program rollback devices are it is characterised in that include:
4th receiving unit, receives the rollback requests message that application program rollback operation produces;
7th acquiring unit, obtains described application program corresponding all versions information, so that terminal unit is according to described application The all versions information of program judges whether current version information is minimum version information, determines that described application program whether there is Can rollback target version, and described application journey can be obtained after the target version of rollback determining that described application program exists Sequence corresponding target version information;If described terminal unit judges that described current version information is not minimum version information, And be not highest version information, triggering display unit shows upgrade tip option and the rollback prompt options of application program;
5th acquiring unit, obtains the corresponding target version information of described rollback requests message;
6th acquiring unit, obtains described application program and is upgraded to the corresponding patch file of current version from target version, so that Described terminal unit obtains described patch file, is currently installed on file according to described patch file and described application program, raw Become, and the corresponding installation file of target version of described application program is installed.
A kind of 12. terminal units are it is characterised in that include memorizer, and one or more than one program, one of Or more than one program storage is in memorizer, and it is configured to one by one or more than one computing device Or more than one program bag contains the instruction for carrying out following operation:
Obtain the current version information of the application program that user selectes;
Judge described application program whether there is can rollback target version, if there is can rollback target version, obtain should With program rollback operation corresponding target version information;Judge application program whether there is can rollback target version step, In the following way:Obtain described application program corresponding all versions information;Judge whether described current version information is Lowest version information, if described current version information is not minimum version information it is determined that the presence of described application program can rollback Target version;If described current version information is not minimum version information, judge whether described current version information is Highest version information, if described current version information is not highest version information, display application program upgrade tip option and Rollback prompt options;
And,
Obtain described application program and be upgraded to the corresponding patch file of current version from target version;
File and described patch file be currently installed on according to described application program, generate, and described application program is installed The corresponding installation file of target version.
A kind of 13. servers it is characterised in that including memorizer, and one or more than one program, one of or More than one program storage of person in memorizer, and be configured to by one or more than one computing device one or More than one program bag of person contains the instruction for carrying out following operation:
Receive rollback requests message corresponding with application program rollback operation;
Obtain described application program corresponding all versions information, so that terminal unit is according to all versions of described application program Information judges whether current version information is minimum version information, determine described application program whether there is can rollback target version This, and the corresponding target version of described application program can be obtained after the target version of rollback determining that described application program exists This information;If described terminal unit judges that described current version information is not minimum version information, and is not highest version Information, triggering display unit shows upgrade tip option and the rollback prompt options of application program;
Obtain the corresponding target version information of described rollback requests message;
Obtain described application program and be upgraded to the corresponding patch file of current version from target version, described patch file is used for institute State the file generated that is currently installed on according to described application program for the terminal unit, and the target version pair installing described application program The installation file answered.
CN201310462919.8A 2013-09-30 2013-09-30 Method, device and associated equipment for rolling back application program Active CN103544033B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310462919.8A CN103544033B (en) 2013-09-30 2013-09-30 Method, device and associated equipment for rolling back application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310462919.8A CN103544033B (en) 2013-09-30 2013-09-30 Method, device and associated equipment for rolling back application program

Publications (2)

Publication Number Publication Date
CN103544033A CN103544033A (en) 2014-01-29
CN103544033B true CN103544033B (en) 2017-02-08

Family

ID=49967512

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310462919.8A Active CN103544033B (en) 2013-09-30 2013-09-30 Method, device and associated equipment for rolling back application program

Country Status (1)

Country Link
CN (1) CN103544033B (en)

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106547584B (en) * 2015-09-23 2020-04-24 中国移动通信集团浙江有限公司 Application program rollback method and device
CN105224413B (en) * 2015-10-09 2018-05-15 广东欧珀移动通信有限公司 A kind of method and processing system for lifting application program stable state
CN106658475B (en) * 2015-10-30 2020-07-07 中兴通讯股份有限公司 Method and device for upgrading over-the-air technology
CN106843915A (en) * 2015-12-03 2017-06-13 比亚迪股份有限公司 A kind of firmware switching method and apparatus
CN105740023B (en) * 2016-02-02 2019-05-03 Oppo广东移动通信有限公司 The method, apparatus and intelligent mobile terminal that program version retracts
CN105897863A (en) * 2016-03-28 2016-08-24 努比亚技术有限公司 Rollback method and apparatus for upgraded mobile terminal version
CN105955740B (en) * 2016-04-29 2019-12-06 北京奇虎科技有限公司 software management method and device
CN106484487B (en) * 2016-10-27 2019-11-12 北京锐安科技有限公司 A kind of processing method and processing device of system mend
CN107273139A (en) * 2017-07-05 2017-10-20 努比亚技术有限公司 A kind of method for updating system, equipment and computer-readable recording medium
CN108062233A (en) * 2017-12-29 2018-05-22 上海大汉三通无线通信有限公司 A kind of file backing method, system, device and computer readable storage medium
CN110333880B (en) * 2018-03-29 2024-02-02 杭州海康威视数字技术股份有限公司 Configuration updating method, device, equipment and storage medium
CN108762799A (en) * 2018-04-03 2018-11-06 维沃移动通信有限公司 A kind of method and terminal of update application
CN110389773A (en) * 2018-04-23 2019-10-29 比亚迪股份有限公司 Software publication and dispositions method, apparatus and system
CN110618886A (en) * 2018-06-20 2019-12-27 珠海市魅族科技有限公司 Version rollback method, mobile terminal and computer storage medium
CN112698850B (en) * 2019-10-22 2023-06-20 北京华为数字技术有限公司 Optimized upgrading method and related equipment
CN111124753A (en) * 2019-11-19 2020-05-08 维沃移动通信有限公司 Application program control method, electronic equipment and server
CN111986030B (en) * 2020-09-02 2023-09-08 河北幸福消费金融股份有限公司 Data processing method, device, storage medium and computer equipment

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1889041A (en) * 2006-08-02 2007-01-03 华为技术有限公司 Software staging and back spacing method
CN101175001A (en) * 2006-11-03 2008-05-07 盛趣信息技术(上海)有限公司 Distributed multi-program product automatic updating system and method thereof
CN101212336A (en) * 2006-12-28 2008-07-02 上海广电Nec液晶显示器有限公司 Automatic software update method for client, auxiliary method and related device
CN101377744A (en) * 2008-09-24 2009-03-04 深圳华为通信技术有限公司 Method and apparatus for recovering terminal equipment software upgrade
EP2037361A1 (en) * 2007-09-10 2009-03-18 Samsung Electronics Co., Ltd. Video apparatus, video system and method for upgrading software thereof
CN102195817A (en) * 2011-05-25 2011-09-21 上海华为技术有限公司 Software upgrading method and device and software rollback method and device
CN102567053A (en) * 2011-12-20 2012-07-11 云海创想信息技术(无锡)有限公司 Method and device for downgrading software version
CN102609328A (en) * 2012-01-29 2012-07-25 华为终端有限公司 System difference upgrade method and device and mobile terminal
CN103281350A (en) * 2013-04-18 2013-09-04 百度在线网络技术(北京)有限公司 Mobile terminal and method, system and cloud server for managing application programs of mobile terminal

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101420431B (en) * 2008-11-28 2012-07-04 中兴通讯股份有限公司 FOTA server, terminal and software version processing method and system therefor
CN101895703B (en) * 2010-07-16 2012-06-27 四川长虹电器股份有限公司 Television software upgrading system and method

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1889041A (en) * 2006-08-02 2007-01-03 华为技术有限公司 Software staging and back spacing method
CN101175001A (en) * 2006-11-03 2008-05-07 盛趣信息技术(上海)有限公司 Distributed multi-program product automatic updating system and method thereof
CN101212336A (en) * 2006-12-28 2008-07-02 上海广电Nec液晶显示器有限公司 Automatic software update method for client, auxiliary method and related device
EP2037361A1 (en) * 2007-09-10 2009-03-18 Samsung Electronics Co., Ltd. Video apparatus, video system and method for upgrading software thereof
CN101377744A (en) * 2008-09-24 2009-03-04 深圳华为通信技术有限公司 Method and apparatus for recovering terminal equipment software upgrade
CN102195817A (en) * 2011-05-25 2011-09-21 上海华为技术有限公司 Software upgrading method and device and software rollback method and device
CN102567053A (en) * 2011-12-20 2012-07-11 云海创想信息技术(无锡)有限公司 Method and device for downgrading software version
CN102609328A (en) * 2012-01-29 2012-07-25 华为终端有限公司 System difference upgrade method and device and mobile terminal
CN103281350A (en) * 2013-04-18 2013-09-04 百度在线网络技术(北京)有限公司 Mobile terminal and method, system and cloud server for managing application programs of mobile terminal

Also Published As

Publication number Publication date
CN103544033A (en) 2014-01-29

Similar Documents

Publication Publication Date Title
CN103544033B (en) Method, device and associated equipment for rolling back application program
CN105278937B (en) A kind of method and device showing pop-up box message
CN104598262A (en) Method and device for updating mobile application
CN106502703B (en) Function calling method and device
CN106020987A (en) Method and device for determining kernel running configurations in processor
CN104954402A (en) Application recommending method, system and apparatus
CN103473163A (en) Application program detection method and device
CN104571787A (en) Message display method and communication terminal
CN104077184B (en) A kind of course control method and computer system of application program
CN106775828A (en) Application program installation method and device, computer equipment
CN107066268B (en) Display position switching method and device for widget application
CN108958805A (en) menu display method and device
CN103455348A (en) Subarea adjustment method, device, terminal, server and system
US10298590B2 (en) Application-based service providing method, apparatus, and system
CN104424211A (en) Microblog-based service data release method, device and system
CN106155717A (en) A kind of method and apparatus that SDK is integrated into third party APK
EP2869604A1 (en) Method, apparatus and device for processing a mobile terminal resource
CN103197944B (en) Method for determining performance of process of application program and computer system
CN103399706A (en) Page interaction method, device and terminal
CN106095423B (en) Method, terminal and server for providing browsing service
CN106919458B (en) Method and device for Hook target kernel function
EP3129883B1 (en) Method and apparatus for repairing dynamic link library file
CN106708501B (en) Activity monitoring method and device
CN105278942B (en) Component management method and device
US20160119695A1 (en) Method, apparatus, and system for sending and playing multimedia information

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant