Operating system monitoring method, operating system monitoring device and storage medium

By monitoring the display process of the terminal operating system display interface and obtaining abnormal data, the problem of the terminal being unable to interact normally after the terminal is turned on is solved, and further detection and optimization of the interactiveness of the operating system is achieved.

CN119690766APending Publication Date: 2025-03-25BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311247612.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-09-25
Publication Date
2025-03-25

AI Technical Summary

Technical Problem

During the startup process of the terminal operating system, although all system services are ready to start, it may still be impossible to interact with the operating system normally, resulting in the terminal being unable to use normally after booting.

Method used

By monitoring the display process of the electronic device display interface, including monitoring the system user display interface, the system wallpaper display interface and the control center display interface, abnormal data that occurs during the display process.

Benefits of technology

It provides a new monitoring point to further detect the interactivity of the operating system and obtain abnormal data, which facilitates the optimization of the operating system startup process and improves system stability and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119690766A_ABST
    Figure CN119690766A_ABST
Patent Text Reader

Abstract

The invention relates to an operating system monitoring method, an operating system monitoring device and a storage medium. The operating system monitoring method comprises the following steps: monitoring a display process of a display interface of the electronic equipment in response to that an operating system of the electronic equipment is started. And in response to an exception occurring in the display process of the display interface, acquiring and storing exception data corresponding to the exception. According to the method and the device, a new monitoring point is provided besides the monitoring point for successful starting of the operating system, the interactivity of the operating system is further monitored, the abnormal data is obtained, and the starting process of the operating system is further optimized according to the monitored abnormal data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of operating system monitoring, and in particular to an operating system monitoring method, an operating system monitoring device and a storage medium. Background Art

[0002] Anomaly detection is an important part of the startup process of the terminal operating system (such as the Android system). Through anomaly detection, it can be determined whether the operating system is started normally, and anomaly information can be captured and abnormal recovery measures can be taken. Anomaly detection can improve the security of the system, prevent the system from running in an uncontrollable trend, help developers analyze system anomalies, and improve the user experience.

[0003] In the related art, when judging abnormalities during the operating system startup process, after all system services are started and ready, and after the system animation is turned off, if no abnormalities are detected, the operating system is judged to have successfully started. However, after all system services are started and ready, there may still be situations where the operating system cannot interact normally, resulting in the terminal being unable to be used normally after startup. Summary of the invention

[0004] In order to overcome the problems existing in the related art, the present disclosure provides an operating system monitoring method, an operating system monitoring device and a storage medium.

[0005] According to a first aspect of an embodiment of the present disclosure, there is provided an operating system monitoring method, comprising: in response to the operating system of an electronic device having completed startup, monitoring the display process of a display interface of the electronic device; in response to an abnormality occurring during the display process of the display interface, acquiring and storing abnormality data corresponding to the abnormality.

[0006] In one embodiment, the monitoring of the display process of the electronic device display interface includes: monitoring the display process of at least one of the following display interfaces: a system user display interface, a system wallpaper display interface, and a control center display interface.

[0007] In one embodiment, the display interface corresponds to a set of layers to be displayed, and the set of layers to be displayed includes multiple layers corresponding to the system user display interface, the system wallpaper display interface and the control center display interface respectively; the display process of the electronic device display interface is monitored, including: monitoring the display process of each layer in the set of layers to be displayed.

[0008] In one embodiment, the process of monitoring the display of each layer in the set of layers to be displayed includes: in response to determining the layer requested to be drawn in the set of layers to be displayed, monitoring each layer requested to be drawn in the set of layers to be displayed one by one; in response to adding the layer requested to be drawn in the set of layers to be displayed to the set of layers to be drawn, monitoring the number of layers added to the set of layers to be drawn in the set of layers to be displayed, matching the number of layers in the set of layers to be displayed, and monitoring the layer identifier of the topmost layer currently displayed by the electronic device, matching the layer identifier of each layer in the set of layers to be drawn, wherein the layer identifier is used to distinguish different layers; in response to drawing and displaying the layers in the set of layers to be drawn, monitoring the display of each layer in the set of layers to be displayed.

[0009] In one embodiment, in response to an exception occurring during the display process of the display interface, obtaining and storing exception data corresponding to the exception includes: in response to the presence of a layer in the set of layers to be displayed that is not requested to be drawn, obtaining and storing first exception data, the first exception data including the layer identifier of the layer that is not requested to be drawn; in response to the number of layers added to the set of layers to be drawn not matching the number of layers in the set of layers to be displayed, obtaining and storing second exception data, the second exception data representing that the number of layers added to the set of layers to be drawn does not match the number of layers in the set of layers to be displayed; in response to the layer identifier of the topmost layer currently displayed by the electronic device not matching the layer identifier of each layer in the set of layers to be drawn, obtaining and storing third exception data, the third exception data representing that the layer identifier of the topmost layer does not match the layer identifier of each layer in the set of layers to be drawn; in response to the presence of an undisplayed layer in the layers included in the set of layers to be displayed, obtaining and storing fourth exception data, the fourth exception data including the layer identifier of the undisplayed layer.

[0010] According to a second aspect of an embodiment of the present disclosure, there is provided an operating system monitoring device, comprising: a monitoring unit, for monitoring the display process of a display interface of an electronic device in response to the operating system of the electronic device having been started up; and a processing unit, for acquiring and storing exception data corresponding to the exception in response to an exception occurring during the display process of the display interface.

[0011] In one embodiment, the monitoring unit monitors the display process of the electronic device display interface in the following manner: monitoring the display process of at least one of the following display interfaces: a system user display interface, a system wallpaper display interface, and a control center display interface.

[0012] In one embodiment, the display interface corresponds to a set of layers to be displayed, and the set of layers to be displayed includes multiple layers corresponding to the system user display interface, the system wallpaper display interface and the control center display interface respectively; the monitoring unit monitors the display process of the electronic device display interface in the following manner: monitoring the display process of each layer in the set of layers to be displayed.

[0013] In one embodiment, the monitoring unit monitors the drawing and display process of each layer in the set of layers to be displayed in the following manner: in response to determining the layer requested to be drawn in the set of layers to be displayed, monitoring each layer requested to be drawn in the set of layers to be displayed one by one; in response to adding the layer requested to be drawn in the set of layers to be displayed to the set of layers to be drawn, monitoring the number of layers added to the set of layers to be drawn in the set of layers to be displayed, matching the number of layers in the set of layers to be displayed, and monitoring the layer identifier of the topmost layer currently displayed by the electronic device, matching the layer identifier of each layer in the set of layers to be drawn, wherein the layer identifier is used to distinguish different layers; in response to drawing and displaying the layers of the set of layers to be drawn, monitoring the display of each layer in the set of layers to be displayed.

[0014] In one embodiment, the processing unit responds to an exception during the display process of the display interface in the following manner, and obtains and stores exception data corresponding to the exception: in response to the presence of a layer in the set of layers to be displayed that is not requested to be drawn, obtains and stores first exception data, the first exception data including a layer identifier of the layer that is not requested to be drawn; in response to the number of layers added to the set of layers to be drawn not matching the number of layers in the set of layers to be displayed, obtains and stores second exception data, the second exception data representing that the number of layers added to the set of layers to be drawn does not match the number of layers in the set of layers to be displayed; in response to the layer identifier of the topmost layer currently displayed by the electronic device not matching the layer identifier of each layer in the set of layers to be drawn, obtains and stores third exception data, the third exception data representing that the layer identifier of the topmost layer does not match the layer identifier of each layer in the set of layers to be drawn; in response to the presence of an undisplayed layer in the layers included in the set of layers to be displayed, obtains and stores fourth exception data, the fourth exception data including a layer identifier of the undisplayed layer.

[0015] According to a third aspect of an embodiment of the present disclosure, an operating system monitoring device is provided, comprising: a processor; and a memory for storing processor executable instructions; wherein the processor is configured to: execute the operating system monitoring method described in the first aspect or any one of the implementations of the first aspect.

[0016] According to a fourth aspect of an embodiment of the present disclosure, a storage medium is provided, in which instructions are stored. When the instructions in the storage medium are executed by a processor, the processor is enabled to execute the operating system monitoring method described in the first aspect or any one of the embodiments of the first aspect.

[0017] The technical solution provided by the embodiment of the present disclosure may include the following beneficial effects: after the operating system of the electronic device has been started, the display process of the display interface of the electronic device is further monitored, and when an abnormality occurs during the display process, the abnormal data causing the abnormality is obtained and stored. Through the present disclosure, in addition to the monitoring point of successful startup of the operating system, a new monitoring point is provided to further monitor the interactivity of the operating system and obtain abnormal data, so as to facilitate further optimization of the startup process of the operating system according to the monitored abnormal data.

[0018] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0020] Figure 1 The figure is a flow chart of a method for monitoring an operating system according to an exemplary embodiment.

[0021] Figure 2 It is a block diagram showing an operating system monitoring method according to an exemplary embodiment of the present disclosure.

[0022] Figure 3 The present invention is a flowchart of a method for monitoring a display process of a display interface of an electronic device according to an exemplary embodiment.

[0023] Figure 4 The figure is a flowchart of an operating system monitoring method according to another exemplary embodiment of the present disclosure.

[0024] Figure 5 The present invention is a flowchart showing a method for monitoring the drawing and display process of each layer in a set of layers to be displayed according to an exemplary embodiment.

[0025] Figure 6 The invention is a flowchart showing a method for acquiring and storing abnormal data corresponding to an abnormality according to an exemplary embodiment.

[0026] Figure 7 The figure is a flowchart of an operating system monitoring method according to another exemplary embodiment of the present disclosure.

[0027] Figure 8 The figure is a block diagram showing a device for monitoring an operating system according to an exemplary embodiment.

[0028] Fig. 9 The invention is a block diagram showing a device for operating system monitoring according to an exemplary embodiment. DETAILED DESCRIPTION

[0029] Here, exemplary embodiments will be described in detail, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present disclosure.

[0030] The operating system monitoring method provided by the embodiment of the present disclosure is applied to the scenario of performing abnormality detection on the startup process of the operating system of the electronic device.

[0031] During the startup process of the terminal operating system (such as the Android system), the abnormality detection of the operating system startup process is an important part of the startup process. By detecting the abnormality of the operating system startup process, the data of each key link of the system startup process can be obtained. According to the detected data, it can be further judged whether the operating system is started normally and whether the electronic device can run normally. During the operating system startup process, the abnormality detection can capture the abnormal information that causes the operating system to start, and then execute the corresponding abnormal recovery measures according to the captured abnormal information to prevent the system from running in an uncontrollable trend, so that the operating system of the electronic device can start normally. The developers of the operating system can also analyze the causes of system abnormalities based on the acquired abnormal data and formulate corresponding abnormal recovery measures, which can improve the security of the system and improve the user experience.

[0032] In the related art, when judging an abnormality during the startup of the operating system, after all system services are ready to start and the system animation is turned off, if no abnormality is detected, it is judged that the startup of the operating system is successful. For example, when performing abnormality detection on the startup process of the Android system, after the Android system is successfully started, a "startup success" broadcast is sent, and a "startup success" monitoring point is provided, that is, all system services are ready to start, the system animation is turned off, and the startup success attribute (sys.boot_completed) is set. However, in the actual use of electronic devices, after all system services are ready to start, there will still be a situation where they cannot interact normally with the operating system, resulting in the terminal being unable to be used normally after powering on. For example, after all system services are ready to start, the system user interface is not drawn and displayed normally, resulting in the user being unable to interact with the operating system of the electronic device through the system user interface and control the electronic device to perform corresponding functions.

[0033] In view of this, the present disclosure proposes a terminal operating system monitoring method. After the operating system is fully started and ready, the interactivity of the operating system is detected by monitoring the display process of the electronic device display interface, and the detected abnormal data is obtained and stored. The operating system can be further optimized based on the monitored abnormal information, thereby improving the stability of the operating system and ultimately improving the user experience.

[0034] Figure 1 FIG. 1 is a flow chart of an operating system monitoring method according to an exemplary embodiment. Figure 1 As shown, the method includes step S101 to step S102.

[0035] In step S101, in response to the operating system of the electronic device having been started up, the display process of the display interface of the electronic device is monitored.

[0036] In step S102, in response to an abnormality occurring during the display process of the display interface, abnormality data corresponding to the abnormality is acquired and stored.

[0037] In the embodiment of the present disclosure, after the operating system is fully started and ready, the user needs to interact with the operating system through the display interface of the electronic device. When an abnormality occurs in the display interface, the user cannot interact with the operating system through the display interface to control the electronic device. The present disclosure monitors the display process of the display interface of the electronic device to monitor whether the display interface is displayed normally, and further detects the interactivity of the operating system based on whether the display interface of the electronic device can be displayed normally. The abnormal data monitored when an abnormality occurs is stored, so that the developer can analyze the cause of the system abnormality based on the acquired abnormal data and formulate corresponding abnormal recovery measures, which can improve the security of the system and improve the user experience.

[0038] It can be understood that the terminal display interface is composed of multiple display interfaces. The present disclosure determines whether the terminal display interface is displayed normally by monitoring whether the multiple display interfaces constituting the display interface are displayed normally. The following example of the present disclosure further illustrates the display process of monitoring the display interface of the electronic device.

[0039] In one implementation of the disclosed embodiment, monitoring the display process of an electronic device display interface includes: monitoring the display process of at least one of the following display interfaces: a system user display interface, a system wallpaper display interface, and a control center display interface.

[0040] In the embodiment of the present disclosure, the terminal display interface is composed of a system user display interface, a system wallpaper display interface and a control center display interface. After the electronic device operating system is normally started and the boot animation is played, the present disclosure determines the interactivity of the electronic device operating system by monitoring whether the system user display interface, the system wallpaper display interface and the control center display interface are displayed normally.

[0041] In an exemplary embodiment of the present disclosure, Figure 2 As shown in the block diagram of the operating system monitoring method in the disclosure, the present disclosure can execute the startup process of the electronic device in the following manner. In response to triggering the terminal to start up, start the boot program. Start the system kernel, start the user environment initialization program, and start the system startup animation. Start the Android runtime virtual machine, start the system service, turn off the system startup animation, and draw and display the system user interface. Check whether the system user interface has been drawn and displayed on the top layer of the display layer, and set the system to have entered an interactive state.

[0042] It can be understood that the terminal display interface is composed of multiple display interfaces. The present disclosure determines whether the terminal display interface is displayed normally by monitoring whether the multiple display interfaces constituting the display interface are displayed normally. The following example of the present disclosure further illustrates the display process of monitoring the display interface of the electronic device.

[0043] Figure 3 FIG. 1 is a flow chart showing a method for monitoring a display process of a display interface of an electronic device according to an exemplary embodiment. Figure 3 As shown, the method includes step S201 to step S202.

[0044] In step S201, it is determined that the operating system of the electronic device has been started.

[0045] In step S202, the display process of each layer in the to-be-displayed layer set is monitored.

[0046] In the embodiment of the present disclosure, the system user display interface corresponds to the system user interface gesture prompt layer, the system user interface status bar layer, and the system user interface notification bar layer, the system wallpaper display interface corresponds to the system wallpaper core layer, and the control center display interface corresponds to the control center core layer. The present disclosure monitors the display process of the electronic device display interface by monitoring the above layers constituting the terminal display interface.

[0047] In an exemplary embodiment of the present disclosure, Figure 4As shown in the flowchart of the operating system monitoring method, the present disclosure adopts the following monitoring process of the display interface of the electronic device: in response to the completion of the system service startup, the user interface is initialized and a system interface layer drawing request is sent to the display synthesis system (Surface Flinger), the system wallpaper refrigerator display synthesis system is initialized to send a system wallpaper layer drawing request, and the control center is initialized and a control center layer drawing request is sent to the display synthesis system. The display synthesis system draws and displays the layer according to the received drawing request, and monitors the anomalies that occur during the drawing and display process, and obtains the anomaly data when the anomaly occurs. After the layer drawing and display are completed, the display process of the electronic device display interface is completed, waiting for the user to input instructions.

[0048] In the embodiment of the present disclosure, the drawing and display process of the layer includes multiple processes such as sending a drawing request and drawing the corresponding layer according to the drawing request. The present disclosure needs to perform abnormal monitoring on each process and obtain abnormal data. The following embodiment of the present disclosure describes the abnormal monitoring and obtaining abnormal data.

[0049] Figure 5 FIG. 1 is a flowchart showing a method for monitoring the drawing and display process of each layer in a set of layers to be displayed according to an exemplary embodiment. Figure 5 As shown, the method includes steps S301 to S303.

[0050] In step S301, in response to determining the layers requested to be drawn in the set of layers to be displayed, each layer requested to be drawn in the set of layers to be displayed is monitored one by one.

[0051] In step S302, in response to adding the layer requested to be drawn in the set of layers to be displayed to the set of layers to be drawn, the number of layers added to the set of layers to be drawn in the set of layers to be displayed is monitored and matched with the number of layers in the set of layers to be displayed, and the layer identifier of the topmost layer currently displayed by the electronic device is monitored and matched with the layer identifier of each layer in the set of layers to be drawn.

[0052] The layer identifier is used to distinguish different layers.

[0053] In step S303, in response to drawing and displaying the layers of the set of layers to be drawn, the display of each layer in the set of layers to be displayed is monitored.

[0054] In the embodiment of the present disclosure, the display and drawing process of the display layer includes sending a drawing request corresponding to each layer to be displayed to the display synthesis system, drawing each layer to be displayed according to the received drawing request, and displaying the layers in layers after the drawing of the layers is completed. The present disclosure monitors whether each layer sends a drawing request, whether each layer is drawn normally, whether the current topmost display layer is the layer that has been drawn, and whether each layer is displayed normally. Each key stage in the layer display process is detected, so that targeted optimization can be performed when the layer display is abnormal.

[0055] The following embodiments of the present disclosure further illustrate abnormal monitoring and obtaining abnormal data.

[0056] Figure 6 FIG. 1 is a flowchart of a method for acquiring and storing abnormal data corresponding to an abnormality according to an exemplary embodiment. Figure 6 As shown, the method includes step S401 to step S401.

[0057] In step S401, in response to the presence of a layer in the to-be-displayed layer set that is not requested to be drawn, first abnormal data is acquired and stored, the first abnormal data including a layer identifier of the layer that is not requested to be drawn.

[0058] In the disclosed embodiment, the layers included in the to-be-displayed layer set are all layers that need to be displayed after the electronic device is started, and the display composition system draws and displays the layers based on the received drawing requests. When there are layers in the to-be-displayed layer set that are not requested to be drawn, the layers that are not requested to be drawn are not drawn and displayed, resulting in abnormal terminal display and affecting the user's interaction with the operating system through the corresponding layer. In one example, a drawing request for the system user interface status bar layer is not sent to the display composition system, resulting in the electronic device not displaying the status bar layer, which in turn causes the user to be unable to view the status of the electronic device.

[0059] In step S402, in response to the number of layers added to the to-be-rendered layer set not matching the number of layers in the to-be-displayed layer set, second abnormal data is acquired and stored.

[0060] The second abnormal data is characterized by the fact that the number of layers added to the to-be-drawn layer set does not match the number of layers in the to-be-displayed layer set.

[0061] In the disclosed embodiment, when the number of layers in the to-be-drawn layer set does not match the number of layers in the to-be-displayed layer set, it indicates that there is an abnormality in the process of the display synthesis system accepting drawing requests, and some layers requested to be drawn are not added to the drawing layer set, resulting in them being unable to be drawn and displayed.

[0062] In step S403, in response to the layer identifier of the topmost layer currently displayed by the electronic device not matching the layer identifier of each layer in the set of layers to be drawn, third abnormal data is acquired and stored.

[0063] The third abnormal data indicates that the layer identifier of the topmost layer does not match the layer identifier of each layer in the set of layers to be drawn.

[0064] In the disclosed embodiment, the layer identifier of the topmost layer does not match the layer identifier of each layer in the set of layers to be drawn, indicating that the electronic startup animation does not end normally, and the corresponding layer of the startup animation is still displayed on the top layer of the terminal display interface, affecting the normal display of other layers.

[0065] In step S404, in response to the presence of undisplayed layers in the to-be-displayed layer set, fourth abnormal data is acquired and stored.

[0066] The fourth abnormal data includes a layer identifier of a layer that is not displayed.

[0067] In the embodiment of the present disclosure, there are undisplayed layers in the layers included in the to-be-displayed layer set, indicating that there are undisplayed layers in the layers that have been drawn.

[0068] In the disclosed embodiment, each key stage of the layer display process is monitored. When the layer display is abnormal, the abnormal data corresponding to the sub-stage of the layer display process can be obtained, so that the developer can analyze and optimize the corresponding sub-stage according to the received abnormal data, develop the abnormal recovery mechanism in a targeted manner, improve the stability of the operating system, and thus enhance the user experience.

[0069] In an exemplary embodiment of the present disclosure, the drawing and display of the layer are executed by the display composition system, and abnormality detection is performed on the drawing and display process of the layer. Figure 7As shown in the flowchart of the operating system monitoring method, the method includes the following steps: the display synthesis system determines whether the layer requested to be drawn is one of the five main layers of the system user interface gesture prompt layer, the system user interface status bar layer, the system user interface notification bar layer, the system wallpaper core layer, and the control center core layer. If so, it is added to the set for storing non-repeating elements. If not, abnormal data is obtained and stored. The display synthesis system determines whether the number of layer identifiers recorded in the set is 5. If so, it means that all key layer requests have reached the display synthesis system. If not, abnormal data is obtained and stored. The display synthesis system determines whether the top layer identifier of the current display layer set is in the set. If so, it means that the current system animation or logo has exited the operation and is ready to display the first operable interface seen by the user. If not, abnormal data is obtained and stored. The display synthesis system performs image synthesis on the layer set containing the above five main layers, and sends a display request to display on the screen. If not, abnormal data is obtained and stored. The display synthesis system determines whether the display is successful based on the information returned by the bottom layer. If so, the user can already see the first operable interface of the system at this time. If not, abnormal data is obtained and stored. The display synthesis system will set the system status to "interactive" after confirming the existence of the main layer and the synthesis, drawing and display are successful. At this time, the system starts the detection service, and will exit the operation because the system status has changed to "interactive". At this point, the system startup is all successful. The present invention monitors the display process of the electronic device display interface to monitor whether the display interface is displayed normally, and further detects the interactivity of the operating system based on whether the electronic device display interface can be displayed normally. Storing the abnormal data monitored when an abnormality occurs allows developers to analyze the cause of the system abnormality based on the acquired abnormal data and formulate corresponding abnormal recovery measures, which can improve the security of the system and the user experience.

[0070] Based on the same concept, the embodiment of the present disclosure also provides an operating system monitoring device 100 .

[0071] It is understandable that the operating system monitoring device 100 provided in the embodiment of the present disclosure includes hardware structures and / or software modules corresponding to the execution of each function in order to realize the above functions. In combination with the units and algorithm steps of each example disclosed in the embodiment of the present disclosure, the embodiment of the present disclosure can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the technical solution of the embodiment of the present disclosure.

[0072] Figure 8 FIG. 1 is a block diagram of an operating system monitoring device 100 according to an exemplary embodiment. Figure 8 The device includes a monitoring unit 101 and a processing unit 102.

[0073] The monitoring unit 101 is used for monitoring the display process of the display interface of the electronic device in response to the operating system of the electronic device having been started up.

[0074] The processing unit 102 is used to obtain and store abnormal data corresponding to the abnormality in response to an abnormality occurring during the display process of the display interface.

[0075] In one implementation, the monitoring unit 101 monitors the display process of the electronic device display interface in the following manner: monitoring the display process of at least one of the following display interfaces: a system user display interface, a system wallpaper display interface, and a control center display interface.

[0076] In one embodiment, the display interface corresponds to a set of layers to be displayed, and the set of layers to be displayed includes multiple layers corresponding to the system user display interface, the system wallpaper display interface, and the control center display interface. The monitoring unit 101 monitors the display process of the electronic device display interface in the following manner: monitor the display process of each layer in the set of layers to be displayed.

[0077] In one embodiment, the monitoring unit 101 monitors the drawing and display process of each layer in the set of layers to be displayed in the following manner: in response to determining the layer requested to be drawn in the set of layers to be displayed, each layer requested to be drawn in the set of layers to be displayed is monitored one by one. In response to adding the layer requested to be drawn in the set of layers to be displayed to the set of layers to be drawn, the number of layers added to the set of layers to be drawn in the set of layers to be displayed is monitored and matched with the number of layers in the set of layers to be displayed, and the layer identifier of the topmost layer currently displayed by the electronic device is monitored and matched with the layer identifier of each layer in the set of layers to be drawn, and the layer identifier is used to distinguish different layers. In response to drawing and displaying the layers of the set of layers to be drawn, the display of each layer in the set of layers to be displayed is monitored.

[0078] In one embodiment, the processing unit 102 acquires and stores abnormal data corresponding to the abnormality in response to an abnormality occurring during the display process of the display interface in the following manner: in response to the presence of a layer in the set of layers to be displayed that is not requested to be drawn, acquire and store first abnormal data, the first abnormal data including the layer identifier of the layer that is not requested to be drawn. In response to the number of layers added to the set of layers to be drawn not matching the number of layers in the set of layers to be displayed, acquire and store second abnormal data, the second abnormal data indicating that the number of layers added to the set of layers to be drawn does not match the number of layers in the set of layers to be displayed. In response to the layer identifier of the topmost layer currently displayed by the electronic device not matching the layer identifier of each layer in the set of layers to be drawn, acquire and store third abnormal data, the third abnormal data indicating that the layer identifier of the topmost layer does not match the layer identifier of each layer in the set of layers to be drawn. In response to the presence of an undisplayed layer in the layers included in the set of layers to be displayed, acquire and store fourth abnormal data, the fourth abnormal data including the layer identifier of the undisplayed layer.

[0079] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0080] Fig. 9 1 is a block diagram of an apparatus 200 for operating system monitoring according to an exemplary embodiment. The apparatus 200 may be provided as a terminal. For example, the apparatus 200 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0081] Reference Fig. 9 , the device 200 may include one or more of the following components: a processing component 202 , a memory 204 , a power component 206 , a multimedia component 208 , an audio component 210 , an input / output (I / O) interface 212 , a sensor component 214 , and a communication component 216 .

[0082] The processing component 202 generally controls the overall operation of the device 200, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 202 may include one or more processors 220 to execute instructions to perform all or part of the steps of the above-described method. In addition, the processing component 202 may include one or more modules to facilitate interaction between the processing component 202 and other components. For example, the processing component 202 may include a multimedia module to facilitate interaction between the multimedia component 208 and the processing component 202.

[0083] The memory 204 is configured to store various types of data to support operations on the device 200. Examples of such data include instructions for any application or method operating on the device 200, contact data, phone book data, messages, pictures, videos, etc. The memory 204 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0084] The power component 206 provides power to the various components of the device 200. The power component 206 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 200.

[0085] The multimedia component 208 includes a screen that provides an output interface between the device 200 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 208 includes a front camera and / or a rear camera. When the device 200 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0086] The audio component 210 is configured to output and / or input audio signals. For example, the audio component 210 includes a microphone (MIC), and when the device 200 is in an operation mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 204 or sent via the communication component 216. In some embodiments, the audio component 210 also includes a speaker for outputting audio signals.

[0087] I / O interface 212 provides an interface between processing component 202 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0088] The sensor assembly 214 includes one or more sensors for providing various aspects of the status assessment of the device 200. For example, the sensor assembly 214 can detect the open / closed state of the device 200, the relative positioning of components, such as the display and keypad of the device 200, the sensor assembly 214 can also detect the position change of the device 200 or a component of the device 200, the presence or absence of user contact with the device 200, the orientation or acceleration / deceleration of the device 200 and the temperature change of the device 200. The sensor assembly 214 can include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 214 can also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 214 can also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.

[0089] The communication component 216 is configured to facilitate wired or wireless communication between the device 200 and other devices. The device 200 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 216 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 216 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0090] In an exemplary embodiment, the apparatus 200 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above method.

[0091] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 204 including instructions, and the instructions can be executed by the processor 220 of the device 200 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0092] It is to be understood that in the present disclosure, "plurality" refers to two or more than two, and other quantifiers are similar. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. The singular forms "a", "the" and "the" are also intended to include plural forms, unless the context clearly indicates other meanings.

[0093] It is further understood that the terms "first", "second", etc. are used to describe various information, but such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other, and do not indicate a specific order or degree of importance. In fact, the expressions "first", "second", etc. can be used interchangeably. For example, without departing from the scope of the present disclosure, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as the first information.

[0094] It will be further understood that the terms “center”, “longitudinal”, “lateral”, “front”, “back”, “up”, “down”, “left”, “right”, “vertical”, “horizontal”, “top”, “bottom”, “inside”, “outside”, etc., indicating orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, are only for the convenience of describing the present embodiment and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation.

[0095] It can be further understood that, unless otherwise specified, “connection” includes a direct connection without other components between the two, and also includes an indirect connection with other components between the two.

[0096] It is further understood that, although the operations are described in a specific order in the drawings in the embodiments of the present disclosure, it should not be understood as requiring the operations to be performed in the specific order shown or in a serial order, or requiring the execution of all the operations shown to obtain the desired results. In certain environments, multitasking and parallel processing may be advantageous.

[0097] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present solution, which follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure.

[0098] It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the scope of the appended claims.

Claims

1. An operating system monitoring method, characterized in that: include: In response to the operating system of the electronic device having been started up, monitoring a display process of a display interface of the electronic device; In response to an abnormality occurring during display of the display interface, abnormality data corresponding to the abnormality is acquired and stored.

2. The method according to claim 1, characterized in that The process of monitoring the display of the electronic device display interface includes: Monitor the display process of at least one of the following display interfaces: a system user display interface, a system wallpaper display interface, and a control center display interface.

3. The method according to claim 1 or 2, characterized in that: The display interface corresponds to a set of layers to be displayed, and the set of layers to be displayed includes a plurality of layers corresponding to the system user display interface, the system wallpaper display interface and the control center display interface respectively; The process of monitoring the display of the electronic device display interface includes: The display process of each layer in the to-be-displayed layer set is monitored.

4. The method according to claim 3, characterized in that The monitoring of the display process of each layer in the set of layers to be displayed includes: In response to determining the layer requested to be drawn in the set of layers to be displayed, monitoring each layer requested to be drawn in the set of layers to be displayed one by one; In response to adding the layer requested to be drawn in the set of layers to be displayed to the set of layers to be drawn, monitoring the number of layers added to the set of layers to be drawn in the set of layers to be displayed, matching the number of layers in the set of layers to be displayed, and monitoring the layer identifier of the topmost layer currently displayed by the electronic device, matching the layer identifier of each layer in the set of layers to be drawn, wherein the layer identifier is used to distinguish different layers; In response to drawing and displaying a layer of the set of layers to be drawn, the display of each layer in the set of layers to be displayed is monitored.

5. The method according to claim 1, characterized in that The step of acquiring and storing abnormal data corresponding to an abnormality in response to an abnormality occurring during the display process of the display interface comprises: In response to the presence of a layer in the to-be-displayed layer set that is not requested to be drawn, acquiring and storing first exception data, wherein the first exception data includes a layer identifier of the layer that is not requested to be drawn; In response to the number of layers added to the to-be-drawn layer set not matching the number of layers in the to-be-displayed layer set, obtaining and storing second exception data, wherein the second exception data indicates that the number of layers added to the to-be-drawn layer set not matching the number of layers in the to-be-displayed layer set; In response to the layer identifier of the topmost layer currently displayed by the electronic device not matching the layer identifier of each layer in the set of layers to be drawn, acquiring and storing third abnormal data, wherein the third abnormal data indicates that the layer identifier of the topmost layer does not match the layer identifier of each layer in the set of layers to be drawn; In response to the presence of an undisplayed layer in the layers included in the to-be-displayed layer set, fourth abnormal data is acquired and stored, where the fourth abnormal data includes a layer identifier of the undisplayed layer.

6. An operating system monitoring device, characterized in that: include: A monitoring unit, configured to monitor a display process of a display interface of the electronic device in response to the operating system of the electronic device having been started up; The processing unit is used to obtain and store abnormal data corresponding to the abnormality in response to the abnormality occurring during the display process of the display interface.

7. The device according to claim 6, characterized in that The monitoring unit monitors the display process of the electronic device display interface in the following manner: Monitor the display process of at least one of the following display interfaces: a system user display interface, a system wallpaper display interface, and a control center display interface.

8. The device according to claim 6 or 7, characterized in that The display interface corresponds to a set of layers to be displayed, and the set of layers to be displayed includes a plurality of layers corresponding to the system user display interface, the system wallpaper display interface and the control center display interface respectively; The monitoring unit monitors the display process of the electronic device display interface in the following manner: The display process of each layer in the to-be-displayed layer set is monitored.

9. The device according to claim 8, characterized in that The monitoring unit monitors the drawing and display process of each layer in the set of layers to be displayed in the following manner: In response to determining the layer requested to be drawn in the set of layers to be displayed, monitoring each layer requested to be drawn in the set of layers to be displayed one by one; In response to adding the layer requested to be drawn in the set of layers to be displayed to the set of layers to be drawn, monitoring the number of layers added to the set of layers to be drawn in the set of layers to be displayed, matching the number of layers in the set of layers to be displayed, and monitoring the layer identifier of the topmost layer currently displayed by the electronic device, matching the layer identifier of each layer in the set of layers to be drawn, wherein the layer identifier is used to distinguish different layers; In response to drawing and displaying a layer of the set of layers to be drawn, the display of each layer in the set of layers to be displayed is monitored.

10. The device according to claim 6, characterized in that The processing unit acquires and stores abnormal data corresponding to the abnormality in response to an abnormality occurring during the display process of the display interface in the following manner: In response to the presence of a layer in the to-be-displayed layer set that is not requested to be drawn, acquiring and storing first exception data, wherein the first exception data includes a layer identifier of the layer that is not requested to be drawn; In response to the number of layers added to the to-be-drawn layer set not matching the number of layers in the to-be-displayed layer set, obtaining and storing second exception data, wherein the second exception data indicates that the number of layers added to the to-be-drawn layer set not matching the number of layers in the to-be-displayed layer set; In response to the layer identifier of the topmost layer currently displayed by the electronic device not matching the layer identifier of each layer in the set of layers to be drawn, acquiring and storing third abnormal data, wherein the third abnormal data indicates that the layer identifier of the topmost layer does not match the layer identifier of each layer in the set of layers to be drawn; In response to the presence of an undisplayed layer in the layers included in the to-be-displayed layer set, fourth abnormal data is acquired and stored, where the fourth abnormal data includes a layer identifier of the undisplayed layer.

11. An operating system monitoring device, characterized in that: include: processor: a memory for storing processor-executable instructions; Wherein, the processor is configured to: execute the operating system monitoring method described in any one of claims 1 to 5.

12. A storage medium, characterized in that: The storage medium stores instructions, and when the instructions in the storage medium are executed by a processor, the processor is enabled to execute the operating system monitoring method described in any one of claims 1 to 5.