WO2018049798A1 - Method and apparatus for reconstructing cache partition - Google Patents

Method and apparatus for reconstructing cache partition Download PDF

Info

Publication number
WO2018049798A1
WO2018049798A1 PCT/CN2017/076334 CN2017076334W WO2018049798A1 WO 2018049798 A1 WO2018049798 A1 WO 2018049798A1 CN 2017076334 W CN2017076334 W CN 2017076334W WO 2018049798 A1 WO2018049798 A1 WO 2018049798A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
cache partition
user
partition
restart
Prior art date
Application number
PCT/CN2017/076334
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 WO2018049798A1 publication Critical patent/WO2018049798A1/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
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1458Management of the backup or restore process
    • G06F11/1469Backup restoration techniques
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/08Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
    • G06F12/0802Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
    • G06F12/0866Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches for peripheral storage systems, e.g. disk cache
    • G06F12/0871Allocation or management of cache space

Definitions

  • the present disclosure relates to the field of communications, and in particular, to a method and apparatus for buffer partition reconstruction.
  • Restoring the factory settings is one of the necessary functions of the terminal equipment. Many data generated by the production process or data generated by the user's use process, if you want to clear, will use the function of restoring the factory settings.
  • the function of restoring the factory settings is to write the recovery command to the cache partition, restart the recovery mode, and erase the cache and data partitions to restore the user data area.
  • the cache partition becomes read-only or damaged, and the recovery command cannot be written.
  • the current implementation is for this case, that is, the factory reset process is abnormally stopped, does not respond or is not executed, and is given to the user.
  • the use and production of the production line have an impact.
  • the cache partition becomes read-only or damaged, the cache partition cannot be used normally, and some operations of the user cannot be completed, so that the terminal device is in an abnormal state.
  • the present disclosure provides a method and apparatus for buffer partition reconfiguration to solve the following problems of the related art: when a cache partition becomes read-only or damaged, the cache partition cannot be used normally, and thus some operations of the user cannot be completed.
  • the terminal device is in an abnormal state, and the user experience is poor.
  • the present disclosure provides a method for buffer partition reconstruction, including: when confirming that a cache partition of a terminal is in an abnormal use state, sending a command that triggers the terminal to restart; During the reboot process, the cache partition is rebuilt to restore the cache partition to a normal usable state.
  • confirm that the cache partition of the terminal is in an abnormal use state including: determining whether Capable of writing data in the cache partition; wherein the write data includes: a write command, or a cache data packet; and in a case where data cannot be written in the cache partition, confirming the location of the terminal The cache partition is in an abnormal state of use.
  • re-constructing the cache partition including: in the process of restarting the terminal, calling an automatic formatting function to format the cache partition, Complete the rebuild.
  • the method before sending the command to trigger the terminal to restart, the method further includes: sending a prompt message to the user to prompt the user that the terminal is about to restart.
  • the method further includes: determining whether a triggering operation from the user is received within a predetermined time; if yes, performing a corresponding action according to the triggering operation of the user, where the corresponding action includes: immediately Restarting the terminal, or stopping restarting the terminal; otherwise, when the predetermined time arrives, it is determined to restart the terminal.
  • the present disclosure further provides an apparatus for buffer partition reconstruction, including: a first sending module, configured to send a command that triggers the terminal to restart when the buffer partition of the terminal is in an abnormal use state; And configuring, in the process of restarting the terminal, rebuilding the cache partition to restore the cache partition to a normal usable state.
  • the device further includes: a first determining module, configured to determine whether data can be written in the cache partition; wherein the writing data comprises: a write command, or a cache data packet;
  • the module is configured to confirm that the cache partition of the terminal is in an abnormal use state in a case where data cannot be written in the cache partition.
  • the refactoring module is configured to: during the restart of the terminal, invoke an automatic formatting function to format the cache partition to complete the rebuilding.
  • the device further includes: a second sending module, configured to send a prompt message to the user to prompt the user that the terminal is about to restart before sending a command to trigger the terminal to restart.
  • a second sending module configured to send a prompt message to the user to prompt the user that the terminal is about to restart before sending a command to trigger the terminal to restart.
  • the method further includes: a second determining module, configured to: after sending the prompting information to the user, determine whether a triggering operation from the user is received within a predetermined time; the executing module is set to be If the triggering operation is received within the predetermined time, the corresponding action is performed according to the triggering operation of the user, and the corresponding action includes: restarting the terminal immediately, or stopping restarting the terminal; And a sending module, configured to determine to restart the terminal when the predetermined time arrives, if the triggering operation is not received within the predetermined time.
  • a second determining module configured to: after sending the prompting information to the user, determine whether a triggering operation from the user is received within a predetermined time; the executing module is set to be If the triggering operation is received within the predetermined time, the corresponding action is performed according to the triggering operation of the user, and the corresponding action includes: restarting the terminal immediately, or stopping restarting the terminal;
  • a sending module configured to determine to restart the terminal when the predetermined time arrives,
  • a computer storage medium which may store an execution instruction for performing a method of cache partition reconstruction in the above embodiment.
  • the disclosure confirms that the cache partition of the terminal cannot be used normally, the entire system of the terminal is restarted, and in the process of restarting, the cache partition is reconstructed to enable the cache partition to be used normally.
  • the method can be used in a simple terminal.
  • the function of repairing the cache partition during the restart process is simple and easy to operate, and solves the following problems of the related technology: when the cache partition becomes read-only or damaged, the cache partition cannot be used normally, and thus some operations of the user cannot be completed, so that the terminal device is In an abnormal state, the user experience is poor.
  • FIG. 1 is a flowchart of a method of cache partition reconstruction in a first embodiment of the present disclosure
  • FIG. 2 is a schematic structural diagram of an apparatus for buffer partition reconstruction in a second embodiment of the present disclosure
  • FIG. 3 is a schematic diagram of a preferred structure of an apparatus for buffer partition reconstruction in a second embodiment of the present disclosure
  • FIG. 4 is a schematic diagram of another preferred structure of an apparatus for buffer partition reconstruction in a second embodiment of the present disclosure
  • FIG. 5 is a flow chart of a method of cache partition reconstruction in a third embodiment of the present disclosure.
  • the first embodiment of the present disclosure provides a method for buffer partition reconstruction.
  • the process of the method is as shown in FIG. 1 and includes steps S102 to S104:
  • the cache partition of the terminal when the cache partition of the terminal is not working properly, the entire system of the terminal is restarted, and the cache partition is reconstructed during the restart process, so that the cache partition can be used normally.
  • the function of repairing the cache partition during the simple terminal restart process is simple and easy to operate, and solves the following problems of the related technology: when the cache partition becomes read-only or damaged, the cache partition cannot be used normally, and thus some operations of the user cannot be completed.
  • the terminal device is in an abnormal state, and the user experience is poor.
  • the cache partition of the terminal can be used normally during use.
  • the cache partition can write data. Therefore, it is confirmed that the cache partition of the terminal is abnormal.
  • the process of using the state can be as follows: First, it is determined whether data can be written in the cache partition, wherein the write data includes: a write command, or a cache packet; in the case where the data cannot be written in the cache partition, the confirmation The cache partition of the terminal is in an abnormal use state; in the case where data can be written in the cache partition, it is confirmed that the cache partition is not damaged and can be used normally.
  • the cache partition is reconstructed during the restart of the terminal.
  • the cache partition can be formatted by calling the automatic formatting function to complete the reconstruction.
  • the process of formatting the cache partition by calling the automatic formatting function is performed. It is a relatively fast automated execution process with simple operation and good user experience.
  • the user When sending a restart command, the user may be performing some operations, if it is directly heavy at this time The terminal may cause the user to lose the content being operated. Therefore, in order to improve the user experience, before sending a command to trigger the terminal to restart, the user may also send a prompt message to prompt the user terminal to restart; Whether the trigger operation from the user is received within the time.
  • the predetermined time can be set according to experience and operational requirements. For example, the experience shows that after the user sees a certain message, the operation response is 10 seconds, and the predetermined time can be set to 10 seconds.
  • the corresponding action is performed according to the triggering operation of the user, and the corresponding action includes: restarting the terminal immediately, or stopping the restarting of the terminal, or, for a fixed period of time (for example, 10 minutes) Then restart the terminal; if the trigger operation from the user is not received within the predetermined time, the terminal is directly determined to be restarted when the predetermined time arrives.
  • the second embodiment of the present disclosure further provides a device for reconfiguring a cache partition.
  • the structure of the device is as shown in FIG. 2, and includes: a first sending module 10, configured to confirm that a cache partition of the terminal is in an abnormal use state. And sending a command for triggering the terminal to restart; the reconstruction module 11 is coupled to the first sending module 10, and is configured to rebuild the cache partition during the restarting of the terminal, so that the cache partition is restored to the normal usable state.
  • the reconstruction module 11 is configured to call the automatic formatting function to format the cache partition during the restart of the terminal to complete the reconstruction.
  • FIG. 3 shows the above device.
  • the apparatus further includes: a first determining module 12, configured to determine whether data can be written in the cache partition; wherein the writing data comprises: a write command, or a cache data packet; the confirmation module 13, Coupling with the first judging module 12 and the first transmitting module 10, and setting to be unable to write data in the cache partition, it is confirmed that the cache partition of the terminal is in an abnormal use state.
  • FIG. 4 is a schematic diagram showing still another preferred structure of the above apparatus.
  • the apparatus further includes: a second sending module 14 coupled to the confirming module 13 and configured to send a command to trigger the terminal to restart, Sending a prompt message to the user to prompt the user terminal to restart;
  • the second determining module 15 is coupled to the second sending module 14 and configured to determine whether a triggering operation from the user is received within a predetermined time after the prompting information is sent to the user.
  • the executing module 16 is coupled with the second determining module 15 to set In order to receive the triggering operation within the predetermined time, the corresponding action is performed according to the triggering operation of the user, and the corresponding action includes: restarting the terminal immediately, or stopping the restarting of the terminal; the first sending module 10, and the second determining module 15 Coupling, set to reset the terminal upon arrival of the predetermined time if no triggering operation is received within a predetermined time.
  • the third embodiment of the present disclosure provides a method for buffer partition reconstruction, by which the related factory resetting process is changed, and the normal operation of the production setting function is restored, and the usability is improved.
  • Android In the Android (Android) system persist (storage attribute value), cache (cache), system (system partition), userdata (user data) partition, etc. have created ext* file system, and then loaded.
  • the native Android system generates a partition image of the created file system during the compilation phase, and then downloads it to the terminal device through burning.
  • the process of restoring the factory settings is to initiate the factory reset behavior through the setup menu or the diag command.
  • the framework receives the factory reset command and writes the recovery command to the cache partition file through the file system read and write mode. Then the system reboots into recovery mode, and the recovery mode receives the recovery command to execute the corresponding instruction.
  • the cache partition is damaged or becomes read-only, the behavior of restoring the factory settings is abnormally stopped, which causes a bad use of the function.
  • S501 The user initiates the "system” from the normal booting setting interface or sending the extended diag command. Reset".
  • S502 The framework receives the system restart request, attempts to write the recovery instruction of the cache partition, and determines whether the write is successful. If yes, execute S508, otherwise, execute S503.
  • S504 Set the shared imem (shared memory) flag bit or write a flag (identification) to the binary partition, prompting the user that the cache partition needs to be reconstructed, and a restart process is required.
  • S506 The device bootloader (a small program before the operating system kernel runs) detects the cache corruption flag and erases the first two blocks (data blocks) of the cache partition.
  • S507 The device continues to boot to hlos (kernel).
  • hlos virtual memory disk
  • the partition automatic formatting function is added, and the cache partition is formatted into an ext4 file system, and then mounted.
  • the cache partition normally writes a recovery instruction, restarts the device into recovery mode, and erases data and cache partition data.
  • the fourth embodiment of the present disclosure provides a method for buffer partition reconstruction, which is applied in the process of system upgrade.
  • the system upgrade will write the upgrade data packet to the cache partition.
  • the cache partition is abnormal. You need to use the cache partition reconstruction method provided in this embodiment.
  • the method of reconstructing the cache partition includes the following process:
  • the cache partition is formatted by calling the automatic formatting function.
  • the user can solve the problem that the system upgrade cannot be completed by a simple operation.
  • Embodiments of the present disclosure also provide a storage medium.
  • the foregoing storage medium may be configured to store program code for performing the following steps:
  • the foregoing storage medium may include, but not limited to, a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a mobile hard disk, and a magnetic memory.
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • the examples in this embodiment may refer to the examples described in the foregoing embodiments and the optional embodiments, and details are not described herein again.
  • the entire system of the terminal is restarted, and in the process of restarting, the cache partition is reconstructed to enable the cache partition to be used normally.
  • the method can repair the function of the cache partition in a simple terminal restart process, and is easy to operate, and solves the following problems of the related technology: when the cache partition becomes read-only or damaged, the cache partition cannot be used normally, and the user cannot be completed. Some operations cause the terminal device to be in an abnormal state and the user experience is poor.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Memory System Of A Hierarchy Structure (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

A method and apparatus for reconstructing a cache partition. The method comprises: when it is determined that a cache partition of a terminal is in an abnormal use state, sending a command of triggering the terminal to be restarted (S102); and during the process of restarting the terminal, reconstructing the cache partition to enable the cache partition to restore to the normal use state (S104). When it is determined that a cache partition of a terminal cannot be used normally, the entire system of the terminal is enabled to be restarted. During the restart process, the cache partition is reconstructed so that it can be normally used. The method has the function of restoring the cache partition during the simple restart process of the terminal, is simple and convenient to operate, and solves the following problems: when the cache partition is changed into read-only or damaged, and cannot be normally used, and thus some operations of a user cannot be executed so that a terminal device is in an abnormal state, bringing bad user experience.

Description

一种缓存分区重构的方法和装置Method and device for buffer partition reconstruction 技术领域Technical field
本公开涉及通讯领域,特别是涉及一种缓存分区重构的方法和装置。The present disclosure relates to the field of communications, and in particular, to a method and apparatus for buffer partition reconstruction.
背景技术Background technique
恢复出厂设置是终端设备必要的功能之一,很多生产过程产生的数据或者用户使用过程产生的数据,若想清除,都会用到恢复出厂设置这一功能。Restoring the factory settings is one of the necessary functions of the terminal equipment. Many data generated by the production process or data generated by the user's use process, if you want to clear, will use the function of restoring the factory settings.
目前恢复出厂设置这一功能,是通过往cache(缓存)分区写recovery(复原)命令,重启进入recovery模式进行cache和data(数据)分区的擦除,起到用户数据区恢复的作用。At present, the function of restoring the factory settings is to write the recovery command to the cache partition, restart the recovery mode, and erase the cache and data partitions to restore the user data area.
但实际中,往往会遇到cache分区变成只读或损坏,无法写入recovery命令的情况,目前的实现针对这种情况,就是恢复出厂设置过程异常停止,不响应或不执行,给用户的使用和产线的生产带来影响。However, in practice, it is often encountered that the cache partition becomes read-only or damaged, and the recovery command cannot be written. The current implementation is for this case, that is, the factory reset process is abnormally stopped, does not respond or is not executed, and is given to the user. The use and production of the production line have an impact.
因此,在遇到cache分区变成只读或损坏,导致无法正常使用cache分区,进而无法完成用户的一些操作,使终端设备处于异常状态。Therefore, when the cache partition becomes read-only or damaged, the cache partition cannot be used normally, and some operations of the user cannot be completed, so that the terminal device is in an abnormal state.
发明内容Summary of the invention
本公开提供一种缓存分区重构的方法和装置,用以解决相关技术的如下问题:在遇到cache分区变成只读或损坏时,无法正常使用cache分区,进而无法完成用户的一些操作,使终端设备处于异常状态,用户体验较差。The present disclosure provides a method and apparatus for buffer partition reconfiguration to solve the following problems of the related art: when a cache partition becomes read-only or damaged, the cache partition cannot be used normally, and thus some operations of the user cannot be completed. The terminal device is in an abnormal state, and the user experience is poor.
为解决上述技术问题,一方面,本公开提供一种缓存分区重构的方法,包括:在确认终端的缓存分区处于非正常使用状态时,发送触发所述终端进行重启的命令;在所述终端进行重启的过程中,对所述缓存分区进行重新构建,以使所述缓存分区恢复正常可使用状态。In order to solve the above technical problem, in one aspect, the present disclosure provides a method for buffer partition reconstruction, including: when confirming that a cache partition of a terminal is in an abnormal use state, sending a command that triggers the terminal to restart; During the reboot process, the cache partition is rebuilt to restore the cache partition to a normal usable state.
可选地,确认终端的缓存分区处于非正常使用状态,包括:判断是否 能够在所述缓存分区中写入数据;其中,所述写入数据包括:写入命令,或者,缓存数据包;在所述缓存分区中无法写入数据的情况下,确认所述终端的所述缓存分区处于非正常使用状态。Optionally, confirm that the cache partition of the terminal is in an abnormal use state, including: determining whether Capable of writing data in the cache partition; wherein the write data includes: a write command, or a cache data packet; and in a case where data cannot be written in the cache partition, confirming the location of the terminal The cache partition is in an abnormal state of use.
可选地,在所述终端进行重启的过程中,对所述缓存分区进行重新构建,包括:在所述终端进行重启的过程中,调用自动格式化函数对所述缓存分区进行格式化,以完成重新构建。Optionally, during the restarting of the terminal, re-constructing the cache partition, including: in the process of restarting the terminal, calling an automatic formatting function to format the cache partition, Complete the rebuild.
可选地,发送触发所述终端进行重启的命令之前,还包括:向用户发送提示信息,以提示用户所述终端即将重启。Optionally, before sending the command to trigger the terminal to restart, the method further includes: sending a prompt message to the user to prompt the user that the terminal is about to restart.
可选地,向用户发送提示信息之后,还包括:判断在预定时间内是否接收到来自用户的触发操作;如果是,则根据用户的触发操作执行相应的动作,所述相应的动作包括:立即重启所述终端,或者,停止重启所述终端;否则,在所述预定时间到达时,确定重启所述终端。Optionally, after the prompting information is sent to the user, the method further includes: determining whether a triggering operation from the user is received within a predetermined time; if yes, performing a corresponding action according to the triggering operation of the user, where the corresponding action includes: immediately Restarting the terminal, or stopping restarting the terminal; otherwise, when the predetermined time arrives, it is determined to restart the terminal.
另一方面,本公开还提供一种缓存分区重构的装置,包括:第一发送模块,设置为在确认终端的缓存分区处于非正常使用状态时,发送触发所述终端进行重启的命令;重构模块,设置为在所述终端进行重启的过程中,对所述缓存分区进行重新构建,以使所述缓存分区恢复正常可使用状态。In another aspect, the present disclosure further provides an apparatus for buffer partition reconstruction, including: a first sending module, configured to send a command that triggers the terminal to restart when the buffer partition of the terminal is in an abnormal use state; And configuring, in the process of restarting the terminal, rebuilding the cache partition to restore the cache partition to a normal usable state.
可选地,所述装置还包括:第一判断模块,设置为判断是否能够在所述缓存分区中写入数据;其中,所述写入数据包括:写入命令,或者,缓存数据包;确认模块,设置为在所述缓存分区中无法写入数据的情况下,确认所述终端的所述缓存分区处于非正常使用状态。Optionally, the device further includes: a first determining module, configured to determine whether data can be written in the cache partition; wherein the writing data comprises: a write command, or a cache data packet; The module is configured to confirm that the cache partition of the terminal is in an abnormal use state in a case where data cannot be written in the cache partition.
可选地,所述重构模块,设置为在所述终端进行重启的过程中,调用自动格式化函数对所述缓存分区进行格式化,以完成重新构建。Optionally, the refactoring module is configured to: during the restart of the terminal, invoke an automatic formatting function to format the cache partition to complete the rebuilding.
可选地,所述装置还包括:第二发送模块,设置为在发送触发所述终端进行重启的命令之前,向用户发送提示信息,以提示用户所述终端即将重启。Optionally, the device further includes: a second sending module, configured to send a prompt message to the user to prompt the user that the terminal is about to restart before sending a command to trigger the terminal to restart.
可选地,还包括:第二判断模块,设置为向用户发送提示信息之后,判断在预定时间内是否接收到来自用户的触发操作;执行模块,设置为在 所述预定时间内接收到所述触发操作的情况下,根据用户的触发操作执行相应的动作,所述相应的动作包括:立即重启所述终端,或者,停止重启所述终端;所述第一发送模块,设置为在所述预定时间内没有接收到所述触发操作的情况下,在所述预定时间到达时确定重启所述终端。Optionally, the method further includes: a second determining module, configured to: after sending the prompting information to the user, determine whether a triggering operation from the user is received within a predetermined time; the executing module is set to be If the triggering operation is received within the predetermined time, the corresponding action is performed according to the triggering operation of the user, and the corresponding action includes: restarting the terminal immediately, or stopping restarting the terminal; And a sending module, configured to determine to restart the terminal when the predetermined time arrives, if the triggering operation is not received within the predetermined time.
在本公开可选实施例中,还提供了一种计算机存储介质,该计算机存储介质可以存储有执行指令,该执行指令用于执行上述实施例中的缓存分区重构的方法。In an alternative embodiment of the present disclosure, there is also provided a computer storage medium, which may store an execution instruction for performing a method of cache partition reconstruction in the above embodiment.
本公开在确认终端的缓存分区无法正常使用时,就让终端的整个系统进行重启,在重启的过程中,对缓存分区进行重构,来使缓存分区能够正常使用,该方法能够在简单的终端重启过程中修复缓存分区的功能,操作简便,解决了相关技术的如下问题:在遇到cache分区变成只读或损坏时,无法正常使用cache分区,进而无法完成用户的一些操作,使终端设备处于异常状态,用户体验较差。When the disclosure confirms that the cache partition of the terminal cannot be used normally, the entire system of the terminal is restarted, and in the process of restarting, the cache partition is reconstructed to enable the cache partition to be used normally. The method can be used in a simple terminal. The function of repairing the cache partition during the restart process is simple and easy to operate, and solves the following problems of the related technology: when the cache partition becomes read-only or damaged, the cache partition cannot be used normally, and thus some operations of the user cannot be completed, so that the terminal device is In an abnormal state, the user experience is poor.
附图说明DRAWINGS
图1是本公开第一实施例中缓存分区重构的方法的流程图;1 is a flowchart of a method of cache partition reconstruction in a first embodiment of the present disclosure;
图2是本公开第二实施例中缓存分区重构的装置的结构示意图;2 is a schematic structural diagram of an apparatus for buffer partition reconstruction in a second embodiment of the present disclosure;
图3是本公开第二实施例中缓存分区重构的装置的一种优选结构示意图;3 is a schematic diagram of a preferred structure of an apparatus for buffer partition reconstruction in a second embodiment of the present disclosure;
图4是本公开第二实施例中缓存分区重构的装置的另一种优选结构示意图;4 is a schematic diagram of another preferred structure of an apparatus for buffer partition reconstruction in a second embodiment of the present disclosure;
图5是本公开第三实施例中缓存分区重构的方法的流程图。5 is a flow chart of a method of cache partition reconstruction in a third embodiment of the present disclosure.
具体实施方式detailed description
为了解决相关技术的如下问题:在遇到cache分区变成只读或损坏时,无法正常使用cache分区,进而无法完成用户的一些操作,使终端设备处于异常状态,用户体验较差;本公开提供了一种缓存分区重构的方法和装置,以下结合附图以及实施例,对本公开进行进一步详细说明。应当理解, 此处所描述的实施例仅仅用以解释本公开,并不限定本公开。In order to solve the following problems in the related art: when the cache partition becomes read-only or damaged, the cache partition cannot be used normally, and some operations of the user cannot be completed, so that the terminal device is in an abnormal state, and the user experience is poor; A method and apparatus for buffer partition reconstruction are further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that The embodiments described herein are merely illustrative of the disclosure and are not limiting of the disclosure.
本公开第一实施例提供了一种缓存分区重构的方法,该方法的流程如图1所示,包括步骤S102至S104:The first embodiment of the present disclosure provides a method for buffer partition reconstruction. The process of the method is as shown in FIG. 1 and includes steps S102 to S104:
S102,在确认终端的缓存分区处于非正常使用状态时,发送触发终端进行重启的命令;S102. When confirming that the cache partition of the terminal is in an abnormal use state, sending a command that triggers the terminal to restart.
S104,在终端进行重启的过程中,对缓存分区进行重新构建,以使缓存分区恢复正常可使用状态。S104: During the restart of the terminal, the cache partition is reconstructed to restore the cache partition to a normal usable state.
本公开可选实施例在确认终端的缓存分区无法正常使用时,就让终端的整个系统进行重启,在重启的过程中,对缓存分区进行重构,来使缓存分区能够正常使用,该方法能够在简单的终端重启过程中修复缓存分区的功能,操作简便,解决了相关技术的如下问题:在遇到cache分区变成只读或损坏时,无法正常使用cache分区,进而无法完成用户的一些操作,使终端设备处于异常状态,用户体验较差。In the optional embodiment of the present disclosure, when the cache partition of the terminal is not working properly, the entire system of the terminal is restarted, and the cache partition is reconstructed during the restart process, so that the cache partition can be used normally. The function of repairing the cache partition during the simple terminal restart process is simple and easy to operate, and solves the following problems of the related technology: when the cache partition becomes read-only or damaged, the cache partition cannot be used normally, and thus some operations of the user cannot be completed. The terminal device is in an abnormal state, and the user experience is poor.
使用过程中,通常是用户在使用过程中会发现终端的缓存分区是否能够正常使用,在能够正常使用的情况下,缓存分区中是能够写入数据的,因此,确认终端的缓存分区处于非正常使用状态的过程可以如下:首先,判断是否能够在缓存分区中写入数据,其中,写入数据包括:写入命令,或者,缓存数据包;在缓存分区中无法写入数据的情况下,确认终端的缓存分区处于非正常使用状态;在缓存分区中能够写入数据的情况下,确认该缓存分区没有损坏,能够正常使用。During use, it is usually found that the cache partition of the terminal can be used normally during use. In the case of normal use, the cache partition can write data. Therefore, it is confirmed that the cache partition of the terminal is abnormal. The process of using the state can be as follows: First, it is determined whether data can be written in the cache partition, wherein the write data includes: a write command, or a cache packet; in the case where the data cannot be written in the cache partition, the confirmation The cache partition of the terminal is in an abnormal use state; in the case where data can be written in the cache partition, it is confirmed that the cache partition is not damaged and can be used normally.
如果确认终端的缓存分区处于非正常使用状态,则在终端进行重启的过程中,对缓存分区进行重新构建,实现时,可以通过调用自动格式化函数对缓存分区进行格式化,以完成重新构建的过程,当然,也可以用户手动对缓存分区进行格式化,但手动格式化过程较为复杂,还需要用户动手操作,用户体验较差,因此,通过调用自动格式化函数对缓存分区进行格式化的过程是一种较为快速的自动化执行过程,操作简单,用户体验较好。If it is confirmed that the cache partition of the terminal is in an abnormal use state, the cache partition is reconstructed during the restart of the terminal. When implemented, the cache partition can be formatted by calling the automatic formatting function to complete the reconstruction. Process, of course, the user can manually format the cache partition, but the manual formatting process is more complicated, and requires user hands-on operation, and the user experience is poor. Therefore, the process of formatting the cache partition by calling the automatic formatting function is performed. It is a relatively fast automated execution process with simple operation and good user experience.
在发送重启的命令时,可能用户正在执行一些操作,如果此时直接重 启终端,可能会让用户损失正在操作的内容,因此,为了提高用户体验,在发送触发终端进行重启的命令之前,还可以向用户发送提示信息,以提示用户终端即将重启;随后,判断在预定时间内是否接收到来自用户的触发操作。预定时间可以根据经验和操作需求设置,例如,经验显示用户在看到某一条消息后,操作反应为10秒,则预定时间就可以设定为10秒。When sending a restart command, the user may be performing some operations, if it is directly heavy at this time The terminal may cause the user to lose the content being operated. Therefore, in order to improve the user experience, before sending a command to trigger the terminal to restart, the user may also send a prompt message to prompt the user terminal to restart; Whether the trigger operation from the user is received within the time. The predetermined time can be set according to experience and operational requirements. For example, the experience shows that after the user sees a certain message, the operation response is 10 seconds, and the predetermined time can be set to 10 seconds.
如果在预定时间内接收到来自用户的触发操作,则根据用户的触发操作执行相应的动作,相应的动作包括:立即重启终端,或者,停止重启终端,或者,在固定时间段(例如10分钟)后再重启终端;如果在预定时间内没有接收到来自用户的触发操作,则在预定时间到达时,直接确定重启终端。If a triggering operation from the user is received within a predetermined time, the corresponding action is performed according to the triggering operation of the user, and the corresponding action includes: restarting the terminal immediately, or stopping the restarting of the terminal, or, for a fixed period of time (for example, 10 minutes) Then restart the terminal; if the trigger operation from the user is not received within the predetermined time, the terminal is directly determined to be restarted when the predetermined time arrives.
本公开第二实施例还提供一种缓存分区重构的装置,该装置的结构示意如图2所示,包括:第一发送模块10,设置为在确认终端的缓存分区处于非正常使用状态时,发送触发终端进行重启的命令;重构模块11,与第一发送模块10耦合,设置为在终端进行重启的过程中,对缓存分区进行重新构建,以使缓存分区恢复正常可使用状态。The second embodiment of the present disclosure further provides a device for reconfiguring a cache partition. The structure of the device is as shown in FIG. 2, and includes: a first sending module 10, configured to confirm that a cache partition of the terminal is in an abnormal use state. And sending a command for triggering the terminal to restart; the reconstruction module 11 is coupled to the first sending module 10, and is configured to rebuild the cache partition during the restarting of the terminal, so that the cache partition is restored to the normal usable state.
实现过程中,重构模块11,设置为在终端进行重启的过程中,调用自动格式化函数对缓存分区进行格式化,以完成重新构建。During the implementation, the reconstruction module 11 is configured to call the automatic formatting function to format the cache partition during the restart of the terminal to complete the reconstruction.
在使用时,通常是用户在使用过程中会发现终端的缓存分区是否能够正常使用,在能够正常使用的情况下,缓存分区中是能够写入数据的,因此,图3示出了上述装置的一种优选结构示意图,装置还包括:第一判断模块12,设置为判断是否能够在缓存分区中写入数据;其中,写入数据包括:写入命令,或者,缓存数据包;确认模块13,与第一判断模块12和第一发送模块10耦合,设置为在缓存分区中无法写入数据的情况下,确认终端的缓存分区处于非正常使用状态。In use, it is usually that the user finds whether the cache partition of the terminal can be used normally during use, and in the case of normal use, the data can be written in the cache partition. Therefore, FIG. 3 shows the above device. A preferred structure diagram, the apparatus further includes: a first determining module 12, configured to determine whether data can be written in the cache partition; wherein the writing data comprises: a write command, or a cache data packet; the confirmation module 13, Coupling with the first judging module 12 and the first transmitting module 10, and setting to be unable to write data in the cache partition, it is confirmed that the cache partition of the terminal is in an abnormal use state.
图4示出了上述装置的又一种优选结构示意图,在图3的基础上,装置还包括:第二发送模块14,与确认模块13耦合,设置为在发送触发终端进行重启的命令之前,向用户发送提示信息,以提示用户终端即将重启; 第二判断模块15,与第二发送模块14耦合,设置为向用户发送提示信息之后,判断在预定时间内是否接收到来自用户的触发操作;执行模块16,与第二判断模块15耦合,设置为在预定时间内接收到触发操作的情况下,根据用户的触发操作执行相应的动作,相应的动作包括:立即重启终端,或者,停止重启终端;第一发送模块10,与第二判断模块15耦合,设置为在预定时间内没有接收到触发操作的情况下,在预定时间到达时确定重启终端。FIG. 4 is a schematic diagram showing still another preferred structure of the above apparatus. On the basis of FIG. 3, the apparatus further includes: a second sending module 14 coupled to the confirming module 13 and configured to send a command to trigger the terminal to restart, Sending a prompt message to the user to prompt the user terminal to restart; The second determining module 15 is coupled to the second sending module 14 and configured to determine whether a triggering operation from the user is received within a predetermined time after the prompting information is sent to the user. The executing module 16 is coupled with the second determining module 15 to set In order to receive the triggering operation within the predetermined time, the corresponding action is performed according to the triggering operation of the user, and the corresponding action includes: restarting the terminal immediately, or stopping the restarting of the terminal; the first sending module 10, and the second determining module 15 Coupling, set to reset the terminal upon arrival of the predetermined time if no triggering operation is received within a predetermined time.
相关技术中,恢复出厂设置的操作中往往遇到一些无法恢复的场景,比如,写入恢复出厂设置命令的分区遭到破坏或变成只读分区等。针对此种情况,本公开第三实施例提供一种缓存分区重构的方法,通过该方法来改变相关的恢复出厂设置流程,保证恢复出产设置功能的正常运行,提高可用性。In the related art, the operation of restoring the factory settings often encounters some unrecoverable scenarios, for example, the partition written to the factory reset command is destroyed or becomes a read-only partition. For this situation, the third embodiment of the present disclosure provides a method for buffer partition reconstruction, by which the related factory resetting process is changed, and the normal operation of the production setting function is restored, and the usability is improved.
在Android(安卓)系统persist(存储属性值)、cache(缓存)、system(系统分区)、userdata(用户数据)分区等都有创建ext*文件系统,进而加载。原生的Android系统都是在编译阶段生成创建好文件系统的分区镜像,然后通过烧录下载到终端设备。In the Android (Android) system persist (storage attribute value), cache (cache), system (system partition), userdata (user data) partition, etc. have created ext* file system, and then loaded. The native Android system generates a partition image of the created file system during the compilation phase, and then downloads it to the terminal device through burning.
若分区损坏,则需要再次通过PC(个人计算机,personal computer)下载此分区镜像到终端设备。恢复出厂设置的过程是通过设置菜单或diag指令发起factory reset(恢复出厂设置)行为,framework(架构)收到factory reset的指令,往cache分区文件通过文件系统读写方式写入recovery(重启)命令,然后系统重启进入recovery模式,recovery模式收到recovery命令进行相应指令的执行。但当cache分区遭到损坏或变成只读,恢复出厂设置的行为即异常停止,给功能使用造成不良。If the partition is damaged, you need to download this partition image to the terminal device again via PC (personal computer). The process of restoring the factory settings is to initiate the factory reset behavior through the setup menu or the diag command. The framework receives the factory reset command and writes the recovery command to the cache partition file through the file system read and write mode. Then the system reboots into recovery mode, and the recovery mode receives the recovery command to execute the corresponding instruction. However, when the cache partition is damaged or becomes read-only, the behavior of restoring the factory settings is abnormally stopped, which causes a bad use of the function.
本实施例就是在遇到cache分区等损坏时实现一种文件系统分区不借助PC侧就自行重构的方法,并改变恢复出厂设置的处理流程,实现恢复出厂设置功能的正常进行。该过程如图5所示,包括如下步骤S501至S508:In this embodiment, when a cache partition or the like is damaged, a method of reconfiguring a file system partition without using the PC side is implemented, and the processing procedure of restoring the factory settings is changed, and the function of restoring the factory setting is performed normally. The process is as shown in FIG. 5, and includes the following steps S501 to S508:
S501:用户从正常开机的设置界面或发送扩展的diag指令发起“系统 重置”。S501: The user initiates the "system" from the normal booting setting interface or sending the extended diag command. Reset".
S502:framework收到系统重启的要求,尝试cache分区的recovery指令写入,并判断是否写入成功。如果是,则执行S508,否则,执行S503。S502: The framework receives the system restart request, attempts to write the recovery instruction of the cache partition, and determines whether the write is successful. If yes, execute S508, otherwise, execute S503.
S503:若访问异常,判断cache分区mount(安装)属性,以检查cache分区加载情况。S503: If the access is abnormal, determine the cache partition mount attribute to check the cache partition loading.
S504:设置shared imem(共享内存)标志位或往二进制分区写入flag(标识),提示用户cache分区需重构,需一次重启过程。S504: Set the shared imem (shared memory) flag bit or write a flag (identification) to the binary partition, prompting the user that the cache partition needs to be reconstructed, and a restart process is required.
S505:发起设备重启。S505: Initiating a device restart.
S506:设备bootloader(操作系统内核运行前一段小程序)阶段检测到cache损坏flag,擦除cache分区前2个block(数据块)数据。S506: The device bootloader (a small program before the operating system kernel runs) detects the cache corruption flag and erases the first two blocks (data blocks) of the cache partition.
S507:设备继续启动到hlos(内核),在ramdisk(虚拟内存盘)加载分区阶段加入分区自动格式化功能函数,将cache分区format(格式化)成ext4文件系统,进而mount。S507: The device continues to boot to hlos (kernel). In the ramdisk (virtual memory disk) loading partition stage, the partition automatic formatting function is added, and the cache partition is formatted into an ext4 file system, and then mounted.
S508:cache分区正常写入recovery指令,重启设备进recovery模式,进行data和cache分区数据的擦除。S508: The cache partition normally writes a recovery instruction, restarts the device into recovery mode, and erases data and cache partition data.
本公开第四实施例提供了一种缓存分区重构的方法,该方法应用在系统升级的过程中。在正常情况下,系统升级会将升级数据包写入cache分区,在系统升级数据包无法写入时,就确定cache分区发生异常,就需要使用到本实施例提供的缓存分区重构的方法。该缓存分区重构的方法包括如下过程:The fourth embodiment of the present disclosure provides a method for buffer partition reconstruction, which is applied in the process of system upgrade. Under normal circumstances, the system upgrade will write the upgrade data packet to the cache partition. When the system upgrade data packet cannot be written, it is determined that the cache partition is abnormal. You need to use the cache partition reconstruction method provided in this embodiment. The method of reconstructing the cache partition includes the following process:
(1)在接收到升级数据包的时候,尝试将升级数据包放入cache分区中,并判断是否能够在cache分区中写入升级数据包。如果是,则执行(4),否则执行(2)。(1) When receiving the upgrade data packet, try to put the upgrade data packet into the cache partition and determine whether the upgrade data packet can be written in the cache partition. If yes, execute (4), otherwise execute (2).
(2)触发终端的系统进行重启。(2) The system that triggered the terminal restarts.
(3)在重启过程中,通过调用自动格式化函数来对cache分区格式化。(3) During the restart process, the cache partition is formatted by calling the automatic formatting function.
(4)在cache分区中再次写入升级数据包。 (4) Write the upgrade packet again in the cache partition.
通过本实施例,能够使用户通过简单的操作就能够解决无法完成系统升级的问题。With this embodiment, the user can solve the problem that the system upgrade cannot be completed by a simple operation.
本公开的实施例还提供了一种存储介质。可选地,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的程序代码:Embodiments of the present disclosure also provide a storage medium. Optionally, in the embodiment, the foregoing storage medium may be configured to store program code for performing the following steps:
S1,在确认终端的缓存分区处于非正常使用状态时,发送触发终端进行重启的命令;S1, when confirming that the buffer partition of the terminal is in an abnormal use state, sending a command that triggers the terminal to restart;
S2,在终端进行重启的过程中,对缓存分区进行重新构建,以使缓存分区恢复正常可使用状态。S2: During the restart of the terminal, the cache partition is reconstructed to restore the cache partition to a normal usable state.
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。可选地,本实施例中的示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。Optionally, in this embodiment, the foregoing storage medium may include, but not limited to, a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a mobile hard disk, and a magnetic memory. A variety of media that can store program code, such as a disc or a disc. For example, the examples in this embodiment may refer to the examples described in the foregoing embodiments and the optional embodiments, and details are not described herein again.
尽管为示例目的,已经公开了本公开的优选实施例,本领域的技术人员将意识到各种改进、增加和取代也是可能的,因此,本公开的范围应当不限于上述实施例。While the preferred embodiment of the present disclosure has been disclosed for purposes of illustration, those skilled in the art will recognize that various modifications, additions and substitutions are possible, and the scope of the present disclosure should not be limited to the embodiments described above.
工业实用性Industrial applicability
在本公开可选实施例中,在确认终端的缓存分区无法正常使用时,就让终端的整个系统进行重启,在重启的过程中,对缓存分区进行重构,来使缓存分区能够正常使用,该方法能够在简单的终端重启过程中修复缓存分区的功能,操作简便,解决了相关技术的如下问题:在遇到cache分区变成只读或损坏时,无法正常使用cache分区,进而无法完成用户的一些操作,使终端设备处于异常状态,用户体验较差。 In an optional embodiment of the present disclosure, when it is confirmed that the cache partition of the terminal cannot be used normally, the entire system of the terminal is restarted, and in the process of restarting, the cache partition is reconstructed to enable the cache partition to be used normally. The method can repair the function of the cache partition in a simple terminal restart process, and is easy to operate, and solves the following problems of the related technology: when the cache partition becomes read-only or damaged, the cache partition cannot be used normally, and the user cannot be completed. Some operations cause the terminal device to be in an abnormal state and the user experience is poor.

Claims (10)

  1. 一种缓存分区重构的方法,包括:A method for cache partition reconstruction includes:
    在确认终端的缓存分区处于非正常使用状态时,发送触发所述终端进行重启的命令;When it is confirmed that the cache partition of the terminal is in an abnormal use state, sending a command that triggers the terminal to restart;
    在所述终端进行重启的过程中,对所述缓存分区进行重新构建,以使所述缓存分区恢复正常可使用状态。During the restart of the terminal, the cache partition is reconstructed to restore the cache partition to a normal usable state.
  2. 如权利要求1所述的方法,其中,确认终端的缓存分区处于非正常使用状态,包括:The method of claim 1, wherein confirming that the cache partition of the terminal is in an abnormal use state comprises:
    判断是否能够在所述缓存分区中写入数据;其中,所述写入数据包括:写入命令,或者,缓存数据包;Determining whether data can be written in the cache partition; wherein the write data comprises: a write command, or a cache data packet;
    在所述缓存分区中无法写入数据的情况下,确认所述终端的所述缓存分区处于非正常使用状态。In the case that data cannot be written in the cache partition, it is confirmed that the cache partition of the terminal is in an abnormal use state.
  3. 如权利要求1所述的方法,其中,在所述终端进行重启的过程中,对所述缓存分区进行重新构建,包括:The method of claim 1, wherein the re-constructing the cache partition during the restarting of the terminal comprises:
    在所述终端进行重启的过程中,调用自动格式化函数对所述缓存分区进行格式化,以完成重新构建。During the restart of the terminal, the automatic formatting function is called to format the cache partition to complete the reconstruction.
  4. 如权利要求1至3中任一项所述的方法,其中,发送触发所述终端进行重启的命令之前,还包括:The method according to any one of claims 1 to 3, further comprising: before sending a command to trigger the terminal to restart, further comprising:
    向用户发送提示信息,以提示用户所述终端即将重启。Sending a prompt message to the user to prompt the user that the terminal is about to restart.
  5. 如权利要求4所述的方法,其中,向用户发送提示信息之后,还包括:The method of claim 4, wherein after the prompting information is sent to the user, the method further comprises:
    判断在预定时间内是否接收到来自用户的触发操作;Determining whether a trigger operation from the user is received within a predetermined time;
    如果是,则根据用户的触发操作执行相应的动作,所述相应的动作包括:立即重启所述终端,或者,停止重启所述终端;If yes, performing a corresponding action according to the triggering operation of the user, where the corresponding action includes: restarting the terminal immediately, or stopping restarting the terminal;
    否则,在所述预定时间到达时,确定重启所述终端。 Otherwise, upon arrival of the predetermined time, it is determined to restart the terminal.
  6. 一种缓存分区重构的装置,包括:A device for buffer partition reconstruction includes:
    第一发送模块,设置为在确认终端的缓存分区处于非正常使用状态时,发送触发所述终端进行重启的命令;The first sending module is configured to send a command for triggering the terminal to restart when confirming that the buffer partition of the terminal is in an abnormal use state;
    重构模块,设置为在所述终端进行重启的过程中,对所述缓存分区进行重新构建,以使所述缓存分区恢复正常可使用状态。The reconstruction module is configured to rebuild the cache partition during the restart of the terminal to restore the cache partition to a normal usable state.
  7. 如权利要求6所述的装置,其中,所述装置还包括:The device of claim 6 wherein said device further comprises:
    第一判断模块,设置为判断是否能够在所述缓存分区中写入数据;其中,所述写入数据包括:写入命令,或者,缓存数据包;a first determining module, configured to determine whether data can be written in the cache partition; wherein the write data comprises: a write command, or a cache data packet;
    确认模块,设置为在所述缓存分区中无法写入数据的情况下,确认所述终端的所述缓存分区处于非正常使用状态。The confirmation module is configured to confirm that the cache partition of the terminal is in an abnormal use state in a case where data cannot be written in the cache partition.
  8. 如权利要求6所述的装置,其中,The apparatus of claim 6 wherein
    所述重构模块,设置为在所述终端进行重启的过程中,调用自动格式化函数对所述缓存分区进行格式化,以完成重新构建。The refactoring module is configured to, in the process of restarting the terminal, invoking an automatic formatting function to format the cache partition to complete the rebuilding.
  9. 如权利要求6至8中任一项所述的装置,其中,所述装置还包括:The device of any of claims 6 to 8, wherein the device further comprises:
    第二发送模块,设置为在发送触发所述终端进行重启的命令之前,向用户发送提示信息,以提示用户所述终端即将重启。The second sending module is configured to send a prompt message to the user to prompt the user that the terminal is about to restart before sending a command to trigger the terminal to restart.
  10. 如权利要求9所述的装置,其中,还包括:The apparatus of claim 9 further comprising:
    第二判断模块,设置为向用户发送提示信息之后,判断在预定时间内是否接收到来自用户的触发操作;The second determining module is configured to: after sending the prompting information to the user, determine whether a triggering operation from the user is received within a predetermined time;
    执行模块,设置为在所述预定时间内接收到所述触发操作的情况下,根据用户的触发操作执行相应的动作,所述相应的动作包括:立即重启所述终端,或者,停止重启所述终端;An execution module, configured to perform a corresponding action according to a trigger operation of the user, where the triggering operation is performed, the corresponding action includes: restarting the terminal immediately, or stopping restarting the terminal;
    所述第一发送模块,设置为在所述预定时间内没有接收到所述触发操作的情况下,在所述预定时间到达时确定重启所述终端。 The first sending module is configured to determine to restart the terminal when the predetermined time arrives, if the triggering operation is not received within the predetermined time.
PCT/CN2017/076334 2016-09-14 2017-03-10 Method and apparatus for reconstructing cache partition WO2018049798A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610822870.6A CN107818026A (en) 2016-09-14 2016-09-14 A kind of method and apparatus of cache partitions reconstruct
CN201610822870.6 2016-09-14

Publications (1)

Publication Number Publication Date
WO2018049798A1 true WO2018049798A1 (en) 2018-03-22

Family

ID=61601505

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/076334 WO2018049798A1 (en) 2016-09-14 2017-03-10 Method and apparatus for reconstructing cache partition

Country Status (2)

Country Link
CN (1) CN107818026A (en)
WO (1) WO2018049798A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110928727A (en) * 2019-11-12 2020-03-27 晶晨半导体(上海)股份有限公司 Method for rapidly restoring factory settings of operating system

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111859225B (en) * 2020-07-31 2023-08-22 中国工商银行股份有限公司 Program file access method, apparatus, computing device and medium
CN112003947A (en) * 2020-08-26 2020-11-27 山东恒远智能科技有限公司 System and verification method for preventing repeated requests from client to server
CN112346788A (en) * 2020-11-06 2021-02-09 四川长虹电器股份有限公司 Partition safety method for Android smart television system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103853584A (en) * 2014-01-17 2014-06-11 深圳市同洲电子股份有限公司 Master system recovery method and terminal
CN103927239A (en) * 2014-03-28 2014-07-16 深圳市江波龙电子有限公司 Method and device for restoring system of terminal equipment
CN104298618A (en) * 2014-09-10 2015-01-21 青岛海信移动通信技术股份有限公司 Instruction processing method and device for intelligent terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103853584A (en) * 2014-01-17 2014-06-11 深圳市同洲电子股份有限公司 Master system recovery method and terminal
CN103927239A (en) * 2014-03-28 2014-07-16 深圳市江波龙电子有限公司 Method and device for restoring system of terminal equipment
CN104298618A (en) * 2014-09-10 2015-01-21 青岛海信移动通信技术股份有限公司 Instruction processing method and device for intelligent terminal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110928727A (en) * 2019-11-12 2020-03-27 晶晨半导体(上海)股份有限公司 Method for rapidly restoring factory settings of operating system

Also Published As

Publication number Publication date
CN107818026A (en) 2018-03-20

Similar Documents

Publication Publication Date Title
CN107179909B (en) Software upgrading method and device and computer readable storage medium
TWI576764B (en) A computer system
CN104794014B (en) System operation method and intelligent terminal
JP5575338B2 (en) Information processing apparatus, information processing method, and computer program
CN106775610B (en) Electronic equipment starting method and electronic equipment
WO2018049798A1 (en) Method and apparatus for reconstructing cache partition
US20110004871A1 (en) Embedded electronic device and firmware updating method thereof
US9983791B2 (en) System management controller and method of configuration file backup and recovery
CN105917306B (en) System and method for configuring system firmware configuration data
TWI533216B (en) Operating system updating method
JP2013520744A (en) Method and apparatus for generating minimum boot image
KR20130138635A (en) Method and apparatus for fault tolerant fota update with single backup block write
TW201843583A (en) Method and computer system for automatically recovering the BIOS image file
WO2018054060A1 (en) Processor and bootloader program update method, and storage medium
CN108874459B (en) Rapid starting method and device based on virtualization technology
CN110209525B (en) Operating system restoration method and device
CN105786545B (en) Breakpoint recovery method and system based on heterogeneous hybrid memory
WO2015184732A1 (en) Bootstrap storage method, bootstrap fault recovery method and device, and computer storage medium
US8949588B1 (en) Mobile telephone as bootstrap device
WO2017173924A1 (en) Method and device for switching between file systems
CN112416527A (en) Data recovery method, device, equipment and storage medium
CN114995852A (en) Equipment upgrading method, equipment and computer readable storage medium
TW201617861A (en) Firmware updating method and electronic apparatus using the same
TWI689867B (en) Operating system repairs via electronic devices
CN109428936B (en) APP upgrading method, device, system, electronic equipment and storage medium

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

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

Country of ref document: EP

Kind code of ref document: A1