







技术领域technical field
本申请涉及终端技术领域,特别是涉及一种应用处理方法、装置、电子设备、计算机可读存储介质。The present application relates to the field of terminal technologies, and in particular, to an application processing method, apparatus, electronic device, and computer-readable storage medium.
背景技术Background technique
在电子设备上通常安装有很多不同的应用,在电子设备的运行过程中,应用被开启之后用户需要对应用进行冻结操作时,通常是直接将其进行冻结。这种直接进行冻结的方式可以很好的实现对应用的冻结,然而在实际应用中,当直接将应用进行冻结时,电子设备存在运行异常的情况,比如会导致电子设备的系统出现死锁或者其他不可预知的后果。There are usually many different applications installed on the electronic device. During the operation of the electronic device, when the user needs to freeze the application after the application is opened, the application is usually frozen directly. This direct freezing method can well realize the freezing of the application. However, in practical applications, when the application is directly frozen, the electronic device may run abnormally, for example, the system of the electronic device may be deadlocked or other unpredictable consequences.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供一种应用处理方法、装置、电子设备、计算机可读存储介质,可以确保对应用完成冻结操作后,不影响电子设备的正常运行,提高冻结机制的稳定性。Embodiments of the present application provide an application processing method, apparatus, electronic device, and computer-readable storage medium, which can ensure that after the application is frozen, the normal operation of the electronic device is not affected, and the stability of the freezing mechanism is improved.
一种应用处理方法,所述方法包括:An application processing method, the method comprising:
当检测到应用冻结指令时,获取待冻结应用;When an application freezing instruction is detected, obtain the application to be frozen;
判断所述待冻结应用是否处于同步binder通信状态;Determine whether the application to be frozen is in a synchronous binder communication state;
当判断所述待冻结应用处于所述同步binder通信状态时,控制所述待冻结应用不响应所述应用冻结指令。When it is determined that the application to be frozen is in the synchronous binder communication state, the application to be frozen is controlled not to respond to the application freezing instruction.
一种应用处理装置,所述装置包括:An application processing device, the device comprising:
获取模块,用于当检测到应用冻结指令时,获取待冻结应用;The acquisition module is used to acquire the application to be frozen when the application freezing instruction is detected;
判断模块,用于判断所述待冻结应用是否处于同步binder通信状态;A judgment module for judging whether the application to be frozen is in a synchronous binder communication state;
响应模块,用于当判断所述待冻结应用处于同步binder通信状态时,控制所述待冻结应用不执行所述应用冻结指令。A response module, configured to control the application to be frozen not to execute the application freezing instruction when it is determined that the application to be frozen is in a synchronous binder communication state.
一种电子设备,包括存储器及处理器,所述存储器中储存有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器执行如下步骤:An electronic device includes a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the following steps:
当检测到应用冻结指令时,获取待冻结应用;When an application freezing instruction is detected, obtain the application to be frozen;
判断所述待冻结应用是否处于同步binder通信状态;Determine whether the application to be frozen is in a synchronous binder communication state;
当判断所述待冻结应用处于所述同步binder通信状态时,控制所述待冻结应用不响应所述应用冻结指令。When it is determined that the application to be frozen is in the synchronous binder communication state, the application to be frozen is controlled not to respond to the application freezing instruction.
一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如下步骤:A computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
当检测到应用冻结指令时,获取待冻结应用;When an application freezing instruction is detected, obtain the application to be frozen;
判断所述待冻结应用是否处于同步binder通信状态;Determine whether the application to be frozen is in a synchronous binder communication state;
当判断所述待冻结应用处于所述同步binder通信状态时,控制所述待冻结应用不响应所述应用冻结指令。When it is determined that the application to be frozen is in the synchronous binder communication state, the application to be frozen is controlled not to respond to the application freezing instruction.
上述应用处理方法和装置、电子设备、计算机可读存储介质,在检测到应用冻结指令时,首先获取并识别需要进行冻结的待冻结应用,然后通过判断待冻结应用的状态信息是否为同步binder通信状态,以确定是否控制待冻结应用响应所接收到的应用冻结指令,最后在判断确定待冻结应用的状态为同步binder通信状态时,将会不响应所接收到的应用冻结指令。实现了在电子设备的运行过程中,避免了将处于同步binder通信状态的应用进行冻结,保证电子设备的正常运行,提高了冻结机制的稳定性。The above-mentioned application processing method and device, electronic device, and computer-readable storage medium, when an application freezing instruction is detected, first obtain and identify the application to be frozen that needs to be frozen, and then determine whether the status information of the application to be frozen is synchronous binder communication state to determine whether to control the application to be frozen in response to the received application freezing instruction, and finally, when it is determined that the state of the application to be frozen is the synchronous binder communication state, it will not respond to the received application freezing instruction. It is realized that the application in the synchronous binder communication state is prevented from being frozen during the operation of the electronic device, the normal operation of the electronic device is ensured, and the stability of the freezing mechanism is improved.
附图说明Description of drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the accompanying drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are only These are some embodiments of the present application. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings without any creative effort.
图1为一个实施例中应用处理方法的应用环境图;1 is an application environment diagram of an application processing method in one embodiment;
图2为一个实施例中应用处理方法的流程示意图;2 is a schematic flowchart of an application processing method in one embodiment;
图3为一个实施例中步骤判断待冻结应用的状态的流程示意图;3 is a schematic flowchart of steps in an embodiment to determine the state of an application to be frozen;
图4为一个实施例中步骤确定待冻结应用中进程的状态的流程示意图;4 is a schematic flowchart of steps in one embodiment to determine the state of a process in an application to be frozen;
图5为另一个实施例中应用处理方法的流程示意图;5 is a schematic flowchart of an application processing method in another embodiment;
图6为一个实施例中应用处理装置的结构框图;6 is a structural block diagram of an application processing apparatus in one embodiment;
图7为一个实施例中电子设备的结构框图;7 is a structural block diagram of an electronic device in one embodiment;
图8为一个实施例中电子设备的内部结构示意图。FIG. 8 is a schematic diagram of the internal structure of an electronic device in one embodiment.
具体实施方式Detailed ways
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application will be described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, but not to limit the present application.
图1为一个实施例中应用处理方法的应用环境示意图。如图1所示,该应用环境包括电子设备100。在电子设备100检测到应用冻结指令时获取待冻结应用,然后判断待冻结应用是否处于同步binder通信状态,并在判断待冻结应用处于同步binder通信状态时,电子设备100将控制待冻结应用不响应应用冻结指令;在确定待冻结应用不处于同步binder通信状态时,电子设备100将控制待冻结应用响应应用冻结指令,以使得待冻结应用进入冻结状态。其中,电子设备100可以但不限于是各种智能手机、个人计算机、笔记本电脑、平板电脑和便携式可穿戴设备。FIG. 1 is a schematic diagram of an application environment of an application processing method in an embodiment. As shown in FIG. 1 , the application environment includes an
图2为一个实施例中应用处理方法的流程示意图。本实施例中的进程处理方法,以运行于图1中的电子设备上为例进行描述,该方法包括如下步骤:FIG. 2 is a schematic flowchart of an application processing method in one embodiment. The process processing method in this embodiment is described by taking running on the electronic device in FIG. 1 as an example, and the method includes the following steps:
步骤202,当检测到应用冻结指令时,获取待冻结应用。
其中,应用冻结指令是用于控制电子设备对相对应的应用进行冻结的控制指令。通常情况下,冻结是指控制应用停止运行。The application freezing instruction is a control instruction used to control the electronic device to freeze the corresponding application. Typically, a freeze is when the control app stops working.
具体地,当电子设备检测到应用冻结指令时,获取需要进行冻结的待冻结应用,以确定当前所需要控制进行进程冻结的应用。应用冻结指令的触发方式不限,可以是检测到用户的触发操作产生的指令,还可以是电子设备根据自身的运行状态而触发的应用冻结指令。在电子设备检测到应用冻结指令被触发时,获取确定当前需要进行冻结的应用的特征标识,其中,特征标识可以是应用对应的应用标识信息。应用标识信息是用于唯一标识应用身份的信息。应用标识信息可包括数字、字符和字母中的一种或多种。Specifically, when the electronic device detects the application freezing instruction, it acquires the to-be-frozen application that needs to be frozen, so as to determine the application that currently needs to be controlled to perform process freezing. The triggering method of the application freezing instruction is not limited, and it may be an instruction generated by detecting a user's triggering operation, or may be an application freezing instruction triggered by the electronic device according to its own running state. When the electronic device detects that the application freezing instruction is triggered, it acquires and determines a feature identifier of an application that needs to be frozen currently, where the feature identifier may be application identifier information corresponding to the application. The application identification information is information used to uniquely identify the application identity. Application identification information may include one or more of numbers, characters, and letters.
步骤204,判断待冻结应用是否处于同步binder通信状态。Step 204: Determine whether the application to be frozen is in a synchronous binder communication state.
其中,binder主要用来实现进程间通信,进程(Process)是计算机中的程序关于某数据集合上的一次运行活动,是系统进行资源分配和调度的基本单位,是操作系统结构的基础。同步binder通信状态是指应用需要与其他的应用进行信息交互以完成数据信息的传输的状态,不是同步binder通信状态的状态为异步binder通信状态。Among them, binder is mainly used to realize inter-process communication. Process is a running activity of a program in a computer on a certain data set. It is the basic unit of resource allocation and scheduling in the system, and the basis of the operating system structure. The synchronous binder communication state refers to the state in which the application needs to exchange information with other applications to complete the transmission of data information. The state that is not the synchronous binder communication state is the asynchronous binder communication state.
具体地,电子设备在获取并确定了需要进行冻结的待冻结应用之后,并不会直接将待冻结应用进行冻结,而是需要对应用的运行状态进行判断,以确定待冻结应用是否可以进行冻结,而具体地判断依据可以是通过确定待冻结应用是否处于同步binder通信状态。也就是在获取了待冻结应用时,获取待冻结应用的运行状态信息,以判断待冻结应用是否处于同步binder通信状态。Specifically, after acquiring and determining the application to be frozen that needs to be frozen, the electronic device does not directly freeze the application to be frozen, but needs to judge the running state of the application to determine whether the application to be frozen can be frozen , and the specific judgment basis may be by determining whether the application to be frozen is in a synchronous binder communication state. That is, when the application to be frozen is acquired, the running state information of the application to be frozen is acquired to determine whether the application to be frozen is in a synchronous binder communication state.
在实际应用中,待冻结应用在电子设备中运行时,所包含的进程通常不止一个,进而在电子设备对待冻结应用的状态信息进行判断时,是根据待冻结应用的所有进程的进程状态来判断待冻结应用是否处于同步binder通信状态。In practical applications, when the application to be frozen runs in an electronic device, it usually contains more than one process, and when the electronic device judges the status information of the application to be frozen, it is based on the process status of all the processes of the application to be frozen. Whether the application to be frozen is in a synchronous binder communication state.
对于待冻结应用所包含的其中一个进程而言,在待冻结应用运行过程中,其对应的状态是根据待冻结应用的实际运行需求可能会有所不同,其中,待冻结应用的运行实际上是一种数据信息的传输,而在进行数据传输时,此进程的数据传输方式包括有两种,一种是不需要接收其他进程或者应用的反馈信息,而是直接进行数据信息的传输,另一种是需要根据其他进程或者应用的信息反馈才可以完成数据信息的传输。当进程在运行过程中,需要接收另外的应用的反馈信息实现数据信息的传输,那么在将此进程所属的应用进行冻结时,此进程的数据传输将会被打断,也就是数据传输将会断开;而对于不需要根据其他应用或者进程的信息反馈,而是直接进行数据信息的传输或者仅仅用于接收数据信息时,在此进程完成数据信息的传输时将此进程所属的应用进行冻结,将不会对数据传输有所影响。在本实施例中,同步binder通信状态即为在进行数据传输时,需要其他的应用或者进程进行响应的反馈才可以进一步的完成后续数据的传输。For one of the processes included in the application to be frozen, during the running process of the application to be frozen, its corresponding state may be different according to the actual running requirements of the application to be frozen, wherein the running of the application to be frozen is actually A kind of data information transmission, and during data transmission, there are two data transmission methods for this process. One is to directly transmit data information without receiving feedback information from other processes or applications, and the other is to transmit data information directly. The first is to complete the transmission of data information only according to information feedback from other processes or applications. When the process is running and needs to receive feedback information from another application to realize the transmission of data information, then when the application to which the process belongs is frozen, the data transmission of this process will be interrupted, that is, the data transmission will be interrupted. Disconnected; when the data information is directly transmitted or only used to receive data information without feedback from other applications or processes, the application to which the process belongs is frozen when the process completes the transmission of data information , will not affect data transmission. In this embodiment, the synchronous binder communication state is that when data transmission is performed, the subsequent data transmission can be further completed only after other applications or processes are required to respond with feedback.
步骤206,当判断待冻结应用处于同步binder通信状态时,控制待冻结应用不响应应用冻结指令。
具体地,电子设备通过判断确定待冻结应用是否处于同步binder通信状态,并在判断确定待冻结应用处于同步binder通信状态时,控制待冻结应用不响应所接收到的应用冻结指令。Specifically, the electronic device determines whether the application to be frozen is in a synchronous binder communication state by judging, and when it is determined that the application to be frozen is in a synchronous binder communication state, it controls the application to be frozen not to respond to the received application freezing instruction.
在实际应用中,电子设备并不是对所有的应用冻结指令都会进行响应,对于进行响应之后不会影响电子设备运行的应用冻结指令才会进行响应,其中,响应即为将待冻结应用进行冻结。在本实施例中,电子设备通过获取待冻结应用的状态,进而根据待冻结应用的状态确定是否控制待冻结应用响应所接收到的应用冻结指令。In practical applications, the electronic device does not respond to all application freezing instructions, but only responds to application freezing instructions that will not affect the operation of the electronic device after the response, wherein the response is to freeze the application to be frozen. In this embodiment, the electronic device obtains the state of the application to be frozen, and then determines whether to control the application to be frozen in response to the received application freezing instruction according to the state of the application to be frozen.
另外,在判断确定待冻结应用不处于同步binder通信状态时,将控制待冻结应用响应所接收到的应用冻结指令,以实现对待冻结应用的冻结。In addition, when it is determined that the application to be frozen is not in the synchronous binder communication state, the application to be frozen is controlled to respond to the received application freezing instruction, so as to freeze the application to be frozen.
可选地,在对待冻结应用完成冻结之后,还包括:当接收到携带有短暂解冻指令的信息时,控制待冻结应用进行解冻以响应此信息,并在响应完成时控制待冻结应用再次进入冻结状态;或者,当接收到输入的解冻指令时,控制待冻结应用解冻。Optionally, after the freezing of the application to be frozen is completed, the method further includes: when receiving the information carrying the short-term thawing instruction, controlling the application to be frozen to be thawed in response to the information, and controlling the application to be frozen to enter the freezing again when the response is completed. state; or, when an input unfreezing instruction is received, control the unfreezing of the application to be frozen.
其中,短暂解冻指令是用于控制被冻结的应用进行短暂解冻,并在响应完成后再次进入冻结状态的指令。在接收到携带有短暂解冻指令的信息时,电子设备的相关处理器对所接收到的信息进行识别,并在识别确定所接收到的信息中包含有应用短暂解冻指令时,控制对应的应用解冻并响应所接收到的信息。The short-term thawing instruction is an instruction used to control the frozen application to perform a short-term thawing, and enter the frozen state again after the response is completed. When receiving information carrying a brief thawing instruction, the relevant processor of the electronic device identifies the received information, and controls the corresponding application to unfreeze when it is determined that the received information contains an application brief thawing instruction and respond to the received information.
具体地,在完成对待冻结应用的冻结之后,当接收到的其他应用所发送的信息中包含有需要此应用进行响应的信息时,将根据信息中所携带的短暂解冻指令将待冻结应用进行解冻,以使得待冻结应用响应所接收到的信息,并在完成接收响应之后再次进入冻结状态。对于进入冻结状态之后的应用,只有用户通过相应的操作才能完成对待冻结应用的完全解冻。Specifically, after the freezing of the application to be frozen is completed, when the received information sent by other applications contains information that requires the application to respond, the application to be frozen will be thawed according to the short-term unfreezing instruction carried in the information. , so that the application to be frozen responds to the received information, and enters the frozen state again after receiving the response. For an application after entering the frozen state, only the user can complete the complete thawing of the application to be frozen through a corresponding operation.
本实施例中的应用处理方法,在检测到应用冻结指令时,首先获取并识别需要进行冻结的待冻结应用,然后通过判断待冻结应用的状态信息是否为同步binder通信状态,以确定是否控制待冻结应用响应所接收到的应用冻结指令,最后在判断确定待冻结应用的状态为同步binder通信状态时,不响应所接收到的应用冻结指令。实现了在电子设备的运行过程中,避免了将处于同步binder通信状态的应用进行冻结,保证电子设备的正常运行,提高了冻结机制的稳定性。In the application processing method in this embodiment, when an application freezing instruction is detected, the application to be frozen that needs to be frozen is first obtained and identified, and then the state information of the application to be frozen is judged whether the state information of the application to be frozen is a synchronous binder communication state, so as to determine whether to control the application to be frozen. The frozen application responds to the received application freezing instruction, and finally does not respond to the received application freezing instruction when it is determined that the state of the application to be frozen is a synchronous binder communication state. It is realized that the application in the synchronous binder communication state is prevented from being frozen during the operation of the electronic device, the normal operation of the electronic device is ensured, and the stability of the freezing mechanism is improved.
如图3所示,在一个实施例中,提供的一种应用处理方法还可以包括判断待冻结应用是否处于同步binder通信状态的过程,具体包括:As shown in Figure 3, in one embodiment, an application processing method provided may further include a process of judging whether the application to be frozen is in a synchronous binder communication state, specifically including:
步骤302,获取同步binder通信列表。
其中,同步binder通信列表是用于存储处于同步binder通信状态的应用或者进程的特征信息,特征信息包括有标识信息,并且标识信息包括应用所对应的应用标识信息以及进程所对应的进程标识信息,进程标识信息可以是文字,也可以是数字编号、字符以及字母等。所有处于同步binder通信状态的应用或者进程,均会存储在同步binder通信列表中。Wherein, the synchronous binder communication list is used to store the characteristic information of the application or process in the synchronous binder communication state, the characteristic information includes identification information, and the identification information includes the application identification information corresponding to the application and the process identification information corresponding to the process, The process identification information can be words, numbers, characters, letters, and the like. All applications or processes in the synchronous binder communication state will be stored in the synchronous binder communication list.
具体地,在判断所需要进行冻结的待冻结应用是否处于同步binder通信状态时,需要有相应的判断依据,因此,需要获取用于存储应用存储状态的同步binder通信列表,然后根据同步binder通信列表中所存储的数据信息来判断待冻结应用是否允许被冻结。Specifically, when judging whether the application to be frozen that needs to be frozen is in a synchronous binder communication state, a corresponding judgment basis is required. Therefore, it is necessary to obtain a synchronous binder communication list for storing the application storage state, and then according to the synchronous binder communication list to determine whether the application to be frozen is allowed to be frozen.
可选地,在一个实施例中,获取同步binder通信列表具体包括:Optionally, in one embodiment, acquiring the synchronous binder communication list specifically includes:
步骤a,调用对应的内核设备,并基于内核设备调用对应的冻结接口。In step a, the corresponding kernel device is called, and the corresponding frozen interface is called based on the kernel device.
步骤b,基于冻结接口,获取对应的同步binder通信列表。Step b, based on the frozen interface, obtain the corresponding synchronous binder communication list.
具体地,在获取同步binder通信列表时,由于在进行由于冻结时,应用处于电子设备的系统的应用层,而同步binder通信列表处于电子设备的内核层,因此首先需要进入内核层,然后在可以实现对同步binder通信列表的获取。由于应用层与内核层不能直接进行通信,因此,在获取同步binder通信列表时,首先通过调用对应的内核设备,然后根据所得到的内核设备从对应的binder设备上调用相应的冻结接口,进而从binder设备上获取对应的同步binder通信列表。Specifically, when acquiring the synchronous binder communication list, since the application is in the application layer of the system of the electronic device when the freeze is performed, and the synchronous binder communication list is in the kernel layer of the electronic device, it is necessary to enter the kernel layer first, and then in the available Realize the acquisition of the synchronous binder communication list. Since the application layer and the kernel layer cannot communicate directly, when obtaining the synchronous binder communication list, first call the corresponding kernel device, and then call the corresponding freeze interface from the corresponding binder device according to the obtained kernel device, and then from Obtain the corresponding synchronous binder communication list on the binder device.
步骤304,查询同步binder通信列表,确定同步binder通信列表中是否存在待冻结应用所包含的进程。
其中,应用在电子设备中运行时,实际上是与应用相关的进程在电子设备中执行相应的指令,且一个应用所对应的进程的个数通常是有多个。Wherein, when an application runs in an electronic device, actually a process related to the application executes corresponding instructions in the electronic device, and there are usually multiple processes corresponding to one application.
具体地,在得到同步binder通信列表时,将基于待冻结应用在同步binder通信列表中进行查询,以确定同步binder通信列表中是否存在待冻结应用所包含的进程。Specifically, when the synchronous binder communication list is obtained, the synchronous binder communication list is queried based on the application to be frozen, to determine whether there is a process included in the application to be frozen in the synchronous binder communication list.
由于一个应用在运行过程中是由多个不同进程的相互协作完成正常的运行,而不同的进程的运行状态也会有所不同,在判断待冻结应用是否处于同步binder通信状态时,是根据待冻结应用所包含的所有进程是否处于同步binder通信状态,只有在待冻结应用的所有进程都不处于同步binder通信状态时,待冻结应用才会是不处于同步binder通信状态。Since an application is running normally through the cooperation of multiple different processes, and the running status of different processes will be different, when judging whether the application to be frozen is in a synchronous binder communication state, it is based on the Whether all the processes included in the frozen application are in the synchronous binder communication state, only when all the processes of the to-be-frozen application are not in the synchronous binder communication state, the to-be-frozen application will not be in the synchronous binder communication state.
在本实施例中,通过根据待冻结应用的特征标识在同步binder通信列表中进行查询,确定同步binder通信列表中是否包含有待冻结应用的特征标识,进而确定待冻结应用是否处于同步binder通信状态,其中,特征标识可以是待冻结应用的应用标识信息,也可以是与待冻结应用相关联的进程的进程标识信息。In this embodiment, by querying the synchronous binder communication list according to the feature identifier of the application to be frozen, it is determined whether the synchronous binder communication list contains the feature identifier of the application to be frozen, and then it is determined whether the application to be frozen is in the synchronous binder communication state, The feature identifier may be application identification information of the application to be frozen, or process identification information of a process associated with the application to be frozen.
步骤306,基于查询得到的结果,确定待冻结应用是否处于同步binder通信状态。
具体地,进行查询之后,根据得到的查询结果确定待冻结应用是否处于同步binder通信状态,其中,若在所有的进程均不处于同步binder通信状态,则待冻结应用不处于同步binder通信状态,若所有进程中存在一个进程处于同步binder通信状态,则说明待冻结应用处于同步binder通信状态。Specifically, after the query is performed, it is determined whether the application to be frozen is in the synchronous binder communication state according to the obtained query result, wherein, if all processes are not in the synchronous binder communication state, the application to be frozen is not in the synchronous binder communication state, if If one process in all processes is in a synchronous binder communication state, it means that the application to be frozen is in a synchronous binder communication state.
在待冻结应用处于同步binder通信状态下时,若强制性的将应用进行冻结,将会导致电子设备的系统出现不可预知的异常后果,影响电子设备的正常运行。只有在应用的所有进程均不处于同步binder通信状态时,即应用在电子设备中的运行是独立的,不需要其他的应用或者进程进行响应的,才可以将应用冻结。When the application to be frozen is in a synchronous binder communication state, if the application is forcibly frozen, unpredictable abnormal consequences will occur in the system of the electronic device, affecting the normal operation of the electronic device. The application can be frozen only when all the processes of the application are not in the synchronous binder communication state, that is, the operation of the application in the electronic device is independent and does not require other applications or processes to respond.
如图4所示,在一个实施例中,提供一种应用处理方法还可以包括在同步binder通信列表中进行查询,确定同步binder通信列表中是否存在待冻结应用所包含的进程的过程,具体包括:As shown in FIG. 4 , in one embodiment, providing an application processing method may further include inquiring in the synchronous binder communication list to determine whether there is a process included in the application to be frozen in the synchronous binder communication list. Specifically, the process includes: :
步骤402,获取待冻结应用的应用标识信息,并基于应用标识信息确定待冻结应用所对应进程的进程标识信息。Step 402: Obtain application identification information of the application to be frozen, and determine process identification information of a process corresponding to the application to be frozen based on the application identification information.
其中,应用标识信息是待冻结应用的身份标识,可以是文字,也可以是数字编号以及其他可以用于进行身份标记的字母等,但需要可以准确的对待冻结应用进行识别。进程标识信息是进程的身份标识,同样可以是文字,也可以是数字编号以及其他可以用于进行身份标记的字母等。The application identification information is the identity identification of the application to be frozen, which may be text, a numerical number, or other letters that can be used for identity marking, etc., but the application to be frozen needs to be accurately identified. The process identification information is the identification of the process, which can also be text, number numbers, and other letters that can be used for identification.
具体地,在确定同步binder通信列表中是否存在待冻结应用所包含的进程时,首先获取并识别待冻结应用所对应的应用标识信息,然后根据待冻结应用的应用标识信息,获取与待冻结应用相关联的进程标识信息。Specifically, when determining whether there is a process contained in the application to be frozen in the synchronous binder communication list, first obtain and identify the application identification information corresponding to the application to be frozen, and then obtain and identify the application to be frozen according to the application identification information of the application to be frozen. Associated process identification information.
在确定待冻结应用是否处于同步binder通信状态时,需要对待冻结应用所包含的所有的进程的状态信息进行检测判断,进而才可以对待冻结应用的状态信息进行判断确定。在本实施例中,首先获取了待冻结应用的应用标识信息,进而根据应用标识信息获取与待冻结应用相关联的进程的进程标识信息,需要说明的是,在实际获取进程标识信息时,主要获取的是处于运行状态下的进程的进程标识信息,根据待冻结应用的标识信息获取在电子设备中运行的进程的进程标识信息。When determining whether the application to be frozen is in a synchronous binder communication state, it is necessary to detect and determine the status information of all the processes included in the application to be frozen, and then the status information of the application to be frozen can be judged and determined. In this embodiment, the application identification information of the application to be frozen is first obtained, and then the process identification information of the process associated with the application to be frozen is obtained according to the application identification information. It should be noted that when actually obtaining the process identification information, the main The process identification information of the process in the running state is acquired, and the process identification information of the process running in the electronic device is acquired according to the identification information of the application to be frozen.
步骤404,基于进程标识信息在所述同步binder通信列表中查询匹配,确定同步binder通信列表中是否包含进程标识信息。
具体地,在得到与待冻结应用相关联的进程标识信息之后,将在同步binder通信列表中进行查询匹配,以确定待冻结应用所包含的进程是否存在于同步binder通信列表中,也就是确定同步binder通信列表中是否包含有待冻结应用所包含的进程。Specifically, after obtaining the process identification information associated with the application to be frozen, a query and match will be performed in the synchronization binder communication list to determine whether the process included in the application to be frozen exists in the synchronization binder communication list, that is, to determine the synchronization Whether the binder communication list contains the processes contained in the application to be frozen.
同步binder通信列表中存储有进行同步binder通信的进程所对应的进程标识信息,通过将待冻结应用所包含的进程的进程标识信息于同步binder通信列表进行匹配,以确定待冻结应用是否存在处于同步binder通信列表中的进程。对于同步binder通信列表所存储的信息,可以对其进行相应的分类,比如将属于同一应用的进程归为一类,其对应的类别信息就是应用的标识信息,然后不同的进程对应有唯一对应的标识信息,这样在进行查询的时候,首先根据应用的标识信息将查询范围缩小,以快速的完成查询匹配。The synchronous binder communication list stores the process identification information corresponding to the process that performs synchronous binder communication. By matching the process identification information of the process included in the application to be frozen with the synchronous binder communication list, it is determined whether the application to be frozen is in synchronization. Processes in the binder communication list. For the information stored in the synchronous binder communication list, it can be classified accordingly, for example, the processes belonging to the same application are classified into one category, and the corresponding category information is the identification information of the application, and then different processes correspond to unique corresponding Identification information, so that when performing a query, the query scope is first narrowed according to the identification information of the application, so as to quickly complete the query matching.
如图5所示,在一个实施例中,提供给一种应用处理方法还可以包括:As shown in FIG. 5, in one embodiment, providing an application processing method may further include:
步骤502,当检测到第一进程进入同步binder通信状态时,获取第一进程对应的第一进程标识信息,并将第一进程标识信息存储在同步binder通信列表中。
同步binder通信列表中存储有处于同步binder通信状态的进程的进程标识信息,同时还可以存储有此进程对应的应用标识信息。The synchronous binder communication list stores the process identification information of the process in the synchronous binder communication state, and may also store the application identification information corresponding to the process.
具体地,在将相关的信息存储在同步binder通信列表中时,通过检测在电子设备中运行的进程的状态信息来进行相应的处理。在检测到第一进程进入同步binder通信状态时,获取第一进程所对应的第一进程标识信息,进而将第一进程标识存储在同步binder通信列表中。在将第一进程标识信息存储至同步binder通信列表中时,除了将第一进程标识信息进行获取并存储之外,还可以将第一进程所属的第一应用的应用标识信息与进程标识信息进行关联之后以通存储在同步binder通信列表中,也就是在进行存储时可以根据所述的应用不同进行相应的分类,另外,在将第一进程标识信息进行存储时,还可以将于第一进程进行同步binder通信的进程一同进行存储。Specifically, when the relevant information is stored in the synchronous binder communication list, corresponding processing is performed by detecting the state information of the process running in the electronic device. When it is detected that the first process enters the synchronous binder communication state, first process identification information corresponding to the first process is acquired, and then the first process identification is stored in the synchronous binder communication list. When storing the first process identification information in the synchronous binder communication list, in addition to acquiring and storing the first process identification information, the application identification information of the first application to which the first process belongs can also be stored with the process identification information. After the association, it is stored in the synchronous binder communication list, that is, when storing, it can be classified according to the application. In addition, when the first process identification information is stored, it can also be stored in the first process. Processes that perform synchronous binder communication are stored together.
步骤504,当检测到第二进程的运行状态从同步binder通信状态变为异步binder通信状态时,获取第二进程所对应的第二进程标识信息,并将第二进程标识信息从同步binder通信列表中删除。
电子设备会将进入同步binder通信状态的进程的进程标识信息存储在同步binder通信列表中,同样也会将状态信息从同步binder通信状态变为异步binder通信状态的进程的进程标识信息从同步binder通信列表中删除,其中异步binder通信状态是同步binder通信状态的对立运行状态。The electronic device will store the process identification information of the process entering the synchronous binder communication state in the synchronous binder communication list, and will also change the state information from the synchronous binder communication state to the process identification information of the asynchronous binder communication state. Deleted from the list, where the asynchronous binder communication state is the opposite running state of the synchronous binder communication state.
具体地,对于已经存在于同步binder通信列表中的第二进程,当检测到第一进程的运行状态从同步binder通信状态变为异步binder通信状态时,获取第二进程所对应的第二进程标识信息,以将第二进程标识信息从同步binder通信列表中删除。也就是对于运行状态发生了改变,且不再是同步binder通信状态时,将对应的进程的进程标识信息从同步binder通信列表中进行删除,以使得同步binder通信列表中不存在此进程的进程标识信息。Specifically, for the second process that already exists in the synchronous binder communication list, when it is detected that the running state of the first process changes from the synchronous binder communication state to the asynchronous binder communication state, the second process identifier corresponding to the second process is obtained. information to delete the second process identification information from the synchronous binder communication list. That is, when the running state has changed and is no longer in the synchronous binder communication state, the process identification information of the corresponding process is deleted from the synchronous binder communication list, so that the process identification of this process does not exist in the synchronous binder communication list. information.
应该理解的是,虽然图2-5的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图2-5中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the steps in the flowcharts of FIGS. 2-5 are shown in sequence according to the arrows, these steps are not necessarily executed in the sequence shown by the arrows. Unless explicitly stated herein, the execution of these steps is not strictly limited to the order, and these steps may be performed in other orders. Moreover, at least a part of the steps in FIGS. 2-5 may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed and completed at the same time, but may be executed at different times. These sub-steps or stages are not necessarily completed at the same time. The order of execution of the steps is not necessarily sequential, but may be performed alternately or alternately with other steps or at least a part of sub-steps or stages of other steps.
如图6所示,在一个实施例中,提供了一种应用处理装置,该装置包括:As shown in FIG. 6, in one embodiment, an application processing apparatus is provided, and the apparatus includes:
获取模块610,用于当检测到应用冻结指令时,获取待冻结应用;an obtaining module 610, configured to obtain the application to be frozen when the application freezing instruction is detected;
判断模块620,用于判断待冻结应用是否处于同步binder通信状态;The judgment module 620 is used for judging whether the application to be frozen is in a synchronous binder communication state;
响应模块630,用于当判断待冻结应用处于同步binder通信状态时,控制待冻结应用不执行应用冻结指令。The response module 630 is configured to control the application to be frozen not to execute the application freezing instruction when it is determined that the application to be frozen is in a synchronous binder communication state.
在一个实施例中,提供的一种判断模块还包括列表获取模块、查询确定模块以及结果确定模块。其中,列表获取模块用于获取同步binder通信列表;查询确定模块用于基于同步binder通信列表,确定同步binder通信列表中是否存在待冻结应用所包含的进程;结果确定模块用于基于查询得到结果,确定待冻结应用是否处于同步binder通信状态。In one embodiment, the provided judgment module further includes a list acquisition module, a query determination module, and a result determination module. Wherein, the list acquisition module is used to acquire the synchronous binder communication list; the query determination module is used to determine whether there is a process contained in the application to be frozen in the synchronous binder communication list based on the synchronous binder communication list; the result determination module is used to obtain the result based on the query, Determines whether the application to be frozen is in a synchronous binder communication state.
在一个实施例中,提供的一种列表获取模块还包括接口调用单元以及列表获取单元。其中,接口调用单元用于调用对应的内核设备,并基于内核设备调用对应的冻结接口;列表获取单元用于基于冻结接口,获取对应的同步binder通信列表。In one embodiment, the provided list obtaining module further includes an interface calling unit and a list obtaining unit. Wherein, the interface calling unit is used to call the corresponding kernel device and call the corresponding frozen interface based on the kernel device; the list obtaining unit is used to obtain the corresponding synchronous binder communication list based on the frozen interface.
在一个实施例中,提供的一种查询确定模块还包括标识获取单元以及查询匹配单元。其中,标识获取单元用于获取待冻结应用的应用标识信息,并基于应用标识信息确定待冻结应用所对应进程的进程标识信息;查询匹配单元用于基于进程标识信息在所述同步binder通信列表中查询匹配,确定同步binder通信列表中是否包含进程标识信息。In one embodiment, a query determination module is provided that further includes an identification acquisition unit and a query matching unit. Wherein, the identification obtaining unit is used to obtain the application identification information of the application to be frozen, and determine the process identification information of the process corresponding to the application to be frozen based on the application identification information; the query matching unit is used for the synchronization binder communication list based on the process identification information Query matching to determine whether the process identification information is included in the synchronous binder communication list.
在一个实施例中,提供的一种结果确定模块还用于当同步binder通信列表中存在进程标识信息时,确定待冻结应用处于同步binder通信状态;及,当同步binder通信列表中不存在进程标识信息时,确定待冻结应用不处于同步binder通信状态。In one embodiment, a result determination module provided is also used to determine that the application to be frozen is in a synchronous binder communication state when there is process identification information in the synchronous binder communication list; and, when there is no process identification in the synchronous binder communication list When the information is received, it is determined that the application to be frozen is not in a synchronous binder communication state.
在一个实施例中,提供的一种应用处理装置还包括存储模块以及删除模块。其中,存储模块用于当检测到第一进程进入同步binder通信状态时,获取第一进程对应的第一进程标识信息,并将第一进程标识信息存储在同步binder通信列表中;删除模块用于当检测到第二进程的运行状态从同步binder通信状态变为异步binder通信状态时,获取第二进程所对应的第二进程标识信息,并将第二进程标识信息从同步binder通信列表中删除。In one embodiment, an application processing apparatus is provided that further includes a storage module and a deletion module. Wherein, the storage module is used to obtain the first process identification information corresponding to the first process when it is detected that the first process enters the synchronous binder communication state, and store the first process identification information in the synchronous binder communication list; the deletion module is used for When it is detected that the running state of the second process changes from the synchronous binder communication state to the asynchronous binder communication state, the second process identification information corresponding to the second process is acquired, and the second process identification information is deleted from the synchronous binder communication list.
在一个实施例中,提供的一种响应模块还用于当判断待冻结应用不处于同步binder通信状态时,控制待冻结应用响应应用冻结指令。In one embodiment, a response module provided is further configured to control the application to be frozen to respond to the application freezing instruction when it is determined that the application to be frozen is not in a synchronous binder communication state.
在一个实施例中,提供的一种应用处理装置还包括解冻模块。其中,解冻模块用于当接收到携带有短暂解冻指令的信息时,控制待冻结应用解冻以响应信息,并在响应完成时控制待冻结应用再次进入冻结状态;或者,当接收到输入的解冻指令时,控制待冻结应用解冻。In one embodiment, an application processing apparatus is provided further comprising a thawing module. Wherein, the unfreezing module is used to control the unfreezing of the application to be frozen to respond to the information when receiving the information carrying the short-term unfreezing instruction, and control the application to be frozen to enter the frozen state again when the response is completed; or, when receiving the input unfreezing instruction , control the thawing of the application to be frozen.
上述应用处理装置中各个模块的划分仅用于举例说明,在其他实施例中,可将应用处理装置按照需要划分为不同的模块,以完成上述应用处理装置的全部或部分功能。The division of each module in the above application processing apparatus is only used for illustration. In other embodiments, the application processing apparatus may be divided into different modules as required to complete all or part of the functions of the above application processing apparatus.
关于应用处理装置的具体限定可以参见上文中对于应用处理方法的限定,在此不再赘述。上述应用处理装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。For the specific limitation of the application processing apparatus, reference may be made to the above limitation on the application processing method, which will not be repeated here. Each module in the above-mentioned application processing apparatus may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
在一个实施例中,如图7所示,提供了一种电子设备的内部结构示意图。该电子设备包括通过系统总线连接的处理器、存储器和网络接口。其中,该处理器用于提供计算和控制能力,支撑整个电子设备的运行。存储器用于存储数据、程序、和/或指令代码等,存储器上存储至少一个计算机程序,该计算机程序可被处理器执行,以实现本申请实施例中提供的适用于电子设备的应用处理方法。存储器可包括磁碟、光盘、只读存储记忆体(Read-OnlyMemory,ROM)等非易失性存储介质,或随机存储记忆体(Random-Access-Memory,RAM)等。例如,在一个实施例中,存储器包括非易失性存储介质及内存储器。非易失性存储介质存储有操作系统、数据库和计算机程序。该数据库中存储有用于实现以下各个实施例所提供的一种应用处理方法相关的数据,比如可存储有每个应用的名称、每个应用被冻结或者被解冻的时长以及每个应用预设的状态切换时长等信息。该计算机程序可被处理器所执行,以用于实现本申请各个实施例所提供的一种应用处理方法。内存储器为非易失性存储介质中的操作系统、数据库和计算机程序提供高速缓存的运行环境。网络接口可以是以太网卡或无线网卡等,用于与外部的电子设备进行通信,比如可用于同服务器进行通信。In one embodiment, as shown in FIG. 7 , a schematic diagram of the internal structure of an electronic device is provided. The electronic device includes a processor, memory, and a network interface connected by a system bus. Among them, the processor is used to provide computing and control capabilities to support the operation of the entire electronic device. The memory is used for storing data, programs, and/or instruction codes, etc., and at least one computer program is stored in the memory, and the computer program can be executed by the processor to implement the application processing method applicable to the electronic device provided in the embodiments of the present application. The memory may include a non-volatile storage medium such as a magnetic disk, an optical disk, and a read-only memory (Read-Only Memory, ROM), or a random-access-memory (Random-Access-Memory, RAM) and the like. For example, in one embodiment, the memory includes a non-volatile storage medium and internal memory. The nonvolatile storage medium stores an operating system, a database, and a computer program. The database stores data related to implementing an application processing method provided by the following embodiments, such as the name of each application, the frozen or thawed duration of each application, and the preset value of each application. State switching duration and other information. The computer program can be executed by a processor to implement an application processing method provided by various embodiments of the present application. Internal memory provides a cached operating environment for operating systems, databases, and computer programs in non-volatile storage media. The network interface may be an Ethernet card or a wireless network card, etc., for communicating with external electronic devices, for example, for communicating with a server.
本领域技术人员可以理解,图7中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的电子设备的限定,具体的电子设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art can understand that the structure shown in FIG. 7 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the electronic device to which the solution of the present application is applied. The specific electronic device may be Include more or fewer components than shown in the figures, or combine certain components, or have a different arrangement of components.
本申请实施例中提供的应用处理装置中的各个模块的实现可为计算机程序的形式。该计算机程序可在终端或服务器上运行。该计算机程序构成的程序模块可存储在终端或服务器的存储器上。该计算机程序被处理器执行时,实现本申请实施例中所描述方法的步骤。The implementation of each module in the application processing apparatus provided in the embodiments of the present application may be in the form of a computer program. The computer program can be run on a terminal or server. The program modules constituted by the computer program can be stored in the memory of the terminal or the server. When the computer program is executed by the processor, the steps of the methods described in the embodiments of the present application are implemented.
本申请实施例还提供了一种电子设备。如图8所示,为了便于说明,仅示出了与本申请实施例相关的部分,具体技术细节未揭示的,请参照本申请实施例方法部分。该电子设备可以为包括手机、平板电脑、PDA(Personal Digital Assistant,个人数字助理)、POS(Point of Sales,销售终端)、车载电脑、穿戴式设备等任意终端设备,以电子设备为手机为例:The embodiments of the present application also provide an electronic device. As shown in FIG. 8 , for the convenience of description, only the parts related to the embodiments of the present application are shown, and the specific technical details are not disclosed, please refer to the method part of the embodiments of the present application. The 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 sales terminal), a vehicle-mounted computer, a wearable device, etc. The electronic device is a mobile phone as an example :
图8为与本申请实施例提供的电子设备相关的手机的部分结构的框图。参考图8,手机包括:射频(Radio Frequency,RF)电路810、存储器820、输入单元830、显示单元840、传感器850、音频电路860、无线保真(wireless fidelity,WiFi)模块870、处理器880、以及电源890等部件。本领域技术人员可以理解,图8所示的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。FIG. 8 is a block diagram of a partial structure of a mobile phone related to an electronic device provided by an embodiment of the present application. 8 , the mobile phone includes: a radio frequency (RF)
其中,RF电路810可用于收发信息或通话过程中,信号的接收和发送,可将基站的下行信息接收后,给处理器880处理;也可以将上行的数据发送给基站。通常,RF电路包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,RF电路810还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(Global System ofMobile communication,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband CodeDivision Multiple Access,WCDMA)、长期演进(Long Term Evolution,LTE))、电子邮件、短消息服务(Short Messaging Service,SMS)等。The
存储器820可用于存储软件程序以及模块,处理器880通过运行存储在存储器820的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器820可主要包括程序存储区和数据存储区,其中,程序存储区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能的应用程序、图像播放功能的应用程序等)等;数据存储区可存储根据手机的使用所创建的数据(比如音频数据、通讯录等)等。此外,存储器820可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The
输入单元830可用于接收输入的数字或字符信息,以及产生与手机800的用户设置以及功能控制有关的键信号输入。具体地,输入单元830可包括触控面板831以及其他输入设备832。触控面板831,也可称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板831上或在触控面板831附近的操作),并根据预先设定的程式驱动相应的连接装置。在一个实施例中,触控面板831可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器880,并能接收处理器880发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板831。除了触控面板831,输入单元830还可以包括其他输入设备832。具体地,其他输入设备832可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)等中的一种或多种。The
显示单元840可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元840可包括显示面板841。在一个实施例中,可以采用液晶显示器(LiquidCrystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板841。在一个实施例中,触控面板831可覆盖显示面板841,当触控面板831检测到在其上或附近的触摸操作后,传送给处理器880以确定触摸事件的类型,随后处理器880根据触摸事件的类型在显示面板841上提供相应的视觉输出。虽然在图8中,触控面板831与显示面板841是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将触控面板831与显示面板841集成而实现手机的输入和输出功能。The
手机800还可包括至少一种传感器850,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板841的亮度,接近传感器可在手机移动到耳边时,关闭显示面板841和/或背光。运动传感器可包括加速度传感器,通过加速度传感器可检测各个方向上加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换)、振动识别相关功能(比如计步器、敲击)等;此外,手机还可配置陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器等。
音频电路860、扬声器861和传声器862可提供用户与手机之间的音频接口。音频电路860可将接收到的音频数据转换后的电信号,传输到扬声器861,由扬声器861转换为声音信号输出;另一方面,传声器862将收集的声音信号转换为电信号,由音频电路860接收后转换为音频数据,再将音频数据输出处理器880处理后,经RF电路810可以发送给另一手机,或者将音频数据输出至存储器820以便后续处理。
WiFi属于短距离无线传输技术,手机通过WiFi模块870可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图8示出了WiFi模块870,但是可以理解的是,其并不属于手机800的必须构成,可以根据需要而省略。WiFi is a short-distance wireless transmission technology. The mobile phone can help users to send and receive emails, browse web pages, and access streaming media through the
处理器880是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器820内的软件程序和/或模块,以及调用存储在存储器820内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。在一个实施例中,处理器880可包括一个或多个处理单元。在一个实施例中,处理器880可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等;调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器880中。The
手机800还包括给各个部件供电的电源890(比如电池),优选的,电源可以通过电源管理系统与处理器880逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The
在一个实施例中,手机800还可以包括摄像头、蓝牙模块等。In one embodiment, the
在本申请实施例中,该电子设备所包括的处理器880执行存储在存储器上的计算机程序时实现应用处理方法的步骤。In this embodiment of the present application, when the
本申请实施例还提供了一种计算机可读存储介质。一个或多个包含计算机可执行指令的非易失性计算机可读存储介质,当所述计算机可执行指令被一个或多个处理器执行时,使得所述处理器执行应用处理方法的步骤。Embodiments of the present application also provide a computer-readable storage medium. One or more non-volatile computer-readable storage media containing computer-executable instructions, when executed by one or more processors, cause the processors to perform the steps of an application processing method.
一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行应用处理方法。A computer program product containing instructions, when run on a computer, causes the computer to perform an application processing method.
本申请所使用的对存储器、存储、数据库或其它介质的任何引用可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM),它用作外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDR SDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)。Any reference to a memory, storage, database, or other medium as used herein may include non-volatile and/or volatile memory. Nonvolatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM), which acts as external cache memory. By way of illustration and not limitation, RAM is available in various forms such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), Memory Bus (Rambus) Direct RAM (RDRAM), Direct Memory Bus Dynamic RAM (DRDRAM), and Memory Bus Dynamic RAM (RDRAM).
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本申请专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only represent several embodiments of the present application, and the descriptions thereof are relatively specific and detailed, but should not be construed as a limitation on the scope of the patent of the present application. It should be pointed out that for those skilled in the art, without departing from the concept of the present application, several modifications and improvements can be made, which all belong to the protection scope of the present application. Therefore, the scope of protection of the patent of the present application shall be subject to the appended claims.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811202734.2ACN109445917B (en) | 2018-10-16 | 2018-10-16 | Application processing method and apparatus, electronic device, computer-readable storage medium |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811202734.2ACN109445917B (en) | 2018-10-16 | 2018-10-16 | Application processing method and apparatus, electronic device, computer-readable storage medium |
| Publication Number | Publication Date |
|---|---|
| CN109445917A CN109445917A (en) | 2019-03-08 |
| CN109445917Btrue CN109445917B (en) | 2020-12-01 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201811202734.2AActiveCN109445917B (en) | 2018-10-16 | 2018-10-16 | Application processing method and apparatus, electronic device, computer-readable storage medium |
| Country | Link |
|---|---|
| CN (1) | CN109445917B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111897586A (en)* | 2019-05-06 | 2020-11-06 | 中兴通讯股份有限公司 | Application state control method, device, terminal and computer-readable storage medium |
| CN110221928B (en)* | 2019-06-11 | 2021-06-04 | Oppo广东移动通信有限公司 | Information recording method, information recording apparatus, terminal, and storage medium |
| CN112445586A (en) | 2019-08-29 | 2021-03-05 | 中兴通讯股份有限公司 | Application management method, device, terminal and readable storage medium |
| CN110532083A (en)* | 2019-09-04 | 2019-12-03 | 深圳市思迪信息技术股份有限公司 | Timed task dispatching method and device |
| CN112988375B (en)* | 2019-12-17 | 2024-04-09 | 华为技术有限公司 | Process management method and device, and electronic equipment |
| CN117762502B (en)* | 2023-10-31 | 2024-09-06 | 荣耀终端有限公司 | A freezing management method, terminal device and computer-readable storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106681822A (en)* | 2017-01-19 | 2017-05-17 | 努比亚技术有限公司 | Signal-based progress freezing and unfreezing device and signal-based progress freezing and unfreezing method |
| WO2018157364A1 (en)* | 2017-03-02 | 2018-09-07 | 廖建强 | Method for freezing application program, and terminal |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20160180103A1 (en)* | 2014-12-18 | 2016-06-23 | Electrolux Home Products, Inc. | System, method, apparatus, and computer program product for activating a software functionality on an appliance |
| CN107066320B (en)* | 2017-01-19 | 2021-06-15 | 努比亚技术有限公司 | Android process freezing and unfreezing device and method |
| CN106844029B (en)* | 2017-01-19 | 2020-06-30 | 努比亚技术有限公司 | Self-management Android process freezing and unfreezing device and method |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106681822A (en)* | 2017-01-19 | 2017-05-17 | 努比亚技术有限公司 | Signal-based progress freezing and unfreezing device and signal-based progress freezing and unfreezing method |
| WO2018157364A1 (en)* | 2017-03-02 | 2018-09-07 | 廖建强 | Method for freezing application program, and terminal |
| Publication number | Publication date |
|---|---|
| CN109445917A (en) | 2019-03-08 |
| Publication | Publication Date | Title |
|---|---|---|
| CN109445917B (en) | Application processing method and apparatus, electronic device, computer-readable storage medium | |
| CN112703714B (en) | Application processing method and device, computer equipment and computer readable storage medium | |
| CN109992438A (en) | Information processing method, apparatus, computer device, and computer-readable storage medium | |
| CN108549698B (en) | File processing method, device, mobile terminal, and computer-readable storage medium | |
| CN110032266B (en) | Information processing method, apparatus, computer device, and computer-readable storage medium | |
| CN108733337B (en) | Screen display method and apparatus, electronic device, computer-readable storage medium | |
| CN107623612B (en) | Flow display method and device, computer equipment and computer readable storage medium | |
| CN108509788B (en) | Information sharing method and device, computer readable storage medium and terminal | |
| CN109992376B (en) | Application freezing method, device, terminal and computer-readable storage medium | |
| CN110018886B (en) | Application state switching method and device, electronic equipment and readable storage medium | |
| CN109992425A (en) | Information processing method, apparatus, computer device, and computer-readable storage medium | |
| WO2019084783A1 (en) | Service scheduling method and apparatus, computer device, and computer readable storage medium | |
| CN110018885A (en) | Application program freezing method, device, storage medium and terminal | |
| CN110018905A (en) | Information processing method, device, computer equipment and computer readable storage medium | |
| CN110046032A (en) | Application program processing method and device, electronic equipment and computer readable storage medium | |
| CN107708092B (en) | Flow information updating method and device, terminal and computer readable storage medium | |
| CN109992309B (en) | Application processing method and apparatus, electronic device, and computer-readable storage medium | |
| CN109992360B (en) | Process processing method and device, electronic equipment and computer readable storage medium | |
| CN107508931B (en) | Wireless network communication method, device, storage medium and computer equipment | |
| CN108549576A (en) | File monitoring method and device, electronic equipment and storage medium | |
| CN109388487B (en) | Application processing method and apparatus, electronic device, and computer-readable storage medium | |
| CN108566471B (en) | Information processing method, device, mobile terminal and computer readable storage medium | |
| CN106775641A (en) | Software update method and smart device | |
| CN112997507A (en) | Audio system control method, device, terminal and computer readable storage medium | |
| CN106201536A (en) | The replacing options of a kind of application icon and terminal unit |
| 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 | ||
| TR01 | Transfer of patent right | Effective date of registration:20210611 Address after:Room 01, 8th floor, No.1 Lane 61, shengxia Road, China (Shanghai) pilot Free Trade Zone, Pudong New Area, Shanghai, 200120 Patentee after:Zheku Technology (Shanghai) Co.,Ltd. Address before:Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee before:GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. | |
| TR01 | Transfer of patent right | ||
| TR01 | Transfer of patent right | Effective date of registration:20241025 Address after:6th Floor, No.1 Chongqing Road, Banqiao District, Xinbei City, Taiwan, China, China Patentee after:Weiguang Co.,Ltd. Country or region after:Samoa Address before:Room 01, 8th floor, No.1 Lane 61, shengxia Road, China (Shanghai) pilot Free Trade Zone, Pudong New Area, Shanghai, 200120 Patentee before:Zheku Technology (Shanghai) Co.,Ltd. Country or region before:China | |
| TR01 | Transfer of patent right |