CN104461595B - Application software upgrade rollback method, device and electronic equipment - Google Patents

Application software upgrade rollback method, device and electronic equipment Download PDF

Info

Publication number
CN104461595B
CN104461595B CN201310436140.9A CN201310436140A CN104461595B CN 104461595 B CN104461595 B CN 104461595B CN 201310436140 A CN201310436140 A CN 201310436140A CN 104461595 B CN104461595 B CN 104461595B
Authority
CN
China
Prior art keywords
application
application software
database
data information
parameter
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
CN201310436140.9A
Other languages
Chinese (zh)
Other versions
CN104461595A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201310436140.9A priority Critical patent/CN104461595B/en
Publication of CN104461595A publication Critical patent/CN104461595A/en
Application granted granted Critical
Publication of CN104461595B publication Critical patent/CN104461595B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

This application discloses a kind of application software upgrade rollback method, device and electronic equipment, this method is applied to electronic equipment, in this method, installs the first application software first, and back up the first application software information corresponding to the first application software;Second application software, i.e., the upgraded version of described first application software are installed;Then the first operation is received, by the parsing to the first operation, obtains the first result;When the first result shows that second application software needs rollback, according to the first application software information having backed up, corresponding first application software is installed.Pass through application software upgrade rollback method disclosed in the present application, can be after electronic equipment be mounted with the second application software of more highest version, when needing to carry out rollback to it, according to the first application software information backed up in advance, realize rollback, the installation to first application software is completed, so as to solve the problems, such as in the prior art to being unable to rollback after application software upgrade.

Description

Application software upgrade rollback method, device and electronic equipment
Technical field
The present invention relates to electronic device field, more particularly to a kind of application software upgrade rollback method, device and electronics Equipment.
Background technology
Various electronic is presently, there are, is offered convenience for daily life, wherein application software has played huge Effect, therefore, " application be king " concept at present even be present.For example, can installs a variety of application software in mobile phone, such as Games Software, office software etc..
In addition, software developer often carries out upgrading renewal to application software, in this case, electronic equipment can pass through clothes Business device, downloads the application installation package of the application software after upgrading, realizes the upgrading to corresponding application software.
But inventor has found in the research process of the application, after renewal upgrades, often application of the user to old edition Software is interested, but but therefore, it is soft to be currently needed for a kind of application without perfect application software upgrade rollback mechanism at present The upgrading rollback method of part.
The content of the invention
In view of this, it is an object of the invention to solve in the prior art, it is not provided as the application software after upgrading and enters The method of row rollback, specific embodiment are as follows:
A kind of application software upgrade rollback method, applied to electronic equipment, including:
First application software is installed, and backs up the first application software information corresponding to first application software;
Second application software is installed, second application software is the upgraded version of first application software;
The first operation is received, and the described first operation is parsed, to obtain the first result;
, should according to described first had backed up when first result shows that second application software needs rollback With software information, corresponding first application software is installed.
Preferably, when the first application software information is the application installation package of first application software, described According to the first application software information, installing corresponding first application software includes:
According to rollback demand, the application installation package of first application software is obtained, and is installed according to the application Bag installs first application software.
Preferably, it is described according to the when the first application software information is the version number of first application software One application software information, installing corresponding first application software includes:
According to rollback demand, the version number of acquisition first application software;
Application installation package corresponding to the version number is downloaded, and it is soft according to application installation package installation first application Part.
Preferably, the application software upgrade rollback method also includes:
After first application software is installed, the first application data information, structure according to corresponding to first application software The first database corresponding to the first application data information is built, and it is soft by the first application described in first database purchase The first application data information during part use;
After second application software is installed, the second application data information, structure according to corresponding to second application software The second database corresponding to the second application data information is built, and it is soft by the second application described in second database purchase The second application data information during part use;
When needing second application software being rolled back to first application software, according to first database and Second database, the 3rd database corresponding to the first application software installed after rollback is built, and pass through the described 3rd number According to the 3rd application data information during the first application software use after library storage rollback.
Preferably, the second database corresponding to structure the second application data information, including:
Judge that each second parameter is corresponding with the first application data information corresponding to the second application data information Each first parameter it is whether identical;
When each second parameter is identical with each first parameter, obtain what is stored in first database First application data information, as the second application data information, and it is corresponding to build the second application data information accordingly The second database;
When each second parameter is identical with each first argument section, obtained from first database First application data information corresponding to identical parameters, stored into the second database corresponding to second application software, And the second application data information is built according to different parameters, stored into second database;
When each second parameter and entirely different each first parameter, institute is built according to second parameter The second database is stated, and according to second parameter, corresponding storage second application data in second database Information.
Preferably, the 3rd database corresponding to the first application software installed after the structure rollback, including:
Judge that each first parameter is corresponding with the second application data information corresponding to the first application data information Each second parameter it is whether identical;
When each first parameter is identical with each second parameter, extracted wherein from second database The second application data information of storage, as the 3rd application data information, and in the 3rd database stored to structure;
When each first parameter is identical with each second argument section, obtained from second database Second application data information corresponding to identical parameters, is stored into the 3rd database, and is counted from described first before upgrading According to the first application data information corresponding to acquisition different parameters in storehouse, stored into the 3rd database;
When each first parameter and entirely different each second parameter, obtain in first database First application data information, as the 3rd application data information, and store into the 3rd database.
Accordingly, the invention also discloses a kind of application software upgrade rollback device, applied to electronic equipment, its feature exists In, including:
First installation module, for installing the first application software, and back up corresponding to first application software first should Use software information;
Second installation module, for installing the second application software, second application software is first application software Upgraded version;
Receiving module, parsed for receiving the first operation, and to the described first operation, to obtain the first result;
Module is installed in rollback, for when first result shows that second application software needs rollback, according to The the first application software information being backed up, corresponding first application software is installed.
Preferably, when the first application software information is the application installation package of first application software, described time Rolling installation module includes:
First rollback installation unit, for according to rollback demand, obtaining the application installation of first application software Bag, and first application software is installed according to the application installation package.
Preferably, when the first application software information is the version number of first application software, the rollback peace Die-filling piece includes:
Version number's acquiring unit, for according to rollback demand, the version number of acquisition first application software;
Second rollback installation unit, pacify for downloading application installation package corresponding to the version number, and according to the application Dress bag installs first application software.
Preferably, the application software upgrade rollback device also includes:
First database sharing module, after installing first application software, according to first application software pair The the first application data information answered, the first database corresponding to the first application data information is built, and pass through described first The first application data information during first application software use described in database purchase;
Second database sharing module, after installing second application software, according to second application software pair The the second application data information answered, the second database corresponding to the second application data information is built, and pass through described second The second application data information during second application software use described in database purchase;
3rd database sharing module, for second application software to be rolled back into first application software when needs When, according to first database and second database, build the 3rd corresponding to the first application software installed after rollback Database, and number is applied by the 3rd during the first application software use after the 3rd database purchase rollback It is believed that breath.
Preferably, the second data structure module includes:
First judging unit, for judging each second parameter and described first corresponding to the second application data information Whether each first parameter is identical corresponding to application data information;
First construction unit, for when each second parameter is identical with each first parameter, described in acquisition The the first application data information stored in first database, as the second application data information, and described is built accordingly Second database corresponding to two application data information;
Second construction unit, for when each second parameter is identical with each first argument section, from institute The first application data information corresponding to obtaining identical parameters in the first database is stated, is stored to second application software pair In the second database answered, and the second application data information is built according to different parameters, stored to second data In storehouse;
3rd construction unit, for when each second parameter and entirely different each first parameter, according to Second parameter builds second database, and according to second parameter in second database, it is corresponding to deposit Store up the second application data information.
Preferably, the 3rd data structure module includes:
Second judging unit, judge each first parameter corresponding to the first application data information and the described second application Whether each second parameter is identical corresponding to data message;
4th construction unit, for when each first parameter is identical with each second parameter, from described The the second application data information wherein stored is extracted in two databases, as the 3rd application data information, and is stored to structure In the 3rd database after building;
5th construction unit, for when each first parameter is identical with each second argument section, from institute The second application data information corresponding to obtaining identical parameters in the second database is stated, is stored into the 3rd database, and from First application data information corresponding to obtaining different parameters in first database before upgrading, is stored to the described 3rd In database;
6th construction unit, for when each first parameter and entirely different each second parameter, obtaining The first application data information in first database, as the 3rd application data information, and store to the 3rd data In storehouse.
Accordingly, the invention also discloses a kind of electronic equipment, in the processor of the electronic equipment, it is integrated with as above institute The application software upgrade rollback device stated.
This application discloses a kind of application software upgrade rollback method, this method is applied to electronic equipment, and the application is soft In part upgrading rollback method, the first application software is installed first, and it is soft to back up the first application corresponding to first application software Part information;Then second application software, i.e., the upgraded version of described first application software are installed;Then the first operation is received, is led to The parsing to the described first operation is crossed, obtains the first result;When first result shows that second application software needs back During rolling, according to the first application software information having backed up, corresponding first application software is installed.
By application software upgrade rollback method disclosed in the present application, more highest version can be mounted with electronic equipment The second application software after, needing to carry out it rollback, install the first application software when, according to back up in advance first application Software information, rollback is realized, complete the installation to first application software, it is soft to application in the prior art so as to solve The problem of rollback being unable to after part upgrading.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of workflow schematic diagram of application software upgrade rollback method embodiment disclosed by the invention;
Fig. 2 is the workflow schematic diagram of another application software upgrade rollback method embodiment disclosed by the invention;
Fig. 3 is the workflow schematic diagram of another application software upgrade rollback method embodiment disclosed by the invention;
Fig. 4 is the workflow schematic diagram of another application software upgrade rollback method embodiment disclosed by the invention;
Fig. 5 is the workflow schematic diagram of another application software upgrade rollback method embodiment disclosed by the invention;
Fig. 6 is a kind of structural representation of application software upgrade rollback device embodiment disclosed by the invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made Embodiment, belong to the scope of protection of the invention.
In order to solve in the prior art, the method that the application software after upgrading carries out rollback is not provided as, the application is public A kind of application software upgrade rollback method, device and electronic equipment are driven, its implementation process is referring to following examples.
Embodiment one
This application discloses a kind of application software upgrade rollback method, the application software upgrade rollback method is applied to electricity Sub- equipment.Workflow schematic diagram shown in Figure 1, the application software upgrade rollback method include:
Step S11, first application software is installed, and back up the first application software corresponding to first application software and believe Breath.
In order to meet the needs of rollback, when installing the first application software, to back up corresponding to first application software First application software information.Wherein, the mode of backup may include automated back-up and manual backup both of which.In this case, When user selects the pattern of automated back-up, for electronic equipment when installing application software or after installation, meeting automated back-up should Application software information corresponding to application software;When user selects the pattern of manual backup, electronic equipment is in installation application software When or installation after, can be according to the operation of user, it is determined whether need to back up, and when needed, it is corresponding to the application software Application software information backed up.
Step S12, second application software is installed, second application software is the upgrade version of first application software This.
Step S13, the first operation is received, and the described first operation is parsed, to obtain the first result.
After the second application software, that is, the upgraded version of the first application software is installed, user is using a period of time Afterwards, it is more likely to use the first application software sometimes, that is, needs to carry out the rollback of application software.
In this case, first operation is the feedback operation of user, by being parsed to the described first operation When the first result for obtaining, you can whether know needs to carry out rollback to second application software.
Step S14, when first result shows that second application software needs rollback, according to the institute having backed up The first application software information is stated, corresponding first application software is installed.
Embodiments herein one discloses a kind of application software upgrade rollback method, and this method is applied to electronic equipment, In the application software upgrade rollback method, the first application software is installed first, and backed up corresponding to first application software First application software information;Then second application software, i.e., the upgraded version of described first application software are installed;Then is received One operation, by the parsing to the described first operation, obtain the first result;When first result shows that second application is soft When part needs rollback, according to the first application software information having backed up, corresponding first application software is installed.
By application software upgrade rollback method disclosed in the present application, more highest version can be mounted with electronic equipment The second application software after, needing to carry out it rollback, install the first application software when, according to back up in advance first application Software information, rollback is realized, complete the installation to first application software, it is soft to application in the prior art so as to solve The problem of rollback being unable to after part upgrading.
Embodiment two
This application discloses a kind of application software upgrade rollback method, the application software upgrade rollback method is applied to electricity Sub- equipment.Workflow schematic diagram shown in Figure 2, the application software upgrade rollback method include:
Step S21, first application software is installed, and back up the first application software corresponding to first application software and believe Breath, wherein, the first application software information is the application installation package of first application software.
Step S22, second application software is installed, second application software is the upgrade version of first application software This.
Step S23, the first operation is received, and the described first operation is parsed, to obtain the first result.
Step S22 to step S23 operation, and in embodiment one, step S12 to step S13 operation are identical, can be mutual Reference, here is omitted.
Step S24, when first result shows that second application software needs rollback, according to the institute having backed up The application installation package of the first application software is stated, corresponding first application software is installed.
In embodiment two, the first application software information is the application installation package of first application software.It is this In the case of, when need to second application software carry out rollback, with install the first application software when, applied by described first The application installation package of software is installed.
Embodiment three
This application discloses a kind of application software upgrade rollback method, the application software upgrade rollback method is applied to electricity Sub- equipment.Workflow schematic diagram shown in Figure 3, the application software upgrade rollback method include:
Step S31, first application software is installed, and back up the first application software corresponding to first application software and believe Breath, wherein, the first application software information is the version number of first application software.
The version number of software can be identified to the application software of different editions, such as:QQ2007Beta.
Step S32, second application software is installed, second application software is the upgrade version of first application software This.
Step S33, the first operation is received, and the described first operation is parsed, to obtain the first result.
Step S32 to step S33 operation, and in embodiment one, step S12 to step S13 operation are identical, can be mutual Reference, here is omitted.
Step S34, when first result shows that second application software needs rollback, according to rollback demand, obtain Take the version number of first application software.
Step S35, application installation package corresponding to the version number is downloaded, and according to application installation package installation described the One application software.
In embodiment three, the first application software information is the version number of first application software.Such case Under, when needing to carry out rollback to second application software, to be applied during the first application software of installation, it is necessary to obtain described first The version number of software, and corresponding application installation package is downloaded by the version number again, to be realized by the application installation package Installation to first application software.
Example IV
This application discloses a kind of application software upgrade rollback method, the application software upgrade rollback method is applied to electricity Sub- equipment.Workflow schematic diagram shown in Figure 4, the application software upgrade rollback method include:
Step S41, first application software is installed, and back up the first application software corresponding to first application software and believe Breath.
Step S42, after installing first application software, according to the first application data corresponding to first application software Information, builds the first database corresponding to the first application data information, and passes through described in first database purchase the The first application data information during one application software use.
During the use of the first application software, corresponding first application data information can be produced.In order to preserve user First application data caused by during use, is easy to the application of user, after first application software is installed, structure described the First database corresponding to one application software.For example, when first application software for game when, user play the game when Wait, corresponding game data, such as gold coin, empirical value and game ratings application data, first database can be produced Store these the first application datas.
In addition, when first application data is polytype, can be according to its corresponding first ginseng when being stored Number, by the corresponding tables of data of corresponding first application data store to the first database.For example, number is applied when described first According to the first parameter be respectively gold coin, empirical value and game ratings when, can be according to first parameter, the structure in the first database Corresponding tables of data, including gold coin tables of data, empirical value tables of data and game ratings tables of data are built, and number is applied by described first According to storing into corresponding tables of data, various types of tables of data construct database jointly.
It is after the first application software information back up, then described in building in addition, in the scheme of above-mentioned two step description First database corresponding to first application software, in actual applications, can also after first application software is installed, and Before backing up the first application software information, first database is just built.
Step S43, second application software is installed, second application software is the upgrade version of first application software This.
Step S11 and step S12 operating process phase in step S41 and step S43 operating process, with embodiment one Together, can be cross-referenced, here is omitted.
Step S44, after installing second application software, according to the second application data corresponding to second application software Information, builds the second database corresponding to the second application data information, and passes through described in second database purchase the The second application data information during two application software uses.
During the use of the second application software, corresponding second application data information can be also produced.Therefore, it is necessary to be Second application software builds corresponding second database, and passes through the second application software described in second database purchase The second application data information.
Step S45, the first operation is received, and the described first operation is parsed, to obtain the first result.
Step S46, when first result shows that second application software needs rollback, according to the institute having backed up The first application software information is stated, corresponding first application software is installed.
In step S45 to step S46 operating process and embodiment one, step S13 and step S14 operating process phase Together, can be cross-referenced, here is omitted.
Step S47, according to first database and second database, it is soft to build the first application installed after rollback 3rd database corresponding to part, and by the first application software use after the 3rd database purchase rollback during The 3rd application data information.
When needing second application software being rolled back to first application software, in step S47, also disclose It is a kind of by using the first database, the second database that correspond to the first application software and the second application software respectively, structure the The technical characteristic of three databases.After the application software installed in the electronic device is rolled back to the 3rd application software, pass through described Three databases, the 3rd application data information of first application software after rollback can be stored.
Embodiments herein four, disclose a kind of method of application software upgrade rollback.This method is set applied to electronics It is standby, the first application software is installed first, backs up the first application software information corresponding to first application software, and described in structure First database corresponding to first application software, during the first application software use described in first database purchase Caused first application data information;Then second application software is installed, second application software is that the described first application is soft The upgraded version of part, and the second database corresponding to the second application software is built, pass through described in second database purchase the Second application data information caused by during two application software uses;The first operation is being received, according to the first operation Parsing, when the first result got demonstrates the need for rollback, according to the first application software information having backed up, phase is installed The first application software answered, and according to the first application database and the second application database, build described first after rollback and answer The 3rd database corresponding to software, so as to pass through first application software after the 3rd database purchase rollback Caused 3rd application data information.
Such scheme builds corresponding database, and utilize institute by the application software to be currently installed in electronic equipment During stating application software use described in database purchase, the technical characteristic of caused application data information, it can deposit in real time The corresponding application data information of application software is stored up, consequently facilitating user can preferably use the application software.
Further, in step S44, it is side that the second application software builds corresponding second database to disclose a kind of Case, second database are used to store the second application data information during the second application software use.The structure The method for building the second database corresponding to the second application data information, including:
First, it is determined that each second parameter corresponding to the second application data information and the first application data information Whether corresponding each first parameter is identical.Because second application software is the upgraded version of first application software, Therefore, the parameter of both caused application data may be different, therefore, building the second data corresponding to the second application software , it is necessary to carry out above-mentioned judgement during storehouse.
Then, it is that second application software builds the second database according to judged result.
When each second parameter is identical with each first parameter, obtain what is stored in first database First application data information, as the second application data information, and it is corresponding to build the second application data information accordingly The second database;
When each second parameter is identical with each first argument section, obtained from first database First application data information corresponding to identical parameters, stored into the second database corresponding to second application software, And the second application data information is built according to different parameters, stored into second database;
When each second parameter and entirely different each first parameter, institute is built according to second parameter The second database is stated, and according to second parameter, corresponding storage second application data in second database Information.
According to judged result, determine that each second parameter corresponding to second application software and the described first application are soft When each first parameter corresponding to part is identical, in order that the first application software caused first application data energy in use Enough it is continuing with, it is necessary to the first application data information stored in first database be obtained, as the second application data letter Breath, and the second database is built accordingly.For example, the first parameter of the first application data information includes gold coin this parameter, the During one application software use, stored in the first database on this application message of the quantity of gold coin.When judging The second parameter of second application software is known, when remaining as gold coin, after the second application software is mounted with, in order to avoid before The gold coin quantity that is obtained during use is lost, then obtains gold coin quantity this first application stored in first database Data, then stored as the second application data information into the second database.Certainly, in the use of the second application software During, the change of gold coin quantity needs to continue to be stored in second database.
When each second parameter is identical with each first argument section, for example, first application data First parameter of information is gold coin, and when the second parameter of second application software, respectively gold coin and empirical value, installing After second application software, in order to avoid the gold coin quantity obtained during use before is lost, then obtain in the first database Gold coin this parameter corresponding to the first application data information, stored into the second database.Further, since empirical value this One parameter is that the second application software is exclusive, it is necessary to be that this parameter builds corresponding tables of data, and by corresponding to the parameter Second application data information is stored into corresponding tables of data, is stored into the second database.
When each second parameter and each first parameter differ, for example, first application data is believed First parameter of breath is gold coin, and when the second parameter of second application software, respectively empirical value and game ratings, then need Corresponding tables of data is built according to the second parameter, the second application data information corresponding to second parameter is stored to described In tables of data, and stored into the second database.
It is the second application software structure by the above-mentioned means, after the second application software being installed in the electronic device Build corresponding second database.
Further, in step S47, a kind of corresponding 3rd number of the first application software structure for after rollback is disclosed According to the scheme in storehouse, the 3rd database is for the 3rd application during the first application software use after storing rollback Data message.The method of 3rd database corresponding to structure the 3rd application data information, including:
First, it is determined that each first parameter corresponding to the first application data information and the second application data information Whether corresponding each second parameter is identical;
Then, it is first application software the 3rd database of structure after rollback according to judged result.
When each first parameter is identical with each second parameter, extracted wherein from second database The second application data information of storage, as the 3rd application data information, and in the 3rd database stored to structure;
When each first parameter is identical with each second argument section, obtained from second database Second application data information corresponding to identical parameters, is stored into the 3rd database, and is counted from described first before upgrading According to the first application data information corresponding to acquisition different parameters in storehouse, stored into the 3rd database;
When each first parameter and entirely different each second parameter, obtain in first database First application data information, as the 3rd application data information, and store into the 3rd database.
According to judged result, determine that each second parameter corresponding to second application software and the described first application are soft When each first parameter corresponding to part is identical, in order that after rollback, remain able to using caused by second application software the Two application data information, then the second application data information is directly extracted from second database, as the 3rd application Data message, and in the 3rd database stored to structure.
When each first parameter is identical with each second argument section, for example, second parameter is gold Coin and empirical value, and first parameter is gold coin and game ratings, then from the second database, this parameter pair of extraction gold coin The the second application data information answered, and store to corresponding tables of data, the tables of data is stored to the 3rd database In.In addition, the first application data information corresponding to this parameter of the game ratings, then from first database before upgrading Middle extraction, and the 3rd application data information is used as, corresponding tables of data is built, and the tables of data is stored to the described 3rd number According in storehouse.
When each first parameter and during the second parameter difference, for example, the of the first application data information One parameter is gold coin, and when the second parameter of second application software, respectively empirical value and game ratings, that is to say, that In use, application data information corresponding to first parameter does not change second application software, then from described First database as the 3rd application data information, and is stored to the 3rd database from the first application data information is extracted In.
By the above-mentioned means, after the first application software after rollback can be installed in the electronic device, should for described first With corresponding 3rd database of software building.
Embodiment five
Embodiments herein five discloses a kind of application software upgrade rollback method, and this method is applied to electronic equipment, Workflow schematic diagram shown in Figure 5, the application software upgrade rollback method include:
Step S51, first application software is installed, back up the first application software information corresponding to first application software, And load corresponding message identification for the first application software information.
Step S52, second application software is installed, back up the second application software information corresponding to second application software, And corresponding message identification is loaded for the second application software information, wherein, second application software should for described first With the upgraded version of software.
Step S53,3rd application software is installed, wherein, the 3rd application software is the liter of second application software Level version.
Step S54, the first operation is received, and the described first operation is parsed, to obtain the first result.
Step S55, when first result shows that the 3rd application software needs rollback, according to first result Instruction, according to the first application software information or the second application software information having backed up, institute is installed accordingly State the first application software or second application software.
In embodiments herein five, a kind of application software upgrade rollback method is disclosed, in this method, a certain application Software is by repeatedly upgrading, so that the application software information of multiple versions has been backed up for the application software in the electronic device, In this case, after the first operation of user is received, realize that the application to respective version corresponding to the described first operation is soft The rollback of part.
Further, since backup has the application software information of miscellaneous editions in the electronic device, for the ease of the selection of user, Corresponding message identification is loaded with the application software information of each version, so that user is carrying out the first operation, is chosen When needing the application software of rollback, selected according to described information mark.Wherein, described information mark can be diversified forms, The time installed such as application software or the time of corresponding application software information back-up, or, the progress that application software uses, or Person, described information mark can also be the software snapshot of corresponding application software.The software snapshot refers to that the application is soft The application interface of part, it can be obtained by way of recording and shielding.When using this message identification of software snapshot, user is being grasped , can be according to the operation to corresponding software snapshot, it is determined that needing application software to be mounted when making.
Embodiment six
Embodiments herein six discloses a kind of application software upgrade rollback device, applied to electronic equipment, referring to Fig. 6 Shown structural representation, the application software upgrade rollback device include:The first installation installation of module 11, second module 12, Receiving module 13 and rollback installation module 14, wherein,
The first installation module 11, for installing the first application software, and is backed up corresponding to first application software First application software information;
The second installation module 12, for installing the second application software, second application software should for described first With the upgraded version of software;
The receiving module 13, parsed for receiving the first operation, and to the described first operation, to obtain the first knot Fruit;
Module 14 is installed in the rollback, for when first result shows that second application software needs rollback, According to the first application software information having backed up, corresponding first application software is installed.
Embodiments herein six discloses a kind of application software upgrade rollback device, and this method is applied to electronic equipment, In the application software upgrade rollback device, the first application software is installed by the first installation module first, and back up described the First application software information corresponding to one application software;Then the second application software is installed by the second installation module, i.e., it is described The upgraded version of first application software;Then by receiving module receive first operation, by described first operation parsing, Obtain the first result;When first result shows that second application software needs rollback, module root is installed by rollback According to the first application software information having backed up, corresponding first application software is installed.
By application software upgrade rollback method disclosed in the present application, more highest version can be mounted with electronic equipment The second application software after, needing to carry out it rollback, install the first application software when, according to back up in advance first application Software information, rollback is realized, complete the installation to first application software, it is soft to application in the prior art so as to solve The problem of rollback being unable to after part upgrading.
Further, it is described when the first application software information is the application installation package of first application software Rollback installation module 14 includes:
First rollback installation unit, for according to rollback demand, obtaining the application installation of first application software Bag, and first application software is installed according to the application installation package.
Further, when the first application software information is the version number of first application software, the rollback Installation module 14 includes:
Version number's acquiring unit, for according to rollback demand, the version number of acquisition first application software;
Second rollback installation unit, pacify for downloading application installation package corresponding to the version number, and according to the application Dress bag installs first application software.
Further, the application software upgrade rollback device also includes:
First database sharing module, after installing first application software, according to first application software pair The the first application data information answered, the first database corresponding to the first application data information is built, and pass through described first The first application data information during first application software use described in database purchase;
Second database sharing module, after installing second application software, according to second application software pair The the second application data information answered, the second database corresponding to the second application data information is built, and pass through described second The second application data information during second application software use described in database purchase;
3rd database sharing module, for second application software to be rolled back into first application software when needs When, according to first database and second database, build the 3rd corresponding to the first application software installed after rollback Database, and number is applied by the 3rd during the first application software use after the 3rd database purchase rollback It is believed that breath.
Further, the second data structure module includes:
First judging unit, for judging each second parameter and described first corresponding to the second application data information Whether each first parameter is identical corresponding to application data information;
First construction unit, for when each second parameter is identical with each first parameter, described in acquisition The the first application data information stored in first database, as the second application data information, and described is built accordingly Second database corresponding to two application data information;
Second construction unit, for when each second parameter is identical with each first argument section, from institute The first application data information corresponding to obtaining identical parameters in the first database is stated, is stored to second application software pair In the second database answered, and the second application data information is built according to different parameters, stored to second data In storehouse;
3rd construction unit, for when each second parameter and entirely different each first parameter, according to Second parameter builds second database, and according to second parameter in second database, it is corresponding to deposit Store up the second application data information.
Further, the 3rd data structure module includes:
Second judging unit, judge each first parameter corresponding to the first application data information and the described second application Whether each second parameter is identical corresponding to data message;
4th construction unit, for when each first parameter is identical with each second parameter, from described The the second application data information wherein stored is extracted in two databases, as the 3rd application data information, and is stored to structure In the 3rd database after building;
5th construction unit, for when each first parameter is identical with each second argument section, from institute The second application data information corresponding to obtaining identical parameters in the second database is stated, is stored into the 3rd database, and from First application data information corresponding to obtaining different parameters in first database before upgrading, is stored to the described 3rd In database;
6th construction unit, for when each first parameter and entirely different each second parameter, obtaining The first application data information in first database, as the 3rd application data information, and store to the 3rd data In storehouse.
Accordingly, the invention also discloses a kind of electronic equipment, in the processor of the electronic equipment, it is integrated with as above institute The application software upgrade rollback device stated.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein Member and algorithm steps, it can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually Performed with hardware or software mode, application-specific and design constraint depending on technical scheme.Professional and technical personnel Described function can be realized using distinct methods to each specific application, but this realization is it is not considered that exceed The scope of the present invention.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, the corresponding process in preceding method embodiment is may be referred to, will not be repeated here.
In several embodiments provided herein, it should be understood that disclosed systems, devices and methods, can be with Realize by another way.For example, device embodiment described above is only schematical, for example, the unit Division, only a kind of division of logic function, can there is other dividing mode, such as multiple units or component when actually realizing Another system can be combined or be desirably integrated into, or some features can be ignored, or do not perform.It is another, it is shown or The mutual coupling discussed or direct-coupling or communication connection can be the indirect couplings by some interfaces, device or unit Close or communicate to connect, can be electrical, mechanical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units it is integrated in a unit.
If the function is realized in the form of SFU software functional unit and is used as independent production marketing or in use, can be with It is stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words The part to be contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter Calculation machine software product is stored in a storage medium, including some instructions are causing a computer equipment(Can be People's computer, server, or network equipment etc.)Perform all or part of step of each embodiment methods described of the present invention. And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage(ROM, Read-Only Memory), arbitrary access deposits Reservoir(RAM, Random Access Memory), magnetic disc or CD etc. are various can be with the medium of store program codes.
The foregoing description of the disclosed embodiments, professional and technical personnel in the field are enable to realize or using the present invention. A variety of modifications to these embodiments will be apparent for those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, it is of the invention The embodiments shown herein is not intended to be limited to, and is to fit to and principles disclosed herein and features of novelty phase one The most wide scope caused.

Claims (11)

  1. A kind of 1. application software upgrade rollback method, applied to electronic equipment, it is characterised in that including:
    First application software is installed, and backs up the first application software information corresponding to first application software;
    Second application software is installed, second application software is the upgraded version of first application software;
    The first operation is received, and the described first operation is parsed, to obtain the first result;
    It is soft according to first application having backed up when first result shows that second application software needs rollback Part information, corresponding first application software is installed;
    After first application software is installed, the first application data information according to corresponding to first application software, institute is built The first database corresponding to the first application data information is stated, and is made by the first application software described in first database purchase The first application data information during;
    After second application software is installed, the second application data information according to corresponding to second application software, institute is built The second database corresponding to the second application data information is stated, and is made by the second application software described in second database purchase The second application data information during;
    When needing second application software being rolled back to first application software, according to first database and described Second database, the 3rd database corresponding to the first application software installed after rollback is built, and pass through the 3rd database Store the 3rd application data information during the first application software use after rollback.
  2. 2. according to the method for claim 1, it is characterised in that when the first application software information is the described first application During the application installation package of software, the first application software information that the basis has backed up, corresponding first application of installation is soft Part includes:
    According to rollback demand, the application installation package of first application software is obtained, and is pacified according to the application installation package Fill first application software.
  3. 3. according to the method for claim 1, it is characterised in that when the first application software information is the described first application During the version number of software, the first application software information that the basis has backed up, corresponding first application software package is installed Include:
    According to rollback demand, the version number of acquisition first application software;
    Application installation package corresponding to the version number is downloaded, and first application software is installed according to the application installation package.
  4. 4. according to the method for claim 1, it is characterised in that the corresponding to the structure the second application data information Two databases, including:
    Judge that each second parameter corresponding to the second application data information is corresponding with the first application data information each Whether individual first parameter is identical;
    When each second parameter is identical with each first parameter, first stored in first database is obtained Application data information, as the second application data information, and build accordingly corresponding to the second application data information Two databases;
    When each second parameter is identical with each first argument section, obtained from first database identical First application data information corresponding to parameter, stored into the second database corresponding to second application software, and root The second application data information is built according to different parameters, is stored into second database;
    When each second parameter and entirely different each first parameter, according to second parameter structure described the Two databases, and according to second parameter, corresponding storage the second application data information in second database.
  5. 5. according to the method for claim 1, it is characterised in that the first application software installed after the structure rollback is corresponding The 3rd database, including:
    Judge that each first parameter corresponding to the first application data information is corresponding with the second application data information each Whether individual second parameter is identical;
    When each first parameter is identical with each second parameter, extracts from second database and wherein store The second application data information, as the 3rd application data information, and in the 3rd database stored to structure;
    When each first parameter is identical with each second argument section, obtained from second database identical Second application data information corresponding to parameter, is stored into the 3rd database, and from first database before upgrading First application data information corresponding to middle acquisition different parameters, is stored into the 3rd database;
    When each first parameter and entirely different each second parameter, first in first database is obtained Application data information, as the 3rd application data information, and store into the 3rd database.
  6. A kind of 6. application software upgrade rollback device, applied to electronic equipment, it is characterised in that including:
    First installation module, for installing the first application software, and it is soft to back up the first application corresponding to first application software Part information;
    Second installation module, for installing the second application software, second application software is the liter of first application software Level version;
    Receiving module, parsed for receiving the first operation, and to the described first operation, to obtain the first result;
    Module is installed in rollback, for when first result shows that second application software needs rollback, according to standby The first application software information of part, corresponding first application software is installed;
    First database sharing module, after installing first application software, according to corresponding to first application software First application data information, the first database corresponding to the first application data information is built, and pass through first data The first application data information during first application software use described in library storage;
    Second database sharing module, after installing second application software, according to corresponding to second application software Second application data information, the second database corresponding to the second application data information is built, and pass through second data The second application data information during second application software use described in library storage;
    3rd database sharing module, for when need second application software is rolled back to first application software when, According to first database and second database, the 3rd data corresponding to the first application software installed after rollback are built Storehouse, and believed by the 3rd application data during the first application software use after the 3rd database purchase rollback Breath.
  7. 7. device according to claim 6, it is characterised in that when the first application software information is the described first application During the application installation package of software, the rollback installation module includes:
    First rollback installation unit, for according to rollback demand, obtaining the application installation package of first application software, and First application software is installed according to the application installation package.
  8. 8. device according to claim 6, it is characterised in that when the first application software information is the described first application During the version number of software, the rollback installation module includes:
    Version number's acquiring unit, for according to rollback demand, the version number of acquisition first application software;
    Second rollback installation unit, for downloading application installation package corresponding to the version number, and according to the application installation package First application software is installed.
  9. 9. device according to claim 6, it is characterised in that the second data structure module includes:
    First judging unit, for judging each second parameter corresponding to the second application data information and the described first application Whether each first parameter is identical corresponding to data message;
    First construction unit, for when each second parameter is identical with each first parameter, obtaining described first The the first application data information stored in database, as the second application data information, and described second is built accordingly and is answered The second database corresponding to data message;
    Second construction unit, for when each second parameter is identical with each first argument section, from described First application data information corresponding to obtaining identical parameters in one database, is stored to corresponding to second application software In second database, and the second application data information is built according to different parameters, stored into second database;
    3rd construction unit, for when each second parameter and entirely different each first parameter, according to described Second parameter builds second database, and according to second parameter, corresponding storage institute in second database State the second application data information.
  10. 10. device according to claim 6, it is characterised in that the 3rd data structure module includes:
    Second judging unit, judge each first parameter corresponding to the first application data information and second application data Whether each second parameter is identical corresponding to information;
    4th construction unit, for when each first parameter is identical with each second parameter, from the described second number The the second application data information wherein stored according to being extracted in storehouse, as the 3rd application data information, and is stored to structure The 3rd database in;
    5th construction unit, for when each first parameter is identical with each second argument section, from described Second application data information corresponding to obtaining identical parameters in two databases, is stored into the 3rd database, and from upgrading First application data information corresponding to obtaining different parameters in preceding first database, is stored to the 3rd data In storehouse;
    6th construction unit, for when each first parameter and entirely different each second parameter, described in acquisition The first application data information in first database, as the 3rd application data information, and store into the 3rd database.
  11. 11. a kind of electronic equipment, it is characterised in that in the processor of the electronic equipment, integrate just like claim 6 to right It is required that the application software upgrade rollback device described in 10 any one.
CN201310436140.9A 2013-09-23 2013-09-23 Application software upgrade rollback method, device and electronic equipment Active CN104461595B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310436140.9A CN104461595B (en) 2013-09-23 2013-09-23 Application software upgrade rollback method, device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310436140.9A CN104461595B (en) 2013-09-23 2013-09-23 Application software upgrade rollback method, device and electronic equipment

Publications (2)

Publication Number Publication Date
CN104461595A CN104461595A (en) 2015-03-25
CN104461595B true CN104461595B (en) 2017-11-28

Family

ID=52907705

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310436140.9A Active CN104461595B (en) 2013-09-23 2013-09-23 Application software upgrade rollback method, device and electronic equipment

Country Status (1)

Country Link
CN (1) CN104461595B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105607933A (en) * 2015-12-24 2016-05-25 杭州电梦网络科技有限公司 Heat updating method for mobile games
CN106383753B (en) * 2016-09-13 2019-09-17 北京小米移动软件有限公司 Using backup, restoring method and device
CN106843951A (en) * 2017-01-12 2017-06-13 北京珠穆朗玛移动通信有限公司 The installation process method and its mobile terminal of software program
CN111124753A (en) * 2019-11-19 2020-05-08 维沃移动通信有限公司 Application program control method, electronic equipment and server
CN115514741A (en) * 2021-06-23 2022-12-23 华为技术有限公司 OTA (over the air) upgrading method and device and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7080279B2 (en) * 2003-12-03 2006-07-18 International Business Machines Corporation Autonomic rollback
CN101169749A (en) * 2007-11-20 2008-04-30 中兴通讯股份有限公司 Software edition upgrading management device and software edition upgrading management method
CN102622280A (en) * 2011-01-06 2012-08-01 苏州科达科技有限公司 Control method and control device used for software version upgrade and based on dual file system
CN102682127A (en) * 2012-05-16 2012-09-19 北京像素软件科技股份有限公司 Data version control method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050132351A1 (en) * 2003-12-12 2005-06-16 Randall Roderick K. Updating electronic device software employing rollback

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7080279B2 (en) * 2003-12-03 2006-07-18 International Business Machines Corporation Autonomic rollback
CN101169749A (en) * 2007-11-20 2008-04-30 中兴通讯股份有限公司 Software edition upgrading management device and software edition upgrading management method
CN102622280A (en) * 2011-01-06 2012-08-01 苏州科达科技有限公司 Control method and control device used for software version upgrade and based on dual file system
CN102682127A (en) * 2012-05-16 2012-09-19 北京像素软件科技股份有限公司 Data version control method

Also Published As

Publication number Publication date
CN104461595A (en) 2015-03-25

Similar Documents

Publication Publication Date Title
CN104461595B (en) Application software upgrade rollback method, device and electronic equipment
CN104427104B (en) A kind of information processing method and electronic equipment
CN104199706B (en) A kind of eMMC firmware upgrade method and its equipment
CN108881495A (en) Resource allocation methods, device, computer equipment and storage medium
WO2005015436A3 (en) Self describing business objects
CN105049539A (en) Rebating method, device and system
CN107158705A (en) The update method and device of service
CN109685336A (en) Collection task distribution method, device, computer equipment and storage medium
CN108573374A (en) It is a kind of that the daily fee payment method turning to pay and system are redeemed based on fund share
CN105867963A (en) Application updating method and apparatus
CN108234487A (en) Approaches to IM based on wechat public platform
US8554727B2 (en) Method and system of tiered quiescing
CN107797914A (en) Code process method, apparatus and code delivery system
CN111488181B (en) Task scheduling method, device, storage medium and server
CN109960521A (en) Application program updating method, apparatus, electronic equipment and storage medium
CN108470004A (en) Test script generation method, test method, device, equipment and storage medium
CN104636878A (en) Dispatching method and device of bank automatic processing task
CN102521390B (en) Database management and monitoring system based on pin function
CN110244963A (en) Data-updating method, device and terminal device
CN103905491A (en) POS access system-based terminal remote download method and system thereof
CN103677936B (en) A kind of application version upgrade method and electronic equipment
CN108595670A (en) A kind of date storage method, device, computer installation and storage medium
CN104679791B (en) Obtain the treating method and apparatus of data packet
CN110339571A (en) Event generation method and device, storage medium and electronic device
CN106390451A (en) Method and device for testing capacity of game server

Legal Events

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