[go: up one dir, main page]

CN107844341B - Process starting control method and device, storage medium and mobile terminal - Google Patents

Process starting control method and device, storage medium and mobile terminal Download PDF

Info

Publication number
CN107844341B
CN107844341B CN201711167209.7A CN201711167209A CN107844341B CN 107844341 B CN107844341 B CN 107844341B CN 201711167209 A CN201711167209 A CN 201711167209A CN 107844341 B CN107844341 B CN 107844341B
Authority
CN
China
Prior art keywords
started
service
starting
attribute information
triggering
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
CN201711167209.7A
Other languages
Chinese (zh)
Other versions
CN107844341A (en
Inventor
林志泳
杜冰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201711167209.7A priority Critical patent/CN107844341B/en
Publication of CN107844341A publication Critical patent/CN107844341A/en
Application granted granted Critical
Publication of CN107844341B publication Critical patent/CN107844341B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • 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
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/485Task life-cycle, e.g. stopping, restarting, resuming execution

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)
  • Stored Programmes (AREA)

Abstract

The embodiment of the application discloses a process starting control method, a process starting control device, a storage medium and a mobile terminal, wherein the method comprises the following steps: when detecting that a preset timer reaches a set interval time, determining that an event for starting a process to be started by triggering the service to be started by a system is triggered, wherein the preset timer is used for triggering the service to be started at regular time, and the process to be started is a process corresponding to the service to be started; acquiring attribute information of the process to be started; and if the attribute information meets the condition of forbidding the process to be started to start, forbidding the process to be started to start. According to the technical scheme, the starting process is forbidden through the timing starting service, the starting operation of the process can be reasonably controlled, the running memory and the electric quantity of the mobile terminal are saved, and the running smoothness of the mobile terminal is improved.

Description

进程启动的管控方法、装置及存储介质和移动终端Process startup control method, device, storage medium and mobile terminal

技术领域technical field

本申请实施例涉及进程管控技术领域,尤其涉及一种进程启动的管控方法、装置及存储介质和移动终端。The embodiments of the present application relate to the technical field of process management and control, and in particular, to a process startup management and control method, device, storage medium, and mobile terminal.

背景技术Background technique

手机等移动终端中的应用种类和可实现的功能越来越多,为人们的生活和工作提供了便利,人们可以利用手机接打电话,还可以听音乐、观看视频、玩游戏等。一个应用程序在运行的过程中可能运行了一个或者多个进程,来实现该应用程序的一个或者多个功能的正常实施。相关技术中,对于应用程序的进程启动的管控方法存在缺陷,需要改进。There are more and more types of applications and achievable functions in mobile terminals such as mobile phones, which provide convenience for people's life and work. People can use mobile phones to make calls, listen to music, watch videos, and play games. During the running process of an application, one or more processes may be run to realize the normal implementation of one or more functions of the application. In the related art, there is a defect in the management and control method for the process startup of the application, which needs to be improved.

发明内容SUMMARY OF THE INVENTION

本申请实施例提供一种进程启动的管控方法、装置及存储介质和移动终端,可以合理的管控进程的启动。The embodiments of the present application provide a method, device, storage medium, and mobile terminal for managing and controlling process startup, which can reasonably manage and control the startup of a process.

在第一方面,本申请实施例提供了一种进程启动的管控方法,包括:In a first aspect, an embodiment of the present application provides a method for managing and controlling process startup, including:

在检测到预设定时器达到设定间隔时间时,确定系统通过触发待启动服务启动来进行待启动进程启动的事件被触发,所述预设定时器用于定时触发待启动服务进行启动,所述待启动进程为待启动服务对应的进程;When it is detected that the preset timer reaches the set interval time, it is determined that the event that the system starts the process to be started by triggering the start of the service to be started is triggered, and the preset timer is used to regularly trigger the service to be started to start, and the The process to be started is the process corresponding to the service to be started;

获取所述待启动进程的属性信息;obtaining attribute information of the process to be started;

若所述属性信息满足禁止待启动进程进行启动的条件,则禁止所述待启动进程进行启动。If the attribute information satisfies the condition for prohibiting the process to be started from being started, the process to be started is prohibited from being started.

在第二方面,本申请实施例提供了一种进程启动的管控装置,包括:In a second aspect, an embodiment of the present application provides a process startup management and control device, including:

进程启动事件触发模块,用于在检测到预设定时器达到设定间隔时间时,确定系统通过触发待启动服务启动来进行待启动进程启动的事件被触发,所述预设定时器用于定时触发待启动服务进行启动,所述待启动进程为待启动服务对应的进程;The process start event triggering module is used to determine that the event that the system starts the process to be started by triggering the start of the service to be started is triggered when it is detected that the preset timer reaches the set interval time, and the preset timer is used for timing triggering The to-be-started service is started, and the to-be-started process is a process corresponding to the to-be-started service;

进程属性获取模块,用于获取所述待启动进程的属性信息;a process attribute acquisition module, used to acquire attribute information of the to-be-started process;

进程启动禁止模块,用于若所述属性信息满足禁止待启动进程进行启动的条件,则禁止所述待启动进程进行启动。The process startup prohibition module is configured to prohibit the to-be-started process from starting if the attribute information satisfies the condition for prohibiting the to-be-started process from starting.

第三方面,本申请实施例提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如第一方面所提供的进程启动的管控方法。In a third aspect, an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, implements the method for managing and controlling process startup provided by the first aspect.

在第四方面,本申请实施例提供了一种移动终端,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行时实现如第一方面所提供的进程启动的管控方法。In a fourth aspect, an embodiment of the present application provides a mobile terminal, including a memory, a processor, and a computer program stored in the memory and running on the processor, and the processor implements the implementation as provided in the first aspect when executed The control method of the process startup.

本申请实施例通过在检测到设定定时器达到设定间隔时间时,确定系统通过触发待启动服务启动来进行待启动进程启动的事件被触发之后,获取待启动进程的属性信息,若属性信息满足禁止待启动进程进行启动的条件,则禁止待启动进程进行启动,实现了禁止通过定时启动服务来自启动进程,可以合理的管控进程的启动操作,节省了移动终端的运行内存和电量,提升了移动终端运行的流畅度。In the embodiment of the present application, when it is detected that the set timer reaches the set interval time, it is determined that the system obtains the attribute information of the to-be-started process after the event of triggering the to-be-started service to start the to-be-started process is triggered, and if the attribute information If the conditions for prohibiting the start of the process to be started are met, the start of the process to be started is prohibited, which realizes the prohibition of starting the process by starting the service regularly, and can reasonably control the start operation of the process, save the running memory and power of the mobile terminal, and improve the performance of the mobile terminal. The smoothness of mobile terminal operation.

附图说明Description of drawings

图1是本申请实施例提供的一种进程启动的管控方法的流程图;1 is a flowchart of a method for managing and controlling process startup provided by an embodiment of the present application;

图2是本申请实施例提供的另一种进程启动的管控方法的流程图;FIG. 2 is a flowchart of another process startup management and control method provided by an embodiment of the present application;

图3是本申请实施例提供的一种进程启动的管控装置的结构示意图;FIG. 3 is a schematic structural diagram of a process startup management and control device provided by an embodiment of the present application;

图4是本申请实施例提供的一种移动终端的结构示意图;4 is a schematic structural diagram of a mobile terminal provided by an embodiment of the present application;

图5是本申请实施例提供的另一种移动终端的结构示意图。FIG. 5 is a schematic structural diagram of another mobile terminal provided by an embodiment of the present application.

具体实施方式Detailed ways

为了使本申请的目的、技术方案和优点更加清楚,下面结合附图对本申请具体实施例作进一步的详细描述。可以理解的是,此处所描述的具体实施例仅仅用于解释本申请,而非对本申请的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本申请相关的部分而非全部内容。在更加详细地讨论示例性实施例之前应当提到的是,一些示例性实施例被描述成作为流程图描绘的处理或方法。虽然流程图将各项操作(或步骤)描述成顺序的处理,但是其中的许多操作可以被并行地、并发地或者同时实施。此外,各项操作的顺序可以被重新安排。当其操作完成时所述处理可以被终止,但是还可以具有未包括在附图中的附加步骤。所述处理可以对应于方法、函数、规程、子例程、子程序等等。In order to make the objectives, technical solutions and advantages of the present application clearer, the specific embodiments of the present application will be further described in detail below with reference to the accompanying drawings. 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. In addition, it should be noted that, for the convenience of description, the drawings only show some but not all of the contents related to the present application. Before discussing the exemplary embodiments in greater detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart depicts various operations (or steps) as a sequential process, many of the operations may be performed in parallel, concurrently, or concurrently. Additionally, the order of operations can be rearranged. The process may be terminated when its operation is complete, but may also have additional steps not included in the figures. The processes may correspond to methods, functions, procedures, subroutines, subroutines, and the like.

图1给出了本申请实施例提供的一种进程启动的管控方法的流程图,本实施例的方法可以由进程启动的管控装置来执行,该装置可通过硬件和/或软件的方式实现,所述装置可作为移动终端一部分设置在所述移动终端的内部。本申请实施中所述的移动终端包括手机、平板电脑或者笔记本等设备。FIG. 1 shows a flowchart of a process startup management and control method provided by an embodiment of the present application. The method of this embodiment may be executed by a process startup management and control device, and the device may be implemented by hardware and/or software. The apparatus may be provided inside the mobile terminal as part of the mobile terminal. The mobile terminals described in the implementation of this application include devices such as mobile phones, tablet computers, or notebooks.

如图1所示,本实施例提供的进程启动的管控方法包括以下步骤:As shown in FIG. 1 , the method for managing and controlling process startup provided by this embodiment includes the following steps:

步骤101、在检测到预设定时器达到设定间隔时间时,确定系统通过触发待启动服务启动来进行待启动进程启动的事件被触发,所述预设定时器用于定时触发待启动服务进行启动,所述待启动进程为待启动服务对应的进程。Step 101: When it is detected that the preset timer reaches the set interval time, it is determined that the event that the system starts the process to be started by triggering the start of the service to be started is triggered, and the preset timer is used to regularly trigger the service to be started to start. , the process to be started is a process corresponding to the service to be started.

Android系统会在内存不足的时候去将进程杀死,对于第三应用来说,当然希望自己应用程序的进程尽量的不被杀死,于是乎,就有了一些进程保活的方法出现,在进程被kill掉之后,通过一些保活方式再进行启动,其中一种保活方式就是通过系统设置一个定时器,定时的唤醒服务来启动进程,即通过alarm方式启动服务来自启动进程。The Android system will kill the process when the memory is insufficient. For the third application, of course, it is hoped that the process of its own application will not be killed as much as possible. Therefore, there are some methods to keep the process alive. After the process is killed, it is restarted through some keep-alive methods. One of the keep-alive methods is to set a timer through the system and wake up the service regularly to start the process, that is, start the service through the alarm method to start the process.

其中,所述预设定时器为系统预先设置的用于定时唤醒触发待启动服务进行启动的定时器,所述定时每隔设定时间唤醒一次待启动服务,所述设定时间可以根据待启动服务的优先级或者其他属性进行设置,例如,将优先级高的服务对应的设定时间间隔设置的短一些,将优先级低的服务对应的设定时间间隔设置的长一些。所述预设定时器可以为由系统设置的定时器,也可以为由第三方应用程序设置的定时器。在所述预设定时器为第三方应用程序设置的定时器时,所述待启动进程可以为设置定时器的第三应用程序中的进程,也可以为其他第三方应用程序中的进程。示例性的,应用程序A预先设置了一个定时器,通过定时唤醒A中的服务来定时启动A中的进程;又示例性的,应用程序A预先设置了一个定时器,通过定时唤醒应用程序B中的服务来定时启动B中的进程。Wherein, the preset timer is a timer preset by the system for timing wake-up to trigger the service to be started to start, and the timer wakes up the service to be started every set time, and the set time can be based on the service to be started. The priority or other attributes of the service are set. For example, the set time interval corresponding to the service with high priority is set to be shorter, and the set time interval corresponding to the service with low priority is set to be longer. The preset timer may be a timer set by the system, or may be a timer set by a third-party application program. When the preset timer is a timer set by a third-party application, the process to be started may be a process in the third application where the timer is set, or may be a process in another third-party application. Exemplarily, application A presets a timer, and periodically wakes up the service in A to start the process in A; in another example, application A presets a timer to wake up application B regularly. The service in B starts the process in B regularly.

在Android系统中,服务是由进程来承载运行的,服务与进程相对应,待启动服务进程有与其对应的待启动进程,例如,微信支付这个服务对应用于微信支付的进程。In the Android system, services are run by processes, services correspond to processes, and the service process to be started has its corresponding process to be started. For example, the WeChat payment service corresponds to the process applied to WeChat payment.

每在检测到预设定时器达到设定时间间隔时,就确定系统通过触发待启动服务启动来进行待启动进程启动的事件是否被触发。其中,可以根据调用者的调用者属性信息和设定函数,来确定系统通过触发待启动服务启动来进行待启动进程启动的事件是否被触发,其中,所述调用者可以为触发待启动服务启动的进程,所述调用者属性信息可以包括进程标识(Process Identifier,PID)、用户标识(User Identifier,UID)和应用包名。相应的,确定系统通过触发待启动服务启动来进行待启动进程启动的事件被触发可以包括:确定触发待启动服务启动的调用者为系统进程;在检测到所述系统进程调用用于通过启动待启动服务来启动所述待启动进程的设定函数,且所述设定函数中包含表示系统已开启所述预设定时器的设定参数时,确定系统通过触发待启动服务启动来进行待启动进程启动的事件被触发。其中,所述确定触发待启动服务启动的调用者为系统进程可以包括:触发待启动服务启动的调用者的进程标识为预设进程标识或者用户标识为预设用户标识,例如,进程标识PID为-1,或者用户标识UID为1000。Whenever it is detected that the preset timer reaches the set time interval, it is determined whether the event of starting the process to be started by triggering the start of the service to be started is triggered by the system. Wherein, according to the caller's attribute information and setting function of the caller, it can be determined whether the system starts the to-be-started process by triggering the to-be-started service to start the event is triggered, wherein the caller can trigger the to-be-started service to start. The caller attribute information may include a process identifier (Process Identifier, PID), a user identifier (User Identifier, UID) and an application package name. Correspondingly, determining that the event that the system starts the process to be started by triggering the start of the service to be started is triggered may include: determining that the caller that triggers the start of the service to be started is a system process; Start the service to start the setting function of the to-be-started process, and when the setting function includes a setting parameter indicating that the system has started the preset timer, determine that the system performs the to-be-start by triggering the start of the to-be-started service The event started by the process is fired. The determining that the caller that triggers the startup of the service to be started is a system process may include: the process identifier of the caller that triggers the startup of the service to be started is a preset process identifier or the user identifier is a preset user identifier, for example, the process identifier PID is -1, or a user ID UID of 1000.

其中,所述设定函数可以为startServiceLocked函数,所述设定参数可以为EXTRA_ALARM_COUNT。一般情况下,在android中,service是一种非可视化的后台运行逻辑,用于为其它应用提供后台运行服务,可以称为服务。当某一个应用需要执行一段业务逻辑,但又不想在前台可视化时,可通过应用上下文调用startService函数启动服务,来调用起一个service,这个service可以是该应用自身的,也可以是另一个应用的service。如果有其它的应用需要调用一个service时,会向系统发出请求,系统会检查service所在的进程是否己经启动,如果没有启动,就需要启动service所在的进程。在android中,通过应用上下文调用startService函数绑定服务时,最终会调用到系统代码ActiveServices中的startServiceLocked函数,如果service所在的进程不存在,会在该方法中会去启动一个新的进程。在startServiceLocked函数中会传入调用者属性信息以及Intent参数。若调用者为系统进程,且Intent中携带有Intent.EXTRA_ALARM_COUNT,则说明系统通过触发待启动服务启动来进行待启动进程启动的事件被触发,即通过系统定时器唤醒待启动服务来启动待启动进程的事件被触发。The setting function may be the startServiceLocked function, and the setting parameter may be EXTRA_ALARM_COUNT. In general, in android, service is a non-visual background running logic used to provide background running services for other applications, which can be called services. When an application needs to execute a piece of business logic, but does not want to visualize it in the foreground, it can call the startService function through the application context to start the service to call a service. This service can be the application itself or another application. service. If another application needs to call a service, it will send a request to the system, and the system will check whether the process where the service is located has been started. If it is not started, it needs to start the process where the service is located. In android, when the startService function is called through the application context to bind the service, the startServiceLocked function in the system code ActiveServices will eventually be called. If the process where the service is located does not exist, a new process will be started in this method. In the startServiceLocked function, the caller attribute information and Intent parameters are passed in. If the caller is a system process and the Intent carries Intent.EXTRA_ALARM_COUNT, it means that the system triggers the event to start the process to be started by triggering the start of the service to be started, that is, the system timer wakes up the service to be started to start the process to be started. event is triggered.

步骤102、获取所述待启动进程的属性信息。Step 102: Obtain attribute information of the process to be started.

其中,所述待启动进程的属性信息可以包括进程标识、待启动服务名称、用户标识和应用包名。所述应用包名为待启动进程所属应用程序的包名。Wherein, the attribute information of the to-be-started process may include a process identifier, a to-be-started service name, a user identifier, and an application package name. The application package name is the package name of the application to which the process to be started belongs.

步骤103、在所述属性信息满足禁止待启动进程进行启动的条件时,禁止所述待启动进程进行启动。Step 103: When the attribute information satisfies the condition for prohibiting the process to be started from being started, prohibit the process to be started from being started.

若所述属性信息满足禁止待启动进程进行启动的条件,则禁止所述待启动进程进行启动,以防止第三方应用通过系统定时器唤醒待启动服务的进程保活方式来启动待启动进程。If the attribute information satisfies the condition for prohibiting the to-be-started process from being started, the to-be-started process is prohibited from being started, so as to prevent a third-party application from starting the to-be-started process by using a system timer to wake up the to-be-started service's process keep-alive method.

进一步的,还可以包括:若所述属性信息不满足禁止待启动进程进行启动的条件,则可以控制所述待启动进程进行启动。Further, it may further include: if the attribute information does not satisfy the condition for prohibiting the start of the process to be started, the process to be started may be controlled to be started.

本实施例提供的进程启动的管控方法,通过在检测到设定定时器达到设定间隔时间时,确定系统通过触发待启动服务启动来进行待启动进程启动的事件被触发之后,获取待启动进程的属性信息,若属性信息满足禁止待启动进程进行启动的条件,则禁止待启动进程进行启动,实现了禁止通过定时启动服务来自启动进程,可以合理的管控进程的启动操作,节省了移动终端的运行内存和电量,提升了移动终端运行的流畅度。The method for managing and controlling process startup provided by the present embodiment obtains the process to be started after the system determines that the event that the system starts the process to be started by triggering the startup of the service to be started is triggered when it is detected that the set timer reaches the set interval time. If the attribute information satisfies the conditions for prohibiting the process to be started from being started, the process to be started is prohibited from starting, which realizes that it is forbidden to start the process by starting the service regularly, and the start operation of the process can be reasonably controlled, saving the mobile terminal's Running memory and power, improve the smoothness of mobile terminal operation.

图2给出了本申请实施例提供的另一种进程启动的管控方法的流程图。如图2所示,本实施例提供的方法包括以下步骤:FIG. 2 is a flowchart of another process startup management and control method provided by an embodiment of the present application. As shown in Figure 2, the method provided by this embodiment includes the following steps:

步骤201、在检测到预设定时器达到设定间隔时间时,确定触发待启动服务启动的调用者为系统进程。Step 201: When it is detected that the preset timer reaches the set interval time, it is determined that the caller that triggers the startup of the service to be started is the system process.

步骤202、在检测到系统进程调用用于通过启动待启动服务来启动所述待启动进程的设定函数,且所述设定函数中包含表示系统已开启所述预设定时器的设定参数时,确定系统通过触发待启动服务启动来进行待启动进程启动的事件被触发。Step 202, when it is detected that the system process calls a setting function for starting the to-be-started process by starting the to-be-started service, and the setting function includes a setting parameter indicating that the system has started the preset timer When , it is determined that the event that the system starts the process to be started by triggering the start of the service to be started is triggered.

步骤203、获取所述待启动进程的属性信息。所述属性信息可以包括进程标识、待启动服务名称、用户标识和应用包名。Step 203: Obtain attribute information of the process to be started. The attribute information may include process identification, service name to be started, user identification and application package name.

步骤204、判断所述属性信息是否满足禁止待启动进程进行启动的条件,若是,则执行步骤205,否则执行步骤206。Step 204 , determine whether the attribute information satisfies the condition for prohibiting the start of the process to be started, if yes, go to step 205 , otherwise go to step 206 .

若所述属性信息满足禁止待启动进程进行启动的条件,则禁止所述待启动进程进行启动。If the attribute information satisfies the condition for prohibiting the process to be started from being started, the process to be started is prohibited from being started.

可选的,若所述属性信息满足下述所有条件,则禁止所述待启动进程进行启动:(1)所述用户标识与后台运行进程的用户标识都不同;(2)所述待启动服务名称不在第一设定白名单中;(3)所述应用包名不在第二设定白名单中;(4)所述待启动进程所属应用程序的自启动开关未开启。Optionally, if the attribute information satisfies all of the following conditions, the process to be started is prohibited from starting: (1) the user ID of the user ID and the user ID of the background running process are different; (2) the service to be started is different; The name is not in the first set white list; (3) the application package name is not in the second set white list; (4) the self-start switch of the application to which the process to be started belongs is not turned on.

需要说明的是,在判断所述属性信息是否满足上述4个所有的条件时,可以这样实施:判断是否满足条件(1),若不满足(1)则执行步骤206,若满足则继续判断是否满足条件(2),若不满足(2)则执行步骤206,若满足则继续判断是否满足条件(3),若不满足(3)则执行步骤206,若满足则继续判断是否满足(4),若不满足(4)则执行步骤206,若满足则执行步骤205。其中,也可设置判断上述4个条件中的一个或者多个条件是否满足,本实施例对此并不进行限制。例如,可设置若所述属性信息满足条件(1)和(2),则禁止所述待启动进程进行启动,又例如,可设置若所述属性信息满足条件(1)、(2)和(3),则禁止所述待启动进程进行启动。It should be noted that when judging whether the attribute information satisfies all of the above four conditions, it can be implemented as follows: judging whether the condition (1) is met, if not meeting (1), execute step 206, and if so, continue to judge whether Satisfy condition (2), if not, go to step 206, if so, continue to judge whether condition (3) is met, if not, go to step 206, if so, continue to judge whether (4) is met , if (4) is not satisfied, go to step 206, and if so, go to step 205. Wherein, it may also be set to determine whether one or more of the above-mentioned four conditions are satisfied, which is not limited in this embodiment. For example, it can be set that if the attribute information satisfies conditions (1) and (2), the to-be-started process is prohibited from being started. For another example, it can be set that if the attribute information satisfies conditions (1), (2) and ( 3), the process to be started is prohibited from being started.

其中,可以从服务器或者终端本地获取所述第一设定白名单和第二设定白名单,所述第一设定白名单和第二设定白名单在终端本地存储的方式包括文件方式存储或者数据库方式存储。The first set whitelist and the second set whitelist may be obtained locally from the server or the terminal, and the local storage of the first set whitelist and the second set whitelist in the terminal includes file storage. Or stored in a database.

可选的,还包括:若所述属性信息满足下述条件的至少一项,则允许所述待启动进程进行启动:所述用户标识与后台运行进程的用户标识相同;所述待启动服务名称在第一设定白名单中;所述应用包名在第二设定白名单中;所述待启动进程所属应用程序的自启动开关已开启。示例性的,若待启动进程的用户标识与后台运行进程的用户标识相同,则说明待启动进程所属的应用程序已经在后台运行了,那么可以不再对该待启动进程在进行管控,可以允许该待启动进程进行启动;又示例性的,若所述待启动服务在第一设定白名单中或者所述应用包名在第二设定白名单中或者所属应用程序的自启动开关已开启,则说明该待启动进程是预先设置的允许自启动的进程,则当前可以允许该待启动进程进行启动。所述自启动开关可以为第三方应用例如软件管家或者系统设置选项中的开关,用户可手动开启应用程序的自启动开关。Optionally, it also includes: if the attribute information satisfies at least one of the following conditions, allowing the process to be started to start: the user ID is the same as the user ID of the background running process; the name of the service to be started In the first whitelist set; the application package name is in the second whitelist; the self-start switch of the application to which the process to be started belongs has been turned on. Exemplarily, if the user ID of the process to be started is the same as the user ID of the process running in the background, it means that the application to which the process to be started belongs is already running in the background, then the process to be started can no longer be managed and controlled, and the process can be allowed. The to-be-started process is started; in another example, if the to-be-started service is in the first set whitelist or the application package name is in the second set whitelist, or the self-start switch of the application to which it belongs is turned on , it means that the to-be-started process is a preset process that allows self-starting, and the to-be-started process can currently be allowed to start. The self-starting switch may be a third-party application such as a software housekeeper or a switch in a system setting option, and the user can manually turn on the self-starting switch of the application.

步骤205、禁止所述待启动进程进行启动。Step 205 , prohibiting the to-be-started process from starting.

其中,在禁止所述待启动进程进行启动之后,还包括:控制所述设定函数返回空值,避免出错。Wherein, after prohibiting the to-be-started process from starting, the method further includes: controlling the setting function to return a null value to avoid errors.

步骤206、控制所述待启动进程进行启动。Step 206: Control the to-be-started process to start.

步骤207、将所述系统进程的应用包名和所述待启动进程的应用包名进行保存,作为拦截记录,并向用户展示所述拦截记录。Step 207: Save the application package name of the system process and the application package name of the to-be-started process as interception records, and display the interception records to the user.

可选的,在检测到预设定时器达到设定间隔时间时,确定系统通过触发待启动服务启动来进行待启动进程启动的事件被触发之前,还可以包括:若待启动进程所属应用程序为系统内置应用,则允许所述待启动进程启动。Optionally, when it is detected that the preset timer reaches the set interval time, before determining that the event that the system starts the process to be started by triggering the start of the service to be started is triggered, it may further include: if the application to which the process to be started belongs is: For built-in applications in the system, the to-be-started process is allowed to start.

本实施例提供的方法,通过在检测到预设定时器达到设定间隔时间时,确定触发待启动服务启动的调用者为系统进程,在检测到系统进程调用用于通过启动待启动服务来启动所述待启动进程的设定函数,且所述设定函数中包含表示系统已开启所述预设定时器的设定参数时,确定系统通过触发待启动服务启动来进行待启动进程启动的事件被触发,获取所述待启动进程的属性信息,若所述属性信息满足禁止待启动进程进行启动的条件,则禁止所述待启动进程进行启动,实现了禁止通过系统定时器唤醒待启动服务来自启动待启动进程,禁止将满足禁止自启动条件的进程进行保活,可以合理的管控进程的启动操作,节省了移动终端的运行内存和电量,提升了移动终端运行的流畅度。In the method provided by this embodiment, when it is detected that the preset timer reaches the set interval time, it is determined that the caller that triggers the start of the service to be started is the system process, and when it is detected that the system process calls the call for starting the service to be started by starting the service to be started. The setting function of the process to be started, and when the setting function includes a setting parameter indicating that the preset timer has been started by the system, it is determined that the system starts the process to be started by triggering the start of the service to be started. is triggered to obtain the attribute information of the to-be-started process, and if the attribute information satisfies the conditions for prohibiting the to-be-started process from starting, the to-be-started process is prohibited from starting, which realizes that it is forbidden to wake up the to-be-started service through the system timer. Starting the process to be started, and prohibiting the process of meeting the self-start prohibition condition from being kept alive, can reasonably control the start operation of the process, save the running memory and power of the mobile terminal, and improve the smoothness of the mobile terminal.

图3为本申请实施例提供的一种进程启动的管控装置的结构示意图,该装置可由软件和/或硬件实现,集成在移动终端中。如图3所示,该装置包括进程启动事件触发模块31、进程属性获取模块32和进程启动禁止模块33。FIG. 3 is a schematic structural diagram of a process-initiated management and control device according to an embodiment of the present application. The device may be implemented by software and/or hardware and integrated in a mobile terminal. As shown in FIG. 3 , the apparatus includes a process startup event triggering module 31 , a process attribute acquiring module 32 and a process startup prohibiting module 33 .

所述进程启动事件触发模块31,用于在检测到预设定时器达到设定间隔时间时,确定系统通过触发待启动服务启动来进行待启动进程启动的事件被触发,所述预设定时器用于定时触发待启动服务进行启动,所述待启动进程为待启动服务对应的进程;The process start event triggering module 31 is used to determine that the system starts an event to start the process to be started by triggering the start of the service to be started when it is detected that the preset timer reaches the set interval time, and the preset timer is used. Trigger the to-be-started service to start at a regular time, and the to-be-started process is a process corresponding to the to-be-started service;

所述进程属性获取模块32,用于获取所述待启动进程的属性信息;The process attribute acquisition module 32 is configured to acquire attribute information of the to-be-started process;

所述进程启动禁止模块33,用于若所述属性信息满足禁止待启动进程进行启动的条件,则禁止所述待启动进程进行启动。The process startup prohibition module 33 is configured to prohibit the to-be-started process from starting if the attribute information satisfies the condition for prohibiting the to-be-started process from starting.

本实施例提供的装置,通过在检测到设定定时器达到设定间隔时间时,确定系统通过触发待启动服务启动来进行待启动进程启动的事件被触发之后,获取待启动进程的属性信息,若属性信息满足禁止待启动进程进行启动的条件,则禁止待启动进程进行启动,实现了禁止通过定时启动服务来自启动进程,可以合理的管控进程的启动操作,节省了移动终端的运行内存和电量,提升了移动终端运行的流畅度。The device provided in this embodiment acquires attribute information of the process to be started after determining that the system triggers the start of the service to be started to start the process to be started after the event is triggered when it is detected that the set timer reaches the set interval time, If the attribute information satisfies the conditions for prohibiting the process to be started from being started, the process to be started is prohibited from being started, which realizes that it is forbidden to start the process by starting the service regularly, and the start operation of the process can be reasonably controlled, which saves the running memory and power of the mobile terminal. , which improves the smoothness of mobile terminal operation.

可选的,所述进程启动事件触发模块确定系统通过触发待启动服务启动来进行待启动进程启动的事件被触发包括:Optionally, the process startup event triggering module determines that the event that the system starts the to-be-started process by triggering the to-be-started service to start is triggered, including:

在检测到系统进程调用用于通过启动待启动服务来启动所述待启动进程的设定函数,且所述设定函数中包含表示系统已开启所述预设定时器的设定参数时,确定系统通过触发待启动服务启动来进行待启动进程启动的事件被触发。When it is detected that a system process calls a setting function for starting the to-be-started process by starting the service to be started, and the setting function includes a setting parameter indicating that the system has started the preset timer, determine The event that the system starts the process to be started by triggering the start of the service to be started is triggered.

可选的,所述属性信息包括进程标识、待启动服务名称、用户标识和应用包名,所述进程启动禁止模块具体用于:Optionally, the attribute information includes a process identifier, a service name to be started, a user identifier and an application package name, and the process startup prohibition module is specifically used for:

若所述属性信息满足下述所有条件,则禁止所述待启动进程进行启动:If the attribute information satisfies all of the following conditions, the to-be-started process is prohibited from starting:

所述用户标识与后台运行进程的用户标识都不同;The user ID is different from the user ID of the background running process;

所述待启动服务名称不在第一设定白名单中;The name of the service to be started is not in the first whitelist;

所述应用包名不在第二设定白名单中;The application package name is not in the second set whitelist;

所述待启动进程所属应用程序的自启动开关未开启。The self-start switch of the application program to which the process to be started belongs is not turned on.

可选的,所述装置还包括:Optionally, the device further includes:

第一进程启动模块,用于若所述属性信息满足下述条件的至少一项,则允许所述待启动进程进行启动:A first process startup module, configured to allow the to-be-started process to start if the attribute information satisfies at least one of the following conditions:

所述用户标识与后台运行进程的用户标识相同;The user ID is the same as the user ID of the background running process;

所述待启动服务名称在第一设定白名单中;The name of the service to be started is in the first set whitelist;

所述应用包名在第二设定白名单中;The application package name is in the second set whitelist;

所述待启动进程所属应用程序的自启动开关已开启。The self-start switch of the application program to which the process to be started belongs has been turned on.

可选的,所述装置还包括:Optionally, the device further includes:

从服务器或者终端本地获取所述第一设定白名单和第二设定白名单,所述第一设定白名单和第二设定白名单在终端本地存储的方式包括文件方式存储或者数据库方式存储。The first set whitelist and the second set whitelist are obtained locally from the server or the terminal, and the local storage of the first set whitelist and the second set whitelist in the terminal includes file storage or database storage. storage.

可选的,所述装置还包括:Optionally, the device further includes:

函数返回值控制模块,用于在禁止所述待启动进程进行启动之后,控制所述设定函数返回空值。The function return value control module is configured to control the setting function to return a null value after the process to be started is prohibited from being started.

可选的,所述装置还包括:Optionally, the device further includes:

拦截记录保存模块,用于在禁止所述待启动进程进行启动之后,将所述系统进程的应用包名和所述待启动进程的应用包名进行保存,作为拦截记录,并向用户展示所述拦截记录。The interception record saving module is used to save the application package name of the system process and the application package name of the to-be-started process as interception records after prohibiting the to-be-started process from being started, and to show the interception to the user Record.

可选的,所述装置还包括:Optionally, the device further includes:

第二进程启动模块,用于若所述待启动进程所属应用程序为系统内置应用,则允许所述待启动进程启动。The second process startup module is configured to allow the to-be-started process to be started if the application to which the to-be-started process belongs is a system built-in application.

本申请实施例还提供一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行一种进程启动的管控方法,该方法包括:Embodiments of the present application also provide a storage medium containing computer-executable instructions, where the computer-executable instructions are used to execute a process startup management and control method when executed by a computer processor, and the method includes:

在检测到预设定时器达到设定间隔时间时,确定系统通过触发待启动服务启动来进行待启动进程启动的事件被触发,所述预设定时器用于定时触发待启动服务进行启动,所述待启动进程为待启动服务对应的进程;When it is detected that the preset timer reaches the set interval time, it is determined that the event that the system starts the process to be started by triggering the start of the service to be started is triggered, and the preset timer is used to regularly trigger the service to be started to start, and the The process to be started is the process corresponding to the service to be started;

获取所述待启动进程的属性信息;obtaining attribute information of the process to be started;

若所述属性信息满足禁止待启动进程进行启动的条件,则禁止所述待启动进程进行启动。If the attribute information satisfies the condition for prohibiting the process to be started from being started, the process to be started is prohibited from being started.

存储介质——任何的各种类型的存储器设备或存储设备。术语“存储介质”旨在包括:安装介质,例如CD-ROM、软盘或磁带装置;计算机系统存储器或随机存取存储器,诸如DRAM、DDR RAM、SRAM、EDO RAM,兰巴斯(Rambus)RAM等;非易失性存储器,诸如闪存、磁介质(例如硬盘或光存储);寄存器或其它相似类型的存储器元件等。存储介质可以还包括其它类型的存储器或其组合。另外,存储介质可以位于程序在其中被执行的第一计算机系统中,或者可以位于不同的第二计算机系统中,第二计算机系统通过网络(诸如因特网)连接到第一计算机系统。第二计算机系统可以提供程序指令给第一计算机用于执行。术语“存储介质”可以包括可以驻留在不同位置中(例如在通过网络连接的不同计算机系统中)的两个或更多存储介质。存储介质可以存储可由一个或多个处理器执行的程序指令(例如具体实现为计算机程序)。storage medium - any of various types of memory devices or storage devices. The term "storage medium" is intended to include: installation media, such as CD-ROMs, floppy disks, or tape devices; computer system memory or random access memory, such as DRAM, DDR RAM, SRAM, EDO RAM, Rambus RAM, etc. ; non-volatile memory, such as flash memory, magnetic media (eg hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in the first computer system in which the program is executed, or may be located in a second, different computer system connected to the first computer system through a network such as the Internet. The second computer system may provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations (eg, in different computer systems connected by a network). The storage medium may store program instructions (eg, embodied as a computer program) executable by one or more processors.

当然,本申请实施例所提供的一种包含计算机可执行指令的存储介质,其计算机可执行指令不限于如上所述的进程启动的管控操作,还可以执行本申请任意实施例所提供的进程启动的管控方法中的相关操作。Of course, a storage medium containing computer-executable instructions provided by the embodiments of the present application, the computer-executable instructions of which are not limited to the management and control operations of the process startup as described above, and can also execute the process startup provided by any embodiment of the present application. related operations in the management and control methods.

本申请实施例提供了一种移动终端,该移动终端中可集成本申请实施例提供的进程启动的管控装置。图4为本申请实施例提供的一种移动终端的结构示意图。移动终端400可以包括:存储器401,处理器402及存储在存储器401上并可在处理器402运行的计算机程序,所述处理器402执行所述计算机程序时实现如本申请实施例所述的进程启动的管控方法。An embodiment of the present application provides a mobile terminal, and the mobile terminal can integrate the management and control apparatus for starting a process provided by the embodiment of the present application. FIG. 4 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application. The mobile terminal 400 may include: a memory 401, a processor 402, and a computer program stored in the memory 401 and executed on the processor 402, and the processor 402 implements the process described in the embodiments of the present application when the processor 402 executes the computer program Startup control method.

本申请实施例提供的移动终端,实现了禁止通过定时启动服务来自启动进程,可以合理的管控进程的启动操作,节省了移动终端的运行内存和电量,提升了移动终端运行的流畅度。The mobile terminal provided by the embodiments of the present application realizes that it is forbidden to start the process by starting the service regularly, and the start operation of the process can be reasonably controlled, which saves the running memory and power of the mobile terminal, and improves the running smoothness of the mobile terminal.

图5为本申请实施例提供的另一种移动终端的结构示意图,如图5所示,该移动终端可以包括:存储器501、中央处理器(Central Processing Unit,CPU)502(又称处理器,以下简称CPU)、所述存储器501,用于存储可执行程序代码;所述处理器502通过读取所述存储器501中存储的可执行程序代码来运行与所述可执行程序代码对应的程序,以用于执行:在检测到预设定时器达到设定间隔时间时,确定系统通过触发待启动服务启动来进行待启动进程启动的事件被触发,所述预设定时器用于定时触发待启动服务进行启动,所述待启动进程为待启动服务对应的进程;获取所述待启动进程的属性信息;若所述属性信息满足禁止待启动进程进行启动的条件,则禁止所述待启动进程进行启动。FIG. 5 is a schematic structural diagram of another mobile terminal provided by an embodiment of the application. As shown in FIG. 5 , the mobile terminal may include: a memory 501, a central processing unit (Central Processing Unit, CPU) 502 (also known as a processor, Hereinafter referred to as CPU), the memory 501 is used to store executable program codes; the processor 502 runs a program corresponding to the executable program codes by reading the executable program codes stored in the memory 501, For execution: when it is detected that the preset timer reaches the set interval time, it is determined that the event that the system starts the process to be started by triggering the start of the service to be started is triggered, and the preset timer is used to regularly trigger the service to be started. Start, the to-be-started process is the process corresponding to the to-be-started service; obtain attribute information of the to-be-started process; if the attribute information satisfies the conditions for prohibiting the to-be-started process from starting, prohibit the to-be-started process from starting .

所述移动终端还包括:外设接口503、RF(Radio Frequency,射频)电路505、音频电路506、扬声器511、电源管理芯片508、输入/输出(I/O)子系统509、触摸屏512、其他输入/控制设备510以及外部端口504,这些部件通过一个或多个通信总线或信号线507来通信。The mobile terminal further includes: a peripheral interface 503, an RF (Radio Frequency, radio frequency) circuit 505, an audio circuit 506, a speaker 511, a power management chip 508, an input/output (I/O) subsystem 509, a touch screen 512, and others Input/control devices 510 and external ports 504, these components communicate through one or more communication buses or signal lines 507.

应该理解的是,图示移动终端500仅仅是移动终端的一个范例,并且移动终端500可以具有比图中所示出的更多的或者更少的部件,可以组合两个或更多的部件,或者可以具有不同的部件配置。图中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。It should be understood that the illustrated mobile terminal 500 is merely an example of a mobile terminal, and that the mobile terminal 500 may have more or fewer components than those shown in the figures, two or more components may be combined, Or can have different component configurations. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.

下面就本实施例提供的用于管控进程启动的移动终端进行详细的描述,该移动终端以手机为例。The following describes the mobile terminal provided in this embodiment for starting the management and control process in detail, and the mobile terminal is a mobile phone as an example.

存储器501,所述存储器501可以被CPU502、外设接口503等访问,所述存储器501可以包括高速随机存取存储器,还可以包括非易失性存储器,例如一个或多个磁盘存储器件、闪存器件、或其他易失性固态存储器件。Memory 501, which can be accessed by CPU 502, peripheral interface 503, etc., said memory 501 can include high-speed random access memory, and can also include non-volatile memory, such as one or more disk storage devices, flash memory devices , or other volatile solid-state storage devices.

外设接口503,所述外设接口503可以将设备的输入和输出外设连接到CPU502和存储器501。A peripheral interface 503 that can connect the input and output peripherals of the device to the CPU 502 and the memory 501 .

I/O子系统509,所述I/O子系统509可以将设备上的输入输出外设,例如触摸屏512和其他输入/控制设备510,连接到外设接口503。I/O子系统509可以包括显示控制器5091和用于控制其他输入/控制设备510的一个或多个输入控制器5092。其中,一个或多个输入控制器5092从其他输入/控制设备510接收电信号或者向其他输入/控制设备510发送电信号,其他输入/控制设备510可以包括物理按钮(按压按钮、摇臂按钮等)、拨号盘、滑动开关、操纵杆、点击滚轮。值得说明的是,输入控制器5092可以与以下任一个连接:键盘、红外端口、USB接口以及诸如鼠标的指示设备。I/O subsystem 509 , which may connect input and output peripherals on the device, such as touch screen 512 and other input/control devices 510 , to peripherals interface 503 . The I/O subsystem 509 may include a display controller 5091 and one or more input controllers 5092 for controlling other input/control devices 510 . Among them, one or more input controllers 5092 receive electrical signals from or send electrical signals to other input/control devices 510, which may include physical buttons (push buttons, rocker buttons, etc. ), dial pad, slide switch, joystick, click wheel. Notably, the input controller 5092 can be connected to any of the following: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.

触摸屏512,所述触摸屏512是用户终端与用户之间的输入接口和输出接口,将可视输出显示给用户,可视输出可以包括图形、文本、图标、视频等。The touch screen 512, which is an input interface and an output interface between the user terminal and the user, displays visual output to the user, and the visual output may include graphics, text, icons, videos, and the like.

I/O子系统509中的显示控制器5091从触摸屏512接收电信号或者向触摸屏512发送电信号。触摸屏512检测触摸屏上的接触,显示控制器5091将检测到的接触转换为与显示在触摸屏512上的用户界面对象的交互,即实现人机交互,显示在触摸屏512上的用户界面对象可以是运行游戏的图标、联网到相应网络的图标等。值得说明的是,设备还可以包括光鼠,光鼠是不显示可视输出的触摸敏感表面,或者是由触摸屏形成的触摸敏感表面的延伸。Display controller 5091 in I/O subsystem 509 receives electrical signals from touch screen 512 or sends electrical signals to touch screen 512 . The touch screen 512 detects the contact on the touch screen, and the display controller 5091 converts the detected contact into interaction with the user interface object displayed on the touch screen 512, that is, to realize human-computer interaction, and the user interface object displayed on the touch screen 512 can be run. Icons for games, icons for connecting to the corresponding network, etc. It is worth noting that the device may also include a light mouse, which is a touch-sensitive surface that does not display visual output, or an extension of the touch-sensitive surface formed by a touch screen.

RF电路505,主要用于建立手机与无线网络(即网络侧)的通信,实现手机与无线网络的数据接收和发送。例如收发短信息、电子邮件等。具体地,RF电路505接收并发送RF信号,RF信号也称为电磁信号,RF电路505将电信号转换为电磁信号或将电磁信号转换为电信号,并且通过该电磁信号与通信网络以及其他设备进行通信。RF电路505可以包括用于执行这些功能的已知电路,其包括但不限于天线系统、RF收发机、一个或多个放大器、调谐器、一个或多个振荡器、数字信号处理器、CODEC(COder-DECoder,编译码器)芯片组、用户标识模块(Subscriber Identity Module,SIM)等等。The RF circuit 505 is mainly used to establish the communication between the mobile phone and the wireless network (ie, the network side), and realize the data reception and transmission between the mobile phone and the wireless network. Such as sending and receiving text messages, e-mails, etc. Specifically, the RF circuit 505 receives and transmits RF signals, also known as electromagnetic signals, the RF circuit 505 converts electrical signals into electromagnetic signals or converts electromagnetic signals into electrical signals, and communicates with communication networks and other devices through the electromagnetic signals to communicate. RF circuitry 505 may include known circuitry for performing these functions including, but not limited to, antenna systems, RF transceivers, one or more amplifiers, tuners, one or more oscillators, digital signal processors, CODECs ( COder-DECoder, codec) chip set, subscriber identity module (Subscriber Identity Module, SIM) and so on.

音频电路506,主要用于从外设接口503接收音频数据,将该音频数据转换为电信号,并且将该电信号发送给扬声器511。The audio circuit 506 is mainly used for receiving audio data from the peripheral interface 503 , converting the audio data into an electrical signal, and sending the electrical signal to the speaker 511 .

扬声器511,用于将手机通过RF电路505从无线网络接收的语音信号,还原为声音并向用户播放该声音。The speaker 511 is used to restore the voice signal received by the mobile phone from the wireless network through the RF circuit 505 to sound and play the sound to the user.

电源管理芯片508,用于为CPU502、I/O子系统及外设接口503所连接的硬件进行供电及电源管理。The power management chip 508 is used for power supply and power management for the hardware connected to the CPU 502 , the I/O subsystem and the peripheral interface 503 .

上述实施例中提供的进程启动的管控装置、存储介质及移动终端可执行本申请任意实施例所提供的进程启动的管控方法,具备执行该方法相应的功能模块和有益效果。未在上述实施例中详尽描述的技术细节,可参见本申请任意实施例所提供的进程启动的管控方法。The control device, storage medium and mobile terminal for process initiation provided in the above embodiments can execute the process initiation control method provided by any embodiment of the present application, and have corresponding functional modules and beneficial effects for executing the method. For technical details not described in detail in the foregoing embodiments, reference may be made to the control method for process startup provided by any embodiment of the present application.

上述仅为本申请的较佳实施例及所运用的技术原理。本申请不限于这里所述的特定实施例,对本领域技术人员来说能够进行的各种明显变化、重新调整及替代均不会脱离本申请的保护范围。因此,虽然通过以上实施例对本申请进行了较为详细的说明,但是本申请不仅仅限于以上实施例,在不脱离本申请构思的情况下,还可以包括更多其他等效实施例,而本申请的范围由权利要求的范围决定。The above are only the preferred embodiments of the present application and the applied technical principles. The present application is not limited to the specific embodiments described herein, and various obvious changes, readjustments and substitutions that can be made by those skilled in the art will not depart from the protection scope of the present application. Therefore, although the present application has been described in detail through the above embodiments, the present application is not limited to the above embodiments, and can also include more other equivalent embodiments without departing from the concept of the present application. The scope is determined by the scope of the claims.

Claims (10)

1. A process starting management and control method is characterized by comprising the following steps:
when detecting that a preset timer reaches a set interval time, determining that an event for starting a process to be started by triggering the service to be started by a system is triggered, wherein the preset timer is used for triggering the service to be started at regular time, and the process to be started is a process corresponding to the service to be started; the preset timer is a timer which is preset by a system and used for triggering the service to be started in a timed wake-up mode or a timer set by a third-party application program;
acquiring attribute information of the process to be started;
if the attribute information meets the condition of forbidding the process to be started to start, forbidding the process to be started to start; if the attribute information does not meet the condition of forbidding the process to be started, controlling the process to be started;
the attribute information includes a process identifier, a name of a service to be started, a user identifier and an application package name, and if the attribute information satisfies a condition for prohibiting the process to be started from being started, the step of prohibiting the process to be started from being started includes:
if the attribute information meets all the following conditions, the process to be started is prohibited from being started:
the user identification is different from the user identification of the background running process;
the name of the service to be started is not in a first set white list;
the application package name is not in a second set white list;
and the self-starting switch of the application program to which the process to be started belongs is not started.
2. The method of claim 1, wherein determining that an event for a system to perform a startup of a to-be-started process by triggering a startup of a to-be-started service is triggered comprises:
when detecting that a system process calls a setting function for starting the process to be started by starting the service to be started and the setting function comprises a setting parameter indicating that the system starts the preset timer, determining that an event that the system starts the process to be started by triggering the service to be started is triggered.
3. The method of claim 1, further comprising:
if the attribute information meets at least one of the following conditions, allowing the process to be started:
the user identification is the same as that of the background running process;
the name of the service to be started is in a first set white list;
the application package name is in a second set white list;
and the self-starting switch of the application program of the process to be started is opened.
4. The method of claim 1, further comprising:
and locally acquiring the first set white list and the second set white list from a server or a terminal, wherein the local storage modes of the first set white list and the second set white list in the terminal comprise a file mode storage mode or a database mode storage.
5. The method according to claim 2, further comprising, after prohibiting the process to be started from starting:
and controlling the setting function to return a null value.
6. The method according to claim 2, further comprising, after prohibiting the process to be started from starting:
and storing the application package name of the system process and the application package name of the process to be started as an interception record, and displaying the interception record to a user.
7. The method of claim 1, further comprising:
and if the application program to which the process to be started belongs is the application built in the system, allowing the process to be started.
8. A process starting management and control device is characterized by comprising:
the system comprises a process starting event triggering module, a process starting event triggering module and a process starting module, wherein the process starting event triggering module is used for determining that an event for starting a process to be started by triggering a service to be started is triggered when a preset timer is detected to reach a set interval time, the preset timer is used for triggering the service to be started at fixed time, and the process to be started is a process corresponding to the service to be started; the preset timer is a timer which is preset by a system and used for triggering the service to be started in a timed wake-up mode or a timer set by a third-party application program;
the process attribute acquisition module is used for acquiring the attribute information of the process to be started;
the process starting prohibition module is used for prohibiting the process to be started from being started if the attribute information meets the condition of prohibiting the process to be started from being started;
the first process starting module is used for allowing the process to be started if the attribute information does not meet the condition of forbidding the process to be started;
the attribute information includes a process identifier, a name of a service to be started, a user identifier and an application package name, and if the attribute information satisfies a condition for prohibiting the process to be started from being started, the step of prohibiting the process to be started from being started includes:
if the attribute information meets all the following conditions, the process to be started is prohibited from being started:
the user identification is different from the user identification of the background running process;
the name of the service to be started is not in a first set white list;
the application package name is not in a second set white list;
and the self-starting switch of the application program to which the process to be started belongs is not started.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a method of governing the start of a process according to any one of claims 1 to 7.
10. A mobile terminal comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method for managing the start of a process according to any one of claims 1 to 7 when executing the computer program.
CN201711167209.7A 2017-11-21 2017-11-21 Process starting control method and device, storage medium and mobile terminal Active CN107844341B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711167209.7A CN107844341B (en) 2017-11-21 2017-11-21 Process starting control method and device, storage medium and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711167209.7A CN107844341B (en) 2017-11-21 2017-11-21 Process starting control method and device, storage medium and mobile terminal

Publications (2)

Publication Number Publication Date
CN107844341A CN107844341A (en) 2018-03-27
CN107844341B true CN107844341B (en) 2020-09-29

Family

ID=61679966

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711167209.7A Active CN107844341B (en) 2017-11-21 2017-11-21 Process starting control method and device, storage medium and mobile terminal

Country Status (1)

Country Link
CN (1) CN107844341B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108710534A (en) * 2018-05-22 2018-10-26 广州优视网络科技有限公司 The tune of multi-process plays method, apparatus, terminal device and computer storage media
CN109582530B (en) * 2018-09-30 2024-05-14 中国平安人寿保险股份有限公司 System control method, device, computer and computer readable storage medium
CN109885354A (en) * 2019-02-18 2019-06-14 Oppo广东移动通信有限公司 Application control method, device and terminal
CN114296907A (en) * 2020-09-21 2022-04-08 华为技术有限公司 Method and device for process control
CN113157377B (en) * 2021-05-20 2023-06-27 读书郎教育科技有限公司 Method and equipment for realizing control of application part by Android system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104461725A (en) * 2014-12-30 2015-03-25 小米科技有限责任公司 Application process starting control method and device
CN105740018A (en) * 2016-01-29 2016-07-06 北京奇虎科技有限公司 Application wake-up method and apparatus

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102855430B (en) * 2012-08-23 2015-04-15 福建升腾资讯有限公司 Process blacklist and whitelist control method based on Windows system
CN105159771A (en) * 2015-09-21 2015-12-16 北京奇虎科技有限公司 Method and apparatus for processing inter-application chain type start
CN106201738B (en) * 2016-06-27 2020-09-29 北京小米移动软件有限公司 System broadcast calling method and device
CN106406944A (en) * 2016-09-05 2017-02-15 Tcl集团股份有限公司 Control method and system for forbidding self-starting of application

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104461725A (en) * 2014-12-30 2015-03-25 小米科技有限责任公司 Application process starting control method and device
CN105740018A (en) * 2016-01-29 2016-07-06 北京奇虎科技有限公司 Application wake-up method and apparatus

Also Published As

Publication number Publication date
CN107844341A (en) 2018-03-27

Similar Documents

Publication Publication Date Title
CN107844341B (en) Process starting control method and device, storage medium and mobile terminal
CN107844342B (en) Application program keep alive management and control method, device and storage medium and mobile terminal
KR102148948B1 (en) Multi tasking method of electronic apparatus and electronic apparatus thereof
US10631361B2 (en) Method and apparatus for providing user with information received by electronic device
CN107748685B (en) Application program starting control method and device, terminal equipment and storage medium
KR102395868B1 (en) Electronic device and applacation controlling method thereof
US20200396325A1 (en) Application switching method and terminal
US20150127755A1 (en) Method and apparatus for checking status of messages in electronic device
CN107943270B (en) Application service control method and device, storage medium and mobile terminal
CN107944257A (en) Control method and device for starting application in service mode, storage medium and terminal
CN106406940B (en) System upgrading method, device and terminal
CN107026933B (en) Multi-open application message management method and device and intelligent terminal
CN107748698A (en) Control method, device, storage medium and terminal for starting application in broadcast mode
CN109408465B (en) File attribution information recording method, device, storage medium and terminal
CN107027150A (en) WiFi control method, device and terminal equipment
CN107831886B (en) Control method and device for associated starting application, storage medium and intelligent terminal
CN107885588B (en) Application service control method and device, storage medium and mobile terminal
CN107423064A (en) Message processing method, device, terminal device and storage medium
CN107479700B (en) Black screen gesture control method and device, storage medium and mobile terminal
WO2015172283A1 (en) Method, device and mobile terminal for reducing power consumption
CN107957905A (en) Method and device for limiting self-starting of application, storage medium and intelligent terminal
CN110018905B (en) Information processing method, device, computer device, and computer-readable storage medium
CN109992375A (en) Information processing method, apparatus, computer device, and computer-readable storage medium
CN110602772A (en) WiFi module control method, control device, electronic device and storage medium
WO2019101107A1 (en) System notification service control method, apparatus, terminal device, and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant