CN107835318B - 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
CN107835318B
CN107835318B CN201711167217.1A CN201711167217A CN107835318B CN 107835318 B CN107835318 B CN 107835318B CN 201711167217 A CN201711167217 A CN 201711167217A CN 107835318 B CN107835318 B CN 107835318B
Authority
CN
China
Prior art keywords
started
broadcast
starting
triggering
broadcast receiver
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
CN201711167217.1A
Other languages
Chinese (zh)
Other versions
CN107835318A (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 CN201711167217.1A priority Critical patent/CN107835318B/en
Publication of CN107835318A publication Critical patent/CN107835318A/en
Application granted granted Critical
Publication of CN107835318B publication Critical patent/CN107835318B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72484User interfaces specially adapted for cordless or mobile telephones wherein functions are triggered by incoming communication events
    • 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
    • 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/54Interprogram communication
    • G06F9/542Event management; Broadcasting; Multicasting; Notifications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • H04W52/0264Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by selectively disabling software applications
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

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 a system by triggering a broadcast receiver to receive a broadcast is triggered, wherein the preset timer is used for sending the broadcast at regular time to trigger the broadcast receiver to receive the broadcast, and the process to be started is a process corresponding to the broadcast receiver; acquiring and sending 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 broadcast receiver is prohibited from receiving the broadcast from the starting process by timing triggering, 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 that a system starts a process to be started by triggering a broadcast receiver to receive a broadcast is triggered, wherein the preset timer is used for regularly triggering broadcast transmission, and the process to be started is a process corresponding to the broadcast receiver;
acquiring and sending 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 sending module and a process starting module, wherein the process starting event triggering module is used for determining that a system is triggered to start a process to be started by triggering a broadcast receiver to receive a broadcast when detecting that a preset timer reaches a set interval time, the preset timer is used for triggering broadcast sending at regular time, and the process to be started is a process corresponding to the broadcast receiver;
the process attribute acquisition module is used for acquiring and sending 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 embodiment of the application, when the set timer is detected to reach the set interval time, after the event that the system is determined to start the process to be started by triggering the broadcast receiver to receive the broadcast is triggered, 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.
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 a 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 a broadcast receiver to receive a broadcast is triggered, wherein the preset timer is used for triggering broadcast transmission at regular time, and the process to be started is a process corresponding to the broadcast receiver.
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, so that some process keep-alive methods exist, and the process is started through some keep-alive methods after being killed by kill, wherein one keep-alive method is that a timer is set through the system, broadcast is sent at regular time, a broadcast receiver is triggered to receive the broadcast to start the process, and the broadcast comes from the starting process through the alarm method.
The preset timer is a timer preset by a system and used for sending a broadcast at regular time to trigger a broadcast receiver to receive the broadcast, the broadcast is sent at regular intervals of a set time, the broadcast can be a static broadcast, and the set time can be set according to the priority or other attributes of broadcast content, for example, the set time interval corresponding to the broadcast with the higher priority is set to be shorter, and the set time interval corresponding to the broadcast with the lower 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 A is started regularly by triggering the broadcast receiver in A to receive the broadcast regularly; as another example, the application a sets a timer in advance, and periodically starts the process in B by periodically triggering the broadcast receiver in B to receive the broadcast.
In the Android system, a broadcast receiver receives a broadcast and runs by carrying a process, the broadcast receiver corresponds to the process, and the broadcast receiver has a process to be started corresponding to the broadcast receiver.
And determining whether an event for starting the process to be started by triggering the broadcast receiver to receive the broadcast by the system is triggered or not every time the preset timer is detected to reach the set time interval. The method includes the steps of determining whether an event that a system starts a Process to be started by triggering a broadcast receiver to receive a broadcast is triggered or not according to caller attribute information and a setting function of a caller, wherein the caller can be the Process sending the broadcast, and the caller attribute information can include a Process Identifier (PID), a User Identifier (UID) and an application package name. Accordingly, determining that the event that the system performs the initiation of the to-be-initiated process by triggering the broadcast receiver to receive the broadcast is triggered may include: determining a caller sending the broadcast as a system process; when detecting that the system process calls a setting function for starting the process to be started by triggering a broadcast receiver to receive a broadcast, and the setting function comprises a setting parameter which represents that the system starts the preset timer, determining that an event for starting the process to be started by triggering the broadcast receiver to receive the broadcast is triggered. Wherein, the determining that the caller triggering the broadcast receiver to receive the broadcast is the system process may include: the process identifier of the caller triggering the broadcast receiver to receive the broadcast is a preset process identifier or the 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 processNextBroadcast function, and the setting parameter may be EXTRA _ ALARM _ COUNT. In android, broadcast is generally an un-visualized background running logic for receiving broadcast sent by a system or application to perform some services, called broadcast receiver. If there is application or the system sends out a broadcast, the system will get all broadcast receivers receiving the broadcast through the application package information management service, then the system will check to send the broadcast to each broadcast receiver one by one, and check if the process of the broadcast receiver is started, if not, it will need to start the process of the broadcast receiver. In android, the sendBroadcast () mode is called by the application context to send the broadcast, and the recipient is specified to receive the broadcast using the broadcastreceiver function. Caller attribute information and Intent parameters are passed in the broadcastreceiver function. If the caller is a system process and the Intent carries intent.extra _ ALARM _ COUNT, it indicates that the system triggers the event that the to-be-started process is started by triggering the broadcast receiver to receive the broadcast, that is, the event that the to-be-started process is started by sending the broadcast trigger broadcast receiver to receive the broadcast through the system timer is triggered.
And 102, acquiring and sending 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 sending a broadcast by 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 fact that the set timer reaches the set interval time is detected, after the event that the system triggers the broadcast receiver to receive the broadcast to start the process to be started is triggered, the attribute information of the process to be started is obtained, and if the attribute information meets the condition of prohibiting the process to be started from being started, the process to be started is prohibited from being started, so that the broadcast receiver is prohibited from receiving the broadcast from the starting process by timing triggering, 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 sending the broadcast at regular time is a system process.
Step 202, when detecting that the system process calls a setting function for starting the service to be started by triggering a broadcast receiver to receive the broadcast, and the setting function includes a parameter indicating that the system has started the preset timer, determining that an event for starting the process to be started by triggering the broadcast receiver to receive the broadcast 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 ending the broadcast to prevent the memory leakage of the memory occupied by the broadcast.
Memory Leak (Memory Leak) refers to a serious consequence that a program running speed is slowed down or a system is crashed and the like because a program of a dynamically allocated heap Memory in the program is not released or can not be released due to some reason, so that waste of a system Memory is caused. In this embodiment, after the process to be started is prohibited from being started, the broadcast corresponding to the process to be started is terminated (finish), so that memory leakage can be effectively prevented. Of course, the broadcast corresponding to other processes not to be started may be sent normally.
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, the caller sending the broadcast is determined to be a system process, when it is detected that the system process calls a set function for starting the process to be started by triggering a broadcast receiver to receive the broadcast, and the set function includes a set parameter indicating that the system has started the preset timer, it is determined that an event for starting the process to be started by triggering the broadcast receiver to receive the broadcast is triggered, attribute information of the process to be started is obtained, if the attribute information satisfies a condition for prohibiting the process to be started from being started, the process to be started is prohibited from being started, it is realized that the process which satisfies the condition for prohibiting self-starting is prohibited from being kept alive when the broadcast receiver is prohibited by sending the broadcast by the system timer to receive the broadcast from starting the process to be started, the starting operation of the control process can be reasonable, the running memory and the electric quantity of the mobile terminal are saved, and the running 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 for starting a process to be started is triggered by a system by triggering a broadcast receiver to receive a broadcast when detecting that a preset timer reaches a set interval time, where the preset timer is used to trigger broadcast transmission at regular time, and the process to be started is a process corresponding to the broadcast receiver;
the process attribute obtaining module 32 is configured to obtain and send 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 fact that the set timer reaches the set interval time is detected, after the event that the system receives the broadcast through the trigger broadcast receiver to start the process 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 fact that the broadcast receiver is forbidden to receive the broadcast from the starting process through timing trigger is achieved, 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 process to be started by triggering the broadcast receiver to receive the broadcast is triggered includes:
when detecting that the system process calls a setting function for starting the service to be started by triggering a broadcast receiver to receive the broadcast, and the setting function comprises a parameter representing that the system starts the preset timer, determining that an event for starting the process to be started by triggering the broadcast receiver to receive the broadcast 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 broadcast ending module is used for ending the broadcast so as to prevent the memory leakage of the memory occupied by the broadcast.
Optionally, the locking device 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 that a system starts a process to be started by triggering a broadcast receiver to receive a broadcast is triggered, wherein the preset timer is used for regularly triggering broadcast transmission, and the process to be started is a process corresponding to the broadcast receiver;
acquiring and sending 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, which may include a process-initiated management and control device provided in any embodiment of the application. Fig. 4 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application, and as shown in fig. 4, the mobile terminal may include: a memory 401, a Central Processing Unit (CPU) 402 (also called a processor, hereinafter referred to as CPU), and the memory 401, configured to store executable program codes; the processor 402 runs the program corresponding to the executable program code by reading the executable program code stored in the memory 401, and when the processor 402 executes the computer program, the method for managing process startup according to the embodiment of the present application is implemented.
The mobile terminal provided by the embodiment of the application realizes that the broadcast receiver is prohibited from receiving the broadcast and starting the process by timing triggering, 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 that a system starts a process to be started by triggering a broadcast receiver to receive a broadcast is triggered, wherein the preset timer is used for regularly triggering broadcast transmission, and the process to be started is a process corresponding to the broadcast receiver; acquiring and sending 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 (9)

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 a system by triggering a broadcast receiver to receive a broadcast is triggered, wherein the preset timer is used for sending the broadcast at regular time to trigger the broadcast receiver to receive the broadcast, and the process to be started is a process corresponding to the broadcast receiver;
acquiring attribute information of the process to be started; the attribute information comprises a process identifier, a name of a service to be started, a user identifier and an application package name;
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;
the self-starting switch of the application program to which the process to be started belongs is not started;
the event that the determining system starts the process to be started by triggering the broadcast receiver to receive the broadcast is triggered, and the event comprises the following steps:
if the process identification of a caller triggering a broadcast receiver to receive the broadcast is a preset process identification or the user identification is a preset user identification, determining that the caller is a system process;
when detecting that the system process calls a setting function for starting the service to be started by triggering a broadcast receiver to receive the broadcast and the setting function comprises a parameter representing that the system starts the preset timer, determining that an event for starting the process to be started by triggering the broadcast receiver to receive the broadcast is triggered.
2. 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.
3. 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.
4. The method according to claim 1, further comprising, after prohibiting the process to be started from starting:
and ending the broadcast to prevent the memory leakage of the memory occupied by the broadcast.
5. The method according to claim 1, 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.
6. 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.
7. A process starting management and control device is characterized by comprising:
the system comprises a process starting event triggering module, a process starting event sending module and a process starting module, wherein the process starting event triggering module is used for determining that a system is triggered to start a process to be started by triggering a broadcast receiver to receive a broadcast when detecting that a preset timer reaches a set interval time, the preset timer is used for triggering broadcast sending at regular time, and the process to be started is a process corresponding to the broadcast receiver;
the process attribute acquisition module is used for acquiring the attribute information of the process to be started; the attribute information comprises a process identifier, a name of a service to be started, a user identifier and an application package name;
a process starting prohibition module, configured to prohibit the process to be started from being started if the attribute information satisfies all of the following conditions:
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;
the self-starting switch of the application program to which the process to be started belongs is not started;
the process starting event triggering module is specifically configured to:
if the process identification of a caller triggering a broadcast receiver to receive the broadcast is a preset process identification or the user identification is a preset user identification, determining that the caller is a system process;
when detecting that the system process calls a setting function for starting the service to be started by triggering a broadcast receiver to receive the broadcast and the setting function comprises a parameter representing that the system starts the preset timer, determining that an event for starting the process to be started by triggering the broadcast receiver to receive the broadcast is triggered.
8. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a method of managing a start of a process according to any one of claims 1 to 6.
9. A mobile terminal comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method of managing the start of a process according to any one of claims 1 to 6 when executing the computer program.
CN201711167217.1A 2017-11-21 2017-11-21 Process starting control method and device, storage medium and mobile terminal Active CN107835318B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711167217.1A CN107835318B (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
CN201711167217.1A CN107835318B (en) 2017-11-21 2017-11-21 Process starting control method and device, storage medium and mobile terminal

Publications (2)

Publication Number Publication Date
CN107835318A CN107835318A (en) 2018-03-23
CN107835318B true CN107835318B (en) 2021-02-02

Family

ID=61653044

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711167217.1A Active CN107835318B (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) CN107835318B (en)

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8621475B2 (en) * 2007-12-06 2013-12-31 International Business Machines Corporation Responsive task scheduling in cooperative multi-tasking environments
CN101859260B (en) * 2010-05-14 2012-12-12 中国科学院计算技术研究所 Timer management device and management method for operating system
JP5842206B2 (en) * 2012-01-27 2016-01-13 株式会社トプスシステムズ Processor core and multi-core processor system
CN103927191B (en) * 2013-01-11 2017-05-24 北京阿里巴巴云计算技术有限公司 Resource allocation method and resource allocation device for invoking function
CN104462978B (en) * 2014-12-24 2017-09-15 北京奇虎科技有限公司 A kind of method and apparatus of application program rights management
CN104461725B (en) * 2014-12-30 2018-05-08 小米科技有限责任公司 The method and device for controlling application process to start
CN104991803B (en) * 2015-07-10 2018-04-06 上海斐讯数据通信技术有限公司 To the managing and control system and method for the self-starting under given conditions of android application programs
KR101631310B1 (en) * 2015-09-08 2016-06-16 이혁재 System and method for determining priority of program using resource
CN105653364B (en) * 2015-12-30 2019-04-16 Oppo广东移动通信有限公司 Application process management method and application process managing device
CN105955817A (en) * 2016-04-15 2016-09-21 北京小米移动软件有限公司 Service process control method and device
CN105975306A (en) * 2016-04-29 2016-09-28 北京天宇朗通通信设备股份有限公司 Application program starting management method and application program starting management apparatus for electronic device
CN106055360A (en) * 2016-05-30 2016-10-26 乐视控股(北京)有限公司 Starting method of application background service and mobile terminal
CN106201740A (en) * 2016-06-29 2016-12-07 北京金山安全软件有限公司 Broadcast message management method, device and equipment
CN106708617B (en) * 2016-12-23 2019-12-03 武汉斗鱼网络科技有限公司 A kind of application process keep-alive system and keepalive method based on Service

Also Published As

Publication number Publication date
CN107835318A (en) 2018-03-23

Similar Documents

Publication Publication Date Title
CN107844342B (en) Control method and device for keeping application program alive, storage medium and mobile terminal
CN107844341B (en) Process starting control method and device, 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
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
CN107797841B (en) Window control method and device, terminal equipment and storage medium
CN107831886B (en) Control method and device for associated starting application, storage medium and intelligent terminal
US10956176B2 (en) Processing method, device and storage medium for implementing automatic startup
CN108521607B (en) Method and device for processing advertisements in video, storage medium and intelligent terminal
CN108093451B (en) Random access control method, device, storage medium and mobile terminal
CN107026933B (en) Multi-open application message management method and device and intelligent terminal
CN107423064B (en) Message processing method and device, terminal equipment and storage medium
CN107943269B (en) Scheduling job control method, device, terminal equipment and storage medium
CN106844026B (en) Method and system for cleaning terminal equipment process
CN109408465B (en) File attribution information recording method, device, storage medium and terminal
CN107957913A (en) Associate management-control method, device, storage medium and the mobile terminal started
CN107885588B (en) Application service control method and device, storage medium and mobile terminal
CN106953852B (en) Registration method and device of broadcast receiver and terminal equipment
EP3486823B1 (en) System notification service control method, apparatus, terminal device, and storage medium
US10863521B1 (en) Broadcast receiver control method and apparatus, and mobile terminal
CN106844070B (en) Broadcast control method and device and mobile terminal
CN106791090B (en) Mobile terminal restart control method and device and mobile terminal
CN106936826B (en) Registration method and device of broadcast receiver and terminal equipment
CN107943268B (en) Scheduling job control method, device, terminal equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
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.

GR01 Patent grant
GR01 Patent grant