[go: up one dir, main page]

CN104484241B - The method and device that a kind of pair of terminal system file is backed up and restored - Google Patents

The method and device that a kind of pair of terminal system file is backed up and restored Download PDF

Info

Publication number
CN104484241B
CN104484241B CN201410747211.1A CN201410747211A CN104484241B CN 104484241 B CN104484241 B CN 104484241B CN 201410747211 A CN201410747211 A CN 201410747211A CN 104484241 B CN104484241 B CN 104484241B
Authority
CN
China
Prior art keywords
file
backed
backup
recovery operation
script
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.)
Expired - Fee Related
Application number
CN201410747211.1A
Other languages
Chinese (zh)
Other versions
CN104484241A (en
Inventor
田小华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201410747211.1A priority Critical patent/CN104484241B/en
Publication of CN104484241A publication Critical patent/CN104484241A/en
Application granted granted Critical
Publication of CN104484241B publication Critical patent/CN104484241B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The method and device that a kind of pair of terminal system file is backed up and restored, the step of the method includes: to create a catalogue under subregion wait format, a script file, the system property file that the script file defines backup and recovery operation and is backed up are established under the catalogue;After system receives formatting partitioning instruction, judge whether to execute backup and recovery operation according to script file, if so, then backing up the system property file being backed up;After the completion of formatting subregion, recovery operation is executed to the system property file backed up.The present invention defines backup and recovery operation by script file to retain built-in file, especially system property file;Only need the concrete operations of the backup and recovery in modification script file, so that it may which realization is backed up different files and restored before formatting subregion, convenient for the user to operate, more convenient time saving;File caused by losing in system version handoff procedure because of system property file is effectively avoided to read failure.

Description

一种对终端系统文件进行备份与恢复的方法及装置A method and device for backing up and restoring terminal system files

技术领域technical field

本发明涉及移动终端技术领域,尤其涉及一种对终端系统文件进行备份与恢复的方法及装置。The invention relates to the technical field of mobile terminals, in particular to a method and device for backing up and restoring terminal system files.

背景技术Background technique

目前,随着全球化商贸和跨国贸易的迅速发展,商品在不同国家区域之间的流动范围越来越广,以移动终端为例,某一跨国厂商生产的同一型号的手机可能销售至上百个国家地区中。为了适应这一发展趋势,生产商在软件系统设置时,往往兼容多个系统版本以适应不同国家地区的语言及操作习惯,用户可以根据实际需要在不同版本系统之间进行灵活切换。At present, with the rapid development of global commerce and cross-border trade, the flow of goods between different countries and regions is becoming wider and wider. Taking mobile terminals as an example, a mobile phone of the same model produced by a multinational manufacturer may sell to hundreds of units. in the country area. In order to adapt to this development trend, manufacturers are often compatible with multiple system versions when setting up software systems to adapt to the language and operating habits of different countries and regions. Users can flexibly switch between different version systems according to actual needs.

对于共有多个系统版本的情况,在系统切换过程中,需要进行格式化分区操作。现有格式化分区时是采用格式化整个分区的方式,这样就得不到需要保留的文件;如要保留某个目录或者文件则采用递归删除文件的方式,但是采用这种方式删除文件时耗费的时间较长。移动终端在格式化操作完成后,需要读取格式化所在分区的某个系统属性文件(如nv参数),若采用格式化整个分区的方式,此时会出现读取文件失效的情况,这样会导致切换版本失败,需要在此之后重新创建该文件,重新启动移动终端才能成功切换。For the case where there are multiple system versions, it is necessary to format the partition during the system switching process. When the existing partition is formatted, the entire partition is formatted, so that the files that need to be kept cannot be obtained; if a certain directory or file is to be kept, the file is deleted recursively, but it takes a lot of time to delete the file in this way longer time. After the formatting operation is completed, the mobile terminal needs to read a certain system attribute file (such as the nv parameter) of the partition where it is formatted. As a result, the switching version fails, and the file needs to be recreated after that, and the mobile terminal can be switched successfully after restarting.

为了达到在系统切换过程中的更佳的用户体验,有必要开发一种更便于用户操作、更便捷省时的系统文件备份与恢复机制。In order to achieve a better user experience during the system switching process, it is necessary to develop a more user-friendly, more convenient and time-saving system file backup and recovery mechanism.

发明内容Contents of the invention

为了克服上述所指的现有技术中的不足之处,本发明提供一种便于用户操作、更便捷省时的对终端系统文件进行备份与恢复的方法及装置。In order to overcome the deficiencies in the prior art referred to above, the present invention provides a method and device for backing up and restoring terminal system files, which is convenient for user operation, more convenient and time-saving.

本发明是通过以下技术方案实现的:一种对终端系统文件进行备份与恢复的方法,所述方法的步骤包括:The present invention is achieved through the following technical solutions: a method for backing up and restoring terminal system files, the steps of the method comprising:

S1、在待格式化分区下创建一目录,在该目录下建立一脚本文件,所述脚本文件定义备份与恢复操作及需备份的系统属性文件;S1. Create a directory under the partition to be formatted, and set up a script file under the directory, and the script file defines backup and recovery operations and system attribute files to be backed up;

S2、系统接收到格式化分区指令后,依据脚本文件判断是否执行备份与恢复操作,如是,则对需备份的系统属性文件进行备份;S2. After the system receives the formatting partition instruction, it judges whether to perform backup and recovery operations according to the script file, and if so, backs up the system attribute files to be backed up;

S3、格式化分区完成后,对已备份的系统属性文件执行恢复操作。S3. After the formatted partition is completed, restore the backed up system attribute file.

在步骤S2中,若判断结果为否,则直接执行格式化分区。In step S2, if the judgment result is no, format the partition directly.

在步骤S2中,系统所接收到的格式化分区指令是基于系统切换操作,包括:In step S2, the formatting partition instruction received by the system is based on the system switching operation, including:

S21、系统检测到系统切换操作,传递格式化分区指令;S21. The system detects a system switching operation, and transmits a formatting partition instruction;

S22、依据脚本文件判断是否执行备份与恢复操作,如是,则对需备份的系统属性文件进行备份。S22. Determine whether to perform the backup and recovery operation according to the script file, and if so, back up the system attribute file to be backed up.

所述对终端系统文件进行备份与恢复的方法还包括:S4、读取被恢复的系统属性文件,完成系统切换。The method for backing up and restoring terminal system files further includes: S4. Reading the restored system attribute file to complete system switching.

进一步地,所述系统属性文件包括nv参数文件。Further, the system property file includes an nv parameter file.

本发明还公开了一种对终端系统文件进行备份与恢复的装置,包括:The invention also discloses a device for backing up and restoring terminal system files, including:

脚本创建模块,用于在待格式化分区下创建一目录,在该目录下建立一脚本文件,所述脚本文件定义备份与恢复操作及需备份的系统属性文件;The script creation module is used to create a directory under the partition to be formatted, and set up a script file under the directory, and the script file defines backup and recovery operations and system attribute files to be backed up;

判断模块,用于系统接收到格式化分区指令后,依据脚本文件判断是否执行备份与恢复操作;The judging module is used for judging whether to perform backup and recovery operations according to the script file after the system receives the format partition instruction;

备份模块,用于当判断执行备份与恢复操作时,对需备份的系统属性文件进行备份;The backup module is used for backing up the system attribute files to be backed up when judging to perform backup and recovery operations;

恢复模块,用于格式化分区完成后,对已备份的系统属性文件执行恢复操作。The recovery module is used to restore the backed-up system property files after the partition is formatted.

所述判断模块用于当判断结果为否时,直接执行格式化分区。The judging module is used for directly executing partition formatting when the judging result is negative.

所述对终端系统文件进行备份与恢复的装置还包括:指令传递模块,用于系统检测到系统切换操作,传递格式化分区指令。The device for backing up and restoring terminal system files further includes: an instruction transmission module, used for transmitting the format partition instruction when the system detects a system switching operation.

所述对终端系统文件进行备份与恢复的装置还包括:读数模块,用于读取被恢复的系统属性文件,完成系统切换。The device for backing up and restoring terminal system files further includes: a reading module, which is used to read the restored system attribute files to complete system switching.

进一步地,所述系统属性文件包括nv参数文件。Further, the system property file includes an nv parameter file.

与现有技术相比,本发明提供了一种备份与恢复机制,通过脚本文件定义备份与恢复操作以保留内置文件,尤其是系统属性文件;仅需修改脚本文件中的备份与恢复的具体操作,就可实现在格式化分区之前备份不同文件并恢复,便于用户操作、更便捷省时;有效避免系统版本切换过程中因系统属性文件丢失导致的文件读取失败。Compared with the prior art, the present invention provides a backup and recovery mechanism, which defines backup and recovery operations through script files to retain built-in files, especially system attribute files; only the specific operations of backup and recovery in the script files need to be modified , you can back up and restore different files before formatting the partition, which is convenient for users to operate, more convenient and time-saving; effectively avoid file reading failures caused by loss of system attribute files during system version switching.

附图说明Description of drawings

附图1为本发明实施例一的对终端系统文件进行备份与恢复的方法的实现流程示意图;Accompanying drawing 1 is the realization flowchart of the method for backing up and recovering terminal system files according to Embodiment 1 of the present invention;

附图2为本发明实施例二的对终端系统文件进行备份与恢复的装置的框架示意图。Accompanying drawing 2 is the frame diagram of the device for backing up and restoring terminal system files according to the second embodiment of the present invention.

具体实施方式Detailed ways

为了便于本领域技术人员的理解,下面结合附图和实施例对本发明作进一步的描述。In order to facilitate the understanding of those skilled in the art, the present invention will be further described below in conjunction with the accompanying drawings and embodiments.

实施例一Embodiment one

一种对终端系统文件进行备份与恢复的方法,所述方法的步骤包括:A method for backing up and restoring terminal system files, the steps of the method comprising:

S1、在待格式化分区下创建一目录,在该目录下建立一脚本文件,所述脚本文件定义备份与恢复操作及需备份的系统属性文件;S1. Create a directory under the partition to be formatted, and set up a script file under the directory, and the script file defines backup and recovery operations and system attribute files to be backed up;

S2、系统接收到格式化分区指令后,依据脚本文件判断是否执行备份与恢复操作,如是,则对需备份的系统属性文件进行备份;S2. After the system receives the formatting partition instruction, it judges whether to perform backup and recovery operations according to the script file, and if so, backs up the system attribute files to be backed up;

S3、格式化分区完成后,对已备份的系统属性文件执行恢复操作。S3. After the formatted partition is completed, restore the backed up system attribute file.

在步骤S1中,在待格式化分区下创建一个目录reserve, 在此目录下放入脚本文件,并在在脚本文件中定义需要备份的文件以及相关操作。本发明中的备份文件并非apk等普通文件,而是包括NV参数文件等系统属性文件。这些文件在一般情况下是不可见的,因此不能手动选择备份。本发明的备份与恢复方法应用于不同版本系统的切换时,可在格式化操作之前对系统属性文件进行有针对性有选择性的备份,并在格式化完成后立即对已备份的系统属性文件进行恢复,使切换系统时调用系统属性文件的动作有效。In step S1, a directory reserve is created under the partition to be formatted, a script file is placed in this directory, and files to be backed up and related operations are defined in the script file. The backup files in the present invention are not ordinary files such as apk, but include system attribute files such as NV parameter files. These files are normally invisible and cannot be manually selected for backup. When the backup and recovery method of the present invention is applied to the switching of different version systems, targeted and selective backup can be performed on the system attribute files before the formatting operation, and the backed up system attribute files can be backed up immediately after the formatting is completed. Perform recovery to enable the action of calling the system property file when switching systems.

在步骤S2中,系统所接收到的格式化分区指令可基于系统切换操作,包括:In step S2, the formatting partition instruction received by the system may be based on a system switching operation, including:

S21、系统检测到系统切换操作,传递格式化分区指令;S21. The system detects a system switching operation, and transmits a formatting partition instruction;

S22、依据脚本文件判断是否执行备份与恢复操作,如是,则对需备份的系统属性文件进行备份。S22. Determine whether to perform the backup and recovery operation according to the script file, and if so, back up the system attribute file to be backed up.

在步骤S2中,若判断结果为否,即依据脚本文件判断不执行备份与恢复操作时,则直接执行格式化分区。In step S2, if the judgment result is negative, that is, if it is judged according to the script file that the backup and recovery operations are not to be performed, the partition is formatted directly.

所述对终端系统文件进行备份与恢复的方法在系统切换的应用中,在步骤S3之后还可包括:S4、读取被恢复的系统属性文件,完成系统切换。In the application of system switching, the method for backing up and restoring terminal system files may further include: S4, reading the restored system attribute file to complete system switching after step S3.

如附图1所示,提供了本实施例的对终端系统文件进行备份与恢复的方法的具体实现流程示意图,其步骤包括:As shown in accompanying drawing 1, provide the specific implementation flow diagram of the method for backing up and recovering terminal system files of this embodiment, its steps include:

S101、在待格式化分区下创建一目录,此目录下放入脚本文件;S101, create a directory under the partition to be formatted, and put the script file in this directory;

S102、在脚本文件定义备份与恢复操作及需备份的系统属性文件;S102. Define backup and recovery operations and system attribute files to be backed up in the script file;

S103、系统接收到格式化分区指令;S103, the system receives a format partition instruction;

S104、系统依据脚本文件传递命令;S104, the system transmits the command according to the script file;

S105、判断是否执行备份与恢复操作,如是,执行步骤S106,否则执行步骤S109;S105, determine whether to perform backup and recovery operations, if so, perform step S106, otherwise perform step S109;

S106、对需备份的系统属性文件进行备份;S106. Back up the system attribute files to be backed up;

S107、执行格式化分区操作;S107, perform a format partition operation;

S108、对已备份的系统属性文件执行恢复操作;S108. Perform a recovery operation on the backed up system attribute file;

S109、直接格式化分区操作。S109, directly formatting the partition operation.

实施例二Embodiment two

如附图2所示,本发明还提供了一种对终端系统文件进行备份与恢复的装置,包括:As shown in Figure 2, the present invention also provides a device for backing up and restoring terminal system files, including:

脚本创建模块21,用于在待格式化分区下创建一目录,在该目录下建立一脚本文件,所述脚本文件定义备份与恢复操作及需备份的系统属性文件;Script creation module 21 is used to create a directory under the partition to be formatted, and set up a script file under the directory, and the script file defines backup and recovery operations and system attribute files to be backed up;

判断模块22,用于系统接收到格式化分区指令后,依据脚本文件判断是否执行备份与恢复操作;The judging module 22 is used for judging whether to perform backup and recovery operations according to the script file after the system receives the formatting partition instruction;

备份模块23,用于当判断执行备份与恢复操作时,对需备份的系统属性文件进行备份;The backup module 23 is used for backing up the system attribute files to be backed up when judging to perform backup and recovery operations;

恢复模块24,用于格式化分区完成后,对已备份的系统属性文件执行恢复操作。The recovery module 24 is configured to perform a recovery operation on the backed up system attribute file after the partition is formatted.

所述判断模块22用于当判断结果为否时,直接执行格式化分区。The judging module 22 is configured to directly execute partition formatting when the judging result is no.

所述对终端系统文件进行备份与恢复的装置还包括:指令传递模块25,用于系统检测到系统切换操作,传递格式化分区指令。The device for backing up and restoring terminal system files further includes: an instruction transmission module 25, configured to transmit a formatting partition instruction when the system detects a system switching operation.

所述对终端系统文件进行备份与恢复的装置还包括:读数模块26,用于读取被恢复的系统属性文件,完成系统切换。The device for backing up and restoring terminal system files further includes: a reading module 26, which is used to read the restored system attribute files to complete system switching.

进一步地,所述系统属性文件包括nv参数文件。Further, the system property file includes an nv parameter file.

以上内容是结合具体的优选方式对本发明所作的进一步详细说明,不应认定本发明的具体实施只局限于以上说明。对于本技术领域的技术人员而言,在不脱离本发明构思的前提下,还可以作出若干简单推演或替换,均应视为由本发明所提交的权利要求确定的保护范围之内。The above content is a further detailed description of the present invention in combination with specific preferred modes, and it should not be deemed that the specific implementation of the present invention is limited to the above description. For those skilled in the art, without departing from the concept of the present invention, some simple deductions or substitutions can be made, which should be considered within the protection scope determined by the claims submitted in the present invention.

Claims (4)

1. the step of method that a kind of pair of terminal system file is backed up and restored, the method, includes:
S1, a catalogue is being created under subregion wait format, a script file is established under the catalogue, the script file defines standby Part and recovery operation and the system property file being backed up, wherein the system property file includes nv Parameter File;
S21, when detecting the handover operation of different editions system, formatting partitioning instruction is received;
S22, judge whether to execute backup and recovery operation according to the script file, if so, to the system category being backed up Property file is backed up;
S3, after the completion of formatting subregion, recovery operation is executed to the system property file backed up;
The system property file that S4, reading are resumed completes system switching.
2. the method according to claim 1 for being backed up and being restored to terminal system file, it is characterised in that: in step In S22, if judging result be it is no, directly execute format subregion.
3. the device that a kind of pair of terminal system file is backed up and restored characterized by comprising
Script creation module establishes a script file for creating a catalogue under subregion wait format under the catalogue, described The system property file that script file defines backup and recovery operation and is backed up, wherein the system property file includes nv Parameter File;
Judgment module when for detecting the handover operation of different editions system, receives formatting partitioning instruction, according to described in Script file judges whether to execute backup and recovery operation, if so, backing up to the system property file being backed up;
Backup module, for being backed up to the system property file being backed up when judgement executes backup with recovery operation;
Recovery module executes recovery operation to the system property file backed up after the completion of formatting subregion;
Module is read, for reading the system property file being resumed, completes system switching.
4. the device according to claim 3 for being backed up and being restored to terminal system file, it is characterised in that: described to sentence Disconnected module is for when the judgment result is no, directly executing and formatting subregion.
CN201410747211.1A 2014-12-10 2014-12-10 The method and device that a kind of pair of terminal system file is backed up and restored Expired - Fee Related CN104484241B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410747211.1A CN104484241B (en) 2014-12-10 2014-12-10 The method and device that a kind of pair of terminal system file is backed up and restored

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410747211.1A CN104484241B (en) 2014-12-10 2014-12-10 The method and device that a kind of pair of terminal system file is backed up and restored

Publications (2)

Publication Number Publication Date
CN104484241A CN104484241A (en) 2015-04-01
CN104484241B true CN104484241B (en) 2018-12-11

Family

ID=52758785

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410747211.1A Expired - Fee Related CN104484241B (en) 2014-12-10 2014-12-10 The method and device that a kind of pair of terminal system file is backed up and restored

Country Status (1)

Country Link
CN (1) CN104484241B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105868047A (en) * 2015-11-13 2016-08-17 乐视移动智能信息技术(北京)有限公司 Repairing method and device of data partition, and terminal
CN105740102A (en) * 2016-02-02 2016-07-06 北京京东尚科信息技术有限公司 Data backup equipment and method therein
CN109101279B (en) * 2018-06-26 2021-08-24 珠海全志科技股份有限公司 Compatibility starting method of multi-version system
CN115964204A (en) * 2021-10-11 2023-04-14 中兴通讯股份有限公司 File reading and writing method of embedded file system, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101111029A (en) * 2007-07-20 2008-01-23 华为技术有限公司 Method and device for obtaining operating data
CN102419732A (en) * 2011-12-27 2012-04-18 Tcl集团股份有限公司 Android platform-based automatic test method and test tool
CN103761170A (en) * 2014-01-27 2014-04-30 北京奇虎科技有限公司 System file recovery method, device and system
CN104123208A (en) * 2014-07-30 2014-10-29 深圳市中兴移动通信有限公司 System abnormality repairing method and device and mobile terminal

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6993642B2 (en) * 2001-07-24 2006-01-31 Microsoft Corporation Method and system for creating and employing an operating system having selected functionality
GB0330179D0 (en) * 2003-12-30 2004-02-04 Ecebs Ltd Improved smartcard system
CN104156273A (en) * 2014-07-30 2014-11-19 深圳市中兴移动通信有限公司 System exception repair method, system exception repair device and mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101111029A (en) * 2007-07-20 2008-01-23 华为技术有限公司 Method and device for obtaining operating data
CN102419732A (en) * 2011-12-27 2012-04-18 Tcl集团股份有限公司 Android platform-based automatic test method and test tool
CN103761170A (en) * 2014-01-27 2014-04-30 北京奇虎科技有限公司 System file recovery method, device and system
CN104123208A (en) * 2014-07-30 2014-10-29 深圳市中兴移动通信有限公司 System abnormality repairing method and device and mobile terminal

Also Published As

Publication number Publication date
CN104484241A (en) 2015-04-01

Similar Documents

Publication Publication Date Title
WO2017067448A1 (en) Firmware-over-the-air upgrade method, system and computer storage medium
CN104794014B (en) System operation method and intelligent terminal
CN104484241B (en) The method and device that a kind of pair of terminal system file is backed up and restored
CN102609328A (en) System difference upgrade method and device and mobile terminal
CN107995284B (en) OTA (over the air) upgrading method suitable for POS (point of sale) machine
CN102163167A (en) Method and device for rescuing system
WO2016184058A1 (en) Terminal exception recovery method and terminal
CN102346673A (en) Method and device for upgrading mobile phone system
CN104503790B (en) The management method and system of a kind of application version, intelligent terminal
CN104657161A (en) Method and device for updating firmware of mobile terminal
CN104951348B (en) A kind of interruptable recovery upgrade method and device
CN103049343B (en) Operating system blue screen restoration methods and device
US20170068585A1 (en) Method and Apparatus for Recovering System Software of Intelligent Terminal
CN103235703B (en) Preset resource storage method and apparatus
WO2018049798A1 (en) Method and apparatus for reconstructing cache partition
CN103338306B (en) A kind of backup and restoring user data method and device
CN111698558A (en) Television software upgrading method, television terminal and computer readable storage medium
CN103902336A (en) Method and device for controlling starting of operating system
JP2009271737A (en) Information processor
CN104346239B (en) The abnormal restoring method and device of application program in embedded system
CN105517030A (en) Method for processing abnormality of network communication function, modem and mobile terminal
CN102256275A (en) Method and mobile communication terminal for power failure protection in factory resetting process
CN106648777A (en) A software upgrade method and device
CN115185741A (en) Data recovery method, device, electronic device and storage medium
CN102520934B (en) A kind of method of preview data and relevant apparatus

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: Changan town in Guangdong province Dongguan 523000 usha Beach Road No. 18

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523000 usha Beach Road No. 18

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CP01 Change in the name or title of a patent holder
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20181211

CF01 Termination of patent right due to non-payment of annual fee