Movatterモバイル変換


[0]ホーム

URL:


CN108541013B - Information processing method, device, mobile terminal, and computer-readable storage medium - Google Patents

Information processing method, device, mobile terminal, and computer-readable storage medium
Download PDF

Info

Publication number
CN108541013B
CN108541013BCN201810270073.0ACN201810270073ACN108541013BCN 108541013 BCN108541013 BCN 108541013BCN 201810270073 ACN201810270073 ACN 201810270073ACN 108541013 BCN108541013 BCN 108541013B
Authority
CN
China
Prior art keywords
mobile terminal
abnormal
screen
application program
power consumption
Prior art date
Legal status (The legal status 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 status listed.)
Expired - Fee Related
Application number
CN201810270073.0A
Other languages
Chinese (zh)
Other versions
CN108541013A (en
Inventor
易敏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
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 Guangdong Oppo Mobile Telecommunications Corp LtdfiledCriticalGuangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810270073.0ApriorityCriticalpatent/CN108541013B/en
Publication of CN108541013ApublicationCriticalpatent/CN108541013A/en
Application grantedgrantedCritical
Publication of CN108541013BpublicationCriticalpatent/CN108541013B/en
Expired - Fee Relatedlegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

Translated fromChinese

本申请提供一种信息处理方法、装置、移动终端和计算机可读存储介质。上述方法包括:当检测到移动终端在灭屏期间耗电异常时,获取所述移动终端中各个子系统的第一唤醒次数;根据所述移动终端中各个子系统的第一唤醒次数检测耗电异常类型;当所述耗电异常类型为Wi‑Fi唤醒时,获取Wi‑Fi唤醒中单播包唤醒对应的目标应用程序标识;获取所述目标应用程序标识对应的Wi‑Fi唤醒次数,根据所述Wi‑Fi唤醒次数确定异常应用程序标识。上述方法。在检测到移动终端Wi‑Fi唤醒异常时,获取Wi‑Fi唤醒中单播包对应的应用程序,将Wi‑Fi唤醒与应用程序相关联,并对应用程序的唤醒数据进行统计分析,能够快速定位异常应用程序,对检测出的异常应用程序进行优化处理,降低移动终端的待机功耗。

Figure 201810270073

The present application provides an information processing method, device, mobile terminal, and computer-readable storage medium. The above method includes: when it is detected that the power consumption of the mobile terminal is abnormal during the screen off period, acquiring the first wake-up times of each subsystem in the mobile terminal; and detecting the power consumption according to the first wake-up times of each subsystem in the mobile terminal. Exception type; when the abnormal power consumption type is Wi-Fi wake-up, obtain the target application identifier corresponding to unicast packet wake-up in Wi-Fi wake-up; obtain the Wi-Fi wake-up times corresponding to the target application identifier, according to The number of Wi‑Fi wakeups determines the abnormal application identifier. the above method. When an abnormal Wi-Fi wake-up of the mobile terminal is detected, obtain the application corresponding to the unicast packet in the Wi-Fi wake-up, associate the Wi-Fi wake-up with the application, and perform statistical analysis on the wake-up data of the application, which can quickly Locate abnormal applications, optimize the detected abnormal applications, and reduce the standby power consumption of mobile terminals.

Figure 201810270073

Description

Translated fromChinese
信息处理方法、装置、移动终端和计算机可读存储介质Information processing method, apparatus, mobile terminal, and computer-readable storage medium

技术领域technical field

本申请涉及计算机技术领域,特别是涉及一种信息处理方法、装置、移动终端和计算机可读存储介质。The present application relates to the field of computer technology, and in particular, to an information processing method, device, mobile terminal, and computer-readable storage medium.

背景技术Background technique

随着智能移动终端的迅速发展,智能移动终端在用户生活中越来越常见。通过智能移动终端用户可方便与他人进行沟通和交流。在智能移动终端的使用过程中,各种应用程序、智能移动终端硬件、智能移动终端系统均会造成智能移动终端耗电,导致智能移动终端的续航能力降低。With the rapid development of smart mobile terminals, smart mobile terminals are becoming more and more common in users' lives. Through intelligent mobile terminal users can easily communicate and communicate with others. During the use of the intelligent mobile terminal, various application programs, intelligent mobile terminal hardware, and intelligent mobile terminal systems will cause power consumption of the intelligent mobile terminal, resulting in reduced battery life of the intelligent mobile terminal.

发明内容SUMMARY OF THE INVENTION

本申请实施例提供一种信息处理方法、装置、移动终端和计算机可读存储介质,可以在移动终端中Wi-Fi唤醒异常时检测Wi-Fi唤醒对应的应用程序。Embodiments of the present application provide an information processing method, device, mobile terminal, and computer-readable storage medium, which can detect an application program corresponding to Wi-Fi wake-up when Wi-Fi wake-up is abnormal in the mobile terminal.

一种信息处理方法,包括:An information processing method, comprising:

当检测到移动终端在灭屏期间耗电异常时,获取所述移动终端中各个子系统的第一唤醒次数;When it is detected that the power consumption of the mobile terminal is abnormal during the screen-off period, acquiring the first wake-up times of each subsystem in the mobile terminal;

根据所述移动终端中各个子系统的第一唤醒次数检测耗电异常类型;Detecting the abnormal power consumption type according to the first wake-up times of each subsystem in the mobile terminal;

当所述耗电异常类型为Wi-Fi唤醒时,获取Wi-Fi唤醒中单播包唤醒对应的目标应用程序标识;When the abnormal power consumption type is Wi-Fi wake-up, obtain the target application identifier corresponding to unicast packet wake-up in Wi-Fi wake-up;

获取所述目标应用程序标识对应的Wi-Fi唤醒次数,根据所述Wi-Fi唤醒次数确定异常应用程序标识。Obtain the Wi-Fi wake-up times corresponding to the target application identifier, and determine the abnormal application identifier according to the Wi-Fi wake-up times.

一种信息处理装置,包括:An information processing device, comprising:

第一获取模块,用于当检测到移动终端在灭屏期间耗电异常时,获取所述移动终端中各个子系统的第一唤醒次数;a first obtaining module, configured to obtain the first wake-up times of each subsystem in the mobile terminal when it is detected that the mobile terminal consumes abnormal power during the screen-off period;

检测模块,用于根据所述移动终端中各个子系统的第一唤醒次数检测耗电异常类型;a detection module, configured to detect the abnormal power consumption type according to the first wake-up times of each subsystem in the mobile terminal;

第二获取模块,用于当所述耗电异常类型为Wi-Fi唤醒时,获取Wi-Fi唤醒中单播包唤醒对应的目标应用程序标识;a second obtaining module, configured to obtain the target application identifier corresponding to the unicast packet wake-up in the Wi-Fi wake-up when the abnormal power consumption type is Wi-Fi wake-up;

处理模块,用于获取所述目标应用程序标识对应的Wi-Fi唤醒次数,根据所述Wi-Fi唤醒次数对所述目标应用程序标识进行分类。A processing module, configured to obtain the Wi-Fi wake-up times corresponding to the target application identifier, and classify the target application identifier according to the Wi-Fi wake-up times.

一种移动终端,包括存储器及处理器,所述存储器中储存有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器执行如上所述的方法的步骤。A mobile terminal includes a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the steps of the above-mentioned method.

一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如上所述的方法的步骤。A computer-readable storage medium having stored thereon a computer program that, when executed by a processor, implements the steps of the method as described above.

本申请中,在检测到移动终端Wi-Fi唤醒异常时,获取Wi-Fi唤醒中单播包对应的应用程序,将Wi-Fi唤醒与应用程序相关联,并对应用程序的唤醒数据进行统计分析,有利于快速定位异常应用程序,对检测出的异常应用程序进行优化处理,降低移动终端的待机功耗。In this application, when it is detected that the mobile terminal Wi-Fi wake-up is abnormal, the application corresponding to the unicast packet in the Wi-Fi wake-up is obtained, the Wi-Fi wake-up is associated with the application, and the wake-up data of the application is counted The analysis is conducive to quickly locating abnormal applications, optimizing the detected abnormal applications, and reducing the standby power consumption of the mobile terminal.

附图说明Description of drawings

为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the accompanying drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are only These are some embodiments of the present application. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings without any creative effort.

图1为一个实施例中一种信息处理方法的流程图;1 is a flowchart of an information processing method in one embodiment;

图2为另一个实施例中一种信息处理方法的流程图;2 is a flowchart of an information processing method in another embodiment;

图3为另一个实施例中一种信息处理方法的流程图;3 is a flowchart of an information processing method in another embodiment;

图4为另一个实施例中一种信息处理方法的流程图;4 is a flowchart of an information processing method in another embodiment;

图5为一个实施例中信息处理装置的结构框图;5 is a structural block diagram of an information processing apparatus in one embodiment;

图6为另一个实施例中信息处理装置的结构框图;6 is a structural block diagram of an information processing apparatus in another embodiment;

图7为一个实施例中移动终端的内部结构示意图;7 is a schematic diagram of the internal structure of a mobile terminal in one embodiment;

图8为与本申请实施例提供的移动终端相关的手机的部分结构的框图。FIG. 8 is a block diagram of a partial structure of a mobile phone related to a mobile terminal provided by an embodiment of the present application.

具体实施方式Detailed ways

为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application will be described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, but not to limit the present application.

在一个实施例中,一种信息处理方法的应用场景包括:当检测到移动终端灭屏时,记录灭屏时刻;当移动终端由灭屏状态切换到亮屏状态时,记录亮屏时刻,则上述灭屏时刻与亮屏时刻之间的时间差为移动终端的灭屏时长。在移动终端灭屏期间,移动终端内应用程序运行等会造成移动终端耗电。移动终端在灭屏时刻的第一电池电量与亮屏时刻的第二电池电量之间的差值为移动终端在灭屏期间消耗的总电量,即移动终端在灭屏期间的耗电电量。在移动终端灭屏期间,移动终端的每个状态都会消耗对应的电量,上述对应的电量的累计值即为标准电量,上述标准电量表示移动终端在灭屏期间消耗的基本电量,可包括系统耗电、SIM(Subscriber Identification Module,用户身份识别卡)卡耗电、Wi-Fi(Wireless-Fidelity,无线保真)耗电等。在获取到耗电电量和标准电量后,可将移动终端灭屏期间的耗电电量和上述标准电量作比较,当耗电电量不大于上述标准电量时,表示移动终端在灭屏期间耗电正常;当耗电电量大于上述标准电量时,表示移动终端在灭屏期间耗电较多,则移动终端在灭屏期间耗电异常。当移动终端在灭屏期间耗电异常时,可进一步获取移动终端子系统的休眠比、各应用程序的耗电量、各应用程序的持锁时长等参数,根据上述参数判定移动终端耗电异常的原因。上述耗电异常的原因包括移动终端子系统异常、应用程序在后台下载、应用程序后台播放音乐等。在获取到移动终端耗电异常的原因后,移动终端可将耗电异常的原因展示在移动终端界面用于提醒用户,移动终端也可将耗电异常的原因上传到服务器,服务器根据获取的耗电异常的原因进行统计和分析,根据统计分析结果得到对移动终端进行耗电优化策略,并将上述耗电优化策略返回给移动终端。In one embodiment, an application scenario of an information processing method includes: when it is detected that the screen of the mobile terminal is off, recording the screen-off moment; when the mobile terminal switches from the screen-off state to the screen-on state, recording the screen-on moment, then The time difference between the above screen-off moment and the screen-on moment is the screen-off duration of the mobile terminal. When the screen of the mobile terminal is off, the running of applications in the mobile terminal will cause power consumption of the mobile terminal. The difference between the first battery power at the screen-off time of the mobile terminal and the second battery power at the screen-on time is the total power consumed by the mobile terminal during the screen-off period, that is, the power consumption of the mobile terminal during the screen-off period. When the screen of the mobile terminal is off, each state of the mobile terminal will consume the corresponding power. The accumulated value of the corresponding power is the standard power. The standard power represents the basic power consumed by the mobile terminal during the screen off, which may include system power consumption. Power consumption, SIM (Subscriber Identification Module, subscriber identification card) card power consumption, Wi-Fi (Wireless-Fidelity, wireless fidelity) power consumption, etc. After the power consumption and the standard power are obtained, the power consumption during the screen-off period of the mobile terminal can be compared with the above-mentioned standard power. When the power consumption is not greater than the above-mentioned standard power, it means that the mobile terminal consumes normal power during the screen-off period. ; When the power consumption is greater than the above-mentioned standard power, it means that the mobile terminal consumes a lot of power during the screen-off period, and the mobile terminal consumes abnormally during the screen-off period. When the power consumption of the mobile terminal is abnormal during the screen off period, parameters such as the sleep ratio of the mobile terminal subsystem, the power consumption of each application, and the lock-holding duration of each application can be further obtained, and the abnormal power consumption of the mobile terminal can be determined according to the above parameters. s reason. The reasons for the above abnormal power consumption include the abnormality of the mobile terminal subsystem, the downloading of the application in the background, and the background playing of the music of the application. After obtaining the reason for the abnormal power consumption of the mobile terminal, the mobile terminal can display the reason for the abnormal power consumption on the mobile terminal interface to remind the user, and the mobile terminal can also upload the reason for the abnormal power consumption to the server, and the server can display the reason for the abnormal power consumption to the server according to the obtained power consumption. Statistics and analysis are performed on the reasons for the abnormal power supply, and a power consumption optimization strategy for the mobile terminal is obtained according to the statistical analysis result, and the above-mentioned power consumption optimization strategy is returned to the mobile terminal.

图1为一个实施例中信息处理方法的流程图,如图1所示,一种信息处理方法,包括:FIG. 1 is a flowchart of an information processing method in an embodiment. As shown in FIG. 1, an information processing method includes:

步骤102,当检测到移动终端在灭屏期间耗电异常时,分别获取移动终端中各个子系统的第一唤醒次数。Step 102, when it is detected that the power consumption of the mobile terminal is abnormal during the screen-off period, respectively acquire the first wake-up times of each subsystem in the mobile terminal.

当移动终端处于灭屏状态时,移动终端中应用程序或子系统等运行可导致移动终端耗电,浪费移动终端功耗。当移动终端由灭屏状态切换到亮屏状态时,可获取移动终端在灭屏期间耗费的电量,根据上述移动终端在灭屏期间的耗费的电量来检测移动终端是否耗电异常。When the mobile terminal is in an off-screen state, the running of applications or subsystems in the mobile terminal may cause power consumption of the mobile terminal, which wastes power consumption of the mobile terminal. When the mobile terminal switches from the screen-off state to the screen-on state, the power consumption of the mobile terminal during the screen-off period can be obtained, and whether the power consumption of the mobile terminal is abnormal is detected according to the power consumption of the mobile terminal during the screen-off period.

在移动终端系统中通常会存在多个子系统,多个子系统之间具备独立运行的能力。多个子系统之间通过协同和交互能够实现移动终端的各项功能。移动终端子系统可包括:AP(Application Processer Sub System,应用处理器子系统)子系统、MPSS(ModemProcesser Sub System,调制解调器处理子系统)子系统、ADSP(Advanced Digital SignalProcessor,高级数字信号处理器)子系统等。其中AP子系统负责运行移动终端操作系统如Android操作系统以实现大部分与用户相关的多媒体任务;MPSS子系统,运行定制的实时操作系统以实现与用户连接相关的功能,例如Wi-Fi、通话等;ADSP子系统负责传感器、音频相关的任务和功能。There are usually multiple subsystems in a mobile terminal system, and the multiple subsystems have the ability to operate independently. Various functions of the mobile terminal can be realized through coordination and interaction between multiple subsystems. The mobile terminal subsystem may include: AP (Application Processer Sub System, application processor subsystem) subsystem, MPSS (ModemProcesser Sub System, modem processing subsystem) subsystem, ADSP (Advanced Digital SignalProcessor, advanced digital signal processor) subsystem system etc. The AP subsystem is responsible for running the mobile terminal operating system such as Android operating system to realize most multimedia tasks related to users; MPSS subsystem, running a customized real-time operating system to realize functions related to user connection, such as Wi-Fi, calling etc.; ADSP subsystem is responsible for sensor, audio related tasks and functions.

当检测到移动终端在灭屏期间耗电异常时,可分别获取移动终端中各个子系统的第一唤醒次数。上述移动终端中各个子系统的第一唤醒次数是指各个子系统在移动终端灭屏期间被唤醒的次数。在移动终端处于灭屏状态时,移动终端中各个子系统被频繁唤醒会造成移动终端异常耗电。When it is detected that the power consumption of the mobile terminal is abnormal during the screen-off period, the first wake-up times of each subsystem in the mobile terminal can be acquired respectively. The above-mentioned first wake-up times of each subsystem in the mobile terminal refers to the number of times each subsystem is woken up when the screen of the mobile terminal is off. When the mobile terminal is in an off-screen state, frequent awakening of various subsystems in the mobile terminal may cause abnormal power consumption of the mobile terminal.

步骤104,根据移动终端中各个子系统的第一唤醒次数检测耗电异常类型。Step 104: Detect the abnormal power consumption type according to the first wake-up times of each subsystem in the mobile terminal.

在获取到移动终端中各个子系统的第一唤醒次数后,可根据移动终端各个子系统的第一唤醒次数检测耗电异常类型。其中,可获取移动终端各个子系统的第一唤醒次数的累计值以及在移动终端灭屏期间进程异常终止的次数。当累计值与进程异常终止的次数的第一比值大于第二阈值时,判定移动终端耗电异常的原因为移动终端子系统异常唤醒。上述第二阈值可为用户设定的值,也可为移动终端设定的值。例如,移动终端各个子系统的第一唤醒次数的累计值为A,移动终端灭屏期间进程异常终止的次数为B。若A/B的值大于1/2,则移动终端各个子系统的唤醒次数较多,移动终端子系统异常唤醒。After acquiring the first wake-up times of each subsystem in the mobile terminal, the abnormal power consumption type can be detected according to the first wake-up times of each subsystem of the mobile terminal. Wherein, the accumulated value of the first wake-up times of each subsystem of the mobile terminal and the number of abnormal terminations of the process during the screen-off of the mobile terminal can be obtained. When the first ratio of the accumulated value to the number of times of abnormal termination of the process is greater than the second threshold, it is determined that the reason for the abnormal power consumption of the mobile terminal is that the mobile terminal subsystem wakes up abnormally. The above-mentioned second threshold may be a value set by the user or a value set by the mobile terminal. For example, the accumulated value of the first wake-up times of each subsystem of the mobile terminal is A, and the number of times the process is terminated abnormally during the screen off of the mobile terminal is B. If the value of A/B is greater than 1/2, each subsystem of the mobile terminal wakes up more times, and the subsystem of the mobile terminal wakes up abnormally.

当检测到移动终端耗电异常的原因为移动终端子系统异常唤醒时,再获取移动终端Wi-Fi子系统的第一唤醒次数与上述累计值的第二比值,当上述第二比值大于第三阈值时,上述移动终端子系统异常唤醒的类型为移动终端Wi-Fi子系统异常唤醒。上述第三阈值可为用户设定的值,也可为移动终端设定的值,例如,当移动终端中Wi-Fi子系统的第一唤醒次数与上述累计值的比值大于1/2时,判定移动终端子系统异常唤醒主要为Wi-Fi子系统异常唤醒,即移动终端子系统异常唤醒的类型为移动终端Wi-Fi子系统异常唤醒。When it is detected that the abnormal power consumption of the mobile terminal is caused by the abnormal wake-up of the mobile terminal subsystem, the second ratio of the first wake-up times of the Wi-Fi subsystem of the mobile terminal to the above-mentioned accumulated value is obtained, and when the above-mentioned second ratio is greater than the third When the threshold is exceeded, the above-mentioned type of abnormal wake-up of the mobile terminal subsystem is the abnormal wake-up of the Wi-Fi subsystem of the mobile terminal. The third threshold may be a value set by the user or a value set by the mobile terminal. For example, when the ratio of the first wake-up times of the Wi-Fi subsystem in the mobile terminal to the above-mentioned accumulated value is greater than 1/2, It is determined that the abnormal wake-up of the mobile terminal subsystem is mainly the abnormal wake-up of the Wi-Fi subsystem, that is, the type of abnormal wake-up of the mobile terminal subsystem is the abnormal wake-up of the mobile terminal Wi-Fi subsystem.

步骤106,当耗电异常类型为Wi-Fi唤醒时,获取Wi-Fi唤醒中单播包唤醒对应的目标应用程序标识。Step 106 , when the abnormal power consumption type is Wi-Fi wake-up, acquire the target application identifier corresponding to the unicast packet wake-up in Wi-Fi wake-up.

移动终端中Wi-Fi唤醒包括单播包唤醒和广播包唤醒。上述单播包是指以一对一模式传送的数据包,上述广播包是指以一对多模式传送的数据包。上述单播包与应用程序相对应。当检测到移动终端中Wi-Fi唤醒为单播包唤醒时,可查找上述单播包对应的目标应用程序标识。Wi-Fi wake-up in the mobile terminal includes unicast packet wake-up and broadcast packet wake-up. The above-mentioned unicast packet refers to a data packet transmitted in a one-to-one mode, and the above-mentioned broadcast packet refers to a data packet transmitted in a one-to-many mode. The above unicast packets correspond to applications. When it is detected that the Wi-Fi wake-up in the mobile terminal is a unicast packet wake-up, the target application identifier corresponding to the unicast packet can be searched.

在移动终端灭屏期间且移动终端连接Wi-Fi时,若移动终端接收到对Wi-Fi唤醒的数据包,可对上述数据包按照TCP/IP(Transmission Control Protocol/InternetProtocol,传输控制协议/因特网互联协议)协议进行解析,获取目标IP(InternetProtocol,网络之间互连的协议)地址、端口信息、MAC地址等。若获取到上述数据包的MAC(Media Access Control,媒体访问控制)地址为单播且目标IP地址也为单播,则上述数据包为单播包。上述单播包中数据是应用程序需要处理的数据,移动终端通过唤醒Wi-Fi子系统将上述单播包发送给对应的应用程序,使得上述应用程序对单播包中数据进行处理。When the screen of the mobile terminal is off and the mobile terminal is connected to Wi-Fi, if the mobile terminal receives a data packet to wake up to Wi-Fi, the above data packet can be processed according to the TCP/IP (Transmission Control Protocol/Internet Protocol, Transmission Control Protocol/Internet Protocol). The Internet Protocol) protocol is analyzed to obtain the target IP (Internet Protocol, the protocol for interconnection between networks) address, port information, MAC address, etc. If the acquired MAC (Media Access Control, Media Access Control) address of the above data packet is unicast and the target IP address is also unicast, the above data packet is a unicast packet. The data in the unicast packet is the data to be processed by the application, and the mobile terminal sends the unicast packet to the corresponding application by waking up the Wi-Fi subsystem, so that the application processes the data in the unicast packet.

其中,获取Wi-Fi唤醒中单播包唤醒对应的目标应用程序标识包括:当检测到移动终端中Wi-Fi唤醒时,将检测到的Wi-Fi唤醒事件写入内核节点,并记录检测到上述Wi-Fi唤醒事件的时刻以及在移动终端灭屏期间检测到上述Wi-Fi唤醒事件的累计次数。进一步的,在检测到上述Wi-Fi唤醒事件时,内核层上报事件通知框架层,框架层可获取目标时长内各个应用程序耗费的流量信息,再将耗费流量最多应用程序作为目标应用程序,获取目标应用程序的目标应用程序标识。上述目标时长可为移动终端侧设定的值,例如30秒,1分钟等。由于移动终端终端单播包中数据为应用程序需要处理的数据,因为在Wi-Fi唤醒为单播包唤醒时,上述单播包对应的应用程序耗费的流量会增大,因此可通过耗费的流量信息来获取目标应用程序。上述目标应用程序即为唤醒Wi-Fi子系统的应用程序。Wherein, obtaining the target application identifier corresponding to the unicast packet wake-up in Wi-Fi wake-up includes: when Wi-Fi wake-up in the mobile terminal is detected, writing the detected Wi-Fi wake-up event into the kernel node, and recording the detected Wi-Fi wake-up event. The time of the above-mentioned Wi-Fi wake-up event and the cumulative number of times the above-mentioned Wi-Fi wake-up event is detected when the screen of the mobile terminal is off. Further, when the above Wi-Fi wake-up event is detected, the kernel layer reports the event to notify the framework layer, and the framework layer can obtain the traffic information consumed by each application within the target duration, and then use the application that consumes the most traffic as the target application to obtain the information. The target application ID of the target application. The above-mentioned target duration may be a value set on the mobile terminal side, such as 30 seconds, 1 minute, and the like. Since the data in the unicast packet of the mobile terminal is the data that the application needs to process, when the Wi-Fi wake-up is the unicast packet wake-up, the traffic consumed by the application corresponding to the above unicast packet will increase, so it can pass the consumption of the unicast packet. traffic information to obtain the target application. The above target application is the application that wakes up the Wi-Fi subsystem.

步骤108,获取目标应用程序标识对应的Wi-Fi唤醒次数,根据Wi-Fi唤醒次数确定异常应用程序标识。Step 108: Obtain the Wi-Fi wake-up times corresponding to the target application identifier, and determine the abnormal application identifier according to the Wi-Fi wake-up times.

在获取到Wi-Fi唤醒中各个单播包唤醒对应的目标应用程序标识后,可统计各个目标应用程序标识在移动终端灭屏期间的Wi-Fi唤醒次数。根据上述各个目标应用程序标识在移动终端灭屏期间的Wi-Fi唤醒次数可确定异常应用程序标识。可选地,移动终端可将各个目标应用程序标识对应的Wi-Fi唤醒次数进行排序,根据排序位数选取异常应用程序标识,例如选取Wi-Fi唤醒次数最高的目标应用程序标识为应用程序标识。上述异常应用程序标识即为在移动终端灭屏期间频繁唤醒Wi-Fi子系统导致移动终端耗电异常的应用程序的应用程序标识。After the target application identifiers corresponding to each unicast packet wakeup in the Wi-Fi wakeup are obtained, the number of Wi-Fi wakeups of each target application identifier during the period when the screen of the mobile terminal is off can be counted. The abnormal application identifier can be determined according to the Wi-Fi wake-up times of each of the above target application identifiers during the period when the screen of the mobile terminal is off. Optionally, the mobile terminal can sort the Wi-Fi wake-up times corresponding to each target application identifier, and select the abnormal application identifier according to the sorted number of digits, for example, select the target application identifier with the highest Wi-Fi wake-up number as the application identifier. . The above-mentioned abnormal application program identifier is an application program identifier of an application program that frequently wakes up the Wi-Fi subsystem during the screen off period of the mobile terminal, resulting in abnormal power consumption of the mobile terminal.

在获取上述异常应用程序标识后,移动终端可对上述异常应用程序标识对应的应用程序进行优化处理,上述优化处理可包括:在移动终端进入灭屏状态时,对上述异常应用程序标识对应的应用程序进行查杀、冻结等处理。After obtaining the abnormal application program identifier, the mobile terminal may perform optimization processing on the application program corresponding to the abnormal application program identifier. The program performs processing such as killing and freezing.

通常情况下,在检测移动终端灭屏期间耗电异常时,会检测移动终端Wi-Fi唤醒异常导致耗电,但没有区分Wi-Fi唤醒对应的应用程序。在移动终端待机耗电的场景下,Wi-Fi唤醒耗电属于较大的耗电类型,单单检测出Wi-Fi唤醒耗电不能明确耗电的具体原因。本申请实施例中方法,在检测到移动终端Wi-Fi唤醒异常时,获取Wi-Fi唤醒中单播包对应的应用程序,将Wi-Fi唤醒与应用程序相关联,并对应用程序的唤醒数据进行统计分析,有利于快速定位异常应用程序,对检测出的异常应用程序进行优化处理,降低移动终端的待机功耗。Usually, when the abnormal power consumption of the mobile terminal is detected when the screen is off, the abnormal power consumption caused by the abnormal Wi-Fi wake-up of the mobile terminal will be detected, but the corresponding applications of the Wi-Fi wake-up will not be distinguished. In the scenario of standby power consumption of mobile terminals, the power consumption of Wi-Fi wake-up is a relatively large type of power consumption, and the specific reason for the power consumption cannot be determined by simply detecting the power consumption of Wi-Fi wake-up. In the method in this embodiment of the present application, when an abnormal Wi-Fi wake-up of the mobile terminal is detected, the application program corresponding to the unicast packet in the Wi-Fi wake-up is obtained, the Wi-Fi wake-up is associated with the application program, and the wake-up of the application program is performed. Statistical analysis of the data is helpful for quickly locating abnormal applications, optimizing the detected abnormal applications, and reducing the standby power consumption of the mobile terminal.

在一个实施例中,移动终端在灭屏期间耗电异常的检测方法包括以下方法中任意一种:In one embodiment, the method for detecting abnormal power consumption of the mobile terminal during the screen off period includes any one of the following methods:

(1)若移动终端由灭屏状态切换到亮屏状态且移动终端的灭屏时长超过第一时长,获取移动终端在灭屏期间的标准电量和耗电电量;若耗电电量大于标准电量,确定移动终端耗电异常。(1) If the mobile terminal switches from the off-screen state to the bright-screen state and the off-screen duration of the mobile terminal exceeds the first duration, obtain the standard power and power consumption of the mobile terminal during the off-screen period; if the power consumption is greater than the standard power, It is determined that the power consumption of the mobile terminal is abnormal.

(2)若移动终端由灭屏状态切换到亮屏状态且移动终端的灭屏时长超过第一时长,获取移动终端在灭屏期间的标准电功率和耗电电功率,若耗电电功率大于标准电功率,确定移动终端耗电异常。(2) If the mobile terminal switches from the off-screen state to the bright-screen state and the off-screen duration of the mobile terminal exceeds the first duration, obtain the standard electric power and power consumption of the mobile terminal during the off-screen period, and if the power consumption is greater than the standard electrical power, It is determined that the power consumption of the mobile terminal is abnormal.

当移动终端进入灭屏状态时,移动终端可记录进入灭屏状态的灭屏时刻;当移动终端屏幕被点亮时,即移动终端亮屏时,移动终端可记录亮屏时刻。上述亮屏是指移动终端屏幕被点亮,上述灭屏是指移动终端屏幕关闭背光。上述亮屏时刻与灭屏时刻之间的时间差即为灭屏时长。其中,移动终端在灭屏或亮屏时,广播发送者可发送系统广播。通常情况下,移动终端灭屏对应的广播为Intent.ACTION_SCREEN_OFF,当广播接收者接收到灭屏广播时,表示移动终端灭屏,则移动终端接收到灭屏广播的时刻即为移动终端灭屏的时刻。移动终端亮屏对应的广播为Intent.ACTION_SCREEN_ON,当广播接收者接收到亮屏广播时,表示移动终端亮屏,则移动终端接收到亮屏广播的时刻即为移动终端亮屏的时刻。移动终端中广播发送方通常为调用Context.sendBroadcast()的程序,广播接收者通常为继承BroadcastReceiver的程序。When the mobile terminal enters the screen-off state, the mobile terminal may record the screen-off time of entering the screen-off state; when the screen of the mobile terminal is lit, that is, when the screen of the mobile terminal is on, the mobile terminal may record the screen-on time. The above-mentioned bright screen means that the screen of the mobile terminal is lit, and the above-mentioned screen-off means that the backlight of the mobile terminal screen is turned off. The time difference between the above screen-on time and screen-off time is the screen-off duration. Wherein, when the screen of the mobile terminal is off or on, the broadcast sender can send the system broadcast. Usually, the broadcast corresponding to the screen-off of the mobile terminal is Intent.ACTION_SCREEN_OFF. When the broadcast receiver receives the screen-off broadcast, it means that the screen of the mobile terminal is off, and the moment the mobile terminal receives the screen-off broadcast is the moment when the screen of the mobile terminal is off. time. The broadcast corresponding to the bright screen of the mobile terminal is Intent.ACTION_SCREEN_ON. When the broadcast receiver receives the bright screen broadcast, it means that the mobile terminal is bright, and the moment when the mobile terminal receives the bright screen broadcast is the moment when the mobile terminal brightens the screen. The broadcast sender in the mobile terminal is usually a program that calls Context.sendBroadcast(), and the broadcast receiver is usually a program that inherits BroadcastReceiver.

在获取到移动终端的灭屏时长后,可检测灭屏时长是否超过第一时长。上述第一时长可为用户设定的时长或移动终端设定的时长,例如5小时、6小时等。若移动终端的灭屏时长超过上述第一时长,则移动终端灭屏时长较长。由于移动终端中电池的衰减呈曲线型且耗电量是根据电池电量的百分比计算出的,当移动终端灭屏时长较短时,通过电池衰减曲线计算出的耗电量误差较大,因此在移动终端的灭屏时长超过第一时长时再获取移动终端在灭屏期间的基准电量和耗电电量,可以提高获取到的电量的精确度。After acquiring the screen-off duration of the mobile terminal, it can be detected whether the screen-off duration exceeds the first duration. The above-mentioned first duration may be a duration set by a user or a duration set by a mobile terminal, such as 5 hours, 6 hours, and the like. If the screen-off duration of the mobile terminal exceeds the above-mentioned first duration, the screen-off duration of the mobile terminal is longer. Since the attenuation of the battery in the mobile terminal is in a curve shape and the power consumption is calculated according to the percentage of the battery power, when the screen off time of the mobile terminal is short, the error of the power consumption calculated by the battery attenuation curve is large. When the screen-off duration of the mobile terminal exceeds the first duration, the reference power and power consumption of the mobile terminal during the screen-off period are obtained, which can improve the accuracy of the obtained power.

移动终端中可存储标准清单,上述标准清单是移动终端在待机状态下各个状态对应的单位时间内耗电电量。例如,可包括:单卡SIM卡对应的电量、双卡SIM卡对应的电量、打开Wi-Fi未连接对应的电量、打开蓝牙未连接对应的电量、连接Wi-Fi对应的电量、连接蓝牙对应的电量等。移动终端可将移动终端在灭屏期间的各个状态与标准清单中状态进行匹配,获取匹配成功的状态对应的耗电电量、匹配成功的状态对应的耗电电量的累计值,上述累计值即为标准电功率,标准电功率与灭屏时长的积即为标准电量。上述标准电功率为TargetCurrent,TargetCurrent=mBaseCurrent+mSingleSimCardDelta+mDoubleSimCardDelta+mWif iDelta+mNetworkDelta+mBluetoothDelta+offset。上述mBaseCurrent为移动终端系统在单位时间内耗电电量,可为3.9mA/h;当移动终端插入单卡SIM卡时单位时间内耗电电量mSingleSimCardDelta为3mA/h,否则为0;当移动终端插入双卡SIM卡时单位时间内耗电电量mDoubleSimCardDelta为6mA/h,否则为0;当移动终端开启Wi-Fi时单位时间内耗电电量mWifiDelta为6mA/h,否则为0;当移动终端开启蓝牙时单位时间内耗电电量mBluetoothDelta为2mA/h,否则为0;offset表示其他类型的耗电,可为10mA/h。A standard list may be stored in the mobile terminal, and the above standard list is the power consumption per unit time corresponding to each state of the mobile terminal in the standby state. For example, it may include: the power corresponding to the single SIM card, the power corresponding to the dual SIM card, the power corresponding to turning on Wi-Fi and not connecting, the power corresponding to turning on Bluetooth but not connecting, the power corresponding to connecting to Wi-Fi, and the corresponding power connecting to Bluetooth. power, etc. The mobile terminal can match each state of the mobile terminal during the off-screen period with the state in the standard list, and obtain the power consumption corresponding to the successful matching state and the cumulative value of the power consumption corresponding to the successful matching state. The above cumulative value is Standard electric power, the product of the standard electric power and the screen-off time is the standard electric power. The above standard electric power is TargetCurrent, TargetCurrent=mBaseCurrent+mSingleSimCardDelta+mDoubleSimCardDelta+mWif iDelta+mNetworkDelta+mBluetoothDelta+offset. The above mBaseCurrent is the power consumption per unit time of the mobile terminal system, which can be 3.9mA/h; when the mobile terminal inserts a single SIM card, the power consumption per unit time mSingleSimCardDelta is 3mA/h, otherwise it is 0; When the dual SIM card is used, the power consumption per unit time mDoubleSimCardDelta is 6mA/h, otherwise it is 0; when the mobile terminal turns on Wi-Fi, the power consumption per unit time mWifiDelta is 6mA/h, otherwise it is 0; when the mobile terminal turns on Bluetooth The power consumption per unit time mBluetoothDelta is 2mA/h, otherwise it is 0; offset represents other types of power consumption, which can be 10mA/h.

移动终端在根据标准电量和耗电电量检测移动终端是否耗电异常时,可检测移动终端在灭屏期间的耗电电量是否大于标准电量,若耗电电量大于标准电量,则表示移动终端在灭屏期间消耗电量较多,即移动终端在灭屏期间耗电异常。移动终端也可获取耗电电量与灭屏时长的比值,上述比值为移动终端在灭屏期间单位时间内耗电电量,即移动终端在灭屏期间的耗电电功率。移动终端可通过标准电量与灭屏时长的比值来获取标准电功率,移动终端也可通过标准清单获取上述匹配成功的状态信息对应的单位时间内增量电量的累计值作为标准电功率。移动终端可将耗电电功率与标准电功率进行比较,检测上述耗电电功率是否大于标准电功率。若耗电电功率大于上述标准电功率,则移动终端在灭屏期间耗电异常。When the mobile terminal detects whether the power consumption of the mobile terminal is abnormal according to the standard power and power consumption, it can detect whether the power consumption of the mobile terminal during the screen off period is greater than the standard power. During the screen period, more power is consumed, that is, the mobile terminal consumes abnormally when the screen is off. The mobile terminal may also obtain the ratio of the power consumption to the screen-off duration, where the ratio is the power consumption per unit time during the screen-off period of the mobile terminal, that is, the power consumption of the mobile terminal during the screen-off period. The mobile terminal can obtain the standard electric power through the ratio of the standard electric quantity to the screen-off duration, and the mobile terminal can also obtain the accumulative value of the incremental electric quantity per unit time corresponding to the above-mentioned successfully matched status information through the standard list as the standard electric power. The mobile terminal can compare the power consumption with the standard power, and detect whether the power consumption is greater than the standard power. If the power consumption is greater than the above-mentioned standard power, the mobile terminal consumes abnormally during the screen off period.

本申请实施例中方法,移动终端可根据标准电量与耗电电量的比较结果来判定移动终端是否耗电异常,也可根据标准电功率与耗电电功率的比较结果来判定移动终端是否耗电异常,检测移动终端耗电异常的方式简单、快捷。In the method in this embodiment of the present application, the mobile terminal can determine whether the mobile terminal has abnormal power consumption according to the comparison result between the standard power and the power consumption, and can also determine whether the mobile terminal has abnormal power consumption according to the comparison result between the standard power and the power consumption. The method for detecting abnormal power consumption of the mobile terminal is simple and fast.

在一个实施例中,耗电异常类型为Wi-Fi唤醒的检测方法包括:分别获取移动终端中各个子系统的第一唤醒次数的累计值;若移动终端中Wi-Fi子系统的第二唤醒次数与累计值的比值大于第一阈值,则耗电异常类型为Wi-Fi唤醒。In one embodiment, the method for detecting that the abnormal power consumption type is Wi-Fi wake-up includes: separately acquiring the cumulative value of the first wake-up times of each subsystem in the mobile terminal; if the second wake-up of the Wi-Fi subsystem in the mobile terminal If the ratio of the number of times to the accumulated value is greater than the first threshold, the abnormal power consumption type is Wi-Fi wake-up.

在获取到移动终端中各个子系统的第一唤醒次数后,可根据移动终端各个子系统的第一唤醒次数检测耗电异常类型。其中,可获取移动终端各个子系统的第一唤醒次数的累计值以及在移动终端灭屏期间进程异常终止的次数。当累计值与进程异常终止的次数的第一比值大于第二阈值时,判定移动终端耗电异常的原因为移动终端子系统异常唤醒。上述第二阈值可为用户设定的值,也可为移动终端设定的值。例如,移动终端各个子系统的第一唤醒次数的累计值为A,移动终端灭屏期间进程异常终止的次数为B。若A/B的值大于1/2,则移动终端各个子系统的唤醒次数较多,移动终端子系统异常唤醒。After acquiring the first wake-up times of each subsystem in the mobile terminal, the abnormal power consumption type can be detected according to the first wake-up times of each subsystem of the mobile terminal. Wherein, the accumulated value of the first wake-up times of each subsystem of the mobile terminal and the number of abnormal terminations of the process during the screen-off of the mobile terminal can be obtained. When the first ratio of the accumulated value to the number of times of abnormal termination of the process is greater than the second threshold, it is determined that the reason for the abnormal power consumption of the mobile terminal is that the mobile terminal subsystem wakes up abnormally. The above-mentioned second threshold may be a value set by the user or a value set by the mobile terminal. For example, the accumulated value of the first wake-up times of each subsystem of the mobile terminal is A, and the number of times the process is terminated abnormally during the screen off of the mobile terminal is B. If the value of A/B is greater than 1/2, each subsystem of the mobile terminal wakes up more times, and the subsystem of the mobile terminal wakes up abnormally.

当检测到移动终端耗电异常的原因为移动终端子系统异常唤醒时,再获取移动终端Wi-Fi子系统的第一唤醒次数与上述累计值的第二比值,当上述第二比值大于第三阈值时,上述移动终端子系统异常唤醒的类型为移动终端Wi-Fi子系统异常唤醒。上述第三阈值可为用户设定的值,也可为移动终端设定的值,例如,当移动终端中Wi-Fi子系统的第一唤醒次数与上述累计值的比值大于1/2时,判定移动终端子系统异常唤醒主要为Wi-Fi子系统异常唤醒,即移动终端子系统异常唤醒的类型为移动终端Wi-Fi子系统异常唤醒。When it is detected that the abnormal power consumption of the mobile terminal is caused by the abnormal wake-up of the mobile terminal subsystem, the second ratio of the first wake-up times of the Wi-Fi subsystem of the mobile terminal to the above-mentioned accumulated value is obtained, and when the above-mentioned second ratio is greater than the third When the threshold is exceeded, the above-mentioned type of abnormal wake-up of the mobile terminal subsystem is the abnormal wake-up of the Wi-Fi subsystem of the mobile terminal. The third threshold may be a value set by the user or a value set by the mobile terminal. For example, when the ratio of the first wake-up times of the Wi-Fi subsystem in the mobile terminal to the above-mentioned accumulated value is greater than 1/2, It is determined that the abnormal wake-up of the mobile terminal subsystem is mainly the abnormal wake-up of the Wi-Fi subsystem, that is, the type of abnormal wake-up of the mobile terminal subsystem is the abnormal wake-up of the mobile terminal Wi-Fi subsystem.

在一个实施例中,获取Wi-Fi唤醒中单播包唤醒对应的目标应用程序标识包括:在检测到Wi-Fi唤醒为单播包唤醒时,获取目标时长内各个应用程序标识对应的流量信息;根据各个应用程序标识对应的流量信息确定目标应用程序标识。In one embodiment, acquiring the target application identifier corresponding to the unicast packet wake-up in the Wi-Fi wake-up includes: when detecting that the Wi-Fi wake-up is the unicast packet wake-up, acquiring traffic information corresponding to each application identifier within the target duration ; Determine the target application identifier according to the traffic information corresponding to each application identifier.

当检测到移动终端中Wi-Fi唤醒时,将检测到的Wi-Fi唤醒事件写入内核节点,并记录检测到上述Wi-Fi唤醒事件的时刻以及在移动终端灭屏期间检测到上述Wi-Fi唤醒事件的累计次数。进一步的,在检测到上述Wi-Fi唤醒事件时,内核层上报事件通知框架层,框架层可获取目标时长内各个应用程序耗费的流量信息,再将耗费流量最多应用程序作为目标应用程序,获取目标应用程序的目标应用程序标识。上述目标时长可为移动终端侧设定的值,例如30秒,1分钟等。由于移动终端单播包中数据为应用程序需要处理的数据,因为在Wi-Fi唤醒为单播包唤醒时,上述单播包对应的应用程序耗费的流量会增大,因此可通过耗费的流量信息来获取目标应用程序。上述目标应用程序即为唤醒Wi-Fi子系统的应用程序。When Wi-Fi wake-up in the mobile terminal is detected, the detected Wi-Fi wake-up event is written into the kernel node, and the time when the above-mentioned Wi-Fi wake-up event is detected and the above-mentioned Wi-Fi wake-up event is detected when the mobile terminal screen is off is recorded. The cumulative number of Fi wake-up events. Further, when the above Wi-Fi wake-up event is detected, the kernel layer reports the event to notify the framework layer, and the framework layer can obtain the traffic information consumed by each application within the target duration, and then use the application that consumes the most traffic as the target application to obtain the information. The target application ID of the target application. The above-mentioned target duration may be a value set on the mobile terminal side, such as 30 seconds, 1 minute, and the like. Since the data in the unicast packet of the mobile terminal is the data that the application needs to process, when the Wi-Fi wake-up is the unicast packet wake-up, the traffic consumed by the application corresponding to the unicast packet will increase, so it can pass the consumed traffic. information to obtain the target application. The above target application is the application that wakes up the Wi-Fi subsystem.

在一个实施例中,上述方法还包括:In one embodiment, the above method further includes:

步骤110,若检测到异常应用程序标识对应的应用程序在后台运行,对应用程序进行资源限制处理。Step 110, if it is detected that the application program corresponding to the abnormal application program identifier is running in the background, perform resource limitation processing on the application program.

当检测到上述异常应用程序标识对应的应用程序在移动终端后台运行时,可对上述异常应用程序标识对应的应用程序进行资源限制处理,即对上述应用程序可使用的资源进行限制。上述资源限制可包括:对应用程序可使用的网络资源、CPU(Central ProcessingUnit,中央处理器)资源、I/O(Input/Output,输入/输出)资源、内存资源等进行限制。可选地,可对异常应用程序设定不同的优先级,根据优先级确定对应的资源限制等级。When it is detected that the application program corresponding to the abnormal application program identifier is running in the background of the mobile terminal, resource limitation processing may be performed on the application program corresponding to the abnormal application program identifier, that is, the resources usable by the application program are limited. The above-mentioned resource restriction may include: restricting network resources, CPU (Central Processing Unit, central processing unit) resources, I/O (Input/Output, input/output) resources, memory resources, etc. that can be used by the application program. Optionally, different priorities can be set for abnormal applications, and corresponding resource restriction levels are determined according to the priorities.

本申请实施例中方法,通过对异常应用程序标识对应的应用程序进行资源限制处理,可避免异常应用程序标识对应的应用程序在移动终端灭屏期间频繁唤醒移动终端系统,浪费移动终端功耗。In the method in the embodiment of the present application, by performing resource limitation processing on the application program corresponding to the abnormal application program identifier, the application program corresponding to the abnormal application program identifier can avoid frequently waking up the mobile terminal system when the screen of the mobile terminal is off, thereby wasting the power consumption of the mobile terminal.

在一个实施例中,上述方法还包括:In one embodiment, the above method further includes:

步骤112,获取异常应用程序标识对应的异常信息,将异常信息上报服务器。Step 112: Acquire abnormal information corresponding to the abnormal application identifier, and report the abnormal information to the server.

步骤114,接收服务器返回的对异常信息的优化策略。Step 114: Receive an optimization strategy for exception information returned by the server.

步骤116,根据优化策略对异常应用程序标识对应的应用程序进行优化处理。Step 116: Perform optimization processing on the application program corresponding to the abnormal application program identifier according to the optimization strategy.

移动终端在检测到上述异常应用程序后,可获取异常应用程序标识以及异常信息。上述异常信息包括:检测到异常应用程序标识的时刻、检测到异常应用程序标识的次数、异常应用程序标识对应的唤醒类型。移动终端可将上述检测到的异常应用程序标识的异常信息写入移动终端日志,并将上述移动终端日志上传到服务器。可选地,移动终端可将上述日志按照设定的时间间隔上传到服务器,移动终端也可根据接收到的用户指令将上述日志上传到服务器。服务器在接收到移动终端上传的日志后,可解析并获取上述日志中异常应用程序标识的异常信息,根据获取到的异常信息进行统计分析,得到针对上述异常应用程序标识的优化策略。上述优化策略可包括:将异常应用程序标识中消息对齐唤醒等。服务器可将上述优化策略返回给移动终端,移动终端在接收到上述优化策略后,解析并获取上述优化策略中信息,根据上述优化策略中信息对移动终端进行优化处理。可选地,移动终端和服务器之间通信时,可对传输的数据进行加密处理,用以提高数据安全性。After detecting the above abnormal application program, the mobile terminal can obtain the abnormal application program identifier and abnormal information. The above-mentioned abnormal information includes: the time when the abnormal application program identifier is detected, the number of times the abnormal application program identifier is detected, and the wake-up type corresponding to the abnormal application program identifier. The mobile terminal may write the abnormal information identified by the abnormal application program detected above into the mobile terminal log, and upload the mobile terminal log to the server. Optionally, the mobile terminal may upload the above log to the server according to a set time interval, and the mobile terminal may also upload the above log to the server according to the received user instruction. After receiving the log uploaded by the mobile terminal, the server can parse and obtain the abnormal information of the abnormal application identification in the above log, and perform statistical analysis according to the obtained abnormal information to obtain the optimization strategy for the abnormal application identification. The above optimization strategy may include: aligning the messages in the abnormal application identification to wake up. The server may return the above-mentioned optimization strategy to the mobile terminal. After receiving the above-mentioned optimization strategy, the mobile terminal parses and obtains the information in the above-mentioned optimization strategy, and performs optimization processing on the mobile terminal according to the information in the above-mentioned optimization strategy. Optionally, during communication between the mobile terminal and the server, the transmitted data may be encrypted to improve data security.

本申请实施例中方法,移动终端将异常信息上传到服务器,接收服务器返回的优化策略,并根据上述优化策略对移动终端进行优化处理,即移动终端在检测到异常后可自调整处理,延长了移动终端的使用寿命。In the method in this embodiment of the present application, the mobile terminal uploads the abnormality information to the server, receives the optimization strategy returned by the server, and performs optimization processing on the mobile terminal according to the above-mentioned optimization strategy, that is, the mobile terminal can self-adjust the processing after detecting the abnormality, which prolongs the period of time. Service life of mobile terminals.

在一个实施例中,上述方法还包括:In one embodiment, the above method further includes:

步骤118,根据获取到异常信息的频次调整向服务器上报的时间间隔。Step 118: Adjust the time interval for reporting to the server according to the frequency of acquiring abnormal information.

每当移动终端灭屏时长超过第一时长时,移动终端均会检测在灭屏期间是否耗电异常。其中,移动终端可统计记录到各个异常信息的次数以及检测到各个异常信息的频次。上述频次即为单位时间内检测到异常信息的次数,例如每1天检测到异常信息的次数。当上述异常信息的频次越高时,表示移动终端检测到异常信息的次数越多,即移动终端出现异常的次数越多。可选地,移动终端向服务器上报异常信息的时间间隔与检测到异常信息的频次成反比,当移动终端检测到上述异常信息的频次越高时,移动终端向服务器上报异常信息的时间间隔越短,即移动终端出现异常的频次越高时,移动终端向服务器上报异常信息的时间间隔越短。Whenever the screen-off period of the mobile terminal exceeds the first period, the mobile terminal detects whether the power consumption is abnormal during the screen-off period. Wherein, the mobile terminal can count the number of times each abnormal information is recorded and the frequency of detecting each abnormal information. The above frequency is the number of times abnormal information is detected per unit time, for example, the number of times abnormal information is detected per day. When the frequency of the above abnormal information is higher, it means that the mobile terminal detects the abnormal information more times, that is, the mobile terminal has more abnormal times. Optionally, the time interval for the mobile terminal to report the abnormal information to the server is inversely proportional to the frequency of detecting the abnormal information. When the frequency that the mobile terminal detects the abnormal information is higher, the time interval for the mobile terminal to report the abnormal information to the server is shorter. , that is, the higher the abnormal frequency of the mobile terminal, the shorter the time interval for the mobile terminal to report the abnormal information to the server.

本申请实施例中方法,可根据检测到异常唤醒源的信息的频次来调整向服务器上报异常唤醒源信息的时间间隔,有利于根据异常唤醒源的信息快速排查和发现移动终端的安全隐患。The method in the embodiment of the present application can adjust the time interval for reporting the abnormal wake-up source information to the server according to the frequency of detecting the abnormal wake-up source information, which is beneficial to quickly check and discover potential security risks of the mobile terminal according to the abnormal wake-up source information.

在一个实施例中,一种信息处理方法,包括:In one embodiment, an information processing method includes:

(1)当检测到移动终端在灭屏期间耗电异常时,获取移动终端中各个子系统的第一唤醒次数。(1) When it is detected that the power consumption of the mobile terminal is abnormal during the screen off period, obtain the first wake-up times of each subsystem in the mobile terminal.

(2)根据移动终端中各个子系统的第一唤醒次数检测耗电异常类型。(2) Detecting the abnormal power consumption type according to the first wake-up times of each subsystem in the mobile terminal.

(3)当耗电异常类型为Wi-Fi唤醒时,获取Wi-Fi唤醒中单播包唤醒对应的目标应用程序标识。(3) When the abnormal power consumption type is Wi-Fi wake-up, obtain the target application identifier corresponding to the unicast packet wake-up in Wi-Fi wake-up.

(4)获取目标应用程序标识对应的Wi-Fi唤醒次数,根据Wi-Fi唤醒次数确定异常应用程序标识。(4) Obtain the Wi-Fi wake-up times corresponding to the target application program identifier, and determine the abnormal application program identifier according to the Wi-Fi wake-up times.

在一个实施例中,移动终端在灭屏期间耗电异常的检测方法包括:若移动终端由灭屏状态切换到亮屏状态且移动终端的灭屏时长超过第一时长,获取移动终端在灭屏期间的标准电量和耗电电量;若耗电电量大于标准电量,确定移动终端耗电异常;或,若移动终端由灭屏状态切换到亮屏状态且移动终端的灭屏时长超过第一时长,获取移动终端在灭屏期间的标准电功率和耗电电功率,若耗电电功率大于标准电功率,确定移动终端耗电异常。In one embodiment, the method for detecting abnormal power consumption of the mobile terminal during the off-screen period includes: if the mobile terminal switches from the off-screen state to the bright-screen state and the off-screen duration of the mobile terminal exceeds a first duration, acquiring the mobile terminal when the screen off The standard power and power consumption during the period; if the power consumption is greater than the standard power, it is determined that the power consumption of the mobile terminal is abnormal; or, if the mobile terminal switches from the screen-off state to the screen-on state and the screen-off duration of the mobile terminal exceeds the first duration, Acquire the standard electric power and power consumption of the mobile terminal during the screen-off period. If the power consumption is greater than the standard electric power, it is determined that the power consumption of the mobile terminal is abnormal.

在一个实施例中,耗电异常类型为Wi-Fi唤醒的检测方法包括:获取移动终端中各个子系统的第一唤醒次数的累计值;若移动终端中Wi-Fi子系统的第二唤醒次数与累计值的比值大于第一阈值,则耗电异常类型为Wi-Fi唤醒。In one embodiment, the method for detecting that the abnormal power consumption type is Wi-Fi wake-up includes: acquiring a cumulative value of the first wake-up times of each subsystem in the mobile terminal; if the second wake-up times of the Wi-Fi subsystem in the mobile terminal If the ratio to the accumulated value is greater than the first threshold, the abnormal power consumption type is Wi-Fi wake-up.

在一个实施例中,获取Wi-Fi唤醒中单播包唤醒对应的目标应用程序标识包括:在检测到Wi-Fi唤醒为单播包唤醒时,获取目标时长内各个应用程序标识对应的流量信息;根据各个应用程序标识对应的流量信息确定目标应用程序标识。In one embodiment, acquiring the target application identifier corresponding to the unicast packet wake-up in the Wi-Fi wake-up includes: when detecting that the Wi-Fi wake-up is the unicast packet wake-up, acquiring traffic information corresponding to each application identifier within the target duration ; Determine the target application identifier according to the traffic information corresponding to each application identifier.

在一个实施例中,上述方法包括:若检测到异常应用程序标识对应的应用程序在后台运行,对应用程序进行资源限制处理。In one embodiment, the above method includes: if it is detected that the application program corresponding to the abnormal application program identifier is running in the background, performing resource limitation processing on the application program.

在一个实施例中,上述方法包括:获取异常应用程序标识对应的异常信息,将异常信息上报服务器;接收服务器返回的对异常信息的优化策略;根据优化策略对异常应用程序标识对应的应用程序进行优化处理。In one embodiment, the above method includes: acquiring abnormal information corresponding to the abnormal application identifier, and reporting the abnormal information to the server; receiving an optimization strategy for the abnormal information returned by the server; Optimized processing.

在一个实施例中,上述方法包括:根据获取到异常信息的频次调整向服务器上报的时间间隔。In one embodiment, the above method includes: adjusting the time interval for reporting to the server according to the frequency of acquiring abnormal information.

应该理解的是,虽然上述流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,上述流程图中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the steps in the above flow charts are displayed in sequence according to the arrows, these steps are not necessarily executed in the sequence indicated by the arrows. Unless explicitly stated herein, the execution of these steps is not strictly limited to the order, and the steps may be executed in other orders. Moreover, at least a part of the steps in the above flow chart may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but may be executed at different times. The order of execution is also not necessarily sequential, but may be performed alternately or alternately with other steps or sub-steps of other steps or at least a portion of a phase.

图5为一个实施例中信息处理装置的结构框图。如图5所示,一种信息处理装置,包括:FIG. 5 is a structural block diagram of an information processing apparatus in an embodiment. As shown in Figure 5, an information processing device, comprising:

第一获取模块502,用于当检测到移动终端在灭屏期间耗电异常时,获取移动终端中各个子系统的第一唤醒次数。The first acquiringmodule 502 is configured to acquire the first wake-up times of each subsystem in the mobile terminal when it is detected that the mobile terminal consumes abnormal power during the screen-off period.

检测模块504,用于根据移动终端中各个子系统的第一唤醒次数检测耗电异常类型。Thedetection module 504 is configured to detect the abnormal power consumption type according to the first wake-up times of each subsystem in the mobile terminal.

第二获取模块506,用于当耗电异常类型为Wi-Fi唤醒时,获取Wi-Fi唤醒中单播包唤醒对应的目标应用程序标识。The second obtainingmodule 506 is configured to obtain the target application identifier corresponding to the unicast packet wake-up in the Wi-Fi wake-up when the abnormal power consumption type is Wi-Fi wake-up.

处理模块508,用于获取目标应用程序标识对应的Wi-Fi唤醒次数,根据Wi-Fi唤醒次数对目标应用程序标识进行分类。Theprocessing module 508 is configured to obtain the Wi-Fi wake-up times corresponding to the target application identifier, and classify the target application identifier according to the Wi-Fi wake-up times.

在一个实施例中,移动终端在灭屏期间耗电异常的检测方法包括:若移动终端由灭屏状态切换到亮屏状态且移动终端的灭屏时长超过第一时长,获取移动终端在灭屏期间的标准电量和耗电电量;若耗电电量大于标准电量,确定移动终端耗电异常;或,若移动终端由灭屏状态切换到亮屏状态且移动终端的灭屏时长超过第一时长,获取移动终端在灭屏期间的标准电功率和耗电电功率,若耗电电功率大于标准电功率,确定移动终端耗电异常。In one embodiment, the method for detecting abnormal power consumption of the mobile terminal during the off-screen period includes: if the mobile terminal switches from the off-screen state to the bright-screen state and the off-screen duration of the mobile terminal exceeds a first duration, acquiring the mobile terminal when the screen off The standard power and power consumption during the period; if the power consumption is greater than the standard power, it is determined that the power consumption of the mobile terminal is abnormal; or, if the mobile terminal switches from the screen-off state to the screen-on state and the screen-off duration of the mobile terminal exceeds the first duration, Acquire the standard electric power and power consumption of the mobile terminal during the screen-off period. If the power consumption is greater than the standard electric power, it is determined that the power consumption of the mobile terminal is abnormal.

在一个实施例中,耗电异常类型为Wi-Fi唤醒的检测方法包括:获取移动终端中各个子系统的第一唤醒次数的累计值;若移动终端中Wi-Fi子系统的第二唤醒次数与累计值的比值大于第一阈值,则耗电异常类型为Wi-Fi唤醒。In one embodiment, the method for detecting that the abnormal power consumption type is Wi-Fi wake-up includes: acquiring a cumulative value of the first wake-up times of each subsystem in the mobile terminal; if the second wake-up times of the Wi-Fi subsystem in the mobile terminal If the ratio to the accumulated value is greater than the first threshold, the abnormal power consumption type is Wi-Fi wake-up.

在一个实施例中,第二获取模块506获取Wi-Fi唤醒中单播包唤醒对应的目标应用程序标识包括:在检测到Wi-Fi唤醒为单播包唤醒时,获取目标时长内各个应用程序标识对应的流量信息;根据各个应用程序标识对应的流量信息确定目标应用程序标识。In one embodiment, the second obtainingmodule 506 obtaining the target application identifier corresponding to the unicast packet wake-up in the Wi-Fi wake-up includes: when it is detected that the Wi-Fi wake-up is the unicast packet wake-up, obtaining each application program within the target duration Identify the corresponding traffic information; determine the target application identifier according to the traffic information corresponding to each application identifier.

在一个实施例中,处理模块508还用于若检测到异常应用程序标识对应的应用程序在后台运行,对应用程序进行资源限制处理。In one embodiment, theprocessing module 508 is further configured to perform resource restriction processing on the application if it is detected that the application corresponding to the abnormal application identifier is running in the background.

图6为另一个实施例中信息处理装置的结构框图。如图6所示,一种信息处理装置,包括:第一获取模块602、检测模块604、第二获取模块606、上传模块608、接收模块610和处理模块612。其中,第一获取模块602、检测模块604、第二获取模块606、处理模块612与图5中对应的模块功能相同。FIG. 6 is a structural block diagram of an information processing apparatus in another embodiment. As shown in FIG. 6 , an information processing apparatus includes: a first obtainingmodule 602 , adetection module 604 , a second obtainingmodule 606 , anuploading module 608 , a receivingmodule 610 and aprocessing module 612 . The functions of thefirst acquisition module 602 , thedetection module 604 , thesecond acquisition module 606 , and theprocessing module 612 are the same as those of the corresponding modules in FIG. 5 .

上传模块608,用于获取异常应用程序标识对应的异常信息,将异常信息上报服务器。Theuploading module 608 is configured to obtain abnormal information corresponding to the abnormal application identifier, and report the abnormal information to the server.

接收模块610,用于接收服务器返回的对异常信息的优化策略。The receivingmodule 610 is configured to receive an optimization strategy for abnormal information returned by the server.

处理模块612,用于根据优化策略对异常应用程序标识对应的应用程序进行优化处理。Theprocessing module 612 is configured to perform optimization processing on the application program corresponding to the abnormal application program identifier according to the optimization strategy.

在一个实施例中,处理模块612还用于根据获取到异常信息的频次调整向服务器上报的时间间隔。In one embodiment, theprocessing module 612 is further configured to adjust the time interval for reporting to the server according to the frequency of acquiring abnormal information.

上述信息处理装置中各个模块的划分仅用于举例说明,在其他实施例中,可将信息处理装置按照需要划分为不同的模块,以完成上述信息处理装置的全部或部分功能。The division of each module in the above information processing apparatus is only used for illustration. In other embodiments, the information processing apparatus may be divided into different modules as required to complete all or part of the functions of the above information processing apparatus.

关于信息处理装置的具体限定可以参见上文中对于信息处理方法的限定,在此不再赘述。上述信息处理装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于移动终端中的处理器中,也可以以软件形式存储于移动终端中的存储器中,以便于处理器调用执行以上各个模块对应的操作。For the specific limitation of the information processing apparatus, reference may be made to the limitation on the information processing method above, which will not be repeated here. Each module in the above-mentioned information processing apparatus may be implemented in whole or in part by software, hardware, or a combination thereof. The above modules may be embedded in or independent of the processor in the mobile terminal in the form of hardware, or may be stored in the memory in the mobile terminal in the form of software, so that the processor can call and execute operations corresponding to the above modules.

本申请实施例中提供的信息处理装置中的各个模块的实现可为计算机程序的形式。该计算机程序可在终端或服务器上运行。该计算机程序构成的程序模块可存储在终端或服务器的存储器上。该计算机程序被处理器执行时,实现本申请实施例中所描述方法的步骤。The implementation of each module in the information processing apparatus provided in the embodiments of the present application may be in the form of a computer program. The computer program can be run on a terminal or server. The program modules constituted by the computer program can be stored in the memory of the terminal or the server. When the computer program is executed by the processor, the steps of the methods described in the embodiments of the present application are implemented.

图7为一个实施例中移动终端的内部结构示意图。如图7所示,该移动终端包括通过系统总线连接的处理器、存储器和网络接口。其中,该处理器用于提供计算和控制能力,支撑整个移动移动终端的运行。存储器用于存储数据、程序等,存储器上存储至少一个计算机程序,该计算机程序可被处理器执行,以实现本申请实施例中提供的适用于移动移动终端的信息处理方法。存储器可包括非易失性存储介质及内存储器。非易失性存储介质存储有操作系统和计算机程序。该计算机程序可被处理器所执行,以用于实现以下各个实施例所提供的一种信息处理方法。内存储器为非易失性存储介质中的操作系统计算机程序提供高速缓存的运行环境。网络接口可以是以太网卡或无线网卡等,用于与外部的移动移动终端进行通信。该移动移动终端可以是手机、平板电脑或者个人数字助理或穿戴式设备等。FIG. 7 is a schematic diagram of an internal structure of a mobile terminal in an embodiment. As shown in FIG. 7 , the mobile terminal includes a processor, a memory and a network interface connected through a system bus. Among them, the processor is used to provide computing and control capabilities to support the operation of the entire mobile terminal. The memory is used for storing data, programs, etc., and at least one computer program is stored in the memory, and the computer program can be executed by the processor to implement the information processing method applicable to the mobile terminal provided in the embodiments of the present application. The memory may include non-volatile storage media and internal memory. The nonvolatile storage medium stores an operating system and a computer program. The computer program can be executed by the processor to implement an information processing method provided by the following embodiments. Internal memory provides a cached execution environment for operating system computer programs in non-volatile storage media. The network interface may be an Ethernet card or a wireless network card, etc., and is used to communicate with an external mobile terminal. The mobile mobile terminal may be a mobile phone, a tablet computer, a personal digital assistant, a wearable device, or the like.

本申请实施例还提供了一种计算机可读存储介质。一个或多个包含计算机可执行指令的非易失性计算机可读存储介质,当计算机可执行指令被一个或多个处理器执行时,使得处理器执行本申请实施例中信息处理方法的步骤。Embodiments of the present application also provide a computer-readable storage medium. One or more non-volatile computer-readable storage media containing computer-executable instructions, when the computer-executable instructions are executed by one or more processors, cause the processors to perform the steps of the information processing method in the embodiments of the present application.

一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行本申请实施例中信息处理方法的步骤。A computer program product containing instructions, when run on a computer, causes the computer to execute the steps of the information processing method in the embodiments of the present application.

本申请实施例还提供了一种移动终端。如图8所示,为了便于说明,仅示出了与本申请实施例相关的部分,具体技术细节未揭示的,请参照本申请实施例方法部分。该移动终端可以为包括手机、平板电脑、PDA(Personal Digital Assistant,个人数字助理)、POS(Point of Sales,销售终端)、车载电脑、穿戴式设备等任意终端设备,以移动终端为手机为例:The embodiments of the present application also provide a mobile terminal. As shown in FIG. 8 , for the convenience of description, only the parts related to the embodiments of the present application are shown, and the specific technical details are not disclosed, please refer to the method part of the embodiments of the present application. The mobile terminal can be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant, personal digital assistant), a POS (Point of Sales, a sales terminal), a vehicle-mounted computer, a wearable device, etc. Take the mobile terminal as an example of a mobile phone :

图8为与本申请实施例提供的移动终端相关的手机的部分结构的框图。参考图8,手机包括:射频(Radio Frequency,RF)电路810、存储器820、输入单元830、显示单元840、传感器850、音频电路860、无线保真(wireless fidelity,Wi-Fi)模块870、处理器880、以及电源880等部件。本领域技术人员可以理解,图8所示的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。FIG. 8 is a block diagram of a partial structure of a mobile phone related to a mobile terminal provided by an embodiment of the present application. 8 , the mobile phone includes: a radio frequency (RF)circuit 810, amemory 820, aninput unit 830, adisplay unit 840, asensor 850, anaudio circuit 860, a wireless fidelity (Wi-Fi)module 870, aprocessing 880, and components such as thepower supply 880. Those skilled in the art can understand that the structure of the mobile phone shown in FIG. 8 does not constitute a limitation on the mobile phone, and may include more or less components than shown, or combine some components, or arrange different components.

其中,RF电路810可用于收发信息或通话过程中,信号的接收和发送,可将基站的下行信息接收后,给处理器880处理;也可以将上行的数据发送给基站。通常,RF电路包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,RF电路810还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(Global System ofMobile communication,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband CodeDivision Multiple Access,WCDMA)、长期演进(Long Term Evolution,LTE))、电子邮件、短消息服务(Short Messaging Service,SMS)等。TheRF circuit 810 can be used for receiving and sending signals during sending and receiving of information or during a call. After receiving the downlink information of the base station, it can be processed by theprocessor 880; it can also send the uplink data to the base station. Typically, the RF circuit includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition,RF circuitry 810 may also communicate with networks and other devices via wireless communication. The above-mentioned wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), General Packet Radio Service (General Packet Radio Service, GPRS), Code Division Multiple Access (Code Division Multiple Access) Access, CDMA), Wideband Code Division Multiple Access (Wideband Code Division Multiple Access, WCDMA), Long Term Evolution (Long Term Evolution, LTE)), email, Short Messaging Service (Short Messaging Service, SMS) and the like.

存储器820可用于存储软件程序以及模块,处理器880通过运行存储在存储器820的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器820可主要包括程序存储区和数据存储区,其中,程序存储区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能的应用程序、图像播放功能的应用程序等)等;数据存储区可存储根据手机的使用所创建的数据(比如音频数据、通讯录等)等。此外,存储器820可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。Thememory 820 can be used to store software programs and modules, and theprocessor 880 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in thememory 820 . Thememory 820 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function (such as an application program for a sound playback function, an application program for an image playback function, etc.), etc.; The data storage area may store data (such as audio data, address book, etc.) created according to the usage of the mobile phone, and the like. Additionally,memory 820 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.

输入单元830可用于接收输入的数字或字符信息,以及产生与手机800的用户设置以及功能控制有关的键信号输入。具体地,输入单元830可包括触控面板831以及其他输入设备832。触控面板831,也可称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板831上或在触控面板831附近的操作),并根据预先设定的程式驱动相应的连接装置。在一个实施例中,触控面板831可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器880,并能接收处理器880发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板831。除了触控面板831,输入单元830还可以包括其他输入设备832。具体地,其他输入设备832可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)等中的一种或多种。Theinput unit 830 may be used to receive input numerical or character information, and generate key signal input related to user settings and function control of themobile phone 800 . Specifically, theinput unit 830 may include atouch panel 831 andother input devices 832 . Thetouch panel 831 , also referred to as a touch screen, can collect the user's touch operations on or near it (such as the user using a finger, a stylus, etc., any suitable object or accessory on or near the touch panel 831 ) operation), and drive the corresponding connection device according to the preset program. In one embodiment, thetouch panel 831 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the touch controller. To theprocessor 880, and can receive the command sent by theprocessor 880 and execute it. In addition, thetouch panel 831 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. Besides thetouch panel 831 , theinput unit 830 may further includeother input devices 832 . Specifically,other input devices 832 may include, but are not limited to, one or more of physical keyboards, function keys (such as volume control keys, switch keys, etc.), and the like.

显示单元840可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元840可包括显示面板841。在一个实施例中,可以采用液晶显示器(LiquidCrystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板841。在一个实施例中,触控面板831可覆盖显示面板841,当触控面板831检测到在其上或附近的触摸操作后,传送给处理器880以确定触摸事件的类型,随后处理器880根据触摸事件的类型在显示面板841上提供相应的视觉输出。虽然在图8中,触控面板831与显示面板841是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将触控面板831与显示面板841集成而实现手机的输入和输出功能。Thedisplay unit 840 may be used to display information input by the user or information provided to the user and various menus of the mobile phone. Thedisplay unit 840 may include adisplay panel 841 . In one embodiment, thedisplay panel 841 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. In one embodiment, thetouch panel 831 may cover thedisplay panel 841, and when thetouch panel 831 detects a touch operation on or near it, thetouch panel 831 transmits it to theprocessor 880 to determine the type of the touch event, and then theprocessor 880 determines the type of the touch event according to the The type of touch event provides a corresponding visual output ondisplay panel 841 . Although in FIG. 8, thetouch panel 831 and thedisplay panel 841 are used as two independent components to realize the input and input functions of the mobile phone, in some embodiments, thetouch panel 831 and thedisplay panel 841 can be integrated to form Realize the input and output functions of the mobile phone.

手机800还可包括至少一种传感器850,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板841的亮度,接近传感器可在手机移动到耳边时,关闭显示面板841和/或背光。运动传感器可包括加速度传感器,通过加速度传感器可检测各个方向上加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换)、振动识别相关功能(比如计步器、敲击)等;此外,手机还可配置陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器等。Cell phone 800 may also include at least onesensor 850, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of thedisplay panel 841 according to the brightness of the ambient light, and the proximity sensor may turn off thedisplay panel 841 and/or when the mobile phone is moved to the ear. or backlight. Motion sensors can include acceleration sensors, which can detect the magnitude of acceleration in all directions, and can detect the magnitude and direction of gravity when stationary. It can be used for applications that recognize the posture of mobile phones (such as switching between horizontal and vertical screens), and vibration recognition related functions (such as Pedometer, tapping), etc.; in addition, the mobile phone can also be equipped with other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc.

音频电路860、扬声器861和传声器862可提供用户与手机之间的音频接口。音频电路860可将接收到的音频数据转换后的电信号,传输到扬声器861,由扬声器861转换为声音信号输出;另一方面,传声器862将收集的声音信号转换为电信号,由音频电路860接收后转换为音频数据,再将音频数据输出处理器880处理后,经RF电路810可以发送给另一手机,或者将音频数据输出至存储器820以便后续处理。Audio circuit 860,speaker 861 andmicrophone 862 may provide an audio interface between the user and the cell phone. Theaudio circuit 860 can transmit the received audio data converted electrical signals to thespeaker 861, and thespeaker 861 converts them into sound signals for output; on the other hand, themicrophone 862 converts the collected sound signals into electrical signals, and theaudio circuit 860 converts the collected sound signals into electrical signals. After receiving, it is converted into audio data, and then the audio data is output to theprocessor 880 for processing, and can be sent to another mobile phone via theRF circuit 810, or the audio data can be output to thememory 820 for subsequent processing.

Wi-Fi属于短距离无线传输技术,手机通过Wi-Fi模块870可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图8示出了Wi-Fi模块870,但是可以理解的是,其并不属于手机800的必须构成,可以根据需要而省略。Wi-Fi is a short-distance wireless transmission technology. The mobile phone can help users to send and receive emails, browse web pages, and access streaming media through the Wi-Fi module 870, which provides users with wireless broadband Internet access. Although FIG. 8 shows the Wi-Fi module 870, it can be understood that it is not a necessary component of themobile phone 800 and can be omitted as required.

处理器880是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器820内的软件程序和/或模块,以及调用存储在存储器820内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。在一个实施例中,处理器880可包括一个或多个处理单元。在一个实施例中,处理器880可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等;调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器880中。Theprocessor 880 is the control center of the mobile phone, using various interfaces and lines to connect various parts of the entire mobile phone, by running or executing the software programs and/or modules stored in thememory 820, and calling the data stored in thememory 820. Various functions of the mobile phone and processing data, so as to monitor the mobile phone as a whole. In one embodiment, theprocessor 880 may include one or more processing units. In one embodiment, theprocessor 880 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface and application programs, etc.; the modem processor mainly handles wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into theprocessor 880.

手机800还包括给各个部件供电的电源880(比如电池),优选的,电源可以通过电源管理系统与处理器880逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。Themobile phone 800 also includes a power supply 880 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to theprocessor 880 through a power management system, so as to manage charging, discharging, and power consumption management functions through the power management system.

在一个实施例中,手机800还可以包括摄像头、蓝牙模块等。In one embodiment, themobile phone 800 may further include a camera, a Bluetooth module, and the like.

在本申请实施例中,该移动终端所包括的处理器880执行存储在存储器上的计算机程序时实现本申请实施例中信息处理方法的步骤。In the embodiment of the present application, when theprocessor 880 included in the mobile terminal executes the computer program stored in the memory, the steps of the information processing method in the embodiment of the present application are implemented.

本申请所使用的对存储器、存储、数据库或其它介质的任何引用可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM),它用作外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDR SDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)。Any reference to a memory, storage, database, or other medium as used herein may include non-volatile and/or volatile memory. Nonvolatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM), which acts as external cache memory. By way of illustration and not limitation, RAM is available in various forms such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), Memory Bus (Rambus) Direct RAM (RDRAM), Direct Memory Bus Dynamic RAM (DRDRAM), and Memory Bus Dynamic RAM (RDRAM).

以上实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本申请专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above examples only represent several embodiments of the present application, and the descriptions thereof are relatively specific and detailed, but should not be construed as a limitation on the scope of the patent of the present application. It should be pointed out that for those skilled in the art, without departing from the concept of the present application, several modifications and improvements can be made, which all belong to the protection scope of the present application. Therefore, the scope of protection of the patent of the present application shall be subject to the appended claims.

Claims (10)

when the power consumption abnormal type is wireless fidelity Wi-Fi awakening, when the fact that the Wi-Fi awakening is unicast packet awakening is detected, writing a detected Wi-Fi awakening event into a kernel node, recording the moment when the Wi-Fi awakening event is detected and the accumulated times of the Wi-Fi awakening event detected in the screen-off period of the mobile terminal, meanwhile, when the Wi-Fi awakening event is detected, reporting an event notification framework layer by the kernel layer, acquiring flow information consumed by each application program in a target time length by the framework layer, taking the application program with the largest flow consumption as a target application program, and acquiring a target application program identifier of the target application program;
a second obtaining module, configured to, when the power consumption anomaly type is Wi-Fi wake-up, write a detected Wi-Fi wake-up event into a kernel node when it is detected that the Wi-Fi wake-up is unicast packet wake-up, record a time at which the Wi-Fi wake-up event is detected and a cumulative number of times that the Wi-Fi wake-up event is detected during a period in which a mobile terminal is turned off, and meanwhile, when the Wi-Fi wake-up event is detected, report an event notification framework layer by the kernel layer, where the framework layer obtains traffic information consumed by each application program within a target duration, and obtains a target application program identifier of the target application program by using an application program consuming the most traffic as the target application program;
CN201810270073.0A2018-03-292018-03-29 Information processing method, device, mobile terminal, and computer-readable storage mediumExpired - Fee RelatedCN108541013B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201810270073.0ACN108541013B (en)2018-03-292018-03-29 Information processing method, device, mobile terminal, and computer-readable storage medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201810270073.0ACN108541013B (en)2018-03-292018-03-29 Information processing method, device, mobile terminal, and computer-readable storage medium

Publications (2)

Publication NumberPublication Date
CN108541013A CN108541013A (en)2018-09-14
CN108541013Btrue CN108541013B (en)2022-06-10

Family

ID=63482357

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201810270073.0AExpired - Fee RelatedCN108541013B (en)2018-03-292018-03-29 Information processing method, device, mobile terminal, and computer-readable storage medium

Country Status (1)

CountryLink
CN (1)CN108541013B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN110413525B (en)*2019-07-292023-05-23国网新疆电力有限公司电力科学研究院 Safety testing method and device
CN113051127B (en)*2019-12-272022-12-13Oppo广东移动通信有限公司 Abnormal power consumption detection method, device, electronic equipment and storage medium
CN113542483B (en)*2020-03-302022-03-18Oppo广东移动通信有限公司Data transmission method and device, wearable device and storage medium
CN112882762A (en)*2021-03-252021-06-01广州文石信息科技有限公司Power consumption optimization method, device, equipment and storage medium for ink screen equipment
CN113225727B (en)*2021-05-122022-12-13维沃移动通信有限公司 Processing method, device and electronic equipment
CN114428546B (en)*2022-01-252024-04-09惠州Tcl移动通信有限公司Background application cleaning method and device, storage medium and terminal equipment
CN117762114A (en)*2022-09-162024-03-26长城汽车股份有限公司Frequent wake-up fault processing method and device, electronic equipment and vehicle
CN119485009B (en)*2025-01-142025-04-15浙江大华技术股份有限公司 Camera wake-up method, monitoring system, electronic device and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
EP2525609A1 (en)*2011-05-182012-11-21France TelecomMethod and appartus for managing access to a communitary WiFi network
CN104166542A (en)*2013-05-172014-11-26腾讯科技(深圳)有限公司Method and device for detecting electricity consumption of application
CN104298584A (en)*2013-07-192015-01-21贝壳网际(北京)安全技术有限公司Method and device for acquiring application program with abnormal power consumption and mobile terminal
CN105528055A (en)*2015-12-302016-04-27小米科技有限责任公司Running object processing method and device
CN105677386A (en)*2015-12-292016-06-15北京金山安全软件有限公司Application program management method and device and electronic equipment
CN106708240A (en)*2015-11-182017-05-24腾讯科技(深圳)有限公司Power saving method, server and power saving system
CN107027141A (en)*2017-05-082017-08-08广东欧珀移动通信有限公司 Information processing method, device and mobile terminal
CN107172687A (en)*2017-05-082017-09-15广东欧珀移动通信有限公司 Information processing method, device and mobile terminal
CN107193707A (en)*2017-05-082017-09-22广东欧珀移动通信有限公司Information processing method, device and mobile terminal
CN107506019A (en)*2017-08-072017-12-22北京小米移动软件有限公司Management method and device, terminal, the storage medium of application program

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
TW201401838A (en)*2012-06-252014-01-01Hon Hai Prec Ind Co LtdWakeup apparatus and electronic device
FR3000359A1 (en)*2012-12-212014-06-27France Telecom METHOD OF ALARMING A BASE STATION SERVING A SMALL CELL DURING AN INCOMING CALL
US10154130B2 (en)*2013-08-232018-12-11Cellepathy Inc.Mobile device context aware determinations

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
EP2525609A1 (en)*2011-05-182012-11-21France TelecomMethod and appartus for managing access to a communitary WiFi network
CN104166542A (en)*2013-05-172014-11-26腾讯科技(深圳)有限公司Method and device for detecting electricity consumption of application
CN104298584A (en)*2013-07-192015-01-21贝壳网际(北京)安全技术有限公司Method and device for acquiring application program with abnormal power consumption and mobile terminal
CN106708240A (en)*2015-11-182017-05-24腾讯科技(深圳)有限公司Power saving method, server and power saving system
CN105677386A (en)*2015-12-292016-06-15北京金山安全软件有限公司Application program management method and device and electronic equipment
CN105528055A (en)*2015-12-302016-04-27小米科技有限责任公司Running object processing method and device
CN107027141A (en)*2017-05-082017-08-08广东欧珀移动通信有限公司 Information processing method, device and mobile terminal
CN107172687A (en)*2017-05-082017-09-15广东欧珀移动通信有限公司 Information processing method, device and mobile terminal
CN107193707A (en)*2017-05-082017-09-22广东欧珀移动通信有限公司Information processing method, device and mobile terminal
CN107506019A (en)*2017-08-072017-12-22北京小米移动软件有限公司Management method and device, terminal, the storage medium of application program

Also Published As

Publication numberPublication date
CN108541013A (en)2018-09-14

Similar Documents

PublicationPublication DateTitle
CN108541013B (en) Information processing method, device, mobile terminal, and computer-readable storage medium
CN112703714B (en)Application processing method and device, computer equipment and computer readable storage medium
CN108616653B (en) Information processing method, device, mobile terminal, and computer-readable storage medium
CN109144232B (en) Process processing method and apparatus, electronic device, and computer-readable storage medium
CN109992438A (en) Information processing method, apparatus, computer device, and computer-readable storage medium
CN110008008A (en)Applied program processing method and device, electronic equipment, computer readable storage medium
CN109445917B (en) Application processing method and apparatus, electronic device, computer-readable storage medium
CN110032266B (en) Information processing method, apparatus, computer device, and computer-readable storage medium
CN108449491A (en)Information processing method and device, mobile terminal and computer readable storage medium
CN106775685A (en)Wake up lock method for releasing and device, mobile terminal
CN108549593A (en)Information processing method, device, mobile terminal and computer readable storage medium
CN108536547A (en) Information processing method, device, computer device, and computer-readable storage medium
CN110032397B (en)Application processing method and device, electronic equipment and computer readable storage medium
CN109992425A (en) Information processing method, apparatus, computer device, and computer-readable storage medium
CN108668016B (en)Information processing method, device, mobile terminal and computer readable storage medium
CN109992309B (en) Application processing method and apparatus, electronic device, and computer-readable storage medium
CN108566471B (en)Information processing method, device, mobile terminal and computer readable storage medium
CN109992360B (en)Process processing method and device, electronic equipment and computer readable storage medium
CN108541050A (en)Information processing method, device, mobile terminal and computer readable storage medium
CN108646909B (en)Information processing method, device, mobile terminal and computer readable storage medium
CN108566470A (en)Information processing method, device, mobile terminal and computer readable storage medium
CN107491349A (en) Application program processing method and device, computer equipment, storage medium
CN108536546A (en)Information processing method, device, mobile terminal and computer readable storage medium
CN109388487B (en) Application processing method and apparatus, electronic device, and computer-readable storage medium
CN108650384B (en) Information processing method, device, mobile terminal, and computer-readable storage medium

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
CB02Change of applicant information
CB02Change of applicant information

Address after:Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after:GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before:Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before:GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

GR01Patent grant
GR01Patent grant
CF01Termination of patent right due to non-payment of annual fee
CF01Termination of patent right due to non-payment of annual fee

Granted publication date:20220610


[8]ページ先頭

©2009-2025 Movatter.jp