[go: up one dir, main page]

CN108650384A - 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
CN108650384A
CN108650384A CN201810463226.3A CN201810463226A CN108650384A CN 108650384 A CN108650384 A CN 108650384A CN 201810463226 A CN201810463226 A CN 201810463226A CN 108650384 A CN108650384 A CN 108650384A
Authority
CN
China
Prior art keywords
mobile terminal
application program
subsystem
wake
subsystems
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.)
Granted
Application number
CN201810463226.3A
Other languages
Chinese (zh)
Other versions
CN108650384B (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.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing Intelligent Technology Co 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 Oppo Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN201810463226.3A priority Critical patent/CN108650384B/en
Publication of CN108650384A publication Critical patent/CN108650384A/en
Application granted granted Critical
Publication of CN108650384B publication Critical patent/CN108650384B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/24Arrangements for testing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72463User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions to restrict the functionality of the device

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Environmental & Geological Engineering (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

A kind of information processing method of the application offer, device, mobile terminal and computer readable storage medium.The above method includes:If detecting that mobile terminal AP subsystems enter dormant state in the case where mobile terminal goes out screen state, the first-class magnitude of the mobile terminal is recorded;When the wake source that the mobile terminal AP subsystems were waken up and woke up the mobile terminal AP subsystems is target type wake source, second magnitude is obtained;The target type wake source refers to the wake source of application triggers;The consuming flow value of the application program is determined according to the first-class magnitude and the second magnitude.The above method can obtain the flow value of application program consuming in real time, and the flow value accuracy that the application program counted expends is high.

Description

信息处理方法、装置、移动终端和计算机可读存储介质Information processing method, device, 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' daily life. Through smart mobile terminals, users can communicate and communicate with others conveniently. During the use of the smart mobile terminal, the application programs in the smart mobile terminal can perform intra-application communication or inter-application communication. The use of various application programs in the smart mobile terminal will cause the power consumption of the smart mobile terminal, wasting the power consumption of the mobile terminal.

发明内容Contents of the invention

本申请实施例提供一种信息处理方法、装置、移动终端和计算机可读存储介质,可以精确的获取在移动终端灭屏期间各个应用程序耗费的流量值。Embodiments of the present application provide an information processing method, device, mobile terminal, and computer-readable storage medium, which can accurately acquire traffic values consumed by various application programs when the screen of the mobile terminal is off.

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

在移动终端灭屏状态下若检测到移动终端AP子系统进入休眠状态,记录所述移动终端的第一流量值;If it is detected that the AP subsystem of the mobile terminal enters a dormant state under the screen-off state of the mobile terminal, record the first flow value of the mobile terminal;

当所述移动终端AP子系统被唤醒且唤醒所述移动终端AP子系统的唤醒源为目标类型唤醒源时,获取第二流量值;所述目标类型唤醒源是指应用程序触发的唤醒源;When the AP subsystem of the mobile terminal is awakened and the wake-up source that wakes up the AP subsystem of the mobile terminal is a target type wake-up source, the second traffic value is obtained; the target type wake-up source refers to a wake-up source triggered by an application;

根据所述第一流量值和所述第二流量值确定所述应用程序的耗费流量值。Determine the consumed traffic value of the application program according to the first traffic value and the second traffic value.

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

记录模块,用于在移动终端灭屏状态下若检测到移动终端AP子系统进入休眠状态,记录所述移动终端的第一流量信息;A recording module, configured to record the first flow information of the mobile terminal if it is detected that the AP subsystem of the mobile terminal enters a dormant state when the mobile terminal is in the off-screen state;

获取模块,用于当所述移动终端AP子系统被唤醒且唤醒所述移动终端AP子系统的唤醒源为目标类型唤醒源时,获取第二流量信息;所述目标类型唤醒源是指应用程序触发的唤醒源;An acquisition module, configured to acquire second traffic information when the mobile terminal AP subsystem is awakened and the wakeup source that wakes up the mobile terminal AP subsystem is a target type wakeup source; the target type wakeup source refers to an application program Triggered wakeup source;

确定模块,用于根据所述第一流量信息和所述第二流量信息确定所述应用程序的耗费流量值。A determining module, configured to determine the consumed traffic value of the application program according to the first traffic information and the second traffic information.

一种移动终端,包括存储器及处理器,所述存储器中储存有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器执行如上所述的方法的步骤。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 is made to execute the steps of the method described above.

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

本申请实施例中方法,在移动终端AP子系统进入休眠状态时,可获取移动终端的第一流量值;在移动终端AP子系统被应用程序唤醒时,可获取移动终端的第二流量值;上述第二流量值与第一流量值的差值即可作为应用程序耗费的流量值。上述方法可以实时获取应用程序耗费的流量值,且统计的应用程序耗费的流量值精确度高。In the method of the embodiment of the present application, when the AP subsystem of the mobile terminal enters a dormant state, the first traffic value of the mobile terminal can be obtained; when the AP subsystem of the mobile terminal is awakened by the application program, the second traffic value of the mobile terminal can be obtained; The difference between the above-mentioned second traffic value and the first traffic value can be used as the traffic value consumed by the application program. The foregoing method can obtain the traffic value consumed by the application program in real time, and the statistical traffic value consumed by the application program is highly accurate.

附图说明Description of drawings

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

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

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

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

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

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

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

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

具体实施方式Detailed ways

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

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

步骤102,在移动终端灭屏状态下若检测到移动终端AP子系统进入休眠状态,获取第一流量值。Step 102, if it is detected that the AP subsystem of the mobile terminal enters a dormant state when the screen of the mobile terminal is off, acquire a first traffic value.

移动终端的灭屏状态是指移动终端开机但移动终端屏幕熄灭的状态,即移动终端停止对移动终端屏幕进行供电。移动终端屏幕可包括亮屏状态和灭屏状态。上述亮屏是指移动终端屏幕被点亮,上述灭屏是指移动终端屏幕关闭背光。当移动终端处于灭屏状态时,移动终端中各个子系统可处于唤醒状态或休眠状态。当移动终端AP子系统处于唤醒状态时,移动终端AP子系统耗费的电量较多;当移动终端AP子系统处于休眠状态时,移动终端AP子系统耗费的电量较少,可减少移动终端的待机功耗。The off-screen state of the mobile terminal refers to a state in which the mobile terminal is powered on but the screen of the mobile terminal is off, that is, the mobile terminal stops supplying power to the screen of the mobile terminal. The screen of the mobile terminal may include a screen on state and a screen off state. The screen on means that the screen of the mobile terminal is turned on, and the screen off means that the backlight of the screen of the mobile terminal is turned off. When the mobile terminal is in an off-screen state, each subsystem in the mobile terminal may be in a wake-up state or a dormant state. When the AP subsystem of the mobile terminal is in the wake-up state, the AP subsystem of the mobile terminal consumes more power; when the AP subsystem of the mobile terminal is in the dormant state, the AP subsystem of the mobile terminal consumes less power, which can reduce the standby time of the mobile terminal power consumption.

移动终端子系统可包括:AP(Application Processer,应用处理器)子系统、MPSS(Modem Processer Sub System,调制解调器处理器子系统)子系统、ADSP(AdvancedDigital Signal Processor,高级数字信号处理器)子系统等。其中AP子系统负责运行移动终端操作系统如Android操作系统以实现大部分与用户相关的多媒体任务;MPSS子系统运行定制的实时操作系统以实现与用户连接相关的功能,例如Wi-Fi、通话等;ADSP子系统负责传感器、音频相关的任务和功能。由于移动终端AP子系统负责运行移动终端操作系统,当移动终端AP子系统休眠时,移动终端中其他子系统可唤醒移动终端AP子系统以实现移动终端中软件等在灭屏状态的运行,移动终端AP子系统在被唤醒后处理完对应的消息、数据或事件,可重新进入休眠状态。The mobile terminal subsystem may include: AP (Application Processer, application processor) subsystem, MPSS (Modem Processer Sub System, modem processor subsystem) subsystem, ADSP (Advanced Digital Signal Processor, advanced digital signal processor) subsystem, etc. . Among them, the AP subsystem is responsible for running the mobile terminal operating system such as the Android operating system to realize most of the multimedia tasks related to the user; the MPSS subsystem runs the customized real-time operating system to realize the functions related to the user connection, such as Wi-Fi, call, etc. ; The ADSP subsystem is responsible for sensor, audio-related tasks and functions. Since the mobile terminal AP subsystem is responsible for running the mobile terminal operating system, when the mobile terminal AP subsystem is dormant, other subsystems in the mobile terminal can wake up the mobile terminal AP subsystem to realize the operation of the software in the mobile terminal in the off-screen state, and the mobile After being woken up, the terminal AP subsystem processes the corresponding messages, data or events, and can re-enter the dormant state.

在移动终端灭屏状态下,移动终端可先确认移动终端AP子系统是否满足休眠条件,当移动终端AP子系统满足休眠条件时,移动终端AP子系统可进入休眠状态且移动终端可记录当前耗费流量值作为第一流量值。如图2所示,When the mobile terminal is in the off-screen state, the mobile terminal can first confirm whether the AP subsystem of the mobile terminal meets the dormancy conditions. The flow value is used as the first flow value. as shown in picture 2,

步骤202,wakeup_count节点确认移动终端AP子系统可休眠。In step 202, the wakeup_count node confirms that the AP subsystem of the mobile terminal can sleep.

步骤204,流量信息备份。移动终端可通过kernel层/proc/net/xt_qtaguid/stats读取当前流量信息,再将当前流量信息备份到kernel层中/proc/net/xt_qtaguid/oppo_stats节点。可选地,oppo_stats节点可对应位于kernel层中buffer,即oppo_stats节点可读可写。Step 204, traffic information backup. The mobile terminal can read the current traffic information through the kernel layer /proc/net/xt_qtaguid/stats, and then back up the current traffic information to the /proc/net/xt_qtaguid/oppo_stats node in the kernel layer. Optionally, the oppo_stats node can correspond to the buffer located in the kernel layer, that is, the oppo_stats node can be read and written.

步骤206,触发Kenrel休眠,使移动终端AP子系统进入休眠状态。Step 206, triggering the Kenrel to sleep, so that the AP subsystem of the mobile terminal enters the sleep state.

步骤208,移动终端AP子系统被唤醒后继续运行。In step 208, the AP subsystem of the mobile terminal continues to run after being woken up.

在移动终端灭屏状态下,移动终端libsuspend中的sleep流程被启动,移动终端通过native层中wakeup_count节点来确认移动终端AP子系统是否满足休眠条件。上述休眠条件可为:当移动终端kernel内核层中存在未释放的wakelock时,移动终端AP子系统无法进入休眠状态;当移动终端kernel内核层中所有wakelock被释放时,移动终端AP子系统可进入休眠状态,上述wakelock是移动终端中锁机制。在移动终端AP子系统满足休眠状态时,移动终端可读取当前的流量快照信息,并将读取到的流量快照信息存储在移动终端节点中,上述流量快照信息即为移动终端耗费的流量信息,可包括移动终端耗费的流量值。例如,移动终端可通过/proc/net/xt_qtaguid/stats读取当前的流量快照信息,并将读取到的流量快照信息存储在/proc/net/xt_qtaguid/oppo_stats节点。在移动终端AP子系统满足休眠状态时,移动终端可触发kernel内核层进入休眠流程,即使移动终端AP子系统进入休眠状态。When the screen of the mobile terminal is off, the sleep process in libsuspend of the mobile terminal is started, and the mobile terminal confirms whether the AP subsystem of the mobile terminal meets the sleep condition through the wakeup_count node in the native layer. The sleep condition above can be: when there is an unreleased wakelock in the kernel layer of the mobile terminal, the AP subsystem of the mobile terminal cannot enter the sleep state; when all wakelocks in the kernel layer of the mobile terminal are released, the AP subsystem of the mobile terminal can enter the sleep state. In the dormant state, the aforementioned wakelock is a locking mechanism in the mobile terminal. When the AP subsystem of the mobile terminal satisfies the sleep state, the mobile terminal can read the current traffic snapshot information and store the read traffic snapshot information in the mobile terminal node. The above traffic snapshot information is the traffic information consumed by the mobile terminal , which may include the traffic value consumed by the mobile terminal. For example, the mobile terminal can read the current traffic snapshot information through /proc/net/xt_qtaguid/stats, and store the read traffic snapshot information in the /proc/net/xt_qtaguid/oppo_stats node. When the AP subsystem of the mobile terminal satisfies the sleep state, the mobile terminal can trigger the kernel layer to enter the sleep process, even if the AP subsystem of the mobile terminal enters the sleep state.

步骤104,当移动终端AP子系统被唤醒且唤醒移动终端AP子系统的唤醒源为目标类型唤醒源时,获取第二流量值;目标类型唤醒源是指应用程序触发的唤醒源。Step 104, when the AP subsystem of the mobile terminal is awakened and the wakeup source for waking up the AP subsystem of the mobile terminal is a target type wakeup source, obtain the second traffic value; the target type wakeup source refers to a wakeup source triggered by an application program.

在移动终端AP子系统进入休眠状态后,若检测到移动终端AP子系统被唤醒,可获取唤醒上述移动终端AP子系统的唤醒源。检测上述唤醒移动终端AP子系统的唤醒源是否为目标类型唤醒源。上述目标类型唤醒源是指应用程序触发的唤醒源,即由于应用程序的通信等触发的对移动终端AP子系统的唤醒。上述目标类型唤醒源可包括wlan唤醒和modem数据连接唤醒等。上述wlan唤醒即应用程序联网触发的对移动终端AP子系统的唤醒;上述modem数据连接唤醒即为应用程序通信触发的对移动终端AP子系统的唤醒。其中,移动终端检测唤醒移动终端AP子系统的唤醒源是否为目标类型唤醒源包括:当移动终端AP子系统被唤醒时,根据唤醒移动终端AP子系统的唤醒标识查找对应的唤醒源,当上述唤醒源为目标类型的唤醒源时,移动终端可查找上述目标类型的唤醒源对应的应用程序并获取移动终端当前耗费的流量值作为第二流量值,则上述第二流量值即为应用程序耗费的流量值。例如,当移动终端检测到移动终端AP子系统被唤醒时,可获取唤醒移动终端AP子系统的唤醒源的中断编号,当上述中断编号为wlan唤醒对应的中断编号或modem数据连接唤醒对应的中断编号时,则移动终端读取当前流量快照信息得到第二流量值。After the AP subsystem of the mobile terminal enters the dormant state, if it is detected that the AP subsystem of the mobile terminal is awakened, the wakeup source for waking up the AP subsystem of the mobile terminal can be obtained. Detecting whether the above-mentioned wake-up source for waking up the AP subsystem of the mobile terminal is a target-type wake-up source. The aforementioned target type wakeup source refers to a wakeup source triggered by an application program, that is, the wakeup of the AP subsystem of the mobile terminal triggered by communication of the application program. The aforementioned target type wakeup sources may include wlan wakeup, modem data connection wakeup, and the like. The aforementioned wlan wake-up is the wake-up of the mobile terminal AP subsystem triggered by the application program networking; the aforementioned modem data connection wake-up is the wake-up of the mobile terminal AP subsystem triggered by the application program communication. Wherein, the mobile terminal detects whether the wake-up source for waking up the AP subsystem of the mobile terminal is a target-type wake-up source includes: when the AP subsystem of the mobile terminal is woken up, searching for the corresponding wake-up source according to the wake-up identifier of the AP subsystem of the mobile terminal, when the above When the wake-up source is the wake-up source of the target type, the mobile terminal can search for the application program corresponding to the wake-up source of the above-mentioned target type and obtain the traffic value currently consumed by the mobile terminal as the second traffic value, then the above-mentioned second traffic value is the application program consumption flow value. For example, when the mobile terminal detects that the AP subsystem of the mobile terminal is awakened, the interrupt number of the wake-up source that wakes up the AP subsystem of the mobile terminal can be obtained. When the above-mentioned interrupt number is the interrupt number corresponding to wlan wakeup or the interrupt corresponding to modem data connection When numbering, the mobile terminal reads the current traffic snapshot information to obtain the second traffic value.

步骤106,根据第一流量值和第二流量值确定应用程序的耗费流量值。Step 106, determine the consumed flow value of the application program according to the first flow value and the second flow value.

上述第一流量值是移动终端AP子系统进入休眠状态时移动终端耗费的流量值,上述第二流量值是移动终端AP子系统在由休眠状态被应用程序唤醒时移动终端耗费的流量值,则上述第二流量值与第一流量值的差值即为应用程序耗费的流量值。例如,在移动终端AP子系统进入休眠状态时移动终端耗费的流量值为100兆,当移动终端AP子系统被wlan唤醒时,移动终端可获取当前流量快照信息读取移动终端耗费的流量值为110兆,则上述移动终端应用程序耗费的流量值为10兆。The above-mentioned first traffic value is the traffic value consumed by the mobile terminal when the AP subsystem of the mobile terminal enters the dormant state, and the above-mentioned second traffic value is the traffic value consumed by the mobile terminal when the AP subsystem of the mobile terminal is awakened by the application program from the dormant state, then The difference between the second flow value and the first flow value is the flow value consumed by the application program. For example, when the AP subsystem of the mobile terminal enters the dormant state, the traffic value consumed by the mobile terminal is 100 MB. When the AP subsystem of the mobile terminal is awakened by wlan, the mobile terminal can obtain the current traffic snapshot information and read the traffic value consumed by the mobile terminal. 110 megabytes, then the traffic value consumed by the mobile terminal application is 10 megabytes.

图3为一个实施例中信息处理方法的流程图。如图3所示:Fig. 3 is a flowchart of an information processing method in an embodiment. As shown in Figure 3:

步骤302,当移动终端kernel层检测到AP子系统被唤醒时,对唤醒类型进行检测。Step 302, when the kernel layer of the mobile terminal detects that the AP subsystem is woken up, it detects the wakeup type.

步骤304,当唤醒源为wlan唤醒或modem数据连接唤醒时,则唤醒wakeup_reason_work线程,发送一个uevent给framework层。Step 304, when the wakeup source is wlan wakeup or modem data connection wakeup, wakeup_reason_work thread is woken up, and a uevent is sent to the framework layer.

步骤306,framework层中NetWake服务抓取流量状态。包括:步骤3061,通过/proc/net/xt_qtaguid/stat节点抓取当前流量信息。步骤3062,通过/proc/net/xt_qtaguid/oppo_stat节点抓取已存储流量信息。In step 306, the NetWake service in the framework layer captures the traffic status. Including: step 3061, capture current traffic information through /proc/net/xt_qtaguid/stat node. Step 3062, grab the stored traffic information through the /proc/net/xt_qtaguid/oppo_stat node.

步骤308,根据抓取的流量信息得到应用程序消耗流量值。例如,若通过/proc/net/xt_qtaguid/stats读取到流量值A,通过读取/proc/net/xt_qtaguid/oppo_stats得到流量值为B,然后做差分A-B,即可得到应用程序耗费流量值。即移动终端AP子系统在每次进入休眠状态时,均可在/proc/net/xt_qtaguid/oppo_stats中记录进入休眠状态时移动终端的流量信息,在移动终端AP子系统被目标类型唤醒源唤醒时,移动终端通过读取当前流量信息与/proc/net/xt_qtaguid/oppo_stats中记录流量信息的差值可得到应用程序对应的耗费流量值。Step 308, obtain the application program consumption traffic value according to the captured traffic information. For example, if the flow value A is read through /proc/net/xt_qtaguid/stats, the flow value B is obtained by reading /proc/net/xt_qtaguid/oppo_stats, and then the difference A-B is made to obtain the flow value consumed by the application. That is, each time the mobile terminal AP subsystem enters the dormant state, it can record the traffic information of the mobile terminal when it enters the dormant state in /proc/net/xt_qtaguid/oppo_stats. When the mobile terminal AP subsystem is awakened by the target type wake-up source , the mobile terminal can obtain the traffic consumption value corresponding to the application by reading the difference between the current traffic information and the traffic information recorded in /proc/net/xt_qtaguid/oppo_stats.

通常情况下,移动终端通过框架层中NETWORK_STATS_SERVICE服务来查找在移动终端AP子系统休眠状态下唤醒移动终端AP子系统的应用程序,以及上述应用程序耗费的流量值,但上述NETWORK_STATS_SERVICE服务更新周期较长,且上述NETWORK_STATS_SERVICE服务统计的流量信息误差较大,因此根据上述服务统计的应用程序在灭屏期间耗费的流量值误差较大,统计结果不够精确。Usually, the mobile terminal uses the NETWORK_STATS_SERVICE service in the framework layer to find the application program that wakes up the mobile terminal AP subsystem in the sleep state, and the traffic value consumed by the above application program, but the above NETWORK_STATS_SERVICE service update cycle is longer , and the above-mentioned NETWORK_STATS_SERVICE service statistics traffic information error is relatively large, so the application program according to the above-mentioned service statistics has a large error in the traffic value consumed during the off-screen period, and the statistical results are not accurate enough.

本申请实施例中方法,在移动终端AP子系统进入休眠状态时,可获取移动终端的第一流量值;在移动终端AP子系统被应用程序唤醒时,可获取移动终端的第二流量值;上述第二流量值与第一流量值的差值即可作为应用程序耗费的流量值。上述方法可以实时获取应用程序耗费的流量值,且统计的应用程序耗费的流量值精确度高。In the method of the embodiment of the present application, when the AP subsystem of the mobile terminal enters a dormant state, the first traffic value of the mobile terminal can be obtained; when the AP subsystem of the mobile terminal is awakened by the application program, the second traffic value of the mobile terminal can be obtained; The difference between the above-mentioned second traffic value and the first traffic value can be used as the traffic value consumed by the application program. The foregoing method can obtain the traffic value consumed by the application program in real time, and the statistical traffic value consumed by the application program is highly accurate.

在一个实施例中,检测移动终端AP子系统是否进入休眠状态包括:In one embodiment, detecting whether the AP subsystem of the mobile terminal enters the dormant state includes:

检测移动终端内核层中是否存在未释放的唤醒锁。Detect whether there is an unreleased wake lock in the kernel layer of the mobile terminal.

当移动终端内核层中不存在未释放的唤醒锁时,移动终端AP子系统进入休眠状态。When there is no unreleased wake lock in the kernel layer of the mobile terminal, the AP subsystem of the mobile terminal enters a dormant state.

唤醒锁是一种控制移动终端电源状态的软件机制,唤醒锁可在移动终端中框架层和内核层实现。当唤醒锁在移动终端框架层实现时,上述唤醒锁可被移动终端操作系统服务或应用程序采用,并通过移动终端电源管理服务来提供;当唤醒锁在移动终端内核层实现时,上述唤醒锁可被移动终端操作系统内核额或驱动程序采用。A wake lock is a software mechanism to control the power state of a mobile terminal, and the wake lock can be implemented at the framework layer and the kernel layer of the mobile terminal. When the wake-up lock is implemented at the mobile terminal framework layer, the above-mentioned wake-up lock can be adopted by the mobile terminal operating system service or application program, and provided through the mobile terminal power management service; when the wake-up lock is implemented at the mobile terminal kernel layer, the above-mentioned wake-up lock It can be adopted by the mobile terminal operating system kernel or driver.

当移动终端进入灭屏状态时,移动终端可检测在移动终端内核层中是否存在未释放的唤醒锁;若移动终端内核层中存在未释放的唤醒锁,则移动终端AP子系统无法进入休眠状态;若移动终端内核层中不存在未释放的唤醒锁,即移动终端内核层中所有唤醒锁已释放时,移动终端AP子系统可进入休眠状态。When the mobile terminal enters the off-screen state, the mobile terminal can detect whether there is an unreleased wake-up lock in the mobile terminal kernel layer; if there is an unreleased wake-up lock in the mobile terminal kernel layer, the mobile terminal AP subsystem cannot enter the dormant state ; If there is no unreleased wake-up lock in the mobile terminal kernel layer, that is, when all wake-up locks in the mobile terminal kernel layer have been released, the mobile terminal AP subsystem can enter a dormant state.

本申请实施例中方法,可监测移动终端AP子系统是否进入休眠状态,有利于在移动终端AP子系统进入休眠状态时,获取移动终端耗费的流量信息。The method in the embodiment of the present application can monitor whether the AP subsystem of the mobile terminal enters the dormant state, which is beneficial to obtain the traffic information consumed by the mobile terminal when the AP subsystem of the mobile terminal enters the dormant state.

在一个实施例中,移动终端AP子系统进入休眠状态包括:In one embodiment, the mobile terminal AP subsystem entering the dormant state includes:

在移动终端灭屏状态下移动终端AP子系统首次进入休眠状态。When the screen of the mobile terminal is off, the AP subsystem of the mobile terminal enters the sleep state for the first time.

或,在移动终端灭屏状态下移动终端AP子系统由休眠状态被唤醒后再次进入休眠状态。Or, when the screen of the mobile terminal is off, the AP subsystem of the mobile terminal is awakened from the dormant state and then enters the dormant state again.

上述移动终端AP子系统进入休眠状态可包括在移动终端灭屏状态下移动终端AP子系统首次进入休眠状态以及移动终端AP子系统由休眠状态被唤醒后再次进入休眠状态。The aforementioned entry of the AP subsystem of the mobile terminal into the sleep state may include entering the sleep state for the first time when the screen of the mobile terminal is off, and entering the sleep state again after the AP subsystem of the mobile terminal is awakened from the sleep state.

上述移动终端AP子系统进入休眠状态可包括在移动终端灭屏状态下移动终端AP子系统首次进入休眠状态以及移动终端AP子系统由休眠状态被唤醒后再次进入休眠状态。在移动终端灭屏状态下,当移动终端内核层中所有唤醒锁被释放时,移动终端AP子系统可进入休眠状态,即移动终端首次进入休眠状态。在移动终端首次进入休眠状态或移动终端由休眠状态被唤醒后再次进入休眠状态时,移动终端均可获取移动终端当前流量值作为第一流量值。在移动终端AP子系统被目标类型唤醒源唤醒时,再获取移动终端当前流量值作为第二流量值。The aforementioned entry of the AP subsystem of the mobile terminal into the sleep state may include entering the sleep state for the first time when the screen of the mobile terminal is off, and entering the sleep state again after the AP subsystem of the mobile terminal is awakened from the sleep state. In the off-screen state of the mobile terminal, when all wake-up locks in the kernel layer of the mobile terminal are released, the AP subsystem of the mobile terminal can enter the dormant state, that is, the mobile terminal enters the dormant state for the first time. When the mobile terminal enters the dormant state for the first time or enters the dormant state again after being awakened from the dormant state, the mobile terminal can acquire the current traffic value of the mobile terminal as the first traffic value. When the AP subsystem of the mobile terminal is awakened by the target type wakeup source, the current traffic value of the mobile terminal is obtained as the second traffic value.

本申请实施例中方法,在移动终端AP子系统首次进入休眠状态和移动终端AP子系统由休眠状态被唤醒后再次进入休眠状态时,移动终端均可获取当前流量值作为第一流量值,有利于统计在移动终端AP子系统每次被应用程序唤醒时,应用程序耗费的流量值。In the method in the embodiment of the present application, when the AP subsystem of the mobile terminal enters the dormant state for the first time and when the AP subsystem of the mobile terminal enters the dormant state again after being awakened from the dormant state, the mobile terminal can obtain the current flow value as the first flow value. It is beneficial to count the traffic value consumed by the application program every time the AP subsystem of the mobile terminal is awakened by the application program.

在一个实施例中,根据第一流量值和第二流量值确定应用程序的耗费流量值包括:In one embodiment, determining the consumed traffic value of the application program according to the first traffic value and the second traffic value includes:

获取唤醒移动终端AP子系统的唤醒源对应的应用程序标识。Obtain the application identifier corresponding to the wakeup source that wakes up the AP subsystem of the mobile terminal.

查找应用程序标识对应的应用程序。Find the application corresponding to the application ID.

将第二流量值与第一流量值的差值作为应用程序的耗费流量值。The difference between the second flow value and the first flow value is used as the consumed flow value of the application program.

当移动终端AP子系统被唤醒时,移动终端可通过唤醒标识查找对应的唤醒源。进一步地,移动终端还可查找上述唤醒源对应的应用程序标识;上述应用程序标识即为唯一标识应用程序的字符串,例如应用程序包名等。当移动终端AP子系统被唤醒的唤醒源为目标类型唤醒源时,移动终端可查找上述目标唤醒源对应的应用程序标识。例如,当移动终端AP子系统被唤醒的唤醒源为wlan唤醒时,移动终端可查找上述wlan唤醒对应的应用程序包名,在查找到应用程序包名后,即可根据上述应用程序包名查找对应的应用程序。When the AP subsystem of the mobile terminal is woken up, the mobile terminal can search for a corresponding wakeup source through the wakeup identifier. Further, the mobile terminal may also search for the application program identifier corresponding to the above-mentioned wake-up source; the above-mentioned application program identifier is a character string that uniquely identifies the application program, such as an application program package name and the like. When the wake-up source from which the AP subsystem of the mobile terminal is woken up is a target-type wake-up source, the mobile terminal may search for an application identifier corresponding to the above-mentioned target wake-up source. For example, when the wake-up source of the AP subsystem of the mobile terminal is wake-up from wlan, the mobile terminal can search for the application package name corresponding to the above-mentioned wlan wake-up, and after finding the application package name, it can search according to the above application package name. corresponding application.

应用程序标识是唯一标识应用程序的字符串,移动终端可根据上述应用程序标识查找对应的应用程序。其中,移动终端在获取到上述应用程序标识对应的应用程序后,移动终端可将上述第二流量值与第一流量值的差值作为应用程序耗费的流量值。上述应用程序即为唤醒移动终端AP子系统的应用程序。The application identifier is a character string that uniquely identifies an application, and the mobile terminal can search for a corresponding application according to the above application identifier. Wherein, after the mobile terminal obtains the application program corresponding to the application program identifier, the mobile terminal may use the difference between the second traffic value and the first traffic value as the traffic value consumed by the application program. The above application program is the application program for waking up the AP subsystem of the mobile terminal.

本申请实施例中方法,通过查找唤醒移动终端AP子系统的唤醒源对应的应用程序,可快速的确定耗费流量的应用程序,有利于统计在移动终端灭屏期间应用程序耗费的流量值。In the method of the embodiment of the present application, by searching for the application program corresponding to the wake-up source that wakes up the AP subsystem of the mobile terminal, the application program that consumes traffic can be quickly determined, which is beneficial to the statistics of the traffic value consumed by the application program when the screen of the mobile terminal is off.

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

当移动终端由灭屏状态切换到亮屏状态时,统计各个应用程序在灭屏期间耗费流量信息。When the mobile terminal is switched from the off-screen state to the on-screen state, the traffic consumption information of each application program during the off-screen period is counted.

根据耗费流量信息确定异常应用程序。Abnormal applications are determined based on traffic consumption information.

在移动终端由灭屏状态切换到亮屏状态时,移动终端可统计在移动终端灭屏期间唤醒移动终端AP子系统的应用程序的耗费流量信息。可选地,移动终端可统计各个应用程序在移动终端灭屏期间耗费的总流量、各个应用程序在移动终端灭屏期间唤醒移动终端AP子系统的次数、应用程序每次唤醒移动终端AP子系统时耗费的流量值。When the mobile terminal is switched from the off-screen state to the on-screen state, the mobile terminal can count the traffic consumption information of the applications that wake up the AP subsystem of the mobile terminal during the off-screen state of the mobile terminal. Optionally, the mobile terminal can count the total traffic consumed by each application program during the off-screen period of the mobile terminal, the number of times each application program wakes up the AP subsystem of the mobile terminal during the off-screen period of the mobile terminal, and the number of times each application program wakes up the AP subsystem of the mobile terminal. Time-consuming traffic value.

在获取到上述各个应用程序的耗费流量信息后,移动终端可根据上述耗费流量信息确定异常应用程序。可选地,移动终端可将在移动终端灭屏状态下唤醒移动终端AP子系统次数超过第一阈值的应用程序作为异常应用程序;移动终端也可将在移动终端灭屏状态下耗费的总流量超过第二阈值的应用程序作为异常应用程序;移动终端也可将单次耗费流量值超过第三阈值的应用程序作为异常应用程序。移动终端还可获取各个应用程序唤醒移动终端AP子系统的唤醒周期,当应用程序唤醒移动终端AP子系统的唤醒周期大于第四阈值时,可将上述应用程序作为异常应用程序。上述唤醒周期为应用程序两次唤醒移动终端AP子系统之间的时间间隔,例如3分钟/次。当移动终端检测到异常应用程序后,移动终端可抓取上述异常应用程序对应的异常信息,将上述异常信息写入日志并上传到服务器。上述第一阈值、第二阈值、第三阈值和第四阈值可为用户设定的值或移动终端侧设定的值。After acquiring the traffic consumption information of each application program above, the mobile terminal may determine an abnormal application program according to the traffic consumption information above. Optionally, the mobile terminal can regard the application program that wakes up the AP subsystem of the mobile terminal more than the first threshold as an abnormal application program when the mobile terminal is in the screen-off state; An application program exceeding the second threshold is regarded as an abnormal application program; the mobile terminal may also regard an application program whose single traffic consumption value exceeds the third threshold value as an abnormal application program. The mobile terminal can also obtain the wake-up cycle of each application program to wake up the mobile terminal AP subsystem, and when the wake-up cycle of the application program to wake up the mobile terminal AP subsystem is greater than the fourth threshold, the above-mentioned application program can be regarded as an abnormal application program. The above-mentioned wake-up period is the time interval between the application program waking up the AP subsystem of the mobile terminal twice, for example, 3 minutes/time. After the mobile terminal detects the abnormal application program, the mobile terminal can capture the abnormal information corresponding to the above abnormal application program, write the above abnormal information into a log and upload it to the server. The above-mentioned first threshold, second threshold, third threshold and fourth threshold may be values set by the user or values set by the mobile terminal side.

本申请实施例中方法,移动终端可通过各个应用程序在移动终端灭屏期间耗费的流量值来判定异常应用程序,可快速、方便的检测出在移动终端灭屏期间异常应用程序。In the method of the embodiment of the present application, the mobile terminal can determine the abnormal application program according to the traffic value consumed by each application program during the screen-off period of the mobile terminal, and can quickly and conveniently detect the abnormal application program during the screen-off period of the mobile terminal.

在一个实施例中,在根据耗费流量信息确定异常应用程序之前,上述方法还包括:In one embodiment, before determining the abnormal application program according to the traffic consumption information, the above method further includes:

获取移动终端的灭屏时长以及在灭屏期间的耗费电量。Obtain the screen-off duration of the mobile terminal and the power consumption during the screen-off period.

根据灭屏时长和耗费电量确定移动终端在灭屏期间耗电异常。According to the off-screen duration and power consumption, it is determined that the power consumption of the mobile terminal is abnormal during the off-screen period.

当移动终端由灭屏状态切换到亮屏状态时,移动终端可获取移动终端的灭屏时长以及移动终端在灭屏期间的耗费电量。移动终端可根据上述灭屏时长以及耗费电量检测移动终端在灭屏期间是否耗电异常。可选地,移动终端可获取上述耗费电量与灭屏时长的比值作为耗电功率,移动终端可将上述耗电功率与标准功率进行比较,若耗电功率大于上述标准功率,则移动终端在灭屏期间耗电异常。上述标准功率是移动终端在正常耗电时的功率值。上述标准功率可为移动终端根据历史耗电信息获取的值,也可为用户设定值,或服务器侧设定的值。When the mobile terminal is switched from the off-screen state to the on-screen state, the mobile terminal can obtain the duration of the off-screen of the mobile terminal and the power consumption of the mobile terminal during the off-screen period. The mobile terminal can detect whether the power consumption of the mobile terminal is abnormal during the screen-off period according to the above-mentioned off-screen duration and power consumption. Optionally, the mobile terminal can obtain the ratio of the above-mentioned power consumption to the time when the screen is off as the power consumption, and the mobile terminal can compare the above-mentioned power consumption with the standard power. If the power consumption is greater than the above-mentioned standard power, the mobile terminal Abnormal power consumption during the screen. The above-mentioned standard power is the power value of the mobile terminal during normal power consumption. The above-mentioned standard power may be a value obtained by the mobile terminal according to historical power consumption information, or may be a value set by the user, or a value set by the server side.

本申请实施例中方法,当检测到移动终端在灭屏期间耗电异常时,移动终端可再检测是否存在异常应用程序,避免移动终端在耗电正常时多次检测浪费移动终端功耗。In the method of the embodiment of the present application, when the abnormal power consumption of the mobile terminal is detected during the off-screen period, the mobile terminal can detect whether there is an abnormal application program again, so as to avoid wasting power consumption of the mobile terminal by multiple detections when the mobile terminal consumes normal power.

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

若检测到移动终端处于目标运行状态且异常应用程序在后台运行,对异常应用程序进行资源限制处理。If it is detected that the mobile terminal is in the target running state and the abnormal application program is running in the background, resource limitation processing is performed on the abnormal application program.

当检测到移动终端中异常应用程序时,可对上述异常应用程序进行限制,避免上述异常应用程序耗费移动终端电量。其中,当移动终端处于目标运行状态时,若检测到异常应用程序在后台运行,可对上述异常应用程序进行资源限制处理。其中,目标运行状态可为移动终端的灭屏状态,移动终端设定的需要节省电量的状态,或移动终端电量低于指定阈值的状态。例如,移动终端开启省电模式时的状态,移动终端电量低于30%时的状态。异常应用程序在后台运行是指异常应用程序退出移动终端界面,在VRE中间件软件为移动终端提供的应用软件运行环境中运行。当应用程序在移动终端后台运行时,应用程序可进行应用内通信和应用间通信。对上述异常应用程序进行资源限制处理可包括:限制上述异常应用程序可使用的网络资源、内存资源、CPU资源等。当异常应用程序不可使用移动终端中资源时,即对上述异常应用程序进行了冻结处理。When an abnormal application program is detected in the mobile terminal, the above abnormal application program can be restricted, so as to prevent the above abnormal application program from consuming the power of the mobile terminal. Wherein, when the mobile terminal is in the target running state, if it is detected that the abnormal application program is running in the background, resource restriction processing may be performed on the above abnormal application program. Wherein, the target running state may be a screen-off state of the mobile terminal, a state in which the mobile terminal needs to save power, or a state in which the power of the mobile terminal is lower than a specified threshold. For example, the state when the mobile terminal is in the power saving mode, and the state when the power of the mobile terminal is lower than 30%. The abnormal application program running in the background means that the abnormal application program exits the mobile terminal interface and runs in the application software operating environment provided by the VRE middleware software for the mobile terminal. When the application program is running in the background of the mobile terminal, the application program can perform intra-application communication and inter-application communication. Performing resource limitation processing on the abnormal application program may include: limiting network resources, memory resources, CPU resources, etc. that the abnormal application program can use. When the abnormal application program cannot use the resources in the mobile terminal, the above abnormal application program is frozen.

可选地,在对上述异常应用程序进行资源限制处理时,还可获取异常应用程序的异常等级,根据上述异常等级确定对异常应用程序进行资源限制处理的级别。其中,异常应用程序的异常等级可根据检测到上述异常应用程序异常的次数确定。对异常应用程序进行资源限制处理的级别不同时,上述异常应用程序可使用的资源种类不同、每类资源可使用的量不同。Optionally, when performing resource restriction processing on the abnormal application program, the exception level of the abnormal application program may also be acquired, and determine the level of resource restriction processing on the abnormal application program according to the above exception level. Wherein, the abnormality level of the abnormal application program may be determined according to the number of detection times of the above abnormal application program abnormality. When the levels of resource limitation processing for abnormal applications are different, the types of resources that can be used by the above-mentioned abnormal applications are different, and the amount of resources that can be used by each type of resources is different.

本申请实施例中方法,在检测出异常应用程序后,移动终端可对异常应用程序进行资源限制处理,通过对异常应用程序可使用的资源进行限制,避免异常应用程序在移动终端后台运行大量浪费移动终端的功耗。In the method of the embodiment of the present application, after the abnormal application is detected, the mobile terminal can perform resource restriction processing on the abnormal application, and by restricting the resources that the abnormal application can use, it can avoid a lot of waste when the abnormal application runs in the background of the mobile terminal Power consumption of mobile terminals.

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

(1)在移动终端灭屏状态下若检测到移动终端AP子系统进入休眠状态,获取第一流量值。(1) If it is detected that the AP subsystem of the mobile terminal enters a dormant state when the screen of the mobile terminal is off, the first traffic value is obtained.

(2)当移动终端AP子系统被唤醒且唤醒移动终端AP子系统的唤醒源为目标类型唤醒源时,获取第二流量值;目标类型唤醒源是指应用程序触发的唤醒源。(2) When the AP subsystem of the mobile terminal is awakened and the wakeup source for waking up the AP subsystem of the mobile terminal is a target type wakeup source, obtain the second flow value; the target type wakeup source refers to a wakeup source triggered by an application program.

(3)根据第一流量值和第二流量值确定应用程序的耗费流量值。(3) Determine the consumed flow value of the application program according to the first flow value and the second flow value.

在一个实施例中,检测移动终端AP子系统是否进入休眠状态包括:检测移动终端内核层中是否存在未释放的唤醒锁;当移动终端内核层中不存在未释放的唤醒锁时,移动终端AP子系统进入休眠状态。In one embodiment, detecting whether the mobile terminal AP subsystem enters the sleep state includes: detecting whether there is an unreleased wake lock in the mobile terminal kernel layer; when there is no unreleased wake lock in the mobile terminal kernel layer, the mobile terminal AP The subsystem goes to sleep.

在一个实施例中,移动终端AP子系统进入休眠状态包括:在移动终端灭屏状态下移动终端AP子系统首次进入休眠状态;或,在移动终端灭屏状态下移动终端AP子系统由休眠状态被唤醒后再次进入休眠状态。In one embodiment, the mobile terminal AP subsystem entering the dormant state includes: the mobile terminal AP subsystem enters the dormant state for the first time when the mobile terminal is off the screen; or, the mobile terminal AP subsystem enters the dormant state when the mobile terminal is off the screen Goes to sleep again after being woken up.

在一个实施例中,根据第一流量值和第二流量值确定应用程序的耗费流量值包括:获取唤醒移动终端AP子系统的唤醒源对应的应用程序标识;查找应用程序标识对应的应用程序;将第二流量值与第一流量值的差值作为应用程序的耗费流量值。In one embodiment, determining the consumed flow value of the application program according to the first flow value and the second flow value includes: obtaining the application program identification corresponding to the wake-up source that wakes up the AP subsystem of the mobile terminal; finding the application program corresponding to the application program identification; The difference between the second flow value and the first flow value is used as the consumed flow value of the application program.

在一个实施例中,上述方法还包括:当移动终端由灭屏状态切换到亮屏状态时,统计各个应用程序在灭屏期间耗费流量信息;根据耗费流量信息确定异常应用程序。In one embodiment, the above method further includes: when the mobile terminal is switched from the off-screen state to the on-screen state, counting the traffic consumption information of each application program during the screen off period; and determining the abnormal application program according to the traffic consumption information.

在一个实施例中,在根据耗费流量信息确定异常应用程序之前,上述方法还包括:获取移动终端的灭屏时长以及在灭屏期间的耗费电量;根据灭屏时长和耗费电量确定移动终端在灭屏期间耗电异常。In one embodiment, before determining the abnormal application program according to the traffic consumption information, the above method further includes: obtaining the screen-off duration of the mobile terminal and the power consumption during the screen-off period; Abnormal power consumption during the screen.

在一个实施例中,上述方法还包括:若检测到移动终端处于目标运行状态且异常应用程序在后台运行,对异常应用程序进行资源限制处理。In one embodiment, the above method further includes: if it is detected that the mobile terminal is in the target running state and the abnormal application program is running in the background, performing resource limitation processing on the abnormal application program.

应该理解的是,虽然上述流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,上述流程图中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the various steps in the above flow chart are displayed sequentially according to the arrows, these steps are not necessarily executed sequentially in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least some of the steps in the above flowchart 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 sub-steps or stages The order of execution is not necessarily performed sequentially, but may be performed alternately or alternately with at least a part of other steps or sub-steps or stages of other steps.

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

记录模块402,用于在移动终端灭屏状态下若检测到移动终端AP子系统进入休眠状态,记录移动终端的第一流量信息。The recording module 402 is configured to record the first traffic information of the mobile terminal if it is detected that the AP subsystem of the mobile terminal enters a dormant state when the screen of the mobile terminal is off.

获取模块404,用于当移动终端AP子系统被唤醒且唤醒移动终端AP子系统的唤醒源为目标类型唤醒源时,获取第二流量信息;目标类型唤醒源是指应用程序触发的唤醒源。The acquiring module 404 is configured to acquire second flow information when the AP subsystem of the mobile terminal is awakened and the wakeup source for waking up the AP subsystem of the mobile terminal is a target type wakeup source; the target type wakeup source refers to a wakeup source triggered by an application program.

确定模块406,用于根据第一流量信息和第二流量信息确定应用程序的耗费流量值。A determining module 406, configured to determine the consumed traffic value of the application program according to the first traffic information and the second traffic information.

在一个实施例中,记录模块402检测移动终端AP子系统是否进入休眠状态包括:检测移动终端内核层中是否存在未释放的唤醒锁;当移动终端内核层中不存在未释放的唤醒锁时,移动终端AP子系统进入休眠状态。In one embodiment, the recording module 402 detects whether the AP subsystem of the mobile terminal enters the dormant state including: detecting whether there is an unreleased wakelock in the kernel layer of the mobile terminal; when there is no unreleased wakelock in the kernel layer of the mobile terminal, The AP subsystem of the mobile terminal enters a dormant state.

在一个实施例中,记录模块402检测移动终端AP子系统进入休眠状态包括:在移动终端灭屏状态下移动终端AP子系统首次进入休眠状态;或,在移动终端灭屏状态下移动终端AP子系统由休眠状态被唤醒后再次进入休眠状态。In one embodiment, the recording module 402 detecting that the AP subsystem of the mobile terminal enters the sleep state includes: the AP subsystem of the mobile terminal enters the sleep state for the first time when the screen of the mobile terminal is off; or, the AP subsystem of the mobile terminal enters the sleep state when the screen of the mobile terminal is off. The system enters the sleep state again after being awakened from the sleep state.

在一个实施例中,确定模块406根据第一流量值和第二流量值确定应用程序的耗费流量值包括:获取唤醒移动终端AP子系统的唤醒源对应的应用程序标识;查找应用程序标识对应的应用程序;将第二流量值与第一流量值的差值作为应用程序的耗费流量值。In one embodiment, the determining module 406 determines the consumed flow value of the application program according to the first flow value and the second flow value, including: obtaining the application identification corresponding to the wake-up source that wakes up the AP subsystem of the mobile terminal; The application program; using the difference between the second flow value and the first flow value as the consumed flow value of the application program.

在一个实施例中,一种信息处理装置,包括:记录模块502、获取模块504和确定模块506以及处理模块508。其中,记录模块502、获取模块504和确定模块506与图4中对应的模块功能相同。In one embodiment, an information processing apparatus includes: a recording module 502 , an obtaining module 504 , a determining module 506 and a processing module 508 . Wherein, the record module 502, the acquisition module 504 and the determination module 506 have the same functions as the corresponding modules in FIG. 4 .

处理模块508用于当移动终端由灭屏状态切换到亮屏状态时,统计各个应用程序在灭屏期间耗费流量信息;根据耗费流量信息确定异常应用程序。The processing module 508 is used for, when the mobile terminal is switched from the off-screen state to the on-screen state, counting the traffic consumption information of each application program during the screen off period; and determining the abnormal application program according to the traffic consumption information.

在一个实施例中,处理模块508还用于在根据耗费流量信息确定异常应用程序之前,获取移动终端的灭屏时长以及在灭屏期间的耗费电量;根据灭屏时长和耗费电量确定移动终端在灭屏期间耗电异常。In one embodiment, the processing module 508 is further configured to obtain the screen-off duration of the mobile terminal and the power consumption during the screen-off period before determining the abnormal application program according to the traffic consumption information; Abnormal power consumption during screen off.

在一个实施例中,处理模块508还用于若检测到移动终端处于目标运行状态且异常应用程序在后台运行,对异常应用程序进行资源限制处理。In one embodiment, the processing module 508 is further configured to perform resource limitation processing on the abnormal application program if it is detected that the mobile terminal is in the target running state and the abnormal application program is running in the background.

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

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

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

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

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

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

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

图7为与本申请实施例提供的移动终端相关的手机的部分结构的框图。参考图7,手机包括:射频(Radio Frequency,RF)电路710、存储器720、输入单元730、显示单元740、传感器750、音频电路760、无线保真(wireless fidelity,Wi-Fi)模块770、处理器780、以及电源790等部件。本领域技术人员可以理解,图7所示的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Fig. 7 is a block diagram of a partial structure of a mobile phone related to the mobile terminal provided by the embodiment of the present application. 7, the mobile phone includes: a radio frequency (Radio Frequency, RF) circuit 710, a memory 720, an input unit 730, a display unit 740, a sensor 750, an audio circuit 760, a wireless fidelity (wireless fidelity, Wi-Fi) module 770, a processing Device 780, and power supply 790 and other components. Those skilled in the art can understand that the structure of the mobile phone shown in FIG. 7 does not constitute a limitation to the mobile phone, and may include more or less components than shown in the figure, or combine some components, or arrange different components.

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

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

输入单元730可用于接收输入的数字或字符信息,以及产生与手机700的用户设置以及功能控制有关的键信号输入。具体地,输入单元730可包括触控面板731以及其他输入设备732。触控面板731,也可称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板731上或在触控面板731附近的操作),并根据预先设定的程式驱动相应的连接装置。在一个实施例中,触控面板731可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器780,并能接收处理器780发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板731。除了触控面板731,输入单元730还可以包括其他输入设备732。具体地,其他输入设备732可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)等中的一种或多种。The input unit 730 can be used to receive input numbers or character information, and generate key signal input related to user settings and function control of the mobile phone 700 . Specifically, the input unit 730 may include a touch panel 731 and other input devices 732 . The touch panel 731, also referred to as a touch screen, can collect touch operations of the user on or near it (for example, the user uses any suitable object or accessory such as a finger or a stylus on the touch panel 731 or near the touch panel 731 operation), and drive the corresponding connection device according to the preset program. In one embodiment, the touch panel 731 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, and 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 sends it to the to the processor 780, and can receive and execute commands sent by the processor 780. In addition, the touch panel 731 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 731 , the input unit 730 may also include other input devices 732 . Specifically, other input devices 732 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.

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

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

音频电路760、扬声器761和传声器762可提供用户与手机之间的音频接口。音频电路760可将接收到的音频数据转换后的电信号,传输到扬声器761,由扬声器761转换为声音信号输出;另一方面,传声器762将收集的声音信号转换为电信号,由音频电路760接收后转换为音频数据,再将音频数据输出处理器780处理后,经RF电路710可以发送给另一手机,或者将音频数据输出至存储器720以便后续处理。Audio circuitry 760, speaker 761 and microphone 762 may provide an audio interface between the user and the handset. The audio circuit 760 can transmit the electrical signal converted from the received audio data to the speaker 761, and the speaker 761 converts it into an audio signal for output; After being received, it is converted into audio data, and after being processed by the output processor 780, the audio data can be sent to another mobile phone through the RF circuit 710, or the audio data can be output to the memory 720 for subsequent processing.

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

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

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

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

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

本申请所使用的对存储器、存储、数据库或其它介质的任何引用可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(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 memory, storage, database, or other medium as used herein may include non-volatile and/or volatile memory. Nonvolatile memory can include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM), which acts as external cache memory. By way of illustration and not limitation, RAM is available in many forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), Synchronous 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 express several implementation modes of the present application, and the description thereof is relatively specific and detailed, but should not be construed as limiting the patent scope of the present application. It should be noted that those skilled in the art can make several modifications and improvements without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the scope of protection of the patent application should be based on the appended claims.

Claims (10)

1. a kind of information processing method, which is characterized in that including:
If being detected in the case where mobile terminal goes out screen state, mobile terminal application processor subsystem AP subsystems enter dormant state, Obtain first-class magnitude;
When the wake source that the mobile terminal AP subsystems were waken up and woke up the mobile terminal AP subsystems is target type When wake source, second magnitude is obtained;The target type wake source refers to the wake source of application triggers;
The consuming flow value of the application program is determined according to the first-class magnitude and the second magnitude.
2. according to the method described in claim 1, it is characterized in that, whether the detection mobile terminal AP subsystems enter Dormant state includes:
It detects in the mobile terminal inner nuclear layer with the presence or absence of the wake-up lock not discharged;
When, there is no when the wake-up not discharged lock, the mobile terminal AP subsystems enter suspend mode in the mobile terminal inner nuclear layer State.
3. according to the method described in claim 1, it is characterized in that, the mobile terminal AP subsystems enter dormant state packet It includes:
In the case where mobile terminal goes out screen state, the mobile terminal AP subsystems first enter dormant state;
Or, the mobile terminal AP subsystems are again introduced into suspend mode after being waken up by dormant state in the case where mobile terminal goes out screen state State.
4. according to the method described in claim 1, it is characterized in that, described according to the first-class magnitude and the second flow Value determines that the consuming flow value of the application program includes:
Obtain the corresponding application program identification of wake source for waking up the mobile terminal AP subsystems;
Search the corresponding application program of the application program identification;
Using the difference of the second magnitude and the first-class magnitude as the consuming flow value of the application program.
5. method according to claim 1 to 4, which is characterized in that the method further includes:
When the mobile terminal is switched to bright screen state by screen state of going out, counts each application program and expend stream during the screen that goes out Measure information;
Abnormal application program is determined according to the consuming flow information.
6. according to the method described in claim 5, it is characterized in that, determining abnormal answer according to the consuming flow information described Before program, the method further includes:
Obtain go out screen duration and the consuming electricity during the screen that goes out of the mobile terminal;
According to it is described go out screen duration and the consumings electricity determine the mobile terminal go out screen during power consumption exception.
7. according to the method described in claim 5, it is characterized in that, the method further includes:
If detecting, the mobile terminal is in target operation state and the abnormal application program is in running background, to described different Normal application program carries out resource constraint processing.
8. a kind of information processing unit, which is characterized in that including:
Logging modle, if for detecting that mobile terminal AP subsystems enter dormant state under going out screen state in mobile terminal, note Record the first flow information of the mobile terminal;
Acquisition module, for when the mobile terminal AP subsystems are waken up and wake up the wake-up of the mobile terminal AP subsystems When source is target type wake source, second flow information is obtained;The target type wake source refers to calling out for application triggers Awake source;
Determining module, the consuming for determining the application program according to the first flow information and the second flow information Flow value.
9. a kind of mobile terminal, including memory and processor, computer program, the computer are stored in the memory When program is executed by the processor so that the processor executes the step of the method as described in any one of claim 1 to 7 Suddenly.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program The step of method as described in any one of claim 1 to 7 is realized when being executed by processor.
CN201810463226.3A 2018-05-15 2018-05-15 Information processing method, device, mobile terminal, and computer-readable storage medium Expired - Fee Related CN108650384B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810463226.3A CN108650384B (en) 2018-05-15 2018-05-15 Information processing method, device, mobile terminal, and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810463226.3A CN108650384B (en) 2018-05-15 2018-05-15 Information processing method, device, mobile terminal, and computer-readable storage medium

Publications (2)

Publication Number Publication Date
CN108650384A true CN108650384A (en) 2018-10-12
CN108650384B CN108650384B (en) 2020-07-07

Family

ID=63755932

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810463226.3A Expired - Fee Related CN108650384B (en) 2018-05-15 2018-05-15 Information processing method, device, mobile terminal, and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN108650384B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113961261A (en) * 2021-12-22 2022-01-21 北京鲸鲮信息系统技术有限公司 Dormancy management method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20120091551A (en) * 2011-02-09 2012-08-20 엘지전자 주식회사 Mobile terminal and method for controlling the same
CN103324519A (en) * 2013-06-17 2013-09-25 华为技术有限公司 Method and device for clearing malicious power consumption applications, and user terminal
CN105354491A (en) * 2015-10-12 2016-02-24 广东小天才科技有限公司 Intelligent terminal standby state detection method and device
CN107743080A (en) * 2017-09-30 2018-02-27 广东欧珀移动通信有限公司 Flow statistical method and device, computer equipment and computer readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20120091551A (en) * 2011-02-09 2012-08-20 엘지전자 주식회사 Mobile terminal and method for controlling the same
CN103324519A (en) * 2013-06-17 2013-09-25 华为技术有限公司 Method and device for clearing malicious power consumption applications, and user terminal
CN105354491A (en) * 2015-10-12 2016-02-24 广东小天才科技有限公司 Intelligent terminal standby state detection method and device
CN107743080A (en) * 2017-09-30 2018-02-27 广东欧珀移动通信有限公司 Flow statistical method and device, computer equipment and computer readable storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113961261A (en) * 2021-12-22 2022-01-21 北京鲸鲮信息系统技术有限公司 Dormancy management method and device, electronic equipment and storage medium
CN113961261B (en) * 2021-12-22 2022-04-19 北京鲸鲮信息系统技术有限公司 Dormancy management method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN108650384B (en) 2020-07-07

Similar Documents

Publication Publication Date Title
CN112703714B (en) Application program processing method and device, computer equipment, computer-readable storage medium
CN108541013B (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
CN110018904A (en) Information processing method, device, computer equipment and computer readable storage medium
CN107545067B (en) Log information reporting method and device, storage medium, ADSP and terminal
CN108616653B (en) Information processing method, device, mobile terminal, and computer-readable storage medium
CN106775685B (en) Wake lock release method and device, and mobile terminal
CN110032266B (en) Information processing method, apparatus, computer device, and computer-readable storage medium
CN110018905B (en) Information processing method, device, computer device, and computer-readable storage medium
CN108536547A (en) Information processing method, device, computer device, and computer-readable storage medium
CN108549593A (en) Information processing method, device, mobile terminal and computer readable storage medium
CN110032397B (en) Application processing method and device, electronic equipment and computer readable storage medium
WO2019128586A1 (en) Application processing method, electronic device, and computer readable storage medium
WO2019128573A1 (en) Information processing method, apparatus, computer device and computer-readable storage medium
CN110007968B (en) Information processing method, information processing device, computer equipment and computer readable storage medium
CN108646909B (en) Information processing method, device, mobile terminal and computer readable storage medium
CN112997132A (en) Application freezing method and device and electronic equipment
CN108650384B (en) Information processing method, device, mobile terminal, and computer-readable storage medium
CN108541050A (en) Information processing method, device, mobile terminal and computer readable storage medium
CN109992360A (en) Process processing method and apparatus, electronic device, and computer-readable storage medium
CN107609114A (en) Log information report method, device and storage medium, ADSP and terminal
CN108536546A (en) Information processing method, device, mobile terminal and computer readable storage medium
CN108566471B (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
CN109993525B (en) Application processing method and apparatus, electronic device, and computer-readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200707

CF01 Termination of patent right due to non-payment of annual fee