CN105677401B - Application process startup method and application process startup device - Google Patents

Application process startup method and application process startup device Download PDF

Info

Publication number
CN105677401B
CN105677401B CN201511030666.2A CN201511030666A CN105677401B CN 105677401 B CN105677401 B CN 105677401B CN 201511030666 A CN201511030666 A CN 201511030666A CN 105677401 B CN105677401 B CN 105677401B
Authority
CN
China
Prior art keywords
startup
application process
function
data provider
application
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.)
Expired - Fee Related
Application number
CN201511030666.2A
Other languages
Chinese (zh)
Other versions
CN105677401A (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 CN201511030666.2A priority Critical patent/CN105677401B/en
Publication of CN105677401A publication Critical patent/CN105677401A/en
Application granted granted Critical
Publication of CN105677401B publication Critical patent/CN105677401B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44568Immediately runnable code
    • G06F9/44578Preparing or optimising for loading

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

本发明提供一种应用进程启动方法,其包括接收应用进程启动指令;通过启动管理服务中的启动进程函数,获取应用进程启动指令对应的应用进程的启动类型以及启动信息;如应用进程的启动类型为数据提供者启动方式,且应用进程的启动信息为正常启动,则通过数据提供者启动处理函数以及启动进程函数对所述应用进程进行启动;如应用进程的启动类型为数据提供者启动方式,且应用进程的启动信息为禁止启动,则不对应用进程进行启动。本发明还提供一种应用进程启动装置。本发明的应用进程启动方法及应用进程启动装置根据应用进程的启动类型以及启动信息,使用相应的函数进行应用进程的启动管理,实现了对应用进程启动的有效管理。

The present invention provides an application process startup method, which includes receiving an application process startup instruction; obtaining the startup type and startup information of the application process corresponding to the application process startup instruction through the startup process function in the startup management service; for example, the startup type of the application process is the data provider startup method, and the startup information of the application process is normal startup, then the application process is started through the data provider startup processing function and the startup process function; if the startup type of the application process is the data provider startup method, And if the startup information of the application process is forbidden to start, the application process is not started. The invention also provides a device for starting an application process. The application process startup method and the application process startup device of the present invention use corresponding functions to perform startup management of the application process according to the startup type and startup information of the application process, thereby realizing the effective management of the application process startup.

Description

应用进程启动方法及应用进程启动装置Application process startup method and application process startup device

技术领域technical field

本发明涉及应用进程控制领域,特别是涉及一种应用进程启动方法及应用进程启动装置。The invention relates to the field of application process control, in particular to an application process startup method and an application process startup device.

背景技术Background technique

在安卓系统中,所有的终端应用启动,首先都必须启动一个对应的应用进程。在安卓的系统管理服务中,均是通过Activity Manager Service(启动管理服务)系统服务中的Start Process Locked(启动进程函数)函数作为入口实现应用进程启动的。In the Android system, when all terminal applications are started, a corresponding application process must first be started. In the system management service of Android, the application process is started through the Start Process Locked (start process function) function in the Activity Manager Service (start management service) system service as an entry.

在现有技术中,某个应用可通过调用用于提供数据服务的数据提供者(ContentProvider),从而进一步调用Start Process Locked函数,实现自身应用或其他应用的进程启动。In the prior art, an application may further call the Start Process Locked function by calling a data provider (Content Provider) for providing data services, so as to start the process of its own application or other applications.

但是上述应用启动方式可能会被某些流氓应用利用,如应用A通过调用应用B的数据提供者服务,从而实现应用B的应用进程的启动;此时如果应用A被关闭,应用B同样可调用应用A的数据提供者服务,从而实现应用A的应用进程的启动。这样使得应用A和应用B的应用进程在系统中一直处于激活启动状态,导致系统资源的浪费。However, the above application startup method may be used by some rogue applications. For example, application A starts the application process of application B by calling the data provider service of application B; at this time, if application A is closed, application B can also call Application A's data provider service, so as to realize application A's application process startup. In this way, the application processes of application A and application B are always activated and started in the system, resulting in a waste of system resources.

发明内容SUMMARY OF THE INVENTION

本发明实施例提供一种可以对应用进程启动进行有效管理的应用进程启动方法及应用进程启动装置;以解决现有的应用进程启动方法及应用进程启动装置的不能对应用进程的启动进行有效管理的技术问题。The embodiments of the present invention provide an application process startup method and an application process startup device that can effectively manage the application process startup; in order to solve the problem that the existing application process startup method and application process startup device cannot effectively manage the startup of the application process technical issues.

本发明实施例提供一种应用进程启动方法,其包括:An embodiment of the present invention provides a method for starting an application process, which includes:

接收应用进程启动指令;Receive application process startup instructions;

通过启动管理服务中的启动进程函数,获取所述应用进程启动指令对应的应用进程的启动类型以及启动信息;Obtain the startup type and startup information of the application process corresponding to the application process startup instruction by using the startup process function in the startup management service;

如所述应用进程的启动类型为数据提供者启动方式,且所述应用进程的启动信息为正常启动,则通过数据提供者启动处理函数以及所述启动进程函数对所述应用进程进行启动;以及If the startup type of the application process is the data provider startup mode, and the startup information of the application process is normal startup, the application process is started through the data provider startup processing function and the startup process function; and

如所述应用进程的启动类型为数据提供者启动方式,且所述应用进程的启动信息为禁止启动,则不对所述应用进程进行启动。If the startup type of the application process is the data provider startup mode, and the startup information of the application process is startup prohibited, the application process is not started.

在本发明所述的应用进程启动方法中,所述通过数据提供者启动处理函数以及所述启动进程函数对所述应用进程进行启动的步骤具体为:In the application process startup method of the present invention, the steps of starting the application process through the data provider startup processing function and the startup process function are specifically:

通过所述数据提供者启动处理函数找到相应的数据提供者启动方式的应用进程,随后使用所述启动进程函数获取相应的资源以及内存对所述应用进程进行启动;其中所述数据提供者启动处理函数为Get Content Provider Impl函数,所述启动进程函数为StartProcess Locked函数。Find the application process in the corresponding data provider startup mode through the data provider startup processing function, and then use the startup process function to obtain the corresponding resources and memory to start the application process; wherein the data provider starts processing The function is the Get Content Provider Impl function, and the start process function is the StartProcess Locked function.

在本发明所述的应用进程启动方法中,所述通过启动管理服务中的启动进程函数,获取所述应用进程启动指令对应的应用进程的启动类型的步骤具体为:In the application process startup method of the present invention, the step of acquiring the startup type of the application process corresponding to the application process startup instruction by starting the process startup function in the management service is specifically:

通过启动管理服务中的启动进程函数的托管类型参数,获取所述应用进程启动指令对应的应用进程的启动类型,其中所述数据提供者启动方式的应用进程对应的托管类型参数为Content Provider。The startup type of the application process corresponding to the application process startup instruction is obtained through the hosting type parameter of the startup process function in the startup management service, wherein the hosting type parameter corresponding to the application process in the data provider startup mode is Content Provider.

在本发明所述的应用进程启动方法中,所述获取所述应用进程启动指令对应的应用进程的启动信息的步骤包括:In the application process startup method of the present invention, the step of acquiring startup information of the application process corresponding to the application process startup instruction includes:

根据所述应用进程的权限,获取所述应用进程启动指令对应的应用进程的启动信息,其中所述启动信息本地存储或异地云存储。According to the permission of the application process, the startup information of the application process corresponding to the application process startup instruction is acquired, wherein the startup information is stored locally or in a remote cloud storage.

在本发明所述的应用进程启动方法中,所述通过数据提供者启动处理函数以及所述启动进程函数对所述应用进程进行启动的步骤包括:In the application process startup method of the present invention, the steps of starting the application process through the data provider startup processing function and the startup process function include:

判断所述应用进程是否已经启动;determine whether the application process has been started;

如所述应用进程已经启动,则不对所述应用进程进行启动;If the application process has been started, do not start the application process;

如所述应用进程未启动,则通过数据提供者启动处理函数以及所述启动进程函数对所述应用进程进行启动。If the application process is not started, the application process is started through the data provider start processing function and the start process function.

本发明实施例还提供一种应用进程启动装置,其包括:The embodiment of the present invention also provides an application process startup device, which includes:

指令接收模块,用于接收应用进程启动指令;The instruction receiving module is used to receive the application process startup instruction;

应用进程参数获取模块,用于通过启动管理服务中的启动进程函数,获取所述应用进程启动指令对应的应用进程的启动类型以及启动信息;an application process parameter acquisition module, configured to acquire the startup type and startup information of the application process corresponding to the application process startup instruction through the startup process function in the startup management service;

正常启动模块,用于如所述应用进程的启动类型为数据提供者启动方式,且所述应用进程的启动信息为正常启动,则通过数据提供者启动处理函数以及所述启动进程函数对所述应用进程进行启动;以及The normal startup module is used for, if the startup type of the application process is the data provider startup mode, and the startup information of the application process is normal startup, the data provider startup processing function and the startup process function are used to start the process. application process to start; and

禁止启动模块,用于如所述应用进程的启动类型为数据提供者启动方式,且所述应用进程的启动信息为禁止启动,则不对所述应用进程进行启动。The startup prohibition module is configured to not start the application process if the startup type of the application process is the data provider startup mode and the startup information of the application process is startup prohibition.

在本发明所述的应用进程启动装置中,所述正常启动模块具体用于通过所述数据提供者启动处理函数找到相应的数据提供者启动方式的应用进程,随后使用所述启动进程函数获取相应的资源以及内存对所述应用进程进行启动;其中所述数据提供者启动处理函数为Get Content Provider Impl函数,所述启动进程函数为Start Process Locked函数。In the application process startup device of the present invention, the normal startup module is specifically configured to find the application process of the corresponding data provider startup mode through the data provider startup processing function, and then use the startup process function to obtain the corresponding application process. The resource and memory of the data provider start the application process; wherein the data provider start processing function is the Get Content Provider Impl function, and the start process function is the Start Process Locked function.

在本发明所述的应用进程启动装置中,所述应用进程参数获取模块具体用于通过启动管理服务中的启动进程函数的托管类型参数,获取所述应用进程启动指令对应的应用进程的启动类型,其中所述数据提供者启动方式的应用进程对应的托管类型参数为Content Provider。In the application process startup device of the present invention, the application process parameter acquisition module is specifically configured to acquire the startup type of the application process corresponding to the application process startup instruction by using the managed type parameter of the startup process function in the startup management service , wherein the hosting type parameter corresponding to the application process of the data provider startup mode is Content Provider.

在本发明所述的应用进程启动装置中,所述应用进程参数获取模块具体用于根据所述应用进程的权限,获取所述应用进程启动指令对应的应用进程的启动信息,其中所述启动信息本地存储或异地云存储。In the application process startup device of the present invention, the application process parameter acquisition module is specifically configured to acquire startup information of the application process corresponding to the application process startup instruction according to the permission of the application process, wherein the startup information Local storage or off-site cloud storage.

在本发明所述的应用进程启动装置中,所述正常启动模块包括:In the application process startup device of the present invention, the normal startup module includes:

判断单元,用于判断所述应用进程是否已经启动;a judging unit for judging whether the application process has been started;

正常启动单元,用于如所述应用进程未启动,则通过数据提供者启动处理函数以及所述启动进程函数对所述应用进程进行启动。The normal startup unit is configured to start the application process through the data provider startup processing function and the startup process function if the application process is not started.

相较于现有技术的应用进程启动方法及应用进程启动装置,本发明的应用进程启动方法及应用进程启动装置根据应用进程的启动类型以及启动信息,使用相应的函数进行应用进程的启动管理,实现了对应用进程启动的有效管理;解决了现有的应用进程启动方法及应用进程启动装置的不能对应用进程的启动进行有效管理的技术问题。Compared with the application process startup method and the application process startup device of the prior art, the application process startup method and the application process startup device of the present invention use the corresponding function to perform the startup management of the application process according to the startup type and startup information of the application process, The effective management of the application process startup is realized, and the technical problem that the existing application process startup method and the application process startup device cannot effectively manage the application process startup is solved.

附图说明Description of drawings

图1为本发明的应用进程启动方法的第一优选实施例的流程图;FIG. 1 is a flowchart of a first preferred embodiment of a method for starting an application process of the present invention;

图2为本发明的应用进程启动方法的第二优选实施例的流程图;Fig. 2 is the flow chart of the second preferred embodiment of the application process startup method of the present invention;

图3为本发明的应用进程启动方法的第二优选实施例的步骤S203的流程图;FIG. 3 is a flowchart of step S203 of the second preferred embodiment of the application process startup method of the present invention;

图4为本发明的应用进程启动装置的第一优选实施例的结构示意图;FIG. 4 is a schematic structural diagram of the first preferred embodiment of the device for starting an application process of the present invention;

图5为本发明的应用进程启动装置的第二优选实施例的结构示意图;5 is a schematic structural diagram of a second preferred embodiment of the device for starting an application process of the present invention;

图6为本发明的应用进程启动装置的第二优选实施例的正常启动模块的结构示意图;6 is a schematic structural diagram of a normal startup module of the second preferred embodiment of the application process startup device of the present invention;

图7为本发明的应用进程启动装置的第二优选实施例的禁止启动模块的结构示意图。FIG. 7 is a schematic structural diagram of the prohibiting start module of the second preferred embodiment of the device for starting an application process of the present invention.

具体实施方式Detailed ways

请参照图式,其中相同的组件符号代表相同的组件,本发明的原理是以实施在一适当的运算环境中来举例说明。以下的说明是基于所例示的本发明具体实施例,其不应被视为限制本发明未在此详述的其它具体实施例。Please refer to the drawings, in which the same reference numerals represent the same components, and the principles of the present invention are exemplified by being implemented in a suitable computing environment. The following description is based on illustrated embodiments of the invention and should not be construed as limiting other embodiments of the invention not detailed herein.

在以下的说明中,本发明的具体实施例将参考由一部或多部计算机所执行之作业的步骤及符号来说明,除非另有述明。因此,其将可了解到这些步骤及操作,其中有数次提到为由计算机执行,包括了由代表了以一结构化型式中的数据之电子信号的计算机处理单元所操纵。此操纵转换该数据或将其维持在该计算机之内存系统中的位置处,其可重新配置或另外以本领域技术人员所熟知的方式来改变该计算机之运作。该数据所维持的数据结构为该内存之实体位置,其具有由该数据格式所定义的特定特性。但是,本发明原理以上述文字来说明,其并不代表为一种限制,本领域技术人员将可了解到以下所述的多种步骤及操作亦可实施在硬件当中。In the following description, specific embodiments of the present invention will be described with reference to steps and symbols of operations performed by one or more computers, unless otherwise stated. Thus, it will be appreciated that the steps and operations, which are mentioned several times as being performed by a computer, include manipulation by a computer processing unit of electronic signals representing data in a structured format. This manipulation transforms the data or maintains it in a location in the computer's memory system, which can be reconfigured or otherwise alter the operation of the computer in a manner well known to those skilled in the art. The data structures maintained by the data are physical locations in the memory that have specific characteristics defined by the data format. However, the principles of the present invention are described by the above text, which is not meant to be a limitation. Those skilled in the art will understand that various steps and operations described below can also be implemented in hardware.

本发明的应用进程启动装置可使用各种电子设备进行实施,该电子设备包括但不限于个人计算机、服务器计算机、手持式或膝上型设备、移动设备(比如移动电话、个人数字助理(PDA)、媒体播放器等等)、多处理器系统、消费型电子设备、小型计算机、大型计算机、包括上述任意系统或设备的分布式计算环境,等等。但该电子设备优选为智能移动终端,以提高智能移动终端对应用进程的启动管理的有效性。The application process launching apparatus of the present invention can be implemented using various electronic devices, including but not limited to personal computers, server computers, handheld or laptop devices, mobile devices (such as mobile phones, personal digital assistants (PDA) , media players, etc.), multiprocessor systems, consumer electronic devices, minicomputers, mainframe computers, distributed computing environments including any of the foregoing systems or devices, and the like. However, the electronic device is preferably an intelligent mobile terminal, so as to improve the effectiveness of the intelligent mobile terminal in the start-up management of the application process.

请参照图1,图1为本发明的应用进程启动方法的第一优选实施例的流程图。本优选实施例的应用进程启动方法可使用上述的电子设备进行实施。该应用进程启动方法包括:Please refer to FIG. 1 , which is a flowchart of a first preferred embodiment of a method for starting an application process of the present invention. The method for starting an application process of this preferred embodiment can be implemented using the above-mentioned electronic device. The application process startup method includes:

步骤S101,接收应用进程启动指令;Step S101, receiving an application process startup instruction;

步骤S102,通过启动管理服务中的启动进程函数,获取应用进程启动指令对应的应用进程的启动类型以及启动信息;Step S102, obtaining the startup type and startup information of the application process corresponding to the application process startup instruction by starting the startup process function in the startup management service;

步骤S103,如应用进程的启动类型为数据提供者启动方式,且应用进程的启动信息为正常启动,则通过数据提供者启动处理函数以及启动进程函数对应用进程进行启动;Step S103, if the startup type of the application process is the data provider startup mode, and the startup information of the application process is normal startup, then the application process is started by the data provider startup processing function and the startup process function;

步骤S104,如应用进程的启动类型为数据提供者启动方式,且应用进程的启动信息为禁止启动,则不对应用进程进行启动。Step S104, if the startup type of the application process is the data provider startup mode, and the startup information of the application process is prohibition of startup, the application process is not started.

下面详细说明本优选实施例的应用进程启动方法的各步骤的具体流程。The specific flow of each step of the method for starting an application process of the present preferred embodiment will be described in detail below.

在步骤S101中,应用进程启动装置可接收到应用进程启动指令,该应用进程启动指令为终端中的某个激活应用请求启动或激活某一应用进程的指令,该应用进程可为该激活应用中的进程,也可为另一应用的进程。随后转到步骤S102。In step S101, the application process startup device may receive an application process startup instruction, where the application process startup instruction is an instruction for an activation application in the terminal to request to start or activate an application process, and the application process may be an instruction in the activation application. , or a process of another application. Then go to step S102.

在步骤S102中,应用进程启动装置在接收到应用进程启动指令后,通过终端系统中的启动管理服务(Activity Manager Service)中的启动进程函数(Start ProcessLocked),获取该应用进程启动指令对应的待启动或激活的应用进程的启动类型以及启动信息。这里的启动类型可包括可视化界面(Activity)启动方式、系统服务(Service)启动方式、广播启动方式以及数据提供者(Content Provider)启动方式等。启动信息是指启动进程函数中设定能否进行正常启动的信息,即该应用进程是否具有通过某种启动类型的方式进行启动的权限。随后转到步骤S103或步骤S104。In step S102, after receiving the application process startup instruction, the application process startup device obtains the pending process corresponding to the application process startup instruction through the startup process function (Start ProcessLocked) in the Activity Manager Service (Activity Manager Service) in the terminal system. The startup type and startup information of the launched or activated application process. The startup type here may include a visual interface (Activity) startup method, a system service (Service) startup method, a broadcast startup method, a data provider (Content Provider) startup method, and the like. The startup information refers to the information set in the startup process function to enable normal startup, that is, whether the application process has the permission to start by a certain startup type. Then go to step S103 or step S104.

在步骤S103中,如应用进程启动装置判断步骤S102中获取的应用进程的启动类型为数据提供者启动方式,应用进程的启动信息为正常启动,则应用进程启动装置通过数据提供者启动处理函数(Get Content Provider Impl)找到该相应的数据提供者启动方式的应用进程,随后使用启动进程函数(Start Process Locked)申请相应的资源以及内存对该应用进程进行启动。In step S103, if the application process startup device determines that the startup type of the application process acquired in step S102 is the data provider startup mode, and the startup information of the application process is normal startup, the application process startup device starts the processing function ( Get Content Provider Impl) to find the application process of the corresponding data provider startup mode, and then use the start process function (Start Process Locked) to apply for corresponding resources and memory to start the application process.

在步骤S104中,如应用进程启动装置判断步骤S102中获取的应用进程的启动类型为数据提供者启动方式,且应用进程的启动信息为禁止启动,则应用进程启动装置不对该应用进程进行启动。In step S104, if the application process startup device determines that the startup type of the application process obtained in step S102 is the data provider startup mode, and the startup information of the application process is startup prohibited, the application process startup device does not start the application process.

这样即完成了本优选实施例的应用进程启动方法的应用进程启动过程。In this way, the application process startup process of the application process startup method of the present preferred embodiment is completed.

本优选实施例的应用进程启动方法根据应用进程的启动类型以及启动信息,使用相应的函数进行应用进程的启动管理,减少了应用进程的自启动,实现了对应用进程启动的有效管理,降低了相应移动终端的功耗。The application process startup method of this preferred embodiment uses corresponding functions to manage the startup of the application process according to the startup type and startup information of the application process, reduces the self-starting of the application process, realizes the effective management of the application process startup, and reduces the The power consumption of the corresponding mobile terminal.

请参照图2,图2为本发明的应用进程启动方法的第二优选实施例的流程图。本优选实施例的应用进程启动方法可使用上述的电子设备进行实施。该应用进程启动方法包括:Please refer to FIG. 2 , which is a flowchart of a second preferred embodiment of a method for starting an application process of the present invention. The method for starting an application process of this preferred embodiment can be implemented using the above-mentioned electronic device. The application process startup method includes:

步骤S201,接收应用进程启动指令;Step S201, receiving an application process startup instruction;

步骤S202,通过启动管理服务中的启动进程函数的托管类型参数,获取应用进程启动指令对应的应用进程的启动类型;并根据应用进程的权限,获取应用进程启动指令对应的应用进程的启动信息;Step S202, obtaining the startup type of the application process corresponding to the application process startup instruction by using the managed type parameter of the startup process function in the startup management service; and obtaining startup information of the application process corresponding to the application process startup instruction according to the authority of the application process;

步骤S203,如应用进程的启动类型为数据提供者启动方式,且应用进程的启动信息为正常启动,则通过数据提供者启动处理函数以及启动进程函数对应用进程进行启动;Step S203, if the startup type of the application process is the data provider startup mode, and the startup information of the application process is normal startup, then the application process is started by the data provider startup processing function and the startup process function;

步骤S204,如应用进程的启动类型为数据提供者启动方式,且应用进程的启动信息为禁止启动,则不对应用进程进行启动。Step S204, if the startup type of the application process is the data provider startup mode, and the startup information of the application process is prohibition of startup, the application process is not started.

下面详细说明本优选实施例的应用进程启动方法的各步骤的具体流程。The specific flow of each step of the method for starting an application process of the present preferred embodiment will be described in detail below.

在步骤S201中,应用进程启动装置可接收到应用进程启动指令,该应用进程启动指令为终端中的某个激活应用请求启动或激活某一应用进程的指令,该应用进程可为该激活应用中的进程,也可为另一应用的进程。随后转到步骤S202。In step S201, the application process initiating device may receive an application process initiating instruction, where the application process initiating instruction is an instruction for an activation application in the terminal to request to start or activate an application process, and the application process may be an instruction in the activation application. , or a process of another application. Then go to step S202.

在步骤S202中,应用进程启动装置在接收到应用进程启动指令后,通过终端系统中的启动管理服务(Activity Manager Service)中的启动进程函数(Start ProcessLocked),获取该应用进程启动指令对应的待启动或激活的应用进程的启动类型以及启动信息。这里的启动类型可包括可视化界面(Activity)启动方式、系统服务(Service)启动方式、广播启动方式以及数据提供者(Content Provider)启动方式等。启动信息是指启动进程函数中设定能否进行正常启动的信息,即该应用进程是否具有通过某种启动类型的方式进行启动的权限。In step S202, after receiving the application process startup instruction, the application process startup device obtains the pending process corresponding to the application process startup instruction through the startup process function (Start ProcessLocked) in the Activity Manager Service in the terminal system. The startup type and startup information of the launched or activated application process. The startup type here may include a visual interface (Activity) startup method, a system service (Service) startup method, a broadcast startup method, a data provider (Content Provider) startup method, and the like. The startup information refers to the information set in the startup process function to enable normal startup, that is, whether the application process has the permission to start by a certain startup type.

具体的,这里应用进程启动装置通过启动管理服务中的启动进程函数的托管类型参数(Hosting Type),来获取应用进程启动指令对应的应用进程的启动类型。如这里应用进程启动装置通过启动管理服务中的启动进程函数的托管类型参数为Content Provider,可判定应用进程的启动类型为数据提供者启动方式。Specifically, the application process launching apparatus here obtains the launching type of the application process corresponding to the application process launching instruction by using the hosting type parameter (Hosting Type) of the launching process function in the launching management service. For example, the application process startup device can determine that the startup type of the application process is the data provider startup mode by using the hosting type parameter of the startup process function in the startup management service as Content Provider.

同时应用进程启动装置还可根据应用进程的权限,来获取应用进程启动指令对应的应用进程的启动信息。如用户没有对应用进程的启动信息进行设定,则应用进程启动装置可使用应用进程的权限对应用进程的启动信息进行自动设定,如将非系统内置的低权限的应用进程设定为禁止启动,将系统内置的高权限的应用进程定为正常启动。该启动信息一旦设定后,可在本地或在云端服务器上以文件或数据库等各种方式进行存储。随后转到步骤S203或步骤S204。At the same time, the device for starting the application process can also obtain the starting information of the application process corresponding to the starting instruction of the application process according to the authority of the application process. If the user does not set the startup information of the application process, the application process startup device can use the permission of the application process to automatically set the startup information of the application process, such as setting the non-system built-in low-authority application process to prohibit Start, set the built-in high-privilege application process as normal startup. Once the activation information is set, it can be stored locally or in a cloud server in various ways such as a file or a database. Then go to step S203 or step S204.

在步骤S203中,如应用进程启动装置判断步骤S202中获取的应用进程的启动类型为数据提供者启动方式,应用进程的启动信息为正常启动,则应用进程启动装置通过数据提供者启动处理函数(Get Content Provider Impl)找到该相应的数据提供者启动方式的应用进程,随后使用启动进程函数(Start Process Locked)申请相应的资源以及内存对该应用进程进行启动。In step S203, if the application process startup device determines that the startup type of the application process acquired in step S202 is the data provider startup mode, and the startup information of the application process is normal startup, the application process startup device starts the processing function ( Get Content Provider Impl) to find the application process of the corresponding data provider startup mode, and then use the start process function (Start Process Locked) to apply for corresponding resources and memory to start the application process.

具体的,请参照图3,图3为本发明的应用进程启动方法的第二优选实施例的步骤S203的流程图。该步骤S203包括:Specifically, please refer to FIG. 3 , which is a flowchart of step S203 of the second preferred embodiment of the method for starting an application process of the present invention. This step S203 includes:

步骤S301,判断应用进程是否已经启动;如应用进程已经启动则转到步骤S302;如应用进程未启动,则转到步骤S303。Step S301, determine whether the application process has been started; if the application process has been started, go to step S302; if the application process has not been started, go to step S303.

步骤S302,如应用进程已经启动,则应用进程启动装置不对应用进程进行启动;Step S302, if the application process has been started, the application process startup device does not start the application process;

步骤S303,如应用进程未启动,则应用进程启动装置通过数据提供者启动处理函数以及启动进程函数对应用进程进行启动。Step S303, if the application process is not started, the application process start device starts the application process through the data provider start processing function and start process function.

在步骤S204中,如应用进程启动装置判断步骤S202中获取的应用进程的启动类型为数据提供者启动方式,且应用进程的启动信息为禁止启动,则应用进程启动装置不对该应用进程进行启动。In step S204, if the application process startup device determines that the startup type of the application process obtained in step S202 is the data provider startup mode, and the startup information of the application process is startup prohibited, the application process startup device does not start the application process.

同时应用进程启动装置还可将禁止启动的提示信息返回给系统,避免系统或应用的阻塞。此外应用进程启动装置还可将禁止启动的记录上报至启动管理服务,以便对异常的应用进程启动操作进行记录。At the same time, the device for starting the application process can also return the prompt information of prohibition of starting to the system, so as to avoid the blocking of the system or the application. In addition, the device for starting the application process can also report the record of prohibition of starting to the start-up management service, so as to record the abnormal start-up operation of the application process.

这样即完成了本优选实施例的应用进程启动方法的应用进程启动过程。In this way, the application process startup process of the application process startup method of the present preferred embodiment is completed.

在第一优选实施例的基础上,本优选实施例的应用进程启动方法通过查找激活应用进程对应用进程的启动进行管理,通过对异常应用进程的启动进行反馈以及记录,进一步提高了应用进程的启动管理的有效性。On the basis of the first preferred embodiment, the application process startup method of this preferred embodiment manages the startup of the application process by searching for the activated application process, and further improves the application process by feeding back and recording the startup of the abnormal application process. Effectiveness of startup management.

本发明还提供一种应用进程启动装置,请参照图4,图4为本发明的应用进程启动装置的第一优选实施例的结构示意图。本优选实施例的应用进程启动装置可使用上述的应用进程启动方法的第一优选实施例进行实施。该应用进程启动装置40包括指令接收模块41、应用进程参数获取模块42、正常启动模块43以及禁止启动模块44。The present invention also provides an application process startup device, please refer to FIG. 4 , which is a schematic structural diagram of a first preferred embodiment of the application process startup device of the present invention. The apparatus for starting an application process of this preferred embodiment can be implemented by using the first preferred embodiment of the above-mentioned method for starting an application process. The application process startup device 40 includes an instruction receiving module 41 , an application process parameter acquisition module 42 , a normal startup module 43 and a startup prohibition module 44 .

指令接收模块41用于接收应用进程启动指令。应用进程参数获取模块42用于通过启动管理服务中的启动进程函数,获取应用进程启动指令对应的应用进程的启动类型以及启动信息。正常启动模块43用于如应用进程的启动类型为数据提供者启动方式,且应用进程的启动信息为正常启动,则通过数据提供者启动处理函数以及启动进程函数对应用进程进行启动。禁止启动模块44用于如应用进程的启动类型为数据提供者启动方式,且应用进程的启动信息为禁止启动,则不对应用进程进行启动。The instruction receiving module 41 is used for receiving an application process startup instruction. The application process parameter acquiring module 42 is configured to acquire the startup type and startup information of the application process corresponding to the application process startup instruction through the startup process function in the startup management service. The normal startup module 43 is used to start the application process through the data provider startup processing function and the startup process function if the startup type of the application process is the data provider startup mode and the startup information of the application process is normal startup. The startup prohibition module 44 is configured to not start the application process if the startup type of the application process is the data provider startup mode and the startup information of the application process is startup prohibition.

本优选实施例的应用进程启动装置40使用时,首先指令接收模块41可接收到应用进程启动指令,该应用进程启动指令为终端中的某个激活应用请求启动或激活某一应用进程的指令,该应用进程可为该激活应用中的进程,也可为另一应用的进程。When the application process starting device 40 of this preferred embodiment is used, first the instruction receiving module 41 can receive an application process starting instruction, and the application process starting instruction is an instruction for an activation application in the terminal to request to start or activate an application process, The application process may be a process in the activated application or a process of another application.

随后应用进程参数获取模块42在接收到应用进程启动指令后,通过终端系统中的启动管理服务(Activity Manager Service)中的启动进程函数(Start Process Locked),获取该应用进程启动指令对应的待启动或激活的应用进程的启动类型以及启动信息。这里的启动类型可包括可视化界面(Activity)启动方式、系统服务(Service)启动方式、广播启动方式以及数据提供者(Content Provider)启动方式等。启动信息是指启动进程函数中设定能否进行正常启动的信息,即该应用进程是否具有通过某种启动类型的方式进行启动的权限。Subsequently, after receiving the application process start instruction, the application process parameter acquisition module 42 acquires the to-be-started corresponding to the application process start instruction through the start process function (Start Process Locked) in the Activity Manager Service (Activity Manager Service) in the terminal system. Or the startup type and startup information of the activated application process. The startup type here may include a visual interface (Activity) startup method, a system service (Service) startup method, a broadcast startup method, a data provider (Content Provider) startup method, and the like. The startup information refers to the information set in the startup process function to enable normal startup, that is, whether the application process has the permission to start by a certain startup type.

最后如应用进程启动装置40判断应用进程参数获取模块42获取的应用进程的启动类型为数据提供者启动方式,应用进程的启动信息为正常启动,则正常启动模块43通过数据提供者启动处理函数(Get Content Provider Impl)找到该相应的数据提供者启动方式的应用进程,随后使用启动进程函数(Start Process Locked)申请相应的资源以及内存对该应用进程进行启动。Finally, if the application process startup device 40 determines that the startup type of the application process acquired by the application process parameter acquisition module 42 is the data provider startup mode, and the startup information of the application process is normal startup, the normal startup module 43 starts the processing function ( Get Content Provider Impl) to find the application process of the corresponding data provider startup mode, and then use the start process function (Start Process Locked) to apply for corresponding resources and memory to start the application process.

如应用进程启动装置40判断应用进程参数获取模块获取的应用进程的启动类型为数据提供者启动方式,且应用进程的启动信息为禁止启动,则禁止启动模块44不对该应用进程进行启动。If the application process startup device 40 determines that the startup type of the application process acquired by the application process parameter acquisition module is the data provider startup mode, and the startup information of the application process is startup prohibition, the startup prohibition module 44 does not start the application process.

这样即完成了本优选实施例的应用进程启动装置40的应用进程启动过程。In this way, the application process initiating process of the application process initiating apparatus 40 of the present preferred embodiment is completed.

本优选实施例的应用进程启动方法根据应用进程的启动类型以及启动信息,使用相应的函数进行应用进程的启动管理,减少了应用进程的自启动,实现了对应用进程启动的有效管理,降低了相应移动终端的功耗。The application process startup method of this preferred embodiment uses corresponding functions to manage the startup of the application process according to the startup type and startup information of the application process, reduces the self-starting of the application process, realizes the effective management of the application process startup, and reduces the The power consumption of the corresponding mobile terminal.

请参照图5,图5为本发明的应用进程启动装置的第二优选实施例的结构示意图。本优选实施例的应用进程启动装置可使用上述的应用进程启动方法的第二优选实施例进行实施。该应用进程启动装置50包括指令接收模块51、应用进程参数获取模块52、正常启动模块53以及禁止启动模块54。Please refer to FIG. 5 . FIG. 5 is a schematic structural diagram of a second preferred embodiment of the device for starting an application process of the present invention. The apparatus for starting an application process of this preferred embodiment can be implemented by using the second preferred embodiment of the above-mentioned method for starting an application process. The application process startup device 50 includes an instruction receiving module 51 , an application process parameter acquisition module 52 , a normal startup module 53 and a startup prohibition module 54 .

指令接收模块51用于接收应用进程启动指令。应用进程参数获取模块52用于通过启动管理服务中的启动进程函数,获取应用进程启动指令对应的应用进程的启动类型以及启动信息;具体用于通过启动管理服务中的启动进程函数的托管类型参数,获取应用进程启动指令对应的应用进程的启动类型;根据应用进程的权限,获取应用进程启动指令对应的应用进程的启动信息。正常启动模块53用于如应用进程的启动类型为数据提供者启动方式,且应用进程的启动信息为正常启动,则通过数据提供者启动处理函数以及启动进程函数对应用进程进行启动。禁止启动模块54用于如应用进程的启动类型为数据提供者启动方式,且应用进程的启动信息为禁止启动,则不对应用进程进行启动。The instruction receiving module 51 is used for receiving an application process startup instruction. The application process parameter acquisition module 52 is used to acquire the startup type and startup information of the application process corresponding to the application process startup instruction by starting the startup process function in the startup management service; specifically, it is used for the managed type parameter of the startup process function in the startup management service. , to obtain the startup type of the application process corresponding to the application process startup instruction; according to the permission of the application process, the startup information of the application process corresponding to the application process startup instruction is acquired. The normal startup module 53 is used to start the application process through the data provider startup processing function and the startup process function if the startup type of the application process is the data provider startup mode and the startup information of the application process is normal startup. The startup prohibition module 54 is configured to not start the application process if the startup type of the application process is the data provider startup mode and the startup information of the application process is startup prohibition.

请参照图6,图6为本发明的应用进程启动装置的第二优选实施例的正常启动模块的结构示意图。该正常启动模块53包括判断单元61以及正常启动单元62。判断单元61用于判断应用进程是否已经启动。正常启动单元62用于如应用进程未启动,则通过数据提供者启动处理函数以及启动进程函数对所述应用进程进行启动。Please refer to FIG. 6 , which is a schematic structural diagram of a normal startup module of the second preferred embodiment of the application process startup device of the present invention. The normal startup module 53 includes a judgment unit 61 and a normal startup unit 62 . The judging unit 61 is used for judging whether the application process has been started. The normal startup unit 62 is configured to start the application process through the data provider startup processing function and the startup process function if the application process is not started.

请参照图7,图7为本发明的应用进程启动装置的第二优选实施例的禁止启动模块的结构示意图。该禁止启动模块54包括提示单元71。该提示单元71用于返回禁止启动的提示信息。Please refer to FIG. 7 . FIG. 7 is a schematic structural diagram of the prohibition module of the second preferred embodiment of the application process startup device of the present invention. The activation prohibition module 54 includes a prompting unit 71 . The prompt unit 71 is used to return prompt information of prohibition of starting.

本优选实施例的应用进程启动装置50使用时,首先指令接收模块51可接收到应用进程启动指令,该应用进程启动指令为终端中的某个激活应用请求启动或激活某一应用进程的指令,该应用进程可为该激活应用中的进程,也可为另一应用的进程。When the application process starting device 50 of this preferred embodiment is used, first the instruction receiving module 51 can receive an application process starting instruction, and the application process starting instruction is an instruction for an activation application in the terminal to request to start or activate a certain application process, The application process may be a process in the activated application or a process of another application.

随后应用进程参数获取模块52在接收到应用进程启动指令后,通过终端系统中的启动管理服务(Activity Manager Service)中的启动进程函数(Start Process Locked),获取该应用进程启动指令对应的待启动或激活的应用进程的启动类型以及启动信息。这里的启动类型可包括可视化界面(Activity)启动方式、系统服务(Service)启动方式、广播启动方式以及数据提供者(Content Provider)启动方式等。启动信息是指启动进程函数中设定能否进行正常启动的信息,即该应用进程是否具有通过某种启动类型的方式进行启动的权限。Subsequently, after receiving the application process start instruction, the application process parameter acquisition module 52 acquires the to-be-started corresponding to the application process start instruction through the start process function (Start Process Locked) in the Activity Manager Service (Activity Manager Service) in the terminal system. Or the startup type and startup information of the activated application process. The startup type here may include a visual interface (Activity) startup method, a system service (Service) startup method, a broadcast startup method, a data provider (Content Provider) startup method, and the like. The startup information refers to the information set in the startup process function to enable normal startup, that is, whether the application process has the permission to start by a certain startup type.

具体的,这里应用进程参数获取模块52通过启动管理服务中的启动进程函数的托管类型参数(Hosting Type),来获取应用进程启动指令对应的应用进程的启动类型。如这里应用进程启动装置通过启动管理服务中的启动进程函数的托管类型参数为ContentProvider,可判定应用进程的启动类型为数据提供者启动方式。Specifically, the application process parameter obtaining module 52 obtains the startup type of the application process corresponding to the application process startup instruction by starting the hosting type parameter (Hosting Type) of the startup process function in the startup management service. For example, the application process startup device can determine that the startup type of the application process is the data provider startup mode by using the hosting type parameter of the startup process function in the startup management service as ContentProvider.

同时应用进程参数获取模块52还可根据应用进程的权限,来获取应用进程启动指令对应的应用进程的启动信息。如用户没有对应用进程的启动信息进行设定,则应用进程参数获取模块可使用应用进程的权限对应用进程的启动信息进行自动设定,如将非系统内置的低权限的应用进程设定为禁止启动,将系统内置的高权限的应用进程定为正常启动。该启动信息一旦设定后,可在本地或在云端服务器上以文件或数据库等各种方式进行存储。At the same time, the application process parameter acquisition module 52 may also acquire startup information of the application process corresponding to the application process startup instruction according to the permission of the application process. If the user does not set the startup information of the application process, the application process parameter acquisition module can use the permission of the application process to automatically set the startup information of the application process. Disable startup, and set the built-in high-privilege application process as normal startup. Once the activation information is set, it can be stored locally or in a cloud server in various ways such as a file or a database.

最后如应用进程启动装置50判断应用进程参数获取模块获取的应用进程的启动类型为数据提供者启动方式,应用进程的启动信息为正常启动,则正常启动模块53通过数据提供者启动处理函数(Get Content Provider Impl)找到该相应的数据提供者启动方式的应用进程,随后使用启动进程函数(Start Process Locked)申请相应的资源以及内存对该应用进程进行启动。Finally, if the application process startup device 50 determines that the startup type of the application process acquired by the application process parameter acquisition module is the data provider startup mode, and the startup information of the application process is normal startup, the normal startup module 53 starts the processing function (Get Content Provider Impl) finds the application process of the corresponding data provider startup mode, and then uses the start process function (Start Process Locked) to apply for corresponding resources and memory to start the application process.

具体为:Specifically:

正常启动模块53的判断单元61判断应用进程是否已经启动;如应用进程已经启动,则正常启动模块53不对应用进程进行启动;如应用进程未启动,则正常启动模块53的正常启动单元62通过数据提供者启动处理函数以及启动进程函数对应用进程进行启动。The judgment unit 61 of the normal start module 53 judges whether the application process has been started; if the application process has been started, the normal start module 53 does not start the application process; if the application process is not started, the normal start unit 62 of the normal start module 53 passes the data The provider start handler function and start process function start the application process.

如应用进程启动装置50判断应用进程参数获取模块52获取的应用进程的启动类型为数据提供者启动方式,且应用进程的启动信息为禁止启动,则禁止启动模块54不对该应用进程进行启动,同时禁止启动模块54还应通过服务关闭处理函数(Bring DownService Locked)将前期的应用进程的启动准备工作进行取消处理,以防止应用进程出错。If the application process startup device 50 determines that the startup type of the application process acquired by the application process parameter acquisition module 52 is the data provider startup mode, and the startup information of the application process is startup prohibition, the startup prohibition module 54 will not start the application process, and meanwhile The startup prohibition module 54 should also cancel the previous startup preparation work of the application process through the service shutdown processing function (Bring DownService Locked) to prevent errors in the application process.

同时禁止启动模块54的提示单元71还可将禁止启动的提示信息返回给系统,避免系统或应用的阻塞。此外禁止启动模块还可将禁止启动的记录上报至启动管理服务,以便对异常的应用进程启动操作进行记录。At the same time, the prompting unit 71 of the prohibiting startup module 54 can also return the prompting information of prohibiting startup to the system, so as to avoid the blocking of the system or the application. In addition, the startup prohibition module can also report the startup prohibition record to the startup management service, so as to record the abnormal application process startup operation.

这样即完成了本优选实施例的应用进程启动装置50的应用进程启动过程。In this way, the application process initiating process of the application process initiating apparatus 50 of the present preferred embodiment is completed.

在第一优选实施例的基础上,本优选实施例的应用进程启动装置通过查找激活应用进程对应用进程的启动进行管理,通过对异常应用进程的启动进行反馈以及记录,进一步提高了应用进程的启动管理的有效性。On the basis of the first preferred embodiment, the device for launching an application process of this preferred embodiment manages the launching of an application process by searching for an activated application process, and feeds back and records the activation of an abnormal application process, thereby further improving the application process. Effectiveness of startup management.

下面通过一具体实施例说明本发明的应用进程启动方法及应用进程启动装置的具体工作原理。The specific working principle of the method for starting an application process and the device for starting an application process of the present invention will be described below through a specific embodiment.

一,应用进程启动装置接收外部的应用进程启动指令;1. The application process startup device receives an external application process startup instruction;

二,应用进程启动装置获取启动管理服务中的启动进程函数的托管类型参数为Content Provider,则判断应用进程启动指令对应的应用进程的启动类型为数据提供者启动方式。Second, the application process startup device obtains the hosting type parameter of the startup process function in the startup management service as Content Provider, and determines that the startup type of the application process corresponding to the application process startup instruction is the data provider startup mode.

三,应用进程启动装置获取启动管理服务中的启动进程函数获取该应用进程的启动信息,这里设定启动信息为正常启动。Third, the application process startup device obtains the startup process function in the startup management service to obtain startup information of the application process, where the startup information is set as normal startup.

四、应用进程启动装置通过数据提供者启动处理函数(Get Content ProviderImpl)找到该相应的数据提供者启动方式的应用进程,随后使用启动进程函数(StartProcess Locked)申请相应的资源以及内存对该应用进程进行启动。4. The application process startup device finds the application process in the corresponding data provider startup mode through the data provider startup processing function (Get Content ProviderImpl), and then uses the startup process function (StartProcess Locked) to apply for corresponding resources and memory for the application process to start.

这样即完成了本具体实施例的应用进程启动方法及应用进程启动装置的应用进程启动过程。In this way, the application process initiating process of the application process initiating method and the application process initiating device of the present embodiment is completed.

本发明的应用进程启动方法及应用进程启动装置根据应用进程的启动类型以及启动信息,使用相应的函数进行应用进程的启动管理,实现了对应用进程启动的有效管理;解决了现有的应用进程启动方法及应用进程启动装置的不能对应用进程的启动进行有效管理的技术问题。The application process startup method and the application process startup device of the present invention use corresponding functions to perform startup management of the application process according to the startup type and startup information of the application process, so as to realize the effective management of the application process startup and solve the problem of the existing application process. The technical problem that the startup method and the application process startup device cannot effectively manage the startup of the application process.

如本申请所使用的术语“组件”、“模块”、“系统”、“接口”、“进程”等等一般地旨在指计算机相关实体:硬件、硬件和软件的组合、软件或执行中的软件。例如,组件可以是但不限于是运行在处理器上的进程、处理器、对象、可执行应用、执行的线程、程序和/或计算机。通过图示,运行在控制器上的应用和该控制器二者都可以是组件。一个或多个组件可以有在于执行的进程和/或线程内,并且组件可以位于一个计算机上和/或分布在两个或更多计算机之间。The terms "component," "module," "system," "interface," "process," etc., as used in this application, are generally intended to refer to computer-related entities: hardware, a combination of hardware and software, software, or in execution software. For example, a component may be, but is not limited to, a process running on a processor, a processor, an object, an executable application, a thread of execution, a program, and/or a computer. By way of illustration, both an application running on a controller and the controller can be components. One or more components may reside within a process and/or thread of execution, and a component may be localized on one computer and/or distributed between two or more computers.

而且,要求保护的主题可以被实现为使用标准编程和/或工程技术产生软件、固件、硬件或其任意组合以控制计算机实现所公开的主题的方法、装置或制造品。本文所使用的术语“制造品”旨在包含可从任意计算机可读设备、载体或介质访问的计算机程序。当然,本领域技术人员将认识到可以对该配置进行许多修改,而不脱离要求保护的主题的范围或精神。Furthermore, the claimed subject matter can be implemented as a method, apparatus, or article of manufacture using standard programming and/or engineering techniques to create software, firmware, hardware, or any combination thereof to control a computer to implement the disclosed subject matter. The term "article of manufacture" as used herein is intended to encompass a computer program accessible from any computer-readable device, carrier, or media. Of course, those skilled in the art will recognize that many modifications may be made to this configuration without departing from the scope or spirit of the claimed subject matter.

本文提供了实施例的各种操作。在一个实施例中,所述的一个或多个操作可以构成一个或多个计算机可读介质上存储的计算机可读指令,其在被电子设备执行时将使得计算设备执行所述操作。描述一些或所有操作的顺序不应当被解释为暗示这些操作必需是顺序相关的。本领域技术人员将理解具有本说明书的益处的可替代的排序。而且,应当理解,不是所有操作必需在本文所提供的每个实施例中存在。Various operations of the embodiments are provided herein. In one embodiment, one or more of the described operations may constitute computer-readable instructions stored on one or more computer-readable media that, when executed by an electronic device, cause a computing device to perform the described operations. The order in which some or all operations are described should not be construed as implying that the operations are necessarily order-dependent. Those skilled in the art will appreciate alternative orderings having the benefit of this description. Furthermore, it should be understood that not all operations are required to be present in every embodiment provided herein.

而且,本文所使用的词语“优选的”意指用作实例、示例或例证。奉文描述为“优选的”任意方面或设计不必被解释为比其他方面或设计更有利。相反,词语“优选的”的使用旨在以具体方式提出概念。如本申请中所使用的术语“或”旨在意指包含的“或”而非排除的“或”。即,除非另外指定或从上下文中清楚,“X使用A或B”意指自然包括排列的任意一个。即,如果X使用A;X使用B;或X使用A和B二者,则“X使用A或B”在前述任一示例中得到满足。Also, the word "preferred" as used herein means serving as an example, instance or illustration. Any aspect or design described herein as "preferred" is not necessarily to be construed as advantageous over other aspects or designs. Rather, use of the word "preferred" is intended to present concepts in a specific manner. The term "or" as used in this application is intended to mean an inclusive "or" rather than an exclusive "or." That is, unless specified otherwise or clear from context, "X employs A or B" is meant to naturally include either of the permutations. That is, "X uses A or B" is satisfied in any of the preceding examples if X uses A; X uses B; or X uses both A and B.

而且,尽管已经相对于一个或多个实现方式示出并描述了本公开,但是本领域技术人员基于对本说明书和附图的阅读和理解将会想到等价变型和修改。本公开包括所有这样的修改和变型,并且仅由所附权利要求的范围限制。特别地关于由上述组件(例如元件、资源等)执行的各种功能,用于描述这样的组件的术语旨在对应于执行所述组件的指定功能(例如其在功能上是等价的)的任意组件(除非另外指示),即使在结构上与执行本文所示的本公开的示范性实现方式中的功能的公开结构不等同。此外,尽管本公开的特定特征已经相对于若干实现方式中的仅一个被公开,但是这种特征可以与如可以对给定或特定应用而言是期望和有利的其他实现方式的一个或多个其他特征组合。而且,就术语“包括”、“具有”、“含有”或其变形被用在具体实施方式或权利要求中而言,这样的术语旨在以与术语“包含”相似的方式包括。Moreover, while the disclosure has been shown and described with respect to one or more implementations, equivalent variations and modifications will occur to those skilled in the art based on a reading and understanding of this specification and the accompanying drawings. The present disclosure includes all such modifications and variations and is limited only by the scope of the appended claims. In particular with respect to the various functions performed by the above-described components (eg, elements, resources, etc.), the terms used to describe such components are intended to correspond to performing the specified functions of the components (eg, which are functionally equivalent) Any component (unless otherwise indicated), even if not structurally equivalent to the disclosed structure that performs the functions of the exemplary implementations of the disclosure shown herein. Furthermore, although a particular feature of the present disclosure has been disclosed with respect to only one of several implementations, such feature may be combined with one or more of the other implementations as may be desired and advantageous for a given or particular application Other feature combinations. Moreover, to the extent that the terms "comprising," "having," "containing," or variations thereof are used in the detailed description or the claims, such terms are intended to include in a manner similar to the term "comprising."

本发明实施例中的各功能单元可以集成在一个处理模块中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。上述提到的存储介质可以是只读存储器,磁盘或光盘等。上述的各装置或系统,可以执行相应方法实施例中的方法。Each functional unit in this embodiment of the present invention may be integrated into one processing module, or each unit may exist physically alone, or two or more units may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware, and can also be implemented in the form of software function modules. If the integrated modules are implemented in the form of software functional modules and sold or used as independent products, they may also be stored in a computer-readable storage medium. The above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, and the like. The above-mentioned apparatuses or systems may execute the methods in the corresponding method embodiments.

综上所述,虽然本发明已以优选实施例揭露如上,但上述优选实施例并非用以限制本发明,本领域的普通技术人员,在不脱离本发明的精神和范围内,均可作各种更动与润饰,因此本发明的保护范围以权利要求界定的范围为准。In summary, although the present invention has been disclosed above with preferred embodiments, the above preferred embodiments are not intended to limit the present invention. Those of ordinary skill in the art can make various Therefore, the protection scope of the present invention is subject to the scope defined by the claims.

Claims (11)

1.一种应用进程启动方法,用于对由一个应用进程通过数据提供者启动方式启动另一个应用进程进行管控,其特征在于,所述方法包括:1. A method for starting an application process, for managing and controlling another application process started by an application process through a data provider startup mode, wherein the method comprises: 接收应用进程启动指令,所述应用进程启动指令由一应用进程发出,用于启动另一应用进程;receiving an application process startup instruction, the application process startup instruction is issued by an application process and used to start another application process; 通过启动管理服务中的启动进程函数,获取所述应用进程启动指令对应的应用进程的启动类型以及启动信息;Obtain the startup type and startup information of the application process corresponding to the application process startup instruction by using the startup process function in the startup management service; 如所述应用进程的启动类型为数据提供者启动方式,且所述应用进程的启动信息为正常启动,则通过数据提供者启动处理函数以及所述启动进程函数对所述应用进程进行启动;以及If the startup type of the application process is the data provider startup mode, and the startup information of the application process is normal startup, the application process is started through the data provider startup processing function and the startup process function; and 如所述应用进程的启动类型为数据提供者启动方式,且所述应用进程的启动信息为禁止启动,则不对所述应用进程进行启动。If the startup type of the application process is the data provider startup mode, and the startup information of the application process is startup prohibited, the application process is not started. 2.根据权利要求1所述的应用进程启动方法,其特征在于,所述通过数据提供者启动处理函数以及所述启动进程函数对所述应用进程进行启动的步骤具体为:2. The method for starting an application process according to claim 1, wherein the step of starting the application process by the data provider starting a processing function and the starting process function is specifically: 通过所述数据提供者启动处理函数找到相应的数据提供者启动方式的应用进程,随后使用所述启动进程函数获取相应的资源以及内存对所述应用进程进行启动;其中所述数据提供者启动处理函数为Get Content Provider Impl函数,所述启动进程函数为StartProcess Locked函数。Find the application process in the corresponding data provider startup mode through the data provider startup processing function, and then use the startup process function to obtain the corresponding resources and memory to start the application process; wherein the data provider starts processing The function is the Get Content Provider Impl function, and the start process function is the StartProcess Locked function. 3.根据权利要求1所述的应用进程启动方法,其特征在于,所述通过启动管理服务中的启动进程函数,获取所述应用进程启动指令对应的应用进程的启动类型的步骤具体为:3. The application process startup method according to claim 1, wherein the step of acquiring the startup type of the application process corresponding to the application process startup instruction by the startup process function in the startup management service is specifically: 通过启动管理服务中的启动进程函数的托管类型参数,获取所述应用进程启动指令对应的应用进程的启动类型,其中所述数据提供者启动方式的应用进程对应的托管类型参数为Content Provider。The startup type of the application process corresponding to the application process startup instruction is obtained through the hosting type parameter of the startup process function in the startup management service, wherein the hosting type parameter corresponding to the application process in the data provider startup mode is Content Provider. 4.根据权利要求1所述的应用进程启动方法,其特征在于,所述获取所述应用进程启动指令对应的应用进程的启动信息的步骤包括:4 . The application process startup method according to claim 1 , wherein the step of acquiring the startup information of the application process corresponding to the application process startup instruction comprises: 5 . 根据所述应用进程的权限,获取所述应用进程启动指令对应的应用进程的启动信息,其中所述启动信息本地存储或异地云存储。According to the permission of the application process, the startup information of the application process corresponding to the application process startup instruction is acquired, wherein the startup information is stored locally or in a remote cloud storage. 5.根据权利要求1所述的应用进程启动方法,其特征在于,所述通过数据提供者启动处理函数以及所述启动进程函数对所述应用进程进行启动的步骤包括:5. The method for starting an application process according to claim 1, wherein the step of starting the application process by the data provider starting a processing function and the starting process function comprises: 判断所述应用进程是否已经启动;determine whether the application process has been started; 如所述应用进程已经启动,则不对所述应用进程进行启动;If the application process has been started, do not start the application process; 如所述应用进程未启动,则通过数据提供者启动处理函数以及所述启动进程函数对所述应用进程进行启动。If the application process is not started, the application process is started through the data provider start processing function and the start process function. 6.一种应用进程启动装置,用于对由一个应用进程通过数据提供者启动方式启动另一个应用进程进行管控,其特征在于,所述装置包括:6. An apparatus for starting an application process, used to manage and control another application process started by an application process through a data provider start-up mode, wherein the apparatus comprises: 指令接收模块,用于接收应用进程启动指令,所述应用进程启动指令由一应用进程发出,用于启动另一应用进程;an instruction receiving module, configured to receive an application process startup instruction, the application process startup instruction is issued by an application process and used to start another application process; 应用进程参数获取模块,用于通过启动管理服务中的启动进程函数,获取所述应用进程启动指令对应的应用进程的启动类型以及启动信息;an application process parameter acquisition module, configured to acquire the startup type and startup information of the application process corresponding to the application process startup instruction through the startup process function in the startup management service; 正常启动模块,用于如所述应用进程的启动类型为数据提供者启动方式,且所述应用进程的启动信息为正常启动,则通过数据提供者启动处理函数以及所述启动进程函数对所述应用进程进行启动;以及The normal startup module is used for, if the startup type of the application process is the data provider startup mode, and the startup information of the application process is normal startup, the data provider startup processing function and the startup process function are used to start the process. application process to start; and 禁止启动模块,用于如所述应用进程的启动类型为数据提供者启动方式,且所述应用进程的启动信息为禁止启动,则不对所述应用进程进行启动。The startup prohibition module is configured to not start the application process if the startup type of the application process is the data provider startup mode and the startup information of the application process is startup prohibition. 7.根据权利要求6所述的应用进程启动装置,其特征在于,所述正常启动模块具体用于通过所述数据提供者启动处理函数找到相应的数据提供者启动方式的应用进程,随后使用所述启动进程函数获取相应的资源以及内存对所述应用进程进行启动;其中所述数据提供者启动处理函数为Get Content Provider Impl函数,所述启动进程函数为Start ProcessLocked函数。7. The device for starting an application process according to claim 6, wherein the normal starting module is specifically configured to find the application process of the corresponding data provider starting mode through the data provider starting processing function, and then use the The start process function acquires corresponding resources and memory to start the application process; wherein the data provider start processing function is the Get Content Provider Impl function, and the start process function is the Start ProcessLocked function. 8.根据权利要求6所述的应用进程启动装置,其特征在于,所述应用进程参数获取模块具体用于通过启动管理服务中的启动进程函数的托管类型参数,获取所述应用进程启动指令对应的应用进程的启动类型,其中所述数据提供者启动方式的应用进程对应的托管类型参数为Content Provider。8 . The application process startup device according to claim 6 , wherein the application process parameter obtaining module is specifically configured to obtain the corresponding application process startup instruction by starting the managed type parameter of the startup process function in the startup management service. 9 . The startup type of the application process, wherein the hosting type parameter corresponding to the application process of the data provider startup mode is Content Provider. 9.根据权利要求6所述的应用进程启动装置,其特征在于,所述应用进程参数获取模块具体用于根据所述应用进程的权限,获取所述应用进程启动指令对应的应用进程的启动信息,其中所述启动信息本地存储或异地云存储。9 . The application process startup device according to claim 6 , wherein the application process parameter acquisition module is specifically configured to acquire startup information of the application process corresponding to the application process startup instruction according to the authority of the application process. 10 . , wherein the startup information is stored locally or in an off-site cloud storage. 10.根据权利要求6所述的应用进程启动装置,其特征在于,所述正常启动模块包括:10. The application process startup device according to claim 6, wherein the normal startup module comprises: 判断单元,用于判断所述应用进程是否已经启动;a judging unit for judging whether the application process has been started; 正常启动单元,用于如所述应用进程未启动,则通过数据提供者启动处理函数以及所述启动进程函数对所述应用进程进行启动。The normal startup unit is configured to start the application process through the data provider startup processing function and the startup process function if the application process is not started. 11.一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述程序被处理器执行时实现如权利要求1至5任一项所述的方法。11. A computer-readable storage medium on which a computer program is stored, characterized in that, when the program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.
CN201511030666.2A 2015-12-30 2015-12-30 Application process startup method and application process startup device Expired - Fee Related CN105677401B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201511030666.2A CN105677401B (en) 2015-12-30 2015-12-30 Application process startup method and application process startup device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201511030666.2A CN105677401B (en) 2015-12-30 2015-12-30 Application process startup method and application process startup device

Publications (2)

Publication Number Publication Date
CN105677401A CN105677401A (en) 2016-06-15
CN105677401B true CN105677401B (en) 2019-08-06

Family

ID=56298419

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201511030666.2A Expired - Fee Related CN105677401B (en) 2015-12-30 2015-12-30 Application process startup method and application process startup device

Country Status (1)

Country Link
CN (1) CN105677401B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108268311B (en) * 2016-12-30 2021-11-30 北京国双科技有限公司 Determination method and device for caller application program

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104360923A (en) * 2014-11-03 2015-02-18 中国银行股份有限公司 Monitoring method and monitoring system for batch application process
CN104461725A (en) * 2014-12-30 2015-03-25 小米科技有限责任公司 Application process starting control method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101209951B1 (en) * 2011-06-10 2012-12-07 주식회사 캐스트이즈 Apparatus and method for conducting related operations upon occurrence of an android application launch request prior to the launch of the application

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104360923A (en) * 2014-11-03 2015-02-18 中国银行股份有限公司 Monitoring method and monitoring system for batch application process
CN104461725A (en) * 2014-12-30 2015-03-25 小米科技有限责任公司 Application process starting control method and device

Also Published As

Publication number Publication date
CN105677401A (en) 2016-06-15

Similar Documents

Publication Publication Date Title
US10681050B2 (en) Ephemeral applications
CN104462952B (en) A kind of method and device forbidden using self-starting
CN104376263B (en) The method and apparatus that application behavior intercepts
US9026712B2 (en) USB device control using endpoint type detection during enumeration
CN103826215B (en) A kind of method and apparatus for carrying out Root authority management on the terminal device
US8813175B2 (en) Multimodal computing device
CN104680060B (en) A kind of program opens management method and device certainly
US10505983B2 (en) Enforcing enterprise requirements for devices registered with a registration service
US20160232374A1 (en) Permission control method and apparatus
CN104375869B (en) Self-starting application control method and device
KR20140066718A (en) Selective file access for applications
US10956383B2 (en) Device backup and wipe
WO2016019893A1 (en) Application installation method and apparatus
CN104317373A (en) Method and device for cooling mobile terminal
WO2016127447A1 (en) Application installation method and terminal
CN105528251A (en) Application notification information processing method and device and mobile terminal
CN105677533A (en) Application process monitoring method and device
US10754931B2 (en) Methods for configuring security restrictions of a data processing system
CN105677401B (en) Application process startup method and application process startup device
CN105677400B (en) Application process startup method and application process startup device
US10073720B2 (en) Restricted application visibility
US20180321970A1 (en) Controlling Background Activity of an Application Using a Policy
CN106203087B (en) Injection protection method, system, terminal and storage medium
CN105809027B (en) Permission control method and device for application program
JP6258001B2 (en) Electronic apparatus and method

Legal Events

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

Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

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

Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

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

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20190806

CF01 Termination of patent right due to non-payment of annual fee