CN112714907B - Method and device for filtering during application freezing and electronic equipment - Google Patents

Method and device for filtering during application freezing and electronic equipment Download PDF

Info

Publication number
CN112714907B
CN112714907B CN201880097758.8A CN201880097758A CN112714907B CN 112714907 B CN112714907 B CN 112714907B CN 201880097758 A CN201880097758 A CN 201880097758A CN 112714907 B CN112714907 B CN 112714907B
Authority
CN
China
Prior art keywords
target application
application
data transmission
filtering
exceeded
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
CN201880097758.8A
Other languages
Chinese (zh)
Other versions
CN112714907A (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
Shenzhen Huantai Technology Co Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Shenzhen Huantai 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 Guangdong Oppo Mobile Telecommunications Corp Ltd, Shenzhen Huantai Technology Co Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Publication of CN112714907A publication Critical patent/CN112714907A/en
Application granted granted Critical
Publication of CN112714907B publication Critical patent/CN112714907B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

A method and a device for filtering when an electronic device application freezes and an electronic device. The method comprises the following steps: monitoring a target application, wherein the target application is an application in the electronic equipment which is in data transmission (S10); acquiring identification information of the target application (S20); judging whether the target application needs to be filtered in the freezing operation according to the identification information (S30); if so, the target application is filtered (S40). According to the method and device for filtering the application of the electronic equipment when freezing, and the electronic equipment, the application which is carrying out a large amount of data transmission in freezing operation can be filtered, so that the application can carry out normal data transmission, and the user experience of the electronic equipment is improved.

Description

Method and device for filtering during application freezing and electronic equipment
Technical Field
The present application relates to the field of electronic devices, and in particular, to a method and an apparatus for filtering when freezing is applied, and an electronic device.
Background
In the use process of the electronic equipment, people can uniformly clean the applications due to excessive running applications. The cleaning mode frequently used at present comprises third party application cleaning, menu key cleaning or application freezing by adopting a freezing technology, and the frozen application does not occupy memory space and can not run.
However, in the actual use process, freezing the application which is transmitting a large amount of data can affect the use experience of the user. If the application needs to resume data transmission, the user is required to defrost, and the operation wastes time of the user and the process is complicated.
Disclosure of Invention
In view of the above, the application discloses a method and a device for filtering when an application is frozen, and an electronic device, so that when the electronic device is frozen, the application which is transmitting a large amount of data is not frozen by freezing operation, and the use experience of a user is not affected.
The embodiment of the application provides a method for filtering an application, which is applied to electronic equipment and comprises the following steps:
monitoring a target application, wherein the target application is an application in the electronic equipment which is in data transmission;
acquiring identification information of the target application;
judging whether the target application needs to be filtered in freezing operation according to the identification information;
and if so, filtering the target application.
The embodiment of the application also provides a device for filtering the application, which comprises:
the application monitoring module is used for monitoring a target application, wherein the target application is an application in the electronic equipment which is in data transmission;
the data acquisition module is used for acquiring the identification information of the target application;
the judging module is used for judging whether the target application needs to be filtered in the freezing operation according to the identification information;
and the control module is used for filtering the target application.
The embodiment of the application also provides electronic equipment, which comprises a memory and a processor, wherein the memory stores a computer program, and the computer program when executed by the processor causes the processor to execute the step of filtering when the application is frozen.
Embodiments of the present application also provide a computer non-transitory readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the method of filtering when an application freezes as described above.
According to the technical scheme, the application discloses a method and a device for filtering when the application is frozen and electronic equipment, and a user does not need to restore the operation of the application and data transmission by unlocking the electronic equipment by filtering the application which is carrying out mass data transmission when the electronic equipment is frozen. The freeze operation does not freeze applications that are transmitting large amounts of data, affecting the user experience.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, and it is obvious that the drawings in the following description are only embodiments of the present application, and that other drawings can be obtained according to the disclosed drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for filtering applications according to an embodiment of the present application;
FIG. 2 is a flow chart of a method for filtering applications according to an embodiment of the present application;
FIG. 3 is a flow chart of a method for filtering applications according to an embodiment of the present application;
FIG. 4 is a flow chart of a method for filtering applications according to an embodiment of the present application;
FIG. 5 is a flow chart of a method for filtering applications according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an apparatus for filtering an application according to an embodiment of the present application;
fig. 7 is a block diagram of a part of the structure of an electronic device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The embodiment of the application discloses a method, a device and electronic equipment for filtering applications, which are used for realizing that when the electronic equipment is frozen, the freezing operation cannot freeze the applications which are transmitting a large amount of data so as to influence the use experience of users.
The electronic device may include an internet device such as a smart phone (e.g., an Android mobile phone, an IOS mobile phone, etc.), a personal computer, a tablet computer, a palm computer, a mobile internet device (MID, mobile Internet Devices), or a wearable smart device, which is not limited in the embodiment of the present application.
Referring to fig. 1, a flowchart of a method for filtering an application according to an embodiment of the present application is disclosed, where the method is applied to an electronic device, and the method includes the steps of:
step S10, monitoring a target application, wherein the target application is an application in the electronic equipment which is in data transmission.
In practical use, the target application is an application program. The Application (APP) refers to software written for some Application purpose in the electronic device, and the electronic device can implement a demand service for a user through the Application. The data transmission of the application program refers to a communication process in which the application instructs data to be transferred from one place to another place during the operation.
The processor monitors the data transmission of the target application during the data transmission process, so that the processor in the electronic device can monitor and detect the target application.
Step S20, acquiring identification information of the target application;
specifically, the identification information specifically refers to identity information of an application, information of application data transmission, and identification information of a process.
The identity information of the application is worth of the application number of the application. In the Android system, each program has an application number, and the application number is UID (User Identifier) of the application program. The UIDs are similar to identification numbers, and an application program corresponds to only one UID.
The information of the application data transmission refers to that during the data transmission process of the application, the processor records the number of data transmissions of the application in a period of time, that is, how many bytes of data have been transmitted.
The identification information of the process of the application, generally, the application operation of the application program is commonly completed by one or more processes (processes), and the processes are the primary running activities of the program in the computer on a certain data set, and are the basic units of resource allocation and scheduling of the system.
Step S30, judging whether the target application needs to be filtered in the freezing operation according to the identification information;
in this embodiment, the identification information refers to information of the target application data transmission, and in particular, refers to the target application data transmission rate. The data transmission rate refers to the amount of data that can be transmitted over a channel per unit time, and is numerically equal to the number of bits that constitute a data code transmitted per second.
The determining whether the target application needs to be filtered during the freezing operation, specifically, determining whether the data transmission rate of the target application exceeds the set data transmission rate at the current moment. And if the data transmission rate exceeds the preset data transmission rate, judging that the target application is transmitting a large amount of data, and filtering the target application in the freezing operation.
The filtering the target application means that in the freezing operation, the electronic device does not execute the freezing operation on the obtained process according to the identification information of the process of the target application.
And step S40, filtering the target application if required.
In this embodiment, the filtering of the target application refers to that the target application is performing a large amount of data transmission after the target application is determined, and the filtering of the target application performing a large amount of data transmission is performed in a freezing operation.
The filtering the target application refers to that the target application is not frozen in the freezing operation of the electronic equipment, so that the target application keeps a running state, namely the target application still performs a large amount of data transmission. The filtering the target application means that all the processes of the target application are filtered according to the UID of the target application and the identification information of the processes of the target application.
In summary, the method for filtering applications disclosed by the application primarily obtains the application which should be filtered in the freezing operation of the electronic equipment, namely the target application, by monitoring the application which is in data transmission in the electronic equipment. And obtaining UID of the target application, information of data transmission and identification information of a process by obtaining the identification information of the target application. The information of the data transmission includes a data transmission rate of the target application. And judging whether the target application needs to be filtered in the freezing operation according to the data transmission rate of the target application. And if so, filtering all the processes of the target application according to the UID of the target application and the identification information of the processes of the target application.
Therefore, the application realizes that the application for transmitting a large amount of data still keeps the running state after the electronic equipment is frozen, omits the program of application thawing by the user, saves the time of the user and improves the use experience of the user.
In the above embodiment, when the determining, according to the identification information, whether the freezing operation is the filtering target application is needed, the method further includes step S50:
and if the target application does not need to be filtered, freezing the target application in a freezing operation.
In this embodiment, referring to fig. 1, based on the determination of the data transmission rate of the target application, if the data transmission rate of the target application does not exceed a limited rate, all processes of the target application may be frozen during the freezing operation. However, in this embodiment, after the data transmission rate of the target application does not exceed the limited rate, it is still required to determine whether the target application needs to be frozen, that is, determine the size of the data transmitted by the target application. And if the size of the target application transmission data exceeds a preset data transmission threshold, filtering the target application in the freezing process of the electronic equipment.
Referring to fig. 2, in the above embodiment, the step S30 includes:
s310, judging whether the data transmission rate of the target application exceeds a limit rate;
and S320, if the speed limit rate of the data transmission is exceeded, judging that the target application needs to be filtered.
In this embodiment, the rate of speed is 10KB/S. At the current moment, if the data transmission rate of the target application exceeds 10KB/S, defining that the target application is transmitting a large amount of data, namely judging that the target application needs to be filtered when the electronic equipment is frozen.
In an embodiment of the present application, the step S320 includes:
s321, judging whether the size of the target application transmission data exceeds a preset data transmission threshold;
s322, if the preset data transmission threshold is exceeded, filtering the target application.
In this embodiment, the electronic device may obtain the size of the transmission data of the target application, compare and analyze the size of the transmission data of the target application with the preset data transmission threshold, and count an application whose size of the transmission data exceeds the preset data transmission threshold, and record the application as the first target application. And in the freezing operation of the electronic equipment, performing preferential filtering on the first target application. And recording the application of which the size of the transmission data obtained through statistics does not exceed the preset data transmission threshold value as a second target application. In the freezing operation of the electronic equipment, the first target application is filtered, and then the second target application is filtered.
Referring to fig. 3, in an embodiment of the present application, the step S30 further includes:
s330, if the data transmission limit rate is not exceeded, judging whether the size of the target application transmission data exceeds the preset data transmission threshold value;
s340, if the preset data transmission threshold is exceeded, filtering the target application;
and S350, if the preset data transmission threshold is not exceeded, freezing the target application in the freezing operation.
In this embodiment, the rate of data transmission of the target application does not exceed a limited rate, i.e., does not exceed 10KB/S. At this time, the electronic device needs to compare and analyze the size of the transmission data of the target application with the preset data transmission threshold, and counts the application of which the size of the transmission data exceeds the preset data transmission threshold, so as to record the application as a third target application. And in the freezing operation of the electronic equipment, the first target application is filtered preferentially, the second target application is filtered, and finally the third target application is filtered.
And if the size of the transmission data of the target application does not exceed the preset data transmission threshold after the electronic equipment is compared and analyzed, filtering is not performed during freezing operation, namely, the target application is frozen.
Referring to fig. 4, in an embodiment of the present application, before the step S10, the method includes:
s01, judging whether the electronic equipment meets a freezing triggering condition or not;
s02, if yes, monitoring the target application;
and S03, if the target application is not satisfied, not monitoring the target application.
In this embodiment, the freezing triggering condition includes that the electronic device is in a screen-off state, but is not limited to the electronic device being in a screen-off state. It will be appreciated that the electronic device may be in other states as long as the electronic device performs a freezing operation. If the electronic equipment is in the off-screen state, the electronic equipment can monitor the application in data transmission. If the electronic equipment is not in the off-screen state, the electronic equipment does not monitor the application in data transmission.
Referring to fig. 5, in an embodiment of the present application, the step S20 includes:
s210, acquiring an application number UID of the target application.
It can be appreciated that, because the Android system is a single-user system, in order to realize data sharing, the Android system allocates a different application number UID to each application. For example, if the target application is the application a currently in the running state in the electronic device and the application number UID corresponding to the target application is 2, the application number UID of the target application a obtained at this time is 2.
The application number UID of the target application is essentially the identification information of the target application in the system, and in fact, as long as the target application can be identified, the application number UID is not limited to the common application number UID.
S220, obtaining the PID of each process number under the application number UID.
It will be appreciated that an application program is made up of a plurality of processes, each having a respective process number PID. For example, if the application number of the target application a is set to be 2, the processes corresponding to the target application a are a1, a2, a3, a4, and the process numbers PID corresponding to the processes a1, a2, a3, a4 are 11, 12, 13, 14, respectively, then the process numbers PID corresponding to the processes a1, a2, a3, a4 under the application number 2 obtained at this time are 11, 12, 13, 14, respectively.
The process number PID is essentially an identity of each process under the target application. In fact, the process is not limited to the conventional process number PID as long as the process can be identified within the scope of the present application.
S230, obtaining the record files under the corresponding processes of the process numbers PID.
It will be appreciated that the process record file under a process contains process identification information of all processes started by the process. For example, if the application number of the target application a is 2 and the corresponding process numbers are 11, 12, 13, and 14, the process record files corresponding to the process numbers are a11.procs, a12.procs, a13.procs, and a14.procs, respectively.
In the android system, a common process record file is cgroups. In IOS systems and other systems, it is necessary to see where process identification information of all processes started by the process is specifically stored. In fact, in any other system, as long as the process identification information of all processes started by the process is recorded in the process record file, the process record file is not limited to the common process record file.
S240, acquiring identification information of all processes of the target application according to the record file.
It is understood that the identification information of the process in this embodiment may include a process number, a process name, a process state, a process priority, a CPU time occupied by the process, and the like. It should be clear that only a few common process identification information are listed here, and the process identification information does not necessarily or only contains the above several information, and can be flexibly set according to specific application scenarios.
Referring to fig. 6, the application discloses a device for filtering an application, which comprises:
the application monitoring module 21 is configured to monitor a target application, where the target application is an application in the electronic device that is performing data transmission.
The application monitoring module 21 may monitor the transmitting application program during the data transmission process of the target application.
The data acquisition module 22 is configured to acquire identification information of the target application.
The data acquisition module 22 may acquire the application number UID of the target application, each process number PID under the application number UID, a record file under a process corresponding to each process number PID, and identification information of all processes of the target application acquired according to the record file. The identification information of all the processes comprises the data transmission rate and the transmission data size of the target application.
And the judging module 23 is configured to judge whether the target application needs to be filtered during the freezing operation according to the identification information.
The judging module 23 determines whether the target application needs to be filtered at the time of the freezing operation according to the data transmission rate of the target application. If the data transmission rate of the target application exceeds the limit rate, the judging module 23 judges that the target application needs to be filtered during the freezing operation. The limiting rate is 10KB/S.
Further, the judging module 23 performs a comparison analysis on the size of the transmission data of the target application and a preset data transmission threshold. And if the size of the data transmitted by the target application exceeds a preset data transmission threshold value and the data transmission rate of the target application exceeds a limit rate, marking the target application as a first target application. And if the size of the data transmitted by the target application does not exceed the preset data transmission threshold value, but the data transmission rate of the target application exceeds the limit rate, marking the target application as a second target application. And if the size of the data transmitted by the target application exceeds a preset data transmission threshold, but the data transmission rate of the target application does not exceed a limit rate, the target application is the third target application.
A control module 24 for filtering the target application.
The control module 24 may filter all processes of the target application based on the identification information of the target application. And in the filtering operation of the target application, the first target application is filtered preferentially, and the second target application is filtered after the first target application is filtered. And after the second target application is filtered, filtering the third target application.
In one embodiment of the application, the control module 24 is further configured to freeze the target application during a freeze operation.
If the data transmission rate of the target application does not exceed a limit rate and the size of the transmission data does not exceed a preset data transmission threshold, the control module 24 freezes the identification information of all processes of the target application.
In one embodiment of the present application, the determining whether the target application needs to be filtered during the freezing operation includes:
and judging whether the data transmission rate of the target application exceeds a limit rate.
And if the speed limit rate of the data transmission is exceeded, judging that the target application needs to be filtered.
In this embodiment, the limiting rate is 10KB/S. And if the data transmission rate of the target application exceeds 10KB/S, judging that the target application needs to be filtered.
In one embodiment of the present application, after the determining that the target application needs to be filtered if the rate of data transmission exceeds the rate limit, the determining module 23 is further configured to:
judging whether the size of the target application transmission data exceeds a preset data transmission threshold value or not;
and if the preset data transmission threshold is exceeded, filtering the target application.
In this embodiment, the data transmission rate of the target application exceeds a limited rate, and the size of the transmission data exceeds the preset data transmission threshold, that is, the target application is the first target application.
And if the size of the transmission data does not exceed the preset data transmission threshold value, recording the target application as the second target application.
In one embodiment of the present application, the determining module 23 determines whether the target application needs to be filtered during the freezing operation, including:
and if the data transmission limit rate is not exceeded, judging whether the size of the target application transmission data exceeds the preset data transmission threshold value.
And if the preset data transmission threshold is exceeded, filtering the target application.
In this embodiment, the data transmission rate of the target application does not exceed a limited rate, and the data transmission rate of the target application does not exceed the preset data transmission threshold, that is, the target application is the third target application.
And if the preset data transmission threshold value is not exceeded, freezing the target application in the freezing operation.
In this embodiment, during the freezing operation, the target application preferentially filters the first target application, and after the filtering of the first target application is completed, filters the second target application. And after the second target application is filtered, filtering the third target application. And if the data transmission rate of the target application does not exceed the speed limit rate and the size of the data transmitted by the target application does not exceed the preset data transmission threshold, freezing all processes of the target application.
In one embodiment of the present application, the application monitoring module is further configured to: judging whether the electronic equipment meets a freezing triggering condition or not;
if yes, monitoring the target application;
if not, not monitoring the target application.
The freeze trigger condition includes:
the device is in a screen-off state.
In this embodiment, the freezing triggering condition includes that the electronic device is in a screen-off state, but is not limited to the electronic device being in a screen-off state. It will be appreciated that the electronic device may be in other states as long as the electronic device performs a freezing operation. If the electronic equipment is in the off-screen state, the electronic equipment can monitor the application in data transmission. If the electronic equipment is not in the off-screen state, the electronic equipment does not monitor the application in data transmission.
In one embodiment of the present application, the data obtaining module obtains identification information of the target application, including:
and acquiring the application number UID of the target application.
In this embodiment, the application UID of the target application is substantially identification information of the target application in the system. It can be appreciated that, because the Android system is a single-user system, in order to realize data sharing, the Android system allocates a different application number UID to each application. For example, if the target application is the application a currently in the running state in the electronic device and the application number UID corresponding to the target application is 2, the application number UID of the target application a obtained at this time is 2.
In fact, as long as the target application can be identified, it is within the protection scope of the present application and is not limited to the commonly used application number UID.
And acquiring the PID of each process number under the application number UID.
It will be appreciated that an application program is made up of a plurality of processes, each having a respective process number PID. For example, if the application number of the target application a is set to be 2, the processes corresponding to the target application a are a1, a2, a3, a4, and the process numbers PID corresponding to the processes a1, a2, a3, a4 are 11, 12, 13, 14, respectively, then the process numbers PID corresponding to the processes a1, a2, a3, a4 under the application number 2 obtained at this time are 11, 12, 13, 14, respectively.
The process number PID is essentially an identity of each process under the target application. In fact, the process is not limited to the conventional process number PID as long as the process can be identified within the scope of the present application.
And acquiring the record files under the corresponding processes of the PID of each process number.
It will be appreciated that the process record file under a process contains process identification information of all processes started by the process. For example, if the application number of the target application a is 2 and the corresponding process numbers are 11, 12, 13, and 14, the process record files corresponding to the process numbers are a11.procs, a12.procs, a13.procs, and a14.procs, respectively.
In the android system, a common process record file is cgroups. In IOS systems and other systems, it is necessary to see where process identification information of all processes started by the process is specifically stored. In fact, in any other system, as long as the process identification information of all processes started by the process is recorded in the process record file, the process record file is not limited to the common process record file.
And acquiring the identification information of all the processes of the target application according to the record file.
It is understood that the identification information of the process in this embodiment may include a process number, a process name, a process state, a process priority, a CPU time occupied by the process, and the like. It should be clear that only a few common process identification information are listed here, and the process identification information does not necessarily or only contains the above several information, and can be flexibly set according to specific application scenarios.
The embodiment of the application also provides an electronic device, which comprises a memory 702 and a processor 780, wherein the memory 702 stores a computer program. The computer programs, when executed by the processor 780, cause the processor 780 to perform the steps of filtering when the application freezes as described above. For convenience of explanation, only those portions of the embodiments of the present application that are relevant to the embodiments of the present application are shown, and specific technical details are not disclosed, please refer to the method portions of the embodiments of the present application. The electronic device 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 electronic device as an example of the mobile phone:
fig. 7 is a block diagram of a part of a mobile phone related to an electronic [ mobile phone structure ] device provided in an embodiment of the present application. Referring to fig. 7, the mobile phone includes: radio Frequency (RF) circuitry 710, memory 720, input unit 730, display unit 740, sensor 750, audio circuitry 760, wireless fidelity (wireless fidelity, wiFi) module 770, processor 780, power supply 790, and the like. It will be appreciated by those skilled in the art that the handset construction shown in fig. 7 is not limiting of the handset and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
The RF circuit 710 may be configured to receive and transmit information or receive and transmit signals during a call, and may receive downlink information of a base station and process the downlink information with the processor 780; the uplink data may be transmitted to the base station. Typically, RF circuitry includes, but is not limited to, antennas, at least one amplifier, transceivers, couplers, low noise amplifiers (Low Noise Amplifier, LNAs), diplexers, and the like. In addition, the RF circuitry 710 may also communicate with networks and other devices via wireless communications. The wireless communications may use any communication standard or protocol including, but not limited to, global system for mobile communications (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 (Wideband Code Division Multiple Access, WCDMA), long term evolution (Long Term Evolution, LTE)), email, short message service (Short Messaging Service, SMS), and the like.
The memory 720 may be used to store software programs and modules, and the processor 780 performs various functional applications and data processing of the handset 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, application programs required for at least one function (such as an application program of a sound playing function, an application program of an image playing function, etc.), and the like; the data storage area may store data (such as audio data, address book, etc.) created according to the use of the cellular phone, etc. In addition, memory 720 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 730 may be used to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the handset 700. In particular, the input unit 730 may include a touch panel 731 and other input devices 732. The touch panel 731, which may also be referred to as a touch screen, may collect touch operations thereon or thereabout by a user (e.g., operations of the user on the touch panel 731 or thereabout using any suitable object or accessory such as a finger, a stylus, etc.), and drive the corresponding connection device according to a predetermined program. In one embodiment, touch panel 731 may comprise two parts, a touch detection device and a touch controller. The touch detection device detects the touch azimuth 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 detection device and converts it into touch point coordinates, which are then sent to the processor 780, and can receive commands from the processor 780 and execute them. In addition, the touch panel 731 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. The input unit 730 may include other input devices 732 in addition to the touch panel 731. In particular, the other input devices 732 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), and the like.
The display unit 740 may be used to display information input by a user or information 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 (OLED), or the like. In one embodiment, touch panel 731 may overlay display panel 741, and when touch panel 731 detects a touch operation thereon or thereabout, it is passed to processor 780 to determine the type of touch event, and processor 780 then provides a corresponding visual output on display panel 741 based on the type of touch event. Although in fig. 7, the touch panel 731 and the display panel 741 are two separate components to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 731 and the display panel 741 may be integrated to implement the input and output functions of the mobile phone.
The handset 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 ambient light, and the proximity sensor may turn off the display panel 741 and/or the backlight when the mobile phone moves to the ear. The motion sensor can comprise an acceleration sensor, the acceleration sensor can detect the acceleration in all directions, the gravity and the direction can be detected when the motion sensor is static, and the motion sensor can be used for identifying the application of the gesture of a mobile phone (such as switching of a transverse screen and a vertical screen), vibration identification related functions (such as a pedometer and knocking) and the like; in addition, the mobile phone can be provided with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor and the like.
Audio circuitry 760, speaker 761, and microphone 762 may provide an audio interface between a user and a cell phone. The audio circuit 760 may transmit the received electrical signal converted from audio data to the speaker 761, and the electrical signal is converted into a sound signal by the speaker 761 to be output; on the other hand, microphone 762 converts the collected sound signals into electrical signals, which are received by audio circuit 760 and converted into audio data, which are processed by audio data output processor 780, and then transmitted to another cell phone via RF circuit 710 or output to memory 720 for subsequent processing.
WiFi belongs to a short-distance wireless transmission technology, and a mobile phone can help a user to send and receive emails, browse webpages, access streaming media and the like through a WiFi module 770, so that wireless broadband Internet access is provided for the user. Although fig. 7 shows a WiFi module 770, it is to be understood that it is not a necessary component of the handset 700 and may be omitted as desired.
The processor 780 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 and processes of the mobile phone by running or executing software programs and/or modules stored in the memory 720 and calling data stored in the memory 720, thereby performing overall monitoring of the mobile phone. In one embodiment, the 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 primarily processes operating systems, user interfaces, application programs, and the like; the modem processor primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 780.
The handset 700 further includes a power supply 790 (e.g., a battery) for powering the various components, which may preferably be logically connected to the processor 780 through a power management system, such as to provide for managing charging, discharging, and power consumption by the power management system.
In one embodiment, the handset 700 may also include a camera, bluetooth module, or the like.
In the embodiment of the present application, the steps of the process processing method provided in the above embodiment are implemented when the processor 780 included in the electronic device executes the computer program stored on the memory.
Any reference to memory, storage, database, or other medium used in the present application may include non-volatile and/or volatile memory. The 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 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 DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The foregoing examples illustrate only a few embodiments of the application and are described in detail herein without thereby limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of protection of the present application is to be determined by the appended claims.

Claims (14)

1. A method for filtering an application, applied to an electronic device, comprising:
monitoring a target application, wherein the target application is an application in the electronic equipment which is in data transmission;
acquiring identification information of the target application, wherein the identification information comprises information of application data transmission;
judging whether the target application needs to be filtered in freezing operation according to the identification information;
if so, filtering the target application;
wherein the determining whether the target application needs to be filtered during the freezing operation includes:
judging whether the data transmission rate of the target application exceeds a limit rate;
if the speed limit rate of the data transmission is exceeded, judging that the target application needs to be filtered;
if the speed limit rate of the data transmission is exceeded, after the target application is judged to need to be filtered, the method further comprises:
judging whether the size of the target application transmission data exceeds a preset data transmission threshold value or not;
if the preset data transmission threshold is exceeded, determining that the target application is a first target application, and performing filtering operation on the target application;
and if the preset data transmission threshold is not exceeded, determining that the target application is a second target application, and filtering the second target application after filtering the first target application.
2. The method according to claim 1, wherein the method further comprises: and if the target application does not need to be filtered, freezing the target application in a freezing operation.
3. The method of claim 1, wherein the determining whether the target application needs to be filtered at the time of the freezing operation comprises:
if the data transmission limit rate is not exceeded, judging whether the size of the target application transmission data exceeds the preset data transmission threshold value;
if the preset data transmission threshold is exceeded, determining that the target application is a third target application, and performing filtering operation on the third target application;
and if the preset data transmission threshold value is not exceeded, freezing the target application in the freezing operation.
4. The method of claim 1, wherein prior to the monitoring the target application, the method comprises:
judging whether the electronic equipment meets a freezing triggering condition or not;
if yes, monitoring the target application;
if not, not monitoring the target application.
5. The method of claim 4, wherein the freeze trigger condition comprises:
the electronic equipment is in a screen-off state.
6. The method of claim 1, wherein the obtaining the identification information of the target application comprises:
acquiring an application number UID of the target application;
acquiring the PID of each process number under the application number UID;
acquiring a record file under the process corresponding to each process number PID;
and acquiring the identification information of all the processes of the target application according to the record file.
7. An apparatus for filtering an application, comprising:
the application monitoring module is used for monitoring a target application, wherein the target application is an application in the electronic equipment which is in data transmission;
the data acquisition module is used for acquiring the identification information of the target application, wherein the identification information comprises information of application data transmission;
the judging module is used for judging whether the target application needs to be filtered in the freezing operation according to the identification information; wherein the determining whether the target application needs to be filtered during the freezing operation includes: judging whether the data transmission rate of the target application exceeds a limit rate; if the speed limit rate of the data transmission is exceeded, judging that the target application needs to be filtered; and if the speed limit rate of the data transmission is exceeded, after the target application is judged to need to be filtered, the judging module is further used for: judging whether the size of the target application transmission data exceeds a preset data transmission threshold value or not; if the preset data transmission threshold is exceeded, determining that the target application is a first target application, and performing filtering operation on the target application; if the preset data transmission threshold is not exceeded, determining that the target application is a second target application, and filtering the second target application after filtering the first target application;
and the control module is used for filtering the target application.
8. The apparatus of claim 7, wherein the control module is further configured to freeze the target application upon a freeze operation.
9. The apparatus of claim 7, wherein the means for determining determines whether filtering the target application during a freeze operation is required, comprises:
if the data transmission limit rate is not exceeded, judging whether the size of the target application transmission data exceeds the preset data transmission threshold value;
if the preset data transmission threshold is exceeded, determining that the target application is a third target application, and performing filtering operation on the third target application;
and if the preset data transmission threshold value is not exceeded, freezing the target application in the freezing operation.
10. The apparatus of claim 7, wherein the application monitoring module is further configured to: judging whether the electronic equipment meets a freezing triggering condition or not;
if yes, monitoring the target application;
if not, not monitoring the target application.
11. The apparatus of claim 10, wherein the freeze trigger condition comprises:
the device is in a screen-off state.
12. The apparatus of claim 7, wherein the data acquisition module acquires identification information of the target application, comprising:
acquiring an application number UID of the target application;
acquiring the PID of each process number under the application number UID;
acquiring a record file under the process corresponding to each process number PID;
and acquiring the identification information of all the processes of the target application according to the record file.
13. An electronic device comprising a memory and a processor, the memory having stored therein a computer program which, when executed by the processor, causes the processor to perform the step of filtering when the application of any of claims 1-6 is frozen.
14. A computer non-transitory readable storage medium having stored thereon a computer program, which when executed by a processor performs the step of filtering when the application according to any of claims 1-6 is frozen.
CN201880097758.8A 2018-11-08 2018-11-08 Method and device for filtering during application freezing and electronic equipment Active CN112714907B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/114477 WO2020093297A1 (en) 2018-11-08 2018-11-08 Method and apparatus for application filtering during freezing, and electronic device

Publications (2)

Publication Number Publication Date
CN112714907A CN112714907A (en) 2021-04-27
CN112714907B true CN112714907B (en) 2023-08-11

Family

ID=70612431

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201880097758.8A Active CN112714907B (en) 2018-11-08 2018-11-08 Method and device for filtering during application freezing and electronic equipment

Country Status (2)

Country Link
CN (1) CN112714907B (en)
WO (1) WO2020093297A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105094967A (en) * 2015-06-26 2015-11-25 小米科技有限责任公司 Method and apparatus for operating process
CN106127037A (en) * 2016-06-21 2016-11-16 依偎科技(南昌)有限公司 Method, device and the terminal processed is freezed in a kind of application
CN106528282A (en) * 2016-09-23 2017-03-22 依偎科技(南昌)有限公司 Method, device and terminal for closing process
CN106604364A (en) * 2016-12-07 2017-04-26 广东欧珀移动通信有限公司 Network connection method and terminal
CN107634867A (en) * 2017-10-25 2018-01-26 广东欧珀移动通信有限公司 Network management and Related product
CN108494462A (en) * 2018-03-28 2018-09-04 奇酷互联网络科技(深圳)有限公司 Antenna function control method, device, readable storage medium storing program for executing and intelligent terminal

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103902357A (en) * 2012-12-27 2014-07-02 富泰华工业(深圳)有限公司 Application program management system and method
CN106020964A (en) * 2016-06-30 2016-10-12 宇龙计算机通信科技(深圳)有限公司 Method and device for freezing application, and terminal
CN106250223B (en) * 2016-07-28 2020-01-10 宇龙计算机通信科技(深圳)有限公司 Background process management method and terminal equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105094967A (en) * 2015-06-26 2015-11-25 小米科技有限责任公司 Method and apparatus for operating process
CN106127037A (en) * 2016-06-21 2016-11-16 依偎科技(南昌)有限公司 Method, device and the terminal processed is freezed in a kind of application
CN106528282A (en) * 2016-09-23 2017-03-22 依偎科技(南昌)有限公司 Method, device and terminal for closing process
CN106604364A (en) * 2016-12-07 2017-04-26 广东欧珀移动通信有限公司 Network connection method and terminal
CN107634867A (en) * 2017-10-25 2018-01-26 广东欧珀移动通信有限公司 Network management and Related product
CN108494462A (en) * 2018-03-28 2018-09-04 奇酷互联网络科技(深圳)有限公司 Antenna function control method, device, readable storage medium storing program for executing and intelligent terminal

Also Published As

Publication number Publication date
CN112714907A (en) 2021-04-27
WO2020093297A1 (en) 2020-05-14

Similar Documents

Publication Publication Date Title
CN106293445B (en) Method and device for acquiring application program use data and terminal equipment
CN112703714B (en) Application processing method and device, computer equipment and computer readable storage medium
CN107562539B (en) Application program processing method and device, computer equipment and storage medium
EP3299999B1 (en) Method and device for updating sequence of fingerprint templates for matching
CN109144232B (en) Process processing method and device, electronic equipment and computer readable storage medium
CN107682910B (en) Traffic resource sharing method and device, mobile terminal and storage medium
CN107577508B (en) Application processing method and device, readable storage medium and mobile terminal
CN108334345B (en) Application processing method and device, readable storage medium and mobile terminal
CN107484154B (en) Data switching method and device, terminal and computer readable storage medium
CN106528638B (en) Method for deleting backup data and mobile terminal
CN115668123A (en) Audio resource allocation method and device and electronic equipment
CN107484201B (en) Flow statistical method and device, terminal and computer readable storage medium
CN107623612B (en) Flow display method and device, computer equipment and computer readable storage medium
CN110413497B (en) Abnormality monitoring method, abnormality monitoring device, terminal device and computer-readable storage medium
CN110046032A (en) Applied program processing method and device, electronic equipment, computer readable storage medium
CN108668016B (en) Information processing method, device, mobile terminal and computer readable storage medium
CN110046033B (en) Application program processing method and device, electronic equipment and computer readable storage medium
CN108228357B (en) Memory cleaning method and mobile terminal
CN110018886B (en) Application state switching method and device, electronic equipment and readable storage medium
CN108287863B (en) Message record cleaning method and device
CN112612552A (en) Application program resource loading method and device, electronic equipment and readable storage medium
CN109388487B (en) Application program processing method and device, electronic equipment and computer readable storage medium
CN109375995B (en) Application freezing method and device, storage medium and electronic equipment
CN112997507B (en) Audio system control method, device, terminal and computer readable storage medium
CN109992376B (en) Application freezing method, device, 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
GR01 Patent grant
GR01 Patent grant