WO2018010507A1 - 终端***的唤醒监控方法、存储介质、终端及电子设备 - Google Patents

终端***的唤醒监控方法、存储介质、终端及电子设备 Download PDF

Info

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
Application number
PCT/CN2017/087625
Other languages
English (en)
French (fr)
Inventor
熊胤琪
Original Assignee
广东欧珀移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 广东欧珀移动通信有限公司 filed Critical 广东欧珀移动通信有限公司
Publication of WO2018010507A1 publication Critical patent/WO2018010507A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/329Power 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

本发明实施例公开了一种终端***的唤醒监控方法、存储介质、终端及电子设备。终端***的唤醒监控方法包括:检测终端***是否被应用程序通过数据包唤醒;若是,则统计所述终端***被所述应用程序通过数据包唤醒的唤醒频率;判断所述唤醒频率是否大于预设频率阈值;若是,则将所述应用程序上报给后台管理***。

Description

终端***的唤醒监控方法、存储介质、终端及电子设备 技术领域
本发明实施例涉及通信技术领域,尤其涉及一种终端***的唤醒监控方法、存储介质、终端及电子设备。
背景技术
随着智能终端的发展,终端上可以安装的应用程序越来越多。目前,智能终端休眠后,应用程序可以通过如下方式来唤醒终端***:通过数据包唤醒,即应用程序通过应用服务器推送数据包唤醒终端***。
技术问题
本发明实施例提供一种终端***的唤醒监控方法、存储介质、终端及电子设备,能够监控并上报通过数据包频繁唤醒终端***的异常应用程序,降低终端的功耗。
技术解决方案
本发明实施例提供的终端***的唤醒监控方法,包括:
检测终端***是否被应用程序通过数据包唤醒;
若是,则统计所述终端***被所述应用程序通过数据包唤醒的唤醒频率;
判断所述唤醒频率是否大于预设频率阈值;
若是,则将所述应用程序上报给后台管理***。
本发明实施例提供一种存储介质,包括计算机程序,所述计算机程序被处理器加载并执行时,实现本发明实施例提供的终端***的唤醒监控方法中的步骤。
本发明实施例提供的终端,包括:
检测模块,用于检测终端***是否被应用程序通过数据包唤醒;
统计模块,用于在检测到终端***被应用程序通过数据包唤醒时,统计所述终端***被所述应用程序通过数据包唤醒的唤醒频率;
判断模块,用于判断所述唤醒频率是否大于预设频率阈值;
上报模块,用于在所述唤醒频率大于预设频率阈值时,将所述应用程序上报给后台管理***。
本发明实施例提供一种电子设备,包括存储器,处理器,以及存储在所述存储器中并可在所述处理器中运行的计算机程序,所述处理器执行所述计算机程序时,实现如下步骤:
检测电子设备***是否被应用程序通过数据包唤醒;
若是,则统计所述电子设备***被所述应用程序通过数据包唤醒的唤醒频率;
判断所述唤醒频率是否大于预设频率阈值;
若是,则将所述应用程序上报给后台管理***。
有益效果
本发明实施例提供一种终端***的唤醒监控方法、存储介质、终端及电子设备,能够监控并上报通过数据包频繁唤醒终端***的异常应用程序,降低终端的功耗。
附图说明
图1是本发明实施例提供的终端***的唤醒监控方法的一个流程示意图。
图2是本发明实施例提供的终端***的唤醒监控方法的另一流程示意图。
图3是本发明实施例提供的终端的一个结构示意图。
图4是本发明实施例提供的电子设备的结构示意图。
图5是本发明实施例提供的电子设备的另一结构示意图。
本发明的最佳实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域技术人员在没有付出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
目前,很多应用程序为了保持服务器与终端的传输控制协议(Transmission Control Protocol, TCP)长连接,会不断地发送数据包给终端,以唤醒终端***。这将导致终端在休眠的时候出现耗电异常,如果这些应用程序无法被及时发现及处理,将导致终端续航时间变短、续航能力变差,影响用户的正常使用。
本发明实施例提供一种终端***的唤醒监控方法,包括:
检测终端***是否被应用程序通过数据包唤醒;
若是,则统计所述终端***被所述应用程序通过数据包唤醒的唤醒频率;
判断所述唤醒频率是否大于预设频率阈值;
若是,则将所述应用程序上报给后台管理***。
在一种实施方式中,所述检测终端***是否被应用程序通过数据包唤醒的步骤,可以包括:
通过监听接口检测用于监听终端***被应用程序通过数据包唤醒的驱动节点的值是否发生变化;
若发生变化,则确定终端***被应用程序通过数据包唤醒。
在一种实施方式中,在确定终端***被应用程序通过数据包唤醒之后,还可以包括:
获取唤醒所述终端***的所述应用程序的标识信息。
那么,所述将所述应用程序上报给后台管理***的步骤,可以包括:将所述应用程序的标识信息上报给后台管理***。
在一种实施方式中,所述获取唤醒所述终端***的所述应用程序的标识信息的步骤,可以包括:
通过流量统计接口读取在检测到终端***被应用程序通过数据包唤醒之前的第一预设时长内,流量有增加的应用程序的标识信息;
在读取的所有应用程序的标识信息中去除持有唤醒锁wakelock工作的应用程序的标识信息,剩余的应用程序的标识信息为唤醒所述终端***的所述应用程序的标识信息。
在一种实施方式中,所述获取唤醒所述终端***的所述应用程序的标识信息的步骤,可以包括:
获取唤醒所述终端***的所述应用程序的用户标识符。
那么,所述将所述应用程序的标识信息上报给后台管理***的步骤,可以包括:将所述应用程序的用户标识符上报给后台管理***。
在一种实施方式中,所述统计所述终端***被所述应用程序通过数据包唤醒的唤醒频率的步骤,可以包括:
在检测到终端***被应用程序通过数据包唤醒之后的第二预设时长内,统计终端***被应用程序通过数据包唤醒的唤醒累积时长及唤醒累积次数;
根据所述唤醒累积时长及唤醒累积次数计算唤醒频率。
在另一种实施方式中,所述统计所述终端***被所述应用程序通过数据包唤醒的唤醒频率的步骤,可以包括:
在检测到终端***被应用程序通过数据包唤醒之后的第二预设时长内,统计终端***被应用程序通过数据包唤醒的唤醒累积次数;
根据所述第二预设时长和所述唤醒累积次数计算唤醒频率。
本发明实施例提供的终端***的唤醒监控方法可以应用于终端中,终端包括但不限于手机、平板电脑等电子设备。
如图1所示,本实施例提供的终端***的唤醒监控方法包括如下步骤:
步骤101、检测终端***是否被应用程序通过数据包唤醒,若是,则执行步骤102,否则结束处理。
由于应用程序唤醒终端***的唤醒方式有两种,通过数据包唤醒与通过闹钟alarm唤醒,本实施例中,为监控应用程序通过数据包唤醒终端***的唤醒方式,可以在终端的内核中增加Uevent类型的驱动节点wakeup_reasons,在终端进入休眠状态后,利用驱动节点wakeup_reasons记录终端***被应用程序通过数据包唤醒的信息,所记录的信息可以是一个数值标志,例如在没有监听到终端***被应用程序通过数据包唤醒时,该数值标志为0,当监听到终端***被应用程序通过数据包唤醒时,该数值标志更新为非0值,例如1等,此处不做具体限定。因而,在本步骤中,可以通过监听接口检测驱动节点wakeup_reasons的值是否发生变化来判断终端***是否被应用程序通过数据包唤醒。
步骤102、统计所述终端***被所述应用程序通过数据包唤醒的唤醒频率。
唤醒频率可以通过唤醒时长及唤醒次数来确定。
步骤103、判断所述唤醒频率是否大于预设频率阈值,若大于,则执行步骤104,否则结束处理。
预设频率阈值可根据实际需求进行设置,若唤醒频率大于预设频率阈值,则说明应用程序通过数据包频繁地唤醒了终端***,该应用程序为异常应用程序。
步骤104、将所述应用程序上报给后台管理***。
在一种实施方式中,后台管理***可以是守护精灵、后台运维***等,将该应用程序上报给后台管理***之后,后台管理***可以卸载该应用程序,或者对该应用程序设置数据包唤醒限制等,以节省终端的功耗,保证用户的正常使用。
本实施例中,可以检测终端***是否被应用程序通过数据包唤醒,一旦检测到终端***被应用程序通过数据包唤醒,则统计终端***被该应用程序通过数据包唤醒的唤醒频率。如果唤醒频率大于预设频率阈值,则将该应用程序上报给后台管理***。后台管理***可以根据终端的上报及时发现通过数据包频繁唤醒终端***的异常应用程序并处理,从而降低了终端的功耗,保证了用户的正常使用。
如图2所示,本实施例提供的终端***的唤醒监控方法可以包括以下步骤:
步骤201、检测终端***是否被应用程序通过数据包唤醒,若是,则执行步骤202,否则结束处理。
由于应用程序唤醒终端***的唤醒方式有两种,通过数据包唤醒与通过闹钟alarm唤醒,本实施例中,为监控应用程序通过数据包唤醒终端***的唤醒方式,可以在终端的内核中增加Uevent类型的驱动节点wakeup_reasons,在终端进入休眠状态后,利用驱动节点wakeup_reasons记录终端***被应用程序通过数据包唤醒的信息,所记录的信息可以是一个数值标志,例如在没有监听到终端***被应用程序通过数据包唤醒时,该数值标志为0,当监听到终端***被应用程序通过数据包唤醒时,该数值标志更新为非0值,例如1等,此处不做具体限定。因而,在本步骤中,可以通过监听接口检测驱动节点wakeup_reasons的值是否发生变化来判断终端***是否被应用程序通过数据包唤醒。
步骤202、通过流量统计接口读取在检测到终端***被应用程序通过数据包唤醒之前的第一预设时长内,流量有增加的应用程序的标识信息。
在一种实施方式中,应用程序的标识信息可以是应用程序的用户标识符(User IDentity,UID), UID可以用来唯一标识一个应用程序。
在步骤201检测到了终端***被应用程序通过数据包唤醒,但并不知道具体是被哪个应用程序所唤醒,因此,在步骤202将确定通过数据包唤醒终端***的具体应用程序。
如果应用程序通过数据包唤醒了终端***,由于数据包的传输,会导致对应应用程序的流量增加,因而,本实施例中,可以通过流量统计接口读取在检测到终端***被应用程序通过数据包唤醒之前的第一预设时长内,流量有增加的应用程序的标识信息,第一预设时长可以为1秒、2秒等,可视实际需求设置。
步骤203、去除持有唤醒锁wakelock工作的应用程序的标识信息,剩余的应用程序的标识信息为唤醒所述终端***的所述应用程序的标识信息。
通常来说,终端***被应用程序唤醒后,如果应用程序持有唤醒锁wakelock,则允许应用继续工作,这种情况下的唤醒通常会被认为是正常唤醒。因而,本实施例中,需要在读取的所有流量有增加的应用程序的标识信息中去除掉持有唤醒锁wakelock工作的应用程序的标识信息,剩余的应用程序的标识信息为本发明所要记录的唤醒所述终端***的所述应用程序的标识信息。
步骤204、统计所述终端***被所述应用程序通过数据包唤醒的唤醒频率。
在一种实施方式中,可以在检测到终端***被应用程序通过数据包唤醒之后的第二预设时长内,统计终端***被所述应用程序通过数据包唤醒的唤醒频率,第二预设时长可以根据实际统计需求设置,例如设置为四小时、八小时等,此处不做具体限定。在一实施方式中,可以统计终端***在第二预设时长内被应用程序通过数据包唤醒的唤醒累积时长及唤醒累积次数,根据所述唤醒累积时长及唤醒累积次数计算所述唤醒频率。
在一种实施方式中,统计唤醒累积时长的方法可如下:
可以针对每个应用程序设置一个计时器,在开始统计之前,将每个应用程序的计时器都清零,在统计的过程中,在获取通过数据包唤醒终端***的应用程序的标识信息之后,启动所述标识信息对应的应用程序的计时器记录唤醒时长,此后终端***每被该应用程序通过数据包唤醒一次,就累积记录一次唤醒时长,在到达第二预设时长之后,读取该应用程序对应的计时器数值,即得到该应用程序对应的唤醒累积时长。
在一种实施方式中,统计唤醒累积次数的方法可如下:
可以针对每个应用程序设置一个计数器,在开始统计之前,将每个应用程序的计数器都清零,在统计的过程中,在获取通过数据包唤醒终端***的应用程序的标识信息之后,将所述标识信息对应的应用程序的计数器加一,此后终端***每被该应用程序通过数据包唤醒一次,就将对于计数器累积加一,在到达第二预设时长之后,读取该应用程序对应的计数器数值,即得到该应用程序对应的唤醒累积次数。
当然,在另一种实施方式中,也可以不统计应用程序的唤醒累积时长,直接统计第二预设时长内的唤醒累积次数,根据第二预设时长及唤醒累积次数计算唤醒频率,此处不做具体限定。
那么,在一实施方式中,步骤204中统计所述终端***被所述应用程序通过数据包唤醒的唤醒频率的步骤,也可以包括:
在检测到终端***被应用程序通过数据包唤醒之后的第二预设时长内,统计终端***被应用程序通过数据包唤醒的唤醒累积次数;
根据所述第二预设时长和所述唤醒累积次数计算唤醒频率。
步骤205、判断所述唤醒频率是否大于预设频率阈值,若大于,则执行步骤206,否则结束处理。
预设频率阈值可根据第二预设时长等实际数据进行设置,若唤醒频率大于预设频率阈值,则说明应用程序通过数据包频繁地唤醒了终端***,该应用程序为异常应用程序。
步骤206、将所述应用程序的标识信息上报给后台管理***。
在一种实施方式中,后台管理***可以是守护精灵、后台运维***等,将该应用程序上报给后台管理***之后,后台管理***可以卸载该应用程序,或者对该应用程序设置数据包唤醒限制等,以节省终端的功耗,保证用户的正常使用。
本实施例中,可以检测终端***是否被应用程序通过数据包唤醒,一旦检测到终端***被应用程序通过数据包唤醒,则统计终端***被该应用程序通过数据包唤醒的唤醒频率。如果唤醒频率大于预设频率阈值,则将该应用程序上报给后台管理***。后台管理***可以根据终端的上报及时发现通过数据包频繁唤醒终端***的异常应用程序并处理,从而降低了终端的功耗,保证了用户的正常使用。
本发明实施例还提供了一种终端,如图3所示,本实施例的终端可以包括:
检测模块301,用于检测终端***是否被应用程序通过数据包唤醒。
统计模块302,用于在检测到终端***被应用程序通过数据包唤醒时,统计所述终端***被所述应用程序通过数据包唤醒的唤醒频率。
判断模块303,用于判断所述唤醒频率是否大于预设频率阈值。
上报模块304,用于在所述唤醒频率大于预设频率阈值时,将所述应用程序上报给后台管理***。
在一种实施方式中,所述检测模块301可以包括:
检测子模块,用于通过监听接口检测用于监听终端***被应用程序通过数据包唤醒的驱动节点的值是否发生变化。
确定子模块,用于在所述检测子模块检测到所述驱动节点的值发生变化时,确定终端***被应用程序通过数据包唤醒。
在一种实施方式中,所述终端还可以包括:
获取模块,用于获取唤醒所述终端***的所述应用程序的标识信息。
所述上报模块304用于,将所述应用程序的标识信息上报给后台管理***。
在一种实施方式中,获取模块可以用于:获取唤醒所述终端***的所述应用程序的用户标识符。
那么,上报模块304可以用于:将所述应用程序的用户标识符上报给后台管理***。
在一种实施方式中,所述获取模块可以包括:
读取子模块,用于通过流量统计接口读取在检测到终端***被应用程序通过数据包唤醒之前的第一预设时长内,流量有增加的应用程序的标识信息。
去除子模块,用于在读取的所有应用程序的标识信息中去除持有唤醒锁wakelock工作的应用程序的标识信息,剩余的应用程序的标识信息为唤醒所述终端***的所述应用程序的标识信息。
在一种实施方式中,所述统计模块302可以包括:
统计子模块,用于在检测到终端***被应用程序通过数据包唤醒之后的第二预设时长内,统计终端***被应用程序通过数据包唤醒的唤醒累积时长及唤醒累积次数。
计算子模块,用于根据所述唤醒累积时长及唤醒累积次数计算所述唤醒频率。
在另一种实施方式中,统计模块302还可以用于:
在检测到终端***被应用程序通过数据包唤醒之后的第二预设时长内,统计终端***被应用程序通过数据包唤醒的唤醒累积次数;
根据所述第二预设时长和所述唤醒累积次数计算唤醒频率。
需要说明的是,本实施例中未做详细描述的步骤及对应有益效果均可参阅前述方法实施例中对应的描述,此处不再赘述。
本实施例中,检测模块可以检测终端***是否被应用程序通过数据包唤醒,一旦检测到终端***被应用程序通过数据包唤醒,则统计模块统计终端***被该应用程序通过数据包唤醒的唤醒频率。如果判断模块判断出唤醒频率大于预设频率阈值,则上报模块将该应用程序上报给后台管理***。后台管理***可以根据终端的上报及时发现通过数据包频繁唤醒终端***的异常应用程序并处理,从而降低了终端的功耗,保证了用户的正常使用。
本发明实施例提供一种计算机可读的存储介质,包括计算机程序,所述计算机程序被处理器加载并执行时,可以实现本发明实施例提供的终端***的唤醒监控方法中的步骤。
本发明实施例还提供一种电子设备,包括存储器,处理器,以及存储在所述存储器中并可在所述处理器中运行的计算机程序,所述处理器执行所述计算机程序时可以实现本发明实施例提供的终端***的唤醒监控方法中的步骤。
例如,该电子设备可以是诸如智能手机或平板电脑等的移动终端设备。请参阅图4,图4为本发明实施例提供的电子设备的结构示意图。该电子设备400可以包括存储器401、处理器402以及调制解调模块403等部件。本领域技术人员可以理解,图4中示出的电子设备结构并不构成对电子设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
存储器401可用于存储应用程序和数据。存储器401存储的应用程序中包含有可执行代码。应用程序可以组成各种功能模块。处理器402通过运行存储在存储器401的应用程序,从而执行各种功能应用以及数据处理。
处理器402是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器401内的应用程序,以及调用存储在存储器401内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。
调制解调模块403用于将二进制数字信息转换成可以通过普通公共信息***传送的模拟信号,或将接收的模拟信号转换成数字信号。在一种实施方式中,可以通过专门的调制解调器实现上述功能。
在本实施例中,电子设备中的处理器402会按照如下的指令,将一个或一个以上的应用程序的进程对应的可执行代码加载到存储器401中,并由处理器402来运行存储在存储器401中的应用程序,从而实现步骤:
检测电子设备***是否被应用程序通过数据包唤醒;
若是,则统计所述电子设备***被所述应用程序通过数据包唤醒的唤醒频率;
判断所述唤醒频率是否大于预设频率阈值;
若是,则将所述应用程序上报给后台管理***。
在一种实施方式中,处理器402执行所述检测电子设备***是否被应用程序通过数据包唤醒的步骤时,可以执行如下步骤:
通过监听接口检测用于监听电子设备***被应用程序通过数据包唤醒的驱动节点的值是否发生变化;
若发生变化,则确定电子设备***被应用程序通过数据包唤醒。
在一种实施方式中,处理器402在执行所述确定电子设备***被应用程序通过数据包唤醒的步骤之后,还可以执行如下步骤:获取唤醒所述电子设备***的所述应用程序的标识信息。
那么,处理器402在执行所述将所述应用程序上报给后台管理***的步骤时,可以执行如下步骤:将所述应用程序的标识信息上报给后台管理***。
在一种实施方式中,处理器402在执行所述获取唤醒所述电子设备***的所述应用程序的标识信息的步骤时,可以执行如下步骤:
通过流量统计接口读取在检测到电子设备***被应用程序通过数据包唤醒之前的第一预设时长内,流量有增加的应用程序的标识信息;
在读取的所有应用程序的标识信息中去除持有唤醒锁wakelock工作的应用程序的标识信息,剩余的应用程序的标识信息为唤醒所述电子设备***的所述应用程序的标识信息。
在一种实施方式中,处理器402在执行所述获取唤醒所述电子设备***的所述应用程序的标识信息的步骤时,可以执行如下步骤:获取唤醒所述电子设备***的所述应用程序的用户标识符;
那么,处理器402在执行所述将所述应用程序的标识信息上报给后台管理***的步骤时,可以执行如下步骤:将所述应用程序的用户标识符上报给后台管理***。
在一种实施方式中,处理器402在执行所述统计所述电子设备***被所述应用程序通过数据包唤醒的唤醒频率的步骤时,可以执行如下步骤:
在检测到电子设备***被应用程序通过数据包唤醒之后的第二预设时长内,统计电子设备***被应用程序通过数据包唤醒的唤醒累积时长及唤醒累积次数;
根据所述唤醒累积时长及唤醒累积次数计算唤醒频率。
在一种实施方式中,处理器402在执行所述统计所述电子设备***被所述应用程序通过数据包唤醒的唤醒频率的步骤时,可以执行如下步骤:
在检测到电子设备***被应用程序通过数据包唤醒之后的第二预设时长内,统计电子设备***被应用程序通过数据包唤醒的唤醒累积次数;
根据所述第二预设时长和所述唤醒累积次数计算唤醒频率。
请参阅图5,图5为本发明实施例提供的电子设备的另一结构示意图。在一种实施方式中,电子设备400还可以包括射频(RF,Radio Frequency)电路404、输入单元405以及输出单元406。
射频电路404可用于收发信息,或通话过程中信号的接收和发送,特别地,将基站的下行信息接收后,交由一个或者一个以上处理器402处理;另外,将涉及上行的数据发送给基站。
输入单元405可用于接收输入的数字、字符信息或用户特征信息(比如指纹),以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。在一实施例中,输入单元405可包括触敏表面以及其他输入设备。触敏表面,也称为触摸显示屏或者触控板。
输出单元406可用于显示由用户输入的信息或提供给用户的信息以及移动终端的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。例如,输出单元406可以为显示面板。
尽管图5中未示出,电子设备还可以包括摄像头、蓝牙模块、无线保真模块等,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个模块或组件可以结合或者可以集成到另一个***,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本发明各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。

Claims (20)

  1. 一种终端***的唤醒监控方法,其中,包括:
    检测终端***是否被应用程序通过数据包唤醒;
    若是,则统计所述终端***被所述应用程序通过数据包唤醒的唤醒频率;
    判断所述唤醒频率是否大于预设频率阈值;
    若是,则将所述应用程序上报给后台管理***。
  2. 根据权利要求1所述的方法,其中,所述检测终端***是否被应用程序通过数据包唤醒包括:
    通过监听接口检测用于监听终端***被应用程序通过数据包唤醒的驱动节点的值是否发生变化;
    若发生变化,则确定终端***被应用程序通过数据包唤醒。
  3. 根据权利要求2所述的方法,其中,在确定终端***被应用程序通过数据包唤醒之后,所述方法还包括:
    获取唤醒所述终端***的所述应用程序的标识信息;
    所述将所述应用程序上报给后台管理***包括:
    将所述应用程序的标识信息上报给后台管理***。
  4. 根据权利要求3所述的方法,其中,所述获取唤醒所述终端***的所述应用程序的标识信息包括:
    通过流量统计接口读取在检测到终端***被应用程序通过数据包唤醒之前的第一预设时长内,流量有增加的应用程序的标识信息;
    在读取的所有应用程序的标识信息中去除持有唤醒锁wakelock工作的应用程序的标识信息,剩余的应用程序的标识信息为唤醒所述终端***的所述应用程序的标识信息。
  5. 根据权利要求3所述的方法,其中,所述获取唤醒所述终端***的所述应用程序的标识信息,包括:
    获取唤醒所述终端***的所述应用程序的用户标识符;
    所述将所述应用程序的标识信息上报给后台管理***,包括:将所述应用程序的用户标识符上报给后台管理***。
  6. 根据权利要求1所述的方法,其中,所述统计所述终端***被所述应用程序通过数据包唤醒的唤醒频率包括:
    在检测到终端***被应用程序通过数据包唤醒之后的第二预设时长内,统计终端***被应用程序通过数据包唤醒的唤醒累积时长及唤醒累积次数;
    根据所述唤醒累积时长及唤醒累积次数计算唤醒频率。
  7. 根据权利要求1所述的方法,其中,所述统计所述终端***被所述应用程序通过数据包唤醒的唤醒频率,包括:
    在检测到终端***被应用程序通过数据包唤醒之后的第二预设时长内,统计终端***被应用程序通过数据包唤醒的唤醒累积次数;
    根据所述第二预设时长和所述唤醒累积次数计算唤醒频率。
  8. 一种存储介质,包括计算机程序,其中,所述计算机程序被处理器加载并执行时,实现权利要求1至7中任一所述的终端***的唤醒监控方法中的步骤。
  9. 一种终端,其中,包括:
    检测模块,用于检测终端***是否被应用程序通过数据包唤醒;
    统计模块,用于在检测到终端***被应用程序通过数据包唤醒时,统计所述终端***被所述应用程序通过数据包唤醒的唤醒频率;
    判断模块,用于判断所述唤醒频率是否大于预设频率阈值;
    上报模块,用于在所述唤醒频率大于预设频率阈值时,将所述应用程序上报给后台管理***。
  10. 根据权利要求9所述的终端,其中,所述检测模块包括:
    检测子模块,用于通过监听接口检测用于监听终端***被应用程序通过数据包唤醒的驱动节点的值是否发生变化;
    确定子模块,用于在所述检测子模块检测到所述驱动节点的值发生变化时,确定终端***被应用程序通过数据包唤醒。
  11. 根据权利要求10所述的终端,其中,所述终端还包括:
    获取模块,用于获取唤醒所述终端***的所述应用程序的标识信息;
    所述上报模块用于,将所述应用程序的标识信息上报给后台管理***。
  12. 根据权利要求11所述的终端,其中,所述获取模块包括:
    读取子模块,用于通过流量统计接口读取在检测到终端***被应用程序通过数据包唤醒之前的第一预设时长内,流量有增加的应用程序的标识信息;
    去除子模块,用于在读取的所有应用程序的标识信息中去除持有唤醒锁wakelock工作的应用程序的标识信息,剩余的应用程序的标识信息为唤醒所述终端***的所述应用程序的标识信息。
  13. 根据权利要求9所述的终端,其中,所述统计模块包括:
    统计子模块,用于在检测到终端***被应用程序通过数据包唤醒之后的第二预设时长内,统计终端***被应用程序通过数据包唤醒的唤醒累积时长及唤醒累积次数;
    计算子模块,用于根据所述唤醒累积时长及唤醒累积次数计算唤醒频率。
  14. 一种电子设备,包括存储器,处理器,以及存储在所述存储器中并可在所述处理器中运行的计算机程序,其中,所述处理器执行所述计算机程序时,实现如下步骤:
    检测电子设备***是否被应用程序通过数据包唤醒;
    若是,则统计所述电子设备***被所述应用程序通过数据包唤醒的唤醒频率;
    判断所述唤醒频率是否大于预设频率阈值;
    若是,则将所述应用程序上报给后台管理***。
  15. 根据权利要求14所述的电子设备,其中,所述处理器用于执行如下步骤:
    通过监听接口检测用于监听电子设备***被应用程序通过数据包唤醒的驱动节点的值是否发生变化;
    若发生变化,则确定电子设备***被应用程序通过数据包唤醒。
  16. 根据权利要求15所述的电子设备,其中,所述处理器用于执行如下步骤:
    获取唤醒所述电子设备***的所述应用程序的标识信息;
    将所述应用程序的标识信息上报给后台管理***。
  17. 根据权利要求16所述的电子设备,其中,所述处理器用于执行如下步骤:
    通过流量统计接口读取在检测到电子设备***被应用程序通过数据包唤醒之前的第一预设时长内,流量有增加的应用程序的标识信息;
    在读取的所有应用程序的标识信息中去除持有唤醒锁wakelock工作的应用程序的标识信息,剩余的应用程序的标识信息为唤醒所述电子设备***的所述应用程序的标识信息。
  18. 根据权利要求16所述的电子设备,其中,所述处理器用于执行如下步骤:
    获取唤醒所述电子设备***的所述应用程序的用户标识符;
    将所述应用程序的用户标识符上报给后台管理***。
  19. 根据权利要求14所述的电子设备,其中,所述处理器用于执行如下步骤:
    在检测到电子设备***被应用程序通过数据包唤醒之后的第二预设时长内,统计电子设备***被应用程序通过数据包唤醒的唤醒累积时长及唤醒累积次数;
    根据所述唤醒累积时长及唤醒累积次数计算唤醒频率。
  20. 根据权利要求14所述的电子设备,其中,所述处理器用于执行如下步骤:
    在检测到电子设备***被应用程序通过数据包唤醒之后的第二预设时长内,统计电子设备***被应用程序通过数据包唤醒的唤醒累积次数;
    根据所述第二预设时长和所述唤醒累积次数计算唤醒频率。
PCT/CN2017/087625 2016-07-11 2017-06-08 终端***的唤醒监控方法、存储介质、终端及电子设备 WO2018010507A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610547299.1A CN106227321B (zh) 2016-07-11 2016-07-11 一种终端***的唤醒监控方法及终端
CN201610547299.1 2016-07-11

Publications (1)

Publication Number Publication Date
WO2018010507A1 true WO2018010507A1 (zh) 2018-01-18

Family

ID=57519697

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/087625 WO2018010507A1 (zh) 2016-07-11 2017-06-08 终端***的唤醒监控方法、存储介质、终端及电子设备

Country Status (2)

Country Link
CN (1) CN106227321B (zh)
WO (1) WO2018010507A1 (zh)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109901697A (zh) * 2019-03-04 2019-06-18 上海卓易科技股份有限公司 一种降低***功耗的方法、装置、设备及介质
CN112147702A (zh) * 2020-09-27 2020-12-29 潍柴动力股份有限公司 车载终端的拆除检测方法、装置、车载终端及存储介质
CN112540666A (zh) * 2019-09-20 2021-03-23 中兴通讯股份有限公司 应用解冻方法、终端设备、计算机设备和计算机可读介质
CN113055921A (zh) * 2021-03-29 2021-06-29 中国联合网络通信集团有限公司 故障处理方法和终端
CN113114862A (zh) * 2021-03-29 2021-07-13 中国联合网络通信集团有限公司 语音信箱的故障处理方法和服务器
CN113127214A (zh) * 2019-12-30 2021-07-16 中移(成都)信息通信科技有限公司 一种定时唤醒处理方法、装置、终端设备及存储介质
CN114422881A (zh) * 2022-01-18 2022-04-29 宁波东海集团有限公司 一种低功率通讯方法、***、存储介质及智能终端

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106227321B (zh) * 2016-07-11 2018-01-26 广东欧珀移动通信有限公司 一种终端***的唤醒监控方法及终端
CN107168851B (zh) * 2017-05-08 2019-02-05 Oppo广东移动通信有限公司 信息处理方法、装置和移动终端
CN108008979B (zh) * 2017-11-28 2021-10-22 深圳天珑无线科技有限公司 终端唤醒的管理方法及其终端、存储介质
CN110727337B (zh) * 2019-10-18 2021-04-27 东莞市小精灵教育软件有限公司 获取***功耗信息的方法及装置及存储介质及电子设备
CN113296934A (zh) * 2020-10-30 2021-08-24 阿里巴巴集团控股有限公司 调度进程的方法以及装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104184907A (zh) * 2013-05-27 2014-12-03 腾讯科技(深圳)有限公司 终端应用软件在待机状态下的唤醒数据的检测方法及终端
CN104221445A (zh) * 2013-11-15 2014-12-17 华为终端有限公司 一种唤醒终端***的方法及终端
CN104298584A (zh) * 2013-07-19 2015-01-21 贝壳网际(北京)安全技术有限公司 耗电异常的应用程序获取方法、装置和移动终端
CN106227321A (zh) * 2016-07-11 2016-12-14 广东欧珀移动通信有限公司 一种终端***的唤醒监控方法及终端

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104184907A (zh) * 2013-05-27 2014-12-03 腾讯科技(深圳)有限公司 终端应用软件在待机状态下的唤醒数据的检测方法及终端
CN104298584A (zh) * 2013-07-19 2015-01-21 贝壳网际(北京)安全技术有限公司 耗电异常的应用程序获取方法、装置和移动终端
CN104221445A (zh) * 2013-11-15 2014-12-17 华为终端有限公司 一种唤醒终端***的方法及终端
CN106227321A (zh) * 2016-07-11 2016-12-14 广东欧珀移动通信有限公司 一种终端***的唤醒监控方法及终端

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109901697A (zh) * 2019-03-04 2019-06-18 上海卓易科技股份有限公司 一种降低***功耗的方法、装置、设备及介质
CN112540666A (zh) * 2019-09-20 2021-03-23 中兴通讯股份有限公司 应用解冻方法、终端设备、计算机设备和计算机可读介质
CN113127214A (zh) * 2019-12-30 2021-07-16 中移(成都)信息通信科技有限公司 一种定时唤醒处理方法、装置、终端设备及存储介质
CN113127214B (zh) * 2019-12-30 2024-02-06 中移(成都)信息通信科技有限公司 一种定时唤醒处理方法、装置、终端设备及存储介质
CN112147702A (zh) * 2020-09-27 2020-12-29 潍柴动力股份有限公司 车载终端的拆除检测方法、装置、车载终端及存储介质
CN113055921A (zh) * 2021-03-29 2021-06-29 中国联合网络通信集团有限公司 故障处理方法和终端
CN113114862A (zh) * 2021-03-29 2021-07-13 中国联合网络通信集团有限公司 语音信箱的故障处理方法和服务器
CN113055921B (zh) * 2021-03-29 2022-09-23 中国联合网络通信集团有限公司 故障处理方法和终端
CN113114862B (zh) * 2021-03-29 2022-12-02 中国联合网络通信集团有限公司 语音信箱的故障处理方法和服务器
CN114422881A (zh) * 2022-01-18 2022-04-29 宁波东海集团有限公司 一种低功率通讯方法、***、存储介质及智能终端
CN114422881B (zh) * 2022-01-18 2023-08-25 宁波东海集团有限公司 一种低功率通讯方法、***、存储介质及智能终端

Also Published As

Publication number Publication date
CN106227321A (zh) 2016-12-14
CN106227321B (zh) 2018-01-26

Similar Documents

Publication Publication Date Title
WO2018010507A1 (zh) 终端***的唤醒监控方法、存储介质、终端及电子设备
WO2018076861A1 (zh) 数据传输的控制方法、装置、存储介质、服务器及***
WO2018076867A1 (zh) 数据备份的删除方法、装置、***、存储介质和服务器
WO2017206875A1 (zh) 一种基于数据包的处理方法、装置、存储介质及电子设备
WO2017206862A1 (zh) 一种基于亮屏锁的处理方法、装置、存储介质及电子设备
WO2017206878A1 (zh) 一种基于唤醒锁的处理方法、装置、存储介质及电子设备
WO2018129977A1 (zh) 一种充电控制方法、装置、存储介质和计算机设备
WO2017067293A1 (zh) 一种指纹解锁的方法、装置和终端
WO2018214320A1 (zh) 数据库业务逻辑监控方法、***、及存储介质
WO2017206880A1 (zh) 终端数据处理方法、装置、存储介质及电子设备
WO2018018772A1 (zh) 一种后台进程管理方法及终端设备
WO2018076841A1 (zh) 数据分享方法、装置、存储介质及服务器
WO2018233352A1 (zh) 数据传输方法、装置、终端以及计算机可读存储介质
WO2018161593A1 (zh) 广播处理方法、装置、存储介质和终端设备
WO2015143776A1 (zh) 一种多模省电的多媒体传输方法及其***
WO2018192164A1 (zh) 用于降低Type-C接口功耗的方法及装置和***
WO2018161601A1 (zh) 屏幕背光调节方法、装置、存储介质及电子设备
WO2017206890A1 (zh) 一种基于唤醒锁的处理方法、装置、存储介质及电子设备
WO2014200319A1 (en) Terminal and application synchronization method therefor
WO2018171534A1 (zh) 基于移动终端的双摄像头供电控制方法、***及移动终端
WO2018161580A1 (zh) 广播的控制方法、装置、存储介质及电子设备
WO2018076890A1 (zh) 数据备份的方法、装置、存储介质、服务器及***
WO2019100593A1 (zh) 电视待机开机方法、电视及计算机可读存储介质
WO2017206886A1 (zh) 一种唤醒锁释放方法、装置、存储介质及电子设备
WO2018076881A1 (zh) 数据同步方法、装置、存储介质及服务器

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