Data processing method, electronic device and storage medium
The electronic device addresses message push delays in instant messaging apps by providing historical status information for configuration items, allowing users to adjust settings efficiently and resolve delays without manual troubleshooting.
Patent Information
- Application Number
- CN202311027613.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-14
- Publication Date
- 2024-12-06
- Estimated Expiration
- 2043-08-14
AI Technical Summary
Instant messaging applications often experience delays in message push due to system configurations that disconnect network connections or prevent them from running in the background, requiring users to manually troubleshoot multiple configuration items, which is time-consuming and labor-intensive.
An electronic device detects query operations and provides a record of historical status information for configuration items related to message push delays, including default and recommended states, allowing users to adjust settings efficiently without manual checks.
Saves time and effort by automatically displaying historical and recommended configuration settings, enabling users to quickly resolve message push delays without manually querying each item.
Smart Images

Figure CN117714403B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of intelligent terminals, and in particular to a data processing method, an electronic device and a computer-readable storage medium. Background Art
[0002] Instant messaging applications can be used to send and receive Internet messages instantly. Therefore, instant messaging applications need to push messages in a timely manner to meet the communication needs of users.
[0003] In some scenarios, the terminal's system configuration sometimes causes the instant messaging application to be unable to obtain messages from the server in a timely manner. For example, after the terminal device starts the system power saving mode, the terminal device can disconnect the network connection to save power, which will cause the instant messaging application to be unable to obtain messages from the server in a timely manner. For another example, in the terminal's system configuration, if the instant messaging application is not allowed to run in the background, when the user switches the instant messaging application to the background or closes the instant messaging application, the instant messaging application will also be unable to obtain messages from the server in a timely manner.
[0004] When users find that the instant messaging application push message is delayed, they need to check all system configurations of the terminal and try one by one to enable the instant messaging application to obtain messages from the server in time. However, there are many system configurations related to the delay of instant messaging application push message, and users do not know which configuration items cause the instant messaging application to fail to obtain messages from the server in time, and the troubleshooting process is cumbersome. Summary of the invention
[0005] In view of this, the present application provides a data processing method, an electronic device, and a computer-readable storage medium, wherein a first query operation is detected; in response to the first query operation, a first record of a first instant messaging application installed on a first electronic device is acquired and displayed, wherein the first record includes historical status information of configuration items related to message push delay when a message push delay occurs in the history of the first instant messaging application, and the configuration items include system configuration items of the first electronic device. Thus, the user can adjust the corresponding configuration items through the historical status information, avoiding the user from manually querying the configuration items related to message delay, saving time and effort.
[0006] In a first aspect, the present application provides a data processing method, the method comprising: detecting a first query operation and responding to the first query operation, obtaining and displaying a first record of a first instant messaging application installed on a first electronic device, wherein the first record includes historical status information of configuration items related to message push delay when a message push delay occurs in the history of the first instant messaging application, and the configuration items include system configuration items of the first electronic device.
[0007] It can be understood that if the time difference between the time when a terminal receives a certain message and the time when the server receives the message from the sender is greater than a preset time threshold, the message can be called a delayed message.
[0008] Here, the configuration items related to message push delay (hereinafter referred to as associated configuration items) include system configurations, and their status can be the switch status of each configuration item (such as the switch value). Different associated configuration item states can have different effects on message push. Furthermore, when a user's query operation for a solution to message delay is detected, the historical status information of the configuration items related to message push delay can be provided to the user, eliminating the need for the user to manually query the status of each configuration item one by one, and the corresponding configuration items can be adjusted.
[0009] In a possible implementation of the first aspect above, the first record further includes a default state of the configuration item and a recommended state for a message push delay of the first instant messaging application.
[0010] It should be understood that the default state is the setting state of the associated configuration item when the electronic device leaves the factory; and the recommended state is the specific state of the associated configuration item that will not affect the push of instant messaging messages, providing users with a reference for solving the message delay problem. For example, the default state of the associated configuration item "traffic saving mode" is on, but the traffic saving mode may cause message delays, so the recommended state of the associated configuration item is off. In this way, users can adjust the corresponding configuration items by comparing the historical state, default state, and recommended state, avoiding users from manually querying the associated configuration items, saving time and effort.
[0011] In a possible implementation of the first aspect above, historical status information of configuration items related to message push delay is obtained in the following manner, including: a first electronic device receives a first message in a first scenario; corresponding to a case where the first message includes at least one instant messaging message received by a first instant messaging application, status information of configuration items when the first electronic device receives the first message is collected, wherein the first scenario is used to indicate a scenario that can cause instant messaging message push delay; and the collected status information is used as the historical status information of the configuration items corresponding to the first message.
[0012] It is understandable that in the first scenario (i.e., delayed business scenario), the network connection state of the instant messaging application may change, resulting in a delay in the sending of instant messaging messages. For example, a delayed business scenario may be that the user switches the application window of the instant messaging application from the background to the foreground, which may be a foreground-background switching event; another delayed business scenario may be that the user turns on the screen of the electronic device when the screen is off, which may be a screen-on event.
[0013] In some embodiments, different system configuration item library interfaces may be called by system applications or third-party applications. For example, a system application with power saving configuration permission may call the system configuration item library interface to collect historical status of power-related configuration items.
[0014] In a possible implementation of the first aspect above, the first scenario includes: a screen of the first electronic device switches from off to on; or a first application installed in the first electronic device switches from the background to the foreground.
[0015] It is understandable that when switching between the foreground and background of the application and when the screen is turned on, the instant messaging application usually synchronizes messages, and the network status may be changed at this time. Therefore, the first scenario (i.e., the delayed business scenario) is divided into two types, and then in different delay scenarios, different associated configuration items can be collected for the delay scenario to meet the needs of analyzing the causes of instant messaging message delays in different delay business scenarios.
[0016] In a possible implementation of the first aspect above, corresponding to at least one instant messaging message received by a first instant messaging application included in the first message, collecting status information of configuration items when the first electronic device receives the first message, including: corresponding to the first scenario that a first application installed in the first electronic device switches from the background to the foreground, matching the application unique identification code of the first application with the package names of multiple second applications, wherein the multiple second applications are instant messaging applications whose current resource occupancy rate is greater than a preset occupancy rate; corresponding to the case where there is an application among the multiple second applications that matches the application unique identification code of the first application, collecting status information of the configuration items when the first electronic device receives the first message.
[0017] It can be understood that by determining that the application switched to the foreground is an instant messaging application with a high current resource occupancy rate, the instant messaging application that obtains the first message can be quickly determined, and the collection of the status information of the configuration item can be started.
[0018] In a possible implementation of the first aspect above, corresponding to at least one instant messaging message received by the first instant messaging application included in the first message, collecting status information of configuration items when the first electronic device receives the first message, including: corresponding to the first scenario that the screen of the first electronic device switches from off to bright, obtaining the first time when the screen switches from off to bright; when the time difference between the second time of receiving at least one instant messaging message and the first time is less than the first time threshold, collecting status information of the configuration items when the first electronic device receives the first message.
[0019] It can be understood that by determining that the first message is an instant messaging message obtained within the first time threshold after the screen light event, it is possible to avoid erroneous collection of messages in non-delayed business scenarios and provide users with more accurate historical scenarios and historical status information of configuration items.
[0020] In a possible implementation of the first aspect above, after collecting the status information of the configuration item when the first electronic device receives the first message, it also includes: corresponding to the first scenario that the first application installed in the first electronic device switches from the background to the foreground, adding a first identifier to the collected status information of the configuration item; corresponding to the first scenario that the screen of the first electronic device switches from off to on, adding a second identifier to the collected status information of the configuration item.
[0021] It can be understood that by adding the first identifier and the second identifier, when the historical status information of the collected configuration items needs to be uploaded to the cloud, or when the historical status information of the collected configuration items needs to be provided to the user, the electronic device or the cloud can easily identify the delayed business scenario of the historical status information of the collected configuration items. In this way, the amount of data transmitted between the electronic device as a terminal and the cloud can be reduced, and the efficiency of collecting the historical status information of the collected configuration items can be improved.
[0022] In a possible implementation of the first aspect above, a second application is also installed in the first electronic device, and the first query operation is detected, including: the second application detects the user's query for a solution related to the delay in pushing messages of the first instant messaging application.
[0023] It is understandable that the second application can be a system application or a third-party application, which can detect the user's query for a solution to the delay in pushing messages to the first instant messaging application and provide the user with a solution. For example, it can be an application that includes a fault collection control in a user encyclopedia, or it can be an application that includes an online customer service online Q&A service.
[0024] In a possible implementation of the first aspect above, in response to a first query operation, obtaining and displaying a first record of a first instant messaging application installed on a first electronic device includes: in response to a user querying an operation for a solution related to the delay in message push by the first instant messaging application, the second application obtaining and displaying the first record.
[0025] It can be understood that the second application can provide users with an entry to solutions related to the delay in message push of the first instant messaging application, thereby facilitating users to quickly learn about solutions related to the delay in message push of the first instant messaging application, and visually display the first record, for example, displaying the first record in a table format, to enhance the user experience.
[0026] In a possible implementation manner of the first aspect above, the configuration item includes at least one of the following configuration items: a power configuration item, a network configuration item, an application permission, an application setting, and a notification configuration item.
[0027] In some embodiments, the above configuration items include but are not limited to power configuration items (for example, whether the power saving mode is turned on), network configuration items (for example, the network standard of the current application), application permissions (for example, whether the application is allowed to run in the background), application settings (for example, whether the application actively pushes notifications) and notification configuration items (for example, whether the system notifications are silent).
[0028] In a second aspect, the present application also provides an electronic device, comprising: one or more processors; one or more memories; one or more memories storing one or more programs, and when one or more programs are executed by one or more processors, the electronic device executes any possible data processing method of the first aspect mentioned above.
[0029] In a third aspect, the present application further provides a computer-readable storage medium having instructions stored thereon, which, when executed on a computer, enables the computer to execute any possible data processing method of the first aspect.
[0030] In a fourth aspect, an embodiment of the present application discloses a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute any possible data processing method of the first aspect described above. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 A schematic diagram of a scenario in which an instant messaging application pushes a message is shown;
[0032] Figure 2A A schematic diagram of a scenario in which a user consults online customer service is shown;
[0033] Figure 2B A schematic diagram of a scenario of an online customer service reply is shown;
[0034] Figure 2C A schematic diagram of a scenario in which a user browses a collection of faults is shown;
[0035] Figure 3A According to the present application, a schematic diagram of a scenario in which an online customer service provides a list of system configuration items is shown;
[0036] Figure 3B According to the present application, a schematic diagram of a scenario in which a user browses a list of system configuration items in a fault collection is shown;
[0037] Figure 3C According to an embodiment of the present application, a schematic diagram of a data processing method flow is shown;
[0038] Figure 4 According to an embodiment of the present application, a software structure block diagram of an electronic device 100 is shown;
[0039] Figure 5 According to an embodiment of the present application, a schematic diagram of an implementation flow of a data processing method is shown;
[0040] Figure 6 A schematic diagram of a list of manually checking related configuration items in a system is shown;
[0041] Figure 7 According to an embodiment of the present application, a schematic flow chart of a method for adding a first identifier in a foreground-background switching scene is shown;
[0042] Figure 8 According to an embodiment of the present application, a schematic flow chart of a method for adding a second identifier to a screen-on scene is shown;
[0043] Fig. 9 According to an embodiment of the present application, a schematic flow chart of a method for reporting associated configuration items by scenario is shown;
[0044] Fig.10 According to an embodiment of the present application, a hardware structure diagram of an electronic device 100 is shown. DETAILED DESCRIPTION
[0045] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0046] The illustrative embodiments of the present application include, but are not limited to, data processing methods, electronic devices, and computer-readable storage media, among others.
[0047] It can be understood that the electronic devices to which the present application is applicable may be mobile phones, tablet computers, desktop computers, laptop computers, handheld computers, netbooks, augmented reality (AR) / virtual reality (VR) devices, smart TVs, smart watches, etc., as well as those having one or more processors embedded or coupled therein, without limitation herein.
[0048] Figure 1 A schematic diagram of a scenario in which an instant messaging application pushes messages is shown.
[0049] refer to Figure 1 The instant messaging application includes a server cluster, which includes at least server 1 and server 2. Multiple instant messaging application clients can push instant messaging messages to each other through server 1 or server 2.
[0050] Assume that user 1 logs in to the instant messaging application through account A, and user 2 logs in to the instant messaging application through account B. The terminal logged in with account A is terminal A1, and the terminals logged in with account B are terminal B1 and terminal B2. The internet protocol address (internet protocol address, IP address) of terminal B1 is IP 1, and the IP address of terminal B2 is IP 2.
[0051] It is understandable that if the terminal is to push the instant messaging message in time, the terminal needs to successfully establish a communication connection with the server. Therefore, if the communication connection between the terminal receiving the message and the server 1 is unstable, the message push delay may be caused.
[0052] For example, when user 1 logs in to account A and sends an instant messaging message "Account A→Account B" to user 2's account B, server 1 will generate a message push task "A1→B1". If terminal B1 is disconnected from the network (for example, server 1 cannot obtain the heartbeat packet from IP 1), server 1 cannot push the message obtained from terminal A1 to terminal B1. At this time, server 1 will cache the message push task "A1→B1" and search for all logged-in online terminals of account B.
[0053] Continue to refer Figure 1 , when server 1 finds that user 2 has another online terminal B2, server 1 generates a new message push task "A1→B2". At this time, if server 1 receives the message confirmation sent by IP 2, it deletes the message push task "A1→B2". And, if server 1 still does not receive the message confirmation sent by IP 1, it continues to cache the unpushed message push task "A1→B1".
[0054] If terminal B1 with address IP 1 re-establishes a network connection with server 1, server 1 will notify all servers of the online status of terminal B1, for example, server 2, so that the server with cached unexecuted message push tasks "A1→B1" will execute the cached message push tasks "A1→B1" after receiving the online status information of terminal B1.
[0055] It is understandable that the communication connection between the client and the server 1 is usually maintained in the form of heartbeat packets, and each allocated IP address will be deleted if it is offline for a long time. This causes the instant messaging application push message on the terminal B1 to be delayed, resulting in a poor instant messaging experience for the user.
[0056] In some embodiments, the user can seek help from the application customer service by phone or online, or seek help from the electronic device manufacturer customer service (for example, refer to Figure 2A, the user can consult the electronic device manufacturer's customer service through the online customer service control 011 in the mobile phone after-sales service interface 01). The user can contact the customer service of the electronic device and follow the customer service's instructions to query the system configuration item by item (for example, refer to Figure 2B , the user can enter "instant messaging application messages cannot be received, no reminder or delayed" in the online customer service interface 02). This method requires waiting for the customer service's reply, and the user still needs to manually check the system configuration, which is time-consuming and labor-intensive and quite inconvenient.
[0057] In some other embodiments, the user can search for configuration troubleshooting guidance content for instant messaging application message delay through the fault collection in the user encyclopedia of the electronic device (for example, refer to Figure 2C The user can enter the content page 04 through the IM application message delay related control 031 in the fault collection interface 03 in the user encyclopedia, and query the system configuration item by item according to the guidance of the content page 04). In this way, the user still needs to manually check the switch status of the configuration items in the system configuration one by one, which is time-consuming and labor-intensive and quite inconvenient.
[0058] In view of this, an embodiment of the present application proposes a data processing method, whereby an electronic device can record a first record related to message delay in a business scenario where an instant messaging application may receive a delayed message (for example, a scenario where an instant messaging application switches from the background to the foreground, or a scenario where the screen is awakened, hereinafter referred to as a delayed business scenario), and the first record includes a historical status of a configuration item (hereinafter referred to as the historical status of an associated configuration item), wherein the configuration item related to the message delay includes a system configuration. When the electronic device detects that the user has performed an operation to obtain a solution corresponding to the delay of the first application message, the electronic device obtains and displays the historical status of the associated configuration item, the default status of the associated configuration item, and the recommended status of the associated configuration item corresponding to avoiding message delay. In this way, the user can adjust the corresponding configuration item by comparing the historical status, the default status, and the recommended status, thereby avoiding the user from manually querying the associated configuration item, saving time and effort.
[0059] It can be understood that if the time difference between the time when a terminal receives a certain message and the time when the server receives the message from the sender is greater than a preset time threshold, the message can be called a delayed message.
[0060] In some embodiments, the above-mentioned associated configuration items include but are not limited to power configuration items (for example, whether the power saving mode is turned on), network configuration items (for example, the network standard of the current application), application permissions (for example, whether the application is allowed to run in the background), application settings (for example, whether the application actively pushes notifications) and notification configuration items (for example, whether the system notifications are silent).
[0061] It should be understood that the default state is the setting state of the associated configuration item when the electronic device leaves the factory; and the recommended state is the specific state of the associated configuration item that will not affect the push of instant messaging messages, providing users with a reference for solving the message delay problem. For example, the default state of the associated configuration item "Flow Saving Mode" is on, but the flow saving mode may cause message delays, so the recommended state of the associated configuration item is off.
[0062] For example, it is assumed that the states of the associated configuration items that may cause message push delays in an instant messaging application include whether the power saving mode is turned on, whether the application is allowed to be started in the background, and whether the application actively pushes notifications.
[0063] refer to Figure 3A When the user inquires about the delay in message push of the first application through the online customer service interface 05, the electronic device can display the troubleshooting path, historical status, default status and recommended status of power configuration items, network configuration items and application permissions. For example, in interface 05, the instant messaging application obtains message 1 at 18:40. Among the related configuration items at that time, the power saving mode is on, and the recommended status is off. The user can change the configuration item status of the power saving mode from on to off to solve the problem of delay in message push of the first application caused by starting the power saving mode.
[0064] Similarly, reference Figure 3B , users can enter the content page 06 through the instant messaging application message delay related control 031 in the fault collection interface 03 in the user encyclopedia, and the troubleshooting path, historical status, default status and recommended status of power configuration items, network configuration items and application permissions will be displayed according to the content page 06. In this way, users do not have to manually check the current status of the above-mentioned related configuration items one by one according to the troubleshooting path, and can directly change the related configuration items of message delay to solve the problem of message delay.
[0065] Combine the following Figure 3C A data processing method in an embodiment of the present application is described.
[0066] Figure 3C According to an embodiment of the present application, a data processing method flow chart is shown. It can be understood that Figure 3C The execution entity of each step of the illustrated process may be the electronic device 100 described above, or other electronic devices, and the execution entity of a single step will not be described in detail.
[0067] like Figure 3C As shown, the interaction process includes the following steps:
[0068] S301, in a delayed service scenario, an instant messaging application in an electronic device receives an instant messaging message.
[0069] When an electronic device is in a delayed service scenario, if an instant messaging application in the electronic device receives an instant messaging message, the data processing method provided in the embodiment of the present application can be triggered.
[0070] It is understandable that the network connection state of the instant messaging application may change in the delayed business scenario, resulting in a delay in the sending of instant messaging messages. For example, one delayed business scenario may be that the user switches the application window of the instant messaging application from the background to the foreground, which may be a foreground-background switching event; another delayed business scenario may be that the user turns on the screen of the electronic device 100 (for example, clicks the power button) when the screen is off, which may be a screen-on event.
[0071] It is understandable that when switching between the foreground and background of the application and when the screen is turned on, the instant messaging application usually synchronizes messages, and the network status may be changed at this time (for example, re-establishing a TCP long connection). Therefore, by distinguishing different monitoring events, different associated configuration items can be provided to users to meet the needs of analyzing the causes of instant messaging message delays in different delay business scenarios.
[0072] S302: Call the system configuration item library interface to collect the status of related configuration items.
[0073] Exemplarily, when the electronic device receives an instant messaging message through an instant messaging application, the electronic device 100 may call an interface of the system configuration item library to collect the status of the associated configuration item.
[0074] In some embodiments, different interfaces of system configuration item libraries can be called through system applications or third-party applications. For example, the interface of the system configuration item library can be called through a system application with the permission to call power saving configuration to collect the historical status of configuration items related to power supply; or the interface of the system configuration item library can be called through a system application with the permission to call security configuration to collect information data related to the application package name.
[0075] S303: Store the received status of the associated configuration item.
[0076] For example, the electronic device can store the status of the associated configuration items obtained in different delay business scenarios separately. In this way, when the user inquires about the solution to the delay of instant messaging application message push, the electronic device can provide the user with the historical status of the associated configuration items according to different delay business scenarios, such as whether the power saving mode is turned on.
[0077] For example, for a delayed business scenario in which an instant messaging application switches from the background to the foreground, a first identifier may be added to the associated configuration items and their corresponding states related to the delay in pushing instant messaging messages; for a delayed business scenario in which the screen of the electronic device 100 turns on, a second identifier may be added to the associated configuration items and their corresponding states related to the delay in pushing instant messaging messages. Different identifiers are then used to distinguish the historical states of instant messaging messages and associated configuration items in different delayed business scenarios, so that users can conduct a comprehensive analysis of the causes of message push delays.
[0078] S304, uploading the relevant parameters of the instant messaging message with the added identifier and the historical status of the associated configuration items to the cloud.
[0079] For example, the relevant parameters of the instant messaging message with the added mark and the historical status of the associated configuration items can be integrated into a list-style file, which is then packaged and uploaded to the cloud. Figure 3A In the scenario illustrated, after consulting online customer service, the user can view the historical status of the recorded associated configuration items in interface 05, and can obtain the corresponding default status, recommended status, and troubleshooting path, rather than just providing query guidance for querying each associated configuration item. This method does not require the user to manually troubleshoot the cause of the instant messaging message delay item by item, but instead presents the system configuration option list to the user in a visual manner. The user can adjust the current status of the associated configuration item by comparing the historical status and recommended status of the associated configuration item to solve the problem of message push delay, saving time and effort, and being convenient and quick.
[0080] It should be understood that the historical status of the relevant parameters and associated configuration items of the instant messaging message after adding the mark in step S304 can be uploaded to the cloud or only stored in the local storage space of the electronic device, which is not limited here.
[0081] S305 , in response to the user's query for a solution to the delay of an instant messaging message of the first application, displaying a historical state, a default state, and a suggested state of the configuration items associated with the first application.
[0082] Exemplarily, in response to a user's query for a solution to instant messaging delay, the historical status, default status, and recommended status of the associated configuration item of the first application are displayed, providing the user with an analysis result related to the instant messaging delay. Figure 3AIn the example scenario, after the user inquires about how to solve the problem of instant messaging message delay, the user can obtain the time point of obtaining the latest instant messaging message in the delayed business scenario, and the troubleshooting path, historical status, default status and recommended status of the associated configuration items related to the instant messaging message in interface 05, instead of only providing the troubleshooting path for querying each associated configuration item. This method does not require the user to manually troubleshoot the cause of instant messaging message delay item by item, but instead presents the system configuration option list to the user visually, saving time and effort, and is convenient and fast.
[0083] Through the above steps S301 to S305, when the electronic device 100 detects that the user is inquiring about a solution to the delay of the instant messaging message, the electronic device 100 displays the historical status, default status, and recommended status of the associated configuration items recorded by the electronic device 100 in the delayed business scenario. This allows the user to compare the status, default status, and recommended status of the associated configuration items to analyze the cause of the delay of the instant messaging message without manually checking the status of all associated configuration items, thus saving time and effort.
[0084] Below is an example of Android TM ) system as an example, combined with Figure 4 The process of obtaining the status of the configuration item associated with the instant messaging message delay is exemplarily described.
[0085] Figure 4 According to an embodiment of the present application, a software structure block diagram of an electronic device 100 is shown.
[0086] refer to Figure 4 The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. The layered architecture may divide the software into several layers, each with a clear role and division of labor. The layers communicate with each other through software interfaces.
[0087] In some embodiments, the Android system is divided into five layers, from top to bottom, namely, application layer 440, application framework layer 430 (framework, FWK), Android runtime (Android runtime) and system library 420, kernel layer (kernel) 410, and hardware layer 400.
[0088] The application layer 440 may include a series of applications, such as a configuration acquisition application 441 (e.g., a power saving wizard TM 、iAware TM and System Manager TM) is used to obtain the associated configuration items and the status of each associated configuration item; instant messaging application 442 is used to push instant messaging messages to users; system user interface (system user interface, SystemUI), system application, is used to provide a basic display interface, such as the status bar at the top of the screen, the navigation bar at the bottom of the screen, the quick setting bar of the drop-down interface, the notification bar, the lock screen interface, the volume adjustment dialog box, the screenshot display interface, etc.
[0089] The application layer 440 may include a configuration acquisition application 441 (e.g., a power saving wizard TM 、iAware TM and System Manager TM ), instant messaging application 442 and system user interface 443 (system user interface, SystemUI).
[0090] The configuration acquisition application 441 is an application with system configuration option acquisition authority. The configuration acquisition application 441 can call the interface of the system configuration item library to obtain the status of the associated configuration item from the system configuration item library. TM The power configuration options and the switch status of the power configuration options in the system configuration item library can be obtained, for example, it can be determined whether the power saving mode is turned on in the current electronic device 100; iAware TM You can obtain the package name data of the application package in the system configuration item library; System Manager TM You can get the switch status of the configuration option in the system configuration item library to determine whether to allow the instant messaging application to start in the background.
[0091] SystemUI 443 is a core application of the Android system, which is used to present a corresponding interface to the user to feedback the status of the system and related applications and respond to the execution results of user operations, etc. The user can interact with the system through the corresponding interface controlled by SystemUI 443. In some embodiments, SystemUI 443 can display the status of all related configuration items obtained by the configuration acquisition application 441 on the screen 194.
[0092] In the example above Figure 3A In the scenario of , SystemUI 443 can display the historical status, default status, and recommended status of the associated configuration items related to the instant messaging message obtained in step S304 above in the dialog box of the online customer service in interface 05. Figure 3BIn the scenario, SystemUI 443 can display the historical status, default status, and recommended status of the associated configuration items related to the instant messaging message obtained in step S304 above in the solution content of the fault collection of interface 06. This saves the user from manually querying each system configuration option (for example, querying the switch status of the power saving mode option), and directly presents the system configuration options related to the instant messaging application in a list form on the screen 194 one by one.
[0093] The application framework layer 430 provides an application programming interface (API) and a programming framework for the applications of the application layer. The application framework layer 430 includes some predefined functions. For example, the application framework layer 430 includes an activity management service 431 and a notification management service 432. Among them, the activity management service 431 can manage the activities within the system, such as calling back the corresponding application according to the input event. The notification management service 432 can be used to manage all notification messages within the system, for example, instant messaging messages can be distributed to SystemUI 443, and presented to the user by SystemUI 443.
[0094] In some embodiments, a listening function may be registered in the notification management service 432, so as to continuously and cyclically listen for foreground and background switching events in which the application window switches from the background to the foreground (for example, listening to foreground and background switching messages of the window), and cyclically listen for screen turning on events in which the user turns on the screen (for example, listening to screen turning on broadcasts to determine screen turning on events).
[0095] Android Runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.
[0096] The core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.
[0097] In an embodiment of the present application, the system library 420 may include an input management service 421, which is used to distribute input events obtained from the kernel layer 410 to the application framework layer 430, so that the application framework layer 430 calls the corresponding service based on the input event, for example, calling the activity management service 431 to call back the instant messaging application 442 in the application layer 440.
[0098] The application layer 440 and the application framework layer 430 run in a virtual machine. The virtual machine executes the Java files of the application layer 440 and the application framework layer 430 as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
[0099] The kernel layer 410 (Kernel layer) provides underlying drivers for various hardware of the electronic device 100, including, for example, a device driver layer 411, an input core layer 412, and an event processing layer 413. In some embodiments, the kernel layer 410 can obtain hardware interrupts detected by the hardware layer 400, and process the hardware interrupts into corresponding input events, such as screen-on events, through the device driver layer 411, the input core layer 412, and the event processing layer 413.
[0100] The hardware layer 400 may include various hardware chips of the electronic device, such as the hardware chip of the screen 194, and detect the hardware interrupt corresponding to the user operation. For example, when the user clicks the power button, a corresponding hardware interrupt may be generated. Based on the hardware interrupt, the kernel layer 410 may process it as an input event for lighting the screen.
[0101] It should be noted that although the embodiments of the present application are described using the Android system as an example, its basic principles are also applicable to electronic devices based on operating systems such as "IOS", "Windows" or "Linux".
[0102] Based on the above Figure 4 The interaction process within the system architecture shown is described in detail below in conjunction with the relevant drawings, with a specific implementation process of a data processing method provided in an embodiment of the present application.
[0103] Figure 5 According to an embodiment of the present application, a schematic diagram of an implementation flow of a data processing method is shown.
[0104] Specifically, Figure 5 As shown, the process includes the following steps:
[0105] S501 , the notification management service 432 monitors the activity management service 431 for foreground and background switching events and screen lighting events.
[0106] Exemplarily, the notification management service 432 can monitor the foreground and background switching events of the background application switching to the foreground, and can also monitor the screen-lighting events of waking up the screen. When it is monitored that the user operation causes the window of the background application to switch from the background to the foreground, steps S502 to S510 below are performed to obtain the first message newly received after the foreground and background switching event, and collect the state of the associated configuration items when the first message is received. When it is monitored that the user operation causes the screen that has not been awakened to be awakened, steps S511 to S518 below are performed to obtain the second message newly received after the screen-lighting event, and collect the state of the associated configuration items when the second message is received. Furthermore, the electronic device 100 obtains the instant messaging message in the delayed business scenario, actively collects the state of the associated configuration items related to the delayed push of the instant messaging message, and stores it to provide the user with an intuitive historical state of the associated configuration items.
[0107] In some embodiments, a listener is registered in the SystemUI 443 , and the listener is used to call the notification management service 432 to listen to the foreground and background switching events of the activity management service 431 .
[0108] In some embodiments, when an application switches to the foreground, the activity management service 431 may return the user identity document (UID) assigned to the application to the notification management service 432, and the notification management service 432 may send the UID to the SystemUI 443 so that the SystemUI 443 may determine the application switched to the foreground based on the UID.
[0109] S502, the notification management service 432 monitors a foreground-background switching event in which the application switches to the foreground.
[0110] Exemplarily, the notification management service 432 monitors the window switching message of the background application window switching to the foreground, and thus monitors the foreground-background switching event.
[0111] It can be understood that the application switched to the foreground is the application currently used by the user, and its window is located at the top of the display layer of the screen. On the screen, the user can directly observe the focus application window that has been switched to the foreground. The above-mentioned foreground and background switching operation can cause the network connection status of the focus application to change. For example, if the application switches to the background and causes the network connection to fail, the network connection can be re-established when it switches to the foreground. Therefore, it is necessary to obtain an instant messaging message of the instant messaging application once when it is detected that the application switches to the foreground, and analyze whether there are system configuration items related to the delay in pushing the message.
[0112] S503, the notification management service 432 obtains relevant parameters of the first message obtained after the foreground and background switching event, and adds a first identifier to the relevant parameters of the first message.
[0113] Exemplarily, the notification management service 432 obtains relevant parameters of the first message obtained by the application after switching to the foreground, and adds a first identifier to the relevant parameters of the first message.
[0114] It can be understood that the first identifier can be a unique identifier related to the foreground and background switching event, which can be used to distinguish from the second identifier added to the screen light event mentioned below. In other words, the first identifier and the second identifier are used to distinguish the monitored delayed business scenarios, thereby facilitating targeted analysis of the causes of instant messaging message delays in different business scenarios.
[0115] In some embodiments, the message obtained within 2 seconds after the focus application is switched to the background can be used as the first message.
[0116] S504 , notifying the management service 432 to send relevant parameters of the first message to the SystemUI 443 .
[0117] Exemplarily, the notification management service 432 may send relevant parameters of the first message to the SystemUI 443, so that after obtaining the relevant parameters of the first message (eg, the application unique identification code, the timestamp of obtaining the first message), the SystemUI 443 may collect the status of the associated configuration items.
[0118] S505 , SystemUI 443 sends an application confirmation request to the configuration acquisition application 441 based on relevant parameters of the first message.
[0119] Exemplarily, after receiving the relevant parameters of the first message, SystemUI 443 may send an application confirmation request to the configuration acquisition application 441. The application confirmation request is used to confirm the instant messaging application that pushes the first message, and then the configuration acquisition application 441 may collect the status of the associated configuration items for the instant messaging application. For example, it may be determined whether the instant messaging application is allowed to start in the background; for another example, it may be determined whether the instant messaging application is allowed to connect to the network. This may reduce the amount of status data of the associated configuration items obtained, and improve data processing efficiency.
[0120] S506, the configuration acquisition application 441 calls the system configuration item library interface to obtain the status of the associated configuration item.
[0121] Exemplarily, the configuration acquisition application 441 may call a system configuration item library interface, such as an application programming interface (API), to access the system configuration item library and obtain the status of the associated configuration items stored in the database.
[0122] S507: The configuration acquisition application 441 adds a first identifier to the state of the associated configuration item.
[0123] Exemplarily, the configuration acquisition application 441 can add a first identifier to the status of the associated configuration item collected according to the first message, so that the SystemUI 443 can determine based on the first identifier that the first message is an instant messaging message obtained after the foreground and background switching event, and then identify the delayed business scenario.
[0124] S508 , the configuration acquisition application 441 sends the status of the associated configuration item marked with the first identifier to the SystemUI 443 .
[0125] Exemplarily, the configuration acquisition application 441 sends the status of the associated configuration items marked with the first identifier to the SystemUI 443, so that the SystemUI 443 can visually present it on the screen in the form of a list, thereby eliminating the need for the user to manually check the status of the associated configuration items related to the message push delay one by one.
[0126] S509, SystemUI 443 reports the status of the associated configuration item marked with the first identifier and the related parameters of the first message to the cloud 450.
[0127] Exemplarily, SystemUI 443 can report the status of the associated configuration item after the mark and the relevant parameters of the first message (such as the acquisition timestamp of the first message) to the cloud 450 through the preset interface, so that when the cloud 450 detects that the user is inquiring about the solution to the delay of the instant messaging message, it can provide the user with the foreground and background switching scene corresponding to the first identifier, the status of the associated configuration item and the parameter information related to the first message, wherein the parameter information may include the time when the message was obtained. Figure 3A In the scenario, online customer service can provide users with the front-end and back-end switching scenarios, the historical status, default status and recommended status of related configuration items, and provide parameter information related to the first message, eliminating the need for users to manually query item by item and the query process of instant communication message delays.
[0128] In some embodiments, the preset interface may be a dot interface of the cloud 450 for statistical analysis of data. This allows the electronic device manufacturer's customer service to determine a configuration adjustment solution to avoid instant messaging message delays based on the delayed business scenario, the status of the associated configuration items, and parameter information related to the instant messaging message received by the cloud 450, and provide it to the user to improve the user experience.
[0129] S510, the notification management service 432 monitors a screen-on event.
[0130] It is understandable that the screen can usually be awakened and turned off by combining the screen-on broadcast and the screen-off broadcast, wherein the screen-on broadcast can be used to control the screen to be awakened, and the screen-off broadcast can be used to control the screen to be turned off. Therefore, the notification management service 432 can determine that the screen is awakened by monitoring the screen-on event.
[0131] S511, the notification management service 432 obtains the relevant parameters of the second message obtained after the screen is turned on, and adds a second identifier to the relevant parameters of the second message.
[0132] It can be understood that waking up the screen symbolizes the user's willingness to use the electronic device to receive and process data information, so usually the instant messaging application will synchronize the instant messaging message with the server once when the screen is turned on, and push the instant messaging message to the user in a timely manner. Therefore, the notification management service 432 can obtain the relevant parameters of the instant messaging message obtained after the screen is turned on (i.e., the second message), and add the second identifier to the relevant parameters of the second message.
[0133] It should be noted that the second identifier is different from the first identifier mentioned above. The second identifier is used to characterize the instant messaging message obtained after the screen is turned on, that is, it corresponds to the scenario of obtaining instant messaging messages with the screen turned on. This allows SystemUI443 to identify the delayed business scenario of switching between the foreground and background to obtain instant messaging messages based on the first identifier, and can identify the delayed business scenario of obtaining instant messaging messages with the screen turned on based on the second identifier.
[0134] In some embodiments, the second identifier may be identification data in the form of numbers, strings, etc. For example, the second identifier may be a unique identification code corresponding to the screen-on scene.
[0135] S512 , the notification management service 432 sends the relevant parameters of the marked second message to the SystemUI 443 .
[0136] It can be understood that the specific implementation of step S512 can refer to step S504 mentioned above, and will not be described in detail here.
[0137] S513 , SystemUI 443 sends an application confirmation request to the configuration acquisition application 441 based on relevant parameters of the second message.
[0138] It can be understood that the specific implementation of step S513 can refer to step S505 mentioned above, and will not be described in detail here.
[0139] S514, the configuration acquisition application 441 calls the system configuration item library interface to obtain the status of the associated configuration item.
[0140] It can be understood that the specific implementation of step S514 can refer to step S506 mentioned above, which will not be described in detail here.
[0141] S515: The configuration acquisition application 441 adds a second identifier to the status of the associated configuration item.
[0142] Exemplarily, the configuration acquisition application 441 can add a second identifier to the status of the associated configuration item collected according to the second message, so that the SystemUI 443 can determine based on the second identifier that the second message is an instant messaging message obtained after the screen light event, and then identify the delayed business scenario of instant messaging message push delay.
[0143] S516 , the configuration acquisition application 441 sends the status of the associated configuration item marked with the second identifier to the SystemUI 443 .
[0144] It can be understood that the specific implementation of step S516 can refer to step S508 above, which will not be described in detail here.
[0145] S517, SystemUI 443 reports the status of the associated configuration item marked with the second identifier and the related parameters of the second message to the cloud 450.
[0146] It can be understood that the specific implementation of step S517 can refer to step S509 mentioned above, and will not be repeated here.
[0147] S518: SystemUI 443 stores the status of the configuration item associated with the first identification mark and the status of the configuration item associated with the second identification mark.
[0148] Exemplarily, the SystemUI 443 may integrate the states of the configuration items associated with the first identification mark and the states of the configuration items associated with the second identification mark in a table format, and store them in the local storage space of the electronic device 100 to facilitate display to the user.
[0149] In some embodiments, reference Figure 6 , online customer service usually provides users with suggestions and guidance for manually troubleshooting related configuration items in the system. For example, the guidance may include system settings, the search path for the settings (i.e., operation steps), switch modules with control permissions for settings (i.e., applications with control permissions, which can be system applications or third-party applications), business areas, default switch states of settings, and guidance suggestions for users.
[0150] However, in this application, reference Figure 3A or Figure 3BWhen users query the delay of instant messaging messages, they can directly query the relevant parameters of instant messaging messages within a period of time (such as the time of pushing messages and the delayed business scenario), and provide users with the historical status, default status and recommended status of related configuration items related to instant messaging messages. Users do not need to manually check each item one by one, and can intuitively determine the status of related configuration items that may cause delayed push when receiving the instant messaging message.
[0151] It can be understood that through the above steps S501 to S518, when it is detected that the user inquires about the solution to the delay of instant messaging messages, the delayed business scenarios of instant messaging messages are classified, including the foreground and background switching scenarios and the screen lighting scenarios, so that all system configurations of the current electronic device can be collected during the reception of all instant messaging messages and uploaded to the cloud storage. The historical status, default status and recommended status of the associated configuration items related to the instant messaging messages are displayed. This saves the user from having to manually check the status of the associated configuration items one by one, saving time and effort.
[0152] Combine the following Figure 7 The specific implementation of steps S501 to S504 in the above text is described in detail.
[0153] Figure 7 According to an embodiment of the present application, a schematic flow chart of a method for adding a first mark to a foreground-background switching scenario is shown. It can be understood that the installation package management service can be used to verify whether the application switched to the foreground by the foreground-background switching event is the same application as the application that obtains the first message, and then accurately add the first identifier to the first message. The first identifier can be used to characterize the delayed business scenario of obtaining an instant messaging message after the foreground-background switching event. This avoids incorrectly adding the identification information corresponding to the scenario.
[0154] Understandably, Figure 7 The execution entity of each step of the illustrated process may be the electronic device 100, and the execution entity of a single step will not be described in detail.
[0155] like Figure 7 As shown, the interaction process includes the following steps:
[0156] S701, register a monitoring service in the notification management service 432 to monitor foreground and background switching events and screen light events.
[0157] It can be understood that the above step S701 can refer to the specific implementation of step S501 above, which will not be described in detail here.
[0158] S702, whether to monitor the foreground and background switching event from the activity management service 431. If the foreground and background switching event is monitored, execute S703 to S705 to obtain the first message and determine the instant messaging application corresponding to the first message. If the foreground and background switching event is not monitored, end this process.
[0159] It can be understood that if the electronic device 100 monitors a message from the activity management service 431 that an application switches from the background to the foreground, it can be determined that a foreground-background switching event has been monitored, and the application unique identification code can be obtained from the activity management service 431, and then it can be determined based on the application unique identification code whether it is the same application as the instant messaging application that obtained the first message.
[0160] S703, obtaining the application unique identification code through the monitoring service.
[0161] It is understandable that the application unique identification code may be the package name information of the application installation package. Thus, it is possible to accurately determine whether the application switched to the foreground display is the instant messaging application that obtains the first message.
[0162] S704, searching for the package name according to the application unique identification code through the package management service.
[0163] It can be understood that the package manager service (PMS) can be a system service of the application framework layer, which is used to retrieve classes of various information related to the application and the packages currently installed on the electronic device 100. Therefore, the electronic device 100 can retrieve the corresponding package name, that is, the package name of the application switched to the foreground, by inputting the application unique identification code into the package management service.
[0164] S705, obtaining relevant parameters of the first message obtained within 2 seconds after the foreground and background switching event, and determining the application that obtains the first message.
[0165] Exemplarily, the electronic device 100 uses the instant messaging message acquired within 2 seconds after the foreground and background switching event as the first message, and determines the instant messaging application for acquiring the first message according to relevant parameters of the first message.
[0166] In some embodiments, the electronic device 100 may select an application that occupies a relatively large proportion of the running memory as a candidate application for the instant messaging application for obtaining the first message. TMThe two instant messaging applications that occupy the largest running memory within 2 seconds of the foreground-background switching event are retrieved as the applications to be compared, or the instant messaging applications that occupy a running memory ratio greater than a preset ratio can be used as the applications to be compared. And through step S706 below, the instant messaging application that switches from the background to the foreground and obtains the first message is determined from the two applications to be compared based on the package name.
[0167] S706, determine whether the application with the found package name is the application that obtains the first message within less than 2 seconds after the foreground switching operation. If the package name is consistent with the application that obtains the first message within 2 seconds of the foreground switching operation, the following step S707 can be executed to add a first identifier to the first message. If the package name is inconsistent with the application that obtains the first message within 2 seconds of the foreground switching operation, end this process.
[0168] It can be understood that when the electronic device 100 finds through the package management service that the application with the package name is the instant messaging application that obtains the first message within less than 2 seconds after switching the foreground and background operations, it can be determined that the application switched to the foreground is the instant messaging application that obtains the first message. At this time, the first message can be used as the instant messaging message pushed in the switching to the foreground scenario.
[0169] S707 , add a first identifier to the relevant parameters of the first message, and forward the relevant parameters of the first message with the first identifier added to SystemUI 443 .
[0170] It can be understood that in order to facilitate SystemUI 443 to identify that the delayed business scenario of the first message is the scenario of obtaining an instant messaging message after switching the foreground and background events, the electronic device 100 can use the first identifier to mark the relevant parameters of the first message through the notification management service 432, and forward the relevant parameters of the first message to SystemUI 443, so that SystemUI 443 can further retrieve the associated configuration items from the system configuration item library based on the relevant parameters of the first message, the application that obtains the first message, and the delay scenario, and obtain the current status of all associated configuration items. This improves the accuracy of obtaining system configuration and provides users with more accurate message delay cause analysis results.
[0171] Combine the following Figure 8 The specific implementation of steps S510 to S512 in the above text is described in detail.
[0172] Figure 8According to an embodiment of the present application, a flow chart of a method for adding a second mark to a screen-on scene is shown. It can be understood that the time difference between the time of obtaining the second message and the time of the screen-on scene can be checked to see whether it meets the preset time threshold (for example, the time difference between the two is less than or equal to 2 seconds) to determine whether the second message is an instant messaging message pushed in the screen-on scene, and then accurately add a second identifier to the relevant parameters of the second message. The second identifier can be used to characterize a delayed business scenario for obtaining an instant messaging message after a screen-on event. This avoids incorrectly adding identification information corresponding to the scene.
[0173] Understandably, Figure 8 The execution entity of each step of the illustrated process may be the electronic device 100, and the execution entity of a single step will not be described in detail.
[0174] like Figure 8 As shown, the interaction process includes the following steps:
[0175] S801, register a monitoring service in the notification management service 432 to monitor foreground and background switching events and screen light events.
[0176] It can be understood that the above step S801 can refer to the specific implementation of step S501 above, which will not be described in detail here.
[0177] S802, whether a screen-lit broadcast is monitored from the activity management service 431. If a screen-lit broadcast is monitored, the following steps S803 and S804 are executed to determine whether the acquired second message meets the condition of being obtained within 2 seconds after the screen-lit broadcast. If no screen-lit broadcast is monitored, this process is terminated.
[0178] It can be understood that if the second message is obtained within 2 seconds after the screen is broadcast, it can be determined that the second message is an instant messaging message obtained after the screen is turned on, and the status of the associated configuration items of the second message can be accurately obtained based on the screen-on scenario.
[0179] S803, update the current screen-on timestamp.
[0180] It can be understood that when a screen-on event is obtained, the electronic device 100 can use the current screen-on timestamp to replace the historical screen-on timestamp to complete the update process of the current screen-on event stamp and record the current screen-on time.
[0181] S804: Determine the current system time when the second message is obtained.
[0182] It can be understood that when the electronic device 100 obtains the second message, the current system time when the second message is obtained can be recorded to facilitate further determination of whether the second message is an instant messaging message obtained within 2 seconds after the screen is broadcast.
[0183] S805, determine whether the second message is an instant messaging message obtained within 2 seconds after the screen is lit up. If the second message is obtained within 2 seconds after the screen is lit up, execute step S806 below to add a second identifier to the second message. If the second message is not obtained within 2 seconds after the screen is lit up, end this process.
[0184] It can be understood that if it is determined that the second message is an instant messaging message obtained within 2 seconds after the screen is turned on, it can be determined whether the second message is an instant messaging message pushed in the screen-on scenario by checking whether the acquisition time of the second message is consistent with the screen-on time, and then the second identifier is accurately added to the second message. The second identifier can be used to characterize the delayed business scenario of obtaining instant messaging messages after the screen-on event. This avoids incorrectly adding the identifier information corresponding to the scenario.
[0185] S806 , adding a second identifier to the relevant parameters of the second message, and forwarding the relevant parameters of the second message after the second identifier is added to SystemUI 443 .
[0186] It can be understood that the above step S806 can refer to the specific implementation of step S707 above, which will not be described in detail here.
[0187] Combine the following Fig. 9 The specific implementation of steps S509 and S517 in the above text is described in detail.
[0188] Fig. 9 According to an embodiment of the present application, a schematic flow chart of a method for reporting associated configuration items by scenario is shown. It can be understood that by reporting the status of associated configuration items in different delayed business scenarios (such as foreground and background switching scenarios or screen-on scenarios) to the cloud, it can help users intuitively determine whether the status of associated configuration items will cause instant messaging message delays, making the user's analysis of the causes of instant messaging delays more comprehensive and accurate.
[0189] Understandably, Fig. 9 The execution entity of each step of the illustrated process may be the electronic device 100, and the execution entity of a single step will not be described in detail.
[0190] S901, receiving an instant messaging message.
[0191] It can be understood that the instant messaging message can be the first message or the second message. Different delayed business scenarios can be distinguished through the following steps S902 and S903, and then the status of associated configuration items can be collected for different scenarios to accurately analyze the impact of different status of associated configuration items in different scenarios on instant messaging message push.
[0192] S902, determine whether the message is obtained in the screen-on scenario. If the instant messaging message is obtained in the screen-on scenario, then execute the subsequent S904 and S905, separately collect the status of the associated configuration items and report to the cloud 450. If the instant messaging message is obtained in the switching front-end and back-end scenario, then execute the subsequent S906 and S907, separately collect the status of the associated configuration items and report to the cloud 450.
[0193] It can be understood that the above step S902 can refer to the specific implementation process of steps S801 to S806 above, which will not be repeated here.
[0194] S903, determining whether a message is obtained in the switching foreground scenario.
[0195] It can be understood that the above step S903 can refer to the specific implementation process of steps S701 to S707 above, which will not be repeated here.
[0196] S904, obtaining the status of the related configuration items from the system manager, the power saving wizard, and iAware.
[0197] In some embodiments, the electronic device 100 can be controlled from the system manager TM The switch value of the traffic saving mode, the switch value of the application's self-starting, the switch value of the application's associated startup, the switch value of the application's background activity, the switch value of the application's battery optimization, whether to start the low power mode, and the switch value of always keeping the network connection when sleeping are obtained; the electronic device 100 can also obtain the power saving wizard TM and iAware TM The application memory usage ratio and application package name information are obtained. The switch value of each item in the above-mentioned associated configuration items, the resource usage of the application receiving the instant messaging message, and the delayed business scenario are provided to the user. After determining the delayed business scenario, the user can intuitively determine whether the status of the associated configuration items will cause the instant messaging message delay.
[0198] S905, call the management interface to report to the cloud 450.
[0199] It can be understood that the above step S905 can refer to the specific implementation process of step S509 above, which will not be repeated here.
[0200] S906, obtaining the status of the related configuration items from the system manager, the power saving wizard, and the iAware.
[0201] It can be understood that the above step S906 can refer to the specific implementation process of step S904 above, which will not be repeated here.
[0202] S907, call the management interface to report to the cloud 450.
[0203] It can be understood that the above step S907 can refer to the specific implementation process of step S517 above, which will not be repeated here.
[0204] Combine the following Fig.10 The hardware structure of an electronic device according to an embodiment of the present application is described in detail.
[0205] Fig.10 According to an embodiment of the present application, a hardware structure diagram of an electronic device 100 is shown.
[0206] like Fig.10 As shown, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0207] It is understandable that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown, or combine certain components, or separate certain components, or arrange the components differently, which is not limited here.
[0208] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, etc. Among them, different processing units may be independent devices or integrated into one or more processors.
[0209] In some embodiments, the controller generates an operation control signal based on the instruction opcode and timing signal of the processor 110 to complete the control of instruction fetching and instruction execution to execute the data processing method provided in the embodiments of the present application.
[0210] In some embodiments, the processor 110 may include one or more interfaces. In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc. Among them, the USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transmit data between the electronic device 100 and peripheral devices.
[0211] In some embodiments, the processor 110 may include multiple I2C bus interfaces. The processor 110 may be coupled to the acceleration sensor 180E, the charger, the flash, the camera 193, etc. through different I2C bus interfaces.
[0212] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0213] In some embodiments, the processor 110 may include one or more interfaces. The interface may include a universal serial bus (USB) interface, etc. Among them, the USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transmit data between the electronic device 100 and a peripheral device.
[0214] The charging management module 140 is used to receive charging input from the charger. The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 to power the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160.
[0215] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0216] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antennas.
[0217] The mobile communication module 150 may provide solutions for wireless communications including 2G / 3G / 4G / 5G etc. applied to the electronic device 100. The modem processor may include a modulator and a demodulator.
[0218] The wireless communication module 160 can provide wireless communication solutions for application in the electronic device 100, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication technology (NFC), infrared technology (IR), etc.
[0219] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, so that electronic device 100 can communicate with the network and other devices through wireless communication technology.
[0220] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor, etc. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor.
[0221] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light emitting diode or an active-matrix organic light emitting diode (AMOLED), a flexible light-emitting diode (FLED), Mini-LED, Micro-LED, Micro-OLED, quantum dot light-emitting diodes (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
[0222] The electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.
[0223] The ISP is used to process the data fed back by the camera 193. For example, when taking a photo or shooting a video, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converts it into an image visible to the naked eye. The ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. The ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP can be set in the camera 193.
[0224] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
[0225] Video codecs are used to compress or decompress digital video.
[0226] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100 .
[0227] The internal memory 121 can be used to store computer executable program codes, which include instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the data storage area can store data created during the use of the electronic device 100 (such as video data obtained by shooting, etc.). In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, etc. The processor 110 executes various functional applications and data processing methods of the electronic device 100 by running instructions stored in the internal memory 121 and / or instructions stored in a memory provided in the processor.
[0228] In some embodiments, the internal memory 121 may store a system configuration item library, thereby facilitating configuration of an interface for obtaining an application to call the system configuration item library, obtain the real-time status of associated configuration items, and analyze the cause of instant messaging application message delays.
[0229] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0230] The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be disposed on the display screen 194 .
[0231] There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. Capacitive pressure sensors can be at least two parallel plates with conductive materials. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure based on the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the intensity of the touch operation based on the pressure sensor 180A. The electronic device 100 can also calculate the position of the touch based on the detection signal of the pressure sensor 180A.
[0232] The gyro sensor 180B may be used to determine the motion posture of the electronic device 100 .
[0233] The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
[0234] The magnetic sensor 180D includes a Hall sensor, and the electronic device 100 can detect the opening and closing of the flip leather case by using the magnetic sensor 180D.
[0235] The acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in all directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device and is applied to applications such as horizontal and vertical screen switching and pedometers.
[0236] The distance sensor 180F is used to measure the distance. The electronic device 100 can measure the distance by infrared or laser.
[0237] The proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector.
[0238] The ambient light sensor 180L is used to sense the brightness of ambient light.
[0239] The fingerprint sensor 180H is used to collect fingerprints.
[0240] The temperature sensor 180J is used to detect temperature. In some embodiments, the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 reduces the performance of a processor located near the temperature sensor 180J to reduce power consumption and implement thermal protection.
[0241] The touch sensor 180K is also called a "touch panel". The touch sensor 180K can be set on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also called a "touch screen". The touch sensor 180K is used to detect a touch operation acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194.
[0242] References to "one embodiment" or "an embodiment" in the specification mean that the specific features, structures, or characteristics described in conjunction with the embodiment are included in at least one exemplary implementation or technology disclosed according to the embodiment of the present application. The appearance of the phrase "in one embodiment" in various places in the specification does not necessarily all refer to the same embodiment.
[0243] The disclosure of the embodiment of the present application also relates to an operating device for executing the text. The device can be specially constructed for the required purpose or it can include a general-purpose computer selectively activated or reconfigured by a computer program stored in the computer. Such a computer program can be stored in a computer-readable medium, such as, but not limited to any type of disk, including a floppy disk, an optical disk, a CD-ROM, a magneto-optical disk, a read-only memory (ROM), a random access memory (RAM), an EPROM, an EEPROM, a magnetic or optical card, an application-specific integrated circuit (ASIC) or any type of medium suitable for storing electronic instructions, and each can be coupled to a computer system bus. In addition, the computer mentioned in the specification may include a single processor or may be an architecture involving multiple processors for increased computing power.
[0244] In addition, the language used in this specification has been primarily selected for readability and instructional purposes and may not be selected to describe or limit the disclosed subject matter. Therefore, the present application embodiment disclosure is intended to illustrate rather than limit the scope of the concepts discussed herein.
Claims
1. A data processing method, characterized in that: Applicable to a first electronic device, comprising: A first query operation is detected; In response to the first query operation, a first record of a first instant messaging application installed on the first electronic device is obtained and displayed, wherein: The first record includes historical status information of configuration items related to message push delay when a message push delay occurs in the first scenario history corresponding to a message of the first instant messaging application, the configuration items including system configuration items of the first electronic device and application configuration items of the first instant messaging application, The first scenario is a scenario in which the first instant messaging application disconnects from the server, reestablishes a network connection with the server, and synchronizes a first message with the server. The message push delay indicates that the time difference between the time when the server receives the first message and the time when the first instant messaging application receives the first message is greater than a preset time threshold.
2. The method according to claim 1, characterized in that The first record also includes a default state of the configuration item and a recommended state for a message push delay situation of the first instant messaging application.
3. The method according to claim 1, characterized in that: The historical status information of the configuration items related to the message push delay is obtained by: The first electronic device receives the first message in a first scenario; Corresponding to a case where the first message includes at least one instant messaging message received by the first instant messaging application, collecting state information of the configuration item when the first electronic device receives the first message, wherein the first scenario is used to indicate a scenario that can cause a delay in pushing an instant messaging message; The collected status information is used as the historical status information of the configuration item corresponding to the first message.
4. The method according to claim 3, characterized in that The first scenario includes: The screen of the first electronic device is switched from off to on; or, The first application installed in the first electronic device is switched from the background to the foreground.
5. The method according to claim 4, characterized in that The collecting of the state information of the configuration item when the first electronic device receives the first message corresponding to at least one instant messaging message received by the first instant messaging application included in the first message includes: Corresponding to the first scenario that a first application installed in the first electronic device is switched from the background to the foreground, the application unique identification code of the first application is matched with the package names of multiple second applications, wherein the multiple second applications are instant messaging applications whose current resource occupancy rate is greater than a preset occupancy rate; In the case where there is an application in the multiple second applications that matches the application unique identification code of the first application, the state information of the configuration item when the first electronic device receives the first message is collected.
6. The method according to claim 4, characterized in that The collecting of the state information of the configuration item when the first electronic device receives the first message corresponding to at least one instant messaging message received by the first instant messaging application included in the first message includes: Corresponding to the first scenario that the screen of the first electronic device switches from off to on, obtaining a first time when the screen switches from off to on; In a case where a time difference between a second time of receiving the at least one instant communication message and the first time is less than a first time threshold, state information of the configuration item when the first electronic device receives the first message is collected.
7. The method according to claim 4, characterized in that After collecting the state information of the configuration item when the first electronic device receives the first message, the method further includes: Corresponding to the first scenario that the first application installed in the first electronic device switches from the background to the foreground, a first identifier is added to the collected state information of the configuration item; Corresponding to the first scenario, the screen of the first electronic device switches from off to on, and a second identifier is added to the collected status information of the configuration item.
8. The method according to claim 1, characterized in that The first electronic device also has a second application installed therein, and, The detecting of the first query operation comprises: The second application detects an operation of a user inquiring about a solution to the delay in pushing messages of the first instant messaging application.
9. The method according to claim 8, characterized in that In response to the first query operation, acquiring and displaying a first record of a first instant messaging application installed on the first electronic device includes: In response to a user query for a solution to the delay in pushing messages to the first instant messaging application, the second application obtains and displays the first record.
10. The method according to claim 1, characterized in that The configuration items include at least one of the following configuration items: a power configuration item, a network configuration item, an application permission, an application setting, and a notification configuration item.
11. An electronic device, characterized in that: include: one or more processors; One or more memories; the one or more memories store one or more programs, and when the one or more programs are executed by the one or more processors, the electronic device executes the data processing method described in any one of claims 1 to 10.
12. A computer-readable storage medium, characterized in that: The storage medium stores instructions, which, when executed on a computer, cause the computer to execute the data processing method according to any one of claims 1 to 10.
