WO2018010507A1 - Awakening monitoring method of terminal system, storage medium, terminal, and electronic device - Google Patents
Awakening monitoring method of terminal system, storage medium, terminal, and electronic device Download PDFInfo
- Publication number
- WO2018010507A1 WO2018010507A1 PCT/CN2017/087625 CN2017087625W WO2018010507A1 WO 2018010507 A1 WO2018010507 A1 WO 2018010507A1 CN 2017087625 W CN2017087625 W CN 2017087625W WO 2018010507 A1 WO2018010507 A1 WO 2018010507A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- application
- wake
- data packet
- terminal system
- terminal
- Prior art date
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3234—Power saving characterised by the action undertaken
- G06F1/329—Power saving characterised by the action undertaken by task scheduling
Definitions
- the embodiments of the present invention relate to the field of communications technologies, and in particular, to a wakeup monitoring method, a storage medium, a terminal, and an electronic device of a terminal system.
- the application can wake up the terminal system by: wake-up by the data packet, that is, the application pushes the data packet through the application server to wake up the terminal system.
- the embodiment of the invention provides a wake-up monitoring method for a terminal system, a storage medium, a terminal, and an electronic device, which can monitor and report an abnormal application program that frequently wakes up the terminal system through the data packet, thereby reducing power consumption of the terminal.
- the embodiment of the present invention provides a storage medium, including a computer program, which is implemented by the processor, and implements the steps in the wake-up monitoring method of the terminal system provided by the embodiment of the present invention.
- a detecting module configured to detect whether the terminal system is awakened by the application by the data packet
- a statistic module configured to: when detecting that the terminal system is awake by the application by the data packet, the waking frequency of the terminal system being awake by the application program through the data packet;
- a determining module configured to determine whether the wake-up frequency is greater than a preset frequency threshold
- the reporting module is configured to report the application to the background management system when the wake-up frequency is greater than the preset frequency threshold.
- An embodiment of the present invention provides an electronic device including a memory, a processor, and a computer program stored in the memory and operable in the processor.
- the processor executes the computer program, the following steps are implemented. :
- the embodiment of the invention provides a wake-up monitoring method for a terminal system, a storage medium, a terminal, and an electronic device, which can monitor and report an abnormal application program that frequently wakes up the terminal system through the data packet, thereby reducing power consumption of the terminal.
- FIG. 1 is a schematic flowchart of a wakeup monitoring method of a terminal system according to an embodiment of the present invention.
- FIG. 2 is another schematic flowchart of a wakeup monitoring method of a terminal system according to an embodiment of the present invention.
- FIG. 3 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
- FIG. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
- FIG. 5 is another schematic structural diagram of an electronic device according to an embodiment of the present invention.
- TCP Transmission Control Protocol
- the embodiment of the invention provides a wake-up monitoring method for a terminal system, including:
- the step of detecting whether the terminal system is awakened by the application by the data packet may include:
- the method may further include:
- the step of reporting the application to the background management system may include: reporting the identification information of the application to the background management system.
- the step of acquiring the identifier information of the application that wakes up the terminal system may include:
- the identification information of the application holding the wakelock wakelock is removed from the identification information of all the applications read, and the identification information of the remaining applications is the identification information of the application waking up the terminal system.
- the step of acquiring the identifier information of the application that wakes up the terminal system may include:
- the step of reporting the identification information of the application to the background management system may include: reporting the user identifier of the application to the background management system.
- the step of counting the wake-up frequency of the terminal system by the application program to wake up by the data packet may include:
- the accumulated terminal duration and the wakeup cumulative number of the terminal system being awake by the application by the data packet are counted;
- the wake-up frequency is calculated according to the wake-up accumulation duration and the wake-up accumulation count.
- the step of counting the wake-up frequency of the terminal system by the application program to wake up by the data packet may include:
- the statistic terminal system is accumulated by the application through the wakeup of the data packet;
- the wake-up frequency is calculated according to the second preset duration and the wake-up cumulative number.
- the wake-up monitoring method of the terminal system provided by the embodiment of the present invention can be applied to a terminal, and the terminal includes, but is not limited to, an electronic device such as a mobile phone or a tablet computer.
- the wakeup monitoring method of the terminal system includes the following steps:
- Step 101 Detect whether the terminal system is woken up by the application by the data packet. If yes, execute step 102, otherwise, the processing ends.
- the wake-up mode of the application wake-up terminal system is two, the wake-up of the data packet and the wake-up by the alarm alarm are used.
- the Uevent can be added to the kernel of the terminal for the monitoring application to wake up the wake-up mode of the terminal system through the data packet.
- the driver node wakeup_reasons after the terminal enters the sleep state, uses the drive node wakeup_reasons to record the information that the terminal system is awakened by the application through the data packet, and the recorded information may be a numerical value flag, for example, if the terminal system is not monitored by the application program. When the data packet wakes up, the value is marked as 0.
- the value flag is updated to a value other than 0, for example, 1 or the like, which is not specifically limited herein. Therefore, in this step, it is possible to determine whether the terminal system is awake by the application through the data packet by detecting whether the value of the drive node wakeup_reasons changes.
- Step 102 Count a wake-up frequency of the terminal system being awakened by the application by a data packet.
- the wake-up frequency can be determined by the wake-up duration and the number of wake-ups.
- Step 103 Determine whether the wake-up frequency is greater than a preset frequency threshold. If it is greater, perform step 104, otherwise end the process.
- the preset frequency threshold can be set according to actual requirements. If the wake-up frequency is greater than the preset frequency threshold, the application frequently wakes up the terminal system through the data packet, and the application is an abnormal application.
- Step 104 Report the application to the background management system.
- the background management system may be a daemon, a background operation system, etc., after the application is reported to the background management system, the background management system may uninstall the application, or set a packet wakeup for the application. Restrictions, etc., to save power consumption of the terminal and ensure the normal use of the user.
- the wake-up frequency of the terminal system being awake by the application program through the data packet is counted. If the wakeup frequency is greater than the preset frequency threshold, the application is reported to the background management system.
- the background management system can timely discover the abnormal application of the terminal system through the data packet and process it according to the report of the terminal, thereby reducing the power consumption of the terminal and ensuring the normal use of the user.
- the wakeup monitoring method of the terminal system may include the following steps:
- Step 201 Detect whether the terminal system is woken up by the application by the data packet. If yes, execute step 202, otherwise, the processing ends.
- the wake-up mode of the application wake-up terminal system is two, the wake-up of the data packet and the wake-up by the alarm alarm are used.
- the Uevent can be added to the kernel of the terminal for the monitoring application to wake up the wake-up mode of the terminal system through the data packet.
- the driver node wakeup_reasons after the terminal enters the sleep state, uses the drive node wakeup_reasons to record the information that the terminal system is awakened by the application through the data packet, and the recorded information may be a numerical value flag, for example, if the terminal system is not monitored by the application program. When the data packet wakes up, the value is marked as 0.
- the value flag is updated to a value other than 0, for example, 1 or the like, which is not specifically limited herein. Therefore, in this step, it is possible to determine whether the terminal system is awake by the application through the data packet by detecting whether the value of the drive node wakeup_reasons changes.
- Step 202 Read, by using a traffic statistics interface, identifier information of an application whose traffic is increased within a first preset duration before detecting that the terminal system is awake by the application packet.
- the identification information of the application may be a User IDentity (UID) of the application.
- UIDs can be used to uniquely identify an application.
- step 201 It is detected in step 201 that the terminal system is awake by the application through the packet, but does not know which application is actually awake. Therefore, in step 202, the specific application for waking up the terminal system through the packet is determined.
- the traffic statistics interface can be read to detect that the terminal system is passed by the application.
- the traffic has an identification information of the application, and the first preset duration may be 1 second, 2 seconds, etc., and may be set according to actual requirements.
- Step 203 Remove the identifier information of the application that holds the wakelock wakelock operation, and the identifier information of the remaining application is the identifier information of the application that wakes up the terminal system.
- the terminal system is woken up by the application, if the application holds the wakelock wakelock, the application is allowed to continue to work.
- the wakeup is usually considered as a normal wakeup. Therefore, in this embodiment, it is necessary to remove the identification information of the application holding the wakelock wakelock operation in the identification information of the application whose all traffic has been read, and the identification information of the remaining application is the record to be recorded by the invention. Awakening the identification information of the application of the terminal system.
- Step 204 Count the wake-up frequency of the terminal system being awake by the application by the data packet.
- the wake-up frequency of the wake-up by the application program by the application program may be counted within a second preset duration after the terminal system is detected by the application program to wake up by the data packet, and the second preset duration is It can be set according to actual statistical requirements, for example, set to four hours, eight hours, etc., and is not specifically limited herein.
- the wakeup cumulative duration and the wakeup cumulative number that the application system wakes up by the application packet in the second preset duration may be counted, and the wakeup frequency is calculated according to the wakeup cumulative duration and the wakeup cumulative number.
- the method of counting the cumulative duration of wakeup can be as follows:
- a timer can be set for each application, and the timer of each application is cleared before starting the statistics.
- the timer of the application corresponding to the identifier information is started to record the wake-up duration.
- the terminal system After the terminal system wakes up once by the application, the terminal system accumulates a wake-up duration, and after reaching the second preset duration, reads the application.
- the timer value corresponding to the program that is, the cumulative duration of wakeup corresponding to the application.
- the method of counting the cumulative number of wakeups can be as follows:
- a counter can be set for each application, and the counter of each application is cleared before starting the statistics.
- the counter of the application corresponding to the identifier information is incremented by one.
- the terminal system adds one to the counter, and after reaching the second preset duration, reads the corresponding program.
- the counter value that is, the cumulative number of wakeups corresponding to the application.
- the wakeup accumulation duration of the application may not be counted, and the wakeup cumulative number in the second preset duration may be directly counted, and the wakeup frequency may be calculated according to the second preset duration and the wakeup cumulative number, where No specific restrictions.
- the step of counting the wake-up frequency of the terminal system by the application program to wake up by the data packet in step 204 may also include:
- the statistic terminal system is accumulated by the application through the wakeup of the data packet;
- the wake-up frequency is calculated according to the second preset duration and the wake-up cumulative number.
- Step 205 Determine whether the wake-up frequency is greater than a preset frequency threshold. If it is greater, perform step 206, otherwise end the process.
- the preset frequency threshold may be set according to actual data such as the second preset duration. If the wakeup frequency is greater than the preset frequency threshold, the application frequently wakes up the terminal system through the data packet, and the application is an abnormal application.
- Step 206 Report the identification information of the application to the background management system.
- the background management system may be a daemon, a background operation system, etc., after the application is reported to the background management system, the background management system may uninstall the application, or set a packet wakeup for the application. Restrictions, etc., to save power consumption of the terminal and ensure the normal use of the user.
- the wake-up frequency of the terminal system being awake by the application program through the data packet is counted. If the wakeup frequency is greater than the preset frequency threshold, the application is reported to the background management system.
- the background management system can timely discover the abnormal application of the terminal system through the data packet and process it according to the report of the terminal, thereby reducing the power consumption of the terminal and ensuring the normal use of the user.
- the embodiment of the present invention further provides a terminal.
- the terminal in this embodiment may include:
- the detecting module 301 is configured to detect whether the terminal system is woken up by the application by the data packet.
- the statistic module 302 is configured to count, when the terminal system is awake by the application by the data packet, the wake-up frequency of the terminal system being awake by the application program through the data packet.
- the determining module 303 is configured to determine whether the wake-up frequency is greater than a preset frequency threshold.
- the reporting module 304 is configured to report the application to the background management system when the wake-up frequency is greater than the preset frequency threshold.
- the detecting module 301 can include:
- the detecting submodule is configured to detect, by using the listening interface, whether the value of the driving node used to listen to the wakeup of the terminal system by the application packet changes.
- a determining submodule configured to determine, when the detecting submodule detects that the value of the driving node changes, to determine that the terminal system is woken up by the application by the data packet.
- the terminal may further include:
- an obtaining module configured to acquire identification information of the application that wakes up the terminal system.
- the reporting module 304 is configured to report the identification information of the application to the background management system.
- the obtaining module may be configured to: obtain a user identifier of the application that wakes up the terminal system.
- the reporting module 304 can be configured to: report the user identifier of the application to the background management system.
- the obtaining module may include:
- the reading sub-module is configured to read, by using the traffic statistics interface, identifier information of an application whose traffic has increased within a first preset duration before detecting that the terminal system is woken up by the application packet.
- removing the submodule configured to remove, in the identification information of all the applications that are read, the identification information of the application that holds the wakelock wakelock work, and the identifier information of the remaining applications is the application that wakes up the terminal system Identification information.
- the statistics module 302 can include:
- the statistic sub-module is configured to count the accumulated wake-up duration and the wake-up cumulative number of the terminal system by the application wake-up by the application, after detecting that the terminal system is awake by the application by the data packet.
- a calculating submodule configured to calculate the wakeup frequency according to the wakeup cumulative duration and the wakeup cumulative number.
- the statistics module 302 can also be used to:
- the statistic terminal system is accumulated by the application through the wakeup of the data packet;
- the wake-up frequency is calculated according to the second preset duration and the wake-up cumulative number.
- the detecting module may detect whether the terminal system is awake by the application program through the data packet, and once detecting that the terminal system is awake by the application program through the data packet, the statistic module counts the wake-up frequency of the terminal system being awake by the application program through the data packet. . If the determining module determines that the wake-up frequency is greater than the preset frequency threshold, the reporting module reports the application to the background management system. The background management system can timely discover the abnormal application of the terminal system through the data packet and process it according to the report of the terminal, thereby reducing the power consumption of the terminal and ensuring the normal use of the user.
- the embodiment of the present invention provides a computer readable storage medium, including a computer program.
- the computer program When the computer program is loaded and executed by a processor, the steps in the wakeup monitoring method of the terminal system provided by the embodiment of the present invention may be implemented.
- An embodiment of the present invention further provides an electronic device, including a memory, a processor, and a computer program stored in the memory and operable in the processor, where the processor can implement the computer program The steps in the wakeup monitoring method of the terminal system provided by the embodiment of the invention.
- the electronic device can be a mobile terminal device such as a smartphone or tablet.
- FIG. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
- the electronic device 400 can include components such as a memory 401, a processor 402, and a modem module 403. It will be understood by those skilled in the art that the electronic device structure illustrated in FIG. 4 does not constitute a limitation to the electronic device, and may include more or less components than those illustrated, or a combination of certain components, or different component arrangements.
- Memory 401 can be used to store applications and data.
- the application stored in the memory 401 contains executable code.
- Applications can form various functional modules.
- the processor 402 executes various functional applications and data processing by running an application stored in the memory 401.
- the processor 402 is a control center of the electronic device, and connects various parts of the entire electronic device using various interfaces and lines, executes the electronic device by running or executing an application stored in the memory 401, and calling data stored in the memory 401.
- the various functions and processing of data to provide overall monitoring of the electronic device.
- the modem module 403 is for converting binary digital information into an analog signal that can be transmitted through a common public information system, or converting the received analog signal into a digital signal.
- the above functions can be implemented by a dedicated modem.
- the processor 402 in the electronic device loads the executable code corresponding to the process of one or more applications into the memory 401 according to the following instructions, and is executed by the processor 402 to be stored in the memory.
- the application in 401 thus implementing the steps:
- the processor 402 when the processor 402 performs the step of detecting whether the electronic device system is awake by the application through the data packet, the following steps may be performed:
- the processor 402 may further perform the step of: acquiring identification information of the application that wakes up the electronic device system. .
- the processor 402 may perform the following steps: reporting the identification information of the application to the background management system.
- the processor 402 when performing the step of acquiring the identification information of the application that wakes up the electronic device system, the processor 402 may perform the following steps:
- the identification information of the application holding the wake lock wakelock is removed from the identification information of all the applications read, and the identification information of the remaining applications is the identification information of the application waking up the electronic device system.
- the processor 402 when performing the step of acquiring the identification information of the application that wakes up the electronic device system, may perform the following steps: acquiring the application that wakes up the electronic device system User identifier
- the processor 402 may perform the following steps: reporting the user identifier of the application to the background management system.
- the processor 402 when the processor 402 performs the step of counting the wake-up frequency of the electronic device system being waking up by the application by the data packet, the following steps may be performed:
- the accumulated accumulated duration of the wake-up of the electronic device system by the application packet wake-up and the cumulative number of wake-up times are detected;
- the wake-up frequency is calculated according to the wake-up accumulation duration and the wake-up accumulation count.
- the processor 402 when the processor 402 performs the step of counting the wake-up frequency of the electronic device system being waking up by the application by the data packet, the following steps may be performed:
- the cumulative number of wakeups that the electronic device system is awake by the application through the data packet is counted;
- the wake-up frequency is calculated according to the second preset duration and the wake-up cumulative number.
- FIG. 5 is another schematic structural diagram of an electronic device according to an embodiment of the present invention.
- the electronic device 400 may further include a radio frequency (RF, Radio) Frequency circuit 404, input unit 405, and output unit 406.
- RF radio frequency
- the radio frequency circuit 404 can be used for transmitting and receiving information, or receiving and transmitting signals during a call. Specifically, after receiving the downlink information of the base station, the downlink information is processed by one or more processors 402. In addition, the data related to the uplink is sent to the base station. .
- the input unit 405 can be configured to receive input digits, character information, or user characteristic information (such as fingerprints), and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function controls.
- the input unit 405 can include a touch-sensitive surface as well as other input devices. Touch-sensitive surfaces, also known as touch screens or trackpads.
- the output unit 406 can be used to display information entered by the user or information provided to the user as well as various graphical user interfaces of the mobile terminal, which can be composed of graphics, text, icons, video, and any combination thereof.
- output unit 406 can be a display panel.
- the electronic device may further include a camera, a Bluetooth module, a wireless fidelity module, and the like, and details are not described herein again.
- the division of the module is only a logical function division, and the actual implementation may have another division manner, for example, multiple modules or components may be combined or may be Integrate into another system, or some features can be ignored or not executed.
- the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
- the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
- each functional module in each embodiment of the present invention may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.
- the above integrated modules can be implemented in the form of hardware or in the form of software functional modules.
- the integrated modules, if implemented in the form of software functional modules and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, or all or part of the technical solution, may be embodied in the form of a software product stored in a storage medium.
- a number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
- the foregoing storage medium includes: a U disk, a mobile hard disk, a read only memory (ROM, Read-Only) Memory, random access memory (RAM), disk or optical disk, and other media that can store program code.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Telephonic Communication Services (AREA)
- Telephone Function (AREA)
Abstract
Disclosed are an awakening monitoring method of a terminal system, a storage medium, a terminal, and an electronic device. The awakening monitoring method of a terminal system comprises: detecting whether the terminal system is awakened by an application by means of a data packet; if yes, counting the awakening frequency of the terminal system awakened by the application by means of data packets; determining whether the awakening frequency is greater than a preset frequency threshold; and if yes, reporting the application to a background management system.
Description
本发明实施例涉及通信技术领域,尤其涉及一种终端系统的唤醒监控方法、存储介质、终端及电子设备。The embodiments of the present invention relate to the field of communications technologies, and in particular, to a wakeup monitoring method, a storage medium, a terminal, and an electronic device of a terminal system.
随着智能终端的发展,终端上可以安装的应用程序越来越多。目前,智能终端休眠后,应用程序可以通过如下方式来唤醒终端系统:通过数据包唤醒,即应用程序通过应用服务器推送数据包唤醒终端系统。With the development of intelligent terminals, more and more applications can be installed on the terminal. At present, after the smart terminal sleeps, the application can wake up the terminal system by: wake-up by the data packet, that is, the application pushes the data packet through the application server to wake up the terminal system.
本发明实施例提供一种终端系统的唤醒监控方法、存储介质、终端及电子设备,能够监控并上报通过数据包频繁唤醒终端系统的异常应用程序,降低终端的功耗。The embodiment of the invention provides a wake-up monitoring method for a terminal system, a storage medium, a terminal, and an electronic device, which can monitor and report an abnormal application program that frequently wakes up the terminal system through the data packet, thereby reducing power consumption of the terminal.
本发明实施例提供的终端系统的唤醒监控方法,包括:The wake-up monitoring method of the terminal system provided by the embodiment of the present invention includes:
检测终端系统是否被应用程序通过数据包唤醒;Detecting whether the terminal system is awakened by the application through the data packet;
若是,则统计所述终端系统被所述应用程序通过数据包唤醒的唤醒频率;If yes, counting the wake-up frequency of the terminal system being awake by the application through the data packet;
判断所述唤醒频率是否大于预设频率阈值;Determining whether the wake-up frequency is greater than a preset frequency threshold;
若是,则将所述应用程序上报给后台管理系统。If yes, the application is reported to the background management system.
本发明实施例提供一种存储介质,包括计算机程序,所述计算机程序被处理器加载并执行时,实现本发明实施例提供的终端系统的唤醒监控方法中的步骤。The embodiment of the present invention provides a storage medium, including a computer program, which is implemented by the processor, and implements the steps in the wake-up monitoring method of the terminal system provided by the embodiment of the present invention.
本发明实施例提供的终端,包括:The terminal provided by the embodiment of the present invention includes:
检测模块,用于检测终端系统是否被应用程序通过数据包唤醒;a detecting module, configured to detect whether the terminal system is awakened by the application by the data packet;
统计模块,用于在检测到终端系统被应用程序通过数据包唤醒时,统计所述终端系统被所述应用程序通过数据包唤醒的唤醒频率;a statistic module, configured to: when detecting that the terminal system is awake by the application by the data packet, the waking frequency of the terminal system being awake by the application program through the data packet;
判断模块,用于判断所述唤醒频率是否大于预设频率阈值;a determining module, configured to determine whether the wake-up frequency is greater than a preset frequency threshold;
上报模块,用于在所述唤醒频率大于预设频率阈值时,将所述应用程序上报给后台管理系统。The reporting module is configured to report the application to the background management system when the wake-up frequency is greater than the preset frequency threshold.
本发明实施例提供一种电子设备,包括存储器,处理器,以及存储在所述存储器中并可在所述处理器中运行的计算机程序,所述处理器执行所述计算机程序时,实现如下步骤:An embodiment of the present invention provides an electronic device including a memory, a processor, and a computer program stored in the memory and operable in the processor. When the processor executes the computer program, the following steps are implemented. :
检测电子设备系统是否被应用程序通过数据包唤醒;Detecting whether the electronic device system is awakened by the application through the data packet;
若是,则统计所述电子设备系统被所述应用程序通过数据包唤醒的唤醒频率;If yes, counting the wake-up frequency of the electronic device system being awake by the application through the data packet;
判断所述唤醒频率是否大于预设频率阈值;Determining whether the wake-up frequency is greater than a preset frequency threshold;
若是,则将所述应用程序上报给后台管理系统。If yes, the application is reported to the background management system.
本发明实施例提供一种终端系统的唤醒监控方法、存储介质、终端及电子设备,能够监控并上报通过数据包频繁唤醒终端系统的异常应用程序,降低终端的功耗。The embodiment of the invention provides a wake-up monitoring method for a terminal system, a storage medium, a terminal, and an electronic device, which can monitor and report an abnormal application program that frequently wakes up the terminal system through the data packet, thereby reducing power consumption of the terminal.
图1是本发明实施例提供的终端系统的唤醒监控方法的一个流程示意图。1 is a schematic flowchart of a wakeup monitoring method of a terminal system according to an embodiment of the present invention.
图2是本发明实施例提供的终端系统的唤醒监控方法的另一流程示意图。FIG. 2 is another schematic flowchart of a wakeup monitoring method of a terminal system according to an embodiment of the present invention.
图3是本发明实施例提供的终端的一个结构示意图。FIG. 3 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
图4是本发明实施例提供的电子设备的结构示意图。FIG. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
图5是本发明实施例提供的电子设备的另一结构示意图。FIG. 5 is another schematic structural diagram of an electronic device according to an embodiment of the present invention.
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域技术人员在没有付出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without any inventive effort are within the scope of the present invention.
目前,很多应用程序为了保持服务器与终端的传输控制协议(Transmission Control
Protocol,
TCP)长连接,会不断地发送数据包给终端,以唤醒终端系统。这将导致终端在休眠的时候出现耗电异常,如果这些应用程序无法被及时发现及处理,将导致终端续航时间变短、续航能力变差,影响用户的正常使用。Currently, many applications maintain the transmission control protocol between the server and the terminal (Transmission Control).
Protocol,
TCP) Long connection, will continuously send data packets to the terminal to wake up the terminal system. This will cause the terminal to experience power consumption abnormality during sleep. If these applications cannot be detected and processed in time, the terminal life will be shortened and the endurance will be deteriorated, which will affect the normal use of the user.
本发明实施例提供一种终端系统的唤醒监控方法,包括:The embodiment of the invention provides a wake-up monitoring method for a terminal system, including:
检测终端系统是否被应用程序通过数据包唤醒;Detecting whether the terminal system is awakened by the application through the data packet;
若是,则统计所述终端系统被所述应用程序通过数据包唤醒的唤醒频率;If yes, counting the wake-up frequency of the terminal system being awake by the application through the data packet;
判断所述唤醒频率是否大于预设频率阈值;Determining whether the wake-up frequency is greater than a preset frequency threshold;
若是,则将所述应用程序上报给后台管理系统。If yes, the application is reported to the background management system.
在一种实施方式中,所述检测终端系统是否被应用程序通过数据包唤醒的步骤,可以包括:In an embodiment, the step of detecting whether the terminal system is awakened by the application by the data packet may include:
通过监听接口检测用于监听终端系统被应用程序通过数据包唤醒的驱动节点的值是否发生变化;Detecting, by the listening interface, whether the value of the driving node used to listen to the wakeup of the terminal system by the application packet changes;
若发生变化,则确定终端系统被应用程序通过数据包唤醒。If a change occurs, it is determined that the terminal system is woken up by the application through the packet.
在一种实施方式中,在确定终端系统被应用程序通过数据包唤醒之后,还可以包括:In an embodiment, after determining that the terminal system is awake by the application by the data packet, the method may further include:
获取唤醒所述终端系统的所述应用程序的标识信息。Obtaining identification information of the application that wakes up the terminal system.
那么,所述将所述应用程序上报给后台管理系统的步骤,可以包括:将所述应用程序的标识信息上报给后台管理系统。Then, the step of reporting the application to the background management system may include: reporting the identification information of the application to the background management system.
在一种实施方式中,所述获取唤醒所述终端系统的所述应用程序的标识信息的步骤,可以包括:In an embodiment, the step of acquiring the identifier information of the application that wakes up the terminal system may include:
通过流量统计接口读取在检测到终端系统被应用程序通过数据包唤醒之前的第一预设时长内,流量有增加的应用程序的标识信息;Reading, by using the traffic statistics interface, identifier information of an application whose traffic has increased within a first preset duration before detecting that the terminal system is awake by the application packet;
在读取的所有应用程序的标识信息中去除持有唤醒锁wakelock工作的应用程序的标识信息,剩余的应用程序的标识信息为唤醒所述终端系统的所述应用程序的标识信息。The identification information of the application holding the wakelock wakelock is removed from the identification information of all the applications read, and the identification information of the remaining applications is the identification information of the application waking up the terminal system.
在一种实施方式中,所述获取唤醒所述终端系统的所述应用程序的标识信息的步骤,可以包括:In an embodiment, the step of acquiring the identifier information of the application that wakes up the terminal system may include:
获取唤醒所述终端系统的所述应用程序的用户标识符。Obtaining a user identifier of the application that wakes up the terminal system.
那么,所述将所述应用程序的标识信息上报给后台管理系统的步骤,可以包括:将所述应用程序的用户标识符上报给后台管理系统。Then, the step of reporting the identification information of the application to the background management system may include: reporting the user identifier of the application to the background management system.
在一种实施方式中,所述统计所述终端系统被所述应用程序通过数据包唤醒的唤醒频率的步骤,可以包括:In an embodiment, the step of counting the wake-up frequency of the terminal system by the application program to wake up by the data packet may include:
在检测到终端系统被应用程序通过数据包唤醒之后的第二预设时长内,统计终端系统被应用程序通过数据包唤醒的唤醒累积时长及唤醒累积次数;After detecting that the terminal system is awake by the application packet through the data packet, the accumulated terminal duration and the wakeup cumulative number of the terminal system being awake by the application by the data packet are counted;
根据所述唤醒累积时长及唤醒累积次数计算唤醒频率。The wake-up frequency is calculated according to the wake-up accumulation duration and the wake-up accumulation count.
在另一种实施方式中,所述统计所述终端系统被所述应用程序通过数据包唤醒的唤醒频率的步骤,可以包括:In another embodiment, the step of counting the wake-up frequency of the terminal system by the application program to wake up by the data packet may include:
在检测到终端系统被应用程序通过数据包唤醒之后的第二预设时长内,统计终端系统被应用程序通过数据包唤醒的唤醒累积次数;After detecting that the terminal system is awake by the application by the data packet, the statistic terminal system is accumulated by the application through the wakeup of the data packet;
根据所述第二预设时长和所述唤醒累积次数计算唤醒频率。The wake-up frequency is calculated according to the second preset duration and the wake-up cumulative number.
本发明实施例提供的终端系统的唤醒监控方法可以应用于终端中,终端包括但不限于手机、平板电脑等电子设备。The wake-up monitoring method of the terminal system provided by the embodiment of the present invention can be applied to a terminal, and the terminal includes, but is not limited to, an electronic device such as a mobile phone or a tablet computer.
如图1所示,本实施例提供的终端系统的唤醒监控方法包括如下步骤:As shown in FIG. 1, the wakeup monitoring method of the terminal system provided in this embodiment includes the following steps:
步骤101、检测终端系统是否被应用程序通过数据包唤醒,若是,则执行步骤102,否则结束处理。Step 101: Detect whether the terminal system is woken up by the application by the data packet. If yes, execute step 102, otherwise, the processing ends.
由于应用程序唤醒终端系统的唤醒方式有两种,通过数据包唤醒与通过闹钟alarm唤醒,本实施例中,为监控应用程序通过数据包唤醒终端系统的唤醒方式,可以在终端的内核中增加Uevent类型的驱动节点wakeup_reasons,在终端进入休眠状态后,利用驱动节点wakeup_reasons记录终端系统被应用程序通过数据包唤醒的信息,所记录的信息可以是一个数值标志,例如在没有监听到终端系统被应用程序通过数据包唤醒时,该数值标志为0,当监听到终端系统被应用程序通过数据包唤醒时,该数值标志更新为非0值,例如1等,此处不做具体限定。因而,在本步骤中,可以通过监听接口检测驱动节点wakeup_reasons的值是否发生变化来判断终端系统是否被应用程序通过数据包唤醒。Since the wake-up mode of the application wake-up terminal system is two, the wake-up of the data packet and the wake-up by the alarm alarm are used. In this embodiment, the Uevent can be added to the kernel of the terminal for the monitoring application to wake up the wake-up mode of the terminal system through the data packet. The driver node wakeup_reasons, after the terminal enters the sleep state, uses the drive node wakeup_reasons to record the information that the terminal system is awakened by the application through the data packet, and the recorded information may be a numerical value flag, for example, if the terminal system is not monitored by the application program. When the data packet wakes up, the value is marked as 0. When the terminal system is awake by the application through the data packet, the value flag is updated to a value other than 0, for example, 1 or the like, which is not specifically limited herein. Therefore, in this step, it is possible to determine whether the terminal system is awake by the application through the data packet by detecting whether the value of the drive node wakeup_reasons changes.
步骤102、统计所述终端系统被所述应用程序通过数据包唤醒的唤醒频率。Step 102: Count a wake-up frequency of the terminal system being awakened by the application by a data packet.
唤醒频率可以通过唤醒时长及唤醒次数来确定。The wake-up frequency can be determined by the wake-up duration and the number of wake-ups.
步骤103、判断所述唤醒频率是否大于预设频率阈值,若大于,则执行步骤104,否则结束处理。Step 103: Determine whether the wake-up frequency is greater than a preset frequency threshold. If it is greater, perform step 104, otherwise end the process.
预设频率阈值可根据实际需求进行设置,若唤醒频率大于预设频率阈值,则说明应用程序通过数据包频繁地唤醒了终端系统,该应用程序为异常应用程序。The preset frequency threshold can be set according to actual requirements. If the wake-up frequency is greater than the preset frequency threshold, the application frequently wakes up the terminal system through the data packet, and the application is an abnormal application.
步骤104、将所述应用程序上报给后台管理系统。Step 104: Report the application to the background management system.
在一种实施方式中,后台管理系统可以是守护精灵、后台运维系统等,将该应用程序上报给后台管理系统之后,后台管理系统可以卸载该应用程序,或者对该应用程序设置数据包唤醒限制等,以节省终端的功耗,保证用户的正常使用。In an embodiment, the background management system may be a daemon, a background operation system, etc., after the application is reported to the background management system, the background management system may uninstall the application, or set a packet wakeup for the application. Restrictions, etc., to save power consumption of the terminal and ensure the normal use of the user.
本实施例中,可以检测终端系统是否被应用程序通过数据包唤醒,一旦检测到终端系统被应用程序通过数据包唤醒,则统计终端系统被该应用程序通过数据包唤醒的唤醒频率。如果唤醒频率大于预设频率阈值,则将该应用程序上报给后台管理系统。后台管理系统可以根据终端的上报及时发现通过数据包频繁唤醒终端系统的异常应用程序并处理,从而降低了终端的功耗,保证了用户的正常使用。In this embodiment, it is possible to detect whether the terminal system is awake by the application program through the data packet. Once it is detected that the terminal system is awakened by the application program through the data packet, the wake-up frequency of the terminal system being awake by the application program through the data packet is counted. If the wakeup frequency is greater than the preset frequency threshold, the application is reported to the background management system. The background management system can timely discover the abnormal application of the terminal system through the data packet and process it according to the report of the terminal, thereby reducing the power consumption of the terminal and ensuring the normal use of the user.
如图2所示,本实施例提供的终端系统的唤醒监控方法可以包括以下步骤:As shown in FIG. 2, the wakeup monitoring method of the terminal system provided in this embodiment may include the following steps:
步骤201、检测终端系统是否被应用程序通过数据包唤醒,若是,则执行步骤202,否则结束处理。Step 201: Detect whether the terminal system is woken up by the application by the data packet. If yes, execute step 202, otherwise, the processing ends.
由于应用程序唤醒终端系统的唤醒方式有两种,通过数据包唤醒与通过闹钟alarm唤醒,本实施例中,为监控应用程序通过数据包唤醒终端系统的唤醒方式,可以在终端的内核中增加Uevent类型的驱动节点wakeup_reasons,在终端进入休眠状态后,利用驱动节点wakeup_reasons记录终端系统被应用程序通过数据包唤醒的信息,所记录的信息可以是一个数值标志,例如在没有监听到终端系统被应用程序通过数据包唤醒时,该数值标志为0,当监听到终端系统被应用程序通过数据包唤醒时,该数值标志更新为非0值,例如1等,此处不做具体限定。因而,在本步骤中,可以通过监听接口检测驱动节点wakeup_reasons的值是否发生变化来判断终端系统是否被应用程序通过数据包唤醒。Since the wake-up mode of the application wake-up terminal system is two, the wake-up of the data packet and the wake-up by the alarm alarm are used. In this embodiment, the Uevent can be added to the kernel of the terminal for the monitoring application to wake up the wake-up mode of the terminal system through the data packet. The driver node wakeup_reasons, after the terminal enters the sleep state, uses the drive node wakeup_reasons to record the information that the terminal system is awakened by the application through the data packet, and the recorded information may be a numerical value flag, for example, if the terminal system is not monitored by the application program. When the data packet wakes up, the value is marked as 0. When the terminal system is awake by the application through the data packet, the value flag is updated to a value other than 0, for example, 1 or the like, which is not specifically limited herein. Therefore, in this step, it is possible to determine whether the terminal system is awake by the application through the data packet by detecting whether the value of the drive node wakeup_reasons changes.
步骤202、通过流量统计接口读取在检测到终端系统被应用程序通过数据包唤醒之前的第一预设时长内,流量有增加的应用程序的标识信息。Step 202: Read, by using a traffic statistics interface, identifier information of an application whose traffic is increased within a first preset duration before detecting that the terminal system is awake by the application packet.
在一种实施方式中,应用程序的标识信息可以是应用程序的用户标识符(User IDentity,UID),
UID可以用来唯一标识一个应用程序。In an embodiment, the identification information of the application may be a User IDentity (UID) of the application.
UIDs can be used to uniquely identify an application.
在步骤201检测到了终端系统被应用程序通过数据包唤醒,但并不知道具体是被哪个应用程序所唤醒,因此,在步骤202将确定通过数据包唤醒终端系统的具体应用程序。It is detected in step 201 that the terminal system is awake by the application through the packet, but does not know which application is actually awake. Therefore, in step 202, the specific application for waking up the terminal system through the packet is determined.
如果应用程序通过数据包唤醒了终端系统,由于数据包的传输,会导致对应应用程序的流量增加,因而,本实施例中,可以通过流量统计接口读取在检测到终端系统被应用程序通过数据包唤醒之前的第一预设时长内,流量有增加的应用程序的标识信息,第一预设时长可以为1秒、2秒等,可视实际需求设置。If the application wakes up the terminal system through the data packet, the traffic of the corresponding application increases due to the transmission of the data packet. Therefore, in this embodiment, the traffic statistics interface can be read to detect that the terminal system is passed by the application. In the first preset duration before the packet wakes up, the traffic has an identification information of the application, and the first preset duration may be 1 second, 2 seconds, etc., and may be set according to actual requirements.
步骤203、去除持有唤醒锁wakelock工作的应用程序的标识信息,剩余的应用程序的标识信息为唤醒所述终端系统的所述应用程序的标识信息。Step 203: Remove the identifier information of the application that holds the wakelock wakelock operation, and the identifier information of the remaining application is the identifier information of the application that wakes up the terminal system.
通常来说,终端系统被应用程序唤醒后,如果应用程序持有唤醒锁wakelock,则允许应用继续工作,这种情况下的唤醒通常会被认为是正常唤醒。因而,本实施例中,需要在读取的所有流量有增加的应用程序的标识信息中去除掉持有唤醒锁wakelock工作的应用程序的标识信息,剩余的应用程序的标识信息为本发明所要记录的唤醒所述终端系统的所述应用程序的标识信息。Generally speaking, after the terminal system is woken up by the application, if the application holds the wakelock wakelock, the application is allowed to continue to work. In this case, the wakeup is usually considered as a normal wakeup. Therefore, in this embodiment, it is necessary to remove the identification information of the application holding the wakelock wakelock operation in the identification information of the application whose all traffic has been read, and the identification information of the remaining application is the record to be recorded by the invention. Awakening the identification information of the application of the terminal system.
步骤204、统计所述终端系统被所述应用程序通过数据包唤醒的唤醒频率。Step 204: Count the wake-up frequency of the terminal system being awake by the application by the data packet.
在一种实施方式中,可以在检测到终端系统被应用程序通过数据包唤醒之后的第二预设时长内,统计终端系统被所述应用程序通过数据包唤醒的唤醒频率,第二预设时长可以根据实际统计需求设置,例如设置为四小时、八小时等,此处不做具体限定。在一实施方式中,可以统计终端系统在第二预设时长内被应用程序通过数据包唤醒的唤醒累积时长及唤醒累积次数,根据所述唤醒累积时长及唤醒累积次数计算所述唤醒频率。In an implementation manner, the wake-up frequency of the wake-up by the application program by the application program may be counted within a second preset duration after the terminal system is detected by the application program to wake up by the data packet, and the second preset duration is It can be set according to actual statistical requirements, for example, set to four hours, eight hours, etc., and is not specifically limited herein. In an embodiment, the wakeup cumulative duration and the wakeup cumulative number that the application system wakes up by the application packet in the second preset duration may be counted, and the wakeup frequency is calculated according to the wakeup cumulative duration and the wakeup cumulative number.
在一种实施方式中,统计唤醒累积时长的方法可如下:In one embodiment, the method of counting the cumulative duration of wakeup can be as follows:
可以针对每个应用程序设置一个计时器,在开始统计之前,将每个应用程序的计时器都清零,在统计的过程中,在获取通过数据包唤醒终端系统的应用程序的标识信息之后,启动所述标识信息对应的应用程序的计时器记录唤醒时长,此后终端系统每被该应用程序通过数据包唤醒一次,就累积记录一次唤醒时长,在到达第二预设时长之后,读取该应用程序对应的计时器数值,即得到该应用程序对应的唤醒累积时长。A timer can be set for each application, and the timer of each application is cleared before starting the statistics. In the process of statistics, after obtaining the identification information of the application that wakes up the terminal system through the data packet, The timer of the application corresponding to the identifier information is started to record the wake-up duration. After the terminal system wakes up once by the application, the terminal system accumulates a wake-up duration, and after reaching the second preset duration, reads the application. The timer value corresponding to the program, that is, the cumulative duration of wakeup corresponding to the application.
在一种实施方式中,统计唤醒累积次数的方法可如下:In one embodiment, the method of counting the cumulative number of wakeups can be as follows:
可以针对每个应用程序设置一个计数器,在开始统计之前,将每个应用程序的计数器都清零,在统计的过程中,在获取通过数据包唤醒终端系统的应用程序的标识信息之后,将所述标识信息对应的应用程序的计数器加一,此后终端系统每被该应用程序通过数据包唤醒一次,就将对于计数器累积加一,在到达第二预设时长之后,读取该应用程序对应的计数器数值,即得到该应用程序对应的唤醒累积次数。A counter can be set for each application, and the counter of each application is cleared before starting the statistics. In the process of statistics, after obtaining the identification information of the application that wakes up the terminal system through the data packet, The counter of the application corresponding to the identifier information is incremented by one. After the terminal system wakes up once by the application packet, the terminal system adds one to the counter, and after reaching the second preset duration, reads the corresponding program. The counter value, that is, the cumulative number of wakeups corresponding to the application.
当然,在另一种实施方式中,也可以不统计应用程序的唤醒累积时长,直接统计第二预设时长内的唤醒累积次数,根据第二预设时长及唤醒累积次数计算唤醒频率,此处不做具体限定。Of course, in another implementation manner, the wakeup accumulation duration of the application may not be counted, and the wakeup cumulative number in the second preset duration may be directly counted, and the wakeup frequency may be calculated according to the second preset duration and the wakeup cumulative number, where No specific restrictions.
那么,在一实施方式中,步骤204中统计所述终端系统被所述应用程序通过数据包唤醒的唤醒频率的步骤,也可以包括:Then, in an embodiment, the step of counting the wake-up frequency of the terminal system by the application program to wake up by the data packet in step 204 may also include:
在检测到终端系统被应用程序通过数据包唤醒之后的第二预设时长内,统计终端系统被应用程序通过数据包唤醒的唤醒累积次数;After detecting that the terminal system is awake by the application by the data packet, the statistic terminal system is accumulated by the application through the wakeup of the data packet;
根据所述第二预设时长和所述唤醒累积次数计算唤醒频率。The wake-up frequency is calculated according to the second preset duration and the wake-up cumulative number.
步骤205、判断所述唤醒频率是否大于预设频率阈值,若大于,则执行步骤206,否则结束处理。Step 205: Determine whether the wake-up frequency is greater than a preset frequency threshold. If it is greater, perform step 206, otherwise end the process.
预设频率阈值可根据第二预设时长等实际数据进行设置,若唤醒频率大于预设频率阈值,则说明应用程序通过数据包频繁地唤醒了终端系统,该应用程序为异常应用程序。The preset frequency threshold may be set according to actual data such as the second preset duration. If the wakeup frequency is greater than the preset frequency threshold, the application frequently wakes up the terminal system through the data packet, and the application is an abnormal application.
步骤206、将所述应用程序的标识信息上报给后台管理系统。Step 206: Report the identification information of the application to the background management system.
在一种实施方式中,后台管理系统可以是守护精灵、后台运维系统等,将该应用程序上报给后台管理系统之后,后台管理系统可以卸载该应用程序,或者对该应用程序设置数据包唤醒限制等,以节省终端的功耗,保证用户的正常使用。In an embodiment, the background management system may be a daemon, a background operation system, etc., after the application is reported to the background management system, the background management system may uninstall the application, or set a packet wakeup for the application. Restrictions, etc., to save power consumption of the terminal and ensure the normal use of the user.
本实施例中,可以检测终端系统是否被应用程序通过数据包唤醒,一旦检测到终端系统被应用程序通过数据包唤醒,则统计终端系统被该应用程序通过数据包唤醒的唤醒频率。如果唤醒频率大于预设频率阈值,则将该应用程序上报给后台管理系统。后台管理系统可以根据终端的上报及时发现通过数据包频繁唤醒终端系统的异常应用程序并处理,从而降低了终端的功耗,保证了用户的正常使用。In this embodiment, it is possible to detect whether the terminal system is awake by the application program through the data packet. Once it is detected that the terminal system is awakened by the application program through the data packet, the wake-up frequency of the terminal system being awake by the application program through the data packet is counted. If the wakeup frequency is greater than the preset frequency threshold, the application is reported to the background management system. The background management system can timely discover the abnormal application of the terminal system through the data packet and process it according to the report of the terminal, thereby reducing the power consumption of the terminal and ensuring the normal use of the user.
本发明实施例还提供了一种终端,如图3所示,本实施例的终端可以包括:The embodiment of the present invention further provides a terminal. As shown in FIG. 3, the terminal in this embodiment may include:
检测模块301,用于检测终端系统是否被应用程序通过数据包唤醒。The detecting module 301 is configured to detect whether the terminal system is woken up by the application by the data packet.
统计模块302,用于在检测到终端系统被应用程序通过数据包唤醒时,统计所述终端系统被所述应用程序通过数据包唤醒的唤醒频率。The statistic module 302 is configured to count, when the terminal system is awake by the application by the data packet, the wake-up frequency of the terminal system being awake by the application program through the data packet.
判断模块303,用于判断所述唤醒频率是否大于预设频率阈值。The determining module 303 is configured to determine whether the wake-up frequency is greater than a preset frequency threshold.
上报模块304,用于在所述唤醒频率大于预设频率阈值时,将所述应用程序上报给后台管理系统。The reporting module 304 is configured to report the application to the background management system when the wake-up frequency is greater than the preset frequency threshold.
在一种实施方式中,所述检测模块301可以包括:In an embodiment, the detecting module 301 can include:
检测子模块,用于通过监听接口检测用于监听终端系统被应用程序通过数据包唤醒的驱动节点的值是否发生变化。The detecting submodule is configured to detect, by using the listening interface, whether the value of the driving node used to listen to the wakeup of the terminal system by the application packet changes.
确定子模块,用于在所述检测子模块检测到所述驱动节点的值发生变化时,确定终端系统被应用程序通过数据包唤醒。And a determining submodule, configured to determine, when the detecting submodule detects that the value of the driving node changes, to determine that the terminal system is woken up by the application by the data packet.
在一种实施方式中,所述终端还可以包括:In an embodiment, the terminal may further include:
获取模块,用于获取唤醒所述终端系统的所述应用程序的标识信息。And an obtaining module, configured to acquire identification information of the application that wakes up the terminal system.
所述上报模块304用于,将所述应用程序的标识信息上报给后台管理系统。The reporting module 304 is configured to report the identification information of the application to the background management system.
在一种实施方式中,获取模块可以用于:获取唤醒所述终端系统的所述应用程序的用户标识符。In an embodiment, the obtaining module may be configured to: obtain a user identifier of the application that wakes up the terminal system.
那么,上报模块304可以用于:将所述应用程序的用户标识符上报给后台管理系统。Then, the reporting module 304 can be configured to: report the user identifier of the application to the background management system.
在一种实施方式中,所述获取模块可以包括:In an embodiment, the obtaining module may include:
读取子模块,用于通过流量统计接口读取在检测到终端系统被应用程序通过数据包唤醒之前的第一预设时长内,流量有增加的应用程序的标识信息。The reading sub-module is configured to read, by using the traffic statistics interface, identifier information of an application whose traffic has increased within a first preset duration before detecting that the terminal system is woken up by the application packet.
去除子模块,用于在读取的所有应用程序的标识信息中去除持有唤醒锁wakelock工作的应用程序的标识信息,剩余的应用程序的标识信息为唤醒所述终端系统的所述应用程序的标识信息。And removing the submodule, configured to remove, in the identification information of all the applications that are read, the identification information of the application that holds the wakelock wakelock work, and the identifier information of the remaining applications is the application that wakes up the terminal system Identification information.
在一种实施方式中,所述统计模块302可以包括:In an embodiment, the statistics module 302 can include:
统计子模块,用于在检测到终端系统被应用程序通过数据包唤醒之后的第二预设时长内,统计终端系统被应用程序通过数据包唤醒的唤醒累积时长及唤醒累积次数。The statistic sub-module is configured to count the accumulated wake-up duration and the wake-up cumulative number of the terminal system by the application wake-up by the application, after detecting that the terminal system is awake by the application by the data packet.
计算子模块,用于根据所述唤醒累积时长及唤醒累积次数计算所述唤醒频率。And a calculating submodule, configured to calculate the wakeup frequency according to the wakeup cumulative duration and the wakeup cumulative number.
在另一种实施方式中,统计模块302还可以用于:In another implementation, the statistics module 302 can also be used to:
在检测到终端系统被应用程序通过数据包唤醒之后的第二预设时长内,统计终端系统被应用程序通过数据包唤醒的唤醒累积次数;After detecting that the terminal system is awake by the application by the data packet, the statistic terminal system is accumulated by the application through the wakeup of the data packet;
根据所述第二预设时长和所述唤醒累积次数计算唤醒频率。The wake-up frequency is calculated according to the second preset duration and the wake-up cumulative number.
需要说明的是,本实施例中未做详细描述的步骤及对应有益效果均可参阅前述方法实施例中对应的描述,此处不再赘述。It should be noted that the steps in the foregoing method and the corresponding beneficial effects in the embodiments may be referred to the corresponding descriptions in the foregoing method embodiments, and details are not described herein again.
本实施例中,检测模块可以检测终端系统是否被应用程序通过数据包唤醒,一旦检测到终端系统被应用程序通过数据包唤醒,则统计模块统计终端系统被该应用程序通过数据包唤醒的唤醒频率。如果判断模块判断出唤醒频率大于预设频率阈值,则上报模块将该应用程序上报给后台管理系统。后台管理系统可以根据终端的上报及时发现通过数据包频繁唤醒终端系统的异常应用程序并处理,从而降低了终端的功耗,保证了用户的正常使用。In this embodiment, the detecting module may detect whether the terminal system is awake by the application program through the data packet, and once detecting that the terminal system is awake by the application program through the data packet, the statistic module counts the wake-up frequency of the terminal system being awake by the application program through the data packet. . If the determining module determines that the wake-up frequency is greater than the preset frequency threshold, the reporting module reports the application to the background management system. The background management system can timely discover the abnormal application of the terminal system through the data packet and process it according to the report of the terminal, thereby reducing the power consumption of the terminal and ensuring the normal use of the user.
本发明实施例提供一种计算机可读的存储介质,包括计算机程序,所述计算机程序被处理器加载并执行时,可以实现本发明实施例提供的终端系统的唤醒监控方法中的步骤。The embodiment of the present invention provides a computer readable storage medium, including a computer program. When the computer program is loaded and executed by a processor, the steps in the wakeup monitoring method of the terminal system provided by the embodiment of the present invention may be implemented.
本发明实施例还提供一种电子设备,包括存储器,处理器,以及存储在所述存储器中并可在所述处理器中运行的计算机程序,所述处理器执行所述计算机程序时可以实现本发明实施例提供的终端系统的唤醒监控方法中的步骤。An embodiment of the present invention further provides an electronic device, including a memory, a processor, and a computer program stored in the memory and operable in the processor, where the processor can implement the computer program The steps in the wakeup monitoring method of the terminal system provided by the embodiment of the invention.
例如,该电子设备可以是诸如智能手机或平板电脑等的移动终端设备。请参阅图4,图4为本发明实施例提供的电子设备的结构示意图。该电子设备400可以包括存储器401、处理器402以及调制解调模块403等部件。本领域技术人员可以理解,图4中示出的电子设备结构并不构成对电子设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。For example, the electronic device can be a mobile terminal device such as a smartphone or tablet. Please refer to FIG. 4. FIG. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention. The electronic device 400 can include components such as a memory 401, a processor 402, and a modem module 403. It will be understood by those skilled in the art that the electronic device structure illustrated in FIG. 4 does not constitute a limitation to the electronic device, and may include more or less components than those illustrated, or a combination of certain components, or different component arrangements.
存储器401可用于存储应用程序和数据。存储器401存储的应用程序中包含有可执行代码。应用程序可以组成各种功能模块。处理器402通过运行存储在存储器401的应用程序,从而执行各种功能应用以及数据处理。Memory 401 can be used to store applications and data. The application stored in the memory 401 contains executable code. Applications can form various functional modules. The processor 402 executes various functional applications and data processing by running an application stored in the memory 401.
处理器402是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器401内的应用程序,以及调用存储在存储器401内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。The processor 402 is a control center of the electronic device, and connects various parts of the entire electronic device using various interfaces and lines, executes the electronic device by running or executing an application stored in the memory 401, and calling data stored in the memory 401. The various functions and processing of data to provide overall monitoring of the electronic device.
调制解调模块403用于将二进制数字信息转换成可以通过普通公共信息系统传送的模拟信号,或将接收的模拟信号转换成数字信号。在一种实施方式中,可以通过专门的调制解调器实现上述功能。The modem module 403 is for converting binary digital information into an analog signal that can be transmitted through a common public information system, or converting the received analog signal into a digital signal. In one embodiment, the above functions can be implemented by a dedicated modem.
在本实施例中,电子设备中的处理器402会按照如下的指令,将一个或一个以上的应用程序的进程对应的可执行代码加载到存储器401中,并由处理器402来运行存储在存储器401中的应用程序,从而实现步骤:In this embodiment, the processor 402 in the electronic device loads the executable code corresponding to the process of one or more applications into the memory 401 according to the following instructions, and is executed by the processor 402 to be stored in the memory. The application in 401, thus implementing the steps:
检测电子设备系统是否被应用程序通过数据包唤醒;Detecting whether the electronic device system is awakened by the application through the data packet;
若是,则统计所述电子设备系统被所述应用程序通过数据包唤醒的唤醒频率;If yes, counting the wake-up frequency of the electronic device system being awake by the application through the data packet;
判断所述唤醒频率是否大于预设频率阈值;Determining whether the wake-up frequency is greater than a preset frequency threshold;
若是,则将所述应用程序上报给后台管理系统。If yes, the application is reported to the background management system.
在一种实施方式中,处理器402执行所述检测电子设备系统是否被应用程序通过数据包唤醒的步骤时,可以执行如下步骤:In an embodiment, when the processor 402 performs the step of detecting whether the electronic device system is awake by the application through the data packet, the following steps may be performed:
通过监听接口检测用于监听电子设备系统被应用程序通过数据包唤醒的驱动节点的值是否发生变化;Detecting, by the listening interface, whether the value of the driving node for monitoring the electronic device system being awake by the application by the data packet changes;
若发生变化,则确定电子设备系统被应用程序通过数据包唤醒。If there is a change, it is determined that the electronic device system is woken up by the application through the data packet.
在一种实施方式中,处理器402在执行所述确定电子设备系统被应用程序通过数据包唤醒的步骤之后,还可以执行如下步骤:获取唤醒所述电子设备系统的所述应用程序的标识信息。In an embodiment, after performing the step of determining that the electronic device system is awake by the application by the data packet, the processor 402 may further perform the step of: acquiring identification information of the application that wakes up the electronic device system. .
那么,处理器402在执行所述将所述应用程序上报给后台管理系统的步骤时,可以执行如下步骤:将所述应用程序的标识信息上报给后台管理系统。Then, when performing the step of reporting the application to the background management system, the processor 402 may perform the following steps: reporting the identification information of the application to the background management system.
在一种实施方式中,处理器402在执行所述获取唤醒所述电子设备系统的所述应用程序的标识信息的步骤时,可以执行如下步骤:In an embodiment, when performing the step of acquiring the identification information of the application that wakes up the electronic device system, the processor 402 may perform the following steps:
通过流量统计接口读取在检测到电子设备系统被应用程序通过数据包唤醒之前的第一预设时长内,流量有增加的应用程序的标识信息;Reading, by using the traffic statistics interface, identification information of an application whose traffic has increased within a first preset duration before detecting that the electronic device system is woken up by the application packet;
在读取的所有应用程序的标识信息中去除持有唤醒锁wakelock工作的应用程序的标识信息,剩余的应用程序的标识信息为唤醒所述电子设备系统的所述应用程序的标识信息。The identification information of the application holding the wake lock wakelock is removed from the identification information of all the applications read, and the identification information of the remaining applications is the identification information of the application waking up the electronic device system.
在一种实施方式中,处理器402在执行所述获取唤醒所述电子设备系统的所述应用程序的标识信息的步骤时,可以执行如下步骤:获取唤醒所述电子设备系统的所述应用程序的用户标识符;In an embodiment, when performing the step of acquiring the identification information of the application that wakes up the electronic device system, the processor 402 may perform the following steps: acquiring the application that wakes up the electronic device system User identifier
那么,处理器402在执行所述将所述应用程序的标识信息上报给后台管理系统的步骤时,可以执行如下步骤:将所述应用程序的用户标识符上报给后台管理系统。Then, when performing the step of reporting the identification information of the application to the background management system, the processor 402 may perform the following steps: reporting the user identifier of the application to the background management system.
在一种实施方式中,处理器402在执行所述统计所述电子设备系统被所述应用程序通过数据包唤醒的唤醒频率的步骤时,可以执行如下步骤:In an embodiment, when the processor 402 performs the step of counting the wake-up frequency of the electronic device system being waking up by the application by the data packet, the following steps may be performed:
在检测到电子设备系统被应用程序通过数据包唤醒之后的第二预设时长内,统计电子设备系统被应用程序通过数据包唤醒的唤醒累积时长及唤醒累积次数;After detecting that the electronic device system is awake by the application program through the data packet, the accumulated accumulated duration of the wake-up of the electronic device system by the application packet wake-up and the cumulative number of wake-up times are detected;
根据所述唤醒累积时长及唤醒累积次数计算唤醒频率。The wake-up frequency is calculated according to the wake-up accumulation duration and the wake-up accumulation count.
在一种实施方式中,处理器402在执行所述统计所述电子设备系统被所述应用程序通过数据包唤醒的唤醒频率的步骤时,可以执行如下步骤:In an embodiment, when the processor 402 performs the step of counting the wake-up frequency of the electronic device system being waking up by the application by the data packet, the following steps may be performed:
在检测到电子设备系统被应用程序通过数据包唤醒之后的第二预设时长内,统计电子设备系统被应用程序通过数据包唤醒的唤醒累积次数;After detecting that the electronic device system is awake by the application through the data packet, the cumulative number of wakeups that the electronic device system is awake by the application through the data packet is counted;
根据所述第二预设时长和所述唤醒累积次数计算唤醒频率。The wake-up frequency is calculated according to the second preset duration and the wake-up cumulative number.
请参阅图5,图5为本发明实施例提供的电子设备的另一结构示意图。在一种实施方式中,电子设备400还可以包括射频(RF,Radio
Frequency)电路404、输入单元405以及输出单元406。Referring to FIG. 5, FIG. 5 is another schematic structural diagram of an electronic device according to an embodiment of the present invention. In an embodiment, the electronic device 400 may further include a radio frequency (RF, Radio)
Frequency circuit 404, input unit 405, and output unit 406.
射频电路404可用于收发信息,或通话过程中信号的接收和发送,特别地,将基站的下行信息接收后,交由一个或者一个以上处理器402处理;另外,将涉及上行的数据发送给基站。The radio frequency circuit 404 can be used for transmitting and receiving information, or receiving and transmitting signals during a call. Specifically, after receiving the downlink information of the base station, the downlink information is processed by one or more processors 402. In addition, the data related to the uplink is sent to the base station. .
输入单元405可用于接收输入的数字、字符信息或用户特征信息(比如指纹),以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。在一实施例中,输入单元405可包括触敏表面以及其他输入设备。触敏表面,也称为触摸显示屏或者触控板。The input unit 405 can be configured to receive input digits, character information, or user characteristic information (such as fingerprints), and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function controls. In an embodiment, the input unit 405 can include a touch-sensitive surface as well as other input devices. Touch-sensitive surfaces, also known as touch screens or trackpads.
输出单元406可用于显示由用户输入的信息或提供给用户的信息以及移动终端的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。例如,输出单元406可以为显示面板。The output unit 406 can be used to display information entered by the user or information provided to the user as well as various graphical user interfaces of the mobile terminal, which can be composed of graphics, text, icons, video, and any combination thereof. For example, output unit 406 can be a display panel.
尽管图5中未示出,电子设备还可以包括摄像头、蓝牙模块、无线保真模块等,在此不再赘述。Although not shown in FIG. 5, the electronic device may further include a camera, a Bluetooth module, a wireless fidelity module, and the like, and details are not described herein again.
在本申请所提供的几个实施例中,应该理解到,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个模块或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。In the several embodiments provided by the present application, it should be understood that the division of the module is only a logical function division, and the actual implementation may have another division manner, for example, multiple modules or components may be combined or may be Integrate into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form. The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本发明各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only
Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。In addition, each functional module in each embodiment of the present invention may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. The integrated modules, if implemented in the form of software functional modules and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, or all or part of the technical solution, may be embodied in the form of a software product stored in a storage medium. A number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: a U disk, a mobile hard disk, a read only memory (ROM, Read-Only)
Memory, random access memory (RAM), disk or optical disk, and other media that can store program code.
以上所述,以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。The above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that The technical solutions described in the embodiments are modified, or the equivalents of the technical features are replaced by the equivalents of the technical solutions of the embodiments of the present invention.
Claims (20)
- 一种终端系统的唤醒监控方法,其中,包括:A wake-up monitoring method for an end system, which includes:检测终端系统是否被应用程序通过数据包唤醒;Detecting whether the terminal system is awakened by the application through the data packet;若是,则统计所述终端系统被所述应用程序通过数据包唤醒的唤醒频率;If yes, counting the wake-up frequency of the terminal system being awake by the application through the data packet;判断所述唤醒频率是否大于预设频率阈值;Determining whether the wake-up frequency is greater than a preset frequency threshold;若是,则将所述应用程序上报给后台管理系统。If yes, the application is reported to the background management system.
- 根据权利要求1所述的方法,其中,所述检测终端系统是否被应用程序通过数据包唤醒包括:The method of claim 1, wherein the detecting whether the terminal system is awakened by the application by the data packet comprises:通过监听接口检测用于监听终端系统被应用程序通过数据包唤醒的驱动节点的值是否发生变化;Detecting, by the listening interface, whether the value of the driving node used to listen to the wakeup of the terminal system by the application packet changes;若发生变化,则确定终端系统被应用程序通过数据包唤醒。If a change occurs, it is determined that the terminal system is woken up by the application through the packet.
- 根据权利要求2所述的方法,其中,在确定终端系统被应用程序通过数据包唤醒之后,所述方法还包括:The method of claim 2, wherein after determining that the terminal system is awake by the application by the data packet, the method further comprises:获取唤醒所述终端系统的所述应用程序的标识信息;Obtaining identification information of the application that wakes up the terminal system;所述将所述应用程序上报给后台管理系统包括:The reporting the application to the background management system includes:将所述应用程序的标识信息上报给后台管理系统。The identification information of the application is reported to the background management system.
- 根据权利要求3所述的方法,其中,所述获取唤醒所述终端系统的所述应用程序的标识信息包括:The method according to claim 3, wherein the obtaining the identification information of the application waking up the terminal system comprises:通过流量统计接口读取在检测到终端系统被应用程序通过数据包唤醒之前的第一预设时长内,流量有增加的应用程序的标识信息;Reading, by using the traffic statistics interface, identifier information of an application whose traffic has increased within a first preset duration before detecting that the terminal system is awake by the application packet;在读取的所有应用程序的标识信息中去除持有唤醒锁wakelock工作的应用程序的标识信息,剩余的应用程序的标识信息为唤醒所述终端系统的所述应用程序的标识信息。The identification information of the application holding the wakelock wakelock is removed from the identification information of all the applications read, and the identification information of the remaining applications is the identification information of the application waking up the terminal system.
- 根据权利要求3所述的方法,其中,所述获取唤醒所述终端系统的所述应用程序的标识信息,包括:The method of claim 3, wherein the obtaining the identification information of the application that wakes up the terminal system comprises:获取唤醒所述终端系统的所述应用程序的用户标识符;Obtaining a user identifier of the application waking up the terminal system;所述将所述应用程序的标识信息上报给后台管理系统,包括:将所述应用程序的用户标识符上报给后台管理系统。The reporting the identification information of the application to the background management system includes: reporting the user identifier of the application to the background management system.
- 根据权利要求1所述的方法,其中,所述统计所述终端系统被所述应用程序通过数据包唤醒的唤醒频率包括:The method according to claim 1, wherein said waking up frequency of said terminal system being awakened by said application by said data packet comprises:在检测到终端系统被应用程序通过数据包唤醒之后的第二预设时长内,统计终端系统被应用程序通过数据包唤醒的唤醒累积时长及唤醒累积次数;After detecting that the terminal system is awake by the application packet through the data packet, the accumulated terminal duration and the wakeup cumulative number of the terminal system being awake by the application by the data packet are counted;根据所述唤醒累积时长及唤醒累积次数计算唤醒频率。The wake-up frequency is calculated according to the wake-up accumulation duration and the wake-up accumulation count.
- 根据权利要求1所述的方法,其中,所述统计所述终端系统被所述应用程序通过数据包唤醒的唤醒频率,包括:The method of claim 1, wherein the counting the wake-up frequency of the terminal system by the application to wake up by the data packet comprises:在检测到终端系统被应用程序通过数据包唤醒之后的第二预设时长内,统计终端系统被应用程序通过数据包唤醒的唤醒累积次数;After detecting that the terminal system is awake by the application by the data packet, the statistic terminal system is accumulated by the application through the wakeup of the data packet;根据所述第二预设时长和所述唤醒累积次数计算唤醒频率。The wake-up frequency is calculated according to the second preset duration and the wake-up cumulative number.
- 一种存储介质,包括计算机程序,其中,所述计算机程序被处理器加载并执行时,实现权利要求1至7中任一所述的终端系统的唤醒监控方法中的步骤。A storage medium comprising a computer program, wherein the computer program is loaded and executed by a processor, implementing the steps in the wake-up monitoring method of the terminal system according to any one of claims 1 to 7.
- 一种终端,其中,包括:A terminal, including:检测模块,用于检测终端系统是否被应用程序通过数据包唤醒;a detecting module, configured to detect whether the terminal system is awakened by the application by the data packet;统计模块,用于在检测到终端系统被应用程序通过数据包唤醒时,统计所述终端系统被所述应用程序通过数据包唤醒的唤醒频率;a statistic module, configured to: when detecting that the terminal system is awake by the application by the data packet, the waking frequency of the terminal system being awake by the application program through the data packet;判断模块,用于判断所述唤醒频率是否大于预设频率阈值;a determining module, configured to determine whether the wake-up frequency is greater than a preset frequency threshold;上报模块,用于在所述唤醒频率大于预设频率阈值时,将所述应用程序上报给后台管理系统。The reporting module is configured to report the application to the background management system when the wake-up frequency is greater than the preset frequency threshold.
- 根据权利要求9所述的终端,其中,所述检测模块包括:The terminal of claim 9, wherein the detecting module comprises:检测子模块,用于通过监听接口检测用于监听终端系统被应用程序通过数据包唤醒的驱动节点的值是否发生变化;a detecting submodule, configured to detect, by using the listening interface, whether a value of a driving node used to listen to the wakeup of the terminal system by the application packet is changed;确定子模块,用于在所述检测子模块检测到所述驱动节点的值发生变化时,确定终端系统被应用程序通过数据包唤醒。And a determining submodule, configured to determine, when the detecting submodule detects that the value of the driving node changes, to determine that the terminal system is woken up by the application by the data packet.
- 根据权利要求10所述的终端,其中,所述终端还包括:The terminal of claim 10, wherein the terminal further comprises:获取模块,用于获取唤醒所述终端系统的所述应用程序的标识信息;An obtaining module, configured to acquire identifier information of the application that wakes up the terminal system;所述上报模块用于,将所述应用程序的标识信息上报给后台管理系统。The reporting module is configured to report the identification information of the application to the background management system.
- 根据权利要求11所述的终端,其中,所述获取模块包括:The terminal according to claim 11, wherein the obtaining module comprises:读取子模块,用于通过流量统计接口读取在检测到终端系统被应用程序通过数据包唤醒之前的第一预设时长内,流量有增加的应用程序的标识信息;a reading submodule, configured to read, by using a traffic statistics interface, identifier information of an application whose traffic has increased within a first preset duration before detecting that the terminal system is awake by the application packet;去除子模块,用于在读取的所有应用程序的标识信息中去除持有唤醒锁wakelock工作的应用程序的标识信息,剩余的应用程序的标识信息为唤醒所述终端系统的所述应用程序的标识信息。And removing the submodule, configured to remove, in the identification information of all the applications that are read, the identification information of the application that holds the wakelock wakelock work, and the identifier information of the remaining applications is the application that wakes up the terminal system Identification information.
- 根据权利要求9所述的终端,其中,所述统计模块包括:The terminal according to claim 9, wherein the statistics module comprises:统计子模块,用于在检测到终端系统被应用程序通过数据包唤醒之后的第二预设时长内,统计终端系统被应用程序通过数据包唤醒的唤醒累积时长及唤醒累积次数;a statistic sub-module, configured to: in a second preset duration after detecting that the terminal system is awake by the application by the data packet, the cumulative duration of wake-up and wake-up accumulation times of the terminal system being awake by the application by the data packet;计算子模块,用于根据所述唤醒累积时长及唤醒累积次数计算唤醒频率。The calculating submodule is configured to calculate a wakeup frequency according to the wakeup cumulative duration and the wakeup cumulative number of times.
- 一种电子设备,包括存储器,处理器,以及存储在所述存储器中并可在所述处理器中运行的计算机程序,其中,所述处理器执行所述计算机程序时,实现如下步骤:An electronic device comprising a memory, a processor, and a computer program stored in the memory and operable in the processor, wherein when the processor executes the computer program, the following steps are implemented:检测电子设备系统是否被应用程序通过数据包唤醒;Detecting whether the electronic device system is awakened by the application through the data packet;若是,则统计所述电子设备系统被所述应用程序通过数据包唤醒的唤醒频率;If yes, counting the wake-up frequency of the electronic device system being awake by the application through the data packet;判断所述唤醒频率是否大于预设频率阈值;Determining whether the wake-up frequency is greater than a preset frequency threshold;若是,则将所述应用程序上报给后台管理系统。If yes, the application is reported to the background management system.
- 根据权利要求14所述的电子设备,其中,所述处理器用于执行如下步骤:The electronic device of claim 14, wherein the processor is configured to perform the following steps:通过监听接口检测用于监听电子设备系统被应用程序通过数据包唤醒的驱动节点的值是否发生变化;Detecting, by the listening interface, whether the value of the driving node for monitoring the electronic device system being awake by the application by the data packet changes;若发生变化,则确定电子设备系统被应用程序通过数据包唤醒。If there is a change, it is determined that the electronic device system is woken up by the application through the data packet.
- 根据权利要求15所述的电子设备,其中,所述处理器用于执行如下步骤:The electronic device of claim 15 wherein said processor is operative to perform the steps of:获取唤醒所述电子设备系统的所述应用程序的标识信息;Obtaining identification information of the application that wakes up the electronic device system;将所述应用程序的标识信息上报给后台管理系统。The identification information of the application is reported to the background management system.
- 根据权利要求16所述的电子设备,其中,所述处理器用于执行如下步骤:The electronic device of claim 16 wherein said processor is operative to perform the steps of:通过流量统计接口读取在检测到电子设备系统被应用程序通过数据包唤醒之前的第一预设时长内,流量有增加的应用程序的标识信息;Reading, by using the traffic statistics interface, identification information of an application whose traffic has increased within a first preset duration before detecting that the electronic device system is woken up by the application packet;在读取的所有应用程序的标识信息中去除持有唤醒锁wakelock工作的应用程序的标识信息,剩余的应用程序的标识信息为唤醒所述电子设备系统的所述应用程序的标识信息。The identification information of the application holding the wake lock wakelock is removed from the identification information of all the applications read, and the identification information of the remaining applications is the identification information of the application waking up the electronic device system.
- 根据权利要求16所述的电子设备,其中,所述处理器用于执行如下步骤:The electronic device of claim 16 wherein said processor is operative to perform the steps of:获取唤醒所述电子设备系统的所述应用程序的用户标识符;Obtaining a user identifier of the application waking up the electronic device system;将所述应用程序的用户标识符上报给后台管理系统。The user identifier of the application is reported to the background management system.
- 根据权利要求14所述的电子设备,其中,所述处理器用于执行如下步骤:The electronic device of claim 14, wherein the processor is configured to perform the following steps:在检测到电子设备系统被应用程序通过数据包唤醒之后的第二预设时长内,统计电子设备系统被应用程序通过数据包唤醒的唤醒累积时长及唤醒累积次数;After detecting that the electronic device system is awake by the application program through the data packet, the accumulated accumulated duration of the wake-up of the electronic device system by the application packet wake-up and the cumulative number of wake-up times are detected;根据所述唤醒累积时长及唤醒累积次数计算唤醒频率。The wake-up frequency is calculated according to the wake-up accumulation duration and the wake-up accumulation count.
- 根据权利要求14所述的电子设备,其中,所述处理器用于执行如下步骤:The electronic device of claim 14, wherein the processor is configured to perform the following steps:在检测到电子设备系统被应用程序通过数据包唤醒之后的第二预设时长内,统计电子设备系统被应用程序通过数据包唤醒的唤醒累积次数;After detecting that the electronic device system is awake by the application through the data packet, the cumulative number of wakeups that the electronic device system is awake by the application through the data packet is counted;根据所述第二预设时长和所述唤醒累积次数计算唤醒频率。The wake-up frequency is calculated according to the second preset duration and the wake-up cumulative number.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610547299.1 | 2016-07-11 | ||
CN201610547299.1A CN106227321B (en) | 2016-07-11 | 2016-07-11 | The wake-up monitoring method and terminal of a kind of terminal system |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2018010507A1 true WO2018010507A1 (en) | 2018-01-18 |
Family
ID=57519697
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2017/087625 WO2018010507A1 (en) | 2016-07-11 | 2017-06-08 | Awakening monitoring method of terminal system, storage medium, terminal, and electronic device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106227321B (en) |
WO (1) | WO2018010507A1 (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109901697A (en) * | 2019-03-04 | 2019-06-18 | 上海卓易科技股份有限公司 | A kind of method, apparatus, equipment and medium reducing system power dissipation |
CN112147702A (en) * | 2020-09-27 | 2020-12-29 | 潍柴动力股份有限公司 | Vehicle-mounted terminal detachment detection method and device, vehicle-mounted terminal and storage medium |
CN112540666A (en) * | 2019-09-20 | 2021-03-23 | 中兴通讯股份有限公司 | Application unfreezing method, terminal device, computer device and computer readable medium |
CN113055921A (en) * | 2021-03-29 | 2021-06-29 | 中国联合网络通信集团有限公司 | Fault processing method and terminal |
CN113114862A (en) * | 2021-03-29 | 2021-07-13 | 中国联合网络通信集团有限公司 | Fault processing method and server of voice mailbox |
CN113127214A (en) * | 2019-12-30 | 2021-07-16 | 中移(成都)信息通信科技有限公司 | Timing wake-up processing method and device, terminal equipment and storage medium |
CN114422881A (en) * | 2022-01-18 | 2022-04-29 | 宁波东海集团有限公司 | Low-power communication method, system, storage medium and intelligent terminal |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106227321B (en) * | 2016-07-11 | 2018-01-26 | 广东欧珀移动通信有限公司 | The wake-up monitoring method and terminal of a kind of terminal system |
CN107168851B (en) * | 2017-05-08 | 2019-02-05 | Oppo广东移动通信有限公司 | Information processing method, device and mobile terminal |
CN108008979B (en) * | 2017-11-28 | 2021-10-22 | 深圳天珑无线科技有限公司 | Terminal wake-up management method, terminal and storage medium |
CN110727337B (en) * | 2019-10-18 | 2021-04-27 | 东莞市小精灵教育软件有限公司 | Method and device for acquiring system power consumption information, storage medium and electronic equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104184907A (en) * | 2013-05-27 | 2014-12-03 | 腾讯科技(深圳)有限公司 | Method for detecting awakening data of terminal application software in standby state and terminal |
CN104221445A (en) * | 2013-11-15 | 2014-12-17 | 华为终端有限公司 | Method for waking up terminal system and terminal |
CN104298584A (en) * | 2013-07-19 | 2015-01-21 | 贝壳网际(北京)安全技术有限公司 | Method and device for acquiring application program with abnormal power consumption and mobile terminal |
CN106227321A (en) * | 2016-07-11 | 2016-12-14 | 广东欧珀移动通信有限公司 | A kind of terminal system wake up monitoring method and terminal up |
-
2016
- 2016-07-11 CN CN201610547299.1A patent/CN106227321B/en active Active
-
2017
- 2017-06-08 WO PCT/CN2017/087625 patent/WO2018010507A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104184907A (en) * | 2013-05-27 | 2014-12-03 | 腾讯科技(深圳)有限公司 | Method for detecting awakening data of terminal application software in standby state and terminal |
CN104298584A (en) * | 2013-07-19 | 2015-01-21 | 贝壳网际(北京)安全技术有限公司 | Method and device for acquiring application program with abnormal power consumption and mobile terminal |
CN104221445A (en) * | 2013-11-15 | 2014-12-17 | 华为终端有限公司 | Method for waking up terminal system and terminal |
CN106227321A (en) * | 2016-07-11 | 2016-12-14 | 广东欧珀移动通信有限公司 | A kind of terminal system wake up monitoring method and terminal up |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109901697A (en) * | 2019-03-04 | 2019-06-18 | 上海卓易科技股份有限公司 | A kind of method, apparatus, equipment and medium reducing system power dissipation |
CN112540666A (en) * | 2019-09-20 | 2021-03-23 | 中兴通讯股份有限公司 | Application unfreezing method, terminal device, computer device and computer readable medium |
CN113127214A (en) * | 2019-12-30 | 2021-07-16 | 中移(成都)信息通信科技有限公司 | Timing wake-up processing method and device, terminal equipment and storage medium |
CN113127214B (en) * | 2019-12-30 | 2024-02-06 | 中移(成都)信息通信科技有限公司 | Timing wake-up processing method and device, terminal equipment and storage medium |
CN112147702A (en) * | 2020-09-27 | 2020-12-29 | 潍柴动力股份有限公司 | Vehicle-mounted terminal detachment detection method and device, vehicle-mounted terminal and storage medium |
CN113055921A (en) * | 2021-03-29 | 2021-06-29 | 中国联合网络通信集团有限公司 | Fault processing method and terminal |
CN113114862A (en) * | 2021-03-29 | 2021-07-13 | 中国联合网络通信集团有限公司 | Fault processing method and server of voice mailbox |
CN113055921B (en) * | 2021-03-29 | 2022-09-23 | 中国联合网络通信集团有限公司 | Fault processing method and terminal |
CN113114862B (en) * | 2021-03-29 | 2022-12-02 | 中国联合网络通信集团有限公司 | Fault processing method and server of voice mailbox |
CN114422881A (en) * | 2022-01-18 | 2022-04-29 | 宁波东海集团有限公司 | Low-power communication method, system, storage medium and intelligent terminal |
CN114422881B (en) * | 2022-01-18 | 2023-08-25 | 宁波东海集团有限公司 | Low-power communication method, system, storage medium and intelligent terminal |
Also Published As
Publication number | Publication date |
---|---|
CN106227321A (en) | 2016-12-14 |
CN106227321B (en) | 2018-01-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2018010507A1 (en) | Awakening monitoring method of terminal system, storage medium, terminal, and electronic device | |
WO2018076861A1 (en) | Data transmission control method, apparatus, storage medium, server and system | |
WO2018076867A1 (en) | Data backup deleting method, device and system, storage medium and server | |
WO2017206875A1 (en) | Data packet-based processing method and apparatus, storage medium, and electronic device | |
WO2017206878A1 (en) | Wakeup lock-based processing method and apparatus, storage medium, and electronic device | |
WO2017206862A1 (en) | Bright screen lock-based processing method and apparatus, storage medium, and electronic device | |
WO2018129977A1 (en) | Charging control method and apparatus, storage medium, and computer device | |
WO2017067293A1 (en) | Method and device for fingerprint unlocking and terminal | |
WO2018214320A1 (en) | Database service logic monitoring method and system, and storage medium | |
WO2017206880A1 (en) | Terminal data processing method and apparatus, storage medium, and electronic device | |
WO2018076841A1 (en) | Data sharing method, apparatus, storage medium and server | |
WO2018018772A1 (en) | Background process management method and terminal device | |
WO2018233352A1 (en) | Data transmission method, device, terminal and computer-readable storage medium | |
WO2018161593A1 (en) | Broadcast processing method, device, storage medium and terminal device | |
WO2015143776A1 (en) | Multi-mode power saving multimedia transmission method and system | |
WO2018192164A1 (en) | Method, device and system for reducing power consumption at type-c interface | |
WO2018161601A1 (en) | Screen backlight adjusting method, device, storage medium and electronic device | |
WO2017206890A1 (en) | Wakeup lock-based processing method and apparatus, storage medium, and electronic device | |
WO2014200319A1 (en) | Terminal and application synchronization method therefor | |
WO2014180329A1 (en) | Intelligent terminal wakeup frequency adjustment method and device | |
WO2018171534A1 (en) | Mobile terminal-based dual camera power supply control method, system and mobile terminal | |
WO2018161580A1 (en) | Broadcast control method and apparatus, storage medium, and electronic device | |
WO2018076890A1 (en) | Data backup method, device, storage medium, server and system | |
WO2019100593A1 (en) | Television standby and startup method, television and computer-readable storage medium | |
WO2018076881A1 (en) | Data synchronization method and device, storage medium and server |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 17826846 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 17826846 Country of ref document: EP Kind code of ref document: A1 |