A method and device for quickly restoring factory settings

By calling the clear data service on the Android terminal device and restarting the system, the problem of how long it takes to restore factory settings is solved, a fast and simple factory setting process is realized, and the user experience is improved.

CN112068987BActive Publication Date: 2024-08-23HISENSE VISUAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910498195.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-06-10
Publication Date
2024-08-23
Estimated Expiration
2039-06-10

AI Technical Summary

Technical Problem

Existing Android terminal devices need to be restarted multiple times when restoring to factory settings, resulting in long startup initialization time, cumbersome operation and low efficiency.

Method used

Provides a method to quickly restore factory settings. By obtaining the factory reset command, calling the clear data service to clear the data that needs to be cleared in the system, and restarting the system after the clearing is completed, the system can be restored to factory settings and avoid entering Recovery mode. , reduce the number of restarts.

Benefits of technology

It shortens the time to restore factory settings, optimizes the boot initialization time, improves user experience, is simple to operate and does not require clearing all system data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112068987B
    Figure CN112068987B
Patent Text Reader

Abstract

The present application discloses a method and device for quickly restoring factory settings, including calling a clear data service according to a factory settings restoration instruction, performing a clear data operation on the data that needs to be cleared in the system, and restarting the system after the clear data operation is completed to restore the system to factory settings. Compared with the prior art, the method provided by this embodiment reduces the consumption of one restart, is simple to operate, and the system does not enter the Recovery stage, which can avoid clearing all the data in the system, optimize the boot initialization time after restoring factory settings, shorten the factory settings restoration time, and thus improve the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a method and device for quickly restoring factory settings. Background Art

[0002] People often install a variety of applications on terminal devices, and these applications will generate corresponding application data in the software system during operation. Over time, this will cause the application to run lag. After using a complex software system for a period of time, it may not be able to start normally due to hardware or software problems. Restoring the factory settings can effectively solve the above problems.

[0003] Factory settings refer to the default state of the terminal device when it leaves the factory, such as the default start interface, standby mode, operation shortcut keys, etc. Restoring factory settings refers to restoring the terminal device to the default state when it leaves the factory. Current Android terminal devices (such as mobile phones, tablets, etc.) all have the function of restoring factory settings, which can restore the personalized settings of the terminal device to the default state when it leaves the factory, that is, formatting the Data partition and the Cache partition. However, in the existing methods of restoring factory settings, the Android terminal device is required to first enter the Recovery mode by restarting, perform the partition formatting operation in the Recovery mode, and then restart the terminal device to complete the startup, and finally restore the factory settings.

[0004] However, this method requires users to restart the device multiple times, and after formatting the data partition, the dex file of the APP needs to be optimized again, resulting in a long first boot time after restoring the factory settings. Not only is the operation cumbersome, but the efficiency is also low. Summary of the invention

[0005] The present application provides a method and device for quickly restoring factory settings, so as to solve the problem that the power-on initialization time of the existing method is long, resulting in a long time for restoring factory settings.

[0006] In a first aspect, the present application provides a method for quickly restoring factory settings, comprising the following steps:

[0007] Get the factory reset command;

[0008] According to the factory reset instruction, the clear data service is called to clear the data that needs to be cleared in the system;

[0009] When the data clearing operation is completed, the system is restarted to restore the system to factory settings.

[0010] Optionally, calling a clear data service according to the factory reset instruction to perform a clear data operation on the data to be cleared in the system includes:

[0011] According to the factory reset instruction, a list of files to be cleared in the system is obtained;

[0012] Traversing the to-be-deleted files in the list of files to be deleted, and determining whether the to-be-deleted files are whitelist files;

[0013] If the file to be deleted is not a whitelist file, a data clearing operation is performed on the file to be deleted.

[0014] Optionally, before determining whether the file to be deleted is a whitelist file, the method further includes:

[0015] Traversing the to-be-deleted files in the to-be-deleted file list, and determining whether the to-be-deleted files are partition files corresponding to the current partition;

[0016] If the file to be deleted is a partition file of the current partition, the step of determining whether the file to be deleted is a whitelist file is performed.

[0017] Optionally, the process of restarting the system includes:

[0018] After completing the data clearing operation on the data of the current partition, performing the data clearing operation on the partition file of the next partition;

[0019] If all partitions in the system have completed the data clearing operation, then synchronizing the data clearing results of each partition in the system;

[0020] When the synchronization operation is completed, the system is restarted.

[0021] Optionally, after calling the clear data service, the method further includes: stopping all services and application programs in the system.

[0022] Optionally, the whitelist file includes data in the system whose deletion will affect the boot performance and whose non-deletion will not affect the operation of the entire machine.

[0023] In a second aspect, the present application also provides a device for quickly restoring factory settings, including:

[0024] An instruction acquisition module is used to acquire the factory reset instruction;

[0025] A data clearing service calling module is used to call the data clearing service according to the factory reset instruction and perform a data clearing operation on the data that needs to be cleared in the system;

[0026] The restart module is used to restart the system when the data clearing operation is completed to restore the system to factory settings.

[0027] Optionally, the clear data service calling module includes:

[0028] A file list acquisition unit to be cleared is used to acquire a file list to be cleared in the system according to the factory reset instruction;

[0029] A whitelist determination unit, used for traversing the to-be-deleted files in the list of files to be deleted, and determining whether the to-be-deleted files are whitelist files;

[0030] The data clearing unit is used to clear the data of the file to be deleted when the file to be deleted is not a whitelist file.

[0031] Optionally, the clear data service calling module further includes:

[0032] A partition file determination unit, used for traversing the to-be-deleted files in the to-be-deleted file list, and determining whether the to-be-deleted files are partition files corresponding to the current partition;

[0033] The whitelist judgment unit is further used to execute the step of judging whether the file to be deleted is a whitelist file when the file to be deleted is a partition file of the current partition.

[0034] Optionally, the restart module includes:

[0035] A next partition clearing data unit is used to clear data on the partition file of the next partition after completing the clearing data operation on the data of the current partition;

[0036] A data clearing result synchronization unit, configured to synchronize the data clearing result of each partition in the system when all partitions in the system have completed the data clearing operation;

[0037] The restart unit is used to restart the system when the synchronization operation is completed.

[0038] Optionally, it also includes:

[0039] The program stopping module is used to stop all services and application programs in the system.

[0040] Optionally, the whitelist file includes data in the system whose deletion will affect the boot performance and whose non-deletion will not affect the operation of the entire machine.

[0041] It can be seen from the above technical solutions that the embodiment of the present invention provides a method and device for quickly restoring factory settings, including calling a clear data service according to a factory settings restoration instruction, performing a data clearing operation on the data that needs to be cleared in the system, and restarting the system after the data clearing operation is completed to restore the system to factory settings. Compared with the prior art, the method provided by this embodiment reduces the consumption of one restart, is simple to operate, and the system does not enter the Recovery stage, which can avoid clearing all the data in the system, optimize the boot initialization time after restoring factory settings, shorten the duration of restoring factory settings, and thus improve the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to more clearly illustrate the technical solution of the present application, the drawings required for use in the embodiments are briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0043] Figure 1 exemplarily shows a schematic diagram of an operation scenario between a display device and a control device according to an embodiment;

[0044] Figure 2 exemplarily shows a hardware configuration block diagram of a control device according to an embodiment;

[0045] Figure 3 exemplarily shows a hardware configuration block diagram of a hardware system in a display device according to an embodiment;

[0046] Figure 4 The example shows that according to Figure 3 Display device hardware architecture block diagram;

[0047] Figure 5 exemplarily shows a functional configuration diagram of a display device according to an embodiment;

[0048] Figure 6a exemplarily shows a schematic diagram of the configuration of the software system in the display device according to the embodiment;

[0049] Figure 6b exemplarily shows a schematic diagram of the configuration of an application in a display device according to an embodiment;

[0050] Figure 7 Schematic diagram of a user interface in a display device according to an embodiment is exemplarily shown in FIG.

[0051] Figure 8 A flowchart of a method for quickly restoring factory settings according to an embodiment is exemplarily shown in FIG.

[0052] Fig. 9exemplarily shows a flow chart of a method for calling a clear data service according to an embodiment;

[0053] Fig.10 A flowchart of a method for determining a whitelist file according to an embodiment is exemplarily shown in FIG.

[0054] Fig.11 exemplarily shows a flow chart of a method for calling a clear data service according to another embodiment;

[0055] Fig.12 exemplarily shows a flow chart of a method for restarting a system according to an embodiment;

[0056] Fig.13 exemplarily shows a flow chart of a method for clearing data from each partition in a system according to an embodiment;

[0057] Fig.14 A structural block diagram of a device for quickly restoring factory settings according to an embodiment is exemplarily shown in FIG. DETAILED DESCRIPTION

[0058] In order to make the purpose, technical solutions and advantages of the exemplary embodiments of the present application clearer, the technical solutions in the exemplary embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the exemplary embodiments of the present application. Obviously, the described exemplary embodiments are only part of the embodiments of the present application, not all of the embodiments.

[0059] For the convenience of users, display devices are usually provided with various external device interfaces to facilitate the connection of different peripheral devices or cables to achieve corresponding functions. When a high-definition camera is connected to the interface of the display device, if the hardware system of the display device does not have a hardware interface for receiving the source code of the high-pixel camera, the data received by the camera cannot be presented on the display screen of the display device.

[0060] Moreover, restricted by the hardware structure, the hardware system of traditional display devices only supports one hard decoding resource and usually only supports video decoding of 4K resolution at most. Therefore, when watching online TV and conducting video chat at the same time, in order not to reduce the clarity of the online video, it is necessary to use hard decoding resources (usually the GPU in the hardware system) to decode the online video. In this case, the video chat screen can only be processed by soft decoding of the video by the general-purpose processor (such as the CPU) in the hardware system.

[0061] Using soft decoding to process video chat images will greatly increase the data processing burden of the CPU. When the data processing burden of the CPU is too heavy, the image may freeze or become unsmooth. Furthermore, due to the data processing capacity of the CPU, when using CPU soft decoding to process video chat images, multi-way video calls are usually not possible. When a user wants to have a video chat with multiple other users at the same time in the same chat scene, access will be blocked.

[0062] Based on the above considerations, in order to overcome the above defects, the present application discloses a dual hardware system architecture to realize multi-channel video chat data (at least one local video).

[0063] The following first describes the concepts involved in this application in conjunction with the accompanying drawings. It should be noted that the following description of each concept is only to make the content of this application easier to understand and does not limit the scope of protection of this application.

[0064] The term "module" used in the embodiments of the present application may refer to any known or later developed hardware, software, firmware, artificial intelligence, fuzzy logic, or a combination of hardware and / or software code that can perform the functions associated with the element.

[0065] The term "remote control" used in the embodiments of the present application refers to a component of an electronic device (such as the display device disclosed in the present application), which can usually wirelessly control the electronic device within a short distance. The component can generally use infrared and / or radio frequency (RF) signals and / or Bluetooth to connect to the electronic device, and can also include functional modules such as WiFi, wireless USB, Bluetooth, motion sensors, etc. For example: a handheld touch remote control replaces most of the physical built-in hard keys in a general remote control device with a user interface in a touch screen.

[0066] The term "gesture" used in the embodiments of the present application refers to a user's behavior of expressing an intended idea, action, purpose, or result through a change in hand shape or hand movement.

[0067] The term "hardware system" used in the embodiments of the present application may refer to a physical component with computing, control, storage, input and output functions, which is composed of mechanical, optical, electrical and magnetic devices such as integrated circuits (ICs) and printed circuit boards (PCBs). In the embodiments of the present application, the hardware system is also usually referred to as a motherboard or a chip.

[0068] Figure 1 FIG. 2 is a schematic diagram showing an operation scenario between a display device and a control device according to an embodiment. Figure 1 As shown, a user can operate the display device 200 through the control apparatus 100 .

[0069] The control device 100 may be a remote controller 100A, which may communicate with the display device 200 via infrared protocol communication, Bluetooth protocol communication, ZigBee protocol communication or other short-range communication methods, and is used to control the display device 200 wirelessly or in other wired ways. The user may input user commands through buttons on the remote controller, voice input, control panel input, etc. to control the display device 200. For example, the user may input corresponding control commands through the volume plus and minus keys, channel control keys, up / down / left / right movement keys, voice input keys, menu keys, power on / off keys, etc. on the remote controller to realize the function of controlling the display device 200.

[0070] The control device 100 may also be a smart device, such as a mobile terminal 100B, a tablet computer, a computer, a laptop computer, etc., which may communicate with the display device 200 via a local area network (LAN), a wide area network (WAN), a wireless local area network (WLAN) or other networks, and control the display device 200 through an application corresponding to the display device 200. For example, the display device 200 is controlled using an application running on the smart device. The application may provide the user with various controls through an intuitive user interface (UI) on a screen associated with the smart device.

[0071] For example, both the mobile terminal 100B and the display device 200 can be installed with software applications, so that the connection and communication between the two can be achieved through the network communication protocol, thereby achieving the purpose of one-to-one control operation and data communication. For example, the mobile terminal 100B can establish a control command protocol with the display device 200, synchronize the remote control keyboard to the mobile terminal 100B, and realize the function of controlling the display device 200 by controlling the user interface on the mobile terminal 100B; the audio and video content displayed on the mobile terminal 100B can also be transmitted to the display device 200 to realize the synchronous display function.

[0072] like Figure 1 As shown, the display device 200 can also communicate data with the server 300 through various communication methods. In various embodiments of the present application, the display device 200 can be allowed to communicate with the server 300 through a local area network, a wireless local area network or other networks. The server 300 can provide various content and interactions to the display device 200.

[0073] For example, the display device 200 receives software program updates or accesses a remotely stored digital media library by sending and receiving information and interacting with an electronic program guide (EPG). The server 300 can be a group or multiple groups, and can be one or more types of servers. Other network service content such as video on demand and advertising services are provided through the server 300.

[0074] The display device 200 may be a liquid crystal display, an OLED (Organic Light Emitting Diode) display, a projection display device, or a smart TV. The specific display device type, size, and resolution are not limited. It is understood by those skilled in the art that the display device 200 may be modified in performance and configuration as needed.

[0075] In addition to providing a broadcast receiving television function, the display device 200 may also provide an intelligent network television function that provides a computer support function, such as network television, intelligent television, and Internet Protocol Television (IPTV).

[0076] like Figure 1 As shown, a camera may be connected or provided on the display device to present the image captured by the camera on the display interface of the display device or other display devices to realize interactive chat between users. Specifically, the image captured by the camera may be displayed in full screen, half screen, or any optional area on the display device.

[0077] As an optional connection method, the camera is connected to the back shell of the display through a connecting plate and fixedly installed in the upper middle part of the back shell of the display. As an installable method, it can be fixedly installed at any position of the back shell of the display, as long as its image acquisition area is not blocked by the back shell. For example, the image acquisition area has the same display orientation as the display device.

[0078] As another optional connection method, the camera can be raised and lowered to the display back shell through a connecting plate or other conceivable connector. A lifting motor is installed on the connector. When the user wants to use the camera or an application wants to use the camera, the camera is raised above the display. When the camera is not needed, it can be embedded behind the back shell to protect the camera from damage.

[0079] As an embodiment, the camera used in the present application can be 16 million pixels to achieve ultra-high-definition display. In actual use, a camera with higher or lower pixels than 16 million pixels can also be used.

[0080] When a camera is installed on a display device, the content displayed by the display device in different application scenarios can be integrated in a variety of different ways, thereby achieving functions that traditional display devices cannot achieve.

[0081] For example, a user can have a video chat with at least one other user while watching a video program. The video program can be presented as a background image, and the video chat window is displayed on the background image. This function can be called "watch and chat" figuratively.

[0082] Optionally, in a "watch and chat" scenario, while watching a live video or an online video, at least one video chat can be conducted across terminals.

[0083] In another example, a user can have a video chat with at least one other user while learning in an educational application. For example, a student can interact with a teacher remotely while learning the content in an educational application. This function can be vividly called "learning and chatting".

[0084] In another example, a user can have a video chat with other players while playing a card game. For example, when a player enters a game application to participate in a game, he or she can interact with other players remotely. This function can be called "watch and play".

[0085] Optionally, the game scene is integrated with the video screen, and the portrait in the video screen is cut out and displayed in the game screen to enhance the user experience.

[0086] Optionally, in somatosensory games (such as ball, boxing, running, dancing, etc.), the camera can be used to obtain human posture and movement, limb detection and tracking, and detection of key points of the human skeleton, which are then integrated with the animation in the game to realize games such as sports, dance and other scenes.

[0087] In another example, a user can interact with at least one other user through video and voice in a karaoke application. This function can be called "watch and sing". Preferably, when at least one user enters the application in a chat scene, multiple users can complete the recording of a song together.

[0088] In another example, users can open the camera locally to obtain pictures and videos. Figuratively, this function can be called "looking in the mirror."

[0089] In other examples, more functions may be added or the above functions may be reduced. This application does not specifically limit the functions of the display device.

[0090] Figure 2 FIG. 2 is an exemplary block diagram of a hardware configuration of the control device 100 according to an embodiment. Figure 2 As shown, the control device 100 includes a controller 110 , a communicator 130 , a user input / output interface 140 , a memory 190 , and a power supply 180 .

[0091] The control device 100 is configured to control the display device 200, receive the user's input operation instructions, and convert the operation instructions into instructions that the display device 200 can recognize and respond to, playing the role of an interactive medium between the user and the display device 200. For example, the user operates the channel increase and decrease keys on the control device 100, and the display device 200 responds to the channel increase and decrease operations.

[0092] In some embodiments, the control device 100 may be a smart device, for example, the control device 100 may be installed with various applications for controlling the display device 200 according to user needs.

[0093] In some embodiments, Figure 1 As shown, the mobile terminal 100B or other smart electronic device can play a similar function to the control device 100 after installing the application for controlling the display device 200. For example, the user can install the application to realize the functions of the physical buttons of the control device 100 through various function keys or virtual buttons of the graphical user interface provided on the mobile terminal 100B or other smart electronic device.

[0094] The controller 110 includes a processor 112, a RAM 113, a ROM 114, a communication interface and a communication bus. The controller 110 is used to control the operation and operation of the control device 100, as well as the communication and cooperation between the internal components and the external and internal data processing functions.

[0095] Under the control of the controller 110, the communicator 130 realizes the communication of control signals and data signals with the display device 200. For example, the received user input signal is sent to the display device 200. The communicator 130 may include at least one of the communication modules such as the WIFI module 131, the Bluetooth module 132, and the NFC module 133.

[0096] The user input / output interface 140 includes at least one of a microphone 141, a touch panel 142, a sensor 143, a button 144, and the like. For example, the user can implement the user command input function through voice, touch, gesture, pressing, and the like, and the input interface converts the received analog signal into a digital signal, and the digital signal into a corresponding command signal, and sends it to the display device 200.

[0097] The output interface includes an interface for sending received user commands to the display device 200. In some embodiments, it can be an infrared interface or a radio frequency interface. For example, in the case of an infrared signal interface, the user input command needs to be converted into an infrared control signal according to an infrared control protocol, and then sent to the display device 200 via an infrared sending module. For another example, in the case of a radio frequency signal interface, the user input command needs to be converted into a digital signal, and then modulated according to a radio frequency control signal modulation protocol, and then sent to the display device 200 by a radio frequency sending terminal.

[0098] In some embodiments, the control device 100 includes at least one of a communicator 130 and an output interface. The control device 100 is configured with a communicator 130, such as a WIFI, Bluetooth, NFC or other module, which can encode the user input command through the WIFI protocol, Bluetooth protocol, or NFC protocol and send it to the display device 200.

[0099] The memory 190 is used to store various operating programs, data and applications for driving and controlling the control device 100 under the control of the controller 110. The memory 190 can store various control signal instructions input by the user.

[0100] The power supply 180 is used to provide operating power support for various components of the control device 100 under the control of the controller 110. It can be a battery and related control circuits.

[0101] Figure 3 Schematically shows a hardware configuration block diagram of a hardware system in a display device 200 according to an embodiment.

[0102] When using a dual hardware system architecture, the structural relationship of the hardware system can be Figure 3 As shown. For the convenience of description, one hardware system in the dual hardware system architecture is referred to as the first hardware system or A system, A chip, and the other hardware system is referred to as the second hardware system or N system, N chip. The A chip includes the controller of the A chip and various modules connected to the controller of the A chip through various interfaces, and the N chip includes the controller of the N chip and various modules connected to the controller of the N chip through various interfaces. An independent operating system can be installed in each of the A chip and the N chip, so that there are two independent but interrelated subsystems in the display device 200.

[0103] like Figure 3As shown, the A chip and the N chip can be connected, communicated and powered through multiple different types of interfaces. The interface types between the A chip and the N chip may include a general-purpose input / output interface (GPIO), a USB interface, an HDMI interface, a UART interface, etc. The A chip and the N chip may use one or more of these interfaces for communication or power transmission. For example Figure 3 As shown, in the dual hardware system architecture, the N chip can be powered by an external power supply, while the A chip can be powered by the N chip instead of the external power supply.

[0104] In addition to the interface for connecting with the N chip, the A chip may also include interfaces for connecting with other devices or components, such as Figure 3 The MIPI interface, Bluetooth interface, etc. used to connect the camera are shown in the figure.

[0105] Similarly, in addition to the interface for connecting to the N chip, the N chip can also include a VBY interface for connecting to the display screen TCON (Timer Control Register), an i2S interface for connecting to the power amplifier (Amplifier, AMP) and the speaker (Speaker); as well as an IR / Key interface, a USB interface, a Wifi interface, a Bluetooth interface, an HDMI interface, a Tuner interface, etc.

[0106] Combine the following Figure 4 The dual hardware system architecture of this application is further explained. Figure 4 This is merely an exemplary description of the dual hardware system architecture of the present application and does not limit the present application. In practical applications, both hardware systems may include more or less hardware or interfaces as required.

[0107] Figure 4 The example shows that according to Figure 3 The hardware architecture block diagram of the display device 200 is shown as follows. Figure 4 As shown, the hardware system of the display device 200 may include an A chip and an N chip, and modules connected to the A chip or the N chip through various interfaces.

[0108] The N chip may include a tuner 220, a communicator 230, an external device interface 250, a controller 210, a memory 290, a user input interface, a video processor 260-1, an audio processor 260-2, a display 280, an audio output interface 270, and a power supply. In other embodiments, the N chip may also include more or fewer modules.

[0109] The tuner-demodulator 220 is used to perform modulation and demodulation processing such as amplification, mixing and resonance on the broadcast television signals received by wired or wireless means, so as to demodulate the audio and video signals carried in the frequency of the TV channel selected by the user, as well as additional information (such as EPG data signal) from multiple wireless or wired broadcast television signals. Depending on the broadcast format of the television signal, the signal path of the tuner-demodulator 220 can be in many ways, such as: terrestrial broadcasting, cable broadcasting, satellite broadcasting or Internet broadcasting; and according to different modulation types, the signal adjustment method can be digital modulation or analog modulation; and according to different types of received television signals, the tuner-demodulator 220 can demodulate analog signals and / or digital signals.

[0110] The tuner-demodulator 220 is further configured to respond to the TV channel frequency selected by the user and the TV signal carried by the frequency according to the user's selection and under the control of the controller 210 .

[0111] In some other exemplary embodiments, the tuner 220 may also be in an external device, such as an external set-top box, etc. In this way, the set-top box outputs the television audio and video signals after modulation and demodulation, and inputs them into the display device 200 through the external device interface 250 .

[0112] The communicator 230 is a component for communicating with external devices or external servers according to various communication protocol types. For example, the communicator 230 may include a WIFI module 231, a Bluetooth communication protocol module 232, a wired Ethernet communication protocol module 233, and other network communication protocol modules or near field communication protocol modules such as an infrared communication protocol module.

[0113] The display device 200 may establish a connection for control signals and data signals with an external control device or a content providing device through the communicator 230. For example, the communicator may receive a control signal of the remote controller 100A according to the control of the controller.

[0114] The external device interface 250 is a component that provides data transmission between the N chip controller 210 and the A chip and other external devices. The external device interface can be connected to external devices such as set-top boxes, game devices, and notebook computers in a wired / wireless manner, and can receive data such as video signals (such as moving images), audio signals (such as music), and additional information (such as EPG) from the external devices.

[0115] The external device interface 250 may include: a high-definition multimedia interface (HDMI) terminal 251, a composite video blanking synchronization (CVBS) terminal such as an AV interface 252, an analog or digital component terminal 353, a universal serial bus (USB) terminal 254, a red, green, and blue (RGB) terminal (not shown in the figure), etc. Any one or more of the above. The present application does not limit the number and type of external device interfaces.

[0116] The controller 210 controls the operation of the display device 200 and responds to the user's operation by running various software control programs (such as an operating system and / or various application programs) stored in the memory 290.

[0117] like Figure 4 As shown, the controller 210 includes a read-only memory RAM 214, a random access memory ROM 213, a graphics processor 216, a CPU processor 212, a communication interface 218, and a communication bus. The RAM 214 and the ROM 213 as well as the graphics processor 216, the CPU processor 212, and the communication interface 218 are connected via a bus.

[0118] ROM 213 is used to store various system startup instructions. When a power-on signal is received, the display device 200 starts to power on, and the CPU processor 212 runs the system startup instructions in the ROM, and copies the operating system stored in the memory 290 to the RAM 214 to start running the startup operating system. After the startup of the operating system is completed, the CPU processor 212 copies various application programs in the memory 290 to the RAM 214, and then starts running the startup various application programs.

[0119] The graphics processor 216 is used to generate various graphic objects, such as icons, operation menus, and user input command display graphics. It includes an operator, which performs operations by receiving various interactive instructions input by the user and displays various objects according to display attributes. It also includes a renderer, which generates various objects based on the operator, and displays the rendered results on the display 280.

[0120] The CPU processor 212 is used to execute the operating system and application instructions stored in the memory 290, and execute various applications, data and content according to various interactive instructions received from the outside, so as to finally display and play various audio and video contents.

[0121] In some exemplary embodiments, the CPU processor 212 may include multiple processors. The multiple processors may include a main processor and multiple or one sub-processors. The main processor is used to perform some operations of the display device 200 in the pre-power-on mode and / or the operation of displaying a picture in the normal mode. The multiple or one sub-processors are used to perform an operation in the standby mode and the like.

[0122] The communication interface may include a first interface 218 - 1 to an nth interface 218 - n , and these interfaces may be network interfaces connected to external devices via a network.

[0123] The controller 210 may control the overall operation of the display device 200. For example, in response to receiving a user command for selecting a UI object to be displayed on the display 280, the controller 210 may perform an operation related to the object selected by the user command.

[0124] The object may be any one of the selectable objects, such as a hyperlink or an icon. Operations related to the selected object may include, for example, displaying a page, document, image, etc. connected to the hyperlink, or executing a program corresponding to the icon. User commands for selecting UI objects may be commands inputted through various input devices (e.g., a mouse, keyboard, touchpad, etc.) connected to the display device 200 or voice commands corresponding to voices spoken by the user.

[0125] The memory 290 includes various software modules for driving and controlling the display device 200. For example, the various software modules stored in the memory 290 include a basic module, a detection module, a communication module, a display control module, a browser module, and various service modules.

[0126] The basic module is a bottom-level software module used for signal communication between various hardware in the display device 200 and sending processing and control signals to the upper-level modules. The detection module is a management module used to collect various information from various sensors or user input interfaces, and perform digital-to-analog conversion and analysis management.

[0127] For example, the speech recognition module includes a speech analysis module and a speech instruction database module. The display control module is a module for controlling the display 280 to display image content, and can be used to play multimedia image content and UI interface information. The communication module is a module for controlling and communicating data with external devices. The browser module is a module for executing data communication between browsing servers. The service module is a module for providing various services and various applications.

[0128] At the same time, the memory 290 is also used to store received external data and user data, images of various items in various user interfaces, and visual effect images of focus objects, etc.

[0129] The user input interface is used to send the user's input signal to the controller 210, or transmit the signal output from the controller to the user. Exemplarily, the control device (such as a mobile terminal or a remote controller) can send the user's input signal such as a power switch signal, a channel selection signal, a volume adjustment signal, etc. to the user input interface, and then the user input interface transfers it to the controller; or the control device can receive the output signal such as audio, video or data output from the user input interface after being processed by the controller, and display the received output signal or output the received output signal in the form of audio or vibration.

[0130] In some embodiments, the user may input a user command through a graphical user interface (GUI) displayed on the display 280, and the user input interface receives the user input command through the graphical user interface (GUI). Alternatively, the user may input a user command through a specific sound or gesture, and the user input interface receives the user input command by recognizing the sound or gesture through a sensor.

[0131] The video processor 260 - 1 is used to receive the video signal and perform video data processing such as decompression, decoding, scaling, noise reduction, frame rate conversion, resolution conversion, and image synthesis according to the standard codec protocol of the input signal, and can obtain a video signal that is directly displayed or played on the display 280 .

[0132] For example, the video processor 260 - 1 includes a demultiplexing module, a video decoding module, an image synthesis module, a frame rate conversion module, a display formatting module, and the like.

[0133] The demultiplexing module is used to demultiplex the input audio and video data streams. For example, if MPEG-2 is input, the demultiplexing module demultiplexes the data streams into video signals and audio signals.

[0134] The video decoding module is used to process the demultiplexed video signal, including decoding and scaling.

[0135] The image synthesis module, such as an image synthesizer, is used to superimpose and mix the GUI signal generated by the graphics generator according to the user input or itself with the scaled video image to generate an image signal for display.

[0136] The frame rate conversion module is used to convert the frame rate of the input video, such as converting the frame rate of the input 24Hz, 25Hz, 30Hz, 60Hz video to 60Hz, 120Hz or 240Hz frame rate, wherein the input frame rate may be related to the source video stream, and the output frame rate may be related to the update rate of the display. The input has a common format such as interpolation.

[0137] The display formatting module is used to change the signal output by the frame rate conversion module into a signal that conforms to the display format of a display, such as converting the format of the signal output by the frame rate conversion module to output an RGB data signal.

[0138] The display 280 is used to receive the image signal input from the video processor 260-1, and display the video content and image as well as the menu operation interface. The display 280 includes a display component for presenting the picture and a driving component for driving the image display. The displayed video content can be the video in the broadcast signal received by the tuner demodulator 220, or the video content input from the communicator or the external device interface. The display 220 also displays the user operation interface UI generated in the display device 200 and used to control the display device 200.

[0139] Furthermore, depending on the type of the display 280, a driving component for driving the display is also included. Alternatively, if the display 280 is a projection display, a projection device and a projection screen may also be included.

[0140] The audio processor 260 - 2 is used to receive the audio signal, and perform decompression and decoding according to the standard codec protocol of the input signal, as well as audio data processing such as noise reduction, digital-to-analog conversion, and amplification processing to obtain an audio signal that can be played in the speaker 272 .

[0141] The audio output interface 270 is used to receive the audio signal output by the audio processor 260-2 under the control of the controller 210. The audio output interface may include a speaker 272, or an external audio output terminal 274 of a generating device that outputs to an external device, such as an external audio terminal or a headphone output terminal.

[0142] In some other exemplary embodiments, the video processor 260-1 may include one or more chips. The audio processor 260-2 may also include one or more chips.

[0143] Furthermore, in some other exemplary embodiments, the video processor 260 - 1 and the audio processor 260 - 2 may be separate chips, or may be integrated with the controller 210 into one or more chips.

[0144] The power supply is used to provide power supply support for the display device 200 with power input from an external power source under the control of the controller 210. The power supply may include a built-in power supply circuit installed inside the display device 200, or may be a power supply installed outside the display device 200, such as a power supply interface in the display device 200 that provides an external power source.

[0145] Similar to N chips, such as Figure 4 As shown, the A chip may include a controller 310, a communicator 330, a detector 340, and a memory 390. In some embodiments, it may also include a user input interface, a video processor, an audio processor, a display, and an audio output interface. In some embodiments, there may also be a power supply that independently powers the A chip.

[0146] The communicator 330 is a component for communicating with external devices or external servers according to various communication protocol types. For example, the communicator 330 may include a WIFI module 331, a Bluetooth communication protocol module 332, a wired Ethernet communication protocol module 333, and other network communication protocol modules or near field communication protocol modules such as an infrared communication protocol module.

[0147] The communicator 330 of the A chip and the communicator 230 of the N chip also interact with each other. For example, the WiFi module 231 of the N chip is used to connect to an external network and generate network communication with an external server, etc. The WiFi module 331 of the A chip is used to connect to the WiFi module 231 of the N chip, without directly connecting to the external network, etc. Therefore, for the user, a display device such as the above embodiment only displays one WiFi account to the outside.

[0148] The detector 340 is a component of the display device A chip used to collect signals from the external environment or interact with the outside. The detector 340 may include a light receiver 342, a sensor for collecting ambient light intensity, which can adapt to changes in display parameters by collecting ambient light; it may also include an image collector 341, such as a camera, which can be used to collect external environmental scenes, as well as to collect user attributes or gestures for interacting with the user, which can adaptively change display parameters, and can also recognize user gestures to achieve the function of interacting with the user.

[0149] The external device interface 350 is a component for data transmission between the controller 310 and the N chip or other external devices. The external device interface can be connected to external devices such as set-top boxes, game devices, and laptop computers in a wired or wireless manner.

[0150] The controller 310 controls the operation of the display device 200 and responds to user operations by running various software control programs stored in the memory 390 (such as installed third-party applications, etc.) and interacting with the N chip.

[0151] like Figure 4 As shown, the controller 310 includes a read-only memory ROM 313, a random access memory RAM 314, a graphics processor 316, a CPU processor 312, a communication interface 318, and a communication bus. Among them, the ROM 313 and the RAM 314 and the graphics processor 316, the CPU processor 312, and the communication interface 318 are connected through the bus.

[0152] ROM313 is used to store various system startup instructions. The CPU processor 312 runs the system startup instructions in the ROM and copies the operating system stored in the memory 390 to the RAM 314 to start running the operating system. After the operating system is started, the CPU processor 312 copies various application programs in the memory 390 to the RAM 314, and then starts running various application programs.

[0153] The CPU processor 312 is used to execute the operating system and application instructions stored in the memory 390, and to communicate with the N chip, transmit and interact with signals, data, instructions, etc., and execute various applications, data and content based on various interactive instructions received from the outside, so as to ultimately display and play various audio and video contents.

[0154] The communication interface may include a first interface 318 - 1 to an nth interface 318 - n. These interfaces may be network interfaces connected to an external device via a network, or may be network interfaces connected to an N chip via a network.

[0155] The controller 310 may control the overall operation of the display device 200. For example, in response to receiving a user command for selecting a UI object to be displayed on the display 280, the controller 210 may perform an operation related to the object selected by the user command.

[0156] The graphics processor 316 is used to generate various graphic objects, such as icons, operation menus, and user input command display graphics. It includes an operator, which performs operations by receiving various interactive instructions input by the user and displays various objects according to display attributes. It also includes a renderer, which generates various objects based on the operator, and displays the rendered results on the display 280.

[0157] Both the graphics processor 316 of the A chip and the graphics processor 216 of the N chip can generate various graphic objects. Specifically, if application 1 is installed on the A chip and application 2 is installed on the N chip, when the user is in the interface of application 1 and performs user input commands in application 1, the graphics processor 316 of the A chip generates graphic objects. When the user is in the interface of application 2 and performs user input commands in application 2, the graphics processor 216 of the N chip generates graphic objects.

[0158] Figure 5 Schematic diagram of functional configuration of a display device according to an embodiment is exemplarily shown in FIG.

[0159] like Figure 5 As shown, the memory 390 of the A chip and the memory 290 of the N chip are respectively used to store operating systems, applications, content, user data, etc., and drive the system operation of the display device 200 and respond to various operations of the user under the control of the controller 310 of the A chip and the controller 210 of the N chip. The memory 390 of the A chip and the memory 290 of the N chip may include volatile and / or non-volatile memory.

[0160] For the N chip, the memory 290 is specifically used to store the operating program that drives the controller 210 in the display device 200, and to store various applications built into the display device 200, various applications downloaded by users from external devices, various graphical user interfaces related to the applications, various objects related to the graphical user interfaces, user data information, and various internal data supporting the applications. The memory 290 is used to store system software such as the operating system (OS) kernel, middleware, and applications, as well as to store input video data and audio data, and other user data.

[0161] The memory 290 is specifically used to store drivers and related data such as the video processor 260-1 and the audio processor 260-2, the display 280, the communication interface 230, the tuner and demodulator 220, and the input / output interface.

[0162] In some embodiments, the memory 290 may store software and / or programs, and the software programs used to represent the operating system (OS) include, for example, a kernel, middleware, an application programming interface (API), and / or an application. Exemplarily, the kernel may control or manage system resources, or functions implemented by other programs (such as the middleware, API, or application), and the kernel may provide an interface to allow the middleware and API, or the application to access the controller to control or manage system resources.

[0163] For example, the memory 290 includes a broadcast receiving module 2901, a channel control module 2902, a volume control module 2903, an image control module 2904, a display control module 2905, an audio control module 2906, an external command recognition module 2907, a communication control module 2908, a power control module 2910, an operating system 2911, and other applications 2912, a browser module, etc. The controller 210 executes various functions such as: broadcast television signal reception and demodulation function, television channel selection control function, volume selection control function, image control function, display control function, audio control function, external command recognition function, communication control function, optical signal reception function, power control function, software control platform supporting various functions, and browser function by running various software programs in the memory 290.

[0164] The memory 390 includes various software modules for driving and controlling the display device 200. For example, the various software modules stored in the memory 390 include a basic module, a detection module, a communication module, a display control module, a browser module, and various service modules. Since the functions of the memory 390 and the memory 290 are similar, the relevant parts can be referred to the memory 290, and will not be repeated here.

[0165] For example, the memory 390 includes an image control module 3904, an audio control module 2906, an external command recognition module 3907, a communication control module 3908, a light receiving module 3909, an operating system 3911, and other applications 3912, a browser module, etc. The controller 210 executes various functions such as image control function, display control function, audio control function, external command recognition function, communication control function, light signal receiving function, power control function, software control platform supporting various functions, and browser function by running various software programs in the memory 290.

[0166] Distinctively, the external instruction recognition module 2907 of the N chip and the external instruction recognition module 3907 of the A chip can recognize different instructions.

[0167] Exemplarily, since the image receiving device such as a camera is connected to the A chip, the external command recognition module 3907 of the A chip may include a graphic recognition module 3907-1, and a graphic database is stored in the graphic recognition module 3907-1. When the camera receives a graphic command from the outside, it corresponds to the command in the graphic database to control the display device. Since the voice receiving device and the remote control are connected to the N chip, the external command recognition module 2907 of the N chip may include a voice recognition module 2907-2, and a voice database is stored in the voice recognition module 2907-2. When the voice receiving device receives a voice command from the outside, it corresponds to the command in the voice database to control the display device. Similarly, the control device 100 such as the remote control is connected to the N chip, and the key command recognition module interacts with the control device 100.

[0168] Figure 6a Schematically shows a configuration block diagram of a software system in a display device 200 according to an embodiment.

[0169] For N chips, such as Figure 6a As shown in , the operating system 2911, including execution operation software for processing various basic system services and for implementing hardware-related tasks, acts as a medium between application programs and hardware components to complete data processing.

[0170] In some embodiments, part of the operating system kernel may include a series of software to manage display device hardware resources and provide services for other programs or software codes.

[0171] In some other embodiments, a portion of the operating system kernel may include one or more device drivers, which may be a set of software codes in the operating system that help operate or control devices or hardware associated with the display device. The driver may include code to operate video, audio, and / or other multimedia components. Examples include display, camera, Flash, WiFi, and audio drivers.

[0172] Among them, the accessibility module 2911-1 is used to modify or access the application to achieve the accessibility of the application and the operability of its displayed content.

[0173] The communication module 2911 - 2 is used to connect to other peripheral devices via relevant communication interfaces and communication networks.

[0174] The user interface module 2911 - 3 is used to provide objects for displaying the user interface for access by various application programs, thereby achieving user operability.

[0175] Control application 2911-4 is used for control process management, including runtime applications, etc.

[0176] The event transmission system 2914 may be implemented in the operating system 2911 or in the application 2912. In some embodiments, the event transmission system 2914 is implemented in the operating system 2911 and in the application 2912, and is used to monitor various user input events, and implement one or more sets of predefined operation processing procedures according to the recognition results of various events or sub-events in response to various event references.

[0177] The event monitoring module 2914-1 is used to monitor input events or sub-events of the user input interface.

[0178] The event identification module 2914-2 is used to define various types of events inputted by various user input interfaces, identify various events or sub-events, and transmit them to the processor for executing one or more corresponding processing procedures.

[0179] Among them, events or sub-events refer to inputs detected by one or more sensors in the display device 200, as well as inputs from external control devices (such as the control device 100, etc.). For example: various sub-events of voice input, gesture input sub-events of gesture recognition, and sub-events of remote control key command input of the control device, etc. For example, one or more sub-events in the remote control include multiple forms, including but not limited to one or a combination of pressing up / down / left / right / , confirming key, pressing and holding a key, etc. And operations of non-physical keys, such as moving, pressing, releasing, etc.

[0180] The interface layout management module 2913 directly or indirectly receives user input events or sub-events monitored by the event transmission system 2914, and is used to update the layout of the user interface, including but not limited to the position of each control or sub-control in the interface, and the size or position and hierarchy of the container and other execution operations related to the interface layout.

[0181] Since the functions of the operating system 3911 of the A chip and the operating system 2911 of the N chip are similar, please refer to the operating system 2911 for the relevant details and will not be repeated here.

[0182] Figure 6b FIG. 4 exemplarily shows a schematic diagram of the configuration of an application program in a display device according to an embodiment; Figure 6b As shown in , the application layer of the display device includes various applications that can be executed on the display device 200.

[0183] The application layer 2912 of the N chip may include but is not limited to one or more applications, such as video on demand applications, application centers, game applications, etc. The application layer 3912 of the A chip may include but is not limited to one or more applications, such as live TV applications, media center applications, etc. It should be noted that what applications are included in the A chip and the N chip is determined according to the operating system and other designs, and the present invention does not need to make specific limitations and divisions on the applications included in the A chip and the N chip.

[0184] The live TV application can provide live TV through different signal sources. For example, the live TV application can provide a TV signal using input from cable TV, wireless broadcast, satellite service, or other types of live TV services. And, the live TV application can display the video of the live TV signal on the display device 200.

[0185] Video on demand applications can provide videos from different storage sources. Unlike live TV applications, video on demand provides video display from some storage source. For example, video on demand can come from the server side of cloud storage, or from the local hard disk storage containing stored video programs.

[0186] Media center applications can provide various multimedia content playback applications. For example, a media center can be a service that users can access various images or audios through a media center application, which is different from live TV or video on demand.

[0187] The application center can provide and store various applications. The application can be a game, an application, or some other application related to a computer system or other device but can be run on the display device. The application center can obtain these applications from different sources, store them in a local storage, and then run them on the display device 200.

[0188] Figure 7 FIG. 2 is a schematic diagram of a user interface in a display device 200 according to an embodiment. Figure 7 As shown, the user interface includes multiple view display areas, for example, a first view display area 201 and a play screen 202, wherein the play screen includes a layout of one or more different items. The user interface also includes a selector indicating that an item is selected, and the position of the selector can be moved by user input to change the selection of different items.

[0189] It should be noted that multiple view display areas can present display screens of different levels. For example, the first view display area can present video chat project content, and the second view display area can present application layer project content (such as web video, VOD display, application screen, etc.).

[0190] Optionally, there are differences in the presentation priorities of different view display areas, and the display priorities of view display areas are different between view display areas with different priorities. For example, the priority of the system layer is higher than that of the application layer. When the user uses the acquisition selector and screen switching at the application layer, the screen display of the view display area of ​​the system layer is not blocked; and when the size and position of the view display area of ​​the application layer are changed according to the user's selection, the size and position of the view display area of ​​the system layer are not affected.

[0191] The display screen of the same level can also be presented. In this case, the selector can switch between the first view display area and the second view display area, and when the size and position of the first view display area change, the size and position of the second view display area can change accordingly.

[0192] Since the A chip and the N chip may be installed with independent operating systems respectively, there are two independent but interrelated subsystems in the display device 200. For example, the A chip and the N chip may be independently installed with Android and various APPs, so that each chip can realize certain functions, and the A chip and the N chip can cooperate to realize a certain function.

[0193] As the user experience is increasingly concerned, the requirements for product operating performance indicators are also becoming higher. How to quickly perform factory reset and reduce the boot initialization time while meeting the functional requirements is a problem that needs to be solved. The method for quickly restoring factory settings provided by the embodiment of the present invention can shorten the time for restoring factory settings, and when restoring factory settings, the system does not enter the Recovery phase, which can avoid clearing all other data in the system and optimize the boot initialization time after restoring factory settings, thereby improving user experience.

[0194] Figure 8 A flowchart of a method for quickly restoring factory settings according to an embodiment is exemplarily shown in FIG.

[0195] See also Figure 8 The method for quickly restoring factory settings provided by an embodiment of the present invention is applied to an Android system, and the method comprises the following steps:

[0196] S1. Get the factory reset command.

[0197] The system factory reset operation is triggered by the user. The user can control the system to perform the factory reset process through the factory reset button on the remote control, or through the local button set on the system host.

[0198] After the user selects the system to restore factory settings through the factory restore button or the local button, a factory restore instruction is sent to the system. After the system receives the factory restore instruction, it executes the corresponding factory restore process.

[0199] S2. According to the factory reset instruction, call the clear data service to perform a clear data operation on the data that needs to be cleared in the system.

[0200] After receiving the factory reset instruction, the system starts the data clearing service. The data clearing service is a new data clearing method proposed in this embodiment, which can only clear the data that needs to be cleared in the system, and those data that will not affect the operation of the host and will affect the boot performance will not be cleared.

[0201] The data that needs to be cleared in the system include the pre-installed data of the pre-installed applications in the system, the user data and cache data of the third-party applications installed by the user, the data generated by WiFi communication, and the data generated during the use of Bluetooth. The dex optimization information of the pre-installed applications for the system files and vendor partition files in the system is stored in the data partition. If the above dex optimization information is cleared when restoring the factory settings, the system needs to go through the boot initialization process during the restart process, that is, re-optimize the installed applications to ensure the subsequent startup and running performance of the system and applications. However, the boot initialization usually takes a long time. Depending on the number of applications installed in the system, it usually takes 5-10 minutes, resulting in a long time to restore the factory settings, affecting the user experience. Therefore, for those data that will not affect the operation of the host if not cleared and will affect the boot performance if cleared, they can be cleared when restoring the factory settings.

[0202] When the clear data service is started to restore the system to factory settings, a list of files to be cleared in the system is first created. The list of files to be cleared includes pre-installed data of pre-installed applications, user data and cache data of third-party applications installed by users, data generated by WiFi communication, and data generated during Bluetooth use. When restoring to factory settings, only the data that needs to be cleared in the system is cleared, and the system does not enter the Recovery phase, which can avoid clearing all the data in the system, optimize the boot initialization time after restoring to factory settings, shorten the factory settings restoration time, and thus improve the user experience.

[0203] When clearing various data in the system, if the system is in operation, such as an application or a service in the system is running, it will cause the application to run abnormally. Therefore, it is necessary to stop the core application in the system.

[0204] Specifically, after calling the clear data service, the method further includes: stopping all services and application programs in the system.

[0205] Before clearing the data, stopping the core applications in the system can improve the efficiency of restoring to factory settings and shorten the time.

[0206] S3. After the data clearing operation is completed, restart the system to restore the system to factory settings.

[0207] After clearing the data that needs to be cleared in the system, restart the system, enter the main system, and restore the system to factory settings.

[0208] In the method provided in this embodiment, during the factory reset process, only one restart of the system is required after the data is cleared, and the system is restarted back to the main system. The factory reset method provided in the prior art requires two restart operations, one to enter the recovery mode and perform the actual data clearing operation, and one to return to the main system. It can be seen that compared with the prior art, the method provided in this embodiment reduces the consumption of one restart, shortens the time for clearing data, and does not require the boot initialization process, thereby shortening the time for factory reset, improving the efficiency of factory reset, and providing a good user experience.

[0209] As an optional embodiment, the method provided in this embodiment uses a clear data service to filter the data types in the system when restoring the system to factory settings, and only performs a clear data operation on the data that is needed and can be cleared in the system. To this end, according to the factory reset instruction, the clear data service is called to perform a clear data operation on the data that needs to be cleared in the system. Fig. 9 FIG. 4 exemplarily shows a flow chart of a method for calling a clear data service according to an embodiment; Fig. 9 As shown, including:

[0210] S21. According to the factory reset instruction, a list of files to be cleared in the system is obtained.

[0211] After the system receives the factory reset command triggered by the user, it organizes the data of each service in the system, as well as the user data and cache data of each application, and determines the list of files that need to be cleared.

[0212] S22, traversing the to-be-deleted files in the file list to be deleted, and determining whether the to-be-deleted files are whitelist files.

[0213] The data in the file list to be cleared are all files to be deleted, and the files to be deleted include data that needs to be cleared, and also include data that will affect the boot performance if cleared, and will not affect the operation of the system if not cleared. Therefore, in determining which data in the file list to be cleared can be cleared and which data cannot be cleared, this embodiment uses a whitelist file to make a determination.

[0214] The whitelist file includes data in the system whose clearing will affect the boot performance, and whose non-clearing will not affect the operation of the entire machine.

[0215] Specifically, Fig.10 A flowchart of a method for determining a whitelist file according to an embodiment is exemplarily shown in FIG. Fig.10 As shown, this embodiment determines the whitelist file according to the following steps:

[0216] S221. Obtain all service types and all application types in the system.

[0217] Each service in the system will generate data during use, and each third-party application installed by the user will also generate data when used, such as user data and cache data.

[0218] Each service type will generate different service data according to the different functions it provides, and each third-party application will also generate different application data. Based on the service data and application data, it can be determined whether each type of data in the system needs to be cleared.

[0219] S222: Determine whether the service data corresponding to each service type can be cleared, and whether the application data corresponding to each application type can be cleared.

[0220] For the different service data and application data determined, it is determined whether the data can be cleared. The determination is based on whether the data will affect the boot initialization process if it is cleared, and whether it will affect the system's operating status if it is not cleared.

[0221] S223. If there is service data that needs to be cleared and application data that cannot be cleared, a whitelist file is created according to each service data and each application data that cannot be cleared.

[0222] After judging different service data and application data, if a certain service data or application data will affect the boot initialization process after being cleared, and will not affect the operating status of the system if it is not cleared, then the data that meets this condition will be determined as unclearable data.

[0223] A whitelist file will be created for all the data that cannot be cleared according to the above judgment conditions. The whitelist file can accurately determine which data in the system can be cleared and which data cannot be cleared, so as to improve the efficiency of restoring factory settings.

[0224] S23: If the file to be deleted is not a whitelist file, clear data from the file to be deleted.

[0225] Traverse the list of files to be cleared. If there is a file to be deleted that matches a file in the whitelist file, the file to be deleted is not clearable data, and the clearing operation is not performed on the file to be deleted. If there is a file to be deleted that does not match any file in the whitelist file, it is determined that the file to be deleted is data that needs to be cleared, and the clearing operation is performed on the file to be deleted.

[0226] It can be seen that, according to the method provided by this embodiment, after receiving the factory reset instruction, the system immediately obtains the list of files to be cleared in the system. When restoring the factory settings, only the files to be deleted that are not in the whitelist in the list of files to be cleared are cleared, so as to avoid affecting the boot initialization process after clearing the data, thus shortening the time for restoring the factory settings and improving the efficiency of restoring the factory settings.

[0227] Generally, the system can provide multiple functions and can also install multiple third-party applications, resulting in a large amount of data in the system. When the method provided in the above embodiment is used to restore the factory settings, there are a large number of files to be deleted in the file list to be cleared. If a large number of files to be deleted are compared with the whitelist files, confusion may easily occur, resulting in the inability to accurately determine the data to be cleared.

[0228] To this end, the method provided in this embodiment partitions the data in the system, judges the data in each partition in turn, and after completing the judgment of one partition, judges the data of the next partition, so as to complete the data judgment in all partitions in the system in a more orderly manner, thereby ensuring the accuracy of the determination of the data that needs to be cleared.

[0229] Specifically, Fig.11 FIG. 4 exemplarily shows a flow chart of a method for calling a clear data service according to another embodiment; Fig.11 As shown, before judging whether the file to be deleted is a whitelist file, the following steps are also included:

[0230] S31, traversing the to-be-deleted files in the file list to be deleted, and determining whether the to-be-deleted file is a partition file corresponding to the current partition.

[0231] A large amount of data in the system belongs to different file types. Therefore, each data can be divided into multiple partitions according to the file type. For example, it can be divided into data partitions and cache partitions.

[0232] Each partition includes a large amount of data as a partition file, which is used as a basis for judging whether the file currently being judged belongs to the corresponding partition.

[0233] The method provided in this embodiment needs to traverse the list of files to be cleared when performing the judgment process of the current partition, and judge in turn whether the files to be deleted are the partition files corresponding to the current partition.

[0234] The current partition refers to the partition where data needs to be cleared when the system is restoring factory settings.

[0235] S32: If the file to be deleted is a partition file of the current partition, a step of determining whether the file to be deleted is a whitelist file is executed.

[0236] When determining whether each file to be deleted in the list of files to be cleared belongs to the current partition in turn, if the file to be deleted currently being determined does not belong to the current partition, the step of determining whether it is a whitelist file is not performed on the file to be deleted, and the next file to be deleted is determined; if the file to be deleted currently being determined matches the partition file of the current partition, the step of determining whether it is a whitelist file needs to be continued for the file to be deleted, that is, steps S22 to S23 are executed.

[0237] For example, taking the data partition as an example, if a file to be deleted in the list file to be cleared is a partition file of the data partition, the step of determining whether it is a whitelist file is continued for the file to be deleted, and if the file to be deleted is not a whitelist file, the data clearing operation is performed on the file to be deleted. If a file to be deleted in the list file to be cleared is not a partition file of the data partition, the file to be deleted is discarded, and the next file to be deleted is determined to be a partition file of the data partition.

[0238] It can be seen that the method provided in this embodiment determines in turn whether each file to be deleted in each partition belongs to the current partition. When the file to be deleted belongs to the current partition, the step of determining whether the file to be deleted is a white-list file is performed on the file to be deleted. This can orderly determine whether all the files to be deleted in the list of files to be cleared are white-list files, avoid confusion in the judgment process, improve the efficiency of clearing data, and shorten the time for restoring factory settings.

[0239] When performing a data clearing operation on all data in the system in a partition manner, the method provided in this embodiment uses a method of performing a data clearing operation on the data to be cleared in one partition before performing a data clearing operation on the data to be cleared in the next partition, thereby avoiding confusion and affecting the efficiency of clearing data. Only after all partitions in the system have completed data clearing, can the system be restarted to enter the main system and complete the factory reset.

[0240] Specifically, Fig.12 exemplarily shows a flow chart of a method for restarting a system according to an embodiment; Fig.13 FIG. 4 exemplarily shows a flow chart of a method for performing a data clearing operation on each partition in a system according to an embodiment; Fig.12 and Fig.13 As shown, in the method provided in this embodiment, the process of restarting the system includes:

[0241] S41. After the data clearing operation is completed for the data of the current partition, the data clearing operation is performed on the partition file of the next partition.

[0242] Taking the data clearing operation on the data partition and cache partition in the system as an example, after all the files to be deleted in the data partition are cleared, the data clearing operation on the files to be deleted in the cache partition is performed, so that the system can clear data in an orderly manner, avoid confusion, and ensure the efficiency of data clearing.

[0243] Specifically, when clearing the data partition, first determine whether the current file to be deleted in the list file to be cleared is a partition file of the data partition. If so, continue to perform the step of determining whether it is a whitelist file for the file to be deleted, and if the file to be deleted is not a whitelist file, perform the data clearing operation on the file to be deleted. If the current file to be deleted in the list file to be cleared is not a partition file of the data partition, then discard the file to be deleted and continue to determine whether the next file to be deleted is a partition file of the data partition.

[0244] After completing the data clearing operation for all the files to be deleted in the data partition, perform the data clearing operation for the files to be deleted in the cache partition. That is, first determine whether the current file to be deleted in the list file to be cleared is a partition file of the cache partition. If so, continue to perform the step of determining whether it is a whitelist file for the file to be deleted. If the file to be deleted is not a whitelist file, perform the data clearing operation for the file to be deleted. If the current file to be deleted in the list file to be cleared is not a partition file of the cache partition, discard the file to be deleted, and continue to determine whether the next file to be deleted is a partition file of the cache partition.

[0245] If the data clearing operation is completed for all the files to be deleted in the cache partition, the data clearing operation process for the next partition will be carried out until the data clearing operation is completed for all partitions in the system.

[0246] S42: If all partitions in the system have completed the data clearing operation, the data clearing result of each partition in the system is synchronized.

[0247] After all partitions in the system have completed the data clearing operation, the data clearing operation of each partition needs to be synchronized to accurately determine the time point for restarting the system to avoid abnormalities in the factory reset process when a partition in the system is undergoing a data clearing operation and the system is restarted.

[0248] S43. After the synchronization operation is completed, restart the system.

[0249] Once the system has been synchronized, you can restart the system to complete the factory reset process.

[0250] It can be seen from the above technical solutions that an embodiment of the present invention provides a method for quickly restoring factory settings, including calling a clear data service according to a factory settings restoration instruction, performing a data clearing operation on the data that needs to be cleared in the system, and restarting the system after the data clearing operation is completed to restore the system to factory settings. Compared with the prior art, the method provided by this embodiment reduces the consumption of one restart, is simple to operate, and the system does not enter the Recovery phase, which can avoid clearing all the data in the system, optimize the boot initialization time after restoring factory settings, shorten the duration of restoring factory settings, and thus improve the user experience.

[0251] See also Fig.14 , Fig.14 The structure block diagram of a device for quickly restoring factory settings according to an embodiment of the present invention is exemplarily shown in FIG. Figures 8 to 13 The corresponding method for quickly restoring factory settings, specifically, a device for quickly restoring factory settings provided by an embodiment of the present invention, includes:

[0252] The instruction acquisition module 10 is used to acquire the factory reset instruction;

[0253] The data clearing service calling module 20 is used to call the data clearing service according to the factory reset instruction and perform a data clearing operation on the data to be cleared in the system;

[0254] The restart module 30 is used to restart the system when the clear data operation is completed to restore the system to factory settings.

[0255] Optionally, the clear data service calling module 20 includes:

[0256] A file list acquisition unit to be cleared is used to acquire a file list to be cleared in the system according to the factory reset instruction;

[0257] A whitelist determination unit, used for traversing the to-be-deleted files in the list of files to be deleted, and determining whether the to-be-deleted files are whitelist files;

[0258] The data clearing unit is used to clear the data of the file to be deleted when the file to be deleted is not a whitelist file.

[0259] Optionally, the clear data service calling module 20 further includes:

[0260] A partition file determination unit, used for traversing the to-be-deleted files in the to-be-deleted file list, and determining whether the to-be-deleted files are partition files corresponding to the current partition;

[0261] The whitelist judgment unit is further used to execute the step of judging whether the file to be deleted is a whitelist file when the file to be deleted is a partition file of the current partition.

[0262] Optionally, the restart module 30 includes:

[0263] A next partition clearing data unit is used to clear data on the partition file of the next partition after completing the clearing data operation on the data of the current partition;

[0264] A data clearing result synchronization unit, configured to synchronize the data clearing result of each partition in the system when all partitions in the system have completed the data clearing operation;

[0265] The restart unit is used to restart the system when the synchronization operation is completed.

[0266] Optionally, it also includes:

[0267] The program stopping module is used to stop all services and application programs in the system.

[0268] Optionally, the whitelist file includes data in the system whose deletion will affect the boot performance and whose non-deletion will not affect the operation of the entire machine.

[0269] In a specific implementation, the present invention further provides a computer storage medium, wherein the computer storage medium may store a program, and when the program is executed, the program may include some or all of the steps of each embodiment of the method for quickly restoring factory settings provided by the present invention. The storage medium may be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM).

[0270] Those skilled in the art can clearly understand that the technology in the embodiments of the present invention can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the technical solution in the embodiments of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a disk, an optical disk, etc., and includes a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention or some parts of the embodiments.

[0271] In this specification, the same or similar parts between the various embodiments can be referred to each other. In particular, for the device embodiment for quickly restoring factory settings, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description in the method embodiment.

[0272] Based on the exemplary embodiments shown in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application. In addition, although the disclosure in this application is introduced according to one or several exemplary examples, it should be understood that each aspect of these disclosures can also constitute a complete technical solution separately.

[0273] It should be understood that the terms "first", "second", "third", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, for example, they can be implemented according to an order other than those given in the diagrams or descriptions of the embodiments of this application.

[0274] In addition, the terms "include" and "have" and any variations thereof are intended to cover but not exclude inclusion, for example, a product or device comprising a list of components is not necessarily limited to those components expressly listed but may include other components not expressly listed or inherent to such products or devices.

[0275] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for quickly restoring factory settings, characterized in that: The following steps are involved: Get the factory reset command; According to the factory reset instruction, a list of files to be cleared in the system is obtained, wherein the list of files to be cleared includes pre-installed application data, user data and cache data of third-party applications, and communication data; Get all service types and all application types in the system; Determine whether the service data corresponding to each of the service types can be cleared, and whether the application data corresponding to each of the application types can be cleared, according to whether clearing the data will affect the boot initialization process, and whether not clearing the data will affect the operating state of the system; Calling a data clearing service to clear the data in the file list to be cleared, wherein the data clearing service does not enter the recovery mode, and the data to be cleared does not include data that will affect the boot initialization process if cleared and will not affect the operating state of the system if not cleared; When the data clearing operation is completed, the system is restarted to restore the system to factory settings.

2. The method according to claim 1, characterized in that The calling of the data clearing service according to the factory reset instruction to clear the data in the file list to be cleared includes: Traversing the to-be-deleted files in the list of files to be deleted, and determining whether the to-be-deleted files are whitelist files; If the file to be deleted is not a whitelist file, a data clearing operation is performed on the file to be deleted.

3. The method according to claim 2, characterized in that Before determining whether the file to be deleted is a whitelist file, the method further includes: Traversing the to-be-deleted files in the to-be-deleted file list, and determining whether the to-be-deleted files are partition files corresponding to the current partition; If the file to be deleted is a partition file of the current partition, the step of determining whether the file to be deleted is a whitelist file is performed.

4. The method according to claim 3, characterized in that The process of restarting the system includes: After completing the data clearing operation on the data of the current partition, performing the data clearing operation on the partition file of the next partition; If all partitions in the system have completed the data clearing operation, then synchronizing the data clearing results of each partition in the system; When the synchronization operation is completed, the system is restarted.

5. The method according to claim 1, characterized in that After the calling of the clear data service, the method further includes: stopping the operation of all services and application programs in the system.

6. The method according to claim 2, characterized in that The whitelist file includes data in the system whose removal will affect the boot performance and whose non-removal will not affect the operation of the entire machine.

7. A device for quickly restoring factory settings, characterized in that: include: An instruction acquisition module is used to acquire the factory reset instruction; The data clearing service calling module includes a file list obtaining unit for obtaining a file list to be cleared in the system according to the factory reset instruction; the data clearing service calling module is used to obtain all service types and all application types in the system; and judge whether the service data corresponding to each service type can be cleared, and whether the application data corresponding to each application type can be cleared, according to whether the clearing of data will affect the boot initialization process, and whether the non-clearing of data will affect the running state of the system; Calling a data clearing service to clear the data in the file list to be cleared, wherein the file list to be cleared includes pre-installed application data, user data and cache data of third-party applications, and communication data, the data clearing service does not enter the Recovery mode, and the data to be cleared does not include data that will affect the boot initialization process if cleared and will not affect the operating status of the system if not cleared; The restart module is used to restart the system when the data clearing operation is completed to restore the system to factory settings.

8. The device according to claim 7, characterized in that The clear data service calling module further includes: A whitelist determination unit, used for traversing the to-be-deleted files in the list of files to be deleted, and determining whether the to-be-deleted files are whitelist files; The data clearing unit is used to clear the data of the file to be deleted when the file to be deleted is not a whitelist file.

9. The device according to claim 8, characterized in that The clear data service calling module further includes: A partition file determination unit, used for traversing the to-be-deleted files in the to-be-deleted file list, and determining whether the to-be-deleted files are partition files corresponding to the current partition; The whitelist judgment unit is further used to execute the step of judging whether the file to be deleted is a whitelist file when the file to be deleted is a partition file of the current partition.

10. The device according to claim 9, characterized in that The restart module comprises: A next partition clearing data unit is used to clear data on the partition file of the next partition after completing the clearing data operation on the data of the current partition; A data clearing result synchronization unit, configured to synchronize the data clearing result of each partition in the system when all partitions in the system have completed the data clearing operation; The restart unit is used to restart the system when the synchronization operation is completed.

11. The device according to claim 7, characterized in that Also includes: The program stopping module is used to stop all services and application programs in the system.

12. The device according to claim 8, characterized in that The whitelist file includes data in the system whose removal will affect the boot performance and whose non-removal will not affect the operation of the entire machine.