CN104794400A - Application program restoration method - Google Patents

Application program restoration method Download PDF

Info

Publication number
CN104794400A
CN104794400A CN201510053509.7A CN201510053509A CN104794400A CN 104794400 A CN104794400 A CN 104794400A CN 201510053509 A CN201510053509 A CN 201510053509A CN 104794400 A CN104794400 A CN 104794400A
Authority
CN
China
Prior art keywords
version
reduction
destination application
former packet
version number
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.)
Pending
Application number
CN201510053509.7A
Other languages
Chinese (zh)
Inventor
梅政
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Jinli Communication Equipment Co Ltd
Original Assignee
Shenzhen Jinli Communication Equipment Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Jinli Communication Equipment Co Ltd filed Critical Shenzhen Jinli Communication Equipment Co Ltd
Priority to CN201510053509.7A priority Critical patent/CN104794400A/en
Publication of CN104794400A publication Critical patent/CN104794400A/en
Pending legal-status Critical Current

Links

Abstract

The embodiment of the invention discloses an application program restoration method. The method includes the steps that when the original version of a target application program is updated to an updated version, an original data package of the original version is stored, and the version number of the stored original data package is set to be a restored version number with the priority higher than that of the version number of the updated version; the original data package of the restored version number is shielded; when a restoration instruction for restoring the updated version of the target application program to the original version is received, the updated version of the target application program is restored to the original version through the original data package of the restored version number. By means of the embodiment of the method, the updated application program can be rapidly restored.

Description

A kind of application program method of reducing
Technical field
The present invention relates to electronic technology field, particularly relate to a kind of application program method of reducing.
Background technology
Current intelligent terminal is often all provided with a lot of application program, and application program is often along with the version that the progressive evolution of application technology is different.When detecting that the application program of the current installation of intelligent terminal exists renewal version, just can by this application program update to upgrading version.And the packet of this application program update version can be replaced and cover the packet of original version in the process upgraded.But in actual applications, the user that the application program of renewal version is not all likes, such as: some users are when using the application program upgrading version, think that the application program upgrading version does not have the application program of original version handy, namely this user may be uncomfortable or do not like using the application program upgrading version, and custom or like the application program using original version.In this case, user just may want application program application program being reverted back original version, but the application program having now Internet resources to be often all to provide renewal version is downloaded, even there are some Internet resources to provide the application program of original version to download, but these Internet resources are also little, general users even all search less than.Visible, cannot rapidly updated application program be restored in current technology.
Summary of the invention
Embodiments provide a kind of application program method of reducing, can rapidly updated application program be restored.
First aspect, the embodiment of the present invention provides a kind of application program method of reducing, comprising:
When destination application is updated to renewal version by original version, the former packet of described original version is stored, and the version number of described former packet to be stored is set to the reduction version number higher than the priority of the version number of described renewal version;
Shield the former packet of described reduction version number;
When receiving for described destination application is reduced to the reduction instruction of described original version from described renewal version, use the former packet of described reduction version number that described destination application is reduced to described original version from described renewal version.
Second aspect, the embodiment of the present invention provides a kind of terminal, comprising: storage unit, screen unit, reduction unit, wherein:
Described storage unit, for when destination application is updated to renewal version by original version, the former packet of described original version is stored, and the version number of described former packet to be stored is set to the reduction version number higher than the priority of the version number of described renewal version;
Described screen unit, for shielding the former packet of described reduction version number;
Described reduction unit, for when receiving for described destination application is reduced to the reduction instruction of described original version from described renewal version, use the former packet of described reduction version number that described destination application is reduced to described original version from described renewal version.
In technique scheme, when destination application is updated to renewal version by original version, the former packet of described original version is stored, and the version number of described former packet to be stored is set to the reduction version number higher than the priority of the version number of described renewal version; Shield the former packet of described reduction version number; When receiving for described destination application is reduced to the reduction instruction of described original version from described renewal version, use the former packet of described reduction version number that described destination application is reduced to described original version from described renewal version.Implement the embodiment of the present invention, can realize rapidly updated application program being restored.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of a kind of application program method of reducing that the embodiment of the present invention provides;
Fig. 2 is the schematic flow sheet of the another kind of application program method of reducing that the embodiment of the present invention provides;
Fig. 3 is a kind of optional schematic flow sheet being carried out application program update by OTA that the embodiment of the present invention provides;
Fig. 4 is the schematic flow sheet of a kind of optional application program that the embodiment of the present invention provides also original version;
Fig. 5 is the structural representation of the first intelligent terminal that the embodiment of the present invention provides;
Fig. 6 is the structural representation of the second terminal that the embodiment of the present invention provides;
Fig. 7 is the structural representation of the third intelligent terminal that the embodiment of the present invention provides;
Fig. 8 is the structural representation of the 4th kind of intelligent terminal that the embodiment of the present invention provides;
Fig. 9 is the structural representation of the 5th kind of intelligent terminal that the embodiment of the present invention provides;
Figure 10 is the structural representation of the 6th kind of intelligent terminal that the embodiment of the present invention provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Refer to Fig. 1, Fig. 1 is the schematic flow sheet of a kind of application program method of reducing that the embodiment of the present invention provides, and as shown in Figure 1, comprises the following steps:
S101, when destination application by original version be updated to upgrade version time, the former packet of described original version is stored, and the version number of described former packet to be stored is set to the reduction version number higher than the priority of the version number of described renewal version.
Optionally, above-mentioned original version can be the version of above-mentioned destination application before not carrying out above-mentioned renewal, the former packet of above-mentioned original version can comprise the installation kit of this original version, such as: Android installation kit (Android Package, APK), in addition, above-mentioned former packet can also comprise the data message that above-mentioned destination application produces in above-mentioned original version, such as: daily record or historical data information etc.In addition, any application that above-mentioned destination application can intelligent terminal can be installed, such as: the application program of installing in application layer, or in the application program etc. that system bottom is installed.
Optionally, the reduction version number that the priority of the above-mentioned version number than described renewal version is high can be understood as, the priority of the version number of the above-mentioned renewal version of priority ratio of reduction version number wants one or more rank high, like this when terminal detects the former packet of reduction version number, because the priority of the current version number of destination application is lower than the priority of reduction version number, thus terminal just can use this former packet to upgrade destination application.
Optionally, the above-mentioned former packet storage by described original version can be, the installation data of the original version of the destination application obtained, and this installation data is compressed, obtain the installation data bag of the original version of destination application, such as: APK packet installation data being compressed to the original version obtaining destination application.
S102, shield described reduction version number former packet.
Optionally, the above-mentioned former packet of above-mentioned shielding can be interpreted as this former packet is limited in special scenes under just can read.Such as: configure an instruction one to one to above-mentioned former packet, and limit this former packet and just just can be read by this instruction.
S103, when receiving for described destination application is reduced to the reduction instruction of described original version from described renewal version, use described reduction version number former packet described destination application is reduced to described original version from described renewal version.
Because above-mentioned reduction version number is higher than above-mentioned renewal version, and after being upgraded by step S101, the current version of destination application is above-mentioned renewal version, like this when performing step S103, above-mentioned reduction version number is just higher than the current version number of destination application, thus can realize, when destination application is updated to above-mentioned original version corresponding to reduction version number, being reduced to above-mentioned original version by destination application from above-mentioned renewal version.
Optionally, said method can be applied to the terminal possessing arbitrarily set up applications, such as: mobile phone, panel computer, electronic reader, telepilot, personal computer (Personal Computer, PC), notebook computer, mobile unit, Web TV, wearable device etc. have the terminal of network function.
In the present embodiment, when destination application is updated to renewal version by original version, the former packet of described original version is stored, and the version number of described former packet to be stored is set to the reduction version number higher than the priority of the version number of described renewal version; Shield the former packet of described reduction version number; When receiving for described destination application is reduced to the reduction instruction of described original version from described renewal version, use the former packet of described reduction version number that described destination application is reduced to described original version from described renewal version.Implement the present embodiment can realize rapidly updated application program being restored.
Refer to Fig. 2, Fig. 2 is the schematic flow sheet of the another kind of application program method of reducing that the embodiment of the present invention provides, and as shown in Figure 2, comprises the following steps:
S201, to upgrade after version detecting that described destination application exists, download the more new data packets of described renewal version.
Optionally, step S201 detects described destination application by system upgrade module OTA whether to there is renewal version, if so, then can be downloaded the more new data packets of described renewal version by OTA.In addition, step S201 can also be that described in the Programmable detection by special management application program, whether destination application exists renewal version, if so, then can by upgrading the more new data packets of version described in the download program of this management application program.In addition, when the prompting that step S201 can also be received by above-mentioned destination application exists the updating message upgrading version, the more new data packets of described renewal version is downloaded.In addition, above-mentioned more new data packets can be the APK of this renewal version.
Described in S202, use, more described destination application is updated to renewal version by original version by new data packets, and obtain the former packet of described original version, and add reduction attribute tags at described former packet, described reduction attribute tags represents that described former data are reduced to described destination application when receiving for described destination application is reduced to the reduction instruction of described original version from described renewal version.
Wherein, in the renewal process of step S202, only replace the former packet of original version, but do not cover the former packet of original version, meanwhile, retain the former packet of original version.Such as: step S202 can comprise:
Described in being used by plug-in part technology, more described destination application is updated to renewal version by original version by new data packets, retains the former packet of described original version simultaneously.
Can be specifically by APK plug-in unit (APK plug) technology use described in more new data packets described destination application is updated to renewal version by original version, retain the former packet of described original version simultaneously, and add reduction attribute tags at described former packet.In this renewal process, more new data packets will replace above-mentioned former packet by APK plug technology, but do not cover former packet, meanwhile, retain this former packet.
Just can identify that this former packet can reduce to above-mentioned destination application by the reduction attribute tags of above-mentioned former packet like this, thus when receiving for described destination application is reduced to the reduction instruction of described original version from described renewal version, described former data just can be used to reduce to described destination application.
S203, when destination application by original version be updated to upgrade version time, the former packet of described original version is stored, and the version number of described former packet to be stored is set to the reduction version number higher than the priority of the version number of described renewal version.
Above-mentioned storage can be that above-mentioned former packet is stored in this locality.
S204, shield described reduction version number former packet.
Optionally, step S204 can comprise:
Shield the version number of the former packet of described reduction version number.
This embodiment can realize the reduction version number only shielding former packet, and due to this, reduction version number is former shields, even if read this former packet like this, also can not upgrade, because, the now version number of this restoring data bag of None-identified, thus cannot upgrade.
S205, when receiving for described destination application is reduced to the reduction instruction of described original version from described renewal version, use described reduction version number former packet described destination application is reduced to described original version from described renewal version.
Optionally, said method can also comprise the steps:
When using the former packet of described reduction version number that described destination application is reduced to described original version from described renewal version, the version number of the described destination application after described reduction is arranged the version number of described original version.
When destination application can be realized like this to be updated to version corresponding to above-mentioned reduction version number from above-mentioned renewal version, the version number of the destination application after this renewal is set to the version number of above-mentioned original version.The version namely reducing destination application can be realized like this, the version number of simultaneously reducing.
Certainly, after step S205 reduction, the version number of destination application can be set to above-mentioned reduction version number, just in this embodiment, need the version number again upgrading version considering that the reduction version number needs that step 203 is arranged are arranged lower than the developer of destination application, wherein, this upgrades version is again version more higher leveled than above-mentioned renewal version.So just can realize being when developer provides this again to upgrade version, destination application can be updated to this from above-mentioned original version and again upgrade version.
Optionally, described method can also comprise the steps:
After the former packet of shielding described reduction version number, described destination application icon is arranged and regrets button, described in regret button corresponding with the broadcast interface of the described former packet reducing version number, and described in regret button and be defaulted as closed condition.
Wherein, above-mentioned broadcast interface can be the interface for reading above-mentioned former packet, namely only has and just can read above-mentioned former packet by this broadcast interface.In addition, described abovely regret button and be defaulted as closed condition and can be understood as, above-mentionedly regret button and be defaulted as the state not reading above-mentioned former packet.
In this embodiment, optionally, step S205 can comprise:
When regretting the open command of button described in the unlatching receiving user's input, read the former packet of described reduction version number by described broadcast interface, and use the former packet of described reduction version number that described destination application is reduced to described original version from described renewal version.
When receive user click above-mentioned regret the click commands of button time, just can represent that this click commands regrets the open command of button for described in unlatching, namely now destination application is just reverted to above-mentioned original version by user.Thus the former packet of described reduction version number can be read by described broadcast interface, and use the former packet of described reduction version number that described destination application is reduced to described original version from described renewal version.
In this embodiment, optionally, read the former packet of described reduction version number above by described broadcast interface, and use the former packet of described reduction version number described destination application to be reduced to the step of described original version from described renewal version, can comprise:
Described reduction version number is read by described broadcast interface, and the current version number of described reduction version number and described destination application is compared, when described reduction version number is number higher than the current version of described destination application, use the former packet of described reduction version number that described destination application is reduced to described original version from described renewal version.
Due to the version updating of application program, only application program can be updated to highest version by lowest version, like this when judging that above-mentioned reduction version number is higher than the current version number of destination application, namely judge the version number of above-mentioned reduction version number higher than above-mentioned renewal version.Such step S205 just thinks that the version of above-mentioned former packet is higher than the current version of destination application, thus destination application is updated to the original version of above-mentioned reduction version number, namely use the former packet of described reduction version number that described destination application is reduced to described original version from described renewal version.
In this embodiment, the interface that can be implemented in destination application configures and above-mentionedly regrets button, so only need user to click this and regret button and just the version of destination application can be reduced, thus realize fast the version of application program being reduced.
Optionally, described method can also comprise the steps:
Arrange in system upgrade module icon and regret option tab, described in regret option tab corresponding with the broadcast interface of the former packet of the conductively-closed of at least one application program, and described in regret option tab and be defaulted as closed condition.
Such as: arrange in OTA and above-mentionedly regret option tab, wherein, it is corresponding with the broadcast interface of the former packet of the conductively-closed of at least one application program that this regrets option tab, and this just shows to regret option according to the broadcast interface of former packet of conductively-closed that can be connected at least one application program by this.Can be specifically that above-mentioned to regret option tab corresponding with the broadcast interface of the former packet of the conductively-closed of the application program of all renewals.Such as: intelligent terminal have updated 5 application programs within a certain period of time, just can by the former packet shielding of the original version of these 5 application programs by above-mentioned steps, when user needs to select one or more application program to reduce, just can regret option tab by above-mentioned, user is selected to need the broadcast interface of the former packet of the application program of reducing, thus read these former packets, and carry out the version reduction of application program.
In this embodiment, optionally, step S205 can comprise:
When regret described in receiving user and passing through option tab input for described destination application is reduced to the reduction instruction of described original version from described renewal version time, read the former packet of described reduction version number by the broadcast interface of the former packet of described reduction version number, and use the former packet of described reduction version number that described destination application is reduced to described original version from described renewal version.
In like manner, in this embodiment, in this embodiment, read the former packet of described reduction version number above by described broadcast interface, and use the former packet of described reduction version number described destination application to be reduced to the step of described original version from described renewal version, can comprise:
Described reduction version number is read by described broadcast interface, and the current version number of described reduction version number and described destination application is compared, when described reduction version number is number higher than the current version of described destination application, use the former packet of described reduction version number that described destination application is reduced to described original version from described renewal version.
In this embodiment, can realize regretting option tab by one can carry out version reduction to multiple application program, to promote Consumer's Experience, meanwhile, can also provide the efficiency of application program also original version.
In the present embodiment, the basis of the embodiment shown in Fig. 1 adds the embodiment of plurality of optional, and can realize rapidly updated application program being restored.
Introduce concrete application example below, refer to Fig. 3 and Fig. 4, wherein, Fig. 3 is a kind of optional schematic flow sheet being carried out application program update by OTA that the embodiment of the present invention provides, and Fig. 4 is the schematic flow sheet of a kind of optional application program that the embodiment of the present invention provides also original version.
Can comprise the steps: in the flow process shown in Fig. 3
S301, operation OTA.
Whether S302, to judge that the network of intelligent terminal connects normal, if so, performs step S303, if not, then exit OTA.
S303, manually detect renewal.
Wherein, step S303 can be that user's Trigger update detects.
S304, connection OTA server.
S305, inquiry upgrade file, and more local version information, if there is renewal, perform step S306, if without renewal, exit OTA.
This step can be the upgrade file on inquiry OTA server, then is compared by the version information of this upgrade file with local application program.
Whether S306, prompting user upgrade.
S307, down loading updating bag verifying.
Can be receive user's instruction when carrying out the order upgraded, down loading updating bag also verifies.
S308, download and pointed out and whether continued to restart upgrading, if so, then performed step S309, if not, then performed step S3013.
S309, when confirming that carrying out continuations upgrades, restarting to reforestation practices (such as: Rrecovery) and upgrading.
This step can be intelligence restarted eventually, and upgrade applications.Certainly, if the application program of application layer can be do not restart intelligent terminal.
S3010, when reforestation practices failure time, then exit renewal.
S3011, renewal.
S3012, verification starting shooting.
S3013, exit and restart setting.
Application programs can be realized by above-mentioned steps to upgrade.
Wherein, Fig. 4 is described for camera applications, can comprise the steps: in the flow process shown in Fig. 4
S401, extraction camera legacy version 2.3.3aa.
Wherein, above-mentioned legacy version number can be the version number of camera before not upgrading.
The renewal version number 2.3.3ab of S402, extraction renewal camera.
S403, dispose more new data, and push updating message.
Wherein, above-mentioned updating message can be push message.
S404, down loading updating packet, and confirm to upgrade.
Can be specifically that the confirmation receiving user's input upgrades order, then down loading updating packet, and confirm to upgrade.
S405, to be upgraded by APK plug-in part technology, preserve the APK of camera legacy version.
The camera legacy version number of S406, preservation is revised as 2.3.3.ac.
S407, shielding 2.3.3.ac, to prevent 2.3.3.ab auto-update.
Add in S408, camera and regret button.
S409, user click and regret button, release version number 2.3.3.ac.
S4010, version number 2.3.3.ac detected, namely redaction detected.
S4011, user confirm to upgrade.
S4012, upgrade to 2.3.3.ac version, namely revert to 2.3.3.aa version.
S4013, user cancel to upgrading.
S4014, cancellation are return, and namely keep the 2.3.3.ab version of camera.
Add in S4015, system upgrade module and regret button.
S4016, user click and regret button, release version number 2.3.3.ac.
S4017, version number 2.3.3.ac detected, namely redaction detected.
After execution of step S4017, just can perform step S4011 or step S4013.
It should be noted that, step S408 and step S4015 is two technical schemes arranged side by side, these two schemes can be combine, also can independently exist, namely all can arrange in camera and system upgrade module and regret button, also only can arrange in camera or system upgrade module and regret button.
Be apparatus of the present invention embodiment below, the method that apparatus of the present invention embodiment realizes for performing the inventive method embodiment one to two, for convenience of explanation, illustrate only the part relevant to the embodiment of the present invention, concrete ins and outs do not disclose, and please refer to the embodiment of the present invention one and embodiment two.
Refer to Fig. 5, Fig. 5 is the structural representation of the first terminal that the embodiment of the present invention provides, and as shown in Figure 5, comprising: storage unit 51, screen unit 52, reduction unit 53, wherein:
Storage unit 51, for when destination application is updated to renewal version by original version, the former packet of described original version is stored, and the version number of described former packet to be stored is set to the reduction version number higher than the priority of the version number of described renewal version.
Optionally, above-mentioned original version can be the version of above-mentioned destination application before not carrying out above-mentioned renewal, the former packet of above-mentioned original version can comprise the installation kit of this original version, such as: APK, in addition, above-mentioned former packet can also comprise the data message that above-mentioned destination application produces in above-mentioned original version, such as: daily record or historical data information etc.In addition, any application that above-mentioned destination application can intelligent terminal can be installed, such as: the application program of installing in application layer, or in the application program etc. that system bottom is installed.
Optionally, the reduction version number that the priority of the above-mentioned version number than described renewal version is high can be understood as, the priority of the version number of the above-mentioned renewal version of priority ratio of reduction version number wants one or more rank high, like this when terminal detects the former packet of reduction version number, because the priority of the current version number of destination application is lower than the priority of reduction version number, thus terminal just can use this former packet to upgrade destination application.
Optionally, the above-mentioned former packet storage by described original version can be, the installation data of the original version of the destination application obtained, and this installation data is compressed, obtain the installation data bag of the original version of destination application, such as: APK packet installation data being compressed to the original version obtaining destination application.
Screen unit 52, for shielding the former packet of described reduction version number.
Optionally, the above-mentioned former packet of above-mentioned shielding can be interpreted as this former packet is limited in special scenes under just can read.Such as: configure an instruction one to one to above-mentioned former packet, and limit this former packet and just just can be read by this instruction.
Reduction unit 53, for when receiving for described destination application is reduced to the reduction instruction of described original version from described renewal version, use the former packet of described reduction version number that described destination application is reduced to described original version from described renewal version.
Because above-mentioned reduction version number is higher than above-mentioned renewal version, and by after renewal, the current version of destination application is above-mentioned renewal version, such reduction unit 53 is when performing reduction, above-mentioned reduction version number is just higher than the current version number of destination application, thus can realize, when destination application is updated to above-mentioned original version corresponding to reduction version number, being reduced to above-mentioned original version by destination application from above-mentioned renewal version.
Optionally, above-mentioned terminal can be the terminal possessing arbitrarily set up applications, such as: mobile phone, panel computer, electronic reader, telepilot, PC, notebook computer, mobile unit, Web TV, wearable device etc. have the terminal of network function.
In technique scheme, when destination application is updated to renewal version by original version, the former packet of described original version is stored, and the version number of described former packet to be stored is set to the reduction version number higher than the priority of the version number of described renewal version; Shield the former packet of described reduction version number; When receiving for described destination application is reduced to the reduction instruction of described original version from described renewal version, use the former packet of described reduction version number that described destination application is reduced to described original version from described renewal version.Implement the present embodiment can realize rapidly updated application program being restored.
Refer to Fig. 6, Fig. 6 is the structural representation of the second terminal that the embodiment of the present invention provides, and as shown in Figure 6, comprising: download unit 61, updating block 62, storage unit 63, screen unit 64, reduction unit 65, wherein:
Download unit 61, for after detecting that described destination application exists renewal version, downloads the more new data packets of described renewal version.
Optionally, download unit 61 can be detect described destination application by system upgrade module OTA whether to there is renewal version, if so, then can be downloaded the more new data packets of described renewal version by OTA.In addition, download unit 61 can also be that described in the Programmable detection by special management application program, whether destination application exists renewal version, if so, then can by upgrading the more new data packets of version described in the download program of this management application program.In addition, when the prompting that download unit 61 can also be received by above-mentioned destination application exists the updating message upgrading version, the more new data packets of described renewal version is downloaded.In addition, above-mentioned more new data packets can be the APK of this renewal version.
Updating block 62, for described in using more new data packets described destination application is updated to renewal version by original version, and obtain the former packet of described original version, and add reduction attribute tags at described former packet, described reduction attribute tags represents that described former data are reduced to described destination application when receiving for described destination application is reduced to the reduction instruction of described original version from described renewal version.
Wherein, in the renewal process of updating block 62, only replace the former packet of original version, but do not cover the former packet of original version, meanwhile, retain the former packet of original version.Such as: described in updating block 62 may be used for being used by plug-in part technology, more described destination application is updated to renewal version by original version by new data packets, retains the former packet of described original version simultaneously.
Can be specifically used by APK plug technology described in more new data packets described destination application is updated to renewal version by original version, retain the former packet of described original version simultaneously, and add reduction attribute tags at described former packet.In this renewal process, more new data packets will replace above-mentioned former packet by APK plug technology, but do not cover former packet, meanwhile, retain this former packet.
Just can identify that this former packet can reduce to above-mentioned destination application by the reduction attribute tags of above-mentioned former packet like this, thus when receiving for described destination application is reduced to the reduction instruction of described original version from described renewal version, described former data just can be used to reduce to described destination application.
Storage unit 63, for when destination application is updated to renewal version by original version, the former packet of described original version is stored, and the version number of described former packet to be stored is set to the reduction version number higher than the priority of the version number of described renewal version.
Above-mentioned storage can be that above-mentioned former packet is stored in this locality.
Screen unit 64, for shielding the former packet of described reduction version number.
Optionally, screen unit may be used for the version number of the former packet shielding described reduction version number.
This embodiment can realize the reduction version number only shielding former packet, and due to this, reduction version number is former shields, even if read this former packet like this, also can not upgrade, because, the now version number of this restoring data bag of None-identified, thus cannot upgrade.
Reduction unit 65, for when receiving for described destination application is reduced to the reduction instruction of described original version from described renewal version, use the former packet of described reduction version number that described destination application is reduced to described original version from described renewal version.
Optionally, Fig. 7 is the structural representation of the third terminal that the embodiment of the present invention provides, and as shown in Figure 7, described intelligent terminal can also comprise:
First setting unit 66, for after the former packet of shielding described reduction version number, described destination application icon is arranged and regrets button, described in regret button corresponding with the broadcast interface of the described former packet reducing version number, and described in regret button and be defaulted as closed condition.
Wherein, above-mentioned broadcast interface can be the interface for reading above-mentioned former packet, namely only has and just can read above-mentioned former packet by this broadcast interface.In addition, described abovely regret button and be defaulted as closed condition and can be understood as, above-mentionedly regret button and be defaulted as the state not reading above-mentioned former packet.
In this embodiment, optionally, reduction unit 65 may be used for when regretting the open command of button described in the unlatching receiving user's input, read the former packet of described reduction version number by described broadcast interface, and use the former packet of described reduction version number that described destination application is reduced to described original version from described renewal version.
When receive user click above-mentioned regret the click commands of button time, just can represent that this click commands regrets the open command of button for described in unlatching, namely now destination application is just reverted to above-mentioned original version by user.Thus the former packet of described reduction version number can be read by described broadcast interface, and use the former packet of described reduction version number that described destination application is reduced to described original version from described renewal version.
In this embodiment, optionally, reduction unit 65 may be used for reading described reduction version number by described broadcast interface, and the current version number of described reduction version number and described destination application is compared, when described reduction version number is number higher than the current version of described destination application, use the former packet of described reduction version number that described destination application is reduced to described original version from described renewal version.
Due to the version updating of application program, only application program can be updated to highest version by lowest version, like this when judging that above-mentioned reduction version number is higher than the current version number of destination application, namely judge the version number of above-mentioned reduction version number higher than above-mentioned renewal version.Such reduction unit 65 just thinks that the version of above-mentioned former packet is higher than the current version of destination application, thus destination application is updated to the original version of above-mentioned reduction version number, namely use the former packet of described reduction version number that described destination application is reduced to described original version from described renewal version.
In this embodiment, the interface that can be implemented in destination application configures and above-mentionedly regrets button, so only need user to click this and regret button and just the version of destination application can be reduced, thus realize fast the version of application program being reduced.
Optionally, Fig. 8 is the structural representation of the 4th kind of terminal that the embodiment of the present invention provides, and as shown in Figure 8, described intelligent terminal can also comprise:
Second setting unit 67, regrets option tab for arranging in system upgrade module icon, described in regret option tab corresponding with the broadcast interface of the former packet of the conductively-closed of at least one application program, and described in regret option tab and be defaulted as closed condition.
Such as: arrange in OTA and above-mentionedly regret option tab, wherein, it is corresponding with the broadcast interface of the former packet of the conductively-closed of at least one application program that this regrets option tab, and this just shows to regret option according to the broadcast interface of former packet of conductively-closed that can be connected at least one application program by this.Can be specifically that above-mentioned to regret option tab corresponding with the broadcast interface of the former packet of the conductively-closed of the application program of all renewals.Such as: intelligent terminal have updated 5 application programs within a certain period of time, just can by the former packet shielding of the original version of these 5 application programs by above-mentioned steps, when user needs to select one or more application program to reduce, just can regret option tab by above-mentioned, user is selected to need the broadcast interface of the former packet of the application program of reducing, thus read these former packets, and carry out the version reduction of application program.
In this embodiment, optionally, reduction unit 65 may be used for when regret described in receiving user and passing through option tab input for described destination application is reduced to the reduction instruction of described original version from described renewal version time, read the former packet of described reduction version number by the broadcast interface of the former packet of described reduction version number, and use the former packet of described reduction version number that described destination application is reduced to described original version from described renewal version.
In this embodiment, can realize regretting option tab by one can carry out version reduction to multiple application program, to promote Consumer's Experience, meanwhile, can also provide the efficiency of application program also original version.
Optionally, Fig. 9 is the structural representation of the 5th kind of terminal that the embodiment of the present invention provides, and as shown in Figure 9, described intelligent terminal can also comprise:
3rd setting unit 68, when described destination application being reduced to described original version from described renewal version for using the former packet of described reduction version number, the version number of the described destination application after described reduction is arranged the version number of described original version.
When destination application can be realized like this to be updated to version corresponding to above-mentioned reduction version number from above-mentioned renewal version, the version number of the destination application after this renewal is set to the version number of above-mentioned original version.The version namely reducing destination application can be realized like this, the version number of simultaneously reducing.
In the present embodiment, the basis of the embodiment shown in Fig. 5 adds the embodiment of plurality of optional, and can realize rapidly updated application program being restored.
Refer to Figure 10, Figure 10 is the structural representation of the 6th kind of terminal that the embodiment of the present invention provides.As shown in Figure 10, this terminal 1000 can comprise: at least one processor 1001, as CPU, and input media 1002, storer 1003 and at least one communication bus 1004.Storer 1003 can be high-speed RAM storer, also can be non-labile storer (non-volatile memory), such as at least one magnetic disk memory.Alternatively, storer 1003 can also be that at least one is positioned at the memory storage away from aforementioned processor 1001.Wherein:
Communication bus 1004, for realizing the connection communication between these assemblies;
Input media 1002, for obtaining the shooting order that instruction filming apparatus carries out taking;
Store batch processing code in storer 1003, and processor 1001 calls the program code stored in storer 1003, for performing following operation:
When destination application is updated to renewal version by original version, the former packet of described original version is stored, and the version number of described former packet to be stored is set to the reduction version number higher than the priority of the version number of described renewal version;
Shield the former packet of described reduction version number;
When receiving for described destination application is reduced to the reduction instruction of described original version from described renewal version, use the former packet of described reduction version number that described destination application is reduced to described original version from described renewal version.
Optionally, processor 1001 can also be used for performing following operation:
After detecting that described destination application exists renewal version, download the more new data packets of described renewal version;
Described in using, more described destination application is updated to renewal version by original version by new data packets, and obtain the former packet of described original version, and add reduction attribute tags at described former packet, described reduction attribute tags represents that described former data are reduced to described destination application when receiving for described destination application is reduced to the reduction instruction of described original version from described renewal version.
Optionally, described in the use that processor 1001 performs, more described destination application is updated to renewal version by original version by new data packets, and obtain the former packet of described original version, and add the operation of reduction attribute tags at described former packet, can comprise:
Described in being used by plug-in part technology, more described destination application is updated to renewal version by original version by new data packets, retains the former packet of described original version simultaneously, and adds reduction attribute tags at described former packet.
Optionally, processor 1001 can also be used for performing following operation:
After the former packet of shielding described reduction version number, described destination application icon is arranged and regrets button, described in regret button corresponding with the broadcast interface of the described former packet reducing version number, and described in regret button and be defaulted as closed condition.
Optionally, processor 1001 perform when receiving for described destination application is reduced to the reduction instruction of described original version from described renewal version, use the former packet of described reduction version number described destination application to be reduced to the operation of described original version from described renewal version, can comprise:
When regretting the open command of button described in the unlatching receiving user's input, read the former packet of described reduction version number by described broadcast interface, and use the former packet of described reduction version number that described destination application is reduced to described original version from described renewal version.
Optionally, the former packet being read described reduction version number by described broadcast interface that processor 1001 performs, and use the former packet of described reduction version number described destination application to be reduced to the operation of described original version from described renewal version, can comprise:
Described reduction version number is read by described broadcast interface, and the current version number of described reduction version number and described destination application is compared, when described reduction version number is number higher than the current version of described destination application, use the former packet of described reduction version number that described destination application is reduced to described original version from described renewal version.
Optionally, processor 1001 can also be used for performing following operation:
Arrange in system upgrade module icon and regret option tab, described in regret option tab corresponding with the broadcast interface of the former packet of the conductively-closed of at least one application program, and described in regret option tab and be defaulted as closed condition.
Optionally, processor 1001 perform when receiving for described destination application is reduced to the reduction instruction of described original version from described renewal version, use the former packet of described reduction version number described destination application to be reduced to the operation of described original version from described renewal version, can comprise:
When regret described in receiving user and passing through option tab input for described destination application is reduced to the reduction instruction of described original version from described renewal version time, read the former packet of described reduction version number by the broadcast interface of the former packet of described reduction version number, and use the former packet of described reduction version number that described destination application is reduced to described original version from described renewal version.
Optionally, processor 1001 can also be used for performing following operation:
When using the former packet of described reduction version number that described destination application is reduced to described original version from described renewal version, the version number of the described destination application after described reduction is arranged the version number of described original version.
Optionally, the operation of the former packet of the shielding that processor 1001 performs described reduction version number, can comprise:
Shield the version number of the former packet of described reduction version number.
In the present embodiment, when destination application is updated to renewal version by original version, the former packet of described original version is stored, and the version number of described former packet to be stored is set to the reduction version number higher than the priority of the version number of described renewal version; Shield the former packet of described reduction version number; When receiving for described destination application is reduced to the reduction instruction of described original version from described renewal version, use the former packet of described reduction version number that described destination application is reduced to described original version from described renewal version.Can realize so rapidly updated application program being restored.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random access memory (Random Access Memory is called for short RAM) etc.
Above disclosedly be only present pre-ferred embodiments, certainly can not limit the interest field of the present invention with this, therefore according to the equivalent variations that the claims in the present invention are done, still belong to the scope that the present invention is contained.

Claims (10)

1. an application program method of reducing, is characterized in that, comprising:
When destination application is updated to renewal version by original version, the former packet of described original version is stored, and the version number of described former packet to be stored is set to the reduction version number higher than the priority of the version number of described renewal version;
Shield the former packet of described reduction version number;
When receiving for described destination application is reduced to the reduction instruction of described original version from described renewal version, use the former packet of described reduction version number that described destination application is reduced to described original version from described renewal version.
2. the method for claim 1, is characterized in that, described method also comprises:
After detecting that described destination application exists renewal version, download the more new data packets of described renewal version;
Described in using, more described destination application is updated to renewal version by original version by new data packets, and obtain the former packet of described original version, and add reduction attribute tags at described former packet, described reduction attribute tags represents that described former data are reduced to described destination application when receiving for described destination application is reduced to the reduction instruction of described original version from described renewal version.
3. method as claimed in claim 2, it is characterized in that, described in described use, more described destination application is updated to renewal version by original version by new data packets, and obtains the former packet of described original version, and add reduction attribute tags at described former packet, comprising:
Described in being used by plug-in part technology, more described destination application is updated to renewal version by original version by new data packets, retains the former packet of described original version simultaneously, and adds described reduction attribute tags at described former packet.
4. the method according to any one of claim 1-3, is characterized in that, described method also comprises:
After the former packet of shielding described reduction version number, described destination application icon is arranged and regrets button, described in regret button corresponding with the broadcast interface of the described former packet reducing version number, and described in regret button and be defaulted as closed condition.
5. method as claimed in claim 4, it is characterized in that, described when receiving for described destination application is reduced to the reduction instruction of described original version from described renewal version, use the former packet of described reduction version number that described destination application is reduced to described original version from described renewal version, comprising:
When regretting the open command of button described in the unlatching receiving user's input, read the former packet of described reduction version number by described broadcast interface, and use the former packet of described reduction version number that described destination application is reduced to described original version from described renewal version.
6. method as claimed in claim 5, it is characterized in that, the described former packet being read described reduction version number by described broadcast interface, and use the former packet of described reduction version number that described destination application is reduced to described original version from described renewal version, comprising:
Described reduction version number is read by described broadcast interface, and the current version number of described reduction version number and described destination application is compared, when described reduction version number is number higher than the current version of described destination application, use the former packet of described reduction version number that described destination application is reduced to described original version from described renewal version.
7. the method according to any one of claim 1-3, is characterized in that, described method also comprises:
Arrange in system upgrade module icon and regret option tab, described in regret option tab corresponding with the broadcast interface of the former packet of the conductively-closed of at least one application program, and described in regret option tab and be defaulted as closed condition.
8. method as claimed in claim 7, it is characterized in that, described when receiving for described destination application is reduced to the reduction instruction of described original version from described renewal version, use the former packet of described reduction version number that described destination application is reduced to described original version from described renewal version, comprising:
When regret described in receiving user and passing through option tab input for described destination application is reduced to the reduction instruction of described original version from described renewal version time, read the former packet of described reduction version number by the broadcast interface of the former packet of described reduction version number, and use the former packet of described reduction version number that described destination application is reduced to described original version from described renewal version.
9. the method according to any one of claim 1-4, is characterized in that, described method also comprises:
When using the former packet of described reduction version number that described destination application is reduced to described original version from described renewal version, the version number of the described destination application after described reduction is arranged the version number of described original version.
10. the method according to any one of claim 1-4, is characterized in that, the former packet of described shielding described reduction version number, comprising:
Shield the version number of the former packet of described reduction version number.
CN201510053509.7A 2015-01-30 2015-01-30 Application program restoration method Pending CN104794400A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510053509.7A CN104794400A (en) 2015-01-30 2015-01-30 Application program restoration method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510053509.7A CN104794400A (en) 2015-01-30 2015-01-30 Application program restoration method

Publications (1)

Publication Number Publication Date
CN104794400A true CN104794400A (en) 2015-07-22

Family

ID=53559189

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510053509.7A Pending CN104794400A (en) 2015-01-30 2015-01-30 Application program restoration method

Country Status (1)

Country Link
CN (1) CN104794400A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107479933A (en) * 2017-08-21 2017-12-15 惠州Tcl移动通信有限公司 A kind of application program for mobile terminal upgrade method, storage device and mobile terminal

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020198876A1 (en) * 2001-06-26 2002-12-26 Siemens Medical Solutions Health Services Corporation System supporting use of customizable expressions by applications
CN103631678A (en) * 2013-12-02 2014-03-12 北京奇虎科技有限公司 Backup method, restoring method and device for client software
CN104077135A (en) * 2014-06-27 2014-10-01 珠海市君天电子科技有限公司 Method and device for processing application programs
CN104281504A (en) * 2014-10-30 2015-01-14 广东欧珀移动通信有限公司 MD5-code-based method and system applied to backup and reduction of application program data

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020198876A1 (en) * 2001-06-26 2002-12-26 Siemens Medical Solutions Health Services Corporation System supporting use of customizable expressions by applications
CN103631678A (en) * 2013-12-02 2014-03-12 北京奇虎科技有限公司 Backup method, restoring method and device for client software
CN104077135A (en) * 2014-06-27 2014-10-01 珠海市君天电子科技有限公司 Method and device for processing application programs
CN104281504A (en) * 2014-10-30 2015-01-14 广东欧珀移动通信有限公司 MD5-code-based method and system applied to backup and reduction of application program data

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107479933A (en) * 2017-08-21 2017-12-15 惠州Tcl移动通信有限公司 A kind of application program for mobile terminal upgrade method, storage device and mobile terminal

Similar Documents

Publication Publication Date Title
CN104049968A (en) Metadata-driven version management service in pervasive environment
CN104375849A (en) Core loading method and device
CN110750288A (en) Native engineering configuration method and device, electronic equipment and storage medium
CN103106092A (en) System software updating method and device in terminal appliance
CN111831176B (en) Application program management method and device
CN110968280B (en) Application layout reduction method, device, equipment and storage medium
EP2805233B1 (en) Installation engine and package format for parallelizable, reliable installations
CN105302563A (en) Plug-in method and system for mobile application service
CN104375933A (en) Unit testing method and device
CN103513999A (en) Electronic device and method for updating system firmware
US8769521B2 (en) Calendar aware adaptive patching of a computer program
CN105677180A (en) Application program icon processing method and device
CN109117153B (en) Application processing method, device, terminal and storage medium
KR20170115543A (en) Desktop Sharing Method and Mobile Terminal
CN106775832B (en) Installation method and device for pre-installed application of mobile terminal
CN104461612A (en) Data processing method and device
CN104778058A (en) Application program update method and application program update system
KR20120069400A (en) Application backup method in mobile platform
CN104461590A (en) Information processing method and electronic equipment
CN104794400A (en) Application program restoration method
CN104063306A (en) Automatic login method, device and system in intelligent terminal software testing
CN106843929B (en) Game installation method, installation display processing device and terminal
CN104615465A (en) Terminal
US20130007622A1 (en) Demonstrating a software product
CN109189426A (en) A kind of upgrade method, device, storage medium and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
AD01 Patent right deemed abandoned
AD01 Patent right deemed abandoned

Effective date of abandoning: 20190507