CN107423064A - Message treatment method, device, terminal device and storage medium - Google Patents

Message treatment method, device, terminal device and storage medium Download PDF

Info

Publication number
CN107423064A
CN107423064A CN201710620125.8A CN201710620125A CN107423064A CN 107423064 A CN107423064 A CN 107423064A CN 201710620125 A CN201710620125 A CN 201710620125A CN 107423064 A CN107423064 A CN 107423064A
Authority
CN
China
Prior art keywords
broadcast message
terminal device
message
broadcast
starting
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.)
Granted
Application number
CN201710620125.8A
Other languages
Chinese (zh)
Other versions
CN107423064B (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 CN201710620125.8A priority Critical patent/CN107423064B/en
Publication of CN107423064A publication Critical patent/CN107423064A/en
Application granted granted Critical
Publication of CN107423064B publication Critical patent/CN107423064B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4406Loading of 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/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/542Event management; Broadcasting; Multicasting; Notifications
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/543Local

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Multimedia (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the invention discloses a kind of message treatment method, device, terminal device and storage medium, this method includes:Start the operating system installed in terminal device according to the start-up command received;The operating system is sent first broadcast message monitor, described first broadcast the message for indicate the operating system whether start completion;After receiving first broadcast message, the second broadcast message is sent, described second broadcasts the message for starting the start self-triggered program installed in the terminal device.This programme improves the operational efficiency of terminal device, reduces the power consumption of terminal device so that the application program installed in terminal device can complete self-starting.

Description

Message treatment method, device, terminal device and storage medium
Technical field
The present embodiments relate to computer technology, more particularly to a kind of message treatment method, device, terminal device and deposit Storage media.
Background technology
With the popularization of terminal device, the application program installed in terminal device is also more and more.Some application programs need Realize automatic start after starting shooting.But existing terminal device existing defects when realizing application program start self-starting, need Improve.
The content of the invention
Present solution provides a kind of message treatment method, device, terminal device and storage medium, terminal device is improved Operational efficiency, reduce the power consumption of terminal device so that the application program installed in terminal device can complete self-starting.
In a first aspect, the embodiments of the invention provide a kind of message treatment method, including:
Start the operating system installed in terminal device according to the start-up command received;
The first broadcast message sent to the operating system is monitored, described first broadcast the message it is described for indicating Operating system whether move by start completion;
After receiving first broadcast message, send the second broadcast message, described second broadcast the message it is described for starting The start self-triggered program installed in terminal device.
Second aspect, the embodiment of the present invention additionally provide a kind of message processing apparatus, including:
System starting module, for starting the operating system installed in terminal device according to the start-up command received;
Module is monitored, the first broadcast message for being sent to the operating system is monitored, and first broadcast disappears Cease for indicating the operating system whether move by start completion;
Application launch module, after receiving first broadcast message, send the second broadcast message, second broadcast Message is used to start the start self-triggered program installed in the terminal device.
The third aspect, the embodiment of the present invention additionally provide a kind of terminal device, including:Processor, memory and storage On a memory and the computer program that can run on a processor, this is realized during computer program described in the computing device Message treatment method described in inventive embodiments.
Fourth aspect, the embodiment of the present invention additionally provide a kind of storage medium for including terminal device executable instruction, institute Terminal device executable instruction is stated when being performed as terminal device control unit for the message described in performing the embodiment of the present invention Processing method.
In technical scheme provided in an embodiment of the present invention, start what is installed in terminal device according to the start-up command received Operating system, the first broadcast message sent to the operating system are monitored, and described first broadcasts the message for indicating institute Stating operating system, whether start completion is moved, and after receiving first broadcast message, sends the second broadcast message, second broadcast Message is used to start the start self-triggered program installed in the terminal device, improves the operational efficiency of terminal device, reduces The power consumption of terminal device so that the application program installed in terminal device can complete self-starting.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, make required in being described below to embodiment Accompanying drawing is briefly described.It should be evident that drawings in the following description are only some embodiments of the present invention, for For those skilled in the art, on the premise of not paying creative work, it can also be obtained according to these accompanying drawings other attached Figure:
Fig. 1 is a kind of application scenarios schematic diagram of message processing apparatus provided in an embodiment of the present invention;
Fig. 2 is a kind of flow chart of message treatment method provided in an embodiment of the present invention;
Fig. 3 is the flow chart of another message treatment method provided in an embodiment of the present invention;
Fig. 4 is the flow chart of another message treatment method provided in an embodiment of the present invention
Fig. 5 is the flow chart of another message treatment method provided in an embodiment of the present invention
Fig. 6 is the structural representation of message processing apparatus provided in an embodiment of the present invention;
Fig. 7 is a kind of structural representation of terminal device provided in an embodiment of the present invention.
Embodiment
Schema is refer to, wherein identical element numbers represent identical component, and principle of the invention is to implement one Illustrated in appropriate computing environment.The following description is based on the illustrated specific embodiment of the invention, and it should not be by It is considered as the limitation present invention other specific embodiments not detailed herein.
Referenced herein " embodiment " is it is meant that the special characteristic, structure or the characteristic that describe can wrap in conjunction with the embodiments In at least one embodiment of the present invention.Each position in the description occur the phrase might not each mean it is identical Embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art explicitly and Implicitly understand, embodiment described herein can be combined with other embodiments.
Term " first ", " second " and " the 3rd " in the present invention etc. is to be used to distinguish different objects, rather than for retouching State particular order.In addition, term " comprising " and " having " and their any deformations, it is intended that cover non-exclusive include. Such as contain the step of process, method, system, product or the equipment of series of steps or module is not limited to list or Module, but some embodiments also include the step of not listing or module, or some embodiments also include for these processes, Method, product or equipment intrinsic other steps or module.
The embodiment of the present invention provides a kind of message treatment method, and the executive agent of the message treatment method can be the present invention A kind of message processing apparatus that embodiment provides, or the terminal device of the message processing apparatus is integrated with, wherein described disappear Breath processing unit can be realized by the way of hardware or software, the terminal device can be smart mobile phone, car-mounted terminal, The equipment such as tablet personal computer, desktop computer, notebook, palm PC.
Referring to Fig. 1, Fig. 1 is a kind of application scenarios schematic diagram of message processing apparatus provided in an embodiment of the present invention, should Message processing apparatus has been integrated in terminal device (such as:Smart mobile phone) in, it starts terminal according to the start-up command received and set The operating system of standby middle installation, the first broadcast message sent to the operating system are monitored, first broadcast message For indicating the operating system whether move by start completion, after receiving first broadcast message, the second broadcast message, institute are sent The second broadcast message is stated to be used to start the start self-triggered program installed in the terminal device.
Fig. 2 is a kind of flow chart of message treatment method provided in an embodiment of the present invention, and the message treatment method includes:
Step S101, the operating system installed in terminal device is started according to the start-up command received.
Terminal device starts the operating system of installation first after start-up command is received.The start-up command can by with Press the power key triggering for touching terminal device in family.Wherein, operating system is management and control terminal device software and hardware resource Computer program, the other applications installed in terminal device need to be run under the support of operating system.Pacify in terminal device The operating system of dress can be Android operation system, IOS etc..
Step S102, the first broadcast message sent to the operating system is monitored.
Wherein, described first broadcast the message for indicating the operating system whether move by start completion, i.e., when described first After broadcast message is sent, mean that the operating system of installation has been started up completing.In one embodiment, with installing terminal equipment Exemplified by Android operation system, after Android operation system starts, start completion broadcast, broadcasting instructions can be sent Form is:
android.intent.action.BOOT_COMPLETED。
Wherein, broadcast mechanism is a kind of mechanism for carrying out message transmission among applications being widely used, In Android operation system, it realizes between application program the transmission of data and shared by broadcasting (Broadcast).Typical case , short message that such as Android carries, phone broadcast.Specifically, broadcast transmission person is by calling sendBroadcast functions to carry out The transmission of broadcast message, broadcast recipients are by calling registerReceiver functions to carry out broadcast reception in management module The registration of device (BroadcastReceiver), and itself broadcast message interested is defined, thus broadcasted to realize corresponding The reception of message.In broadcast mechanism, broadcast message refers to system or application program sends in the process of running, for being The information transmitted between system and/or application program, exemplary, broadcast message can be that system starts broadcast message, short message class Broadcast message, telephone type broadcast message or tripartite are using class broadcast message etc..Broadcast transmission person sends the process of broadcast message The process that broadcast message is received with broadcast recipients is asynchronous operation process, and broadcast transmission person and broadcast recipients are by managing mould Block realizes the relationship match of lower coupling, i.e., broadcast transmission person is not relevant for specific broadcast recipients after broadcast message is sent is Who, broadcast recipients only receive oneself broadcast message interested, are indifferent to specific broadcast transmission person.
In one embodiment, first is sent after os starting to broadcast the message for notifying that other are interested Application program, teaching process system have been started up finishing.It is exemplary, the other applications interested namely it have registered phase The application program for the radio receiver answered can be the 3 installed in system service program, system application, terminal device Square application program etc..Because first broadcast message is the notice that sends after the completion of os starting, its in terminal device He services, application program is both needed to respond first broadcast message, to avoid causing message blocking and kernel service program can not The very first time starts, therefore broadcast recipients are received and handle the order of broadcast message and are divided, and is connect according to different broadcast The different priority of the type definition of receipts person, usual system service priority is higher, and third party application priority is relatively low, and First broadcast message is used to start other service, the broadcast of application program for what is sent after the completion of os starting, thus So that most of third party applications will not finally respond first broadcast message due to waiting as long for, thus many is set Self-starting can not be realized after terminal device start by being set to the third party application of self-starting.
In one embodiment, carrying out monitoring to the first broadcast message includes:Snoop-operations system passes through calling SendBroadcast functions send broadcast message android.intent.action.BOOT_COMPLETED.In another implementation In example, carrying out monitoring to the first broadcast message includes:Disappear by the way that whether the radio receiver monitoring of registration receives the first broadcast Breath.
Step S103, after receiving first broadcast message, the second broadcast message is sent.
Wherein, described second broadcast the message for starting the start self-triggered program installed in the terminal device, start shooting Self-triggered program is the application program of automatically starting after os starting as terminal device is started shooting.Optionally, should Start self-triggered program can be the third party application for the self-starting that is arranged to start shooting installed in terminal device.This second The type of broadcast message is broadcasted to be global, wherein, the overall situation broadcasts as the broadcast that all application programs can receive.In a reality Apply in example, receive it is described first broadcast message after, send the second broadcast message, can be after the first broadcast message is received, The second broadcast message is sent immediately, can also be after the first broadcast message is received, and delay preset time (such as 5 seconds) is sent afterwards Second broadcast message.Wherein, the second broadcast message can be customized for indicating the third party installed in opening terminal apparatus Application.Due to first broadcast message be os starting after send be used for notify other application journey in terminal device The message of sequence, the difference of the priority level based on broadcast recipients, it is necessary to system service, the application of system level preferentially start, So that third party's self-starting application program can not complete self-starting, therefore one second broadcast is sent after the first broadcast message is sent Message, second broadcast message can smoothly start in terminal device and install in the application program installed in starting terminal device The relatively low application program of the priority level similar to third party application, optionally, the broadcast reception of the second broadcast message Person distinguishes without priority.
From the foregoing, message treatment method provided in an embodiment of the present invention, hair is finished receiving os starting After the first broadcast message sent, the start self-triggered program that one second broadcast message is installed to start in terminal device is sent, is kept away The broadcast recipients for having exempted from the first broadcast message are low and self-starting can not finally be realized by waiting as long for due to receiving priority Problem, the operational efficiency of terminal device is improved, reduce the power consumption of terminal device.
Fig. 3 is the flow chart of another message treatment method provided in an embodiment of the present invention.Optionally, described in the reception After first broadcast message, sending the second broadcast message includes:It is true according to system service list after receiving first broadcast message Determine system service whether start completion, send the second broadcast message after the system service start completion.As shown in figure 3, skill Art scheme is specific as follows:
Step S201, the operating system installed in terminal device is started according to the start-up command received.
Step S202, the first broadcast message sent to the operating system is monitored, and first broadcast message is used In the instruction operating system, whether start completion is moved.
Step S203, after receiving first broadcast message, determine whether system service starts according to system service list Complete, if it is, performing step S204.
Step S204, the second broadcast message is sent, described second broadcasts the message installs for starting in the terminal device Start self-triggered program.
In one embodiment, system service is preferentially waken up by the first broadcast message and started, and treats that system service has started Bi Hou, the second broadcast message is sent so that the relatively low application program of the priority level installed in terminal device realizes self-starting.By This is realized on the premise of not influenceing system service startup, realizes the self-starting of terminal device other applications.Optionally, It is determined that system service whether start completion when, can determine to remember in list by system service list setting or that system carries Whether the system self-starting service of record starts finishes.
In another embodiment, the broadcast type of second broadcast message is ordered broadcast, accordingly, described to send the Two broadcast messages include:According to the boot sequence of the start self-triggered program recorded in the terminal device, second is sent successively Broadcast message.Wherein, broadcast message can be divided into by common broadcast and ordered broadcast according to the difference of broadcast transmission mode.It is common wide Broadcast and be managed after module sends, reception of the broadcast recipients to the broadcast message is unordered, and ordered broadcast is managed module After sending, broadcast recipients are successively received successively in sequence, i.e. first broadcast recipients, which receive, to be broadcast the message and handle After, second broadcast recipients could start to receive and handle the broadcast message, the like., can be right in the present embodiment The self-starting order of the self-starting application program of installing terminal equipment is configured, so that start self-triggered program is according to important journey Degree difference preferentially realizes self-starting.
Fig. 4 is the flow chart of another message treatment method provided in an embodiment of the present invention.Optionally, is sent described Before two broadcast messages, in addition to:Whether detection start self-triggered program is forced closed before this start, if it is, Self-starting mark is added, the self-starting marks to be realized for the self-triggered program being forced closed when receiving broadcast message Self-starting.As shown in Figure 4:
Step S301, the operating system installed in terminal device is started according to the start-up command received.
Step S302, the first broadcast message sent to the operating system is monitored, and first broadcast message is used In the instruction operating system, whether start completion is moved.
Step S303, receive it is described first broadcast message after, detection start self-triggered program this start before whether by Positive closing, if it is perform step S304.
Step S304, add self-starting mark, send the second broadcast message, described second broadcast the message it is described for starting The start self-triggered program installed in terminal device.
In one embodiment, can not when can cause to start shooting again after self-triggered program closing hand-operated forced by user Self-starting is realized, is marked in this programme by adding self-starting, the self-starting marks the self-starting journey for being forced closed Sequence realizes self-starting when receiving broadcast message.Exemplary, by taking Android operation system as an example, definable two is new Intent Flag, it is as follows:
FLAG_INCLUDE_STOPPED_PACKAGES;
FLAG_EXCLUDE_STOPPED_PACKAGES。
In second broadcast message, it can pass through
SetFlags (Intent.FLAG_INCLUDE_STOPPED_PACKAGES) mode, it is exemplary:
Intent i=new Intent (" com.citaq.startSever ");
i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
i.addFlags(Intent.FLAG_INCLUDE_STOPPED_PACKAGES);
i.putExtra("msg",this.getPackageName());
sendBroadcast(i)。
In another embodiment, step S303 can also be whether the detection terminal device connects with wireless network, such as Fruit is then to send the second broadcast message.In the present embodiment, the second broadcast message is sent after terminal device is networked successfully to open Self-starting application program, network connection, the self-triggered program pre-cooling of consumed flow are avoided the need for, further increase and be System operational efficiency, reduce flow consumption.
Fig. 5 is the flow chart of another message treatment method provided in an embodiment of the present invention.Optionally, is sent described Before two broadcast messages, in addition to:Detecting the safe digital card installed in the terminal device, whether carry is completed, if it is, Then send the second broadcast message.As shown in Figure 5:
Step S401, the operating system installed in terminal device is started according to the start-up command received.
Step S402, the first broadcast message sent to the operating system is monitored, and first broadcast message is used In the instruction operating system, whether start completion is moved.
Step S403, after receiving first broadcast message, detecting the safe digital card installed in the terminal device is No carry is completed, and if it is performs step S404.
In one embodiment, after the first broadcast message (BOOT_COMPLETED) is received, safe digital card is detected Whether (SD card), which hangs over, finishes, and specific detection mode can be:
<receiver
android:Name=" com.javen.receiver.SystemEventReceiver "
android:Permission=" android.permission.RECEIVE_BOOT_COMPLETED ">
<intent-filter>
<action android:Name=" android.intent.action.BOOT_COMPLETED "/>
</intent-filter>
<intent-filter>
<!-- SD card succeeded carry -->
<action android:Name=" android.intent.action.MEDIA_MOUNTED "/>
<!-- sd cards are present, but without carry -->
<action android:Name=" android.intent.action.MEDIA_UNMOUNTED "/>
<action android:Name=" android.intent.action.MEDIA_EJECT "/>
<data android:Scheme=" file "/>
</intent-filter>
</receiver>
Step S404, the second broadcast message is sent, described second broadcasts the message installs for starting in the terminal device Start self-triggered program.
Because some application programs for needing self-starting are arranged in SD card, therefore when SD card does not load completion, it is installed Application program can not receive broadcast message and realize self-starting, the present embodiment to SD card, whether complete to detect by carry, when The second self-starting to broadcast the message for application program is sent after the completion of detection carry.
For ease of preferably implementing message treatment method provided in an embodiment of the present invention, the embodiment of the present invention also provides one kind Message processing apparatus.Wherein the implication of noun is identical with above-mentioned message treatment method, and specific implementation details may be referred to method Explanation in embodiment.
Referring to Fig. 6, Fig. 6 is the structural representation of message processing apparatus provided in an embodiment of the present invention.Message Processing fills Putting 500 can include:System starting module 501, monitor module 502, application launch module 503.
System starting module 501, for starting the operating system installed in terminal device according to the start-up command received. Terminal device starts the operating system of installation first after start-up command is received.The start-up command can be whole by touching by user The power key triggering of end equipment.Wherein, operating system is management and the computer journey of control terminal device software and hardware resource Sequence, the other applications installed in terminal device need to be run under the support of operating system.The operation installed in terminal device System can be Android operation system, IOS etc..
Module 502 is monitored, the first broadcast message for being sent to the operating system is monitored, first broadcast Message is used to indicate the operating system whether move by start completion.In one embodiment, sent after os starting First broadcasts the message for notifying other application programs interested, and teaching process system has been started up finishing.Exemplary, should Other applications interested namely it have registered the application program of corresponding radio receiver and can be system service program, be Third party application installed in system application program, terminal device etc..Because first broadcast message is os starting After the completion of the notice that sends, other services, application program in terminal device are both needed to respond first broadcast message, to avoid making It can not start the very first time into message blocking and kernel service program, therefore broadcast recipients received and handle broadcast message Order divided, the different priority of the type definition according to different broadcast recipients, usual system service priority compared with Height, third party application priority is relatively low, and first broadcast message is used to open for what is sent after the completion of os starting Move other service, broadcast of application program so that most of third party applications due to wait as long for and it is final not First broadcast message can be responded, thus many third party applications for being arranged to self-starting can not be after terminal device start Realize self-starting.In one embodiment, carrying out monitoring to the first broadcast message includes:Snoop-operations system passes through calling SendBroadcast functions send broadcast message android.intent.action.BOOT_COMPLETED.In another implementation In example, carrying out monitoring to the first broadcast message includes:Disappear by the way that whether the radio receiver monitoring of registration receives the first broadcast Breath.
Application launch module 503, after receiving first broadcast message, send the second broadcast message, described second Broadcast the message for starting the start self-triggered program installed in the terminal device.Wherein, start shooting self-triggered program be with Terminal device is started shooting, the application program of automatically starting after os starting.Optionally, the start self-triggered program can Be installed in terminal device be arranged to start shooting self-starting third party application.This second broadcast message type be Overall situation broadcast, wherein, the overall situation broadcasts as the broadcast that all application programs can receive.In one embodiment, described in reception After first broadcast message, the second broadcast message is sent, can be after the first broadcast message is received, send the second broadcast immediately Message, it can also be after the first broadcast message is received, delay preset time (such as 5 seconds) sends the second broadcast message afterwards.Its In, the second broadcast message can be the customized third-party application for indicating to install in opening terminal apparatus.Due to first What is sent after broadcasting the message as os starting is used to notify the message of other applications in terminal device, based on wide The difference of the priority level of recipient is broadcast, it is necessary to which system service, the application of system level preferentially start so that third party's self-starting Application program can not complete self-starting, therefore send one second broadcast message after the first broadcast message is sent, second broadcast Message in the application program installed in starting terminal device, can smoothly start installed in terminal device similar to third party should With the relatively low application program of the priority level of program, optionally, the broadcast recipients of the second broadcast message distinguish without priority.
In a kind of possible embodiment, the application launch module 503 is specifically used for:First broadcast is received to disappear After breath, according to system service list determine system service whether start completion, the is sent after the system service start completion Two broadcast messages.
In a kind of possible embodiment, the broadcast type of second broadcast message is ordered broadcast, accordingly, institute Application launch module 503 is stated to be specifically used for:According to recorded in the terminal device start self-triggered program boot sequence, according to It is secondary to send the second broadcast message.
In a kind of possible embodiment, in addition to:Detection module 504, for sending the second broadcast message described Before, whether detection start self-triggered program is forced closed before this start, if it is, addition self-starting mark, institute State self-starting and mark and realize self-starting when receiving broadcast message for the self-triggered program being forced closed.
In a kind of possible embodiment, the detection module 504 is specifically used for:Detect and installed in the terminal device Safe digital card whether carry complete, if it is, sending the second broadcast message.
In a kind of possible embodiment, the detection module 504 is specifically used for:Detect the terminal device whether and Wireless network connects, if it is, sending the second broadcast message.
From the foregoing, after receiving os starting and finishing the first broadcast message of transmission, it is wide to send one second Broadcast the start self-triggered program that message is installed to start in terminal device, avoid the broadcast recipients of the first broadcast message due to It is low and wait as long for the problem of can not finally realizing self-starting to receive priority, improves the operational efficiency of terminal device, drop The low power consumption of terminal device.
The embodiments of the invention provide a kind of terminal device, provided in an embodiment of the present invention disappear can be integrated in the terminal device Cease processing unit.Fig. 7 is a kind of structural representation of terminal device provided in an embodiment of the present invention.As shown in fig. 7, the terminal is set It is standby to include:Housing (not shown), touch-screen (not shown), touch key-press (not shown), memory 601st, central processing unit (Central Processing Unit, CPU) 602 (also known as processor, hereinafter referred to as CPU), circuit board (not shown) and power circuit (not shown).The circuit board is placed in the interior volume that the housing surrounds;Institute State CPU602 and the memory 601 is arranged on the circuit board;The power circuit, for for each of the terminal device Individual circuit or device power supply;The memory 601, for storing executable program code;The CPU602 passes through described in reading The executable program code stored in memory 601 runs computer program corresponding with the executable program code, with Realize following steps:
Start the operating system installed in terminal device according to the start-up command received;
The first broadcast message sent to the operating system is monitored, described first broadcast the message it is described for indicating Operating system whether start completion;
After receiving first broadcast message, send the second broadcast message, described second broadcast the message it is described for starting The start self-triggered program installed in terminal device.
In a possible embodiment, after the reception first broadcast message, sending the second broadcast message includes: According to system service list determine system service whether start completion, send the second broadcast after the system service start completion Message.
In a possible embodiment, the broadcast type of second broadcast message is ordered broadcast, accordingly, described Sending the second broadcast message includes:According to the boot sequence of the start self-triggered program recorded in the terminal device, send out successively Go out the second broadcast message.
In a possible embodiment, it is described send the second broadcast message before, in addition to:Detection start self-starting Whether program is forced closed before this start, if it is, addition self-starting mark, the self-starting are marked for strong The self-triggered program that system is closed realizes self-starting when receiving broadcast message.
In a possible embodiment, it is described send the second broadcast message before, in addition to:The terminal is detected to set The safe digital card of standby middle installation whether complete by carry, if it is, sending the second broadcast message.
In a possible embodiment, it is described send the second broadcast message before, in addition to:The terminal is detected to set It is standby whether to be connected with wireless network, if it is, sending the second broadcast message.
The terminal device also includes:Peripheral Interface 603, RF (Radio Frequency, radio frequency) circuit 605, audio-frequency electric Road 606, loudspeaker 611, power management chip 608, input/output (I/O) subsystem 609, touch-screen 612, other input/controls Control equipment 610 and outside port 604, these parts are communicated by one or more communication bus or signal wire 607.
It should be understood that graphic terminal 600 is only an example of terminal device, and terminal device 600 Can have than more or less parts shown in figure, can combine two or more parts, or can be with Configured with different parts.Various parts shown in figure can be including one or more signal transactings and/or special Hardware, software including integrated circuit are realized in the combination of hardware and software.
Below with regard to the present embodiment provide the terminal device for Message Processing be described in detail, the terminal device with Exemplified by mobile phone.
Memory 601, the memory 601 can be accessed by CPU602, Peripheral Interface 603 etc., and the memory 601 can Including high-speed random access memory, can also include nonvolatile memory, such as one or more disk memories, Flush memory device or other volatile solid-state parts.
The input of equipment and output peripheral hardware can be connected to CPU602 and deposited by Peripheral Interface 603, the Peripheral Interface 603 Reservoir 601.
I/O subsystems 609, the I/O subsystems 609 can be by the input/output peripherals in equipment, such as touch-screen 612 With other input/control devicess 610, Peripheral Interface 603 is connected to.I/O subsystems 609 can include the He of display controller 6091 For controlling one or more input controllers 6092 of other input/control devicess 610.Wherein, one or more input controls Device 6092 processed receives electric signal from other input/control devicess 610 or sends electric signal to other input/control devicess 610, Other input/control devicess 610 can include physical button (pressing button, rocker buttons etc.), dial, slide switch, behaviour Vertical pole, click on roller.What deserves to be explained is input controller 6092 can with it is following any one be connected:Keyboard, infrared port, The instruction equipment of USB interface and such as mouse.
Touch-screen 612, the touch-screen 612 are the input interface and output interface between subscriber terminal equipment and user, Visual output display can be included into figure, text, icon, video etc. to user, visual output.
Display controller 6091 in I/O subsystems 609 receives electric signal from touch-screen 612 or sent out to touch-screen 612 Electric signals.Touch-screen 612 detects the contact on touch-screen, and the contact detected is converted to and shown by display controller 6091 The interaction of user interface object on touch-screen 612, that is, realize man-machine interaction, the user interface being shown on touch-screen 612 Icon that object can be the icon of running game, be networked to corresponding network etc..What deserves to be explained is equipment can also include light Mouse, light mouse is not show the touch sensitive surface visually exported, or the extension of the touch sensitive surface formed by touch-screen.
RF circuits 605, it is mainly used in establishing the communication of mobile phone and wireless network (i.e. network side), realizes mobile phone and wireless network The data receiver of network and transmission.Such as transmitting-receiving short message, Email etc..Specifically, RF circuits 605 receive and send RF letters Number, RF signals are also referred to as electromagnetic signal, and RF circuits 605 convert electrical signals to electromagnetic signal or electromagnetic signal is converted into telecommunications Number, and communicated by the electromagnetic signal with communication network and other equipment.RF circuits 605 can include being used to perform The known circuit of these functions, it includes but is not limited to antenna system, RF transceivers, one or more amplifiers, tuner, one Individual or multiple oscillators, digital signal processor, CODEC (COder-DECoder, coder) chipset, user identify mould Block (Subscriber Identity Module, SIM) etc..
Voicefrequency circuit 606, it is mainly used in receiving voice data from Peripheral Interface 603, the voice data is converted into telecommunications Number, and the electric signal is sent to loudspeaker 611.
Loudspeaker 611, for the voice signal for receiving mobile phone from wireless network by RF circuits 605, it is reduced to sound And play the sound to user.
Power management chip 608, the hardware for being connected by CPU602, I/O subsystem and Peripheral Interface are powered And power management.
Terminal device provided in an embodiment of the present invention, it can effectively realize the self-starting of the application of installation.
The embodiment of the present invention also provides a kind of storage medium for including terminal device executable instruction, and the terminal device can Execute instruction is used to perform a kind of message treatment method when being performed by terminal device control unit, it is characterised in that this method Including:
Start the operating system installed in terminal device according to the start-up command received;
The first broadcast message sent to the operating system is monitored, described first broadcast the message it is described for indicating Operating system whether move by start completion;
After receiving first broadcast message, send the second broadcast message, described second broadcast the message it is described for starting The start self-triggered program installed in terminal device.
Storage medium --- any various types of memory devices or storage device.Term " storage medium " is intended to wrap Include:Install medium, such as CD-ROM, floppy disk or magnetic tape equipment;Computer system memory or random access memory, such as DRAM, DDR RAM, SRAM, EDO RAM, blue Bath (Rambus) RAM etc.;Nonvolatile memory, such as flash memory, magnetizing mediums (such as hard disk or optical storage);Memory component of register or other similar types etc..Storage medium can also include other The memory of type or its combination.In addition, storage medium can be located at program in the first computer system being wherein performed, Or can be located in different second computer systems, second computer system is connected to the by network (such as internet) One computer system.Second computer system can provide programmed instruction and be used to perform to the first computer." storage is situated between term Matter " can include may reside within diverse location (such as by broadcast processing different computer systems in) two or More storage mediums.Storage medium can store the programmed instruction that can be performed by one or more processors and (such as implement For computer program).
Certainly, a kind of storage medium for including computer executable instructions that the embodiment of the present invention is provided, its computer The message treatment method operation that executable instruction is not limited to the described above, can also carry out what any embodiment of the present invention was provided Associative operation in message treatment method.
Pay attention to, above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that The invention is not restricted to specific embodiment described here, can carry out for a person skilled in the art various obvious changes, Readjust and substitute without departing from protection scope of the present invention.Therefore, although being carried out by above example to the present invention It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also Other more equivalent embodiments can be included, and the scope of the present invention is determined by scope of the appended claims.

Claims (10)

  1. A kind of 1. message treatment method, it is characterised in that including:
    Start the operating system installed in terminal device according to the start-up command received;
    The first broadcast message sent to the operating system is monitored, and described first broadcasts the message for indicating the operation System whether start completion;
    After receiving first broadcast message, the second broadcast message is sent, described second broadcasts the message for starting the terminal The start self-triggered program installed in equipment.
  2. 2. according to the method for claim 1, it is characterised in that after reception first broadcast message, send second Broadcast message includes:
    According to system service list determine system service whether start completion, send second after the system service start completion Broadcast message.
  3. 3. according to the method for claim 2, it is characterised in that the broadcast type of second broadcast message is wide in order Broadcast, accordingly, second broadcast message that sends includes:
    According to the boot sequence of the start self-triggered program recorded in the terminal device, the second broadcast message is sent successively.
  4. 4. according to the method any one of claim 1-3, it is characterised in that it is described send the second broadcast message it Before, in addition to:
    Whether detection start self-triggered program is forced closed before this start, if it is, addition self-starting mark, described Self-starting marks realizes self-starting for the self-triggered program being forced closed when receiving broadcast message.
  5. 5. according to the method any one of claim 1-3, it is characterised in that it is described send the second broadcast message it Before, in addition to:
    Detecting the safe digital card installed in the terminal device, whether carry is completed, if it is, sending the second broadcast message.
  6. 6. according to the method any one of claim 1-3, it is characterised in that it is described send the second broadcast message it Before, in addition to:
    Detect whether the terminal device connects with wireless network, if it is, sending the second broadcast message.
  7. A kind of 7. message processing apparatus, it is characterised in that including:
    System starting module, for starting the operating system installed in terminal device according to the start-up command received;
    Module is monitored, the first broadcast message for being sent to the operating system is monitored, and first broadcast message is used In the instruction operating system, whether start completion is moved;
    Application launch module, after receiving first broadcast message, send the second broadcast message, second broadcast message For starting the start self-triggered program installed in the terminal device.
  8. 8. device according to claim 6, it is characterised in that the application launch module is specifically used for:
    Receive it is described first broadcast message after, according to system service list determine system service whether start completion, when the system The second broadcast message is sent after system service start completion.
  9. 9. a kind of terminal device, including:Processor, memory and storage are on a memory and the meter that can run on a processor Calculation machine program, it is characterised in that realized described in the computing device during computer program such as any one of claim 1-6 institutes The message treatment method stated.
  10. A kind of 10. storage medium for including terminal device executable instruction, it is characterised in that the terminal device executable instruction As message treatment method during terminal device computing device for execution as any one of claim 1-6.
CN201710620125.8A 2017-07-26 2017-07-26 Message processing method and device, terminal equipment and storage medium Active CN107423064B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710620125.8A CN107423064B (en) 2017-07-26 2017-07-26 Message processing method and device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710620125.8A CN107423064B (en) 2017-07-26 2017-07-26 Message processing method and device, terminal equipment and storage medium

Publications (2)

Publication Number Publication Date
CN107423064A true CN107423064A (en) 2017-12-01
CN107423064B CN107423064B (en) 2020-12-08

Family

ID=60430456

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710620125.8A Active CN107423064B (en) 2017-07-26 2017-07-26 Message processing method and device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN107423064B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108038010A (en) * 2017-12-25 2018-05-15 青岛海信电器股份有限公司 Android system startup stage broadcast transmission method, apparatus and terminal
CN109992309A (en) * 2017-12-29 2019-07-09 广东欧珀移动通信有限公司 Applied program processing method and device, electronic equipment, computer readable storage medium
CN110825443A (en) * 2018-08-13 2020-02-21 深圳市冠旭电子股份有限公司 Information interaction method of intelligent sound box and terminal equipment
CN112835758A (en) * 2021-03-22 2021-05-25 四川酷比通信设备有限公司 Method for self-starting and automatically running test software and terminal equipment
CN116244008A (en) * 2023-05-10 2023-06-09 荣耀终端有限公司 Application starting method, electronic device and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103823699A (en) * 2014-02-27 2014-05-28 广州视源电子科技股份有限公司 Method and device for controlling self-starting of application programs
US9066039B2 (en) * 2009-12-11 2015-06-23 Samsung Electronics Co., Ltd. Selective booting method and broadcast receiving apparatus using the same
CN105159700A (en) * 2015-07-30 2015-12-16 努比亚技术有限公司 Application self-start control apparatus and method
CN106484473A (en) * 2016-09-29 2017-03-08 Tcl集团股份有限公司 A kind of application starts method and apparatus
CN106528158A (en) * 2016-11-18 2017-03-22 广东欧珀移动通信有限公司 Method and device for mounting memory card and mobile terminal
CN106708637A (en) * 2017-03-10 2017-05-24 广东欧珀移动通信有限公司 Startup broadcast sending method and apparatus, and terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9066039B2 (en) * 2009-12-11 2015-06-23 Samsung Electronics Co., Ltd. Selective booting method and broadcast receiving apparatus using the same
CN103823699A (en) * 2014-02-27 2014-05-28 广州视源电子科技股份有限公司 Method and device for controlling self-starting of application programs
CN105159700A (en) * 2015-07-30 2015-12-16 努比亚技术有限公司 Application self-start control apparatus and method
CN106484473A (en) * 2016-09-29 2017-03-08 Tcl集团股份有限公司 A kind of application starts method and apparatus
CN106528158A (en) * 2016-11-18 2017-03-22 广东欧珀移动通信有限公司 Method and device for mounting memory card and mobile terminal
CN106708637A (en) * 2017-03-10 2017-05-24 广东欧珀移动通信有限公司 Startup broadcast sending method and apparatus, and terminal

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108038010A (en) * 2017-12-25 2018-05-15 青岛海信电器股份有限公司 Android system startup stage broadcast transmission method, apparatus and terminal
CN109992309A (en) * 2017-12-29 2019-07-09 广东欧珀移动通信有限公司 Applied program processing method and device, electronic equipment, computer readable storage medium
CN110825443A (en) * 2018-08-13 2020-02-21 深圳市冠旭电子股份有限公司 Information interaction method of intelligent sound box and terminal equipment
CN112835758A (en) * 2021-03-22 2021-05-25 四川酷比通信设备有限公司 Method for self-starting and automatically running test software and terminal equipment
CN116244008A (en) * 2023-05-10 2023-06-09 荣耀终端有限公司 Application starting method, electronic device and storage medium
CN116244008B (en) * 2023-05-10 2023-09-15 荣耀终端有限公司 Application starting method, electronic device and storage medium

Also Published As

Publication number Publication date
CN107423064B (en) 2020-12-08

Similar Documents

Publication Publication Date Title
CN107423064A (en) Message treatment method, device, terminal device and storage medium
US9807218B2 (en) Method for filtering spam in electronic device and the electronic device
CN107748685B (en) Application program starting control method and device, terminal equipment and storage medium
CN107844342B (en) Control method and device for keeping application program alive, storage medium and mobile terminal
CN107797841B (en) Window control method and device, terminal equipment and storage medium
US10956176B2 (en) Processing method, device and storage medium for implementing automatic startup
CN109840418B (en) Jump control method and device for application program, storage medium and terminal
CN107844341B (en) Process starting control method and device, storage medium and mobile terminal
WO2019153211A1 (en) Application switching method, and terminal
CN109408465B (en) File attribution information recording method, device, storage medium and terminal
CN107943269B (en) Scheduling job control method, device, terminal equipment and storage medium
CN109375937A (en) Method for upgrading system, device, terminal device and storage medium
CN107957913A (en) Associate management-control method, device, storage medium and the mobile terminal started
EP3486823A1 (en) System notification service control method, apparatus, terminal device, and storage medium
CN107885588B (en) Application service control method and device, storage medium and mobile terminal
CN107862203A (en) Control method, device, storage medium and the terminal of application program
CN107070670A (en) Broadcast transmission person is controlled to send method, device and the terminal device of broadcast message
US10863521B1 (en) Broadcast receiver control method and apparatus, and mobile terminal
CN106953852A (en) Register method, device and the terminal device of radio receiver
CN107861608A (en) Notifications service control method, device, terminal device and storage medium
CN106851595B (en) Ordered broadcast processing method, device and terminal device
CN107943268B (en) Scheduling job control method, device, terminal equipment and storage medium
CN107566215A (en) Wireless network cutout detection method, device, storage medium and mobile terminal
CN108762633B (en) Picture adding method and device, terminal equipment and storage medium
CN107835318B (en) Process starting control method and device, storage medium and mobile terminal

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