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, device and electronic device for filtering when application is frozen

技术领域technical field

本申请涉及电子设备技术领域,特别是涉及一种应用冻结时进行过滤的方法、装置及电子设备。The present application relates to the technical field of electronic equipment, in particular to a method, device and electronic equipment for filtering when an application is frozen.

背景技术Background technique

在电子设备使用过程中,人们经常会因为运行的应用过多而对应用进行统一清理。目前经常使用的清理方式有第三方应用清理、菜单键清理或采用冻结技术将应用冻结,经冻结后的应用不会占用内存空间,且不会运行。During the use of electronic devices, people often clean up the applications in a unified manner because there are too many running applications. Currently commonly used cleaning methods include third-party application cleaning, menu key cleaning, or freezing applications using freezing technology. After freezing, applications will not occupy memory space and will not run.

但在实际使用过程中,对正在进行大量数据传输的应用进行冻结会影响用户使用体验。若应用需要恢复数据传输,需要用户进行解冻,此操作会浪费用户的时间,且过程繁琐。However, in actual use, freezing an application that is transmitting a large amount of data will affect the user experience. If the application needs to resume data transmission, the user needs to unfreeze it. This operation will waste the user's time and the process is cumbersome.

发明内容Contents of the invention

有鉴于此,本申请公开一种应用冻结时进行过滤的方法、装置及电子设备,以实现在电子设备冻结时,冻结操作不会对正在进行大量数据传输的应用进行冻结而影响用户使用体验。In view of this, the present application discloses a method, device, and electronic device for filtering when an application is frozen, so that when the electronic device is frozen, the freezing operation will not freeze the application that is transmitting a large amount of data and affect user experience.

本申请实施例提供一种对应用进行过滤的方法,应用于电子设备,包括:An embodiment of the present application provides a method for filtering applications, which is applied to electronic devices, including:

监测目标应用,所述目标应用为所述电子设备中正在进行数据传输的应用;monitoring a target application, where the target application is an application in the electronic device that is transmitting data;

获取所述目标应用的识别信息;Acquiring identification information of the target application;

根据所述识别信息,判断是否需要在冻结操作时过滤所述目标应用;According to the identification information, determine whether to filter the target application during the freezing operation;

若需要,则过滤所述目标应用。The target application is filtered if necessary.

本申请实施例还提供一种对应用进行过滤装置,包括:The embodiment of the present application also provides a device for filtering applications, including:

应用监测模块,用于监测目标应用,所述目标应用为电子设备中正在进行数据传输的应用;An application monitoring module, configured to monitor a target application, where the target application is an application that is transmitting data in the electronic device;

数据获取模块,用于获取所述目标应用的识别信息;A data acquisition module, configured to acquire the identification information of the target application;

判断模块,用于根据所述识别信息,判断是否需要在冻结操作时过滤所述目标应用;A judging module, configured to judge whether the target application needs to be filtered during the freezing operation according to the identification information;

控制模块,用于过滤所述目标应用。A control module, configured to filter the target application.

本申请实施例还提供一种电子设备,包括存储器及处理器,所述存储器中储存有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器执行如上所述的应用冻结时进行过滤的步骤。An embodiment of the present application also provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor performs the above-mentioned application freezing filter steps.

本申请实施例还提供一种计算机非易失性可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如上所述的应用冻结时进行过滤的方法的步骤。The embodiment of the present application also provides a computer non-volatile readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above-mentioned method for filtering when the application is frozen are implemented.

从上述的技术方案可知,本申请公开了一种应用冻结时进行过滤的方法、装置及电子设备,通过过滤电子设备冻结时正在进行大量数据传输的应用,使用户不用通过解锁所述电子设备恢复应用的运行和数据传输。冻结操作不会对正在进行大量数据传输的应用进行冻结而影响用户使用体验。It can be seen from the above technical solution that this application discloses a method, device and electronic device for filtering when an application is frozen. By filtering the applications that are transmitting a large amount of data when the electronic device is frozen, the user does not need to unlock the electronic device to recover. Application operation and data transmission. The freezing operation will not freeze the application that is transferring a large amount of data and affect the user experience.

附图说明Description of drawings

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

图1为本申请实施例公开的一种对应用进行过滤的方法流程图;FIG. 1 is a flowchart of a method for filtering applications disclosed in an embodiment of the present application;

图2为本申请实施例公开的一种对应用进行过滤的方法流程图;FIG. 2 is a flow chart of a method for filtering applications disclosed in an embodiment of the present application;

图3为本申请实施例公开的一种对应用进行过滤的方法流程图;FIG. 3 is a flow chart of a method for filtering applications disclosed in an embodiment of the present application;

图4为本申请实施例公开的一种对应用进行过滤的方法流程图;FIG. 4 is a flowchart of a method for filtering applications disclosed in an embodiment of the present application;

图5为本申请实施例公开的一种对应用进行过滤的方法流程图;FIG. 5 is a flow chart of a method for filtering applications disclosed in an embodiment of the present application;

图6为本申请实施例公开的一种对应用进行过滤的装置结构示意图;FIG. 6 is a schematic structural diagram of a device for filtering applications disclosed in an embodiment of the present application;

图7为本申请实施例公开的一种电子设备的部分结构的框图。FIG. 7 is a block diagram of a partial structure of an electronic device disclosed in an embodiment of the present application.

具体实施方式Detailed ways

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the application with reference to the drawings in the embodiments of the application. Apparently, the described embodiments are only some of the embodiments of the application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.

本申请实施例公开了一种对应用进行过滤的方法、装置及电子设备,以实现在所述电子设备冻结时,冻结操作不会对正在进行大量数据传输的应用进行冻结而影响用户使用体验。The embodiment of the present application discloses a method, device and electronic device for filtering applications, so that when the electronic device is frozen, the freezing operation will not freeze the applications that are transmitting a large amount of data and affect user experience.

所述电子设备可以包括智能手机(如Android手机、IOS手机等)、个人电脑、平板电脑、掌上电脑、移动互联网设备(MID,Mobile Internet Devices)或穿戴式智能设备等互联网设备,本发明实施例不作限定。Described electronic device can comprise smart phone (such as Android mobile phone, IOS mobile phone etc.), personal computer, panel computer, palmtop computer, mobile Internet device (MID, Mobile Internet Devices) or Internet equipment such as wearable smart device, embodiment of the present invention Not limited.

参见图1,本申请一实施例公开的一种对应用进行过滤的方法流程图,该方法应用于电子设备,所述方法包括步骤:Referring to FIG. 1 , a flow chart of a method for filtering applications disclosed in an embodiment of the present application, the method is applied to electronic devices, and the method includes steps:

步骤S10、监测目标应用,所述目标应用为所述电子设备中正在进行数据传输的应用。Step S10 , monitor a target application, where the target application is an application in the electronic device that is transmitting data.

在实际使用中,所述目标应用即为应用程序。所述应用程序(Application,APP)是指所述电子设备中针对某种应用目的所撰写的软体,所述电子设备可以通过所述应用程序实现对用户的需求服务。所述应用程序的数据传输是指应用在运行过程中指示数据从一个地方传送到另一个地方的通信过程。In actual use, the target application is an application program. The application program (Application, APP) refers to software written in the electronic device for a certain application purpose, and the electronic device can realize the service required by the user through the application program. The data transmission of the application refers to a communication process in which the application instructs data to be transmitted from one place to another during the running process.

所述目标应用在数据传输的过程中,处理器会监测到所述目标应用的数据传输,由此,所述电子设备中的所述处理器可以监控并检测出所述目标应用。During the data transmission process of the target application, the processor will monitor the data transmission of the target application, so that the processor in the electronic device can monitor and detect the target application.

步骤S20、获取所述目标应用的识别信息;Step S20, acquiring the identification information of the target application;

具体的,识别信息具体指的是应用的身份信息、应用数据传输的信息和进程的识别信息。Specifically, the identification information specifically refers to application identity information, application data transmission information, and process identification information.

应用的身份信息值得是应用的应用号。在Android系统中,每个程序都有一个应用号,所述应用号即为应用程序的UID(User Identifier)。UID类似于身份证号码,一个应用程序只对应一个UID。The identity information value of the application is the application number of the application. In the Android system, each program has an application number, and the application number is the UID (User Identifier) of the application program. A UID is similar to an ID number, and an application corresponds to only one UID.

应用数据传输的信息指的是在应用的数据传输进程中,处理器会记录应用在一段时间内数据传输的数量,也就是传输了多少字节的数据。The application data transmission information means that during the data transmission process of the application, the processor will record the amount of data transmission by the application within a certain period of time, that is, how many bytes of data are transmitted.

应用的进程的识别信息,、一般地,应用程序的应用操作是由一个或多个进程(process)来共同完成,进程是是计算机中的程序关于某数据集合上的一次运行活动,是系统进行资源分配和调度的基本单位。The identification information of the application process, generally, the application operation of the application program is completed by one or more processes (process), and the process is a program in the computer. The basic unit of resource allocation and scheduling.

步骤S30、根据所述识别信息,判断是否需要在冻结操作时过滤所述目标应用;Step S30, according to the identification information, determine whether to filter the target application during the freezing operation;

本实施例中,所述识别信息指的是所述目标应用数据传输的信息,特别地,指的是所述目标应用数据传输速率。数据传输速率指单位时间内信道上所能传输的数据量,在数值上等于每秒钟传输构成数据代码的比特数。In this embodiment, the identification information refers to the data transmission information of the target application, in particular, refers to the data transmission rate of the target application. The data transmission rate refers to the amount of data that can be transmitted on the channel per unit time, which is numerically equal to the number of bits that constitute the data code transmitted per second.

所述判断是否需要在冻结操作时过滤所述目标应用,具体地,为判断当前时刻所述目标应用数据传输速率是否超过设定的数据传输速率。若超过,即判断所述目标应用正在进行大量数据传输,则,在冻结操作时对所述目标应用进行过滤。The judging whether to filter the target application during the freezing operation is specifically judging whether the data transmission rate of the target application exceeds a set data transmission rate at the current moment. If it exceeds, that is, it is judged that the target application is transmitting a large amount of data, then the target application is filtered during the freezing operation.

所述过滤所述目标应用指的是在所述冻结操作中,所述电子设备根据所述目标应用的进程的识别信息,对获得的进程不执行冻结操作。The filtering of the target application means that in the freezing operation, the electronic device does not perform the freezing operation on the obtained process according to the process identification information of the target application.

步骤S40、若需要,则过滤所述目标应用。Step S40, if necessary, filter the target application.

本实施例中,所述需要过滤所述目标应用指的是经判断后所述目标应用正在进行大量数据传输,在冻结操作中需过滤正在进行大量数据传输的所述目标应用。In this embodiment, the need to filter the target application means that after it is determined that the target application is transmitting a large amount of data, the target application that is transmitting a large amount of data needs to be filtered during the freezing operation.

所述过滤所述目标应用指的是在所述电子设备冻结操作中不对所述目标应用进行冻结操作,使所述目标应用保持运行状态,即所述目标应用仍然进行大量数据传输。所述过滤所述目标应用是指根据所述目标应用的UID和所述目标应用的进程的识别信息,对所述目标应用的所有进程进行过滤。The filtering of the target application refers to not freezing the target application during the freezing operation of the electronic device, and keeping the target application running, that is, the target application still transmits a large amount of data. The filtering of the target application refers to filtering all processes of the target application according to the UID of the target application and the identification information of the process of the target application.

综上,本申请公开的对应用进行过滤的方法,通过监测所述电子设备中正在进行数据传输的应用,初步获得所述电子设备冻结操作中应过滤的应用,即目标应用。通过获取所述目标应用的识别信息,获得所述目标应用的UID、数据传输的信息和进程的识别信息。所述数据传输的信息包括所述目标应用的数据传输速率。根据所述目标应用的数据传输速率,判断是否需要在冻结操作时过滤所述目标应用。若需要,则根据所述目标应用的UID和所述目标应用的进程的识别信息对所述目标应用的所有进程进行过滤。To sum up, the method for filtering applications disclosed in this application initially obtains the applications that should be filtered during the freezing operation of the electronic device, that is, the target application, by monitoring the applications that are transmitting data in the electronic device. By acquiring the identification information of the target application, the UID of the target application, the information of data transmission and the identification information of the process are obtained. The data transmission information includes the data transmission rate of the target application. According to the data transmission rate of the target application, it is judged whether to filter the target application during the freezing operation. If necessary, all processes of the target application are filtered according to the UID of the target application and the identification information of the process of the target application.

因此,本申请实现了在进行大量数据传输的应用在所述电子设备冻结后仍保持运行状态,舍去了用户进行应用解冻的程序,节省了用户的时间,提高了用户的使用体验度。Therefore, the application realizes that the application that transmits a large amount of data remains in the running state after the electronic device is frozen, and the program for the user to unfreeze the application is omitted, which saves the user's time and improves the user experience.

上述实施例中,当所述根据所述识别信息,判断是否需要在冻结操作是过滤目标应用后,所述方法还包括步骤S50:In the above embodiment, when it is determined according to the identification information whether the target application needs to be filtered during the freezing operation, the method further includes step S50:

若不需要过滤所述目标应用,则在冻结操作时冻结所述目标应用。If the target application does not need to be filtered, the target application is frozen during the freezing operation.

本实施例可以参见图1,基于对所述目标应用的数据传输速率的判断,若所述目标应用的数据传输速率不超过限速率,则可以在冻结操作时对所述目标应用的所有进程进行冻结。但,本实施例在所述目标应用的数据传输速率不超过限速率的结果后,仍需判断是否需对所述目标应用进行冻结,即对所述目标应用传输数据的大小进行判断。所述目标应用传输数据的大小若超过预设的数据传输阈值,则,在所述电子设备冻结过程中需对所述目标应用进行过滤。This embodiment can refer to FIG. 1. Based on the judgment of the data transmission rate of the target application, if the data transmission rate of the target application does not exceed the limit rate, all processes of the target application can be frozen during the freezing operation. freeze. However, in this embodiment, after the data transmission rate of the target application does not exceed the rate limit, it is still necessary to determine whether to freeze the target application, that is, to determine the size of the data transmitted by the target application. If the size of the data transmitted by the target application exceeds a preset data transmission threshold, the target application needs to be filtered during the freezing process of the electronic device.

参见图2,上述实施例中,所述步骤S30包括:Referring to Fig. 2, in the above embodiment, the step S30 includes:

S310,判断所述目标应用的数据传输速率是否超过限速率;S310, judging whether the data transmission rate of the target application exceeds the rate limit;

S320,若超过数据传输的限速率,则判断需要过滤所述目标应用。S320. If the rate limit of data transmission is exceeded, it is determined that the target application needs to be filtered.

本实施例中,所述限速率指的是10KB/S。当前时刻,若所述目标应用的数据传输速率若超过10KB/S,则定义所述目标应用正在进行大量数据传输,即,判断在所述电子设备冻结时需要过滤所述目标应用。In this embodiment, the rate limit refers to 10KB/S. At the current moment, if the data transmission rate of the target application exceeds 10 KB/S, it is defined that the target application is transmitting a large amount of data, that is, it is determined that the target application needs to be filtered when the electronic device freezes.

本申请一实施例中,所述步骤S320之后包括:In an embodiment of the present application, after the step S320 includes:

S321,判断所述目标应用传输数据的大小是否超过预设数据传输阈值;S321. Determine whether the size of the data transmitted by the target application exceeds a preset data transmission threshold;

S322,若超过所述预设数据传输阈值,对所述目标应用进行过滤操作。S322. If the preset data transmission threshold is exceeded, perform a filtering operation on the target application.

本实施例中,所述电子设备可以获取所述目标应用传输数据的大小,并将所述目标应用传输数据的大小与所述预设数据传输阈值进行比较分析,统计得到传输数据的大小超过预设数据传输阈值的应用,记为第一目标应用。在所述电子设备的冻结操作中,对所述第一目标应用进行优先过滤。对于统计得到传输数据的大小不超过预设数据传输阈值的应用,记为第二目标应用。在所述电子设备的冻结操作中,先对所述第一目标应用进行过滤,再对所述第二目标应用进行过滤。In this embodiment, the electronic device may obtain the size of the data transmitted by the target application, compare and analyze the size of the data transmitted by the target application with the preset data transmission threshold, and obtain the statistics that the size of the transmitted data exceeds the preset threshold. The application whose data transmission threshold is set is recorded as the first target application. During the freezing operation of the electronic device, priority filtering is performed on the first target application. An application whose statistically obtained size of transmitted data does not exceed the preset data transmission threshold is recorded as the second target application. In the freezing operation of the electronic device, the first target application is filtered first, and then the second target application is filtered.

参见图3,本申请一实施例中,所述步骤S30还包括:Referring to FIG. 3, in an embodiment of the present application, the step S30 further includes:

S330,若不超过数据传输的限速率,则判断所述目标应用传输数据的大小是否超过所述预设数据传输阈值;S330. If the data transmission rate limit is not exceeded, determine whether the size of the data transmitted by the target application exceeds the preset data transmission threshold;

S340,若超过所述预设数据传输阈值,对所述目标应用进行过滤操作;S340, if the preset data transmission threshold is exceeded, perform a filtering operation on the target application;

S350,若不超过所述预设数据传输阈值,则在冻结操作时冻结所述目标应用。S350. If the preset data transmission threshold is not exceeded, freeze the target application during a freezing operation.

本实施例中,所述目标应用数据传输的速率不超过限速率,即,不超过10KB/S。此时所述电子设备需将所述目标应用传输数据的大小与所述预设数据传输阈值进行比较分析,统计得到传输数据的大小超过预设数据传输阈值的应用,记为第三目标应用。在所述电子设备的冻结操作中,对所述第一目标应用进行优先过滤,再对所述第二目标应用进行过滤,最后对所述第三目标应用进行过滤。In this embodiment, the data transmission rate of the target application does not exceed the limit rate, that is, does not exceed 10 KB/S. At this time, the electronic device needs to compare and analyze the size of the data transmitted by the target application with the preset data transmission threshold, and count the applications whose size of the transmitted data exceeds the preset data transmission threshold as the third target application. In the freezing operation of the electronic device, the first target application is preferentially filtered, then the second target application is filtered, and finally the third target application is filtered.

若经所述电子设备比较分析后,所述目标应用的传输数据的大小不超过所述预设数据传输阈值,则在冻结操作时不进行过滤,即,冻结所述目标应用。If the size of the transmitted data of the target application does not exceed the preset data transmission threshold after comparison and analysis by the electronic device, no filtering is performed during the freezing operation, that is, the target application is frozen.

参见图4,本申请一实施例中,所述步骤S10之前,所述方法包括:Referring to FIG. 4, in an embodiment of the present application, before the step S10, the method includes:

S01,判断所述电子设备是否满足冻结触发条件;S01, judging whether the electronic device meets a freezing trigger condition;

S02,若满足,监测所述目标应用;S02, if satisfied, monitor the target application;

S03,若不满足,不监测所述目标应用。S03. If not satisfied, do not monitor the target application.

本实施例中,所述冻结触发条件包括所述电子设备处于灭屏状态,但不限于所述电子设备中可处于灭屏状态。可以理解的是,所述电子设备也可以处于其他状态,只要所述电子设备进行了冻结操作即可。若所述电子设备处于灭屏状态,则,所述电子设备可监测正在进行数据传输的应用。若所述电子设备不处于灭屏状态,则,所述电子设备不对正在进行数据传输的应用进行监测。In this embodiment, the freezing trigger 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 can be understood that the electronic device may also be in other states, as long as the electronic device performs a freezing operation. If the electronic device is in a screen-off state, the electronic device can monitor applications that are transmitting data. If the electronic device is not in the off-screen state, the electronic device does not monitor the application that is transmitting data.

参见图5,本申请一实施例中,所述步骤S20包括:Referring to FIG. 5, in an embodiment of the present application, the step S20 includes:

S210,获取所述目标应用的应用号UID。S210. Obtain the UID of the target application.

可以理解的是,因为Andriod系统为单用户系统,为了实现数据共享,Android系统为每个应用都分配了不同的应用号UID。例如,设目标应用为所述电子设备中当前处于运行状态的应用A,同时所述目标应用对应的应用号UID为2,则此时获取到的所述目标应用A的应用号UID为2。It is understandable that because the Android system is a single-user system, in order to realize data sharing, the Android system assigns different application IDs to each application. For example, if the target application is application A currently running in the electronic device, and the UID corresponding to the target application is 2, then the obtained UID of the target application A is 2.

所述目标应用的应用号UID实质上是所述目标应用在所述系统中的身份识别信息,事实上,只要能对所述目标应用进行标识均在本申请的保护范围内,并不只限于常用的应用号UID。The application number UID of the target application is essentially the identification information of the target application in the system. In fact, as long as the target application can be identified, it is within the protection scope of this application, and it is not limited to commonly used The application ID UID.

S220,获取所述应用号UID下的各进程号PID。S220. Obtain PIDs of each process ID under the application ID UID.

可以理解的是,一个应用程序由多个进程组成,其中每个进程都有各自对应的进程号PID。例如,设所述目标应用A的应用号为2,所述目标应用A对应的进程为a1、a2、a3、a4,且进程a1、a2、a3、a4对应的进程号PID分别为11、12、13、14,则此时获取到的应用号为2下的各进程a1、a2、a3、a4对应的进程号PID分别为11、12、13、14。It can be understood that an application program is composed of multiple processes, and each process has its own corresponding process number PID. For example, suppose the application number of the target application A is 2, the processes corresponding to the target application A are a1, a2, a3, a4, and the process numbers PIDs corresponding to the processes a1, a2, a3, a4 are 11, 12 respectively , 13, and 14, then the PIDs corresponding to the process numbers of the processes a1, a2, a3, and a4 obtained at this time under the application number 2 are 11, 12, 13, and 14, respectively.

所述进程号PID实质上是各进程在所述目标应用下的身份标识。事实上,只要能对进程进行标识均在本发明的保护范围内,并不只限于常用的进程号PID。The process ID PID is essentially the identity of each process under the target application. In fact, as long as the process can be identified, it is within the protection scope of the present invention, and it is not limited to the commonly used process number PID.

S230,获取所述各进程号PID对应进程下的记录文件。S230. Acquire record files under the processes corresponding to the PIDs of the respective process numbers.

可以理解的是,一个进程下的进程记录文件里包含了通过该进程启动的所有进程的进程识别信息。例如,设所述目标应用A的应用号为2,对应的进程号为11、12、13、14,则各进程号对应的进程记录文件分别为a11.procs、a12.procs、a13.procs、a14.procs。It can be understood that the process record file under a process includes 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, then the process record files corresponding to each process number are a11.procs, a12.procs, a13.procs, a14.procs.

在Andriod系统中,常见的进程记录文件为cgroups.procs。在IOS系统和其他系统中,需要看通过该进程启动的所有进程的进程识别信息具体存放的位置。事实上,在其他任何系统中,只要该进程记录文件里记录了通过该进程启动的所有进程的进程识别信息均在本发明的保护范围内,并不只限于常用的进程记录文件。In the Andriod system, the common process record file is cgroups.procs. In the IOS system and other systems, it is necessary to look at the specific storage locations of the process identification information of all processes started by the process. In fact, in any other system, as long as the process record file records the process identification information of all processes started by the process, it is within the protection scope of the present invention, and is not limited to common process record files.

S240,根据所述记录文件获取所述目标应用的所有进程的识别信息。S240. Obtain identification information of all processes of the target application according to the record file.

可以理解的是,本实施例中的进程的识别信息可以包含进程号、进程名、进程状态、进程优先级、进程已占用CPU时间等。应当明确的是,这里所列举的只是几种常见的进程识别信息,并不代表进程识别信息必须包含或只包含上述几种信息,可以根据具体应用场景灵活设定。It can be understood that, the process identification information in this embodiment may include a process number, a process name, a process status, a process priority, and CPU time occupied by a process, and the like. It should be clear that what is listed here are only several common process identification information, which does not mean that the process identification information must contain or only contain the above information, and can be flexibly set according to specific application scenarios.

参见图6,本申请公开了一种对应用进行过滤的装置,包括:Referring to Fig. 6, the present application discloses a device for filtering applications, including:

应用监测模块21,用于监测目标应用,所述目标应用为电子设备中正在进行数据传输的应用。The application monitoring module 21 is configured to monitor a target application, where the target application is an application that is transmitting data in the electronic device.

所述目标应用在数据传输的过程中,所述应用监测模块21可以监测到正在进行传输的应用程序。During the data transmission process of the target application, the application monitoring module 21 can monitor the application program being transmitted.

数据获取模块22,用于获取目标应用的识别信息。The data acquisition module 22 is configured to acquire identification information of the target application.

所述数据获取模块22可以获取所述目标应用的应用号UID、所述应用号UID下的各进程号PID、所述各进程号PID对应进程下的记录文件、根据所述记录文件获取的所述目标应用的所有进程的识别信息。所述所有进程的识别信息包括所述目标应用的数据传输速率和传输数据的大小。The data acquisition module 22 can acquire the application number UID of the target application, each process number PID under the application number UID, the record file under the process corresponding to each process number PID, and all the processes obtained according to the record file. Identifying information for all processes of the target application. The identification information of all the processes includes the data transmission rate and the size of the transmission data of the target application.

判断模块23,用于根据所述识别信息,判断是否需要在冻结操作时过滤所述目标应用。The judging module 23 is configured to judge whether to filter the target application during the freezing operation according to the identification information.

所述判断模块23根据所述目标应用的数据传输速率确定是否需要在冻结操作时过滤所述目标应用。若所述目标应用的数据传输速率超过限速率,则,所述判断模块23判断需要在冻结操作时过滤所述目标应用。所述限速率为10KB/S。The judging module 23 determines whether to filter the target application during the freezing operation according to the data transmission rate of the target application. If the data transmission rate of the target application exceeds the rate limit, the judging module 23 judges that the target application needs to be filtered during the freezing operation. The rate limit is 10KB/S.

进一步地,所述判断模块23对所述目标应用传输数据的大小与预设的数据传输阈值进行对比分析。若所述目标应用传输数据的大小超过预设的数据传输阈值,且,所述目标应用的数据传输速率超过限速率,则,将所述目标应用记为第一目标应用。若所述目标应用传输数据的大小不超过预设的数据传输阈值,但,所述目标应用的数据传输速率超过限速率,则,将所述目标应用记为第二目标应用。若所述目标应用传输数据的大小超过预设的数据传输阈值,但,所述目标应用的数据传输速率不超过限速率,则,将所述目标应用即为第三目标应用。Further, the judging module 23 compares and analyzes the size of the data transmitted by the target application and a preset data transmission threshold. If the size of the data transmitted by the target application exceeds the preset data transmission threshold, and the data transmission rate of the target application exceeds the rate limit, then the target application is recorded as the first target application. If the size of the data transmitted by the target application does not exceed the preset data transmission threshold, but the data transmission rate of the target application exceeds the rate limit, then record the target application as the second target application. If the size of the data transmitted by the target application exceeds the preset data transmission threshold, but the data transmission rate of the target application does not exceed the limit rate, then the target application is regarded as the third target application.

控制模块24,用于过滤所述目标应用。The control module 24 is configured to filter the target application.

所述控制模块24可根据所述目标应用的识别信息对所述目标应用的所有进程进行过滤。在进行所述目标应用的过滤操作中,优先对所述第一目标应用进行过滤,对所述第一目标应用过滤完成后,再对所述第二目标应用进行过滤。对所述第二目标应用过滤完成后,再对所述第三目标应用进行过滤。The control module 24 may filter all processes of the target application according to the identification information of the target application. During the filtering operation of the target application, the first target application is preferentially filtered, and after the filtering of the first target application is completed, the second target application is then filtered. After the filtering of the second target application is completed, the third target application is filtered.

在本申请一个实施例中,所述控制模块24还用于在冻结操作时冻结所述目标应用。In an embodiment of the present application, the control module 24 is further configured to freeze the target application during the freezing operation.

若所述目标应用的所述数据传输速率不超过限速率且所述传输数据的大小不超过预设数据传输阈值,则,由所述控制模块24对所述目标应用的所有进程的识别信息进行冻结。If the data transmission rate of the target application does not exceed the rate limit and the size of the transmitted data does not exceed the preset data transmission threshold, then the control module 24 performs a process on the identification information of all processes of the target application. freeze.

在本申请一个实施例中,所述判断是否需要在冻结操作时过滤所述目标应用包括:In an embodiment of the present application, the judging whether to filter the target application during freezing operation includes:

判断所述目标应用的数据传输速率是否超过限速率。It is judged whether the data transmission rate of the target application exceeds the limit rate.

若超过数据传输的限速率,则判断需要过滤所述目标应用。If the rate limit of data transmission is exceeded, it is determined that the target application needs to be filtered.

本实施例中,所述限速率为10KB/S。所述目标应用的数据传输速率若超过10KB/S,则判断需要过滤所述目标应用。In this embodiment, the rate limit is 10KB/S. If the data transmission rate of the target application exceeds 10 KB/S, it is determined that the target application needs to be filtered.

在本申请一个实施例中,所述若超过数据传输的限速率,则判断需要过滤所述目标应用之后,所述判断模块23还用于:In an embodiment of the present application, after it is judged that the target application needs to be filtered if the rate limit of data transmission is exceeded, the judging module 23 is further configured to:

判断所述目标应用传输数据的大小是否超过预设数据传输阈值;judging whether the size of the data transmitted by the target application exceeds a preset data transmission threshold;

若超过所述预设数据传输阈值,对所述目标应用进行过滤操作。If the preset data transmission threshold is exceeded, a filtering operation is performed on the target application.

本实施例中,所述目标应用的数据传输速率超过限速率,所述传输数据的大小超过所述预设数据传输阈值,即所述目标应用为所述第一目标应用。In this embodiment, the data transmission rate of the target application exceeds the rate limit, and the size of the transmitted data exceeds the preset data transmission threshold, that is, the target application is the first target application.

若所述传输数据的大小不超过所述预设数据传输阈值,记所述目标应用为所述第二目标应用。If the size of the transmitted data does not exceed the preset data transmission threshold, record the target application as the second target application.

在本申请一个实施例中,所述判断模块23判断是否需要在冻结操作时过滤所述目标应用,包括:In an embodiment of the present application, the judging module 23 judges whether to filter the target application during the freezing operation, including:

若不超过数据传输的限速率,则判断所述目标应用传输数据的大小是否超过所述预设数据传输阈值。If the limit rate of data transmission is not exceeded, it is judged whether the size of the data transmitted by the target application exceeds the preset data transmission threshold.

若超过所述预设数据传输阈值,对所述目标应用进行过滤操作。If the preset data transmission threshold is exceeded, a filtering operation is performed on the target application.

本实施例中,所述目标应用的所述数据传输速率不超过限速率,所述目标应用的所述传输数据速度的大小不超过所述预设数据传输阈值,即所述目标应用为所述第三目标应用。In this embodiment, the data transmission rate of the target application does not exceed the limit rate, and the transmission data rate of the target application does not exceed the preset data transmission threshold, that is, the target application is the Third target application.

若不超过所述预设数据传输阈值,则在冻结操作时冻结所述目标应用。If the preset data transmission threshold is not exceeded, the target application is frozen during the freezing operation.

在本实施例中,所述目标应用在进行冻结操作过程中,优先对所述第一目标应用进行过滤,对所述第一目标应用过滤完成后,再对所述第二目标应用进行过滤。对所述第二目标应用过滤完成后,再对所述第三目标应用进行过滤。若所述目标应用的所述数据传输速率不超过所述限速率,且所述目标应用传输数据的大小不超过所述预设数据传输阈值,则,冻结所述目标应用的所有进程。In this embodiment, during the freezing operation of the target application, the first target application is preferentially filtered, and after the filtering of the first target application is completed, the second target application is then filtered. After the filtering of the second target application is completed, the third target application is filtered. If the data transmission rate of the target application does not exceed the limit rate, and the size of data transmitted by the target application does not exceed the preset data transmission threshold, then freeze all processes of the target application.

在本申请一个实施例中,所述应用监测模块还用于:判断所述电子设备是否满足冻结触发条件;In an embodiment of the present application, the application monitoring module is further configured to: determine whether the electronic device meets a freezing trigger condition;

若满足,监测所述目标应用;If satisfied, monitoring the target application;

若不满足,不监测所述目标应用。If not satisfied, the target application is not monitored.

所述冻结触发条件包括:The freezing trigger conditions include:

所述装置处于灭屏状态。The device is off.

本实施例中,所述冻结触发条件包括所述电子设备处于灭屏状态,但不限于所述电子设备中可处于灭屏状态。可以理解的是,所述电子设备也可以处于其他状态,只要所述电子设备进行了冻结操作即可。若所述电子设备处于灭屏状态,则,所述电子设备可监测正在进行数据传输的应用。若所述电子设备不处于灭屏状态,则,所述电子设备不对正在进行数据传输的应用进行监测。In this embodiment, the freezing trigger 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 can be understood that the electronic device may also be in other states, as long as the electronic device performs a freezing operation. If the electronic device is in a screen-off state, the electronic device can monitor applications that are transmitting data. If the electronic device is not in the off-screen state, the electronic device does not monitor the application that is transmitting data.

在本申请一个实施例中,所述数据获取模块获取所述目标应用的识别信息,包括:In an embodiment of the present application, the data acquisition module acquires the identification information of the target application, including:

获取所述目标应用的应用号UID。Obtain the application ID UID of the target application.

本实施例中,所述目标应用的应用好UID实质上是所述目标应用在所述系统中的身份识别信息。可以理解的是,因为Andriod系统为单用户系统,为了实现数据共享,Android系统为每个应用都分配了不同的应用号UID。例如,设目标应用为所述电子设备中当前处于运行状态的应用A,同时所述目标应用对应的应用号UID为2,则此时获取到的所述目标应用A的应用号UID为2。In this embodiment, the application UID of the target application is essentially the identification information of the target application in the system. It is understandable that because the Android system is a single-user system, in order to realize data sharing, the Android system assigns different application IDs to each application. For example, if the target application is application A currently running in the electronic device, and the UID corresponding to the target application is 2, then the obtained UID of the target application A is 2.

事实上,只要能对所述目标应用进行标识均在本申请的保护范围内,并不只限于常用的应用号UID。In fact, as long as the target application can be identified, it is within the protection scope of the present application, and it is not limited to the commonly used application number UID.

获取所述应用号UID下的各进程号PID。Obtain the PIDs of each process number under the application number UID.

可以理解的是,一个应用程序由多个进程组成,其中每个进程都有各自对应的进程号PID。例如,设所述目标应用A的应用号为2,所述目标应用A对应的进程为a1、a2、a3、a4,且进程a1、a2、a3、a4对应的进程号PID分别为11、12、13、14,则此时获取到的应用号为2下的各进程a1、a2、a3、a4对应的进程号PID分别为11、12、13、14。It can be understood that an application program is composed of multiple processes, and each process has its own corresponding process number PID. For example, suppose the application number of the target application A is 2, the processes corresponding to the target application A are a1, a2, a3, a4, and the process numbers PIDs corresponding to the processes a1, a2, a3, a4 are 11, 12 respectively , 13, and 14, then the PIDs corresponding to the process numbers of the processes a1, a2, a3, and a4 obtained at this time under the application number 2 are 11, 12, 13, and 14, respectively.

所述进程号PID实质上是各进程在所述目标应用下的身份标识。事实上,只要能对进程进行标识均在本发明的保护范围内,并不只限于常用的进程号PID。The process ID PID is essentially the identity of each process under the target application. In fact, as long as the process can be identified, it is within the protection scope of the present invention, and it is not limited to the commonly used process number PID.

获取所述各进程号PID对应进程下的记录文件。Obtain the record files under the processes corresponding to the PIDs of the respective process numbers.

可以理解的是,一个进程下的进程记录文件里包含了通过该进程启动的所有进程的进程识别信息。例如,设所述目标应用A的应用号为2,对应的进程号为11、12、13、14,则各进程号对应的进程记录文件分别为a11.procs、a12.procs、a13.procs、a14.procs。It can be understood that the process record file under a process includes 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, then the process record files corresponding to each process number are a11.procs, a12.procs, a13.procs, a14.procs.

在Andriod系统中,常见的进程记录文件为cgroups.procs。在IOS系统和其他系统中,需要看通过该进程启动的所有进程的进程识别信息具体存放的位置。事实上,在其他任何系统中,只要该进程记录文件里记录了通过该进程启动的所有进程的进程识别信息均在本发明的保护范围内,并不只限于常用的进程记录文件。In the Andriod system, the common process record file is cgroups.procs. In the IOS system and other systems, it is necessary to look at the specific storage locations of the process identification information of all processes started by the process. In fact, in any other system, as long as the process record file records the process identification information of all processes started by the process, it is within the protection scope of the present invention, and is not limited to common process record files.

根据所述记录文件获取所述目标应用的所有进程的识别信息。Acquiring identification information of all processes of the target application according to the record file.

可以理解的是,本实施例中的进程的识别信息可以包含进程号、进程名、进程状态、进程优先级、进程已占用CPU时间等。应当明确的是,这里所列举的只是几种常见的进程识别信息,并不代表进程识别信息必须包含或只包含上述几种信息,可以根据具体应用场景灵活设定。It can be understood that, the process identification information in this embodiment may include a process number, a process name, a process status, a process priority, and CPU time occupied by a process, and the like. It should be clear that what is listed here are only several common process identification information, which does not mean that the process identification information must contain or only contain the above information, and can be flexibly set according to specific application scenarios.

本申请实施例还提供了一种电子设备,包括存储器702及处理器780,所述存储器702中储存有计算机程序。所述计算机程序被所述处理器780执行时,使得所述处理器780执行如上所述的应用冻结时进行过滤的步骤。为了便于说明,仅示出了与本申请实施例相关的部分,具体技术细节未揭示的,请参照本申请实施例方法部分。该电子设备可以为包括手机、平板电脑、PDA(Personal Digital Assistant,个人数字助理)、POS(Point of Sales,销售终端)、车载电脑、穿戴式设备等任意终端设备,以电子设备为手机为例:The embodiment of the present application also provides an electronic device, including a memory 702 and a processor 780, and the memory 702 stores computer programs. When the computer program is executed by the processor 780, the processor 780 executes the above-mentioned step of filtering when the application is frozen. For ease of description, only the parts related to the embodiments of the present application are shown, and for specific technical details not disclosed, please refer to the method part of the embodiments of the present application. The electronic device can be any terminal device including mobile phone, tablet computer, PDA (Personal Digital Assistant, personal digital assistant), POS (Point of Sales, sales terminal), vehicle-mounted computer, wearable device, etc., taking the electronic device as a mobile phone as an example :

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

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

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

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

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

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

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

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

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

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

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

在本申请实施例中,该电子设备所包括的处理器780执行存储在存储器上的计算机程序时实现上述实施例提供的进程处理方法的步骤。In the embodiment of the present application, when the processor 780 included in the electronic device executes the computer program stored in the memory, the steps of the process processing method provided in the foregoing embodiments are implemented.

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

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

Claims (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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115756618A (en) * 2022-11-16 2023-03-07 珠海豹趣科技有限公司 Process identification method and device

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 method and related products
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 method and related products
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
WO2020093297A1 (en) 2020-05-14
CN112714907A (en) 2021-04-27

Similar Documents

Publication Publication Date Title
CN112703714B (en) Application processing method and device, computer equipment and computer readable storage medium
CN109445917B (en) Application processing method and apparatus, electronic device, computer-readable storage medium
CN108541013B (en) Information processing method, device, mobile terminal, and computer-readable storage medium
CN106484562A (en) A data transmission processing method and terminal equipment
CN107544842A (en) Application program processing method and device, computer equipment, storage medium
CN113039516B (en) Method and device for processing application program and electronic equipment
CN107801201A (en) Network recovery method and device
CN107567080A (en) Method for reducing power consumption and terminal equipment
CN104423996A (en) View refreshing method and view refreshing device
CN110032266B (en) Information processing method, apparatus, computer device, and computer-readable storage medium
CN111078523B (en) Log acquisition method and device, storage medium and electronic equipment
CN106302603A (en) The method and apparatus remotely deleting information
CN110413497A (en) Abnormal monitoring method, device, terminal device and computer-readable storage medium
CN107807820A (en) Information processing method, device, mobile terminal and readable storage medium
CN108334345A (en) Applied program processing method, device, readable storage medium storing program for executing and mobile terminal
CN110018886A (en) Application state switching method and apparatus, electronic equipment, readable storage medium storing program for executing
CN109992376B (en) Application freezing method, device, terminal and computer-readable storage medium
CN107066374B (en) A data processing method and mobile terminal
CN110046032A (en) Application program processing method and device, electronic equipment and computer readable storage medium
CN107659718A (en) Control method, apparatus, mobile terminal and the storage medium of mobile terminal
CN107623612A (en) Traffic display method and device, computer equipment, and computer-readable storage medium
CN107872367B (en) Black screen detection method, mobile terminal and computer readable storage medium
CN108668016B (en) Information processing method, device, mobile terminal and computer readable storage medium
CN110032430B (en) Application program processing method and device, electronic equipment and computer readable storage medium
CN112714907B (en) Method and device for filtering during application freezing and electronic equipment

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