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
CN108541013B CN201810270073.0A CN201810270073A CN108541013B CN 108541013 B CN108541013 B CN 108541013B CN 201810270073 A CN201810270073 A CN 201810270073A CN 108541013 B CN108541013 B CN 108541013B
Authority
CN
China
Prior art keywords
mobile terminal
application program
abnormal
awakening
screen
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.)
Active
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 Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810270073.0A priority Critical patent/CN108541013B/en
Publication of CN108541013A publication Critical patent/CN108541013A/en
Application granted granted Critical
Publication of CN108541013B publication Critical patent/CN108541013B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/24Arrangements for testing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • H04W52/0248Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal dependent on the time of the day, e.g. according to expected transmission activity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • H04W52/0264Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by selectively disabling software applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • H04W52/0267Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by controlling user interface components
    • H04W52/027Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by controlling user interface components by controlling a display operation or backlight unit
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

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

Abstract

The application provides an information processing method, an information processing device, a mobile terminal and a computer readable storage medium. The method comprises the following steps: when detecting that the power consumption of the mobile terminal is abnormal during the screen-off period, acquiring first awakening times of each subsystem in the mobile terminal; detecting the power consumption abnormal type according to the first awakening times of each subsystem in the mobile terminal; when the power consumption abnormal type is Wi-Fi awakening, acquiring a target application program identifier corresponding to unicast packet awakening in the Wi-Fi awakening; and acquiring the Wi-Fi awakening times corresponding to the target application program identification, and determining an abnormal application program identification according to the Wi-Fi awakening times. The method is described above. When the Wi-Fi awakening abnormity of the mobile terminal is detected, the application program corresponding to the unicast packet in the Wi-Fi awakening is obtained, the Wi-Fi awakening is associated with the application program, the awakening data of the application program is subjected to statistical analysis, the abnormal application program can be quickly positioned, the detected abnormal application program is subjected to optimization processing, and the standby power consumption of the mobile terminal is reduced.

Description

Information processing method, device, mobile terminal and computer readable storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to an information processing method and apparatus, a mobile terminal, and a computer-readable storage medium.
Background
With the rapid development of the intelligent mobile terminal, the intelligent mobile terminal is more and more common in the life of the user. The user can conveniently communicate with other people through the intelligent mobile terminal. In the using process of the intelligent mobile terminal, various application programs, intelligent mobile terminal hardware and an intelligent mobile terminal system can cause power consumption of the intelligent mobile terminal, so that the cruising ability of the intelligent mobile terminal is reduced.
Disclosure of Invention
The embodiment of the application provides an information processing method, an information processing device, a mobile terminal and a computer readable storage medium, which can detect an application program corresponding to Wi-Fi awakening when the Wi-Fi awakening in the mobile terminal is abnormal.
An information processing method comprising:
when detecting that the power consumption of the mobile terminal is abnormal during the screen-off period, acquiring first awakening times of each subsystem in the mobile terminal;
detecting the power consumption abnormal type according to the first awakening times of each subsystem in the mobile terminal;
when the power consumption abnormal type is Wi-Fi awakening, acquiring a target application program identifier corresponding to unicast packet awakening in the Wi-Fi awakening;
And acquiring the Wi-Fi awakening times corresponding to the target application program identification, and determining an abnormal application program identification according to the Wi-Fi awakening times.
An information processing apparatus comprising:
the first acquisition module is used for acquiring first awakening times of each subsystem in the mobile terminal when the power consumption abnormality of the mobile terminal during the screen-off period is detected;
the detection module is used for detecting the power consumption abnormal type according to the first awakening times of each subsystem in the mobile terminal;
the second acquisition module is used for acquiring a target application program identifier corresponding to the awakening of the unicast packet in the Wi-Fi awakening when the power consumption abnormal type is the Wi-Fi awakening;
and the processing module is used for acquiring the Wi-Fi awakening times corresponding to the target application program identification and classifying the target application program identification according to the Wi-Fi awakening times.
A mobile terminal comprising a memory and a processor, the memory having stored therein a computer program which, when executed by the processor, causes the processor to carry out the steps of the method as described above.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method as set forth above.
According to the method and the device, when the Wi-Fi awakening abnormity of the mobile terminal is detected, the application program corresponding to the unicast packet in the Wi-Fi awakening is obtained, the Wi-Fi awakening is associated with the application program, the awakening data of the application program is subjected to statistical analysis, the abnormal application program is favorably and quickly positioned, the detected abnormal application program is optimized, and the standby power consumption of the mobile terminal is reduced.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flow diagram of a method for information processing in one embodiment;
FIG. 2 is a flow chart of a method of information processing in another embodiment;
FIG. 3 is a flow chart of a method of information processing in another embodiment;
FIG. 4 is a flow chart of a method of information processing in another embodiment;
FIG. 5 is a block diagram showing the configuration of an information processing apparatus according to an embodiment;
FIG. 6 is a block diagram showing the construction of an information processing apparatus according to another embodiment;
fig. 7 is a schematic internal structure diagram of a mobile terminal according to an embodiment;
fig. 8 is a block diagram of a part of a structure of a mobile phone related to a mobile terminal according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In one embodiment, an application scenario of an information processing method includes: when the screen of the mobile terminal is detected to be turned off, recording the screen turning-off time; when the mobile terminal is switched from the screen-off state to the screen-on state, recording the screen-on time, and setting the time difference between the screen-off time and the screen-on time as the screen-off duration of the mobile terminal. During the screen-off period of the mobile terminal, the power consumption of the mobile terminal is caused by the running of application programs in the mobile terminal and the like. The difference value between the first battery capacity of the mobile terminal at the screen-off moment and the second battery capacity of the mobile terminal at the screen-on moment is the total power consumed by the mobile terminal during the screen-off period, namely the power consumption of the mobile terminal during the screen-off period. During the period of screen-off of the mobile terminal, each state of the mobile terminal consumes corresponding electric quantity, an accumulated value of the corresponding electric quantity is a standard electric quantity, and the standard electric quantity represents a basic electric quantity consumed by the mobile terminal during the period of screen-off and may include system power consumption, SIM (Subscriber identity Module) card power consumption, Wi-Fi (Wireless-Fidelity) power consumption, and the like. After the power consumption electric quantity and the standard electric quantity are obtained, the power consumption electric quantity during the screen-off period of the mobile terminal can be compared with the standard electric quantity, and when the power consumption electric quantity is not greater than the standard electric quantity, the normal power consumption of the mobile terminal during the screen-off period is indicated; when the power consumption electric quantity is larger than the standard electric quantity, the power consumption of the mobile terminal is more in the screen-off period, and the power consumption of the mobile terminal is abnormal in 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 a subsystem of the mobile terminal, the power consumption of each application program, the lock-holding duration of each application program and the like can be further acquired, and the reason of the power consumption abnormality of the mobile terminal is judged according to the parameters. The reasons for the power consumption abnormity comprise abnormity of a mobile terminal subsystem, background downloading of an application program, background music playing of the application program and the like. After the reason of the power consumption abnormity of the mobile terminal is obtained, the mobile terminal can display the reason of the power consumption abnormity on a mobile terminal interface for reminding a user, the mobile terminal can also upload the reason of the power consumption abnormity to the server, the server carries out statistics and analysis according to the obtained reason of the power consumption abnormity, a power consumption optimization strategy for the mobile terminal is obtained according to the statistics and analysis result, and the power consumption optimization strategy is returned to the mobile terminal.
Fig. 1 is a flowchart of an information processing method in an embodiment, and as shown in fig. 1, an information processing method includes:
step 102, when detecting that the power consumption of the mobile terminal is abnormal during the screen-off period, respectively acquiring first awakening times of each subsystem in the mobile terminal.
When the mobile terminal is in a screen-off state, the operation of an application program or a subsystem and the like in the mobile terminal can cause the power consumption of the mobile terminal and waste the power consumption of the mobile terminal. When the mobile terminal is switched from the screen-off state to the screen-on state, the electric quantity consumed by the mobile terminal in the screen-off period can be acquired, and whether the power consumption of the mobile terminal is abnormal or not is detected according to the electric quantity consumed by the mobile terminal in the screen-off period.
In a mobile terminal system, there are usually multiple subsystems, and the multiple subsystems have independent operation capability. Various functions of the mobile terminal can be realized through cooperation and interaction among the subsystems. The mobile terminal subsystems may include: an AP (Application Processor subsystem) subsystem, an MPSS (Modem Processor subsystem) subsystem, an ADSP (Advanced Digital Signal Processor) subsystem, and the like. The AP subsystem is responsible for operating a mobile terminal operating system such as an Android operating system so as to realize most of multimedia tasks related to users; the MPSS subsystem runs a customized real-time operating system to realize functions related to user connection, such as Wi-Fi (wireless fidelity), conversation and the like; the ADSP subsystem is responsible for sensor, audio related tasks and functions.
When detecting that the power consumption of the mobile terminal is abnormal during the screen-off period, the first awakening times of each subsystem in the mobile terminal can be respectively acquired. The first wake-up times of each subsystem in the mobile terminal refer to the times that each subsystem is awakened during the screen-off period of the mobile terminal. When the mobile terminal is in a screen-off state, each subsystem in the mobile terminal is frequently awakened to cause abnormal power consumption of the mobile terminal.
And 104, detecting the power consumption abnormal type according to the first awakening times of each subsystem in the mobile terminal.
After the first awakening times of each subsystem in the mobile terminal are obtained, the power consumption abnormal type can be detected according to the first awakening times of each subsystem of the mobile terminal. The method comprises the steps of acquiring an accumulated value of first awakening times of each subsystem of the mobile terminal and the times of abnormal termination of a process during screen-off of the mobile terminal. And when the first ratio of the accumulated value to the number of times of abnormal termination of the process is greater than a second threshold value, judging that the reason of the abnormal power consumption of the mobile terminal is abnormal awakening of a subsystem of the mobile terminal. The second threshold may be a value set by a user or a value set by the mobile terminal. For example, the cumulative value of the first wake-up times of each subsystem of the mobile terminal is a, and the number of times of abnormal termination of the process during the screen-off period of the mobile terminal is B. If the value of A/B is larger than 1/2, the number of awakening times of each subsystem of the mobile terminal is large, and the subsystems of the mobile terminal are abnormally awakened.
And when the reason that the power consumption abnormality of the mobile terminal is detected to be abnormal awakening of the mobile terminal subsystem, acquiring a second ratio of the first awakening times of the mobile terminal Wi-Fi subsystem to the accumulated value, and when the second ratio is larger than a third threshold value, judging that the abnormal awakening type of the mobile terminal subsystem is abnormal awakening of the mobile terminal Wi-Fi subsystem. The third threshold may be a value set by a user or a value set by the mobile terminal, for example, when a ratio of the first wake-up times of the Wi-Fi subsystem in the mobile terminal to the 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 the abnormal wake-up of the mobile terminal subsystem is the abnormal wake-up of the Wi-Fi subsystem of the mobile terminal.
And 106, when the power consumption abnormity type is the Wi-Fi awakening, acquiring the target application program identification corresponding to the unicast packet awakening in the Wi-Fi awakening.
Wi-Fi wake-up in a mobile terminal includes unicast packet wake-up and broadcast packet wake-up. The unicast packet is a packet transmitted in a one-to-one mode, and the broadcast packet is a packet transmitted in a one-to-one multimode. The unicast packet corresponds to an application program. When the fact that the Wi-Fi awakening in the mobile terminal is the awakening of the unicast packet is detected, the target application program identification corresponding to the unicast packet can be searched.
During the period of screen off of the mobile terminal and when the mobile terminal is connected to Wi-Fi, if the mobile terminal receives a data packet wakening up the Wi-Fi, the data packet may be analyzed according to a TCP/IP (Transmission Control Protocol/Internet Protocol ) Protocol to obtain a target IP (Internet Protocol, Protocol interconnected between networks) address, port information, a MAC address, and the like. If the MAC (Media Access Control) address of the data packet is unicast and the destination IP address is also unicast, the data packet is a unicast packet. And the data in the unicast packet is data to be processed by the application program, and the mobile terminal sends the unicast packet to the corresponding application program by waking up the Wi-Fi subsystem, so that the application program processes the data in the unicast packet.
The method for acquiring the target application program identification corresponding to the unicast packet awakening in the Wi-Fi awakening comprises the following steps: when the Wi-Fi awakening in the mobile terminal is detected, the detected Wi-Fi awakening event is written into the kernel node, and 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 are recorded. Further, when the Wi-Fi wake-up event is detected, the kernel layer reports the event to notify the framework layer, the framework layer can acquire traffic information consumed by each application program within a target time length, and then the application program consuming the most traffic is used as a target application program to acquire a target application program identifier of the target application program. The target time period may be a value set on the mobile terminal side, such as 30 seconds, 1 minute, or the like. Because the data in the unicast packet of the mobile terminal is the data to be processed by the application program, when the Wi-Fi wake-up is the unicast packet wake-up, the flow consumed by the application program corresponding to the unicast packet will increase, and therefore the target application program can be acquired through the consumed flow information. The target application program is an application program for waking up the Wi-Fi subsystem.
And 108, acquiring the Wi-Fi awakening times corresponding to the target application program identification, and determining the abnormal application program identification according to the Wi-Fi awakening times.
After the target application program identification corresponding to each unicast packet awakening in the Wi-Fi awakening is obtained, the Wi-Fi awakening times of each target application program identification in the screen-off period of the mobile terminal can be counted. And determining the abnormal application program identification according to the Wi-Fi awakening times of each target application program identification in the screen-off period of the mobile terminal. Optionally, the mobile terminal may sort the Wi-Fi wake-up times corresponding to each target application identifier, and select an abnormal application identifier according to the sorted bits, for example, select the target application identifier with the highest Wi-Fi wake-up time as the application identifier. The abnormal application program identification is the application program identification of the application program which frequently wakes up the Wi-Fi subsystem during the screen-off period of the mobile terminal and causes abnormal power consumption of the mobile terminal.
After obtaining the abnormal application identifier, the mobile terminal may perform optimization processing on the application corresponding to the abnormal application identifier, where the optimization processing may include: and when the mobile terminal enters a screen-off state, carrying out processing such as killing and freezing on the application program corresponding to the abnormal application program identification.
In general, when power consumption abnormity is detected during screen-off of the mobile terminal, power consumption caused by Wi-Fi wakeup abnormity of the mobile terminal is detected, but an application program corresponding to Wi-Fi wakeup is not distinguished. Under the situation that the mobile terminal consumes power in a standby mode, the power consumption of the Wi-Fi awakening belongs to a large power consumption type, and the specific reason that the power consumption cannot be determined by simply detecting the power consumption of the Wi-Fi awakening is detected. According to the method, when the Wi-Fi awakening abnormity of the mobile terminal is detected, the application program corresponding to the unicast packet in the Wi-Fi awakening is obtained, the Wi-Fi awakening is associated with the application program, the awakening data of the application program is subjected to statistical analysis, the abnormal application program is favorably and quickly positioned, the detected abnormal application program is optimized, and the standby power consumption of the mobile terminal is reduced.
In one embodiment, the method for detecting abnormal power consumption of the mobile terminal during screen-off comprises any one of the following methods:
(1) if the mobile terminal is switched from the screen-off state to the screen-on state and the screen-off duration of the mobile terminal exceeds a first duration, acquiring standard electric quantity and power consumption electric quantity of the mobile terminal during the screen-off period; and if the power consumption electric quantity is greater than the standard electric quantity, determining that the power consumption of the mobile terminal is abnormal.
(2) If the mobile terminal is switched from the screen-off state to the screen-on state and the screen-off duration of the mobile terminal exceeds the first duration, acquiring standard electric power and consumed electric power of the mobile terminal during the screen-off period, and if the consumed electric power is greater than the standard electric power, determining that the power consumption of the mobile terminal is abnormal.
When the mobile terminal enters the screen-off state, the mobile terminal can record the screen-off moment when the mobile terminal enters the screen-off state; when the screen of the mobile terminal is lightened, namely the mobile terminal is lightened, the mobile terminal can record the moment of lightening the screen. The screen on means that the screen of the mobile terminal is lighted, and the screen off means that the screen of the mobile terminal is backlight off. And the time difference between the screen on time and the screen off time is the screen off duration. When the mobile terminal is turned off or on, the broadcast sender can send the system broadcast. In general, the broadcast corresponding to the SCREEN-OFF of the mobile terminal is internal _ active _ SCREEN _ OFF, and when a broadcast receiver receives the SCREEN-OFF broadcast, the broadcast receiver indicates that the mobile terminal is SCREEN-OFF, and the time when the mobile terminal receives the SCREEN-OFF broadcast is the time when the mobile terminal is SCREEN-OFF. The broadcast corresponding to the SCREEN-up of the mobile terminal is intent. The broadcast sender in a mobile terminal is typically a program that calls context.
After the screen-off duration of the mobile terminal is obtained, whether the screen-off duration exceeds a first duration can be detected. The first time period may be a time period set by a user or a time period set by the mobile terminal, for example, 5 hours, 6 hours, and the like. If the screen turn-off duration of the mobile terminal exceeds the first duration, the screen turn-off duration of the mobile terminal is longer. Because 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 electric quantity of the battery, when the screen-off duration of the mobile terminal is short, the power consumption error calculated through the attenuation curve of the battery is large, the reference electric quantity and the power consumption electric quantity of the mobile terminal during the screen-off period are acquired when the screen-off duration of the mobile terminal exceeds the first duration, and the accuracy of the acquired electric quantity can be improved.
The mobile terminal can store a standard list, and the standard list is the power consumption of the mobile terminal in each state in the standby state in unit time. For example, it may include: the method comprises the steps of obtaining electric quantity corresponding to a single SIM card, obtaining electric quantity corresponding to a double SIM card, obtaining electric quantity corresponding to the fact that a Wi-Fi is not connected, obtaining electric quantity corresponding to the fact that a Bluetooth is not connected, obtaining electric quantity corresponding to the fact that the Bluetooth is connected, obtaining electric quantity corresponding to the Wi-Fi connection, obtaining electric quantity corresponding to the connection of the Bluetooth, and obtaining electric quantity corresponding to the connection of the Bluetooth. The mobile terminal can match each state of the mobile terminal during the screen-off period with the state in the standard list, and acquire the power consumption electric quantity corresponding to the successfully matched state and the accumulated value of the power consumption electric quantity corresponding to the successfully matched state, wherein the accumulated value is standard electric power, and the product of the standard electric power and the screen-off duration is standard electric quantity. The standard electric power is TargetCurrent, which is mBaseCurrent + mSincArdDelta + mDoubleSimcArdDelta + mWif iDelta + mNetworkDelta + mBluetooth Delta + offset. The mBaseCurent is the power consumption of the mobile terminal system in unit time, and can be 3.9 mA/h; when the mobile terminal is inserted into a single SIM card, the power consumption mTingle mCardDelta is 3mA/h in unit time, otherwise, the power consumption mTingle mCardDelta is 0; when the mobile terminal is inserted into the dual-card SIM card, the power consumption quantity mDoubleSimCardDelta in unit time is 6mA/h, otherwise, the power consumption quantity is 0; when the mobile terminal starts Wi-Fi, the power consumption mWifi Delta in unit time is 6mA/h, otherwise, the power consumption mWifi Delta is 0; when the mobile terminal starts the Bluetooth, the power consumption mBluetooth Delta in unit time is 2mA/h, otherwise, the power consumption mBluetooth Delta is 0; offset represents other types of power consumption, which may be 10 mA/h.
When the mobile terminal detects whether the power consumption of the mobile terminal is abnormal according to the standard power and the power consumption, whether the power consumption of the mobile terminal in the screen-off period is larger than the standard power can be detected, and if the power consumption is larger than the standard power, the fact that the power consumption of the mobile terminal in the screen-off period is more is shown, namely the power consumption of the mobile terminal in the screen-off period is abnormal. The mobile terminal can also obtain the ratio of the power consumption electric quantity to the screen-off duration, wherein the ratio is the power consumption electric quantity of the mobile terminal in unit time during the screen-off period, namely the power consumption electric power 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 accumulated value of the increment electric quantity in unit time corresponding to the state information which is successfully matched through the standard list to be used as the standard electric power. The mobile terminal can compare the consumed electric power with the standard electric power and detect whether the consumed electric power is greater than the standard electric power. If the power consumption is larger than the standard power, the mobile terminal consumes abnormal power during the screen-off period.
According to the method, the mobile terminal can judge whether the power consumption of the mobile terminal is abnormal according to the comparison result of the standard electric quantity and the power consumption electric quantity, and can also judge whether the power consumption of the mobile terminal is abnormal according to the comparison result of the standard electric power and the power consumption electric power, and the mode for detecting the power consumption abnormality of the mobile terminal is simple and rapid.
In one embodiment, the method for detecting the power consumption abnormity type as Wi-Fi wakeup comprises the following steps: respectively acquiring the accumulated value of the first awakening times of each subsystem in the mobile terminal; and if the ratio of the second awakening times to the accumulated value of the Wi-Fi subsystem in the mobile terminal is greater than a first threshold value, the power consumption abnormity type is the Wi-Fi awakening.
After the first awakening times of each subsystem in the mobile terminal are obtained, the power consumption abnormal type can be detected according to the first awakening times of each subsystem of the mobile terminal. The method comprises the steps of acquiring an accumulated value of first awakening times of each subsystem of the mobile terminal and the times of abnormal termination of a process during screen-off of the mobile terminal. And when the first ratio of the accumulated value to the number of times of abnormal termination of the process is greater than a second threshold value, judging that the reason of the abnormal power consumption of the mobile terminal is abnormal awakening of a subsystem of the mobile terminal. The second threshold may be a value set by a user or a value set by the mobile terminal. For example, the cumulative value of the first wake-up times of each subsystem of the mobile terminal is a, and the number of times of abnormal termination of the process during the screen-off period of the mobile terminal is B. If the value of A/B is larger than 1/2, the number of awakening times of each subsystem of the mobile terminal is large, and the subsystems of the mobile terminal are abnormally awakened.
And when the reason that the power consumption abnormality of the mobile terminal is detected to be abnormal awakening of the mobile terminal subsystem, acquiring a second ratio of the first awakening times of the mobile terminal Wi-Fi subsystem to the accumulated value, and when the second ratio is larger than a third threshold value, judging that the abnormal awakening type of the mobile terminal subsystem is abnormal awakening of the mobile terminal Wi-Fi subsystem. The third threshold may be a value set by a user or a value set by the mobile terminal, for example, when a ratio of the first wake-up times of the Wi-Fi subsystem in the mobile terminal to the 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 the abnormal wake-up of the mobile terminal subsystem is the abnormal wake-up of the Wi-Fi subsystem of the mobile terminal.
In one embodiment, the obtaining of the target application program identification corresponding to the unicast packet wakeup in the Wi-Fi wakeup comprises: when the Wi-Fi awakening is detected to be unicast packet awakening, acquiring flow information corresponding to each application program identifier in a target time length; and determining the target application program identifier according to the flow information corresponding to each application program identifier.
When the Wi-Fi awakening in the mobile terminal is detected, the detected Wi-Fi awakening event is written into the kernel node, and 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 are recorded. Further, when the Wi-Fi wake-up event is detected, the kernel layer reports the event to notify the framework layer, the framework layer can acquire traffic information consumed by each application program within a target time length, and then the application program consuming the most traffic is used as a target application program to acquire a target application program identifier of the target application program. The target time period may be a value set on the mobile terminal side, for example, 30 seconds, 1 minute, or the like. Because the data in the unicast packet of the mobile terminal is the data to be processed by the application program, when the Wi-Fi wake-up is the unicast packet wake-up, the flow consumed by the application program corresponding to the unicast packet will increase, and therefore the target application program can be obtained through the consumed flow information. The target application program is an application program for waking up the Wi-Fi subsystem.
In one embodiment, the method further comprises:
and step 110, if the application program corresponding to the abnormal application program identification is detected to run in the background, performing resource limitation processing on the application program.
When detecting that the application program corresponding to the abnormal application program identifier runs in the background of the mobile terminal, the resource limitation processing can be performed on the application program corresponding to the abnormal application program identifier, that is, the resource which can be used by the application program is limited. The resource limitation may include: network resources, CPU (Central Processing Unit) resources, I/O (Input/Output) resources, memory resources, and the like that can be used by an application are limited. Optionally, different priorities may be set for the abnormal application, and the corresponding resource restriction level is determined according to the priorities.
According to the method, the resource limitation processing is carried out on the application program corresponding to the abnormal application program identification, so that the situation that the application program corresponding to the abnormal application program identification frequently wakes up a mobile terminal system during the screen-off period of the mobile terminal and the power consumption of the mobile terminal is wasted can be avoided.
In one embodiment, the method further comprises:
And step 112, obtaining abnormal information corresponding to the abnormal application program identifier, and reporting the abnormal information to the server.
And step 114, receiving the optimization strategy for the abnormal information returned by the server.
And step 116, optimizing the application program corresponding to the abnormal application program identification according to the optimization strategy.
After detecting the abnormal application program, the mobile terminal can acquire the abnormal application program identifier and the abnormal information. The abnormality information includes: the time when the abnormal application program identification is detected, the frequency of detecting the abnormal application program identification and the awakening type corresponding to the abnormal application program identification. The mobile terminal can write the detected abnormal information of the abnormal application program identification into a mobile terminal log and upload the mobile terminal log to a server. Optionally, the mobile terminal may upload the log to the server at a set time interval, or the mobile terminal may upload the log to the server according to a received user instruction. After receiving the log uploaded by the mobile terminal, the server can analyze and obtain the abnormal information of the abnormal application program identifier in the log, and perform statistical analysis according to the obtained abnormal information to obtain an optimization strategy for the abnormal application program identifier. The optimization strategy may include: and aligning and awakening the message in the abnormal application program identification, and the like. The server can return the optimization strategy to the mobile terminal, and the mobile terminal analyzes and acquires the information in the optimization strategy after receiving the optimization strategy and performs optimization processing on the mobile terminal according to the information in the optimization strategy. Optionally, during communication between the mobile terminal and the server, the transmitted data may be encrypted to improve data security.
According to the method in the embodiment of the application, the mobile terminal uploads the abnormal information to the server, receives the optimization strategy returned by the server, and performs optimization processing on the mobile terminal according to the optimization strategy, namely the mobile terminal can perform self-adjustment processing after detecting the abnormality, so that the service life of the mobile terminal is prolonged.
In one embodiment, the method further comprises:
and step 118, adjusting the time interval reported to the server according to the frequency of obtaining the abnormal information.
Every time when the screen-off duration of the mobile terminal exceeds the first duration, the mobile terminal detects whether power consumption is abnormal during the screen-off period. The mobile terminal can count the times of recording each abnormal information and the frequency of detecting each abnormal information. The frequency is the number of times of detecting abnormal information in unit time, for example, the number of times of detecting abnormal information every 1 day. When the frequency of the abnormal information is higher, the frequency of the abnormal information detected by the mobile terminal is more, namely the frequency of the abnormal information of the mobile terminal is more. 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, and when the frequency of detecting the abnormal information by the mobile terminal is higher, the time interval for the mobile terminal to report the abnormal information to the server is shorter, that is, the higher the frequency of the abnormal information occurring in the mobile terminal is, the shorter the time interval for the mobile terminal to report the abnormal information to the server is.
According to the method, the time interval for reporting the abnormal awakening source information to the server can be adjusted according to the frequency of the detected abnormal awakening source information, and the method is beneficial to quickly checking and finding the potential safety hazard of the mobile terminal according to the abnormal awakening source information.
In one embodiment, an information processing method includes:
(1) when detecting that the power consumption of the mobile terminal is abnormal during the screen-off period, acquiring the first awakening times of each subsystem in the mobile terminal.
(2) And detecting the power consumption abnormal type according to the first awakening times of each subsystem in the mobile terminal.
(3) And when the power consumption abnormal type is the Wi-Fi awakening, acquiring the target application program identifier corresponding to the awakening of the unicast packet in the Wi-Fi awakening.
(4) And acquiring the Wi-Fi awakening times corresponding to the target application program identification, and determining the abnormal application program identification according to the Wi-Fi awakening times.
In one embodiment, the method for detecting abnormal power consumption of the mobile terminal during screen-off comprises the following steps: if the mobile terminal is switched from the screen-off state to the screen-on state and the screen-off duration of the mobile terminal exceeds a first duration, acquiring standard electric quantity and power consumption electric quantity of the mobile terminal during the screen-off period; if the power consumption electric quantity is larger than the standard electric quantity, determining that the power consumption of the mobile terminal is abnormal; or if the mobile terminal is switched from the screen-off state to the screen-on state and the screen-off duration of the mobile terminal exceeds the first duration, acquiring the standard electric power and the consumed electric power of the mobile terminal during the screen-off period, and if the consumed electric power is greater than the standard electric power, determining that the power consumption of the mobile terminal is abnormal.
In one embodiment, the method for detecting the power consumption abnormity type as Wi-Fi wakeup comprises the following steps: acquiring an accumulated value of the first awakening times of each subsystem in the mobile terminal; and if the ratio of the second awakening times to the accumulated value of the Wi-Fi subsystem in the mobile terminal is greater than a first threshold value, the power consumption abnormity type is the Wi-Fi awakening.
In one embodiment, acquiring the identification of the target application program corresponding to the wake-up of the unicast packet in the Wi-Fi wake-up comprises: when detecting that the Wi-Fi awakening is the unicast packet awakening, acquiring flow information corresponding to each application program identifier in a target time length; and determining the target application program identifier according to the flow information corresponding to each application program identifier.
In one embodiment, the method comprises: and if the application program corresponding to the abnormal application program identification is detected to run in the background, performing resource limitation processing on the application program.
In one embodiment, the method comprises: acquiring abnormal information corresponding to the abnormal application program identifier, and reporting the abnormal information to a server; receiving an optimization strategy for abnormal information returned by the server; and optimizing the application program corresponding to the abnormal application program identification according to the optimization strategy.
In one embodiment, the method includes: and adjusting the time interval reported to the server according to the frequency of the acquired abnormal information.
It should be understood that, although the steps in the above-described flowcharts are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in the above-described flowcharts may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or the stages is not necessarily sequential, but may be performed alternately or alternatingly with other steps or at least a portion of the sub-steps or stages of other steps.
Fig. 5 is a block diagram showing the configuration of an information processing apparatus according to an embodiment. As shown in fig. 5, an information processing apparatus includes:
the first obtaining module 502 is configured to obtain a first wake-up time of each subsystem in the mobile terminal when it is detected that power consumption of the mobile terminal is abnormal during a screen-off period.
The detecting module 504 is configured to detect a power consumption abnormal type according to the first wake-up times of each subsystem in the mobile terminal.
A second obtaining module 506, configured to obtain, when the power consumption exception type is Wi-Fi wakeup, a target application identifier corresponding to unicast packet wakeup in the Wi-Fi wakeup.
And the processing module 508 is configured to obtain the number of Wi-Fi awakenings corresponding to the target application identifier, and classify the target application identifier according to the number of Wi-Fi awakenings.
In one embodiment, the method for detecting abnormal power consumption of the mobile terminal during screen-off comprises the following steps: if the mobile terminal is switched from the screen-off state to the screen-on state and the screen-off duration of the mobile terminal exceeds a first duration, acquiring standard electric quantity and power consumption electric quantity of the mobile terminal during the screen-off period; if the power consumption electric quantity is larger than the standard electric quantity, determining that the power consumption of the mobile terminal is abnormal; or if the mobile terminal is switched from the screen-off state to the screen-on state and the screen-off duration of the mobile terminal exceeds the first duration, acquiring the standard electric power and the consumed electric power of the mobile terminal during the screen-off period, and if the consumed electric power is greater than the standard electric power, determining that the power consumption of the mobile terminal is abnormal.
In one embodiment, the method for detecting the power consumption abnormity type as Wi-Fi awakening comprises the following steps: acquiring an accumulated value of first awakening times of each subsystem in the mobile terminal; and if the ratio of the second awakening times to the accumulated value of the Wi-Fi subsystem in the mobile terminal is greater than a first threshold value, the power consumption abnormity type is the Wi-Fi awakening.
In one embodiment, the obtaining, by the second obtaining module 506, the identification of the target application program corresponding to the wake-up of the unicast packet in the Wi-Fi wake-up includes: when the Wi-Fi awakening is detected to be unicast packet awakening, acquiring flow information corresponding to each application program identifier in a target time length; and determining the target application program identifier according to the flow information corresponding to each application program identifier.
In one embodiment, the processing module 508 is further configured to perform resource restriction processing on the application program if it is detected that the application program corresponding to the abnormal application program identifier is running in the background.
Fig. 6 is a block diagram showing the configuration of an information processing apparatus according to another embodiment. As shown in fig. 6, an information processing apparatus includes: a first acquisition module 602, a detection module 604, a second acquisition module 606, an upload module 608, a receive module 610, and a processing module 612. The first obtaining module 602, the detecting module 604, the second obtaining module 606, and the processing module 612 have the same functions as corresponding modules in fig. 5.
The uploading module 608 is configured to obtain the abnormal information corresponding to the abnormal application identifier, and report the abnormal information to the server.
And the receiving module 610 is used for receiving the optimization strategy for the abnormal information returned by the server.
And the processing module 612 is configured to perform optimization processing on the application program corresponding to the abnormal application program identifier according to the optimization policy.
In an embodiment, the processing module 612 is further configured to adjust a time interval reported to the server according to a frequency of obtaining the abnormal information.
The division of the modules in the information processing apparatus is only for illustration, and in other embodiments, the information processing apparatus may be divided into different modules as needed to complete all or part of the functions of the information processing apparatus.
For specific limitations of the information processing apparatus, reference may be made to the above limitations of the information processing method, which are not described herein again. Each module in the information processing apparatus described above may be entirely or partially implemented by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent of a processor in the mobile terminal, and can also be stored in a memory in the mobile terminal in a software form, so that the processor can call and execute operations corresponding to the modules.
The implementation of each module in the information processing apparatus provided in the embodiment of the present application may be in the form of a computer program. The computer program may be run on a terminal or a server. The program modules constituted by the computer program may be stored on the memory of the terminal or the server. Which when executed by a processor, performs the steps of the method described in the embodiments of the present application.
Fig. 7 is a schematic diagram of an internal structure of a mobile terminal in one embodiment. As shown in fig. 7, the mobile terminal includes a processor, a memory, and a network interface connected through a system bus. Wherein, the processor is used for providing calculation and control capability and supporting the operation of the whole mobile terminal. The memory is used for storing data, programs and the like, and at least one computer program is stored on the memory and can be executed by the processor to realize the information processing method suitable for the mobile terminal provided by the embodiment of the application. The memory may include a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The computer program can be executed by a processor to implement an information processing method provided in each of the following embodiments. The internal memory provides a cached execution environment for the operating system computer programs in the non-volatile storage medium. The network interface may be an ethernet card or a wireless network card, and is used for communicating with an external mobile terminal. The mobile terminal can be a mobile phone, a tablet computer or a personal digital assistant or a wearable device and the like.
The embodiment of the application also provides a computer readable storage medium. One or more non-transitory computer-readable storage media containing computer-executable instructions that, when executed by one or more processors, cause the processors to perform the steps of the information processing methods of embodiments of the present application.
A computer program product containing instructions which, when run on a computer, cause the computer to perform the steps of the information processing method in the embodiments of the present application.
The embodiment of the application also provides the mobile terminal. As shown in fig. 8, for convenience of explanation, only the parts related to the embodiments of the present application are shown, and details of the technology are not disclosed, please refer to the method part of the embodiments of the present application. The mobile terminal may be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), a vehicle-mounted computer, a wearable device, and the like, taking the mobile terminal as the mobile phone as an example:
fig. 8 is a block diagram of a partial structure of a mobile phone related to a mobile terminal according to an embodiment of the present application. Referring to fig. 8, the handset includes: radio Frequency (RF) circuitry 810, memory 820, input unit 830, display unit 840, sensor 850, audio circuitry 860, wireless fidelity (Wi-Fi) module 870, processor 880, and power supply 880. Those skilled in the art will appreciate that the handset configuration shown in fig. 8 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The RF circuit 810 may be used for receiving and transmitting signals during information transmission and reception or during a call, and may receive downlink information of a base station and then process the downlink information to the processor 880; the uplink data may also be transmitted to the base station. Typically, the RF circuitry 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, the RF circuit 810 may also communicate with networks and other devices via wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE)), e-mail, Short Messaging Service (SMS), and the like.
The memory 820 may be used to store software programs and modules, and the processor 880 executes various functional applications and data processing of the cellular phone by operating the software programs and modules stored in the memory 820. The memory 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 playing function, an application program for an image playing function, and the like), and the like; the data storage area may store data (such as audio data, an address book, etc.) created according to the use of the mobile phone, and the like. Further, the 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.
The input unit 830 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone 800. Specifically, the input unit 830 may include a touch panel 831 and other input devices 832. The touch panel 831, which may also be referred to as a touch screen, may collect touch operations performed by a user on or near the touch panel 831 (e.g., operations performed by the user on the touch panel 831 or near the touch panel 831 using any suitable object or accessory such as a finger, a stylus, etc.) and drive the corresponding connection device according to a preset program. In one embodiment, the touch panel 831 can include two portions, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts it to touch point coordinates, and sends the touch point coordinates to the processor 880, and can receive and execute commands from the processor 880. In addition, the touch panel 831 may be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The input unit 830 may include other input devices 832 in addition to the touch panel 831. In particular, other input devices 832 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), and the like.
The display unit 840 may be used to display information input by the user or information provided to the user and various menus of the cellular phone. The display unit 840 may include a display panel 841. In one embodiment, the Display 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, touch panel 831 can overlay display panel 841, and when touch panel 831 detects a touch operation thereon or nearby, communicate to processor 880 to determine the type of touch event, and processor 880 can then provide a corresponding visual output on display panel 841 based on the type of touch event. Although in fig. 8, the touch panel 831 and the display panel 841 are two separate components to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 831 and the display panel 841 may be integrated to implement the input and output functions of the mobile phone.
The cell phone 800 may also include at least one sensor 850, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display panel 841 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 841 and/or the backlight when the mobile phone is moved to the ear. The motion sensor can comprise an acceleration sensor, the acceleration sensor can detect the magnitude of acceleration in each direction, the magnitude and the direction of gravity can be detected when the mobile phone is static, and the motion sensor can be used for identifying the application of the gesture of the mobile phone (such as horizontal and vertical screen switching), the vibration identification related functions (such as pedometer and knocking) and the like; in addition, the mobile phone may be provided with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor.
The audio circuitry 860, speaker 861 and microphone 862 may provide an audio interface between the user and the handset. The audio circuit 860 can transmit the electrical signal converted from the received audio data to the speaker 861, and the electrical signal is converted into a sound signal by the speaker 861 and output; on the other hand, the microphone 862 converts the collected sound signal into an electrical signal, which is received by the audio circuit 860 and converted into audio data, and then the audio data is output to the processor 880 for processing, and then the audio data may be transmitted to another mobile phone through the RF circuit 810, or the audio data may be output to the memory 820 for subsequent processing.
Wi-Fi belongs to short-distance wireless transmission technology, and the mobile phone can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the Wi-Fi module 870, and provides wireless broadband internet access for the user. Although fig. 8 shows a Wi-Fi module 870, it is understood that it does not belong to the essential components of the handset 800 and may be omitted as needed.
The processor 880 is a control center of the mobile phone, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 820 and calling data stored in the memory 820, thereby integrally monitoring the mobile phone. In one embodiment, processor 880 may include one or more processing units. In one embodiment, the processor 880 may integrate an application processor and a modem processor, wherein the application processor primarily handles operating systems, user interfaces, applications, and the like; the modem processor handles primarily wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 880.
The cell phone 800 also includes a power supply 880 (e.g., a battery) for providing power to the various components, and preferably, the power supply is logically coupled to the processor 880 via a power management system, such that functions such as managing charging, discharging, and power consumption are performed via the power management system.
In one embodiment, the cell phone 800 may also include a camera, a bluetooth module, and the like.
In the embodiment of the present application, when the processor 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.
Any reference to memory, storage, database, or other medium used herein may include non-volatile and/or volatile memory. Non-volatile 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 a variety of 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), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and bus dynamic RAM (RDRAM).
The above examples only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. An information processing method, characterized by comprising:
when detecting that the power consumption of the mobile terminal is abnormal during the screen-off period, acquiring first awakening times of each subsystem in the mobile terminal;
detecting the power consumption abnormal type according to the first awakening times of each subsystem in the mobile terminal;
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;
Acquiring the Wi-Fi awakening times corresponding to the target application program identification, and determining an abnormal application program identification according to the Wi-Fi awakening times;
if the application program corresponding to the abnormal application program identification is detected to run in the background, performing resource limitation processing on the application program, wherein the resource limitation processing comprises the following steps: limiting CPU resources, I/O resources and memory resources of an application program;
obtaining abnormal information corresponding to the abnormal application program identifier, and reporting the abnormal information to a server, wherein the abnormal information comprises: and receiving an optimization strategy for the abnormal information returned by the server at the moment of detecting the abnormal application program identifier, the times of detecting the abnormal application program identifier and the awakening type corresponding to the abnormal application program identifier, and optimizing the application program corresponding to the abnormal application program identifier according to the optimization strategy.
2. The method according to claim 1, wherein the method for detecting abnormal power consumption of the mobile terminal during screen-off comprises:
if the mobile terminal is switched from a screen-off state to a screen-on state and the screen-off duration of the mobile terminal exceeds a first duration, acquiring standard electric quantity and power consumption electric quantity of the mobile terminal during the screen-off period; if the power consumption electric quantity is larger than the standard electric quantity, determining that the power consumption of the mobile terminal is abnormal;
Or, if the mobile terminal is switched from the screen-off state to the screen-on state and the screen-off duration of the mobile terminal exceeds a first duration, acquiring the standard electric power and the consumed electric power of the mobile terminal during the screen-off period, and if the consumed electric power is greater than the standard electric power, determining that the power consumption of the mobile terminal is abnormal.
3. The method according to claim 1, wherein the detection method of the power consumption anomaly type being Wi-Fi wake-up comprises:
acquiring an accumulated value of first awakening times of each subsystem in the mobile terminal;
and if the ratio of the second awakening times of the Wi-Fi subsystem in the mobile terminal to the accumulated value is larger than a first threshold, the power consumption abnormity type is Wi-Fi awakening.
4. A method according to any one of claims 1 to 3, characterized in that the method comprises:
and adjusting the time interval reported to the server according to the frequency of obtaining the abnormal information.
5. An information processing apparatus characterized by comprising:
the first acquisition module is used for acquiring first awakening times of each subsystem in the mobile terminal when the power consumption abnormality of the mobile terminal during the screen-off period is detected;
The detection module is used for detecting the power consumption abnormal type according to the first awakening times of each subsystem in the mobile terminal;
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;
the processing module is used for acquiring the Wi-Fi awakening times corresponding to the target application program identification and classifying the target application program identification according to the Wi-Fi awakening times;
the processing module is further configured to perform resource restriction processing on the application program if it is detected that the application program corresponding to the abnormal application program identifier runs in the background, where the resource restriction processing includes: limiting CPU resources, I/O resources and memory resources of an application program;
The processing module is further configured to acquire exception information corresponding to the exception application identifier, and report the exception information to a server, where the exception information includes: and receiving an optimization strategy for the abnormal information returned by the server at the moment of detecting the abnormal application program identifier, the times of detecting the abnormal application program identifier and the awakening type corresponding to the abnormal application program identifier, and optimizing the application program corresponding to the abnormal application program identifier according to the optimization strategy.
6. The apparatus according to claim 5, wherein the detection module is specifically configured to:
acquiring an accumulated value of first awakening times of each subsystem in the mobile terminal;
and if the ratio of the second awakening times of the Wi-Fi subsystem in the mobile terminal to the accumulated value is larger than a first threshold, the power consumption abnormity type is Wi-Fi awakening.
7. The apparatus according to claim 5, wherein the method for detecting abnormal power consumption of the mobile terminal during screen-off comprises:
if the mobile terminal is switched from a screen-off state to a screen-on state and the screen-off duration of the mobile terminal exceeds a first duration, acquiring standard electric quantity and power consumption electric quantity of the mobile terminal during the screen-off period; if the power consumption electric quantity is larger than the standard electric quantity, determining that the power consumption of the mobile terminal is abnormal;
Or, if the mobile terminal is switched from the screen-off state to the screen-on state and the screen-off duration of the mobile terminal exceeds a first duration, acquiring the standard electric power and the consumed electric power of the mobile terminal during the screen-off period, and if the consumed electric power is greater than the standard electric power, determining that the power consumption of the mobile terminal is abnormal.
8. The apparatus of any of claims 5 to 7, wherein the processing module is further configured to:
and adjusting the time interval reported to the server according to the frequency of obtaining the abnormal information.
9. A mobile terminal comprising a memory and a processor, the memory having stored therein a computer program that, when executed by the processor, causes the processor to perform the steps of the method according to any one of claims 1 to 4.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 4.
CN201810270073.0A 2018-03-29 2018-03-29 Information processing method, device, mobile terminal and computer readable storage medium Active CN108541013B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810270073.0A CN108541013B (en) 2018-03-29 2018-03-29 Information processing method, device, mobile terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810270073.0A CN108541013B (en) 2018-03-29 2018-03-29 Information processing method, device, mobile terminal and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN108541013A CN108541013A (en) 2018-09-14
CN108541013B true CN108541013B (en) 2022-06-10

Family

ID=63482357

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810270073.0A Active CN108541013B (en) 2018-03-29 2018-03-29 Information processing method, device, mobile terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN108541013B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110413525B (en) * 2019-07-29 2023-05-23 国网新疆电力有限公司电力科学研究院 Safety testing method and device
CN113051127B (en) * 2019-12-27 2022-12-13 Oppo广东移动通信有限公司 Abnormal power consumption detection method and device, electronic equipment and storage medium
CN113542483B (en) * 2020-03-30 2022-03-18 Oppo广东移动通信有限公司 Data transmission method and device, wearable device and storage medium
CN112882762A (en) * 2021-03-25 2021-06-01 广州文石信息科技有限公司 Power consumption optimization method, device, equipment and storage medium for ink screen equipment
CN113225727B (en) * 2021-05-12 2022-12-13 维沃移动通信有限公司 Processing method and device and electronic equipment
CN114428546B (en) * 2022-01-25 2024-04-09 惠州Tcl移动通信有限公司 Background application cleaning method and device, storage medium and terminal equipment

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2525609A1 (en) * 2011-05-18 2012-11-21 France Telecom Method and appartus for managing access to a communitary WiFi network
CN104166542A (en) * 2013-05-17 2014-11-26 腾讯科技(深圳)有限公司 Method and device for detecting electricity consumption of application
CN104298584A (en) * 2013-07-19 2015-01-21 贝壳网际(北京)安全技术有限公司 Method and device for acquiring application program with abnormal power consumption and mobile terminal
CN105528055A (en) * 2015-12-30 2016-04-27 小米科技有限责任公司 Running object processing method and device
CN105677386A (en) * 2015-12-29 2016-06-15 北京金山安全软件有限公司 Application program management method and device and electronic equipment
CN106708240A (en) * 2015-11-18 2017-05-24 腾讯科技(深圳)有限公司 Power saving method, server and power saving system
CN107027141A (en) * 2017-05-08 2017-08-08 广东欧珀移动通信有限公司 Information processing method, device and mobile terminal
CN107172687A (en) * 2017-05-08 2017-09-15 广东欧珀移动通信有限公司 Information processing method, device and mobile terminal
CN107193707A (en) * 2017-05-08 2017-09-22 广东欧珀移动通信有限公司 Information processing method, device and mobile terminal
CN107506019A (en) * 2017-08-07 2017-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 number Priority date Publication date Assignee Title
WO2015027248A2 (en) * 2013-08-23 2015-02-26 Cellepathy Ltd. Mobile device context aware determinations
TW201401838A (en) * 2012-06-25 2014-01-01 Hon Hai Prec Ind Co Ltd Wakeup apparatus and electronic device
FR3000359A1 (en) * 2012-12-21 2014-06-27 France Telecom METHOD OF ALARMING A BASE STATION SERVING A SMALL CELL DURING AN INCOMING CALL

Patent Citations (10)

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

Also Published As

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

Similar Documents

Publication Publication Date Title
CN108541013B (en) Information processing method, device, mobile terminal and computer readable storage medium
CN108616653B (en) Information processing method, device, mobile terminal and computer readable storage medium
CN109144232B (en) Process processing method and device, electronic equipment and computer readable storage medium
CN108320744B (en) Voice processing method and device, electronic equipment and computer readable storage medium
CN112703714B (en) Application processing method and device, computer equipment and computer readable storage medium
CN110032266B (en) Information processing method, information processing device, computer equipment and computer readable storage medium
CN109445917B (en) Application processing method and device, electronic equipment and computer readable storage medium
CN108334345B (en) Application processing method and device, readable storage medium and mobile terminal
CN109992425B (en) Information processing method, information processing device, computer equipment and computer readable storage medium
CN109992380B (en) Application program processing method and device, electronic equipment and computer readable storage medium
CN108668016B (en) Information processing method, device, mobile terminal and computer readable storage medium
CN110018886B (en) Application state switching method and device, electronic equipment and readable storage medium
CN109992360B (en) Process processing method and device, electronic equipment and computer readable storage medium
CN109992309B (en) Application program processing method and device, electronic equipment and computer readable storage medium
CN109992323B (en) Process processing method and device, electronic equipment and computer readable storage medium
CN110046033B (en) Application program processing method and device, electronic equipment and computer readable storage medium
US20150250015A1 (en) Method, system and computer-readable storage medium for reducing data transmission delay
CN108646909B (en) Information processing method, device, mobile terminal and computer readable storage medium
CN109511139B (en) WIFI control method and device, mobile device and computer-readable storage medium
CN109375995B (en) Application freezing method and device, storage medium and electronic equipment
CN108566471B (en) Information processing method, device, mobile terminal and computer readable storage medium
CN112997507B (en) Audio system control method, device, terminal and computer readable storage medium
CN109992395B (en) Application freezing method and device, terminal and computer readable storage medium
CN110045811B (en) Application program processing method and device, electronic equipment and computer readable storage medium
CN108650384B (en) Information processing method, device, mobile terminal 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
CB02 Change 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.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant