WO2016062080A1 - Profile protecting method and device, and storage medium - Google Patents

Profile protecting method and device, and storage medium Download PDF

Info

Publication number
WO2016062080A1
WO2016062080A1 PCT/CN2015/079224 CN2015079224W WO2016062080A1 WO 2016062080 A1 WO2016062080 A1 WO 2016062080A1 CN 2015079224 W CN2015079224 W CN 2015079224W WO 2016062080 A1 WO2016062080 A1 WO 2016062080A1
Authority
WO
WIPO (PCT)
Prior art keywords
file
terminal
preset
signature
signature file
Prior art date
Application number
PCT/CN2015/079224
Other languages
French (fr)
Chinese (zh)
Inventor
王兵
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016062080A1 publication Critical patent/WO2016062080A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation

Definitions

  • the present invention relates to the field of mobile communications, and in particular, to a method and apparatus for protecting a preset file, and a storage medium.
  • the current solution is to try to prevent the user ROOT system. Without ROOT permission, the user can't delete the preset file, but it is very difficult to prevent the user from ROOT. After a period of time, the user can always find a way and software to go to the ROOT system, and then delete the system preset file. Therefore, there is an urgent need for a method of protecting a preset file in a terminal.
  • the present invention has been proposed to provide a method and apparatus for protecting a preset file, and a storage medium.
  • an embodiment of the present invention provides a method for protecting a preset file, including:
  • the fixed features of the current preset files in the terminal are
  • the line connection generates a current signature file, and reads the pre-stored signature file from the predetermined storage space, determines whether the current signature file is consistent with the previously stored signature file, and restores the preset file in the pre-factory terminal in case of inconsistency.
  • the method further includes:
  • the feature portion includes: an authorization specification for the profile, a specific property of the profile, and/or the profile itself.
  • connecting the fixed feature parts in each preset file in the terminal to generate the signature file specifically includes:
  • the TAR tool of the LINUX operating system is used to connect the fixed feature parts of the preset files in the terminal, and the message digest algorithm 5 is used to generate the signature file.
  • the predetermined storage space comprises: a read only memory ROM, or other disposable memory.
  • the present invention also provides an apparatus for protecting a preset file, including:
  • the signature module is configured to connect the fixed feature parts of each preset file in the terminal to generate a signature file, and write the signature file into a predetermined storage space of the terminal before the terminal leaves the factory;
  • the recovery module is configured to connect the fixed feature parts in the current preset files in the terminal to generate a current signature file each time the system is powered on, and read the pre-stored signature file from the predetermined storage space to determine the current signature file. Whether it is consistent with the signature file stored first, and if the inconsistency is determined, the preset file in the factory terminal is restored.
  • the signature module is further configured to:
  • the feature portion includes: an authorization specification for the profile, a specific property of the profile, and/or the profile itself.
  • the signature module is specifically configured to:
  • the TAR tool of the LINUX operating system is used to connect the fixed feature parts of the preset files in the terminal, and the message digest algorithm 5 is used to generate the signature file.
  • the predetermined storage space comprises: a read only memory ROM, or other disposable memory.
  • an embodiment of the present invention provides a computer storage medium, where the computer storage medium stores computer executable instructions, where the computer executable instructions are used to execute the protection preset file provided by the embodiment of the first aspect of the present invention. method.
  • the signature files are generated, and the signature files are written to the predetermined storage space when the terminal is shipped from the factory, and the signatures are detected to be consistent with the preset files when the device is turned on, and if these are inconsistent, the signature files are restored.
  • the problem that the terminal preset file is deleted by the user ROOT system in the prior art is solved, and the preset file can be automatically restored when the preset file is deleted by the user, thereby avoiding the user after the ROOT.
  • the system can't start normally, need to get the repair point to repair, and protect the interests of mobile phone manufacturers and operators.
  • FIG. 1 is a flowchart of a method for protecting a preset file according to an embodiment of the present invention
  • FIG. 2 is a flow chart of a factory write signature of an example of the present invention
  • FIG. 3 is a flow chart of a boot verification signature according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of an apparatus for protecting a preset file according to an embodiment of the present invention.
  • the present invention provides a method and a device for protecting a preset file, connecting the feature parts of all the preset files to generate a signature file, When the terminal leaves the factory, these signature files are written into the ROM, and when the power is turned on, it is detected whether the signatures are consistent with the preset files, and if they are inconsistent, the files are restored and then used by the user.
  • the invention will be further described in detail below with reference to the drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
  • FIG. 1 is a flowchart of a method for protecting a preset file according to an embodiment of the present invention. As shown in FIG. 1, a method for protecting a preset file according to an embodiment of the present invention includes the following processing:
  • Step 101 Connect a fixed feature part in each preset file in the terminal to generate a signature file, and write the signature file into a predetermined storage space of the terminal before the terminal leaves the factory;
  • the predetermined storage space includes: a read only memory ROM, or other disposable memory.
  • the fixed feature identifier may be inserted into the preset file of the terminal before the terminal leaves the factory, and the feature identifier is used as a corresponding pre- The characteristic part of the file;
  • the above feature part comprises: an authorization description of the preset file, a specific attribute of the preset file, and/or a preset file itself.
  • the feature part refers to the part that does not change with the system upgrade. For example, how many bytes of the preset file never change, and a certain preset file never changes.
  • the TAR tool of the LINUX operating system may be used to connect the fixed feature parts in the preset files in the terminal, and the message digest algorithm 5 is used to generate the signature file.
  • Step 102 Connect each time the fixed feature part of each preset file in the terminal is connected to generate a current signature file, and read the pre-stored signature file from the predetermined storage space to determine the current signature file and the first Whether the stored signature files are consistent, and if the inconsistency is determined, the preset files in the factory terminal are restored.
  • FIG. 2 is a flow chart of a factory write signature of an example of the present invention, as shown in FIG. 2, specifically including the following processing:
  • the feature portion of the file to be protected is found or added, and the feature portion refers to a portion that does not change with the system upgrade.
  • the authorization description of a file some attributes of the file such as the author, can be used as a feature part of the file. If you can't find it, you can insert some identifiers in the file that don't change with the system upgrade. If the file itself does not change with the system upgrade, you can treat the entire file directly as a signature file;
  • Step 202 The feature part of the read file is saved to the temporary file
  • Step 203 connecting all the temporary files to generate a temporary file, and the connection method can be Directly use the TAR tool of LINUX;
  • Step 204 Generate a signature according to the temporary file by using an algorithm such as an MD5 code algorithm.
  • step 205 the signature is saved to a ROM or other disposable memory at the factory.
  • FIG. 3 is a flowchart of a boot verification signature according to an embodiment of the present invention. As shown in FIG. 3, the following processing is included:
  • Step 301 after booting, find the feature part of the preset application to be protected, and obtain the feature part by the same method as the factory write signature process;
  • Step 302 The feature part of the read file is saved to the temporary file
  • Step 303 connecting all temporary files to generate a temporary file, and the connection method can directly use the TAR tool of LINUX;
  • Step 304 Generate a signature according to the temporary file by using an algorithm such as an MD5 code algorithm.
  • Step 305 it is checked whether the calculated signature is the same as the signature saved in the ROM, if the same, step 306 is performed, otherwise, step 307 is performed;
  • Step 306 normal use.
  • Step 307 adopt some kind of recovery measure. If the user is prompted to upgrade the system, restore the preset file from the network, etc., and use it normally after recovery.
  • the signature files are generated by connecting the feature parts of all the preset files, and the signature files are written into the predetermined storage space when the terminal is shipped from the factory, and are turned on. Check whether the signatures are consistent with the preset file. If the files are inconsistent, the files are restored and then used by the user.
  • FIG. 4 is a schematic diagram of a device for protecting a preset file according to an embodiment of the present invention.
  • the apparatus for protecting a preset file according to an embodiment of the present invention includes: a signature module 40, and a recovery module 42, and each of the following embodiments of the present invention The module is described in detail.
  • the signature module 40 is configured to connect the fixed feature parts in the preset files in the terminal to generate a signature file, and write the signature file into a predetermined storage space of the terminal before the terminal leaves the factory; wherein the predetermined storage space includes : Read only memory ROM, or other disposable memory.
  • the signature module 40 is further configured to insert a fixed feature identifier into the preset file of the terminal before the terminal leaves the factory, and use the feature identifier as a feature part of the corresponding preset file;
  • the signature module 40 is specifically configured to: connect the fixed feature parts of each preset file in the terminal by using the TAR tool of the LINUX operating system, and generate a signature file by using the information digest algorithm 5.
  • the feature part may further include: an authorization description of the preset file, a specific attribute of the preset file, and/or the preset file itself.
  • the recovery module 42 is configured to connect the fixed feature parts in the current preset files in the terminal to generate a current signature file, and read the pre-stored signature file from the predetermined storage space to determine the current signature. Whether the file is consistent with the previously stored signature file, and if the inconsistency is determined, the preset file in the factory terminal is restored.
  • the signature files are generated by connecting the feature parts of all the preset files, and the signature files are written into the predetermined storage space when the terminal is shipped from the factory, and the signatures are detected at the booting time.
  • the files are consistent. If the files are inconsistent, the files are restored and then used by the user.
  • the preset file in order to avoid the user ROOT, the system can not start normally, need to get the repair point to repair the trouble, and protect the interests of mobile phone manufacturers and operators.
  • the signature module and the recovery module in the device for protecting the preset file provided by the embodiment of the present invention can be implemented by a processor in the terminal; of course, the functions performed by the processor can also be implemented by a specific logic circuit;
  • the processor may be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP), or a field programmable gate array (FPGA).
  • the foregoing method for protecting a preset file is implemented in the form of a software function module, and is sold or used as a stand-alone product, it may also be stored in a computer readable storage medium.
  • the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product stored in a storage medium, including a plurality of instructions.
  • a computer device (which may be a personal computer, server, or network device, etc.) is caused to perform all or part of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read only memory (ROM), a magnetic disk, or an optical disk.
  • program codes such as a USB flash drive, a mobile hard disk, a read only memory (ROM), a magnetic disk, or an optical disk.
  • the embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the method for protecting a preset file in the embodiment of the present invention.
  • modules in the client in the embodiment can be adaptively changed and placed in one or more clients different from the embodiment.
  • the modules in the embodiments can be combined into one module, and further they can be divided into a plurality of sub-modules or sub-units or sub-components.
  • any combination of the features disclosed in the specification, including the accompanying claims, the abstract and the drawings, and any methods so disclosed, or All processes or units of the client are combined.
  • Each feature disclosed in this specification may be replaced by alternative features that provide the same, equivalent or similar purpose.
  • the various component embodiments of the present invention may be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof.
  • a microprocessor or digital signal processor may be used in practice to implement some or all of the functionality of some or all of the components loaded with the ordered web address in accordance with an embodiment of the present invention.
  • the invention can also be implemented as a device or device program (e.g., a computer program and a computer program product) for performing some or all of the methods described herein.
  • a program implementing the invention may be stored on a computer readable medium or may be in the form of one or more signals. Such signals may be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.
  • the feature parts fixed in the preset files in the terminal are connected to generate a signature file, and the signature file is written to the predetermined storage space of the terminal before the terminal leaves the factory.
  • the fixed feature part in each preset file in the terminal is connected to generate a current signature file, and the pre-stored signature file is read from the predetermined storage space, and the current signature file is first determined.
  • the presets can be automatically restored if the preset files are deleted by the user.

Abstract

A profile protecting method and device, and a storage medium. The method comprises: connecting fixed feature parts in profiles in a terminal to generate a signature file, and writing the signature file into a predetermined storage space of the terminal before delivery (101); and upon each startup, connecting the fixed feature parts in the current profiles in the terminal to generate a current signature file, reading the prestored signature file from the predetermined storage space, determining whether the current signature file is consistent with the prestored signature file, and recovering the profile in the terminal before delivery if it is determined that the current signature file is inconsistent with the prestored signature file (102).

Description

保护预置文件的方法及装置、存储介质Method and device for protecting preset file, storage medium 技术领域Technical field
本发明涉及移动通讯领域,特别是涉及一种保护预置文件的方法及装置、存储介质。The present invention relates to the field of mobile communications, and in particular, to a method and apparatus for protecting a preset file, and a storage medium.
背景技术Background technique
在现有技术中,有一些系统相关的文件,用户ROOT删除后,就会发生系统不能正常启动的情况,在上述情况下,通常需要用户拿到维修点去维修才能够正常启动系统,此外,在做运营商定制项目时,运营商要预置一些文件在终端上,这些应用与运营商的利益相关,但最终在用户手里,发现这些预置的文件被用户删除了。In the prior art, there are some system-related files. After the user ROOT is deleted, the system may not start normally. In the above case, the user usually needs to get the repair point to repair the system to start the system normally. In addition, When doing a carrier customization project, the operator has to pre-set some files on the terminal. These applications are related to the operator's interests, but in the end, the user finds that these preset files are deleted by the user.
为了防止上述情况的发生,目前的解决办法是尽力防止用户ROOT系统。没有ROOT权限,用户就删除不了预置的文件,但是防止用户ROOT十分困难,经过一段时间,用户总是能找到办法和软件去ROOT系统,进而删除系统预置的文件。因此,目前急需一种保护终端中预置文件的方法。In order to prevent this from happening, the current solution is to try to prevent the user ROOT system. Without ROOT permission, the user can't delete the preset file, but it is very difficult to prevent the user from ROOT. After a period of time, the user can always find a way and software to go to the ROOT system, and then delete the system preset file. Therefore, there is an urgent need for a method of protecting a preset file in a terminal.
发明内容Summary of the invention
鉴于现有技术中用户ROOT系统导致终端预置文件被删除的问题,提出了本发明以便提供一种保护预置文件的方法及装置、存储介质。In view of the problem that the user ROOT system causes the terminal preset file to be deleted in the prior art, the present invention has been proposed to provide a method and apparatus for protecting a preset file, and a storage medium.
本发明实施例的技术方案如下:The technical solution of the embodiment of the present invention is as follows:
第一方面,本发明实施例提供一种保护预置文件的方法,包括:In a first aspect, an embodiment of the present invention provides a method for protecting a preset file, including:
将终端中各个预置文件中固定不变的特征部分进行连接生成签名文件,并在终端出厂前将签名文件写入到终端的预定存储空间中;Connecting the fixed feature parts in each preset file in the terminal to generate a signature file, and writing the signature file to the predetermined storage space of the terminal before leaving the factory;
在每次开机时,将终端中当前各个预置文件中固定不变的特征部分进 行连接生成当前签名文件,并从预定存储空间读取预先存储的签名文件,判断当前签名文件与先存储的签名文件是否一致,在确定不一致的情况下,恢复出厂前终端中的预置文件。At each boot, the fixed features of the current preset files in the terminal are The line connection generates a current signature file, and reads the pre-stored signature file from the predetermined storage space, determines whether the current signature file is consistent with the previously stored signature file, and restores the preset file in the pre-factory terminal in case of inconsistency.
在本发明的一种实施例中,上述方法进一步包括:In an embodiment of the invention, the method further includes:
在终端出厂前,将终端的预置文件中插入固定不变的特征标识,并将特征标识作为相应预置文件的特征部分;Before the terminal leaves the factory, insert the fixed feature identifier into the preset file of the terminal, and use the feature identifier as the feature part of the corresponding preset file;
在本发明的一种实施例中,特征部分包括:预置文件的授权说明、预置文件的特定属性、和/或预置文件本身。In one embodiment of the invention, the feature portion includes: an authorization specification for the profile, a specific property of the profile, and/or the profile itself.
在本发明的一种实施例中,将终端中各个预置文件中固定不变的特征部分进行连接生成签名文件具体包括:In an embodiment of the present invention, connecting the fixed feature parts in each preset file in the terminal to generate the signature file specifically includes:
采用LINUX操作系统的TAR工具将终端中各个预置文件中固定不变的特征部分进行连接,并采用信息摘要算法5生成签名文件。The TAR tool of the LINUX operating system is used to connect the fixed feature parts of the preset files in the terminal, and the message digest algorithm 5 is used to generate the signature file.
在本发明的一种实施例中,预定存储空间包括:只读存储器ROM、或其他一次性存储器。In one embodiment of the invention, the predetermined storage space comprises: a read only memory ROM, or other disposable memory.
第二方面,本发明还提供了一种保护预置文件的装置,包括:In a second aspect, the present invention also provides an apparatus for protecting a preset file, including:
签名模块,配置为将终端中各个预置文件中固定不变的特征部分进行连接生成签名文件,并在终端出厂前将签名文件写入到终端的预定存储空间中;The signature module is configured to connect the fixed feature parts of each preset file in the terminal to generate a signature file, and write the signature file into a predetermined storage space of the terminal before the terminal leaves the factory;
恢复模块,配置为在每次开机时,将终端中当前各个预置文件中固定不变的特征部分进行连接生成当前签名文件,并从预定存储空间读取预先存储的签名文件,判断当前签名文件与先存储的签名文件是否一致,在确定不一致的情况下,恢复出厂前终端中的预置文件。The recovery module is configured to connect the fixed feature parts in the current preset files in the terminal to generate a current signature file each time the system is powered on, and read the pre-stored signature file from the predetermined storage space to determine the current signature file. Whether it is consistent with the signature file stored first, and if the inconsistency is determined, the preset file in the factory terminal is restored.
在本发明的一种实施例中,签名模块进一步配置为:In an embodiment of the invention, the signature module is further configured to:
在终端出厂前,将终端的预置文件中插入固定不变的特征标识,并将特征标识作为相应预置文件的特征部分; Before the terminal leaves the factory, insert the fixed feature identifier into the preset file of the terminal, and use the feature identifier as the feature part of the corresponding preset file;
在本发明的一种实施例中,特征部分包括:预置文件的授权说明、预置文件的特定属性、和/或预置文件本身。In one embodiment of the invention, the feature portion includes: an authorization specification for the profile, a specific property of the profile, and/or the profile itself.
在本发明的一种实施例中,签名模块具体配置为:In an embodiment of the present invention, the signature module is specifically configured to:
采用LINUX操作系统的TAR工具将终端中各个预置文件中固定不变的特征部分进行连接,并采用信息摘要算法5生成签名文件。The TAR tool of the LINUX operating system is used to connect the fixed feature parts of the preset files in the terminal, and the message digest algorithm 5 is used to generate the signature file.
在本发明的一种实施例中,预定存储空间包括:只读存储器ROM、或其他一次性存储器。In one embodiment of the invention, the predetermined storage space comprises: a read only memory ROM, or other disposable memory.
第三方面,本发明实施例提供一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,该计算机可执行指令用于执行本发明第一方面实施例提供的保护预置文件的方法。In a third aspect, an embodiment of the present invention provides a computer storage medium, where the computer storage medium stores computer executable instructions, where the computer executable instructions are used to execute the protection preset file provided by the embodiment of the first aspect of the present invention. method.
本发明实施例的有益效果如下:The beneficial effects of the embodiments of the present invention are as follows:
通过将所有预置文件的特征部分连接起来,生成签名文件,在终端出厂时将这些签名文件写到预定存储空间中,并在开机时检测这些签名是否与预置文件一致,如不一致则恢复这些文件后再让用户使用,解决了现有技术中用户ROOT系统导致终端预置文件被删除的问题,能够在预置文件被用户删除的情况下,自动恢复这些预置文件,从而避免用户ROOT后,系统不能正常启动,需要拿到维修点去维修的麻烦,并且保护了手机生产商和运营商利益。By connecting the feature parts of all the preset files, the signature files are generated, and the signature files are written to the predetermined storage space when the terminal is shipped from the factory, and the signatures are detected to be consistent with the preset files when the device is turned on, and if these are inconsistent, the signature files are restored. After the file is used by the user, the problem that the terminal preset file is deleted by the user ROOT system in the prior art is solved, and the preset file can be automatically restored when the preset file is deleted by the user, thereby avoiding the user after the ROOT. The system can't start normally, need to get the repair point to repair, and protect the interests of mobile phone manufacturers and operators.
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solutions of the present invention, and the above-described and other objects, features and advantages of the present invention can be more clearly understood. Specific embodiments of the invention are set forth below.
附图说明DRAWINGS
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符 号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those skilled in the art from a The drawings are only for the purpose of illustrating the preferred embodiments and are not to be construed as limiting. And throughout the drawing, the same reference character is used. The numbers indicate the same parts. In the drawing:
图1是本发明实施例的保护预置文件的方法的流程图;1 is a flowchart of a method for protecting a preset file according to an embodiment of the present invention;
图2是本发明实例的出厂写签名的流程图;2 is a flow chart of a factory write signature of an example of the present invention;
图3是本发明实施例的开机验签名的流程图;3 is a flow chart of a boot verification signature according to an embodiment of the present invention;
图4是本发明实施例的保护预置文件的装置的结构示意图。FIG. 4 is a schematic structural diagram of an apparatus for protecting a preset file according to an embodiment of the present invention.
具体实施方式detailed description
下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While the embodiments of the present invention have been shown in the drawings, the embodiments Rather, these embodiments are provided so that this disclosure will be more fully understood and the scope of the disclosure will be fully disclosed.
为了解决现有技术中用户ROOT系统导致终端预置文件被删除的问题,本发明提供了一种保护预置文件的方法及装置,将所有预置文件的特征部分连接起来,生成签名文件,在终端出厂时将这些签名文件写到ROM中,并在开机时检测这些签名是否与预置文件一致,如不一致则恢复这些文件后再让用户使用。以下结合附图以及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不限定本发明。In order to solve the problem that the user ROOT system in the prior art causes the terminal preset file to be deleted, the present invention provides a method and a device for protecting a preset file, connecting the feature parts of all the preset files to generate a signature file, When the terminal leaves the factory, these signature files are written into the ROM, and when the power is turned on, it is detected whether the signatures are consistent with the preset files, and if they are inconsistent, the files are restored and then used by the user. The invention will be further described in detail below with reference to the drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
方法实施例Method embodiment
根据本发明的实施例,提供了一种保护预置文件的方法,在本发明实施例中,用于安装有安卓系统的终端,图1是本发明实施例的保护预置文件的方法的流程图,如图1所示,根据本发明实施例的保护预置文件的方法包括如下处理:According to an embodiment of the present invention, a method for protecting a preset file is provided. In the embodiment of the present invention, a terminal for installing an Android system is provided. FIG. 1 is a flowchart of a method for protecting a preset file according to an embodiment of the present invention. As shown in FIG. 1, a method for protecting a preset file according to an embodiment of the present invention includes the following processing:
步骤101,将终端中各个预置文件中固定不变的特征部分进行连接生成签名文件,并在终端出厂前将签名文件写入到终端的预定存储空间中;其 中,上述预定存储空间包括:只读存储器ROM、或其他一次性存储器。Step 101: Connect a fixed feature part in each preset file in the terminal to generate a signature file, and write the signature file into a predetermined storage space of the terminal before the terminal leaves the factory; The predetermined storage space includes: a read only memory ROM, or other disposable memory.
在本发明实施例中,如果预置文件本身不具备固定不变的特征部分,则可以在终端出厂前,将终端的预置文件中插入固定不变的特征标识,并将特征标识作为相应预置文件的特征部分;In the embodiment of the present invention, if the preset file itself does not have a fixed feature part, the fixed feature identifier may be inserted into the preset file of the terminal before the terminal leaves the factory, and the feature identifier is used as a corresponding pre- The characteristic part of the file;
优选地,上述特征部分包括:预置文件的授权说明、预置文件的特定属性、和/或预置文件本身。需要说明的是,特征部分指不随系统升级改变的部分,例如,预置文件的前多少字节永不改,某个预置文件永不改等。Preferably, the above feature part comprises: an authorization description of the preset file, a specific attribute of the preset file, and/or a preset file itself. It should be noted that the feature part refers to the part that does not change with the system upgrade. For example, how many bytes of the preset file never change, and a certain preset file never changes.
在步骤101中,可以采用LINUX操作系统的TAR工具将终端中各个预置文件中固定不变的特征部分进行连接,并采用信息摘要算法5生成签名文件。In step 101, the TAR tool of the LINUX operating system may be used to connect the fixed feature parts in the preset files in the terminal, and the message digest algorithm 5 is used to generate the signature file.
步骤102,在每次开机时,将终端中当前各个预置文件中固定不变的特征部分进行连接生成当前签名文件,并从预定存储空间读取预先存储的签名文件,判断当前签名文件与先存储的签名文件是否一致,在确定不一致的情况下,恢复出厂前终端中的预置文件。Step 102: Connect each time the fixed feature part of each preset file in the terminal is connected to generate a current signature file, and read the pre-stored signature file from the predetermined storage space to determine the current signature file and the first Whether the stored signature files are consistent, and if the inconsistency is determined, the preset files in the factory terminal are restored.
以下结合附图,对本发明实施例的出厂写签名流程和开机验签名流程的技术方案进行详细说明。The technical solutions of the factory write signature process and the boot verification signature process in the embodiments of the present invention are described in detail below with reference to the accompanying drawings.
图2是本发明实例的出厂写签名的流程图,如图2所示,具体包括如下处理:2 is a flow chart of a factory write signature of an example of the present invention, as shown in FIG. 2, specifically including the following processing:
步骤201,出厂时,找出或添加要保护的文件的特征部分,特征部分是指不随系统升级而改变的部分。例如,文件的授权说明,文件的一些属性如作者,这些都可以作为文件的特征部分。如果找不到,可以在文件中插入一些不随系统升级改变的标识。如果文件本身不随系统升级而改变,可以直接把整个文件当成特征文件来对待;In step 201, at the time of shipment, the feature portion of the file to be protected is found or added, and the feature portion refers to a portion that does not change with the system upgrade. For example, the authorization description of a file, some attributes of the file such as the author, can be used as a feature part of the file. If you can't find it, you can insert some identifiers in the file that don't change with the system upgrade. If the file itself does not change with the system upgrade, you can treat the entire file directly as a signature file;
步骤202,读取文件的特征部分保存到临时文件;Step 202: The feature part of the read file is saved to the temporary file;
步骤203,将所有临时文件连接起来生成一个临时文件,连接方法可以 直接用LINUX的TAR工具; Step 203, connecting all the temporary files to generate a temporary file, and the connection method can be Directly use the TAR tool of LINUX;
步骤204,采用某种算法如MD5码算法根据所述临时文件生成签名;Step 204: Generate a signature according to the temporary file by using an algorithm such as an MD5 code algorithm.
步骤205,出厂时将签名保存到ROM或其他一次性存储器中。In step 205, the signature is saved to a ROM or other disposable memory at the factory.
图3是本发明实施例的开机验签名的流程图,如图3所示,包括如下处理:FIG. 3 is a flowchart of a boot verification signature according to an embodiment of the present invention. As shown in FIG. 3, the following processing is included:
步骤301,开机后,找出要保护的预置应用的特征部分,获取特征部分的方法同出厂写签名流程; Step 301, after booting, find the feature part of the preset application to be protected, and obtain the feature part by the same method as the factory write signature process;
步骤302,读取文件的特征部分保存到临时文件;Step 302: The feature part of the read file is saved to the temporary file;
步骤303,将所有临时文件连接起来生成一个临时文件,连接方法可以直接用LINUX的TAR工具; Step 303, connecting all temporary files to generate a temporary file, and the connection method can directly use the TAR tool of LINUX;
步骤304,采用某种算法如MD5码算法根据所述临时文件生成签名;Step 304: Generate a signature according to the temporary file by using an algorithm such as an MD5 code algorithm.
步骤305,检查计算出的签名与ROM中保存的签名是否相同,如果相同,执行步骤306,否则,执行步骤307; Step 305, it is checked whether the calculated signature is the same as the signature saved in the ROM, if the same, step 306 is performed, otherwise, step 307 is performed;
步骤306,正常使用。 Step 306, normal use.
步骤307;采用某种恢复措施。如提示用户升级系统,从网络恢复预置文件等,恢复后正常使用。 Step 307; adopt some kind of recovery measure. If the user is prompted to upgrade the system, restore the preset file from the network, etc., and use it normally after recovery.
综上所述,借助于本发明实施例的技术方案,通过将所有预置文件的特征部分连接起来,生成签名文件,在终端出厂时将这些签名文件写到预定存储空间中,并在开机时检测这些签名是否与预置文件一致,如不一致则恢复这些文件后再让用户使用,解决了现有技术中用户ROOT系统导致终端预置文件被删除的问题,能够在预置文件被用户删除的情况下,自动恢复这些预置文件,从而避免用户ROOT后,系统不能正常启动,需要拿到维修点去维修的麻烦,并且保护了手机生产商和运营商利益。In summary, with the technical solution of the embodiment of the present invention, the signature files are generated by connecting the feature parts of all the preset files, and the signature files are written into the predetermined storage space when the terminal is shipped from the factory, and are turned on. Check whether the signatures are consistent with the preset file. If the files are inconsistent, the files are restored and then used by the user. This solves the problem that the user's ROOT system causes the terminal preset file to be deleted in the prior art, and can be deleted by the user in the preset file. In this case, these preset files are automatically restored, thereby avoiding the problem that the system cannot be started normally after the user ROOT, the need to get the maintenance point to repair, and protect the interests of the mobile phone manufacturer and the operator.
装置实施例Device embodiment
根据本发明的实施例,提供了一种保护预置文件的装置,图4是本发 明实施例的保护预置文件的装置的结构示意图,如图4所示,根据本发明实施例的保护预置文件的装置包括:签名模块40、以及恢复模块42,以下对本发明实施例的各个模块进行详细的说明。According to an embodiment of the present invention, a device for protecting a preset file is provided, and FIG. 4 is the present invention. FIG. 4 is a schematic diagram of a device for protecting a preset file according to an embodiment of the present invention. The apparatus for protecting a preset file according to an embodiment of the present invention includes: a signature module 40, and a recovery module 42, and each of the following embodiments of the present invention The module is described in detail.
签名模块40,配置为将终端中各个预置文件中固定不变的特征部分进行连接生成签名文件,并在终端出厂前将签名文件写入到终端的预定存储空间中;其中,预定存储空间包括:只读存储器ROM、或其他一次性存储器。The signature module 40 is configured to connect the fixed feature parts in the preset files in the terminal to generate a signature file, and write the signature file into a predetermined storage space of the terminal before the terminal leaves the factory; wherein the predetermined storage space includes : Read only memory ROM, or other disposable memory.
签名模块40进一步配置为:在终端出厂前,将终端的预置文件中插入固定不变的特征标识,并将特征标识作为相应预置文件的特征部分;The signature module 40 is further configured to insert a fixed feature identifier into the preset file of the terminal before the terminal leaves the factory, and use the feature identifier as a feature part of the corresponding preset file;
签名模块40具体配置为:采用LINUX操作系统的TAR工具将终端中各个预置文件中固定不变的特征部分进行连接,并采用信息摘要算法5生成签名文件。The signature module 40 is specifically configured to: connect the fixed feature parts of each preset file in the terminal by using the TAR tool of the LINUX operating system, and generate a signature file by using the information digest algorithm 5.
在本发明实施例中,特征部分还可以包括:预置文件的授权说明、预置文件的特定属性、和/或预置文件本身。In the embodiment of the present invention, the feature part may further include: an authorization description of the preset file, a specific attribute of the preset file, and/or the preset file itself.
恢复模块42,配置为在每次开机时,将终端中当前各个预置文件中固定不变的特征部分进行连接生成当前签名文件,并从预定存储空间读取预先存储的签名文件,判断当前签名文件与先存储的签名文件是否一致,在确定不一致的情况下,恢复出厂前终端中的预置文件。The recovery module 42 is configured to connect the fixed feature parts in the current preset files in the terminal to generate a current signature file, and read the pre-stored signature file from the predetermined storage space to determine the current signature. Whether the file is consistent with the previously stored signature file, and if the inconsistency is determined, the preset file in the factory terminal is restored.
综上所述,本发明实施例通过将所有预置文件的特征部分连接起来,生成签名文件,在终端出厂时将这些签名文件写到预定存储空间中,并在开机时检测这些签名是否与预置文件一致,如不一致则恢复这些文件后再让用户使用,解决了现有技术中用户ROOT系统导致终端预置文件被删除的问题,能够在预置文件被用户删除的情况下,自动恢复这些预置文件,从而避免用户ROOT后,系统不能正常启动,需要拿到维修点去维修的麻烦,并且保护了手机生产商和运营商利益。 In summary, in the embodiment of the present invention, the signature files are generated by connecting the feature parts of all the preset files, and the signature files are written into the predetermined storage space when the terminal is shipped from the factory, and the signatures are detected at the booting time. The files are consistent. If the files are inconsistent, the files are restored and then used by the user. This solves the problem that the user's ROOT system causes the terminal preset files to be deleted in the prior art, and can automatically recover these files when the preset files are deleted by the user. The preset file, in order to avoid the user ROOT, the system can not start normally, need to get the repair point to repair the trouble, and protect the interests of mobile phone manufacturers and operators.
本发明实施例提供的保护预置文件的装置中的签名模块和恢复模块,都可以通过终端中的处理器来实现;当然上述处理器完成的功能也可通过具体的逻辑电路实现;在具体实施例的过程中,处理器可以为中央处理器(CPU)、微处理器(MPU)、数字信号处理器(DSP)或现场可编程门阵列(FPGA)等。The signature module and the recovery module in the device for protecting the preset file provided by the embodiment of the present invention can be implemented by a processor in the terminal; of course, the functions performed by the processor can also be implemented by a specific logic circuit; In the process of the example, the processor may be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP), or a field programmable gate array (FPGA).
需要说明的是,本发明实施例中,如果以软件功能模块的形式实现上述的保护预置文件的方法,并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实施例的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机、服务器、或者网络设备等)执行本发明各个实施例所述方法的全部或部分。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read Only Memory)、磁碟或者光盘等各种可以存储程序代码的介质。这样,本发明实施例不限制于任何特定的硬件和软件结合。It should be noted that, in the embodiment of the present invention, if the foregoing method for protecting a preset file is implemented in the form of a software function module, and is sold or used as a stand-alone product, it may also be stored in a computer readable storage medium. . Based on such understanding, the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product stored in a storage medium, including a plurality of instructions. A computer device (which may be a personal computer, server, or network device, etc.) is caused to perform all or part of the methods described in various embodiments of the present invention. The foregoing storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read only memory (ROM), a magnetic disk, or an optical disk. Thus, embodiments of the invention are not limited to any specific combination of hardware and software.
相应地,本发明实施例再提供一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,该计算机可执行指令用于执行本发明实施例中保护预置文件的方法。Correspondingly, the embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the method for protecting a preset file in the embodiment of the present invention.
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。It is apparent that those skilled in the art can make various modifications and variations to the invention without departing from the spirit and scope of the invention. Thus, it is intended that the present invention cover the modifications and modifications of the invention
在此提供的算法和显示不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造这类系统所要求的结构是显而易见的。此外,本发明也不针对 任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。The algorithms and displays provided herein are not inherently related to any particular computer, virtual system, or other device. Various general purpose systems can also be used with the teaching based on the teachings herein. The structure required to construct such a system is apparent from the above description. Moreover, the present invention is not directed to Any specific programming language. It is to be understood that the invention may be embodied in a variety of programming language, and the description of the specific language has been described above in order to disclose the preferred embodiments of the invention.
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. However, it is understood that the embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures, and techniques are not shown in detail so as not to obscure the understanding of the description.
类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。Similarly, the various features of the invention are sometimes grouped together into a single embodiment, in the above description of the exemplary embodiments of the invention, Figure, or a description of it. However, the method disclosed is not to be interpreted as reflecting the intention that the claimed invention requires more features than those recited in the claims. Rather, as the following claims reflect, inventive aspects reside in less than all features of the single embodiments disclosed herein. Therefore, the claims following the specific embodiments are hereby explicitly incorporated into the embodiments, and each of the claims as a separate embodiment of the invention.
本领域那些技术人员可以理解,可以对实施例中的客户端中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个客户端中。可以把实施例中的模块组合成一个模块,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者客户端的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。Those skilled in the art will appreciate that the modules in the client in the embodiment can be adaptively changed and placed in one or more clients different from the embodiment. The modules in the embodiments can be combined into one module, and further they can be divided into a plurality of sub-modules or sub-units or sub-components. In addition to such features and/or at least some of the processes or units being mutually exclusive, any combination of the features disclosed in the specification, including the accompanying claims, the abstract and the drawings, and any methods so disclosed, or All processes or units of the client are combined. Each feature disclosed in this specification (including the accompanying claims, the abstract and the drawings) may be replaced by alternative features that provide the same, equivalent or similar purpose.
此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征 的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。Moreover, those skilled in the art will appreciate that while some of the embodiments described herein include certain features included in other embodiments and not other features, the features of the various embodiments. Combinations are meant to be within the scope of the invention and to form different embodiments. For example, in the following claims, any one of the claimed embodiments can be used in any combination.
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的加载有排序网址的客户端中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。The various component embodiments of the present invention may be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or digital signal processor (DSP) may be used in practice to implement some or all of the functionality of some or all of the components loaded with the ordered web address in accordance with an embodiment of the present invention. . The invention can also be implemented as a device or device program (e.g., a computer program and a computer program product) for performing some or all of the methods described herein. Such a program implementing the invention may be stored on a computer readable medium or may be in the form of one or more signals. Such signals may be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.
应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It is to be noted that the above-described embodiments are illustrative of the invention and are not intended to be limiting, and that the invention may be devised without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as a limitation. The word "comprising" does not exclude the presence of the elements or steps that are not recited in the claims. The word "a" or "an" The invention can be implemented by means of hardware comprising several distinct elements and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means can be embodied by the same hardware item. The use of the words first, second, and third does not indicate any order. These words can be interpreted as names.
工业实用性Industrial applicability
本发明实施例中,将终端中各个预置文件中固定不变的特征部分进行连接生成签名文件,并在终端出厂前将签名文件写入到终端的预定存储空 间中;在每次开机时,将终端中当前各个预置文件中固定不变的特征部分进行连接生成当前签名文件,并从预定存储空间读取预先存储的签名文件,判断当前签名文件与先存储的签名文件是否一致,在确定不一致的情况下,恢复出厂前终端中的预置文件;如此,借助于本发明的技术方案,能够在预置文件被用户删除的情况下,自动恢复这些预置文件,从而避免用户ROOT后,系统不能正常启动,需要拿到维修点去维修的麻烦,并且保护了手机生产商和运营商利益。 In the embodiment of the present invention, the feature parts fixed in the preset files in the terminal are connected to generate a signature file, and the signature file is written to the predetermined storage space of the terminal before the terminal leaves the factory. In each case, each time the power is turned on, the fixed feature part in each preset file in the terminal is connected to generate a current signature file, and the pre-stored signature file is read from the predetermined storage space, and the current signature file is first determined. Whether the stored signature files are consistent, and in the case of determining inconsistency, restoring the preset files in the factory terminal; thus, by means of the technical solution of the present invention, the presets can be automatically restored if the preset files are deleted by the user. Set the file, so as to avoid the user ROOT, the system can not start normally, need to get the repair point to repair the trouble, and protect the interests of mobile phone manufacturers and operators.

Claims (11)

  1. 一种保护预置文件的方法,包括:A method of protecting a preset file, including:
    将终端中各个预置文件中固定不变的特征部分进行连接生成签名文件,并在终端出厂前将所述签名文件写入到终端的预定存储空间中;And connecting the fixed feature parts in each preset file in the terminal to generate a signature file, and writing the signature file to a predetermined storage space of the terminal before the terminal leaves the factory;
    在每次开机时,将所述终端中当前各个预置文件中固定不变的特征部分进行连接生成当前签名文件,并从所述预定存储空间读取预先存储的所述签名文件,判断所述当前签名文件与先存储的所述签名文件是否一致,在确定不一致的情况下,恢复出厂前所述终端中的预置文件。Each time the power is turned on, the feature parts that are fixed in the current preset files in the terminal are connected to generate a current signature file, and the pre-stored signature file is read from the predetermined storage space, and the Whether the current signature file is consistent with the previously stored signature file, and if the inconsistency is determined, the preset file in the terminal before the factory is restored.
  2. 如权利要求1所述的方法,其中,所述方法进一步包括:The method of claim 1 wherein the method further comprises:
    在终端出厂前,将所述终端的预置文件中插入固定不变的特征标识,并将所述特征标识作为相应预置文件的特征部分;Before the terminal leaves the factory, insert a fixed feature identifier into the preset file of the terminal, and use the feature identifier as a feature part of the corresponding preset file;
  3. 如权利要求2所述的方法,其中,所述特征部分还包括:预置文件的授权说明、预置文件的特定属性、和/或预置文件本身。The method of claim 2, wherein the feature portion further comprises: an authorization specification of the profile, a specific property of the profile, and/or the profile itself.
  4. 如权利要求1所述的方法,其中,将终端中各个预置文件中固定不变的特征部分进行连接生成签名文件具体包括:The method of claim 1, wherein the connecting the fixed feature parts in the preset files in the terminal to generate the signature file comprises:
    采用LINUX操作系统的TAR工具将终端中各个预置文件中固定不变的特征部分进行连接,并采用信息摘要算法5生成签名文件。The TAR tool of the LINUX operating system is used to connect the fixed feature parts of the preset files in the terminal, and the message digest algorithm 5 is used to generate the signature file.
  5. 如权利要求1所述的方法,其中,所述预定存储空间包括:只读存储器ROM、或其他一次性存储器。The method of claim 1 wherein said predetermined storage space comprises: a read only memory ROM, or other disposable memory.
  6. 一种保护预置文件的装置,包括:A device for protecting a preset file, comprising:
    签名模块,配置为将终端中各个预置文件中固定不变的特征部分进行连接生成签名文件,并在终端出厂前将所述签名文件写入到终端的预定存储空间中;The signature module is configured to connect the fixed feature parts in each preset file in the terminal to generate a signature file, and write the signature file into a predetermined storage space of the terminal before the terminal leaves the factory;
    恢复模块,配置为在每次开机时,将所述终端中当前各个预置文件中 固定不变的特征部分进行连接生成当前签名文件,并从所述预定存储空间读取预先存储的所述签名文件,判断所述当前签名文件与先存储的所述签名文件是否一致,在确定不一致的情况下,恢复出厂前所述终端中的预置文件。The recovery module is configured to: in each of the current preset files in the terminal, each time the power is turned on The fixed feature part is connected to generate a current signature file, and the pre-stored signature file is read from the predetermined storage space, and it is determined whether the current signature file is consistent with the previously stored signature file, and the inconsistency is determined. In the case of the factory, the preset file in the terminal described in the factory is restored.
  7. 如权利要求6所述的装置,其中,所述签名模块,配置为在终端出厂前,将所述终端的预置文件中插入固定不变的特征标识,并将所述特征标识作为相应预置文件的特征部分;The device of claim 6, wherein the signature module is configured to insert a fixed feature identifier into the preset file of the terminal before the terminal leaves the factory, and use the feature identifier as a corresponding preset. The characteristic part of the document;
  8. 如权利要求7所述的装置,其中,所述特征部分还包括:预置文件的授权说明、预置文件的特定属性、和/或预置文件本身。The apparatus of claim 7, wherein the feature portion further comprises: an authorization specification of the profile, a specific attribute of the profile, and/or the profile itself.
  9. 如权利要求6所述的装置,其中,所述签名模块,配置为采用LINUX操作系统的TAR工具将终端中各个预置文件中固定不变的特征部分进行连接,并采用信息摘要算法5生成签名文件。The device of claim 6, wherein the signature module is configured to connect the fixed feature parts of each preset file in the terminal by using a TAR tool of the LINUX operating system, and generate a signature by using the information digest algorithm 5 file.
  10. 如权利要求6所述的装置,其中,所述预定存储空间包括:只读存储器ROM、或其他一次性存储器。The apparatus of claim 6, wherein the predetermined storage space comprises: a read only memory ROM, or other disposable memory.
  11. 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,该计算机可执行指令用于执行权利要求1至5任一项所述的保护预置文件的方法。 A computer storage medium storing computer executable instructions for performing the method of protecting a preset file according to any one of claims 1 to 5.
PCT/CN2015/079224 2014-10-21 2015-05-18 Profile protecting method and device, and storage medium WO2016062080A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410562056.6A CN105590065B (en) 2014-10-21 2014-10-21 Method and device for protecting preset file
CN201410562056.6 2014-10-21

Publications (1)

Publication Number Publication Date
WO2016062080A1 true WO2016062080A1 (en) 2016-04-28

Family

ID=55760217

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/079224 WO2016062080A1 (en) 2014-10-21 2015-05-18 Profile protecting method and device, and storage medium

Country Status (2)

Country Link
CN (1) CN105590065B (en)
WO (1) WO2016062080A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108985104B (en) * 2018-07-20 2022-01-21 南昌黑鲨科技有限公司 Encryption method of intelligent terminal and intelligent terminal

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080177807A1 (en) * 2007-01-23 2008-07-24 International Business Machines Corporation Backing-up and restoring files including files referenced with multiple file names
CN101340675A (en) * 2008-08-27 2009-01-07 深圳华为通信技术有限公司 Method and apparatus for implementing backup and recovery by mobile terminal
CN102831031A (en) * 2011-06-17 2012-12-19 鸿富锦精密工业(深圳)有限公司 Recovery method and system for operating system
CN103514065A (en) * 2012-06-29 2014-01-15 国基电子(上海)有限公司 Electronic device with automatic detection and recovery function and method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6651186B1 (en) * 2000-04-28 2003-11-18 Sun Microsystems, Inc. Remote incremental program verification using API definitions
JP2009277308A (en) * 2008-05-16 2009-11-26 Sony Corp Information processing system, information recording medium, information processing method, and program
CN103577211A (en) * 2012-08-08 2014-02-12 上海赤炫信息科技有限公司 Novel packaging and burning as well as updating methods for Android ROM (read only memory) system
CN103729597B (en) * 2014-01-16 2017-11-17 宇龙计算机通信科技(深圳)有限公司 System starts method of calibration, system starts calibration equipment and terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080177807A1 (en) * 2007-01-23 2008-07-24 International Business Machines Corporation Backing-up and restoring files including files referenced with multiple file names
CN101340675A (en) * 2008-08-27 2009-01-07 深圳华为通信技术有限公司 Method and apparatus for implementing backup and recovery by mobile terminal
CN102831031A (en) * 2011-06-17 2012-12-19 鸿富锦精密工业(深圳)有限公司 Recovery method and system for operating system
CN103514065A (en) * 2012-06-29 2014-01-15 国基电子(上海)有限公司 Electronic device with automatic detection and recovery function and method

Also Published As

Publication number Publication date
CN105590065A (en) 2016-05-18
CN105590065B (en) 2020-07-31

Similar Documents

Publication Publication Date Title
CN102262574B (en) Boot protecting method and device of operating system
WO2017107896A1 (en) Document protection method and device
TWI706274B (en) Computing device and non-transitory computer-readable storage medium enabling operating system repairs via recovery agents
WO2016019893A1 (en) Application installation method and apparatus
US11144644B2 (en) Update management apparatus of industry control system, apparatus and method for update verification
JP2004295871A (en) Verbose hardware identification for binding software package to computer system having tolerance for hardware change
US11601281B2 (en) Managing user profiles securely in a user environment
TW201506788A (en) Secure boot override in a computing device equipped with unified-extensible firmware interface (UEFI)-compliant firmware
JP6391439B2 (en) Information processing apparatus, server apparatus, information processing system, control method, and computer program
WO2013178117A1 (en) Mobile terminal detection method and mobile terminal
CN111008034B (en) Patch generation method and device
JP6846457B2 (en) Automatic verification method and system
WO2017076051A1 (en) Method and apparatus for acquiring superuser permission
WO2016062080A1 (en) Profile protecting method and device, and storage medium
CN108647516B (en) Method and device for defending against illegal privilege escalation
WO2020233044A1 (en) Plug-in verification method and device, and server and computer-readable storage medium
CN108989298B (en) Equipment safety monitoring method and device and computer readable storage medium
CN103309769A (en) Operation system starting protection method and device
CN110781527B (en) Control register protection method and device
US10255138B2 (en) Disaster recovery tool
JP6591832B2 (en) Software tampering detection system and network security system
CN114925336A (en) Method and system for activating software
TW201319862A (en) Embedded devices and control methods thereof
CN108647512B (en) Terminal security control method, device and computer readable storage medium
US9280666B2 (en) Method and electronic device for protecting data

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15852525

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15852525

Country of ref document: EP

Kind code of ref document: A1