CN105975864A - Operation system starting method and device, and terminal - Google Patents

Operation system starting method and device, and terminal Download PDF

Info

Publication number
CN105975864A
CN105975864A CN201610282777.0A CN201610282777A CN105975864A CN 105975864 A CN105975864 A CN 105975864A CN 201610282777 A CN201610282777 A CN 201610282777A CN 105975864 A CN105975864 A CN 105975864A
Authority
CN
China
Prior art keywords
operating system
file
verification
stored
tampered
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610282777.0A
Other languages
Chinese (zh)
Inventor
潘婷
闫昊
张建春
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201610282777.0A priority Critical patent/CN105975864A/en
Publication of CN105975864A publication Critical patent/CN105975864A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/50Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
    • G06F21/57Certifying or maintaining trusted computer platforms, e.g. secure boots or power-downs, version controls, system software checks, secure updates or assessing vulnerabilities
    • G06F21/575Secure boot
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4406Loading of operating system

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本公开是关于操作系统的启动方法、装置及终端,所述方法包括:当启动加载任务运行时,对存储在系统分区中的操作系统文件进行是否被篡改的安全校验;若所述安全校验成功,则利用所述操作系统文件启动操作系统;若所述安全校验失败,则利用操作系统备份文件启动操作系统,所述操作系统备份文件为预先存储的未被篡改的操作系统文件。本实施例在操作系统启动前增加了对文件进行安全校验的过程,且发现文件被篡改时能利用安全的备份文件启动操作系统,从而显著提高了终端的安全性能。

The present disclosure relates to a method, device, and terminal for starting an operating system. The method includes: when the boot loading task is running, performing a security check on whether the operating system file stored in the system partition has been tampered with; if the security check If the verification is successful, use the operating system file to start the operating system; if the security verification fails, use the operating system backup file to start the operating system, and the operating system backup file is a pre-stored operating system file that has not been tampered with. In this embodiment, a process of performing security verification on files is added before the operating system is started, and when a file is found to be tampered with, the operating system can be started using a safe backup file, thereby significantly improving the security performance of the terminal.

Description

操作系统的启动方法、装置及终端Operating system startup method, device and terminal

技术领域technical field

本申请涉及通信技术领域,尤其涉及操作系统的启动方法、装置及终端。The present application relates to the technical field of communications, and in particular to a method, device and terminal for starting an operating system.

背景技术Background technique

随着终端技术的快速发展,终端在人们日常生活中的使用越来越频繁。操作系统(Operating System,简称OS)是管理和控制终端硬件与软件资源的程序,其功能主要包括管理终端系统的硬件、软件及数据资源,控制程序运行,改善人机界面,为其它应用软件提供支持等。因此,操作系统的安全运行对于终端来说非常重要。对于使用Linux或Unix等操作系统的终端,终端可以利用root(系统管理员)工具获得root权限,当第三方软件在获取root权限后,可能会恶意篡改一些系统文件,从而影响终端的正常使用或者导致终端出现异常。With the rapid development of terminal technologies, terminals are used more and more frequently in people's daily life. The operating system (Operating System, referred to as OS) is a program that manages and controls the terminal hardware and software resources. Its functions mainly include managing the hardware, software and data resources of the terminal system, controlling the operation of the program, improving the man-machine interface, and providing information for other application software. support etc. Therefore, the safe operation of the operating system is very important for the terminal. For terminals using operating systems such as Linux or Unix, the terminal can use the root (system administrator) tool to obtain root privileges. When third-party software obtains root privileges, it may maliciously tamper with some system files, thereby affecting the normal use of the terminal or Causes an exception in the terminal.

发明内容Contents of the invention

为克服相关技术中存在的问题,本公开提供了操作系统的启动方法、装置及终端。In order to overcome the problems existing in related technologies, the present disclosure provides a method, device and terminal for starting an operating system.

根据本公开实施例的第一方面,提供一种操作系统的启动方法,所述方法包括:According to a first aspect of an embodiment of the present disclosure, a method for starting an operating system is provided, the method including:

当启动加载任务运行时,对存储在系统分区中的操作系统文件进行是否被篡改的安全校验;When the boot loading task is running, perform a security check on whether the operating system files stored in the system partition have been tampered with;

若所述安全校验成功,则利用所述操作系统文件启动操作系统;If the security check is successful, then use the operating system file to start the operating system;

若所述安全校验失败,则利用操作系统备份文件启动操作系统,所述操作系统备份文件为预先存储的未被篡改的操作系统文件。If the safety verification fails, the operating system is started using the operating system backup file, which is a pre-stored operating system file that has not been tampered with.

可选的,所述对系统分区中的操作系统文件进行是否被篡改的安全校验,包括:Optionally, the security verification of whether the operating system files in the system partition have been tampered with includes:

获取所述操作系统文件的目标校验标识;Acquiring the target verification identifier of the operating system file;

将预存校验标识与所述目标校验标识进行对比,所述预存校验标识预先利用未被篡改的操作系统文件获取得到;Comparing the pre-stored verification identifier with the target verification identifier, the pre-stored verification identifier is obtained in advance by using an operating system file that has not been tampered with;

若预存校验标识与目标校验标识相同,则确定所述安全校验成功;If the pre-stored verification identifier is the same as the target verification identifier, it is determined that the security verification is successful;

若预存校验标识与目标校验标识不同,则确定所述安全校验失败。If the pre-stored verification identifier is different from the target verification identifier, it is determined that the security verification fails.

可选的,所述获取所述操作系统文件的目标校验标识,包括:Optionally, the acquiring the target verification identifier of the operating system file includes:

采用密码算法计算所述操作系统文件的密文作为所述目标校验标识;Using a cryptographic algorithm to calculate the ciphertext of the operating system file as the target verification identifier;

所述预存校验标识包括:预先采用所述密码算法计算所述未被篡改的操作系统文件而获得的密文。The pre-stored verification identifier includes: a ciphertext obtained by pre-calculating the operating system file that has not been tampered with by using the cryptographic algorithm.

可选的,所述操作系统备份文件通过将预先存储在系统备份分区中的加密文件进行解密后获取得到。Optionally, the operating system backup file is obtained by decrypting the encrypted file pre-stored in the system backup partition.

可选的,所述利用操作系统备份文件启动操作系统,包括:Optionally, using the operating system backup file to start the operating system includes:

将所述操作系统备份文件覆盖所述操作系统文件后,将操作系统备份文件作为新的操作系统文件启动操作系统。After the operating system backup file is overwritten with the operating system file, the operating system backup file is used as a new operating system file to start the operating system.

根据本公开实施例的第二方面,提供一种操作系统的启动装置,包括:According to a second aspect of an embodiment of the present disclosure, there is provided a device for starting an operating system, including:

安全校验模块,被配置为当启动加载任务运行时,对存储在系统分区中的操作系统文件进行是否被篡改的安全校验;The safety verification module is configured to perform a safety verification on whether the operating system files stored in the system partition have been tampered with when the boot loading task is running;

启动模块,被配置为:在所述安全校验成功时,利用所述操作系统文件启动操作系统;在所述安全校验失败时,利用操作系统备份文件启动操作系统,所述操作系统备份文件为预先存储的未被篡改的操作系统文件。The startup module is configured to: use the operating system file to start the operating system when the safety verification is successful; use the operating system backup file to start the operating system when the safety verification fails, and the operating system backup file It is a pre-stored untampered operating system file.

可选的,所述安全校验模块,包括:Optionally, the safety verification module includes:

标识获取子模块,被配置为获取所述操作系统文件的目标校验标识;An identification obtaining submodule configured to obtain the target verification identification of the operating system file;

对比子模块,被配置为将预存校验标识与所述目标校验标识进行对比,所述预存校验标识预先利用未被篡改的操作系统文件获取得到;The comparison sub-module is configured to compare the pre-stored verification identifier with the target verification identifier, the pre-stored verification identifier is obtained in advance by using an operating system file that has not been tampered with;

校验确定子模块,被配置为:若预存校验标识与目标校验标识相同,则确定所述安全校验成功;若预存校验标识与目标校验标识不同,则确定所述安全校验失败。The verification determination submodule is configured to: if the pre-stored verification identification is the same as the target verification identification, then determine that the security verification is successful; if the pre-stored verification identification is different from the target verification identification, then determine the security verification fail.

可选的,所述标识获取子模块,包括:Optionally, the identification acquisition submodule includes:

标识计算子模块,被配置为采用密码算法计算所述操作系统文件的密文作为所述目标校验标识;The identification calculation submodule is configured to use a cryptographic algorithm to calculate the ciphertext of the operating system file as the target verification identification;

所述预存校验标识包括:预先采用所述密码算法计算所述未被篡改的操作系统文件而获得的密文。The pre-stored verification identifier includes: a ciphertext obtained by pre-calculating the operating system file that has not been tampered with by using the cryptographic algorithm.

可选的,所述操作系统备份文件通过将预先存储在系统备份分区中的加密文件进行解密后获取得到。Optionally, the operating system backup file is obtained by decrypting the encrypted file pre-stored in the system backup partition.

可选的,所述启动模块,包括:Optionally, the startup module includes:

启动子模块,被配置为将所述操作系统备份文件覆盖所述操作系统文件后,将操作系统备份文件作为新的操作系统文件启动操作系统。The starting sub-module is configured to use the operating system backup file as a new operating system file to start the operating system after overwriting the operating system file with the operating system backup file.

根据本公开实施例的第三方面,提供一种终端,包括:According to a third aspect of the embodiments of the present disclosure, a terminal is provided, including:

处理器;processor;

用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;

其中,所述处理器被配置为:Wherein, the processor is configured as:

当启动加载任务运行时,对存储在系统分区中的操作系统文件进行是否被篡改的安全校验;When the boot loading task is running, perform a security check on whether the operating system files stored in the system partition have been tampered with;

若所述安全校验成功,则利用所述操作系统文件启动操作系统;If the security check is successful, then use the operating system file to start the operating system;

若所述安全校验失败,则利用操作系统备份文件启动操作系统,所述操作系统备份文件为预先存储的未被篡改的操作系统文件。If the safety verification fails, the operating system is started using the operating system backup file, which is a pre-stored operating system file that has not been tampered with.

本公开的实施例提供的技术方案可以包括以下有益效果:The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:

本公开中,可以在启动加载任务运行时,对操作系统文件进行安全校验;若安全校验成功,确定操作系统文件安全,可以利用该操作系统文件启动操作系统;若安全校验失败,确定操作系统文件被篡改,可以利用预存的安全的操作系统备份文件启动操作系统,从而保证终端系统的安全性能。In the present disclosure, the operating system file can be checked for security when the boot loading task is running; if the security check is successful, it is determined that the operating system file is safe, and the operating system file can be used to start the operating system; if the security check fails, it is determined If the operating system files are tampered with, the pre-stored safe operating system backup files can be used to start the operating system, thereby ensuring the security performance of the terminal system.

本公开中,安全校验的过程可以采用对比校验标识的方式进行,通过对比两者的不同,即可确定当前系统分区中的操作系统文件是否被篡改,利用上述方式能快速地确定安全校验是否成功。In the present disclosure, the process of security verification can be carried out by comparing the verification marks. By comparing the differences between the two, it can be determined whether the operating system files in the current system partition have been tampered with. Using the above method, it is possible to quickly determine whether the security verification marks are tampered with. whether the test was successful.

本公开中,可以采用计算密文作为校验标识,该方式能进一步提高终端的安全性能。In the present disclosure, the calculated ciphertext can be used as the verification identifier, and this method can further improve the security performance of the terminal.

本公开中,可以对操作系统备份文件进行加密后得到加密文件并存储在系统备份分区中,从而提高操作系统备份文件的安全性。In the present disclosure, the operating system backup file can be encrypted to obtain an encrypted file and stored in the system backup partition, thereby improving the security of the operating system backup file.

本公开中,可在系统分区中,将操作系统备份文件覆盖操作系统文件,也即是在系统分区中删除原操作系统文件,并将备份文件存储至系统分区中作为新的操作系统文件,从而安全启动操作系统。In the present disclosure, the operating system backup file can be overwritten in the system partition, that is, the original operating system file is deleted in the system partition, and the backup file is stored in the system partition as a new operating system file, thereby Securely boot the operating system.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.

附图说明Description of drawings

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure.

图1是本公开根据一示例性实施例示出的一种操作系统的启动方法的流程图。Fig. 1 is a flow chart showing a method for starting an operating system according to an exemplary embodiment of the present disclosure.

图2是本公开根据一示例性实施例示出的一种操作系统的启动装置的框图。Fig. 2 is a block diagram showing a device for starting an operating system according to an exemplary embodiment of the present disclosure.

图3是本公开根据一示例性实施例示出的另一种操作系统的启动装置的框图。Fig. 3 is a block diagram showing another device for starting an operating system according to an exemplary embodiment of the present disclosure.

图4是本公开根据一示例性实施例示出的另一种操作系统的启动装置的框图。Fig. 4 is a block diagram showing another device for starting an operating system according to an exemplary embodiment of the present disclosure.

图5是本公开根据一示例性实施例示出的另一种操作系统的启动装置的框图。Fig. 5 is a block diagram showing another device for starting an operating system according to an exemplary embodiment of the present disclosure.

图6本公开根据一示例性实施例示出的一种用于操作系统的启动装置的框图。Fig. 6 is a block diagram of a device for starting an operating system according to an exemplary embodiment of the present disclosure.

具体实施方式detailed description

这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present disclosure as recited in the appended claims.

在本公开使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本公开。在本公开和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。The terminology used in the present disclosure is for the purpose of describing particular embodiments only, and is not intended to limit the present disclosure. As used in this disclosure and the appended claims, the singular forms "a", "the", and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise. It should also be understood that the term "and/or" as used herein refers to and includes any and all possible combinations of one or more of the associated listed items.

应当理解,尽管在本公开可能采用术语第一、第二、第三等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本公开范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”。It should be understood that although the terms first, second, third, etc. may be used in the present disclosure to describe various information, the information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, without departing from the scope of the present disclosure, first information may also be called second information, and similarly, second information may also be called first information. Depending on the context, the word "if" as used herein may be interpreted as "at" or "when" or "in response to a determination."

Root可以理解为是Linux和Unix等操作系统中的超级管理员用户帐户,该帐户拥有整个操作系统最高的权限,因此可以对系统中的任何文件(包括系统文件)执行所有增、删、改或查等操作。很多病毒或恶意软件在入侵系统的时候,都要把权限提升到root权限。Root can be understood as a super administrator user account in operating systems such as Linux and Unix. This account has the highest authority in the entire operating system, so it can perform all additions, deletions, changes, or additions to any file in the system (including system files). Check and other operations. When many viruses or malware invade the system, they must elevate their privileges to root privileges.

现有的智能手机、电子书阅读器、平板电脑、随身听或个人数字助理等智能终端通常采用安卓等操作系统。此类终端可以通过第三方root工具轻易地获得root权限,因此系统文件面临被篡改的风险,终端的安全性能无法保障。传统技术中也有一些终端产商对操作系统采用一些封锁手段防止root权限被获取,但这种方式无法满足一些用户的需求,无法给用户提供便利。Existing intelligent terminals such as smart phones, e-book readers, tablet computers, walkmans or personal digital assistants usually use operating systems such as Android. Such terminals can easily obtain root privileges through third-party root tools, so system files face the risk of being tampered with, and the security performance of the terminal cannot be guaranteed. In the traditional technology, some terminal manufacturers also adopt some blocking means to the operating system to prevent the root authority from being obtained, but this method cannot meet the needs of some users and cannot provide convenience to users.

启动加载(bootloader)是终端在加电后执行的第一段代码,该段代码存储在终端存储器的启动加载分区中,其作用是完成终端CPU和相关硬件的初始化,以及建立内存空间的映射图,从而将终端的软硬件环境带到一个合适的状态,以便为最终启动操作系统准备好正确的环境。因此,本公开实施例所提供的方案,可以在启动加载任务运行时,对操作系统文件进行安全校验;若安全校验成功,即操作系统文件安全,可以利用该操作系统文件启动操作系统;若安全校验失败,即操作系统文件被篡改,可以利用预存的安全的操作系统备份文件启动操作系统,从而保证终端系统的安全性能。Bootloader (bootloader) is the first piece of code executed by the terminal after it is powered on. This piece of code is stored in the bootloader partition of the terminal memory. Its function is to complete the initialization of the terminal CPU and related hardware, and to establish a memory space map , so as to bring the hardware and software environment of the terminal to an appropriate state, so as to prepare the correct environment for the final startup of the operating system. Therefore, the solution provided by the embodiments of the present disclosure can perform security verification on the operating system file when the boot loading task is running; if the security verification is successful, that is, the operating system file is safe, and the operating system file can be used to start the operating system; If the safety verification fails, that is, the operating system file has been tampered with, the operating system can be started by using the pre-stored safe operating system backup file, thereby ensuring the security performance of the terminal system.

值得注意的是,传统的个人计算机等终端中,也有通过备份文件启动操作系统的过程,然而此类终端中,通常是由用户预先进行系统备份,当用户发现系统崩溃、或者是发现系统中毒,或者是发现系统运行缓慢需要重装系统时,由用户自行进行操作系统的备份还原。此种方式中,终端并没有如本公开实施例方案中对系统文件检验是否安全的过程,并且,由上述系统崩溃或中毒可知,操作系统是由已经被篡改的操作系统文件所启动,因此终端的安全性能无法保证。本公开与上述传统的由用户利用备份文件重装系统的惯常手段不同,本公开的终端能自动对系统文件进行安全校验,且安全校验的时机是在启动加载任务运行时,即操作系统启动前。当安全校验失败时,终端自动通过备份文件启动操作系统。由于终端能自动发现系统文件被篡改,因此终端不会利用该被篡改的系统文件启动操作系统。通过上述分析可知,本公开所提供的方案,正是由于在操作系统启动前增加了对文件进行安全校验的过程,且发现文件被篡改时能利用安全的备份文件启动操作系统,从而显著提高了终端的安全性能。接下来对本公开方案进行详细说明。It is worth noting that traditional personal computers and other terminals also have the process of starting the operating system through backup files. However, in such terminals, users usually perform system backups in advance. Or when it is found that the system is running slowly and needs to be reinstalled, the user can backup and restore the operating system by himself. In this way, the terminal does not have the process of checking whether the system files are safe as in the solution of the embodiment of the present disclosure, and it can be seen from the above-mentioned system crash or poisoning that the operating system is started by the operating system file that has been tampered with, so the terminal safety performance cannot be guaranteed. This disclosure is different from the above-mentioned conventional means of reinstalling the system by users using backup files. The terminal of this disclosure can automatically perform security checks on system files, and the timing of security checks is when the loading task is started, that is, the operating system before starting. When the safety verification fails, the terminal automatically starts the operating system through the backup file. Since the terminal can automatically find that the system file has been tampered with, the terminal will not use the tampered system file to start the operating system. Through the above analysis, it can be seen that the solution provided by the present disclosure is precisely due to the increase of the process of security verification of the file before the operating system is started, and when the file is found to be tampered with, the safe backup file can be used to start the operating system, thereby significantly improving terminal security performance. Next, the disclosed scheme will be described in detail.

如图1所示,图1是本公开根据一示例性实施例示出的一种操作系统的启动方法的流程图,可应用于终端中,包括以下步骤101至103:As shown in FIG. 1, FIG. 1 is a flowchart of a method for starting an operating system according to an exemplary embodiment of the present disclosure, which can be applied to a terminal, and includes the following steps 101 to 103:

在步骤101中,当启动加载任务运行时,对存储在系统分区中的操作系统文件进行是否被篡改的安全校验。In step 101, when the bootloading task is running, a security check is performed on whether the operating system files stored in the system partition have been tampered with.

本公开实施例中,终端内置的存储器通常可以配置有多个分区,例如启动加载分区存储启动加载代码,系统分区存储操作系统文件等。当启动加载任务运行时,也即是操作系统未启动前,可以对存储在系统分区中的操作系统文件进行安全校验,以在操作系统启动前确定操作系统文件是否被篡改,从而在传统的操作系统启动过程中增加安全校验过程,因此能提高终端的安全性能。In the embodiments of the present disclosure, the built-in memory of the terminal can generally be configured with multiple partitions, for example, the bootloading partition stores bootloading codes, and the system partition stores operating system files. When the boot loading task is running, that is, before the operating system is started, the operating system files stored in the system partition can be checked for safety, so as to determine whether the operating system files have been tampered with before the operating system starts, so that the traditional A security verification process is added during the startup process of the operating system, so the security performance of the terminal can be improved.

对于如何进行安全校验的过程,在具体实施时可以有多种方式。首先,以安卓操作系统为例说明操作系统文件。在采用安卓操作系统的终端中,终端内置存储器所划分的系统分区的路径为/system,该分区存储的操作系统文件通常可以包括:For the process of how to perform security verification, there may be multiple ways in specific implementation. First, the operating system file is described by taking the Android operating system as an example. In a terminal using the Android operating system, the path of the system partition divided by the terminal's built-in memory is /system, and the operating system files stored in this partition can usually include:

/system/app:此目录主要存储系统程序或终端厂商定制软件。/system/app: This directory mainly stores system programs or customized software of terminal manufacturers.

/system/bin:此目录主要存储的主要是Linux系统自带的组件。/system/bin: This directory mainly stores the components that come with the Linux system.

/system/etc:此目录主要存储安卓系统配置文件,例如APN接入点等核心配置文件。/system/etc: This directory mainly stores Android system configuration files, such as core configuration files such as APN access points.

/system/fonts:此目录主要存储系统字体。/system/fonts: This directory mainly stores system fonts.

/system/framework:此目录主要存储核心文件以及系统平台运行框架。/system/framework: This directory mainly stores core files and system platform running frameworks.

/system/lib:此目录主要存储系统底层库及平台运行库。/system/lib: This directory mainly stores the underlying system library and platform runtime library.

/system/media:此目录主要存储系统提示音及系统铃声。/system/media: This directory mainly stores system prompts and system ringtones.

/system/usr:此目录主要存储用户数据。/system/usr: This directory mainly stores user data.

/system/cache:此目录主要存储缓存数据。/system/cache: This directory mainly stores cache data.

/system/date:此目录主要存储用户安装的软件以及数据。/system/date: This directory mainly stores software and data installed by users.

因此,在对操作系统文件进行安全校验时,可以是通过扫描的方式检查全部或部分操作系统文件是否异常。例如,app、bin、etc、framework、lib或usr等目录下存储有与操作系统安全较为相关的文件,可以对此目录下的文件全部进行检查。或者,还可以是检查操作系统分区中是否增加了异常文件或程序,或者是检查操作系统分区中是否缺少了必要的内核文件等,此类方式能准确地检查出操作系统文件是否被篡改,其校验结果精确,但有可能因操作系统文件较多而导致检查速度慢,检查耗时较长。Therefore, when performing security verification on the operating system files, it may be checked whether all or part of the operating system files are abnormal by means of scanning. For example, files related to operating system security are stored in directories such as app, bin, etc, framework, lib, or usr, and all files in this directory can be checked. Or, it can also be to check whether abnormal files or programs are added in the operating system partition, or to check whether necessary kernel files are missing in the operating system partition. The check result is accurate, but the check speed may be slow due to the large number of operating system files, and the check takes a long time.

以上示例仅以安卓系统为例进行说明,可以理解,在实际应用时,本领域技术人员可以以安全校验为原则,按照上述说明,以及终端所采用的操作系统的系统架构及操作系统文件的具体存储路径等进行适应性调整,从而灵活地配置安全校验的策略。The above example only uses the Android system as an example for illustration. It can be understood that in practical applications, those skilled in the art can use security verification as a principle, follow the above description, and the system architecture of the operating system and operating system files used by the terminal. Specific storage paths, etc. are adaptively adjusted to flexibly configure security verification policies.

为了使安全校验的过程快速准确地进行,在一个可选的实现方式中,所述对系统分区中的操作系统文件进行是否被篡改的安全校验,可以包括:In order to make the process of safety verification fast and accurate, in an optional implementation manner, the safety verification of whether the operating system files in the system partition have been tampered with may include:

获取所述操作系统文件的目标校验标识。Obtain the target verification identifier of the operating system file.

将预存校验标识与所述目标校验标识进行对比,所述预存校验标识预先利用未被篡改的操作系统文件获取得到。The pre-stored verification identifier is compared with the target verification identifier, and the pre-stored verification identifier is obtained in advance by using an operating system file that has not been tampered with.

若预存校验标识与目标校验标识相同,则确定所述安全校验成功。If the pre-stored verification identifier is the same as the target verification identifier, it is determined that the security verification is successful.

若预存校验标识与目标校验标识不同,则确定所述安全校验失败。If the pre-stored verification identifier is different from the target verification identifier, it is determined that the security verification fails.

本公开实施例中,安全校验的过程可以采用对比校验标识的方式进行,具体是将当前系统分区中存储的操作系统文件的目标校验标识,与预先利用未被篡改的操作系统文件获取的预存校验标识进行对比。In the embodiment of the present disclosure, the process of security verification can be performed by comparing the verification identification, specifically, comparing the target verification identification of the operating system file stored in the current system partition with the pre-used operating system file that has not been tampered with. Compare with the pre-stored verification ID.

校验标识用以标识操作系统文件是否被篡改,其可以采用多种方式获得。例如,可以是全部操作系统文件的文件名称所构成的标识,或者是部分指定的重要的操作系统文件的文件名称所构成的标识,或者是全部或部分操作系统文件的文件大小所构成的标识,或者是全部或部分操作系统文件的文件修改时间所构成的标识,或者是全部或部分操作系统文件的一种或多种属性信息组合所构成的标识,或者是对全部或部分操作系统文件的进行加密所获得的密文等。The verification flag is used to identify whether the operating system file has been tampered with, and it can be obtained in various ways. For example, it may be an identifier formed by the file names of all operating system files, or an identifier formed by the file names of some specified important operating system files, or an identifier formed by the file size of all or part of the operating system files, Or it is an identification composed of the file modification time of all or part of the operating system files, or an identification composed of one or more attribute information combinations of all or part of the operating system files, or an identification of all or part of the operating system files The obtained ciphertext and the like are encrypted.

当操作系统文件被篡改时,篡改前后的校验标识则不会相同,通过对比两者是否相同,即可确定当前系统分区中的操作系统文件是否被篡改。若当前操作系统文件未被篡改,则目标校验标识与预存校验标识相同,利用上述方式能快速地确定安全校验是否成功。When the operating system file is tampered with, the verification marks before and after the tampering will not be the same. By comparing whether the two are the same, it can be determined whether the operating system file in the current system partition has been tampered with. If the current operating system file has not been tampered with, the target verification identifier is the same as the pre-stored verification identifier, and the above method can quickly determine whether the security verification is successful.

在一个可选的实现方式中,所述获取所述操作系统文件的目标校验标识,可以包括:In an optional implementation manner, the acquiring the target verification identifier of the operating system file may include:

采用密码算法计算所述操作系统文件的密文作为所述目标校验标识。A cryptographic algorithm is used to calculate the ciphertext of the operating system file as the target verification identifier.

所述预存校验标识包括:预先采用所述密码算法计算所述未被篡改的操作系统文件而获得的密文。The pre-stored verification identifier includes: a ciphertext obtained by pre-calculating the operating system file that has not been tampered with by using the cryptographic algorithm.

本公开实施例中,密码算法可以包括DES(Data Encryption Standard,对称算法)、IDEA(International Data Encryption Algorithm,国际数据加密算法),以及数据摘要算法,如CRC(Cyclic Redundancy Check,循环冗余校验)算法或MD5(Message Digest Algorithm MD5,消息摘要算法第五版)算法等。具体所采用的密码算法可以根据实际需要而确定,本公开实施例对此不作限定。In the embodiment of the present disclosure, the cryptographic algorithm may include DES (Data Encryption Standard, symmetric algorithm), IDEA (International Data Encryption Algorithm, international data encryption algorithm), and data summary algorithm, such as CRC (Cyclic Redundancy Check, cyclic redundancy check ) algorithm or MD5 (Message Digest Algorithm MD5, message digest algorithm fifth edition) algorithm, etc. The specific cryptographic algorithm used may be determined according to actual needs, which is not limited in this embodiment of the present disclosure.

以MD5算法为例,MD5算法的原理可以简单理解为:输入任意长度的信息,通过不可逆的字符串变换算法进行处理,输出128位的信息(数字指纹,也即是密文),并且,不同的输入会得到不同的结果。因此,对于所输入的信息,MD5值可以称为输入信息的“数字指纹”。在本公开实施例中,如果操作系统文件被篡改,其MD5值,也就是对应的“数字指纹”就会发生变化。Taking the MD5 algorithm as an example, the principle of the MD5 algorithm can be simply understood as: input information of any length, process it through an irreversible string transformation algorithm, and output 128-bit information (digital fingerprint, that is, ciphertext), and, different input will give different results. Therefore, for the information entered, the MD5 value can be called the "digital fingerprint" of the entered information. In the embodiment of the present disclosure, if the operating system file is tampered with, its MD5 value, that is, the corresponding "digital fingerprint" will change.

因此,可以利用密码算法对当前操作系统文件计算密文,而终端预先采用所述密码算法计算未被篡改的操作系统文件的密文,通过两者的对比,即可确定当前操作系统文件是否被篡改。采用计算密文作为校验标识的方式,能进一步提高终端的安全性能。Therefore, the cryptographic algorithm can be used to calculate the ciphertext of the current operating system file, and the terminal uses the cryptographic algorithm to calculate the ciphertext of the untampered operating system file in advance. By comparing the two, it can be determined whether the current operating system file has been tampered with. tamper. Using the method of calculating the ciphertext as the verification mark can further improve the security performance of the terminal.

其中,在利用密码算法计算操作系统的校验标识时,作为输入的信息可以有多种选择,例如可以采用全部操作系统文件、或者是部分操作系统文件,还可以是采用全部或部分操作系统文件的属性信息,例如文件名称、文件大小或文件路径等一种或多种信息的组合等。Wherein, when using the cryptographic algorithm to calculate the verification mark of the operating system, there are many options for the input information, for example, all operating system files, or part of the operating system files can be used, or all or part of the operating system files can be used. Attribute information, such as a file name, file size, or a combination of one or more types of information such as file path.

可以理解,预存校验标识是采用同样的密码算法预先计算未被篡改的操作系统文件而获得的密文。由于安全校验的过程在启动加载任务运行时进行,因此预存校验标识可以存储在启动加载分区中,从而在启动加载任务进行时可以快速地从该分区中获取到预存校验标识,进而提高安全校验的速度。而上述采用密码算法所获得的密文,其通常为一数值或字符串,因此并不会占用太多的存储空间。It can be understood that the pre-stored verification identifier is a ciphertext obtained by pre-computing untampered operating system files using the same cryptographic algorithm. Since the process of security verification is performed when the boot loading task is running, the pre-stored verification identifier can be stored in the boot-loading partition, so that the pre-stored verification identifier can be quickly obtained from the partition when the boot-loading task is in progress, thereby improving The speed of security checks. The above-mentioned ciphertext obtained by using the cryptographic algorithm is usually a numerical value or a character string, so it does not occupy too much storage space.

在步骤102中,若所述安全校验成功,则利用所述操作系统文件启动操作系统。In step 102, if the security verification is successful, the operating system is started using the operating system file.

本公开实施例中,若安全校验成功,则可确定操作系统文件未被篡改,从而可利用系统分区中的操作系统文件安全启动操作系统。In the embodiment of the present disclosure, if the security check is successful, it can be determined that the operating system file has not been tampered with, so that the operating system file in the system partition can be used to safely start the operating system.

在步骤103中,若所述安全校验失败,则利用操作系统备份文件启动操作系统,所述操作系统备份文件为预先存储的未被篡改的操作系统文件。In step 103, if the safety verification fails, the operating system is started using the operating system backup file, which is a pre-stored operating system file that has not been tampered with.

在本实施例中,若安全校验失败,则可确定操作系统文件被篡改,若通过系统分区中的操作系统文件启动操作系统,则难以保证终端的安全性能。因此可以利用操作系统备份文件启动操作系统。该操作系统备份文件为预先存储的未被篡改的操作系统文件,因此能保证终端的安全性能。In this embodiment, if the security verification fails, it can be determined that the operating system file has been tampered with. If the operating system is started through the operating system file in the system partition, it is difficult to guarantee the security performance of the terminal. Therefore, the operating system can be started using the operating system backup file. The operating system backup file is a pre-stored operating system file that has not been tampered with, so the security performance of the terminal can be guaranteed.

其中,预存校验标识和操作系统备份文件可以是在操作系统升级时进行存储,还可以根据预设周期进行更新。Wherein, the pre-stored verification identifier and the operating system backup file may be stored when the operating system is upgraded, and may also be updated according to a preset period.

在一个可选的实现方式中,所述操作系统备份文件通过将预先存储在系统备份分区中的加密文件进行解密后获取得到。In an optional implementation manner, the operating system backup file is obtained by decrypting an encrypted file pre-stored in the system backup partition.

本公开实施例中,为了提高操作系统备份文件的安全性,可以对操作系统备份文件进行加密后得到加密文件并存储在系统备份分区中。由于存储器中存储的是加密文件,因此能够有效防止备份文件被恶意软件篡改或植入病毒等。当需要利用备份文件启动操作系统时,可以对加密文件进行解密获得操作系统备份文件,从而利用操作系统备份文件安全启动操作系统。In the embodiments of the present disclosure, in order to improve the security of the operating system backup file, the operating system backup file may be encrypted to obtain an encrypted file and stored in the system backup partition. Since encrypted files are stored in the memory, the backup files can be effectively prevented from being tampered with by malicious software or implanted with viruses. When it is necessary to use the backup file to start the operating system, the encrypted file can be decrypted to obtain the operating system backup file, so that the operating system can be safely started using the operating system backup file.

在一个可选的实现方式中,所述利用操作系统备份文件启动操作系统,包括:In an optional implementation manner, the starting the operating system by using the operating system backup file includes:

将所述操作系统备份文件覆盖所述操作系统文件后,将操作系统备份文件作为新的操作系统文件启动操作系统。After the operating system backup file is overwritten with the operating system file, the operating system backup file is used as a new operating system file to start the operating system.

当确定操作系统文件被篡改时,则不再利用该被篡改的系统文件启动操作系统,本公开实施例中可在系统分区中,将操作系统备份文件覆盖操作系统文件,也即是在系统分区中删除原操作系统文件,并将备份文件存储至系统分区中作为新的操作系统文件,从而安全启动操作系统。When it is determined that the operating system file has been tampered with, the tampered system file is no longer used to start the operating system. In the embodiment of the present disclosure, the operating system backup file can be overwritten in the system partition Delete the original operating system files, and store the backup files in the system partition as new operating system files, so as to safely start the operating system.

与前述操作系统的启动方法的实施例相对应,本公开还提供了操作系统的启动装置及其所应用的终端的实施例。Corresponding to the foregoing embodiments of the method for starting an operating system, the present disclosure also provides embodiments of a device for starting an operating system and a terminal to which it is applied.

如图2所示,图2是本公开根据一示例性实施例示出的一种操作系统的启动装置的框图,所述装置包括:安全校验模块21和启动模块22。As shown in FIG. 2 , FIG. 2 is a block diagram of an operating system startup device according to an exemplary embodiment of the present disclosure, and the device includes: a security verification module 21 and a startup module 22 .

其中,安全校验模块21,被配置为当启动加载任务运行时,对存储在系统分区中的操作系统文件进行是否被篡改的安全校验。Wherein, the security checking module 21 is configured to check whether the operating system files stored in the system partition have been tampered with when the bootloading task is running.

启动模块22,被配置为:在所述安全校验模块21中的安全校验成功时,利用所述操作系统文件启动操作系统;在所述安全校验模块21中的安全校验失败时,利用操作系统备份文件启动操作系统,所述操作系统备份文件为预先存储的未被篡改的操作系统文件。The startup module 22 is configured to: when the security check in the security check module 21 succeeds, use the operating system file to start the operating system; when the security check in the security check module 21 fails, The operating system is started by using the operating system backup file, and the operating system backup file is a pre-stored operating system file that has not been tampered with.

由上述实施例可见,本实施例可以在启动加载任务运行时,对操作系统文件进行安全校验;若安全校验成功,确定操作系统文件安全,可以利用该操作系统文件启动操作系统;若安全校验失败,确定操作系统文件被篡改,可以利用预存的安全的操作系统备份文件启动操作系统,从而保证终端系统的安全性能。As can be seen from the foregoing embodiments, this embodiment can perform a security check on the operating system file when the boot loading task is running; if the security check is successful, it is determined that the operating system file is safe, and the operating system file can be used to start the operating system; If the verification fails, it is determined that the operating system file has been tampered with, and the operating system can be started using the pre-stored safe operating system backup file, thereby ensuring the security performance of the terminal system.

如图3所示,图3是本公开根据一示例性实施例示出的另一种操作系统的启动装置的框图,该实施例在前述图2所示实施例的基础上,所述安全校验模块21,包括:标识获取子模块211、对比子模块212和校验确定子模块213。As shown in FIG. 3, FIG. 3 is a block diagram of another operating system startup device according to an exemplary embodiment of the present disclosure. On the basis of the embodiment shown in FIG. 2, the security check The module 21 includes: an identification acquisition submodule 211 , a comparison submodule 212 and a verification determination submodule 213 .

其中,标识获取子模块211,被配置为获取所述操作系统文件的目标校验标识。Wherein, the identification obtaining submodule 211 is configured to obtain the target verification identification of the operating system file.

对比子模块212,被配置为将预存校验标识与所述标识获取子模块211所获取的目标校验标识进行对比,所述预存校验标识预先利用未被篡改的操作系统文件获取得到。The comparison sub-module 212 is configured to compare the pre-stored verification ID with the target verification ID acquired by the ID acquisition sub-module 211, and the pre-stored verification ID is obtained in advance by using an operating system file that has not been tampered with.

校验确定子模块213,被配置为:若对比子模块212对比预存校验标识与目标校验标识相同,则确定所述安全校验成功;若对比子模块212对比预存校验标识与目标校验标识不同,则确定所述安全校验失败。The verification determination sub-module 213 is configured to: if the comparison sub-module 212 compares the pre-stored verification logo with the target verification logo, it is determined that the security verification is successful; if the comparison sub-module 212 compares the pre-stored verification logo with the target verification logo If the verification identifiers are different, it is determined that the security verification fails.

由上述实施例可见,安全校验的过程可以采用对比校验标识的方式进行,通过对比两者的不同,即可确定当前系统分区中的操作系统文件是否被篡改,利用上述方式能快速地确定安全校验是否成功。It can be seen from the above embodiments that the process of security verification can be carried out by comparing the verification marks. By comparing the difference between the two, it can be determined whether the operating system file in the current system partition has been tampered with. Using the above method, it can be quickly determined Whether the security verification is successful.

如图4所示,图4是本公开根据一示例性实施例示出的另一种操作系统的启动装置的框图,该实施例在前述图3所示实施例的基础上,所述标识获取子模块211,包括:标识计算子模块2111。As shown in FIG. 4 , FIG. 4 is a block diagram of another operating system startup device according to an exemplary embodiment of the present disclosure. On the basis of the embodiment shown in FIG. 3 , the identification acquisition sub The module 211 includes: an identification calculation sub-module 2111 .

其中,标识计算子模块,被配置为采用密码算法计算所述操作系统文件的密文作为所述目标校验标识。Wherein, the identification calculation submodule is configured to use a cryptographic algorithm to calculate the ciphertext of the operating system file as the target verification identification.

所述预存校验标识包括:预先采用所述密码算法计算所述未被篡改的操作系统文件而获得的密文。The pre-stored verification identifier includes: a ciphertext obtained by pre-calculating the operating system file that has not been tampered with by using the cryptographic algorithm.

由上述实施例可见,可以采用计算密文作为校验标识,该方式能进一步提高终端的安全性能。It can be seen from the above embodiments that the calculated ciphertext can be used as the verification identifier, and this method can further improve the security performance of the terminal.

在一个可选的实现方式中,所述操作系统备份文件通过将预先存储在系统备份分区中的加密文件进行解密后获取得到。In an optional implementation manner, the operating system backup file is obtained by decrypting an encrypted file pre-stored in the system backup partition.

由上述实施例可见,可以对操作系统备份文件进行加密后得到加密文件并存储在系统备份分区中,从而提高操作系统备份文件的安全性。It can be seen from the foregoing embodiments that the operating system backup file can be encrypted to obtain an encrypted file and stored in the system backup partition, thereby improving the security of the operating system backup file.

如图5所示,图5是本公开根据一示例性实施例示出的另一种操作系统的启动装置的框图,该实施例在前述图2所示实施例的基础上,所述启动模块22,包括:As shown in FIG. 5, FIG. 5 is a block diagram of another operating system startup device according to an exemplary embodiment of the present disclosure. On the basis of the embodiment shown in FIG. 2, the startup module 22 ,include:

启动子模块221,被配置为将所述操作系统备份文件覆盖所述操作系统文件后,将操作系统备份文件作为新的操作系统文件启动操作系统。The starting sub-module 221 is configured to use the operating system backup file as a new operating system file to start the operating system after overwriting the operating system file with the operating system backup file.

由上述实施例可见,可在系统分区中,将操作系统备份文件覆盖操作系统文件,也即是在系统分区中删除原操作系统文件,并将备份文件存储至系统分区中作为新的操作系统文件,从而安全启动操作系统。It can be seen from the above embodiments that the operating system backup file can be overwritten in the system partition, that is, the original operating system file is deleted in the system partition, and the backup file is stored in the system partition as a new operating system file , thereby securely booting the operating system.

相应的,本公开还提供一种终端,所述终端包括有处理器;用于存储处理器可执行指令的存储器;其中,所述处理器被配置为:Correspondingly, the present disclosure also provides a terminal, where the terminal includes a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to:

当启动加载任务运行时,对存储在系统分区中的操作系统文件进行是否被篡改的安全校验。When the boot loading task is running, a security check is performed on whether the operating system files stored in the system partition have been tampered with.

若所述安全校验成功,则利用所述操作系统文件启动操作系统。If the security verification is successful, the operating system file is used to start the operating system.

若所述安全校验失败,则利用操作系统备份文件启动操作系统,所述操作系统备份文件为预先存储的未被篡改的操作系统文件。If the safety verification fails, the operating system is started using the operating system backup file, which is a pre-stored operating system file that has not been tampered with.

上述装置中各个模块的功能和作用的实现过程具体详见上述方法中对应步骤的实现过程,在此不再赘述。For the implementation process of the functions and effects of each module in the above-mentioned device, please refer to the implementation process of the corresponding steps in the above-mentioned method for details, and details will not be repeated here.

对于装置实施例而言,由于其基本对应于方法实施例,所以相关之处参见方法实施例的部分说明即可。以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理模块,即可以位于一个地方,或者也可以分布到多个网络模块上。可以根据实际的需要选择其中的部分或者全部模块来实现本公开方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。As for the device embodiment, since it basically corresponds to the method embodiment, for related parts, please refer to the part description of the method embodiment. The device embodiments described above are only illustrative, and the modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in One place, or it can be distributed to multiple network modules. Part or all of the modules can be selected according to actual needs to achieve the purpose of the disclosed solution. It can be understood and implemented by those skilled in the art without creative effort.

图6是根据一示例性实施例示出的一种用于操作系统的启动装置600的框图。例如,装置600可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。Fig. 6 is a block diagram showing a device 600 for starting an operating system according to an exemplary embodiment. For example, the apparatus 600 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.

参照图6,装置600可以包括以下一个或多个组件:处理组件602,存储器604,电源组件606,多媒体组件608,音频组件610,输入/输出(I/O)的接口612,传感器组件614,以及通信组件616。6, device 600 may include one or more of the following components: processing component 602, memory 604, power supply component 606, multimedia component 608, audio component 610, input/output (I/O) interface 612, sensor component 614, and communication component 616 .

处理组件602通常控制装置600的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件602可以包括一个或多个处理器620来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件602可以包括一个或多个模块,便于处理组件602和其他组件之间的交互。例如,处理组件602可以包括多媒体模块,以方便多媒体组件606和处理组件602之间的交互。The processing component 602 generally controls the overall operations of the device 600, such as those associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to complete all or part of the steps of the above method. Additionally, processing component 602 may include one or more modules that facilitate interaction between processing component 602 and other components. For example, processing component 602 may include a multimedia module to facilitate interaction between multimedia component 606 and processing component 602 .

存储器604被配置为存储各种类型的数据以支持在装置600的操作。这些数据的示例包括用于在装置600上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器604可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。The memory 604 is configured to store various types of data to support operations at the device 600 . Examples of such data include instructions for any application or method operating on device 600, contact data, phonebook data, messages, pictures, videos, and the like. The memory 604 can be implemented by any type of volatile or non-volatile storage device or their combination, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.

电源组件606为装置600的各种组件提供电力。电源组件606可以包括电源管理系统,一个或多个电源,及其他与为装置600生成、管理和分配电力相关联的组件。The power supply component 606 provides power to various components of the device 600 . Power components 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for device 600 .

多媒体组件608包括在所述装置600和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件608包括一个前置摄像头和/或后置摄像头。当装置600处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。The multimedia component 608 includes a screen that provides an output interface between the device 600 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense a boundary of a touch or swipe action, but also detect duration and pressure associated with the touch or swipe action. In some embodiments, the multimedia component 608 includes a front camera and/or a rear camera. When the device 600 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capability.

音频组件610被配置为输出和/或输入音频信号。例如,音频组件610包括一个麦克风(MIC),当装置600处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器604或经由通信组件616发送。在一些实施例中,音频组件610还包括一个扬声器,用于输出音频信号。The audio component 610 is configured to output and/or input audio signals. For example, the audio component 610 includes a microphone (MIC) configured to receive external audio signals when the device 600 is in operation modes, such as call mode, recording mode and voice recognition mode. Received audio signals may be further stored in memory 604 or sent via communication component 616 . In some embodiments, the audio component 610 also includes a speaker for outputting audio signals.

I/O接口612为处理组件602和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 612 provides an interface between the processing component 602 and a peripheral interface module. The peripheral interface module may be a keyboard, a click wheel, a button, and the like. These buttons may include, but are not limited to: a home button, volume buttons, start button, and lock button.

传感器组件614包括一个或多个传感器,用于为装置600提供各个方面的状态评估。例如,传感器组件614可以检测到装置600的打开/关闭状态,组件的相对定位,例如所述组件为装置600的显示器和小键盘,传感器组件614还可以检测装置600或装置600一个组件的位置改变,用户与装置600接触的存在或不存在,装置600方位或加速/减速和装置600的温度变化。传感器组件614可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件614还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件614还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。Sensor assembly 614 includes one or more sensors for providing status assessments of various aspects of device 600 . For example, the sensor component 614 can detect the open/closed state of the device 600, the relative positioning of components, such as the display and keypad of the device 600, and the sensor component 614 can also detect a change in the position of the device 600 or a component of the device 600 , the presence or absence of user contact with the device 600 , the device 600 orientation or acceleration/deceleration and the temperature change of the device 600 . The sensor assembly 614 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. Sensor assembly 614 may also include optical sensors, such as CMOS or CCD image sensors, for use in imaging applications. In some embodiments, the sensor component 614 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.

通信组件616被配置为便于装置600和其他设备之间有线或无线方式的通信。装置600可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件616经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件616还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。The communication component 616 is configured to facilitate wired or wireless communication between the apparatus 600 and other devices. The device 600 can access wireless networks based on communication standards, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 616 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wide Band (UWB) technology, Bluetooth (BT) technology and other technologies.

在示例性实施例中,装置600可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment, apparatus 600 may be programmed by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation for performing the methods described above.

在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器604,上述指令可由装置600的处理器620执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as the memory 604 including instructions, which can be executed by the processor 620 of the device 600 to implement the above method. For example, the non-transitory computer readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.

其中,当所述存储介质中的指令由所述处理器执行时,使得装置600能够执行一种操作系统的启动方法,包括:Wherein, when the instructions in the storage medium are executed by the processor, the device 600 is enabled to execute a method for starting an operating system, including:

当启动加载任务运行时,对存储在系统分区中的操作系统文件进行是否被篡改的安全校验。When the boot loading task is running, a security check is performed on whether the operating system files stored in the system partition have been tampered with.

若所述安全校验成功,则利用所述操作系统文件启动操作系统。If the security verification is successful, the operating system file is used to start the operating system.

若所述安全校验失败,则利用操作系统备份文件启动操作系统,所述操作系统备份文件为预先存储的未被篡改的操作系统文件。If the safety verification fails, the operating system is started using the operating system backup file, which is a pre-stored operating system file that has not been tampered with.

本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其它实施方案。本公开旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Other embodiments of the present disclosure will be readily apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. The present disclosure is intended to cover any modification, use or adaptation of the present disclosure. These modifications, uses or adaptations follow the general principles of the present disclosure and include common knowledge or conventional technical means in the technical field not disclosed in the present disclosure. . The specification and examples are to be considered exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It should be understood that the present disclosure is not limited to the precise constructions which have been described above and shown in the drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

以上所述仅为本公开的较佳实施例而已,并不用以限制本公开,凡在本公开的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本公开保护的范围之内。The above descriptions are only preferred embodiments of the present disclosure, and are not intended to limit the present disclosure. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present disclosure shall be included in the present disclosure within the scope of protection.

Claims (11)

1.一种操作系统的启动方法,其特征在于,所述方法包括:1. A method for starting an operating system, characterized in that the method comprises: 当启动加载任务运行时,对存储在系统分区中的操作系统文件进行是否被篡改的安全校验;When the boot loading task is running, perform a security check on whether the operating system files stored in the system partition have been tampered with; 若所述安全校验成功,则利用所述操作系统文件启动操作系统;If the security check is successful, then use the operating system file to start the operating system; 若所述安全校验失败,则利用操作系统备份文件启动操作系统,所述操作系统备份文件为预先存储的未被篡改的操作系统文件。If the safety verification fails, the operating system is started using the operating system backup file, which is a pre-stored operating system file that has not been tampered with. 2.根据权利要求1所述的方法,其特征在于,所述对系统分区中的操作系统文件进行是否被篡改的安全校验,包括:2. The method according to claim 1, wherein said performing a security check on whether the operating system file in the system partition has been tampered with includes: 获取所述操作系统文件的目标校验标识;Acquiring the target verification identifier of the operating system file; 将预存校验标识与所述目标校验标识进行对比,所述预存校验标识预先利用未被篡改的操作系统文件获取得到;Comparing the pre-stored verification identifier with the target verification identifier, the pre-stored verification identifier is obtained in advance by using an operating system file that has not been tampered with; 若预存校验标识与目标校验标识相同,则确定所述安全校验成功;If the pre-stored verification identifier is the same as the target verification identifier, it is determined that the security verification is successful; 若预存校验标识与目标校验标识不同,则确定所述安全校验失败。If the pre-stored verification identifier is different from the target verification identifier, it is determined that the security verification fails. 3.根据权利要求2所述的方法,其特征在于,所述获取所述操作系统文件的目标校验标识,包括:3. The method according to claim 2, wherein said acquiring the target check mark of said operating system file comprises: 采用密码算法计算所述操作系统文件的密文作为所述目标校验标识;Using a cryptographic algorithm to calculate the ciphertext of the operating system file as the target verification identifier; 所述预存校验标识包括:预先采用所述密码算法计算所述未被篡改的操作系统文件而获得的密文。The pre-stored verification identifier includes: a ciphertext obtained by pre-calculating the operating system file that has not been tampered with by using the cryptographic algorithm. 4.根据权利要求1所述的方法,其特征在于,所述操作系统备份文件通过将预先存储在系统备份分区中的加密文件进行解密后获取得到。4. The method according to claim 1, wherein the operating system backup file is obtained by decrypting an encrypted file pre-stored in the system backup partition. 5.根据权利要求1或4所述的方法,其特征在于,所述利用操作系统备份文件启动操作系统,包括:5. The method according to claim 1 or 4, wherein said starting the operating system using the operating system backup file comprises: 将所述操作系统备份文件覆盖所述操作系统文件后,将操作系统备份文件作为新的操作系统文件启动操作系统。After the operating system backup file is overwritten with the operating system file, the operating system backup file is used as a new operating system file to start the operating system. 6.一种操作系统的启动装置,其特征在于,所述装置包括:6. A starting device for an operating system, characterized in that the device comprises: 安全校验模块,被配置为当启动加载任务运行时,对存储在系统分区中的操作系统文件进行是否被篡改的安全校验;The safety verification module is configured to perform a safety verification on whether the operating system files stored in the system partition have been tampered with when the boot loading task is running; 启动模块,被配置为:在所述安全校验成功时,利用所述操作系统文件启动操作系统;在所述安全校验失败时,则利用操作系统备份文件启动操作系统,所述操作系统备份文件为预先存储的未被篡改的操作系统文件。The startup module is configured to: use the operating system file to start the operating system when the safety verification is successful; use the operating system backup file to start the operating system when the safety verification fails, and the operating system backup file The files are pre-stored operating system files that have not been tampered with. 7.根据权利要求6所述的装置,其特征在于,所述安全校验模块,包括:7. The device according to claim 6, wherein the safety verification module comprises: 标识获取子模块,被配置为获取所述操作系统文件的目标校验标识;An identification obtaining submodule configured to obtain the target verification identification of the operating system file; 对比子模块,被配置为将预存校验标识与所述目标校验标识进行对比,所述预存校验标识预先利用未被篡改的操作系统文件获取得到;The comparison sub-module is configured to compare the pre-stored verification identifier with the target verification identifier, the pre-stored verification identifier is obtained in advance by using an operating system file that has not been tampered with; 校验确定子模块,被配置为:若预存校验标识与目标校验标识相同,则确定所述安全校验成功;若预存校验标识与目标校验标识不同,则确定所述安全校验失败。The verification determination submodule is configured to: if the pre-stored verification identification is the same as the target verification identification, then determine that the security verification is successful; if the pre-stored verification identification is different from the target verification identification, then determine the security verification fail. 8.根据权利要求7所述的装置,其特征在于,所述标识获取子模块,包括:8. The device according to claim 7, wherein the identification acquisition submodule comprises: 标识计算子模块,被配置为采用密码算法计算所述操作系统文件的密文作为所述目标校验标识;The identification calculation submodule is configured to use a cryptographic algorithm to calculate the ciphertext of the operating system file as the target verification identification; 所述预存校验标识包括:预先采用所述密码算法计算所述未被篡改的操作系统文件而获得的密文。The pre-stored verification identifier includes: a ciphertext obtained by pre-calculating the operating system file that has not been tampered with by using the cryptographic algorithm. 9.根据权利要求6所述的装置,其特征在于,所述操作系统备份文件通过将预先存储在系统备份分区中的加密文件进行解密后获取得到。9. The device according to claim 6, wherein the operating system backup file is obtained by decrypting an encrypted file pre-stored in the system backup partition. 10.根据权利要求6或9所述的装置,其特征在于,所述启动模块,包括:10. The device according to claim 6 or 9, wherein the startup module comprises: 启动子模块,被配置为将所述操作系统备份文件覆盖所述操作系统文件后,将操作系统备份文件作为新的操作系统文件启动操作系统。The starting sub-module is configured to use the operating system backup file as a new operating system file to start the operating system after overwriting the operating system file with the operating system backup file. 11.一种终端,其特征在于,包括:11. A terminal, characterized in that, comprising: 处理器;processor; 用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions; 其中,所述处理器被配置为:Wherein, the processor is configured as: 当启动加载任务运行时,对存储在系统分区中的操作系统文件进行是否被篡改的安全校验;When the boot loading task is running, perform a security check on whether the operating system files stored in the system partition have been tampered with; 若所述安全校验成功,则利用所述操作系统文件启动操作系统;If the security check is successful, then use the operating system file to start the operating system; 若所述安全校验失败,则利用操作系统备份文件启动操作系统,所述操作系统备份文件为预先存储的未被篡改的操作系统文件。If the safety verification fails, the operating system is started using the operating system backup file, which is a pre-stored operating system file that has not been tampered with.
CN201610282777.0A 2016-04-29 2016-04-29 Operation system starting method and device, and terminal Pending CN105975864A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610282777.0A CN105975864A (en) 2016-04-29 2016-04-29 Operation system starting method and device, and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610282777.0A CN105975864A (en) 2016-04-29 2016-04-29 Operation system starting method and device, and terminal

Publications (1)

Publication Number Publication Date
CN105975864A true CN105975864A (en) 2016-09-28

Family

ID=56994457

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610282777.0A Pending CN105975864A (en) 2016-04-29 2016-04-29 Operation system starting method and device, and terminal

Country Status (1)

Country Link
CN (1) CN105975864A (en)

Cited By (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106549948A (en) * 2016-10-20 2017-03-29 公安部第三研究所 Telegram application of multimedia evidence collecting method under Android platform
CN106843192A (en) * 2016-12-30 2017-06-13 北京中油瑞飞信息技术有限责任公司 The system start method and device of controller
CN107577948A (en) * 2017-08-22 2018-01-12 北京奇虎科技有限公司 A bug repair method and device
CN107608879A (en) * 2017-08-24 2018-01-19 北京珠穆朗玛移动通信有限公司 A kind of fault detection method, device and storage medium
CN108009039A (en) * 2017-12-01 2018-05-08 广东欧珀移动通信有限公司 Recording method, device, storage medium and the electronic equipment of end message
CN108090362A (en) * 2017-02-08 2018-05-29 哈尔滨安天科技股份有限公司 A kind of newer safety protecting method of ATM programs and system
CN108205632A (en) * 2016-12-20 2018-06-26 北京小米移动软件有限公司 System area method of calibration and device
CN108229173A (en) * 2016-12-13 2018-06-29 北京小米移动软件有限公司 System startup method and device
CN108228263A (en) * 2016-12-12 2018-06-29 北京小米移动软件有限公司 The method and device that system starts
CN108319473A (en) * 2017-01-16 2018-07-24 深圳兆日科技股份有限公司 Terminal system starts method and apparatus
CN109542518A (en) * 2018-10-09 2019-03-29 华为技术有限公司 The method of chip and bootrom
CN109889325A (en) * 2019-01-21 2019-06-14 Oppo广东移动通信有限公司 Calibration method, device, electronic equipment and medium
CN110780935A (en) * 2019-10-31 2020-02-11 深圳市友华软件科技有限公司 Synchronous starting method and device for multi-system fusion product
CN110929268A (en) * 2020-02-03 2020-03-27 中软信息系统工程有限公司 Safe operation method, device and storage medium
CN111400771A (en) * 2020-02-19 2020-07-10 展讯通信(上海)有限公司 Verification method and device for target partition, storage medium, and computer equipment
WO2021022729A1 (en) * 2019-08-06 2021-02-11 惠州Tcl移动通信有限公司 Root permission assignment method and apparatus, storage medium, and terminal device
CN112445537A (en) * 2020-12-11 2021-03-05 中国科学院信息工程研究所 Trusted starting method and device of operating system, mobile terminal and storage medium
CN113051564A (en) * 2021-02-26 2021-06-29 深圳市元征科技股份有限公司 Safe starting method of application program and related equipment
CN114116023A (en) * 2021-06-15 2022-03-01 荣耀终端有限公司 Operating system starting method, operating system starting device, storage medium and computer program product
CN114117437A (en) * 2020-08-27 2022-03-01 国民技术股份有限公司 Safe starting method and device of operating system and electronic equipment
WO2022110025A1 (en) * 2020-11-27 2022-06-02 华为技术有限公司 Method and device for starting up electronic device
CN115202928A (en) * 2022-06-09 2022-10-18 联想(北京)有限公司 Method and device for processing boot configuration data of operating system
CN115328563A (en) * 2022-10-09 2022-11-11 荣耀终端有限公司 System starting method and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101630267A (en) * 2009-08-24 2010-01-20 中兴通讯股份有限公司 Embedded system and control method thereof
CN103729597A (en) * 2014-01-16 2014-04-16 宇龙计算机通信科技(深圳)有限公司 System starting verifying method and device and terminal
CN104239095A (en) * 2014-09-01 2014-12-24 小米科技有限责任公司 Operating-system starting method, device and terminal equipment
US20150019852A1 (en) * 2013-07-12 2015-01-15 International Games System Co., Ltd. Verification method for system execution environment
CN104866768A (en) * 2015-05-15 2015-08-26 深圳怡化电脑股份有限公司 Startup control method and device for ATM (Automatic Teller Machine) operating system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101630267A (en) * 2009-08-24 2010-01-20 中兴通讯股份有限公司 Embedded system and control method thereof
US20150019852A1 (en) * 2013-07-12 2015-01-15 International Games System Co., Ltd. Verification method for system execution environment
CN103729597A (en) * 2014-01-16 2014-04-16 宇龙计算机通信科技(深圳)有限公司 System starting verifying method and device and terminal
CN104239095A (en) * 2014-09-01 2014-12-24 小米科技有限责任公司 Operating-system starting method, device and terminal equipment
CN104866768A (en) * 2015-05-15 2015-08-26 深圳怡化电脑股份有限公司 Startup control method and device for ATM (Automatic Teller Machine) operating system

Cited By (32)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106549948A (en) * 2016-10-20 2017-03-29 公安部第三研究所 Telegram application of multimedia evidence collecting method under Android platform
CN106549948B (en) * 2016-10-20 2019-10-18 公安部第三研究所 Telegram application multimedia forensics method under the android platform
CN108228263A (en) * 2016-12-12 2018-06-29 北京小米移动软件有限公司 The method and device that system starts
CN108229173B (en) * 2016-12-13 2022-08-19 北京小米移动软件有限公司 System starting method and device
CN108229173A (en) * 2016-12-13 2018-06-29 北京小米移动软件有限公司 System startup method and device
CN108205632A (en) * 2016-12-20 2018-06-26 北京小米移动软件有限公司 System area method of calibration and device
CN106843192B (en) * 2016-12-30 2018-12-28 北京中油瑞飞信息技术有限责任公司 The system start method and device of controller
CN106843192A (en) * 2016-12-30 2017-06-13 北京中油瑞飞信息技术有限责任公司 The system start method and device of controller
CN108319473B (en) * 2017-01-16 2021-09-03 深圳兆日科技股份有限公司 Terminal system starting method and device
CN108319473A (en) * 2017-01-16 2018-07-24 深圳兆日科技股份有限公司 Terminal system starts method and apparatus
CN108090362B (en) * 2017-02-08 2022-01-07 安天科技集团股份有限公司 Safety protection method and system for updating ATM program
CN108090362A (en) * 2017-02-08 2018-05-29 哈尔滨安天科技股份有限公司 A kind of newer safety protecting method of ATM programs and system
CN107577948A (en) * 2017-08-22 2018-01-12 北京奇虎科技有限公司 A bug repair method and device
CN107608879B (en) * 2017-08-24 2020-08-21 北京珠穆朗玛移动通信有限公司 A fault detection method, device and storage medium
CN107608879A (en) * 2017-08-24 2018-01-19 北京珠穆朗玛移动通信有限公司 A kind of fault detection method, device and storage medium
CN108009039B (en) * 2017-12-01 2021-02-19 Oppo广东移动通信有限公司 Terminal information recording method, device, storage medium and electronic equipment
CN108009039A (en) * 2017-12-01 2018-05-08 广东欧珀移动通信有限公司 Recording method, device, storage medium and the electronic equipment of end message
CN109542518B (en) * 2018-10-09 2020-12-22 华为技术有限公司 Chip and method of starting the chip
CN109542518A (en) * 2018-10-09 2019-03-29 华为技术有限公司 The method of chip and bootrom
CN109889325A (en) * 2019-01-21 2019-06-14 Oppo广东移动通信有限公司 Calibration method, device, electronic equipment and medium
WO2021022729A1 (en) * 2019-08-06 2021-02-11 惠州Tcl移动通信有限公司 Root permission assignment method and apparatus, storage medium, and terminal device
CN110780935A (en) * 2019-10-31 2020-02-11 深圳市友华软件科技有限公司 Synchronous starting method and device for multi-system fusion product
CN110929268A (en) * 2020-02-03 2020-03-27 中软信息系统工程有限公司 Safe operation method, device and storage medium
CN111400771A (en) * 2020-02-19 2020-07-10 展讯通信(上海)有限公司 Verification method and device for target partition, storage medium, and computer equipment
CN114117437A (en) * 2020-08-27 2022-03-01 国民技术股份有限公司 Safe starting method and device of operating system and electronic equipment
WO2022110025A1 (en) * 2020-11-27 2022-06-02 华为技术有限公司 Method and device for starting up electronic device
CN112445537A (en) * 2020-12-11 2021-03-05 中国科学院信息工程研究所 Trusted starting method and device of operating system, mobile terminal and storage medium
CN113051564A (en) * 2021-02-26 2021-06-29 深圳市元征科技股份有限公司 Safe starting method of application program and related equipment
CN114116023A (en) * 2021-06-15 2022-03-01 荣耀终端有限公司 Operating system starting method, operating system starting device, storage medium and computer program product
CN115202928A (en) * 2022-06-09 2022-10-18 联想(北京)有限公司 Method and device for processing boot configuration data of operating system
CN115202928B (en) * 2022-06-09 2025-12-19 联想(北京)有限公司 Operating system startup configuration data processing method and device
CN115328563A (en) * 2022-10-09 2022-11-11 荣耀终端有限公司 System starting method and electronic equipment

Similar Documents

Publication Publication Date Title
CN105975864A (en) Operation system starting method and device, and terminal
US10735427B2 (en) Method and apparatus for managing program of electronic device
CN109964227B (en) Method and terminal for updating SELinux security policy
CN105519038B (en) User input data protection method and system
US10216404B2 (en) Method of securing image data and electronic device adapted to the same
BR112019005714B1 (en) Method for an electronic device and electronic device for managing offline application program usage time
CN111199039B (en) Application security verification method and device and terminal equipment
CN110457894A (en) Distribution method, device, storage medium and the terminal device of root authority
CN104639533B (en) Method of controlling security based on terminal and device
CN103914520B (en) Data query method, terminal device and server
KR20150100476A (en) Secruity method for preventing theft and electronic device thereof
KR20170084934A (en) Electronic apparatus and method for authentication of identification information thereof
CN107169320A (en) Method of calibration and device
WO2019047148A1 (en) Password verification method, terminal, and computer readable storage medium
CN106203125A (en) Operating system and safety detection method, safety detection device and terminal
CN105447391A (en) Operating system secure startup method, startup manager and operating system secure startup system
EP3239841B1 (en) Method and device for managing application program
KR20170019807A (en) Apparatus and method for using commonly thereof
CN106406895A (en) Operating system starting method and device
KR20190033930A (en) Electronic device for encrypting security information and method for controlling thereof
CN106295363A (en) Startup calibration method and device
CN106709284A (en) Root package validation method and device
CN106066968A (en) Data guard method and device
CN105975283A (en) Starting method and device for operating system
CN108228263A (en) The method and device that system starts

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: 20160928