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

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

Info

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

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/485Task life-cycle, e.g. stopping, restarting, resuming execution

Abstract

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

Description

Process starting control method and device, storage medium and mobile terminal
Technical Field
The embodiment of the application relates to the technical field of process management and control, in particular to a method and a device for managing and controlling process starting, a storage medium and a mobile terminal.
Background
The application types and the realizable functions of mobile terminals such as mobile phones are more and more, convenience is provided for life and work of people, and people can make and receive calls, listen to music, watch videos, play games and the like by using the mobile phones. An application may run one or more processes during its execution to perform the normal implementation of one or more functions of the application. In the related art, a method for managing and controlling process starting of an application program has a defect and needs to be improved.
Disclosure of Invention
The embodiment of the application provides a process starting control method and device, a storage medium and a mobile terminal, which can reasonably control the starting of a process.
In a first aspect, an embodiment of the present application provides a process starting management and control method, including:
when detecting that a preset timer reaches a set interval time, determining that an event for starting a process to be started by triggering the service to be started by a system is triggered, wherein the preset timer is used for triggering the service to be started at regular time, and the process to be started is a process corresponding to the service to be started;
acquiring attribute information of the process to be started;
and if the attribute information meets the condition of forbidding the process to be started to start, forbidding the process to be started to start.
In a second aspect, an embodiment of the present application provides a process starting management and control apparatus, including:
the system comprises a process starting event triggering module, a process starting event triggering module and a process starting module, wherein the process starting event triggering module is used for determining that an event for starting a process to be started by triggering a service to be started is triggered when a preset timer is detected to reach a set interval time, the preset timer is used for triggering the service to be started at fixed time, and the process to be started is a process corresponding to the service to be started;
the process attribute acquisition module is used for acquiring the attribute information of the process to be started;
and the process starting prohibition module is used for prohibiting the process to be started from being started if the attribute information meets the condition of prohibiting the process to be started from being started.
In a third aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for managing process start as provided in the first aspect.
In a fourth aspect, an embodiment of the present application provides a mobile terminal, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the method for managing process start as provided in the first aspect when executing the method.
According to the method and the device, when the set timer is detected to reach the set interval time, after the event that the system is triggered to start the process to be started by triggering the service to be started is triggered, the attribute information of the process to be started is obtained, if the attribute information meets the condition of forbidding the process to be started to start, the process to be started is forbidden to start, the process is forbidden to start by the timed starting service, the starting operation of the process can be reasonably controlled, the running memory and the electric quantity of the mobile terminal are saved, and the running smoothness of the mobile terminal is improved.
Drawings
Fig. 1 is a flowchart of a method for managing and controlling process start according to an embodiment of the present application;
fig. 2 is a flowchart of another method for managing process initiation according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a process start control apparatus according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of another mobile terminal according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, specific embodiments of the present application will be described in detail with reference to the accompanying drawings. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be further noted that, for the convenience of description, only some but not all of the relevant portions of the present application are shown in the drawings. Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently or simultaneously. In addition, the order of the operations may be re-arranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Fig. 1 is a flowchart of a process-initiated management and control method provided in an embodiment of the present application, where the method of this embodiment may be performed by a process-initiated management and control device, which may be implemented by hardware and/or software, and the device may be disposed inside a mobile terminal as a part of the mobile terminal. The mobile terminal in the implementation of the application comprises a mobile phone, a tablet computer or a notebook computer and other devices.
As shown in fig. 1, the method for managing and controlling process start provided in this embodiment includes the following steps:
step 101, when detecting that a preset timer reaches a set interval time, determining that an event that a system starts a process to be started by triggering the service to be started is triggered, wherein the preset timer is used for triggering the service to be started to start at regular time, and the process to be started is a process corresponding to the service to be started.
The Android system kills the process when the memory is insufficient, for the third application, the process of the application program is expected to be not killed as much as possible, on the premise that some process keep-alive methods exist, after the process is killed by kill, the process is started through some keep-alive methods, wherein one keep-alive method is that a timer is set through the system, the process is started through timed awakening service, namely the process is started through the start service in the alam method.
The preset timer is a timer preset by a system and used for triggering the service to be started to start by timing awakening, the service to be started is awakened once at set intervals, and the set time can be set according to the priority or other attributes of the service to be started, for example, the set time interval corresponding to the service with the high priority is set to be shorter, and the set time interval corresponding to the service with the low priority is set to be longer. The preset timer can be a timer set by the system, and can also be a timer set by a third-party application program. When the preset timer is a timer set by a third-party application program, the process to be started may be a process in the third application program in which the timer is set, or a process in another third-party application program. Illustratively, the application program A is preset with a timer, and the process in the application program A is started regularly by waking up the service in the application program A regularly; as another example, the application a is preset with a timer, and the process in B is started periodically by waking up the service in the application B periodically.
In the Android system, a service is carried and operated by a process, the service corresponds to the process, and the process of the service to be started has a process to be started corresponding to the process, for example, a process for using WeChat payment for the service is corresponding to WeChat payment.
And when detecting that the preset timer reaches a set time interval, determining whether an event for starting the process to be started by triggering the service to be started by the system is triggered. The method includes the steps of determining whether an event that a system starts a Process to be started by triggering the service to be started is triggered or not according to caller attribute information and a set function of a caller, wherein the caller can be the Process triggering the service to be started, and the caller attribute information can include a Process Identifier (PID), a User Identifier (UID) and an application package name. Correspondingly, determining that the event that the system performs the start of the to-be-started process by triggering the start of the to-be-started service is triggered may include: determining a caller triggering the start of the service to be started as a system process; when detecting that the system process calls a setting function for starting the process to be started by starting the service to be started and the setting function comprises a setting parameter indicating that the system starts the preset timer, determining that an event for starting the process to be started by triggering the service to be started by the system is triggered. Wherein, the determining that the caller triggering the service to be started is a system process may include: the process identifier of the caller triggering the service to be started is a preset process identifier or a user identifier is a preset user identifier, for example, the process identifier PID is-1 or the user identifier UID is 1000.
The setting function may be a startServiceLocked function, and the setting parameter may be EXTRA _ ALARM _ COUNT. Generally, in android, service is non-visual background running logic, and is used for providing background running services for other applications, which may be referred to as services. When an application needs to execute a section of service logic but does not want to be visualized in the foreground, a startService function can be called to start service through an application context to call a service, and the service can be the service of the application or the service of another application. If there is other application to call a service, it will send a request to the system, and the system will check whether the process where the service is located has been started, if not, it will need to start the process where the service is located. In the android, when the startService function binding service is called through the application context, a startserviceLocke function in system code ActiveServices is finally called, and if the process of the service does not exist, a new process is started in the method. Caller attribute information and Intent parameters are passed in the startServiceLocked function. If the caller is a system process and the Intent carries intent.extra _ ALARM _ COUNT, it indicates that the system triggers the event for starting the process to be started by triggering the service to be started, i.e. the event for starting the process to be started is triggered by waking the service to be started by the system timer.
And 102, acquiring the attribute information of the process to be started.
The attribute information of the process to be started may include a process identifier, a name of a service to be started, a user identifier, and a name of an application package. And the application package name is the package name of the application program of the process to be started.
And 103, prohibiting the process to be started from being started when the attribute information meets the condition of prohibiting the process to be started from being started.
And if the attribute information meets the condition of forbidding the process to be started to start, forbidding the process to be started to start so as to prevent a third-party application from starting the process to be started in a process keep-alive mode of awakening the service to be started through a system timer.
Further, the method can also comprise the following steps: and if the attribute information does not meet the condition of forbidding the process to be started to start, controlling the process to be started to start.
According to the process starting control method provided by the embodiment, when the set timer is detected to reach the set interval time, after an event that the system triggers the service starting to be started to start the process to be started is triggered, the attribute information of the process to be started is acquired, and if the attribute information meets the condition of forbidding the process to be started to start, the process to be started is forbidden to start, so that the process is forbidden to start through the timing starting service, the starting operation of the process can be reasonably controlled, the running memory and the electric quantity of the mobile terminal are saved, and the running smoothness of the mobile terminal is improved.
Fig. 2 is a flowchart of another method for managing process initiation according to an embodiment of the present application. As shown in fig. 2, the method provided by this embodiment includes the following steps:
step 201, when detecting that the preset timer reaches the set interval time, determining that a caller triggering the service to be started is a system process.
Step 202, when it is detected that the system process calls a setting function for starting the process to be started by starting the service to be started, and the setting function includes a setting parameter indicating that the system has started the preset timer, determining that an event for starting the process to be started by triggering the service to be started is triggered.
Step 203, obtaining the attribute information of the process to be started. The attribute information may include a process identifier, a name of a service to be started, a user identifier, and a name of an application package.
And step 204, judging whether the attribute information meets the condition of forbidding the process to be started to start, if so, executing step 205, otherwise, executing step 206.
And if the attribute information meets the condition of forbidding the process to be started to start, forbidding the process to be started to start.
Optionally, if the attribute information meets all the following conditions, the process to be started is prohibited from being started: (1) the user identification is different from the user identification of the background running process; (2) the name of the service to be started is not in a first set white list; (3) the application package name is not in a second set white list; (4) and the self-starting switch of the application program to which the process to be started belongs is not started.
When determining whether or not the attribute information satisfies all of the above 4 conditions, the method may be implemented as follows: judging whether the condition (1) is met, if not, executing the step 206, if so, continuously judging whether the condition (2) is met, if not, executing the step 206, if so, continuously judging whether the condition (3) is met, if not, executing the step 206, if so, continuously judging whether the condition (4) is met, if not, executing the step 206, and if so, executing the step 205. It may also be configured to determine whether one or more of the 4 conditions are satisfied, which is not limited in this embodiment. For example, it may be set that the process to be started is prohibited from being started if the attribute information satisfies the conditions (1) and (2), and for example, it may be set that the process to be started is prohibited from being started if the attribute information satisfies the conditions (1), (2), and (3).
The first set white list and the second set white list can be locally acquired from a server or a terminal, and the local storage modes of the first set white list and the second set white list in the terminal comprise a file mode storage mode or a database mode storage.
Optionally, the method further includes: if the attribute information meets at least one of the following conditions, allowing the process to be started: the user identification is the same as that of the background running process; the name of the service to be started is in a first set white list; the application package name is in a second set white list; and the self-starting switch of the application program of the process to be started is opened. For example, if the user identifier of the process to be started is the same as the user identifier of the background running process, it indicates that the application program to which the process to be started belongs is already running in the background, and then the process to be started may not be managed and controlled any more, and the process to be started may be allowed to be started; for another example, if the service to be started is in the first set white list, or the application package name is in the second set white list, or the self-starting switch of the application program is turned on, it indicates that the process to be started is a preset process that allows self-starting, and the process to be started may be currently allowed to be started. The self-starting switch may be a switch in a third party application, such as a software manager or system setup options, and the user may manually turn on the self-starting switch for the application.
And step 205, prohibiting the process to be started from being started.
After the process to be started is prohibited from being started, the method further comprises the following steps: and controlling the set function to return to a null value to avoid errors.
And step 206, controlling the process to be started to start.
And step 207, storing the application package name of the system process and the application package name of the process to be started as an interception record, and displaying the interception record to a user.
Optionally, when it is detected that the preset timer reaches the set interval time, before the determining that the system triggers the event for starting the to-be-started process by triggering the to-be-started service to start, the method may further include: and if the application program of the process to be started belongs to the application program built in the system, allowing the process to be started.
In the method provided by this embodiment, when it is detected that the preset timer reaches the set interval time, a caller triggering the start of the service to be started is determined as a system process, when it is detected that the system process calls a set function for starting the process to be started by starting the service to be started and the set function includes a set parameter indicating that the system has started the preset timer, an event determining that the system starts the process to be started by triggering the start of the service to be started is triggered, attribute information of the process to be started is acquired, if the attribute information satisfies a condition for prohibiting the start of the process to be started, the process to be started is prohibited from being started, the process which satisfies the condition for prohibiting self-start is prohibited from being kept alive, and the start operation of the process can be reasonably managed and controlled, the operation memory and the electric quantity of the mobile terminal are saved, and the operation smoothness of the mobile terminal is improved.
Fig. 3 is a schematic structural diagram of a process start control device according to an embodiment of the present disclosure, where the process start control device may be implemented by software and/or hardware and integrated in a mobile terminal. As shown in fig. 3, the apparatus includes a process start event triggering module 31, a process attribute obtaining module 32, and a process start inhibiting module 33.
The process starting event triggering module 31 is configured to determine that an event that the system starts the process to be started by triggering the service to be started is triggered when detecting that a preset timer reaches a set interval time, where the preset timer is used to trigger the service to be started to start at regular time, and the process to be started is a process corresponding to the service to be started;
the process attribute obtaining module 32 is configured to obtain attribute information of the process to be started;
the process starting prohibition module 33 is configured to prohibit the process to be started from being started if the attribute information meets a condition for prohibiting the process to be started from being started.
According to the device provided by the embodiment, when the set timer is detected to reach the set interval time, after the event that the system is triggered to start the process to be started by triggering the service to be started is determined, the attribute information of the process to be started is obtained, and if the attribute information meets the condition of forbidding the process to be started to start, the process to be started is forbidden to start, so that the process is forbidden to start by the timing service, the starting operation of the process can be reasonably controlled, the running memory and the electric quantity of the mobile terminal are saved, and the running smoothness of the mobile terminal is improved.
Optionally, the determining, by the process starting event triggering module, that the event that the system starts the to-be-started process by triggering the to-be-started service to be started is triggered includes:
when detecting that a system process calls a setting function for starting the process to be started by starting the service to be started and the setting function comprises a setting parameter indicating that the system starts the preset timer, determining that an event that the system starts the process to be started by triggering the service to be started is triggered.
Optionally, the attribute information includes a process identifier, a name of a service to be started, a user identifier, and a name of an application package, and the process start prohibition module is specifically configured to:
if the attribute information meets all the following conditions, the process to be started is prohibited from being started:
the user identification is different from the user identification of the background running process;
the name of the service to be started is not in a first set white list;
the application package name is not in a second set white list;
and the self-starting switch of the application program to which the process to be started belongs is not started.
Optionally, the apparatus further comprises:
a first process starting module, configured to allow the process to be started if the attribute information satisfies at least one of the following conditions:
the user identification is the same as that of the background running process;
the name of the service to be started is in a first set white list;
the application package name is in a second set white list;
and the self-starting switch of the application program of the process to be started is opened.
Optionally, the apparatus further comprises:
and locally acquiring the first set white list and the second set white list from a server or a terminal, wherein the local storage modes of the first set white list and the second set white list in the terminal comprise a file mode storage mode or a database mode storage.
Optionally, the apparatus further comprises:
and the function return value control module is used for controlling the set function to return a null value after the process to be started is forbidden to be started.
Optionally, the apparatus further comprises:
and the interception record storage module is used for storing the application package name of the system process and the application package name of the process to be started as interception records after the process to be started is forbidden to be started, and displaying the interception records to a user.
Optionally, the apparatus further comprises:
and the second process starting module is used for allowing the process to be started if the application program to which the process to be started belongs is the application built in the system.
Embodiments of the present application also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform a method for process initiation management, the method including:
when detecting that a preset timer reaches a set interval time, determining that an event for starting a process to be started by triggering the service to be started by a system is triggered, wherein the preset timer is used for triggering the service to be started at regular time, and the process to be started is a process corresponding to the service to be started;
acquiring attribute information of the process to be started;
and if the attribute information meets the condition of forbidding the process to be started to start, forbidding the process to be started to start.
Storage medium-any of various types of memory devices or storage devices. The term "storage medium" is intended to include: mounting media such as CD-ROM, floppy disk, or tape devices; computer system memory or random access memory such as DRAM, DDR RAM, SRAM, EDO RAM, Lanbas (Rambus) RAM, etc.; non-volatile memory such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in a first computer system in which the program is executed, or may be located in a different second computer system connected to the first computer system through a network (such as the internet). The second computer system may provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations, such as in different computer systems that are connected by a network. The storage medium may store program instructions (e.g., embodied as a computer program) that are executable by one or more processors.
Of course, the storage medium provided in the embodiments of the present application includes computer-executable instructions, where the computer-executable instructions are not limited to the process starting management and control operation described above, and may also perform related operations in the process starting management and control method provided in any embodiment of the present application.
The embodiment of the application provides a mobile terminal, and a process starting control device provided by the embodiment of the application can be integrated in the mobile terminal. Fig. 4 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application. The mobile terminal 400 may include: the system comprises a memory 401, a processor 402 and a computer program stored on the memory 401 and executable by the processor 402, wherein the processor 402 implements a method for managing process start according to an embodiment of the present application when executing the computer program.
The mobile terminal provided by the embodiment of the application realizes prohibition of starting the process through the timing starting service, can reasonably control the starting operation of the process, saves the running memory and electric quantity of the mobile terminal, and improves the running smoothness of the mobile terminal.
Fig. 5 is a schematic structural diagram of another mobile terminal provided in the embodiment of the present application, and as shown in fig. 5, the mobile terminal may include: a memory 501, a Central Processing Unit (CPU) 502 (also called a processor, hereinafter referred to as CPU), and the memory 501, which is used for storing executable program codes; the processor 502 executes a program corresponding to the executable program code by reading the executable program code stored in the memory 501, for performing: when detecting that a preset timer reaches a set interval time, determining that an event for starting a process to be started by triggering the service to be started by a system is triggered, wherein the preset timer is used for triggering the service to be started at regular time, and the process to be started is a process corresponding to the service to be started; acquiring attribute information of the process to be started; and if the attribute information meets the condition of forbidding the process to be started to start, forbidding the process to be started to start.
The mobile terminal further includes: peripheral interface 503, RF (Radio Frequency) circuitry 505, audio circuitry 506, speakers 511, power management chip 508, input/output (I/O) subsystem 509, touch screen 512, other input/control devices 510, and external port 504, which communicate via one or more communication buses or signal lines 507.
It should be understood that the illustrated mobile terminal 500 is merely one example of a mobile terminal and that the mobile terminal 500 may have more or fewer components than shown, may combine two or more components, or may have a different configuration of components. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
The following describes in detail a mobile terminal for managing and controlling the process start provided in this embodiment, where the mobile terminal is a mobile phone as an example.
A memory 501, the memory 501 being accessible by the CPU502, the peripheral interface 503, and the like, the memory 501 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other volatile solid state storage devices.
A peripheral interface 503, the peripheral interface 503 may connect input and output peripherals of the device to the CPU502 and the memory 501.
An I/O subsystem 509, which I/O subsystem 509 may connect input and output peripherals on the device, such as a touch screen 512 and other input/control devices 510, to the peripheral interface 503. The I/O subsystem 509 may include a display controller 5091 and one or more input controllers 5092 for controlling other input/control devices 510. Where one or more input controllers 5092 receive electrical signals from or send electrical signals to other input/control devices 510, the other input/control devices 510 may include physical buttons (push buttons, rocker buttons, etc.), dials, slide switches, joysticks, click wheels. It is noted that the input controller 5092 may be connected to any one of: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
A touch screen 512, which is an input interface and an output interface between the user terminal and the user, displays visual output to the user, which may include graphics, text, icons, video, and the like.
The display controller 5091 in the I/O subsystem 509 receives electrical signals from the touch screen 512 or transmits electrical signals to the touch screen 512. The touch screen 512 detects a contact on the touch screen, and the display controller 5091 converts the detected contact into an interaction with a user interface object displayed on the touch screen 512, that is, implements a human-computer interaction, and the user interface object displayed on the touch screen 512 may be an icon for running a game, an icon networked to a corresponding network, or the like. It is worth mentioning that the device may also comprise a light mouse, which is a touch sensitive surface that does not show visual output, or an extension of the touch sensitive surface formed by the touch screen.
The RF circuit 505 is mainly used to establish communication between the mobile phone and the wireless network (i.e., network side), and implement data reception and transmission between the mobile phone and the wireless network. Such as sending and receiving short messages, e-mails, etc. In particular, the RF circuitry 505 receives and transmits RF signals, also referred to as electromagnetic signals, through which the RF circuitry 505 converts electrical signals to or from electromagnetic signals and communicates with communication networks and other devices. The RF circuitry 505 may include known circuitry for performing these functions including, but not limited to, an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a CODEC (CODEC) chipset, a Subscriber Identity Module (SIM), and so forth.
The audio circuit 506 is mainly used to receive audio data from the peripheral interface 503, convert the audio data into an electric signal, and transmit the electric signal to the speaker 511.
The speaker 511 is used for restoring the voice signal received by the handset from the wireless network through the RF circuit 505 to sound and playing the sound to the user.
And a power management chip 508 for supplying power and managing power to the hardware connected to the CPU502, the I/O subsystem, and the peripheral interface 503.
The control device for process starting, the storage medium and the mobile terminal provided in the above embodiments may execute the control method for process starting provided in any embodiment of the present application, and have corresponding functional modules and beneficial effects for executing the method. For details of the technology not described in detail in the above embodiments, reference may be made to a method for managing process start provided in any embodiment of the present application.
The foregoing is considered as illustrative of the preferred embodiments of the invention and the technical principles employed. The present application is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present application has been described in more detail with reference to the above embodiments, the present application is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present application, and the scope of the present application is determined by the scope of the claims.

Claims (10)

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

Priority Applications (1)

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

Applications Claiming Priority (1)

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

Publications (2)

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

Family

ID=61679966

Family Applications (1)

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

Country Status (1)

Country Link
CN (1) CN107844341B (en)

Families Citing this family (5)

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

Citations (2)

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

Family Cites Families (4)

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

Patent Citations (2)

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

Also Published As

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

Similar Documents

Publication Publication Date Title
CN107844341B (en) Process starting control method and device, storage medium and mobile terminal
CN107844342B (en) Control method and device for keeping application program alive, storage medium and mobile terminal
CN107748685B (en) Application program starting control method and device, terminal equipment and storage medium
CN107402835B (en) Application program exception handling method and device, storage medium and mobile terminal
RU2584549C1 (en) Method and mobile terminal for implementation of alarm in off state
CN107783803B (en) System optimization method and device of intelligent terminal, storage medium and intelligent terminal
CN107943270B (en) Application service control method and device, storage medium and mobile terminal
CN107831886B (en) Control method and device for associated starting application, storage medium and intelligent terminal
CN111373348B (en) Application switching method and terminal
CN107797841B (en) Window control method and device, terminal equipment and storage medium
US10956176B2 (en) Processing method, device and storage medium for implementing automatic startup
CN108920195B (en) Boot processing method and related product
CN107943269B (en) Scheduling job control method, device, terminal equipment and storage medium
CN107423064B (en) Message processing method and device, terminal equipment and storage medium
CN109408465B (en) File attribution information recording method, device, storage medium and terminal
CN107026933B (en) Multi-open application message management method and device and intelligent terminal
CN108536488B (en) Application starting optimization method and device, storage medium and terminal equipment
CN108093451B (en) Random access control method, device, storage medium and mobile terminal
CN106844026B (en) Method and system for cleaning terminal equipment process
CN107885588B (en) Application service control method and device, storage medium and mobile terminal
EP3486823B1 (en) System notification service control method, apparatus, terminal device, and storage medium
CN107943268B (en) Scheduling job control method, device, terminal equipment and storage medium
CN106791090B (en) Mobile terminal restart control method and device and mobile terminal
CN107888480A (en) Prompting message processing method, device, storage medium and mobile terminal
CN106708637B (en) Method, device and terminal for sending startup broadcast

Legal Events

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

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

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

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

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

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant