CN103389907A - Personal digital assistant, and program version rollback method and program version rollback device thereof - Google Patents
Personal digital assistant, and program version rollback method and program version rollback device thereof Download PDFInfo
- Publication number
- CN103389907A CN103389907A CN2013103142599A CN201310314259A CN103389907A CN 103389907 A CN103389907 A CN 103389907A CN 2013103142599 A CN2013103142599 A CN 2013103142599A CN 201310314259 A CN201310314259 A CN 201310314259A CN 103389907 A CN103389907 A CN 103389907A
- Authority
- CN
- China
- Prior art keywords
- personal digital
- digital assistant
- aku
- bag
- zip
- 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
Links
Images
Landscapes
- Stored Programmes (AREA)
Abstract
The invention discloses a personal digital assistant, and a program version rollback method and a program version rollback device thereof. The method includes the following steps: in the process of upgrading a personal digital assistant program to a new version, a backup folder is created, and all the files of the personal digital assistant program are copied into the backup folder; when the personal digital assistant program fails to be upgraded, the files in the backup folder are compressed into a compressed package and stored into an upgrade package directory; and the compressed package under the upgrade package directory is installed. Therefore, when the PDA (personal digital assistant) program fails to be upgraded, a user does not need to reinstall the old version, consequently, time is saved, and the experience of the user is improved. In addition, since ZIP package upgrade is adopted, the space can be saved, and the interruption of the download of large data volume as the result of network instability is prevented.
Description
Technical field
The present invention relates to the personal digital assistant technical field, relate in particular to the method and apparatus of a kind of personal digital assistant and program version rollback thereof.
Background technology
At present, the upgrading of personal digital assistant (PDA, Personal Digital Assistant) program utilizes CAB format compression bag (in this article, referred to as the CAB bag) to realize.When needs are upgraded, the PDA program detects on gateway whether have the CAB bag higher than current version before the user inputs username and password register system, if exist, the form that the CAB of highest version is wrapped to flow downloads to the assigned catalogue of depositing AKU, and saves as the file of CAB form.After download was completed, PDA was restarted, and operation PDA ROMPaq, detect under the assigned catalogue of depositing AKU and whether have the CAB bag,, if exist, carries out fitting operation,, if because failed download does not exist, starts the PDA master routine.
After existing PDA program upgrade, if because redaction PDA program de-stabilising effect user normally uses, the user can only be connected to computer with PDA, copies legacy version PDA program and attaches it on PDA, uses very inconvenient.
Summary of the invention
The invention provides the method and apparatus of a kind of personal digital assistant and program version rollback thereof,, to save user time, be user-friendly to.
The method of a kind of personal digital assistant program version rollback, described method comprises:
In the process of redaction, create the backup file folder at described personal digital assistant program upgrade, and described personal digital assistant program All Files is copied to described backup file folder;
When described personal digital assistant program upgrade failure, the compressing file in described backup file folder is become compressed package and is kept under the AKU catalogue;
Described compressed package under described AKU catalogue is installed.
Alternatively, before described personal digital assistant program upgrade, described method also comprises:
The AKU of shutting preservation according to the Discrimination of Types suspension of AKU on the gateway configuration Archive sit is ZIP bag or CAB bag, if described ZIP bag, described ZIP wrapped under the described AKU catalogue that downloads to described personal digital assistant and save as the ZIP form, if described CAB bag, wrap described CAB under the described AKU catalogue that downloads to described personal digital assistant and save as the CAB form.
Alternatively, in the process of redaction, described method also comprises at described personal digital assistant program upgrade:
After ZIP bag or CAB bag under described AKU catalogue is installed, empty described AKU catalogue.
Preferably, described compressed package is the ZIP bag.
The device of a kind of personal digital assistant program version rollback, described device comprises:
Creation module, be used in the process of described personal digital assistant program upgrade to redaction, creates the backup file folder, and described personal digital assistant program All Files is copied to described backup file folder;
Compression module, be used for when described personal digital assistant program upgrade failure, the compressing file in described backup file folder being become compressed package and being kept under the AKU catalogue;
Installation module, be used for installing the described compressed package under described AKU catalogue.
Alternatively, described device also comprises:
Judge module is ZIP bag or CAB bag for the AKU of shutting preservation according to the Discrimination of Types suspension of AKU on the gateway configuration Archive sit;
Download module, be used for when described judge module is judged as YES described ZIP bag, described ZIP wrapped under the described AKU catalogue that downloads to described personal digital assistant and save as the ZIP form, when described judge module is judged as YES described CAB bag, described CAB is wrapped under the described AKU catalogue that downloads to described personal digital assistant and save as the CAB form.
Preferably, described compressed package is the ZIP bag.
A kind of personal digital assistant, described personal digital assistant comprises:
Creation module, be used in the process of described personal digital assistant program upgrade to redaction, creates the backup file folder, and described personal digital assistant program All Files is copied to described backup file folder;
Compression module, be used for when described personal digital assistant program upgrade failure, the compressing file in described backup file folder being become compressed package and being kept under the AKU catalogue;
Installation module, be used for installing the described compressed package under described AKU catalogue.
Alternatively, described personal digital assistant also comprises:
Judge module is ZIP bag or CAB bag for the AKU of shutting preservation according to the Discrimination of Types suspension of AKU on the gateway configuration Archive sit;
Download module, be used for when described judge module is judged as YES described ZIP bag, described ZIP wrapped under the described AKU catalogue that downloads to described personal digital assistant and save as the ZIP form, when described judge module is judged as YES described CAB bag, described CAB is wrapped under the described AKU catalogue that downloads to described personal digital assistant and save as the CAB form.
Preferably, described compressed package is the ZIP bag.
This shows, during the failure of PDA program upgrade, the user need not to reinstall legacy version, thereby has saved the time, has improved user's experience.In addition, adopt the upgrading of ZIP bag, can save space, avoid because data volume is downloaded when the unstable networks and interrupted greatly.
Description of drawings
Fig. 1 is the process flow diagram that PDA of the present invention downloads AKU;
Fig. 2 is the process flow diagram of PDA program upgrade of the present invention;
Fig. 3 is the process flow diagram that PDA of the present invention carries out version rollback;
Fig. 4 is the structured flowchart of the device of a kind of PDA program version provided by the invention rollback.
Embodiment
After the PDA program upgrade, if upgrade unsuccessfully, method provided by the invention can back up legacy version, and it is kept under the AKU catalogue, when PDA is restarted, regards the legacy version under the AKU catalogue as redaction and installs, thereby roll back to legacy version.
Specific embodiments of the present invention is described in detail below in conjunction with accompanying drawing and embodiment.
Please refer to Fig. 1, the process flow diagram for PDA of the present invention downloads AKU can comprise the following steps:
Step 101:PDA receives the username and password of user's input, logs in PDA;
Step 102: detect on gateway whether have AKU,, if do not exist, start the operating system, flow process finishes, and, if there is AKU, enters step 103;
Step 103: by the AKU of preserving on gateway configuration Archive sit judgement gateway be ZIP format compression bag bag (in this article, referred to as the ZIP bag) or the CAB bag, if ZIP bag, the ZIP bag is downloaded in PDA AKU catalogue and saves as the ZIP form, if the CAB bag, download to the CAB bag in PDA AKU catalogue and save as the CAB form;
Due to CAB bag take up room larger, so PDA to download CAB bag time of highest version longer, when unstable networks, the situation of interrupting also easily appears downloading.
Preferably, the present invention adopts the AKU of ZIP bag as the PDA program.Adopt the ZIP bag can save storage space, solve simultaneously the problem of interrupting of downloading.But consider and the compatibility of the current use version of PDA program, can keep simultaneously the function that the CAB bag is upgraded.That is to say, the present invention supports the upgrading of ZIP bag and CAB bag dual mode.When the PDA program need to be upgraded, ZIP bag or CAB bag were kept in gateway.Be the form that flows because PDA downloads AKU,, in order to judge that the AKU on gateway is ZIP bag or CAB bag, need to increase the judgement to the AKU type in the gateway configuration file.For example: the packets of information purse rope in the gateway configuration file shut the AKU version information (for example:<Version〉WC-3.1.1.09</Version) and the AKU filename (for example:<FileName〉updatefiles/FZI60/Patch-WC-3.1.1.09.zip</FileName), wherein the suffix of AKU filename is the AKU type, therefore, judgement AKU type is specially the suffix of judgement AKU filename.
PDA sends PDA program redaction solicited message to gateway, gateway returns to AKU version information on gateway by the gateway configuration Archive sit to PDA, after PDA receives the AKU version information, compare with current AKU version, if the AKU version on gateway is higher than the current version on PDA, PDA obtains the AKU of redaction from gateway, the redaction of preserving on gateway can be ZIP form and/or CAB form.
Step 104: after download was completed, PDA was restarted.
Please refer to Fig. 2, be the process flow diagram of PDA program upgrade of the present invention, can comprise the following steps:
After step 201:PDA is restarted, the operation ROMPaq;
Step 202: whether have ZIP bag or CAB bag under the AKU catalogue of detection PDA,, if exist, enter step 203, if, because failed download does not exist, enter step 206;
Step 203: detect and whether have the backup file folder,, if exist, empty the backup file folder,, if do not exist, create the backup file folder;
Step 204: after determining the existence of backup file folder and not comprising any file, PDA program All Files is copied to the backup file folder;
The backup file folder can comprise the AKU as the last revision of backup file, in step 204, needs to judge whether the backup file folder exists previous backup file,, if exist, deletes all backup files, then carries out this backup.
Step 205: after having copied, the ZIP bag or the CAB that install under the AKU catalogue wrap to carry out version updating;
Step 206: empty the AKU catalogue, and the PDA master routine under starting the operating system.
Reinstall AKU during for fear of PDA startup next time, preferably first empty the AKU catalogue in step 206, and then start the PDA master routine.
PDA of the present invention in the program upgrade process, backed up current version before version updating, thereby provided guarantee for version rollback.In the maintain pages of PDA of the present invention, newly-increased " version rollback " function,, as long as the user enters maintain pages, click " version rollback " and can use upgrading legacy version before.Below the present invention is realized that version rollback is elaborated.
Please refer to Fig. 3, the process flow diagram for PDA of the present invention carries out version rollback can comprise the following steps:
Step 301: when the failure of PDA program upgrade, PDA starts the version rollback function according to user's instruction;
Need to prove, in the present invention, upgrading unsuccessfully specifically refers to the PDA program and has been upgraded to redaction by step shown in Figure 2, but redaction is unstable, causes some functions to use.
Step 302: detect and whether have the backup file folder, if exist, execution step 303,, if do not exist, illustrate the not backup of previous legacy version of current version, the rollback failure, and flow process finishes;
The present invention creates the backup file folder when the PDA program upgrade, therefore, if the PDA program was carried out version rollback in the situation that never carry out upgrading, there do not is the backup file folder, rollback failure this moment, this time rollback of PDA prompting user failure, the user has to continue to use redaction.
Step 303: All Files in the backup file folder is compressed into ZIP wraps and be kept under the AKU catalogue;
Step 304:PDA is restarted, and the operation ROMPaq is installed the ZIP bag of the backup under the AKU catalogue, makes the previous legacy version of program rollback to current version.
In step 304, the process that the ZIP bag of backup is installed is specially step 201 to step 206, what difference was to install this moment is the ZIP bag after the All Files compression in the backup file folder, and step 201 is installed when the PDA program upgrade to step 206, is ZIP bag or CAB bag from gateway downloads.
After the user clicks " version rollback ", PDA has in fact only done the operation of compress backup file, after compressing successfully, PDA is restarted, auto-upgrade program moves automatically, detect whether AKU is arranged, the ZIP that the ZIP bag that at this moment backs up under the AKU catalogue can be taken as upgrading wraps and is installed in PDA, thereby has realized version rollback.
This shows, during the failure of PDA program upgrade, the user only need click " version rollback " just can use legacy version, need not to reinstall, thereby has saved the time, has improved user's experience.In addition, adopt the upgrading of ZIP bag,, because its committed memory space is less, can save space, can also avoid downloading and interrupting when unstable networks.
Please refer to Fig. 4, the structured flowchart for the device of a kind of PDA program version provided by the invention rollback can comprise:
Alternatively, device provided by the invention can also comprise:
Preferably, compressed package is the ZIP bag.
Alternatively, device provided by the invention can also comprise:
Receiver module, be used for receiving the username and password of user's input and logging in PDA;
Detection module,, for detection of whether there being AKU on gateway,, if do not exist, start the operating system, and, if there is AKU, by judge module 404 and download module 405, continues to carry out subsequent operation;
Start module, be used for restarting PDA and moving ROMPaq;
Whether detection module also exists ZIP bag or CAB bag under the AKU catalogue for detection of PDA,, if exist, by detection module, continues to detect whether have the backup file folder,, if exist, empties the backup file folder, if do not exist, by creation module 401 executable operations;
Replication module, after being used for determining the existence of backup file folder and not comprising any file, copy to the backup file folder with PDA program All Files;
Start module also for after the bag of the ZIP under the AKU catalogue is installed or CAB bag, empty the AKU catalogue, and the PDA master routine under starting the operating system;
, when the failure of PDA program upgrade, when the user needs the rollback of PDA program version, start module and also be used for starting the version rollback function according to user's instruction;
Detection module also is used for detecting and whether having the backup file folder after starting the version rollback function,, if exist, by compression module 402 and installation module 403, continues executable operations.
In addition, the present invention also provides a kind of personal digital assistant, comprises device and the module thereof of foregoing PDA program version rollback, does not repeat them here.
This shows, during the failure of PDA program upgrade, the user only need click " version rollback " just can use legacy version, need not to reinstall, thereby has saved the time, has improved user's experience.In addition, while adopting the ZIP bag as AKU, can save space, avoid because data volume is downloaded when the unstable networks and interrupted greatly.
Above-described embodiment only, for explanation the present invention, does not limit the invention.Those skilled in the art in the situation that do not break away from principle of the present invention, can make a variety of changes and/or be out of shape, and all equivalent technical solutions also should belong to category of the present invention.
Claims (10)
1. the method for personal digital assistant program version rollback, is characterized in that, described method comprises:
In the process of redaction, create the backup file folder at described personal digital assistant program upgrade, and described personal digital assistant program All Files is copied to described backup file folder;
When described personal digital assistant program upgrade failure, the compressing file in described backup file folder is become compressed package and is kept under the AKU catalogue;
Described compressed package under described AKU catalogue is installed.
2. method according to claim 1, is characterized in that, before described personal digital assistant program upgrade, described method also comprises:
The AKU of shutting preservation according to the Discrimination of Types suspension of AKU on the gateway configuration Archive sit is ZIP bag or CAB bag, if described ZIP bag, described ZIP wrapped under the described AKU catalogue that downloads to described personal digital assistant and save as the ZIP form, if described CAB bag, wrap described CAB under the described AKU catalogue that downloads to described personal digital assistant and save as the CAB form.
3. method according to claim 2, is characterized in that, in the process of redaction, described method also comprises at described personal digital assistant program upgrade:
After ZIP bag or CAB bag under described AKU catalogue is installed, empty described AKU catalogue.
4. method according to claim 1 and 2, is characterized in that, described compressed package is the ZIP bag.
5. the device of personal digital assistant program version rollback, is characterized in that, described device comprises:
Creation module, be used in the process of described personal digital assistant program upgrade to redaction, creates the backup file folder, and described personal digital assistant program All Files is copied to described backup file folder;
Compression module, be used for when described personal digital assistant program upgrade failure, the compressing file in described backup file folder being become compressed package and being kept under the AKU catalogue;
Installation module, be used for installing the described compressed package under described AKU catalogue.
6. device according to claim 5, is characterized in that, described device also comprises:
Judge module is ZIP bag or CAB bag for the AKU of shutting preservation according to the Discrimination of Types suspension of AKU on the gateway configuration Archive sit;
Download module, be used for when described judge module is judged as YES described ZIP bag, described ZIP wrapped under the described AKU catalogue that downloads to described personal digital assistant and save as the ZIP form, when described judge module is judged as YES described CAB bag, described CAB is wrapped under the described AKU catalogue that downloads to described personal digital assistant and save as the CAB form.
7. according to claim 5 or 6 described devices, is characterized in that, described compressed package is the ZIP bag.
8. a personal digital assistant, is characterized in that, described personal digital assistant comprises:
Creation module, be used in the process of described personal digital assistant program upgrade to redaction, creates the backup file folder, and described personal digital assistant program All Files is copied to described backup file folder;
Compression module, be used for when described personal digital assistant program upgrade failure, the compressing file in described backup file folder being become compressed package and being kept under the AKU catalogue;
Installation module, be used for installing the described compressed package under described AKU catalogue.
9. personal digital assistant according to claim 8, is characterized in that, described personal digital assistant also comprises:
Judge module is ZIP bag or CAB bag for the AKU of shutting preservation according to the Discrimination of Types suspension of AKU on the gateway configuration Archive sit;
Download module, be used for when described judge module is judged as YES described ZIP bag, described ZIP wrapped under the described AKU catalogue that downloads to described personal digital assistant and save as the ZIP form, when described judge module is judged as YES described CAB bag, described CAB is wrapped under the described AKU catalogue that downloads to described personal digital assistant and save as the CAB form.
10. personal digital assistant according to claim 8, is characterized in that, described compressed package is the ZIP bag.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2013103142599A CN103389907A (en) | 2013-07-24 | 2013-07-24 | Personal digital assistant, and program version rollback method and program version rollback device thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2013103142599A CN103389907A (en) | 2013-07-24 | 2013-07-24 | Personal digital assistant, and program version rollback method and program version rollback device thereof |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103389907A true CN103389907A (en) | 2013-11-13 |
Family
ID=49534187
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2013103142599A Pending CN103389907A (en) | 2013-07-24 | 2013-07-24 | Personal digital assistant, and program version rollback method and program version rollback device thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103389907A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104679534A (en) * | 2013-11-28 | 2015-06-03 | 中兴通讯股份有限公司 | System application installation package loading processing method, device and terminal |
CN112231149A (en) * | 2020-10-23 | 2021-01-15 | 维沃移动通信有限公司 | Upgrading failure processing method and device and electronic equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1694070A (en) * | 2005-06-29 | 2005-11-09 | 肖珂 | Staging method of POS terminal equipment |
CN101931944A (en) * | 2010-07-23 | 2010-12-29 | 华为终端有限公司 | Method, device and system for updating terminal patches on line |
CN102117234A (en) * | 2011-03-23 | 2011-07-06 | 惠州Tcl移动通信有限公司 | Method for recovering original software by mobile terminal in software upgrading failure |
-
2013
- 2013-07-24 CN CN2013103142599A patent/CN103389907A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1694070A (en) * | 2005-06-29 | 2005-11-09 | 肖珂 | Staging method of POS terminal equipment |
CN101931944A (en) * | 2010-07-23 | 2010-12-29 | 华为终端有限公司 | Method, device and system for updating terminal patches on line |
CN102117234A (en) * | 2011-03-23 | 2011-07-06 | 惠州Tcl移动通信有限公司 | Method for recovering original software by mobile terminal in software upgrading failure |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104679534A (en) * | 2013-11-28 | 2015-06-03 | 中兴通讯股份有限公司 | System application installation package loading processing method, device and terminal |
WO2015078166A1 (en) * | 2013-11-28 | 2015-06-04 | 中兴通讯股份有限公司 | Load processing method and device for system application installation package, and terminal |
CN104679534B (en) * | 2013-11-28 | 2019-11-19 | 南京中兴软件有限责任公司 | System application installation package loading processing method, apparatus and terminal |
CN112231149A (en) * | 2020-10-23 | 2021-01-15 | 维沃移动通信有限公司 | Upgrading failure processing method and device and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101719073B (en) | Intelligent client-based on-demand downloading realization method | |
CN101110788B (en) | Method and system for updating client software | |
WO2017067448A1 (en) | Firmware-over-the-air upgrade method, system and computer storage medium | |
CN103176864B (en) | A kind of backup method based on Android system, device and mobile terminal | |
WO2013078951A1 (en) | Method and system for upgrading software | |
CN107995284B (en) | OTA (over the air) upgrading method suitable for POS (point of sale) machine | |
CN101425018A (en) | Embedded firmware upgrading method and device based on sectional form | |
TWI533216B (en) | Operating system updating method | |
CN113032032B (en) | System management method and device, computing equipment and readable storage medium | |
CN107256161B (en) | Client upgrading method based on electron technology | |
WO2013037235A1 (en) | Method, system, device and storage medium for achieving user system restoration | |
US10509646B2 (en) | Software update rollbacks using file system volume snapshots | |
CN103034560B (en) | A kind of method, Apparatus and system repairing application software | |
CN109992450A (en) | System upgrade backing method, terminal, server and storage medium | |
CN102609304A (en) | Management method for internal third-party applications of Android mobile phone | |
CN102521289A (en) | File synchronization method, device and system | |
WO2013040906A1 (en) | Method and system for managing software version of base station | |
WO2014134989A2 (en) | Android terminal and upgrade method therefor | |
WO2016082450A1 (en) | Method for upgrading user terminal, and user terminal | |
CN104461648A (en) | OTA upgrade backing-up method and system for intelligent terminals | |
CN105094919A (en) | Application program starting method | |
CN103389907A (en) | Personal digital assistant, and program version rollback method and program version rollback device thereof | |
WO2023198056A1 (en) | Firmware update method for embedded device, and embedded device | |
WO2009079866A1 (en) | Firmware upgrading process method and system of mobile terminal | |
CN106933604B (en) | System upgrading method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20131113 |