CN105700916B - Application process starts method and application process starter - Google Patents

Application process starts method and application process starter Download PDF

Info

Publication number
CN105700916B
CN105700916B CN201511033463.9A CN201511033463A CN105700916B CN 105700916 B CN105700916 B CN 105700916B CN 201511033463 A CN201511033463 A CN 201511033463A CN 105700916 B CN105700916 B CN 105700916B
Authority
CN
China
Prior art keywords
starting
application process
service
function
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.)
Active
Application number
CN201511033463.9A
Other languages
Chinese (zh)
Other versions
CN105700916A (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 CN201511033463.9A priority Critical patent/CN105700916B/en
Publication of CN105700916A publication Critical patent/CN105700916A/en
Application granted granted Critical
Publication of CN105700916B publication Critical patent/CN105700916B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/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
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/50Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
    • G06F21/51Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems at application loading time, e.g. accepting, rejecting, starting or inhibiting executable software based on integrity or source reliability

Landscapes

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

Abstract

The present invention provides a kind of application process starting method comprising receives application process enabled instruction;By the launching process function in starting management service, the starting type and starting information of the corresponding application process of application process enabled instruction are obtained;If the starting type of application process is system service Starting mode, and the starting information of application process is normal starting, then handles function by service starting and launching process function starts the application process;As application process starting type be system service Starting mode, and the starting information of application process be No starting, then application processes are not started.The present invention also provides a kind of application process starters.Application process starting method and application process starter of the invention is carried out the starting management of application process using corresponding function, realizes effective management of application processes starting according to the starting type and starting information of application process.

Description

Application process starts method and application process starter
Technical field
The present invention relates to application process control fields, start method more particularly to a kind of application process and application process opens Dynamic device.
Background technique
In Android system, all terminal applies startings all must start up a corresponding application process first.Pacifying It is by Activity Manager Service (starting management service) system service in tall and erect system administration services Start Process Locked (launching process function) function realizes application process starting as entrance.
In the prior art, some application can by calling non-visual running background service (service), thus into One step Start Process Locked function realizes the process initiation of itself application or other application.
But above-mentioned application Starting mode may be called as passed through using A using after B by certain rogues using utilizing Platform operation service, to realize the starting of the application process using B;At this time if be closed using A, can equally be called using B Using the running background service of A, to realize the starting of the application process using A.Make the application using A and application B in this way Process is constantly in activation starting state in systems, leads to the waste of system resource.
Summary of the invention
The embodiment of the present invention provides one kind can be actuated for the application process effectively managed starting method with application processes And application process starter;It cannot be to application with solve existing application process starting method and application process starter Process is actuated for the technical issues of effectively managing.
The embodiment of the present invention provides a kind of application process starting method comprising:
Receive application process enabled instruction;
By starting management service in launching process function, obtain the application process enabled instruction it is corresponding apply into The starting type and starting information of journey;
Such as the starting type of the application process is system service Starting mode, and the starting information of the application process is Normal starting, then start processing function by service and the launching process function start the application process;With And
Such as the starting type of the application process is system service Starting mode, and the starting information of the application process is No starting does not start the application process then.
It is described that processing function and the starting are started by service in application process starting method of the present invention The step of process function starts the application process specifically:
The application process that corresponding system service Starting mode is found by the service starting processing function, then uses The launching process function obtains corresponding resource and memory starts the application process;The wherein service starting Processing function is Bring Up Service Locked function, and the launching process function is Start Process Locked Function.
In application process starting method of the present invention, the launching process letter by starting management service The step of counting, obtaining the starting type of the corresponding application process of the application process enabled instruction specifically:
By the trustship type parameter of the launching process function in starting management service, obtains the application process starting and refer to The starting type of corresponding application process is enabled, wherein the corresponding trustship type ginseng of the application process of the system service Starting mode Number is service.
In application process starting method of the present invention, the acquisition application process enabled instruction is corresponding to be answered Include: with the step of starting information of process
According to the permission of the application process, the starting letter of the corresponding application process of the application process enabled instruction is obtained Breath, wherein the starting information is locally stored or strange land cloud storage.
It is described that processing function and the starting are started by service in application process starting method of the present invention The step of process function starts the application process include:
Judge whether the application process has been started up;
If the application process has been started up, then the application process is not started;
If the application process is inactive, then by service starting processing function and the launching process function to described Application process is started.
The embodiment of the present invention also provides a kind of application process starter comprising:
Command reception module, for receiving application process enabled instruction;
Application process parameter acquisition module, for being answered described in acquisition by starting the launching process function in management service The starting type and starting information of corresponding application process are instructed with process initiation;
Normal starting module, the starting type for such as described application process is system service Starting mode, and described is answered It is normal starting with the starting information of process, then is answered by service starting processing function and the launching process function described Started with process;And
No starting module, the starting type for such as described application process is system service Starting mode, and described is answered It is No starting with the starting information of process, then the application process is not started.
In application process starter of the present invention, the normal starting module is specifically used for passing through the service Starting processing function finds the application process of corresponding system service Starting mode, is then obtained using the launching process function Corresponding resource and memory start the application process;Wherein the service starting processing function is Bring Up Service Locked function, the launching process function are Start Process Locked function.
In application process starter of the present invention, the application process parameter acquisition module is specifically used for passing through The trustship type parameter for starting the launching process function in management service, obtains the corresponding application of the application process enabled instruction The starting type of process, wherein the corresponding trustship type parameter of the application process of the system service Starting mode is service.
In application process starter of the present invention, the application process parameter acquisition module is specifically used for basis The permission of the application process obtains the starting information of the corresponding application process of the application process enabled instruction, wherein described Starting information is locally stored or strange land cloud storage.
In application process starter of the present invention, the normal starting module includes:
Judging unit, for judging whether the application process has been started up;
Normal start unit, for as the application process it is inactive, then pass through service starting processing function and described Launching process function starts the application process.
Application process starting method and application process starter, application process of the invention compared to the prior art opens Dynamic method and application process starter are carried out according to the starting type and starting information of application process using corresponding function The starting management of application process realizes effective management of application processes starting;Solves existing application process starting side Method and application process starter be unable to application processes be actuated for the technical issues of effectively managing.
Detailed description of the invention
Fig. 1 is the flow chart for the first preferred embodiment that application process of the invention starts method;
Fig. 2 is the flow chart for the second preferred embodiment that application process of the invention starts method;
Fig. 3 is the flow chart of the step S203 for the second preferred embodiment that application process of the invention starts method;
Fig. 4 is the structural schematic diagram of the first preferred embodiment of application process starter of the invention;
Fig. 5 is the structural schematic diagram of the second preferred embodiment of application process starter of the invention;
Fig. 6 is the structural representation of the normal starting module of the second preferred embodiment of application process starter of the invention Figure;
Fig. 7 is the structural representation of the No starting module of the second preferred embodiment of application process starter of the invention Figure.
Specific embodiment
Schema is please referred to, wherein identical component symbol represents identical component, the principle of the present invention is to implement one It is illustrated in computing environment appropriate.The following description be based on illustrated by the specific embodiment of the invention, should not be by It is considered as the limitation present invention other specific embodiments not detailed herein.
In the following description, specific embodiments of the present invention will refer to the operation as performed by one or multi-section computer The step of and symbol illustrate, unless otherwise stating clearly.Therefore, these steps and operation be will appreciate that, mentioned for several times wherein having It include by representing with the computer disposal list of the electronic signal of the data in a structuring pattern to be executed by computer Member is manipulated.At this manipulation transforms data or the position being maintained in the memory system of the computer, it can match again Set or in addition change in a manner familiar to those skilled in the art the running of the computer.The maintained data knot of the data Structure is the provider location of the memory, has the specific feature as defined in the data format.But the principle of the invention is with above-mentioned Text illustrates, is not represented as a kind of limitation, those skilled in the art will appreciate that plurality of step as described below and Operation also may be implemented in hardware.
Various electronic equipments can be used to be implemented for application process starter of the invention, which includes but not It is limited to personal computer, server computer, hand-held or laptop devices, mobile device (such as mobile phone, individual digital Assistant (PDA), media player etc.), multicomputer system, consumer electronic devices, minicomputer, mainframe computer, Distributed computing environment, etc. including above-mentioned arbitrary system or equipment.But the electronic equipment is preferably intelligent mobile terminal, with Improve the validity of the starting management of intelligent mobile terminal application processes.
Fig. 1 is please referred to, Fig. 1 is the flow chart for the first preferred embodiment that application process of the invention starts method.This is excellent Selecting the application process of embodiment to start method above-mentioned electronic equipment can be used to be implemented.The application process starts method packet It includes:
Step S101 receives application process enabled instruction;
It is corresponding to obtain application process enabled instruction by the launching process function in starting management service by step S102 The starting type and starting information of application process;
Step S103, if the starting type of application process is system service Starting mode, and the starting information of application process Normally to start, then processing function is started by service and launching process function application processes are started;
Step S104, if the starting type of application process is system service Starting mode, and the starting information of application process For No starting, then application processes are not started.
The following detailed description of the detailed process of each step of the application process starting method of this preferred embodiment.
In step s101, application process starter can receive application process enabled instruction, application process starting Instruction is that some activation application request in terminal starts or activate the instruction of a certain application process, which can swash for this Process in application living can also be the process of another application.Then pass to step S102.
In step s 102, application process starter passes through terminal system after receiving application process enabled instruction In starting management service (Activity Manager Service) in launching process function (Start Process Locked), obtain the application process enabled instruction it is corresponding to be launched or activation application process starting type and starting Information.Here starting type may include visualization interface (Activity) Starting mode, the starting side system service (Service) Formula, broadcast Starting mode and data set provider (Content Provider) Starting mode etc..Starting information refer to start into The information that can be normally started is set in eikonal number, i.e. whether the application process has in such a way that certain starts type The permission started.Then pass to step S103 or step S104.
In step s 103, such as the starting type of the application process obtained in application process starter judgment step S102 For system service Starting mode, the starting information of application process is normal starting, then application process starter is opened by service The application process that dynamic processing function (Bring Up Service Locked) finds the corresponding system service Starting mode, with Afterwards using launching process function (Start Process Locked) apply corresponding resource and memory to the application process into Row starting.
In step S104, such as the starting type of the application process obtained in application process starter judgment step S102 For system service Starting mode, and the starting information of application process is No starting, then application process starter does not answer this Started with process, while application process starter should also close processing function (Bring Down by service Service Locked) the starting preparation of the application process of early period is subjected to cancellation processing, to prevent application process from malfunctioning.
The application process start-up course of the application process starting method of this preferred embodiment is completed in this way.
The application process starting method of this preferred embodiment is used according to the starting type and starting information of application process Corresponding function carries out the starting management of application process, reduces the self-starting of application process, realizes application processes starting Effective management, reduce the power consumption of corresponding mobile terminal.
Referring to figure 2., Fig. 2 is the flow chart for the second preferred embodiment that application process of the invention starts method.This is excellent Selecting the application process of embodiment to start method above-mentioned electronic equipment can be used to be implemented.The application process starts method packet It includes:
Step S201 receives application process enabled instruction;
Step S202 obtains application process by the trustship type parameter of the launching process function in starting management service The starting type of the corresponding application process of enabled instruction;And according to the permission of application process, application process enabled instruction pair is obtained The starting information for the application process answered;
Step S203, if the starting type of application process is system service Starting mode, and the starting information of application process Normally to start, then processing function is started by service and launching process function application processes are started;
Step S204, if the starting type of application process is system service Starting mode, and the starting information of application process For No starting, then application processes are not started.
The following detailed description of the detailed process of each step of the application process starting method of this preferred embodiment.
In step s 201, application process starter can receive application process enabled instruction, application process starting Instruction is that some activation application request in terminal starts or activate the instruction of a certain application process, which can swash for this Process in application living can also be the process of another application.Then pass to step S202.
In step S202, application process starter passes through terminal system after receiving application process enabled instruction In starting management service (Activity Manager Service) in launching process function (Start Process Locked), obtain the application process enabled instruction it is corresponding to be launched or activation application process starting type and starting Information.Here starting type may include visualization interface (Activity) Starting mode, the starting side system service (Service) Formula, broadcast Starting mode and data set provider (Content Provider) Starting mode etc..Starting information refer to start into The information that can be normally started is set in eikonal number, i.e. whether the application process has in such a way that certain starts type The permission started.
Specifically, the trustship type that application process starter passes through the launching process function in starting management service here Parameter (Hosting Type), to obtain the starting type of the corresponding application process of application process enabled instruction.As applied here Process initiation device is service by the trustship type parameter of the launching process function in starting management service, can determine that and answers It is system service Starting mode with the starting type of process.
Application process starter can also be corresponding to obtain application process enabled instruction according to the permission of application process simultaneously Application process starting information.If user does not have the starting information of application processes to set, then application process starting fills The starting information for setting the permission application processes of usable application process is set automatically, the low rights as built in by nonsystematic Application process be set as No starting, the application process of the high permission built in system is set to normal starting.The starting information After setting, can locally or beyond the clouds it stored in such a way that file or database etc. are various on server.It then passes to Step S203 or step S204.
In step S203, such as the starting type of the application process obtained in application process starter judgment step S202 For system service Starting mode, the starting information of application process is normal starting, then application process starter is opened by service The application process that dynamic processing function (Bring Up Service Locked) finds the corresponding system service Starting mode, with Afterwards using launching process function (Start Process Locked) apply corresponding resource and memory to the application process into Row starting.
Specifically, referring to figure 3., the step of Fig. 3 is the second preferred embodiment that application process of the invention starts method The flow chart of S203.Step S203 includes:
Step S301, judges whether application process has been started up;If application process has been started up, step S302 is gone to;Such as Application process is inactive, then goes to step S303.
Step S302, if application process has been started up, then application processes are not started application process starter;
Step S303, if application process is inactive, then application process starter by service starting processing function and Launching process function application processes are started.
In step S204, such as the starting type of the application process obtained in application process starter judgment step S202 For system service Starting mode, and the starting information of application process is No starting, then application process starter does not answer this Started with process, while application process starter should also close processing function (Bring Down by service Service Locked) the starting preparation of the application process of early period is subjected to cancellation processing, to prevent application process from malfunctioning.
The prompt information of No starting can also be returned to system by application process starter simultaneously, avoid system or application Obstruction.Furthermore the record of No starting can also be reported to starting management service by application process starter, so as to exception Application process start-up operation recorded.
The application process start-up course of the application process starting method of this preferred embodiment is completed in this way.
On the basis of first preferred embodiment, the application process starting method of this preferred embodiment is answered by searching for activation It is actuated for managing with process application processes, by being actuated for feedback and record to abnormal application process, into one Step improves the validity of the starting management of application process.
The present invention also provides a kind of application process starters, and referring to figure 4., Fig. 4 is that application process of the invention starts The structural schematic diagram of the first preferred embodiment of device.Above-mentioned answer can be used in the application process starter of this preferred embodiment Implemented with the first preferred embodiment of process initiation method.The application process starter 40 includes command reception module 41, application process parameter acquisition module 42, normal starting module 43 and No starting module 44.
Command reception module 41 is for receiving application process enabled instruction.Application process parameter acquisition module 42 is for passing through Start the launching process function in management service, obtain the corresponding application process of application process enabled instruction starting type and Start information.Normal starting module 43 is used for the starting type of such as application process as system service Starting mode, and application process Starting information be normal starting, then function is handled by service starting and launching process function application processes is opened It is dynamic.No starting module 44 is used for the starting type of such as application process as system service Starting mode, and the starting of application process Information is No starting, then application processes are not started.
The application process starter 40 of this preferred embodiment is in use, command reception module 41 can receive application first Process initiation instruction, the application process enabled instruction be terminal in some activation application request starting or activate it is a certain apply into The instruction of journey, the application process can be the process in activation application, can also be the process of another application.
Subsequent application process parameter acquisition module 42 is after receiving application process enabled instruction, by terminal system Start the launching process function (Start Process Locked) in management service (Activity Manager Service), Obtain the application process enabled instruction it is corresponding to be launched or activation application process starting type and starting information.Here Starting type may include visualization interface (Activity) Starting mode, system service (Service) Starting mode, broadcast open Flowing mode and data set provider (Content Provider) Starting mode etc..Starting information refers to be set in launching process function Whether the surely no information normally started, the i.e. application process have is started in such a way that certain starts type Permission.
The last application process that the acquisition of application process parameter acquisition module 42 is judged such as application process starter 40 opens Dynamic type is system service Starting mode, and the starting information of application process is normal starting, then normal starting module 43 passes through clothes Business starting processing function (Bring Up Service Locked) find the corresponding system service Starting mode application into Journey, then using launching process function (Start Process Locked) apply corresponding resource and memory to the application into Cheng Jinhang starting.
As application process starter 40 judges the starting type for the application process that application process parameter acquisition module obtains For system service Starting mode, and the starting information of application process is No starting, then No starting module 44 is not to the application Process is started, while No starting module 44 should also close processing function (Bring Down Service by service Locked the starting preparation of the application process of early period) is subjected to cancellation processing, to prevent application process from malfunctioning.
The application process start-up course of the application process starter 40 of this preferred embodiment is completed in this way.
The application process starting method of this preferred embodiment is used according to the starting type and starting information of application process Corresponding function carries out the starting management of application process, reduces the self-starting of application process, realizes application processes starting Effective management, reduce the power consumption of corresponding mobile terminal.
Referring to figure 5., Fig. 5 is the structural schematic diagram of the second preferred embodiment of application process starter of the invention. The application process starter of this preferred embodiment can be used above-mentioned application process start the second preferred embodiment of method into Row is implemented.The application process starter 50 includes command reception module 51, application process parameter acquisition module 52, normal starting Module 53 and No starting module 54.
Command reception module 51 is for receiving application process enabled instruction.Application process parameter acquisition module 52 is for passing through Start the launching process function in management service, obtain the corresponding application process of application process enabled instruction starting type and Start information;Specifically for the trustship type parameter by the launching process function in starting management service, application process is obtained The starting type of the corresponding application process of enabled instruction;According to the permission of application process, it is corresponding to obtain application process enabled instruction Application process starting information.It is system service starting side that normal starting module 53, which is used for the starting type of application process such as, Formula, and the starting information of application process is normal starting, then it is corresponding by service starting processing function and launching process function Started with process.It is system service Starting mode that No starting module 54, which is used for the starting type of application process such as, and is answered It is No starting with the starting information of process, then application processes are not started.
Fig. 6 is please referred to, Fig. 6 is the normal starting module of the second preferred embodiment of application process starter of the invention Structural schematic diagram.The normal starting module 53 includes judging unit 61 and normal start unit 62.Judging unit 61 is used for Judge whether application process has been started up.Normal start unit 62 is inactive for such as application process, then by servicing at starting Reason function and launching process function start the application process.
Fig. 7 is please referred to, Fig. 7 is the No starting module of the second preferred embodiment of application process starter of the invention Structural schematic diagram.The No starting module 54 includes prompt unit 71.The prompt unit 71 is for returning to mentioning for No starting Show information.
The application process starter 50 of this preferred embodiment is in use, command reception module 51 can receive application first Process initiation instruction, the application process enabled instruction be terminal in some activation application request starting or activate it is a certain apply into The instruction of journey, the application process can be the process in activation application, can also be the process of another application.
Subsequent application process parameter acquisition module 52 is after receiving application process enabled instruction, by terminal system Start the launching process function (Start Process Locked) in management service (Activity Manager Service), Obtain the application process enabled instruction it is corresponding to be launched or activation application process starting type and starting information.Here Starting type may include visualization interface (Activity) Starting mode, system service (Service) Starting mode, broadcast open Flowing mode and data set provider (Content Provider) Starting mode etc..Starting information refers to be set in launching process function Whether the surely no information normally started, the i.e. application process have is started in such a way that certain starts type Permission.
Specifically, the support that application process parameter acquisition module 52 passes through the launching process function in starting management service here Tubing shape parameter (Hosting Type), to obtain the starting type of the corresponding application process of application process enabled instruction.Such as this In application process starter by starting management service in launching process function trustship type parameter be service, can The starting type for determining application process is system service Starting mode.
Application process parameter acquisition module 52 can also refer to according to the permission of application process to obtain application process starting simultaneously Enable the starting information of corresponding application process.If user does not have the starting information of application processes to set, then application process The starting information of the permission application processes of application process can be used to be set automatically for parameter acquisition module, such as will be in nonsystematic The application process for the low rights set is set as No starting, and the application process of the high permission built in system is set to normal starting. The starting information locally or can deposited beyond the clouds in such a way that file or database etc. are various on server after setting Storage.
The starting of the last application process that the acquisition of application process parameter acquisition module is judged such as application process starter 50 Type is system service Starting mode, and the starting information of application process is normal starting, then normal starting module 53 passes through service The application process of the corresponding system service Starting mode is found in starting processing function (Bring Up Service Locked), Then apply corresponding resource and memory to the application process using launching process function (Start Process Locked) Started.
Specifically:
The judging unit 61 of normal starting module 53 judges whether application process has been started up;As application process has opened Dynamic, then application processes are not started normal starting module 53;If application process is inactive, then normal starting module 53 is being just Normal start unit 62 starts processing function by service and launching process function application processes are started.
As application process starter 50 judges the starting class for the application process that application process parameter acquisition module 52 obtains Type is system service Starting mode, and the starting information of application process is No starting, then No starting module 54 does not answer this Started with process, while No starting module 54 should also close processing function (Bring Down Service by service Locked the starting preparation of the application process of early period) is subjected to cancellation processing, to prevent application process from malfunctioning.
The prompt information of No starting can also be returned to system by the prompt unit 71 of No starting module 54 simultaneously, be avoided System or the obstruction of application.Furthermore the record of No starting can also be reported to starting management service by No starting module, so as to Abnormal application process start-up operation is recorded.
The application process start-up course of the application process starter 50 of this preferred embodiment is completed in this way.
On the basis of first preferred embodiment, the application process starter of this preferred embodiment is answered by searching for activation It is actuated for managing with process application processes, by being actuated for feedback and record to abnormal application process, into one Step improves the validity of the starting management of application process.
Illustrate application process starting method and application process starter of the invention below by a specific embodiment Concrete operating principle.
One, application process starter receive outside application process enabled instruction;
Two, the trustship type parameter of launching process function that application process starter obtains in starting management service is Service then judges the starting type of the corresponding application process of application process enabled instruction for system service Starting mode.
Three, the launching process function that application process starter obtains in starting management service obtains opening for the application process Dynamic information sets starting information as normal starting here.
Four, application process starter is found by service starting processing function (Bring Up Service Locked) The application process of the corresponding system service Starting mode then uses launching process function (Start Process Locked) Apply for that corresponding resource and memory start the application process.
So i.e. complete this specific embodiment application process starting method and application process starter application into Journey start-up course.
Of the invention application process starting method and application process starter according to the starting type of application process and Start information, the starting management of application process is carried out using corresponding function, realizes effective management of application processes starting; Solve existing application process starting method and application process starter is unable to being actuated for effectively for application processes The technical issues of management.
" component ", " module ", " system ", " interface ", " process " etc. are generally intended to as used herein the term Refer to computer related entity: hardware, the combination of hardware and software, software or software in execution.For example, component can be but not It is limited to be the process on a processor of running, processor, object, executable application, thread, program and/or the computer executed. By diagram, both the application and the controller run on the controller can be component.One or more components can have It is in the process executed and/or thread, and component can be located on a computer and/or be distributed in two or more meters Between calculation machine.
Moreover, claimed theme may be implemented as generating software using standard program and/or engineering technology, consolidate Part, hardware or any combination thereof are to control the method, apparatus or manufacture that computer realizes disclosed theme.It is used herein Term " manufacture " be intended to comprising can be from any computer readable device, carrier or the computer program of medium access.Certainly, Those skilled in the art will appreciate that many modifications can be carried out to the configuration, without departing from claimed theme range or Spirit.
There is provided herein the various operations of embodiment.In one embodiment, one or more operations can be with structure At the computer-readable instruction stored on one or more computer-readable mediums, will make to succeed in one's scheme when being executed by electronic equipment It calculates equipment and executes the operation.Describing the sequences of some or all of operations, to should not be construed as to imply that these operations necessarily suitable Sequence is relevant.It will be appreciated by those skilled in the art that the alternative sequence of the benefit with this specification.Furthermore, it is to be understood that Not all operation must exist in each embodiment provided in this article.
Moreover, word " preferred " used herein means serving as example, example or illustration.Feng Wen is described as " preferably " any aspect or design be not necessarily to be construed as than other aspect or design it is more advantageous.On the contrary, the use purport of word " preferred " Concept is being proposed in specific ways.Term "or" as used in this application is intended to mean the "or" for including and non-excluded "or".That is, unless specified otherwise or clear from the context, " X uses A or B " means that nature includes any one of arrangement. That is, if X uses A;X uses B;Or X uses A and B both, then " X uses A or B " is met in aforementioned any example.
Moreover, although the disclosure, this field skill has shown and described relative to one or more implementations Art personnel will be appreciated that equivalent variations and modification based on the reading and understanding to the specification and drawings.The disclosure include it is all this The modifications and variations of sample, and be limited only by the scope of the following claims.In particular, to by said modules (such as element, Resource etc.) the various functions that execute, term for describing such components is intended to correspond to the specified function for executing the component The random component (unless otherwise instructed) of energy (such as it is functionally of equal value), even if illustrated herein with execution in structure The disclosure exemplary implementations in function open structure it is not equivalent.In addition, although the special characteristic of the disclosure Through being disclosed relative to the only one in several implementations, but this feature can with such as can be to given or specific application For be expectation and one or more other features combinations of other advantageous implementations.Moreover, with regard to term " includes ", " tool Have ", " containing " or its deformation be used in specific embodiments or claims for, such term be intended to with term The similar mode of "comprising" includes.
Each functional unit in the embodiment of the present invention can integrate in a processing module, be also possible to each unit list It is solely physically present, can also be integrated in two or more units in a module.Above-mentioned integrated module can both use Formal implementation of hardware can also be realized in the form of software function module.If the integrated module is with software function The form of module is realized and when sold or used as an independent product, also can store in computer-readable storage Jie In matter.Storage medium mentioned above can be read-only memory, disk or CD etc..Above-mentioned each device or system, can be with Execute the method in correlation method embodiment.
In conclusion although the present invention has been disclosed above in the preferred embodiment, but above preferred embodiment is not to limit The system present invention, those skilled in the art can make various changes and profit without departing from the spirit and scope of the present invention Decorations, therefore protection scope of the present invention subjects to the scope of the claims.

Claims (9)

1. a kind of application process starts method characterized by comprising
Receive application process enabled instruction;
By the launching process function in starting management service, the corresponding application process of the application process enabled instruction is obtained Start type and starting information, comprising: according to the permission of the application process, it is corresponding to obtain the application process enabled instruction Application process starting information, wherein set using the starting information of the permission application processes of application process, non-system The application process of the built-in low rights of system is set as No starting, and the application process of the high permission built in system is set as normal Starting, the starting information is locally stored or strange land cloud storage;
Such as the starting type of the application process is system service Starting mode, and the starting information of the application process is normal Starting then starts processing function by service and the launching process function starts the application process;And
Such as starting type of the application process is system service Starting mode, and the starting information of the application process is to forbid Starting, then do not start the application process, and closes processing function for the starting of the application process of early period by service Preparation carries out cancellation processing.
2. application process according to claim 1 starts method, which is characterized in that described to start processing function by service And the launching process function the step of application process is started specifically:
The application process of corresponding system service Starting mode is found by the service starting processing function, described in subsequent use Launching process function obtains corresponding resource and memory starts the application process;The wherein service starting processing Function is Bring Up Service Locked function, and the launching process function is Start Process Locked function.
3. application process according to claim 1 starts method, which is characterized in that described by starting management service Launching process function, the step of obtaining the starting type of the corresponding application process of the application process enabled instruction specifically:
By the trustship type parameter of the launching process function in starting management service, the application process enabled instruction pair is obtained The starting type for the application process answered, wherein the corresponding trustship type parameter of the application process of the system service Starting mode is service。
4. application process according to claim 1 starts method, which is characterized in that described to start processing function by service And launching process function the step of starting to the application process, includes:
Judge whether the application process has been started up;
If the application process has been started up, then the application process is not started;
If the application process is inactive, then by service starting processing function and the launching process function to the application Process is started.
5. a kind of application process starter characterized by comprising
Command reception module, for receiving application process enabled instruction;
Application process parameter acquisition module, for by starting management service in launching process function, obtain it is described apply into The starting type and starting information of the corresponding application process of journey enabled instruction, specifically for the power according to the application process Limit, obtains the starting information of the corresponding application process of the application process enabled instruction, wherein use the permission pair of application process The starting information of application process is set, and the application process of the low rights built in nonsystematic is set as No starting, by system The application process of built-in high permission is set as normally starting, and the starting information is locally stored or strange land cloud storage;
Normal starting module, for such as described application process starting type be system service Starting mode, and it is described apply into The starting information of journey is normal starting, then by service starting processing function and the launching process function to it is described apply into Cheng Jinhang starting;And
No starting module, for such as described application process starting type be system service Starting mode, and it is described apply into The starting information of journey be No starting, then the application process is not started, and by service close processing function will before The starting preparation of the application process of phase carries out cancellation processing.
6. application process starter according to claim 5, which is characterized in that the normal starting module is specifically used for The application process that corresponding system service Starting mode is found by the service starting processing function, then uses the starting Process function obtains corresponding resource and memory starts the application process;The wherein service starting processing function For Bring Up Service Locked function, the launching process function is Start Process Locked function.
7. application process starter according to claim 5, which is characterized in that the application process parameter acquisition module Specifically for the trustship type parameter by the launching process function in starting management service, obtains the application process starting and refer to The starting type of corresponding application process is enabled, wherein the corresponding trustship type ginseng of the application process of the system service Starting mode Number is service.
8. application process starter according to claim 5, which is characterized in that the normal starting module includes:
Judging unit, for judging whether the application process has been started up;
Normal start unit, it is inactive for such as application process, then pass through service starting processing function and the starting Process function starts the application process.
9. a kind of storage medium, is stored with computer program, wherein the computer program makes computer execute such as right It is required that 1 to 4 described in any item methods.
CN201511033463.9A 2015-12-30 2015-12-30 Application process starts method and application process starter Active CN105700916B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201511033463.9A CN105700916B (en) 2015-12-30 2015-12-30 Application process starts method and application process starter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201511033463.9A CN105700916B (en) 2015-12-30 2015-12-30 Application process starts method and application process starter

Publications (2)

Publication Number Publication Date
CN105700916A CN105700916A (en) 2016-06-22
CN105700916B true CN105700916B (en) 2019-06-14

Family

ID=56226908

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201511033463.9A Active CN105700916B (en) 2015-12-30 2015-12-30 Application process starts method and application process starter

Country Status (1)

Country Link
CN (1) CN105700916B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108984212B (en) * 2017-05-31 2021-06-25 腾讯科技(深圳)有限公司 Method for closing process and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104156306A (en) * 2013-07-31 2014-11-19 腾讯科技(深圳)有限公司 Application process detection method and device and terminal equipment
CN104462952A (en) * 2014-12-31 2015-03-25 北京奇虎科技有限公司 Method and device for preventing self-starting of application
CN104598313A (en) * 2015-02-04 2015-05-06 广州市久邦数码科技有限公司 Implementation method for automatic restart after stop of application process and system thereof
CN105138899A (en) * 2015-07-27 2015-12-09 北京金山安全软件有限公司 Application program starting method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104461725B (en) * 2014-12-30 2018-05-08 小米科技有限责任公司 The method and device for controlling application process to start

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104156306A (en) * 2013-07-31 2014-11-19 腾讯科技(深圳)有限公司 Application process detection method and device and terminal equipment
CN104462952A (en) * 2014-12-31 2015-03-25 北京奇虎科技有限公司 Method and device for preventing self-starting of application
CN104598313A (en) * 2015-02-04 2015-05-06 广州市久邦数码科技有限公司 Implementation method for automatic restart after stop of application process and system thereof
CN105138899A (en) * 2015-07-27 2015-12-09 北京金山安全软件有限公司 Application program starting method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Android应用程序绑定服务(bindService)的过程源代码分析;Luoshengyang;《51CTO博客》;20110907;第354-363页

Also Published As

Publication number Publication date
CN105700916A (en) 2016-06-22

Similar Documents

Publication Publication Date Title
CN105446811B (en) Application process is associated with starting method and association starter
CN110765023B (en) Distributed system testing method and system based on chaos experiment
CN105204969B (en) Abnormal log processing method and abnormal log processing unit
CN104426885B (en) Abnormal account providing method and device
US9635098B2 (en) Open platform, open platform access system, storage medium, and method for allowing third party application to access open platform
CN104516783B (en) Authority control method and device
US9197629B2 (en) Remote direct memory access authentication of a device
CN105426244B (en) Application process management method and application process managing device
CN105337928B (en) Method for identifying ID, safety protection problem generation method and device
CN105677533B (en) Application process monitoring method and application process monitoring device
EP3084672B1 (en) Protection system including machine learning snapshot evaluation
US20180196875A1 (en) Determining repeat website users via browser uniqueness tracking
CN105591743B (en) Method and device for identity authentication through equipment operation characteristics of user terminal
CN105100003A (en) Method and device for preloading webpage game at client
CN105700942B (en) Application process is associated with starting method and association starter
CN105404536B (en) Method for updating terminal software and terminal software upgrading device
CN105653339B (en) Application process starts method and application process starter
CN106789837B (en) Network anomalous behaviors detection method and detection device
CN110677453A (en) ZooKeeper-based distributed lock service implementation method, device, equipment and storage medium
CN111585985B (en) Business identity recognition and authentication method and system based on block chain
CN105653364B (en) Application process management method and application process managing device
CN105700916B (en) Application process starts method and application process starter
CN107766230A (en) A kind of method and apparatus tested based on configuration file
CN105677401B (en) Application process starts method and application process starter
CN105677400B (en) Application process starts method and application process starter

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
CB02 Change of applicant information

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

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

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

Applicant before: Guangdong OPPO Mobile Communications Co., Ltd.

GR01 Patent grant
GR01 Patent grant