CN106708637B - Method, device and terminal for sending startup broadcast - Google Patents

Method, device and terminal for sending startup broadcast Download PDF

Info

Publication number
CN106708637B
CN106708637B CN201710144285.XA CN201710144285A CN106708637B CN 106708637 B CN106708637 B CN 106708637B CN 201710144285 A CN201710144285 A CN 201710144285A CN 106708637 B CN106708637 B CN 106708637B
Authority
CN
China
Prior art keywords
completion
broadcast
startup
stage
broadcast message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201710144285.XA
Other languages
Chinese (zh)
Other versions
CN106708637A (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 CN201710144285.XA priority Critical patent/CN106708637B/en
Publication of CN106708637A publication Critical patent/CN106708637A/en
Priority to PCT/CN2017/106606 priority patent/WO2018161574A1/en
Application granted granted Critical
Publication of CN106708637B publication Critical patent/CN106708637B/en
Expired - Fee Related 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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/542Event management; Broadcasting; Multicasting; Notifications

Abstract

The invention discloses a method, a device and a terminal for sending startup broadcast. The method comprises the following steps: after the startup initialization stage is completed, monitoring a startup completion broadcast message sent by a system; when monitoring a startup completion broadcast message, identifying a current startup completion stage; determining a corresponding broadcast receiver for receiving the startup completion broadcast message according to the current startup completion stage; and sending the starting-up completion broadcast message to the broadcast receiver. The invention solves the problem of high system performance cost caused by simultaneously sending the startup completion broadcast message to all the broadcast receivers in a short time, reduces the system performance cost and avoids system blockage by sending the startup completion broadcast message to the corresponding broadcast receivers in stages.

Description

Method, device and terminal for sending startup broadcast
Technical Field
The present invention relates to system broadcast technologies, and in particular, to a method, an apparatus, and a terminal for sending a startup broadcast.
Background
The Android (Android) system is an operating system of a mobile phone and other terminals which are widely applied at present. In the Android system, a plurality of different application programs exist, in order to rapidly transmit information in the different application programs, the Android system is realized by using a broadcasting mechanism, and when a message needs to be notified to the different application programs, the message is sent to the different application programs through broadcasting.
After the Android system is started up and initialized, a starting-up completion broadcast message is sent, an application program or a module for receiving the starting-up completion broadcast message is registered, and after the broadcast is sent, the system is automatically started up so as to process the broadcast. In the Android system, a plurality of modules and application programs are registered to receive the broadcast message of startup completion, and after the startup is completed and the broadcast message of startup completion is sent, the modules and the application programs which are registered to receive the broadcast message can be started at the same time, so that the system performance overhead is very large, and the system is blocked.
Disclosure of Invention
The embodiment of the invention provides a method, a device and a terminal for sending startup broadcast, which can reduce the system performance overhead and avoid system jamming.
In a first aspect, an embodiment of the present invention provides a method for sending a startup broadcast, where the method includes:
after the startup initialization stage is completed, monitoring a startup completion broadcast message sent by a system;
when monitoring a startup completion broadcast message, identifying a current startup completion stage;
determining a corresponding broadcast receiver for receiving the startup completion broadcast message according to the current startup completion stage;
and sending the starting-up completion broadcast message to the broadcast receiver.
In a second aspect, an embodiment of the present invention further provides an apparatus for sending a startup broadcast, where the apparatus includes:
the starting broadcast monitoring module is used for monitoring a starting completion broadcast message sent by the system after the starting initialization stage is completed;
the starting-up stage identification module is used for identifying the current starting-up completion stage when monitoring the starting-up completion broadcast message;
a broadcast receiver determining module, configured to determine, according to the current power-on completion stage, a corresponding broadcast receiver that receives the power-on completion broadcast message;
and the broadcast message sending module is used for sending the startup completion broadcast message to the broadcast receiver.
In a third aspect, an embodiment of the present invention further provides a terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the following steps when executing the computer program:
after the startup initialization stage is completed, monitoring a startup completion broadcast message sent by a system;
when monitoring a startup completion broadcast message, identifying a current startup completion stage;
determining a corresponding broadcast receiver for receiving the startup completion broadcast message according to the current startup completion stage;
and sending the starting-up completion broadcast message to the broadcast receiver.
According to the technical scheme of the embodiment of the invention, the startup completion broadcast message sent by the monitoring system is monitored after the startup initialization stage is completed, the current startup completion stage is identified when the startup completion broadcast message is monitored, the corresponding broadcast receiver for receiving the startup completion broadcast message is determined according to the current startup completion stage, and the startup completion broadcast message is sent to the broadcast receiver, so that the problem of high system performance overhead caused by the fact that the startup completion broadcast message is sent to all the broadcast receivers simultaneously and the broadcast receivers are started simultaneously in a short time is solved, the startup completion broadcast message is sent to the corresponding broadcast receivers in stages, the system performance overhead is reduced, and the system blockage is avoided.
Drawings
Fig. 1 is a flowchart of a method for transmitting a startup broadcast according to an embodiment of the present invention;
FIG. 2 is a flowchart of a method for transmitting a boot broadcast according to an embodiment of the present invention;
FIG. 3 is a flowchart of a method for transmitting a boot broadcast according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of an apparatus for transmitting a start-up broadcast according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some but not all of the relevant aspects of the present invention 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 steps as a sequential process, many of the steps can be performed in parallel, concurrently or simultaneously. In addition, the order of the steps may be rearranged. 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 method for sending a start-up broadcast according to an embodiment of the present invention, where the embodiment is applicable to a case where the start-up broadcast is sent in stages, and the method may be executed by a device for sending the start-up broadcast, where the device may be implemented by software and/or hardware, the device may be integrated in a terminal, and the terminal may be a smart phone, a tablet computer, or the like, and the method includes the following steps:
step 110, after the startup initialization stage is completed, monitoring a startup completion broadcast message sent by the system.
The broadcast mechanism is essentially a communication method between components in the operating system of the terminal, and is a mechanism widely used for transmitting messages between application programs. For example, under the android system of the terminal, after some operations are completed, a broadcast message is sent. The broadcast message may be various event message data generated in the operating system, for example, a short message is sent or a call is made, and the broadcast is sent, and when an application program receives the broadcast, corresponding processing can be performed. The broadcast sender may be system and application software. The application software may be third-party application software installed in a terminal such as a mobile phone or an application program carried by the system, for example: the third-party application software installed on the terminal can comprise a WeChat client, a QQ client, a Taobao client, a Paobao client and the like, and the application programs carried by the system can comprise a calendar, a clock, weather, notes and the like. The broadcast message may be a system broadcast, which may include a bright screen broadcast, a clear screen broadcast, an unlock broadcast, a network status change broadcast, a bluetooth status change broadcast, a switching language broadcast, a switching theme broadcast, etc., and an application broadcast, which may be a broadcast issued by application software.
The startup initialization stage is a stage of receiving a startup instruction to supply power and preparing to wake up the system. After the startup initialization stage is completed, the system dynamics can be monitored through a broadcast management module (such as an activitymanager service) in the terminal, and whether the system sends a startup completion broadcast message or not is detected. The ActivityManagerService plays a role of a broadcast center in a broadcast mechanism of an Android system and is responsible for registration and release operations of all broadcasts in the system, wherein the registration of the broadcasts refers to a process of registering a broadcast receiver in the ActivityManagerService by an application program. The distribution of the broadcast includes that a broadcast sender sends the broadcast to an activiymanagervice, the activiymanagervice receives the broadcast and checks which broadcast receivers subscribe to the broadcast in a registration center of the activiymanagervice, and then the broadcast is sent to the broadcast receivers one by one. In the Android system, a startup completion broadcast message sent by a monitoring system monitors whether the system sends the startup completion broadcast message to an ActivityManagerService or not through the ActivityManagerService, and when the startup completion broadcast message is sent to the ActivityManagerService through the ActivityManagerService, the monitoring system is determined to send the startup completion broadcast message.
And 120, identifying the current startup completion stage when monitoring the startup completion broadcast message.
The boot-up completion phase, i.e., the boot-up initialization phase, completes the phase of starting up the system application or the third-party application later. The method can be divided into a plurality of stages according to requirements, and corresponding application programs are started in the corresponding stages. The startup completion phase preferably comprises a system service initialization completion phase, a desktop and screen locking initialization completion phase or an idle phase after initialization is completed.
The broadcast receiver (i.e., the system application to be started or the third-party application) that receives the startup completion broadcast message corresponding to the startup completion phase may be preset. When the startup completion broadcast message is monitored, inquiring which application programs of the registration center are registered to receive the startup completion broadcast message, and identifying the current startup completion stage. For example, each boot completion phase may be preset with a corresponding time, so that the current boot completion phase may be identified from the time when the boot completion broadcast message is monitored. The method may further include, when the startup completion broadcast message is monitored, entering a second startup completion stage after the startup completion broadcast message that needs to be sent in the first startup completion stage is sent, entering a third startup completion stage after the startup completion broadcast message that needs to be sent in the second startup completion stage is sent, and so on until all startup completion broadcast messages that need to be sent in the startup completion stage are sent.
Step 130, according to the current startup completion stage, determining a corresponding broadcast receiver for receiving the startup completion broadcast message.
According to the preset broadcast receiver for receiving the startup completion broadcast message corresponding to the startup completion stage, and in combination with the current startup completion stage, the corresponding broadcast receiver for receiving the startup completion broadcast message can be determined.
The system service initialization completion stage mainly starts application programs related to system services, and sends a startup completion broadcast message to the application programs; the desktop and lock screen initialization completion stage mainly starts the desktop and lock screen related application programs, and at this time, the startup completion broadcast message is sent to the application programs; and the idle stage mainly starts the third-party application programs after the initialization is finished, and sends the startup completion broadcast message to the application programs.
For example, when a start-up completion broadcast message is just monitored, the current start-up completion stage is identified as a system service initialization completion stage, and the start-up completion broadcast message is sent to an application program (such as a telephone application module, a status bar module, a system setting module and the like) started at the current stage; after the completion of the sending of the startup completion broadcast message in the system service initialization stage, entering a desktop and screen locking initialization completion stage, and then sending the startup completion broadcast message to an application program (such as a contact, a calendar and the like) started at the stage; and after the startup completion broadcast message of the desktop and lock screen initialization completion stage is sent, entering an initialization completion idle stage, and then sending the startup completion broadcast message to the application program (such as WeChat, mail and the like) started at the stage.
Step 140, sending the boot completion broadcast message to the broadcast receiver.
And after the broadcast receiver which receives the startup completion broadcast message and corresponds to the current startup completion stage is determined, sending the startup completion broadcast message to the corresponding broadcast receiver.
According to the technical scheme of the embodiment, after the startup initialization stage is completed, the startup completion broadcast message sent by the system is monitored, when the startup completion broadcast message is monitored, the current startup completion stage is identified, the corresponding broadcast receiver for receiving the startup completion broadcast message is determined according to the current startup completion stage, and the startup completion broadcast message is sent to the broadcast receiver, so that the problem that the system performance cost is high due to the fact that the broadcast receiver is started simultaneously in a short time because the startup completion broadcast message is sent to all the broadcast receivers simultaneously is solved, the startup completion broadcast message is sent to the corresponding broadcast receiver in stages, the system performance cost is reduced, and the system blockage is avoided.
On the basis of the above technical solution, after sending the boot completion broadcast message to the broadcast receiver, the method further includes:
the broadcast receiver is activated.
After the startup completion broadcast message is sent to the broadcast receiver corresponding to the current startup completion stage, the broadcast receiver is started, that is, different broadcast receivers can be started in stages, so that the simultaneous starting of all the broadcast receivers is avoided, and the system performance overhead is further reduced.
Fig. 2 is a flowchart of a method for sending a startup broadcast according to an embodiment of the present invention, where the method includes the following steps:
step 210, after the startup initialization phase is completed, monitoring a startup completion broadcast message sent by the system.
Step 220, when the start-up completion broadcast message is monitored, the current start-up completion stage is identified.
Step 230, a pre-established correspondence between the boot completion phase and the module boot priority is obtained.
The module starting priority defines the priority of the application program to be started in the starting completion stage. The number of stages of the module starting priority is greater than or equal to the number of stages of the starting completion stage, so that the application program corresponding to the module starting priority is started at the corresponding starting completion stage. For example, when the startup completion stage includes three stages, the priority of the application program to be started may be divided into three different module start priorities according to the importance degree of the application program to be started, so that the three different module start priorities correspond to the three different startup completion stages respectively, that is, the module start priorities correspond to the startup completion stages one to one.
The corresponding relationship between the startup completion phase and the module startup priority can be pre-established, and the module startup priority of the application program to be started in the startup completion phase is set.
And 240, determining the module starting priority corresponding to the current starting completion stage according to the current starting completion stage and the corresponding relation.
After the current startup completion stage is determined, the module startup priority corresponding to the current startup completion stage can be determined by combining the pre-established correspondence between the startup completion stage and the module startup priority.
And step 250, determining a corresponding broadcast receiver for receiving the startup completion broadcast message according to the module starting priority.
The method comprises the steps of obtaining a preset module starting priority of an application program (a broadcast receiver of the broadcast message of the starting completion) to be started at the starting completion stage, inquiring the broadcast receiver with the module starting priority according to the determined module starting priority corresponding to the current starting completion stage, and determining the broadcast receiver of the broadcast message of the starting completion corresponding to the module starting priority.
According to the technical scheme of the embodiment, the corresponding relation between the startup completion stage and the module starting priority is established in advance, after the current startup completion stage is determined, the module starting priority corresponding to the current startup completion stage is determined by combining the corresponding relation, and the corresponding broadcast receiver for receiving the startup completion broadcast message is determined according to the module starting priority, so that the speed of determining the corresponding broadcast receiver in the corresponding startup completion stage is increased, and the processing speed of the startup completion broadcast message is increased.
Fig. 3 is a flowchart of a method for sending a startup broadcast according to an embodiment of the present invention, where the method includes the following steps:
in step 310, after the boot initialization phase is completed, a boot completion broadcast message sent by the system is monitored.
In step 320, when the start-up completion broadcast message is monitored, the current start-up completion stage is identified.
Step 330, a pre-established correspondence between the boot completion phase and the application attribute of the broadcast receiver receiving the boot completion broadcast message is obtained.
The application attribute is an attribute of an application program to be started at the startup completion stage, such as a system important application (e.g., a telephone application module, a status bar module, system settings, etc.), a system basic application (e.g., a contact, a calendar, etc.), a third-party application (e.g., a WeChat, a mail, etc.), and the like.
The corresponding relation between the startup completion stage and the application attribute of the broadcast receiver receiving the startup completion broadcast message can be pre-established, and the application attribute of the application program to be started in the startup completion stage can be determined.
Step 340, determining the application attribute corresponding to the current startup completion stage according to the current startup completion stage and the corresponding relationship.
After the current startup completion stage is determined, the application attribute corresponding to the current startup completion stage can be determined by combining the pre-established correspondence between the startup completion stage and the application attribute.
Step 350, determining the corresponding broadcast receiver for receiving the startup completion broadcast message according to the application attribute.
And according to the application attribute, inquiring the broadcast receiver with the application attribute as the broadcast receiver which is corresponding to the current startup completion stage and receives the startup completion broadcast message from all the broadcast receivers which receive the startup completion broadcast message.
In an embodiment, determining, according to the application attribute, a corresponding broadcast receiver receiving the power-on completion broadcast message optionally includes:
counting the broadcast receivers which are currently registered for receiving the startup completion broadcast messages;
and determining the broadcast receiver with the application attribute in the currently registered broadcast receivers as the corresponding broadcast receiver for receiving the startup completion broadcast message.
The broadcast receivers currently registered for receiving the startup completion broadcast message may be counted when the current startup completion stage is determined, and the broadcast receiver having the application attribute among the broadcast receivers is the broadcast receiver corresponding to the current startup completion stage and receiving the startup completion broadcast message.
According to the technical scheme of the embodiment, the corresponding relation between the startup completion stage and the broadcast receiver receiving the startup completion broadcast message is established in advance, after the current startup completion stage is determined, the application attribute corresponding to the current startup completion stage is determined by combining the corresponding relation, the broadcast receiver receiving the startup completion broadcast message is determined according to the application attribute, the speed of determining the corresponding broadcast receiver in the corresponding startup completion stage is increased, and the processing speed of the startup completion broadcast message is increased.
Fig. 4 is a schematic structural diagram of an apparatus for sending a startup broadcast according to an embodiment of the present invention, and as shown in fig. 4, the apparatus for sending a startup broadcast according to the present embodiment includes: a power-on broadcast listening module 410, a power-on phase identification module 420, a broadcast receiver determination module 430, and a broadcast message sending module 440.
The startup broadcast monitoring module 410 is configured to monitor a startup completion broadcast message sent by the system after the startup initialization stage is completed;
a boot stage identification module 420, configured to identify a current boot stage when the boot completion broadcast message is monitored;
a broadcast receiver determining module 430, configured to determine, according to the current power-on completion stage, a corresponding broadcast receiver that receives the power-on completion broadcast message;
a broadcast message sending module 440, configured to send the power-on completion broadcast message to the broadcast receiver.
Optionally, the broadcast receiver determining module includes:
the first corresponding relation obtaining unit is used for obtaining the corresponding relation between a pre-established starting completion stage and the module starting priority;
a starting priority determining unit, configured to determine, according to the current starting completion stage and the corresponding relationship, a module starting priority corresponding to the current starting completion stage;
and the first broadcast receiver determining unit is used for determining the corresponding broadcast receiver for receiving the startup completion broadcast message according to the module starting priority.
Optionally, the broadcast receiver determining module includes:
a second corresponding relation obtaining unit, configured to obtain a corresponding relation between a pre-established startup completion stage and an application attribute of a broadcast receiver that receives a startup completion broadcast message;
the application attribute determining unit is used for determining the application attribute corresponding to the current starting-up completion stage according to the current starting-up completion stage and the corresponding relation;
and the second broadcast receiver determining unit is used for determining the corresponding broadcast receiver for receiving the startup completion broadcast message according to the application attribute.
Optionally, the second broadcast receiver determining unit is specifically configured to:
counting the broadcast receivers which are currently registered for receiving the startup completion broadcast messages;
and determining the broadcast receiver with the application attribute in the currently registered broadcast receivers as the corresponding broadcast receiver for receiving the startup completion broadcast message.
Optionally, the method further includes:
a broadcast receiver starting module, configured to start the broadcast receiver after sending the startup completion broadcast message to the broadcast receiver.
Optionally, the startup completion stage includes a system service initialization completion stage, a desktop and screen locking initialization completion stage, or an idle stage after initialization is completed.
The device for sending the startup broadcast can execute the method for sending the startup broadcast provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method. For details of the technology that are not described in detail in this embodiment, reference may be made to a method for sending a startup broadcast provided in any embodiment of the present invention.
The embodiment of the invention also provides a terminal which can comprise the device for sending the startup broadcast provided by any embodiment of the invention. Fig. 5 is a schematic structural diagram of a terminal according to an embodiment of the present invention, and as shown in fig. 5, the terminal may include: a housing (not shown), a memory 501, a Central Processing Unit (CPU) 502 (also called a processor, hereinafter referred to as CPU), a computer program stored in the memory 501 and operable on the processor 502, a circuit board (not shown), and a power circuit (not shown). The circuit board is arranged in a space enclosed by the shell; the CPU502 and the memory 501 are provided on the circuit board; the power supply circuit is used for supplying power to each circuit or device of the terminal; the memory 501 is used for storing a computer program which can run on the processor; the CPU402 reads and executes the computer program stored in the memory 501.
The 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 terminal 500 is only one example of a terminal, and that the terminal 500 may have more or fewer components than shown in the figures, 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 the terminal for sending the power-on broadcast provided in this embodiment, and the 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 (equivalent to the screen in the above embodiment) 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 interfaces.
The CPU502 provided in the embodiment of the present invention implements the following steps when executing the computer program stored in the memory 501:
after the startup initialization stage is completed, monitoring a startup completion broadcast message sent by a system;
when monitoring a startup completion broadcast message, identifying a current startup completion stage;
determining a corresponding broadcast receiver for receiving the startup completion broadcast message according to the current startup completion stage;
and sending the starting-up completion broadcast message to the broadcast receiver.
The terminal can execute the method provided by any embodiment of the invention, and has the corresponding functional module and beneficial effect of the execution method.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention 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 invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (7)

1. A method of transmitting a power-on broadcast, the method comprising:
after the startup initialization stage is completed, monitoring a startup completion broadcast message sent by a system;
when monitoring a startup completion broadcast message, identifying a current startup completion stage;
acquiring a corresponding relation between a pre-established startup completion stage and application attributes of a broadcast receiver receiving a startup completion broadcast message, wherein the application attributes are attributes of application programs to be started in the startup completion stage, and the application programs comprise system applications and third-party applications;
determining the application attribute corresponding to the current startup completion stage according to the current startup completion stage and the corresponding relation;
determining a corresponding broadcast receiver for receiving the startup completion broadcast message according to the application attribute, wherein the broadcast receiver comprises a system application to be started and a third-party application;
the startup completion stage comprises a system service initialization completion stage, a desktop and screen locking initialization completion stage and an idle stage after initialization is completed; when the startup completion broadcast message is monitored, recognizing the current startup completion stage as a system service initialization completion stage, and sending the startup completion broadcast message to an application program related to a system service; after the startup completion broadcast message of the system service initialization completion stage is sent, entering a desktop and screen locking initialization completion stage, and sending the startup completion broadcast message to an application program related to the desktop and the screen locking; and after the startup completion broadcast message of the desktop and lock screen initialization completion stage is sent, entering an initialization completion idle stage, and sending the startup completion broadcast message to a third-party application.
2. The method of claim 1, wherein determining a corresponding broadcast receiver to receive the power-on completion broadcast message according to the application attribute comprises:
counting the broadcast receivers which are currently registered for receiving the startup completion broadcast messages;
and determining the broadcast receiver with the application attribute in the currently registered broadcast receivers as the corresponding broadcast receiver for receiving the startup completion broadcast message.
3. The method of claim 1, further comprising, after sending the power-on complete broadcast message to the broadcast receiver:
the broadcast receiver is activated.
4. An apparatus for transmitting a power-on broadcast, the apparatus comprising:
the starting broadcast monitoring module is used for monitoring a starting completion broadcast message sent by the system after the starting initialization stage is completed;
the starting-up stage identification module is used for identifying the current starting-up completion stage when monitoring the starting-up completion broadcast message;
a broadcast receiver determining module, configured to determine, according to the current power-on completion stage, a corresponding broadcast receiver that receives the power-on completion broadcast message;
a broadcast message sending module, configured to send the startup completion broadcast message to the broadcast receiver;
wherein the broadcast receiver determining module includes:
a second corresponding relation obtaining unit, configured to obtain a corresponding relation between a pre-established startup completion stage and an application attribute of a broadcast receiver that receives a startup completion broadcast message, where the application attribute is an attribute of an application program to be started at the startup completion stage, and the application program includes a system application and a third-party application; the startup completion stage comprises a system service initialization completion stage, a desktop and screen locking initialization completion stage and an idle stage after initialization is completed;
the application attribute determining unit is used for determining the application attribute corresponding to the current starting-up completion stage according to the current starting-up completion stage and the corresponding relation;
a second broadcast receiver determining unit, configured to determine, according to the application attribute, a corresponding broadcast receiver that receives a startup completion broadcast message, where the broadcast receiver includes a system application to be started and a third-party application;
the broadcast message sending module is specifically configured to: when the startup completion broadcast message is monitored, recognizing the current startup completion stage as a system service initialization completion stage, and sending the startup completion broadcast message to an application program related to a system service; after the startup completion broadcast message of the system service initialization completion stage is sent, entering a desktop and screen locking initialization completion stage, and sending the startup completion broadcast message to an application program related to the desktop and the screen locking; and after the startup completion broadcast message of the desktop and lock screen initialization completion stage is sent, entering an initialization completion idle stage, and sending the startup completion broadcast message to a third-party application.
5. The apparatus of claim 4, wherein the second broadcast receiver determining unit is specifically configured to:
counting the broadcast receivers which are currently registered for receiving the startup completion broadcast messages;
and determining the broadcast receiver with the application attribute in the currently registered broadcast receivers as the corresponding broadcast receiver for receiving the startup completion broadcast message.
6. The apparatus of claim 4, further comprising:
a broadcast receiver starting module, configured to start the broadcast receiver after sending the startup completion broadcast message to the broadcast receiver.
7. A terminal comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor when executing the computer program performs the steps of:
after the startup initialization stage is completed, monitoring a startup completion broadcast message sent by a system;
when monitoring a startup completion broadcast message, identifying a current startup completion stage;
acquiring a corresponding relation between a pre-established startup completion stage and application attributes of a broadcast receiver receiving a startup completion broadcast message, wherein the application attributes are attributes of application programs to be started in the startup completion stage, and the application programs comprise system applications and third-party applications;
determining the application attribute corresponding to the current startup completion stage according to the current startup completion stage and the corresponding relation;
determining a corresponding broadcast receiver for receiving the startup completion broadcast message according to the application attribute, wherein the broadcast receiver comprises a system application to be started and a third-party application;
the startup completion stage comprises a system service initialization completion stage, a desktop and screen locking initialization completion stage and an idle stage after initialization is completed; when the startup completion broadcast message is monitored, recognizing the current startup completion stage as a system service initialization completion stage, and sending the startup completion broadcast message to an application program related to a system service; after the startup completion broadcast message of the system service initialization completion stage is sent, entering a desktop and screen locking initialization completion stage, and sending the startup completion broadcast message to an application program related to the desktop and the screen locking; and after the startup completion broadcast message of the desktop and lock screen initialization completion stage is sent, entering an initialization completion idle stage, and sending the startup completion broadcast message to a third-party application.
CN201710144285.XA 2017-03-10 2017-03-10 Method, device and terminal for sending startup broadcast Expired - Fee Related CN106708637B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710144285.XA CN106708637B (en) 2017-03-10 2017-03-10 Method, device and terminal for sending startup broadcast
PCT/CN2017/106606 WO2018161574A1 (en) 2017-03-10 2017-10-17 Startup broadcast sending method and device, storage medium, and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710144285.XA CN106708637B (en) 2017-03-10 2017-03-10 Method, device and terminal for sending startup broadcast

Publications (2)

Publication Number Publication Date
CN106708637A CN106708637A (en) 2017-05-24
CN106708637B true CN106708637B (en) 2020-06-26

Family

ID=58918146

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710144285.XA Expired - Fee Related CN106708637B (en) 2017-03-10 2017-03-10 Method, device and terminal for sending startup broadcast

Country Status (2)

Country Link
CN (1) CN106708637B (en)
WO (1) WO2018161574A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106708637B (en) * 2017-03-10 2020-06-26 Oppo广东移动通信有限公司 Method, device and terminal for sending startup broadcast
CN107423064B (en) * 2017-07-26 2020-12-08 Oppo广东移动通信有限公司 Message processing method and device, terminal equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6697607B1 (en) * 2000-11-03 2004-02-24 International Business Machines Corporation Automatic receiver control upon initialization
CN102830996A (en) * 2012-08-08 2012-12-19 广东欧珀移动通信有限公司 Fast boot method of handheld device
CN106406944A (en) * 2016-09-05 2017-02-15 Tcl集团股份有限公司 Control method and system for forbidding self-starting of application

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8892783B2 (en) * 2009-06-22 2014-11-18 Citrix Systems, Inc. Systems and methods for initialization and link management of NICS in a multi-core environment
JP5970160B2 (en) * 2011-01-31 2016-08-17 日本放送協会 Reception device, transmission device, broadcast system, and program
CN102855148A (en) * 2012-08-02 2013-01-02 广东欧珀移动通信有限公司 Android-based startup management method
CN103345408A (en) * 2013-06-26 2013-10-09 深圳市金立通信设备有限公司 Terminal starting-up accelerating method and terminal
CN103488495A (en) * 2013-08-13 2014-01-01 广东欧珀移动通信有限公司 Method for accelerating startup by dynamically adjusting startup preloaded resources
CN106126216B (en) * 2016-06-17 2019-04-16 广州久邦世纪科技有限公司 One kind acceleration starting-up method based on android system and its system
CN106484473A (en) * 2016-09-29 2017-03-08 Tcl集团股份有限公司 A kind of application starts method and apparatus
CN106708637B (en) * 2017-03-10 2020-06-26 Oppo广东移动通信有限公司 Method, device and terminal for sending startup broadcast

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6697607B1 (en) * 2000-11-03 2004-02-24 International Business Machines Corporation Automatic receiver control upon initialization
CN102830996A (en) * 2012-08-08 2012-12-19 广东欧珀移动通信有限公司 Fast boot method of handheld device
CN106406944A (en) * 2016-09-05 2017-02-15 Tcl集团股份有限公司 Control method and system for forbidding self-starting of application

Also Published As

Publication number Publication date
WO2018161574A1 (en) 2018-09-13
CN106708637A (en) 2017-05-24

Similar Documents

Publication Publication Date Title
CN106851014B (en) Method, device and terminal for adjusting broadcast message queue
CN107770759B (en) Bluetooth voice link establishing method and device, storage medium and mobile terminal
US11051272B2 (en) Method for arranging broadcast message in operating system and electronic device
CN107831886B (en) Control method and device for associated starting application, storage medium and intelligent terminal
US10097292B2 (en) Method, device, terminal and storage medium for adjusting broadcast message queue
CN107026933B (en) Multi-open application message management method and device and intelligent terminal
US10908976B2 (en) Broadcast queue adjustment method, terminal, and storage medium
US11086697B2 (en) Broadcast-controlling method in operating system and mobile terminal
CN107844341B (en) Process starting control method and device, storage medium and mobile terminal
CN107070670B (en) Method, device and terminal equipment for controlling broadcast sender to send broadcast message
CN107423064B (en) Message processing method and device, terminal equipment and storage medium
CN109165114B (en) Application program no-response processing method and device, storage medium and intelligent terminal
CN106851015B (en) Method, device and terminal for adjusting broadcast message queue
CN106921947B (en) Method, device and terminal for adjusting broadcast message queue
CN108933968B (en) Message format conversion method and device, storage medium and android terminal
US10990460B2 (en) Method of generating broadcast queue, storage medium, and terminal
CN106953852B (en) Registration method and device of broadcast receiver and terminal equipment
CN106708637B (en) Method, device and terminal for sending startup broadcast
CN107885588B (en) Application service control method and device, storage medium and mobile terminal
US10863521B1 (en) Broadcast receiver control method and apparatus, and mobile terminal
CN106791090B (en) Mobile terminal restart control method and device and mobile terminal
CN106844070B (en) Broadcast control method and device and mobile terminal
CN106936826B (en) Registration method and device of broadcast receiver and terminal equipment
CN106936996B (en) Method, device and terminal for sending shutdown broadcast
CN106936828B (en) Method, device and terminal for adjusting broadcast receiver queue

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
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
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200626