CN106953852B - Registration method and device of broadcast receiver and terminal equipment - Google Patents

Registration method and device of broadcast receiver and terminal equipment Download PDF

Info

Publication number
CN106953852B
CN106953852B CN201710141039.9A CN201710141039A CN106953852B CN 106953852 B CN106953852 B CN 106953852B CN 201710141039 A CN201710141039 A CN 201710141039A CN 106953852 B CN106953852 B CN 106953852B
Authority
CN
China
Prior art keywords
broadcast
broadcast receiver
registration
receiver
sender
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710141039.9A
Other languages
Chinese (zh)
Other versions
CN106953852A (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 CN201710141039.9A priority Critical patent/CN106953852B/en
Publication of CN106953852A publication Critical patent/CN106953852A/en
Application granted granted Critical
Publication of CN106953852B publication Critical patent/CN106953852B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1073Registration or de-registration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/61Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio
    • H04L65/611Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio for multicast or broadcast
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/548Queue
    • 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
    • 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/546Message passing systems or structures, e.g. queues

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention discloses a registration method, a registration device and terminal equipment of a broadcast receiver, wherein the method comprises the following steps: setting a broadcast receiver allowing to receive the broadcast message according to the broadcast message sent by a broadcast sender; after a registration instruction of a broadcast receiver is obtained, a broadcast sender corresponding to the registration instruction is determined; and inquiring the broadcast receiver which is set by the broadcast sender corresponding to the registration instruction and allows to receive the broadcast message, and processing the registration of the broadcast receiver according to the inquiry result. The scheme solves the defects of the existing broadcast receiver in the process of receiving the broadcast sent by the broadcast sender, improves the broadcast processing efficiency, reduces the system resource consumption and increases the system stability.

Description

Registration method and device of broadcast receiver and terminal equipment
Technical Field
The present invention relates to computer technologies, and in particular, to a registration method and apparatus for a broadcast receiver, and a terminal device.
Background
Broadcast is a widely used mechanism for information transmission between applications, and takes android operating system as an example, which implements transmission and sharing of data between applications through Broadcast (Broadcast). Typically, the broadcast is a short message, a telephone, etc. carried by android.
In the android system, a broadcast sender transmits a broadcast message by calling a sendBroadcast function, and a broadcast receiver registers a broadcast receiver (BroadcastReceiver) in a management module by calling a register receiver function and defines a broadcast message which is interested by the broadcast receiver, so that the corresponding broadcast message is received.
In the prior art, a broadcast receiver has defects when receiving a broadcast sent by a broadcast sender, so that the broadcast processing efficiency is low, the system resource consumption is excessive, and the stability is poor.
Disclosure of Invention
The invention provides a registration method, a registration device and terminal equipment of a broadcast receiver, which improve the broadcast processing efficiency, reduce the system resource consumption and increase the system stability.
In a first aspect, an embodiment of the present invention further provides a registration method for a broadcast receiver, including:
setting a broadcast receiver allowing to receive the broadcast message according to the broadcast message sent by a broadcast sender;
after a registration instruction of a broadcast receiver is obtained, a broadcast sender corresponding to the registration instruction is determined;
and inquiring the broadcast receiver which is set by the broadcast sender corresponding to the registration instruction and allows to receive the broadcast message, and processing the registration of the broadcast receiver according to the inquiry result.
In a second aspect, an embodiment of the present invention further provides a registration apparatus for a broadcast receiver, including:
a broadcast receiver setting module for setting a broadcast receiver allowed to receive the broadcast message according to the broadcast message sent by the broadcast sender;
the broadcast sender determining module is used for determining a broadcast sender corresponding to a registration instruction after the registration instruction of the broadcast receiver is obtained;
a broadcast receiver inquiry module, configured to inquire a broadcast receiver that is set by a broadcast sender corresponding to the registration instruction and allows to receive the broadcast message;
and the broadcast receiver registration module is used for processing the registration of the broadcast receiver according to the query result.
In a third aspect, an embodiment of the present invention further provides a terminal device, including: a processor, a memory, and a computer program stored on the memory and executable on the processor, wherein the processor when executing the computer program implements the steps of:
setting a broadcast receiver allowing to receive the broadcast message according to the broadcast message sent by a broadcast sender;
after a registration instruction of a broadcast receiver is obtained, a broadcast sender corresponding to the registration instruction is determined;
and inquiring the broadcast receiver which is set by the broadcast sender corresponding to the registration instruction and allows to receive the broadcast message, and processing the registration of the broadcast receiver according to the inquiry result.
The technical scheme provided by the embodiment of the invention overcomes the defects of the existing broadcast receiver when receiving the broadcast sent by the broadcast sender, improves the broadcast processing efficiency, reduces the system resource consumption and increases the system stability.
Drawings
Other features, objects and advantages of the invention will become more apparent upon reading of the detailed description of non-limiting embodiments made with reference to the following drawings:
fig. 1 is a flowchart of a registration method of a broadcast receiver according to an embodiment of the present invention;
fig. 2 is a flowchart of another registration method of a broadcast receiver according to an embodiment of the present invention;
fig. 3 is a flowchart of another registration method of a broadcast receiver according to an embodiment of the present invention;
fig. 4 is a block diagram illustrating a registration apparatus of a broadcast receiver according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a terminal device 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 for purposes of illustration and not limitation. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Fig. 1 is a flowchart of a method for registering a broadcast receiver according to an embodiment of the present invention, where this embodiment is applicable to a case where a broadcast receiver performs control processing when registering the broadcast receiver, and the method may be executed by a terminal device according to an embodiment of the present invention, and a registration apparatus of the broadcast receiver of the terminal device may be implemented in a software and/or hardware manner, as shown in fig. 1, a specific scheme provided in this embodiment is as follows:
s101, setting a broadcast receiver which is allowed to receive the broadcast message according to the broadcast message sent by a broadcast sender.
In the process of broadcast processing, a service process of a broadcast sender sends a broadcast message to a management module (e.g., an activity management service) by calling a broadcast sending function (e.g., sendBroadcast function), the management module receives the broadcast message and then puts the broadcast message into a broadcast sending queue, and the management module sends the broadcast message in the broadcast sending queue to a broadcast receiver meeting a receiving condition through a process communication mechanism (e.g., Binder process communication mechanism).
In the broadcast mechanism, the process of sending broadcast messages by a broadcast sender and the process of receiving broadcast messages by a broadcast receiver are asynchronous operation processes, and the broadcast sender and the broadcast receiver realize low-coupling relationship matching through a management module, namely the broadcast sender does not care who a specific broadcast receiver is after sending the broadcast messages, and the broadcast receiver only receives the broadcast messages interested by the broadcast receiver and does not care about the specific broadcast sender, so that the broadcast receivers of some third-party applications can register a large amount of interested broadcasts, and after the broadcast messages are sent out, the third-party applications receive and process the broadcast messages to realize self-starting or program processing of other purposes, thereby causing unnecessary system resource waste.
In one embodiment, when processing the broadcast message in the broadcast transmission queue, the management module may set, according to the broadcast message transmitted by the broadcast transmitter, a broadcast receiver allowed to receive the broadcast message, that is, determine a broadcast receiver allowed to receive the broadcast message. In one embodiment, it may be that the broadcast sender itself determines the broadcast receivers that are allowed to receive the broadcast message when the broadcast sender sends the broadcast message.
In one embodiment, the broadcast message refers to information transmitted by a system or an application program during operation and used for transmission between the system and/or the application program, and may be, for example, a system start broadcast message, a short message type broadcast message, a telephone type broadcast message, a three-party application type broadcast message, or the like.
S102, after a registration instruction of the broadcast receiver is obtained, a broadcast sender corresponding to the registration instruction is determined.
In one embodiment, the management module may obtain a registration instruction of the broadcast receiver issued by the broadcast receiver. Generally, a broadcast receiver registers (subscribes to) a broadcast message desired to be received with a management module through a process communication mechanism. Specifically, a service process of a broadcast receiver registers the broadcast receiver in a management module by calling a register receiver function, and defines a broadcast message that is interested by the broadcast receiver, when the management module sends the broadcast message in a broadcast sending queue, the management module sends the broadcast message to a message circular queue corresponding to the broadcast receiver subscribed to the broadcast receiver according to the registration condition of the broadcast receiver, and after receiving the broadcast message, the broadcast receiver calls back a receiving method (such as an onReceive method) in the registered broadcast receiver to execute a corresponding function so as to process the received broadcast message.
In one embodiment, after acquiring the registration instruction of the broadcast receiver, the broadcast sender sending the broadcast message is determined according to the corresponding registration object (which may be the name of the broadcast message of interest) in the registration instruction. For example, the broadcast sender a sends a broadcast message a1, and the registration object in the registration command of the broadcast receiver B is a1, then the corresponding broadcast sender sending the broadcast message a1 can be determined according to the registration object a 1. In one embodiment, the registration instruction may be a registration instruction registered in the management module (static registration instruction) or a registration instruction registered in an application of the broadcast receiver (dynamic registration instruction). It should be noted that, in one embodiment, the corresponding broadcast sender is determined by analyzing the registration instruction of the existing broadcast receiver at the time of registration, and no additional operation setting is required when the broadcast receiver registers the broadcast receiver.
S103, inquiring the broadcast receiver which is set by the broadcast sender corresponding to the registration instruction and is allowed to receive the broadcast message, and processing the registration of the broadcast receiver according to the inquiry result.
In this step, the broadcast receiver that is set by the broadcast sender and allowed to receive the broadcast message corresponding to the determined registration instruction is queried, and the set broadcast receiver that is allowed to receive the broadcast message may be determined in the specific setting content in S101, and then the registration of the broadcast receiver is processed according to the specific query result. The query result may be that the broadcast receiver is set to allow receiving the broadcast message sent by the broadcast sender, or that the broadcast receiver is not allowed to receive the broadcast message sent by the broadcast sender. The registration of the broadcast receiver includes responding to the registration instruction, and registering the corresponding broadcast receiver according to the registration content of the registration instruction, so that the broadcast receiver receives the corresponding broadcast message according to the registered broadcast receiver, and the registration of the broadcast receiver can be prohibited, therefore, the broadcast receiver cannot complete the registration of the broadcast receiver and cannot complete the reception of the corresponding broadcast message. It should be noted that, in an embodiment, the scheme is to process registration of the broadcast receiver, that is, to limit registration of the broadcast receiver in a registration phase of the broadcast receiver, and to limit registration of the broadcast receiver that cannot complete the registration phase, for example, the registration instruction of the broadcast receiver may be masked.
This embodiment provides a method for registering a broadcast receiver, in which a broadcast receiver allowed to receive a broadcast message is set according to the broadcast message sent by a broadcast sender, after a registration instruction of the broadcast receiver is obtained, the broadcast sender corresponding to the registration instruction is determined, the broadcast receiver allowed to receive the broadcast message and set by the broadcast sender corresponding to the registration instruction is queried, and registration of the broadcast receiver is processed according to the query result, in which, the registration of the broadcast receiver is limited, and the broadcast receiver set by the broadcast sender corresponding to the registration instruction needs to be considered in the registration process, so that security of the system for registering the broadcast receiver is improved, and the problem of excessive resource consumption in the subsequent broadcast message processing process caused by passing registration of all broadcast receivers is also avoided, meanwhile, the stability of the system is improved.
Fig. 2 is a flowchart of another registration method of a broadcast receiver according to an embodiment of the present invention, and on the basis of the foregoing embodiment, optionally, the setting of a broadcast receiver allowed to receive the broadcast message includes: a broadcast receiver list allowing reception of the broadcast message is set.
Correspondingly, the broadcast receiver which is set by the broadcast sender corresponding to the inquiry registration instruction and allows to receive the broadcast message comprises: and inquiring a broadcast receiver list which is set by the broadcast sender corresponding to the registration instruction and allows to receive the broadcast message.
Based on the above optimization, as shown in fig. 2, the technical solution provided in this embodiment is specifically as follows:
s201, setting a broadcast receiver list allowing to receive the broadcast message according to the broadcast message sent by the broadcast sender.
In one embodiment, the reception-allowed broadcast receivers corresponding to the broadcast message transmitted by the broadcast transmitter are recorded by creating a form of maintaining a broadcast receiver list. The broadcast receiver list can establish a corresponding relationship between a broadcast receiver and a broadcast sender, and if the broadcast receiver corresponds to the broadcast sender, all broadcast messages sent by the broadcast sender can be received and processed by the corresponding broadcast receiver; the broadcast receiver may be configured to record a part of the determined broadcast message sent by the broadcast sender, where the part of the determined broadcast message may be received and processed by the corresponding broadcast receiver, where the former improves the query efficiency of the system, and the latter improves the flexibility of the broadcast receiver in receiving the corresponding broadcast message, so that the processing of the broadcast receiver registration is more accurate. The broadcast receiving list may be updated at a preset time period, such as 0:00 per day.
S202, after a registration instruction of the broadcast receiver is obtained, a broadcast sender corresponding to the registration instruction is determined.
S203, inquiring a broadcast receiver list which is set by the broadcast sender and is allowed to receive the broadcast message and corresponds to the registration instruction, and processing the registration of the broadcast receiver according to an inquiry result.
In this step, a broadcast receiver list that is set by the broadcast sender and allows receiving the broadcast message and corresponds to the determined registration instruction is queried, the set broadcast receiver list that allows receiving the broadcast message may be determined in the specific setting content in S201, and then registration of the broadcast receiver is processed according to a specific query result. The query result may be determined according to whether the broadcast receiver exists in the broadcast receiver list, and specifically, the broadcast receiver may be recorded in a broadcast reception list that allows receiving the broadcast message sent by the broadcast sender, or the broadcast receiver may not be recorded in a reception list that allows receiving the broadcast message sent by the broadcast sender. The registration of the broadcast receiver comprises responding to the registration instruction, and registering the corresponding broadcast receiver according to the registration content of the registration instruction, so that the broadcast receiver receives the corresponding broadcast message according to the registered broadcast receiver, and the registration of the broadcast receiver can be forbidden, therefore, the broadcast receiver can not complete the registration of the broadcast receiver and can not complete the reception of the corresponding broadcast message.
The embodiment provides a registration method of a broadcast receiver, which sets a broadcast receiver list allowing to receive a broadcast message according to the broadcast message sent by a broadcast sender, determines the broadcast sender corresponding to a registration instruction after acquiring the registration instruction of the broadcast receiver, queries the broadcast receiver list allowing to receive the broadcast message and set by the broadcast sender corresponding to the registration instruction, and processes registration of the broadcast receiver according to a query result.
On the basis of the above technical solution, processing the registration of the broadcast receiver according to the query result includes: allowing registration of the broadcast receiver if there is a broadcast receiver registering the broadcast receiver in the broadcast receiver list.
Fig. 3 is a flowchart of another registration method of a broadcast receiver according to an embodiment of the present invention, and on the basis of the foregoing embodiment, optionally, the setting a broadcast receiver allowed to receive the broadcast message includes: a broadcast receiver package name that allows reception of the broadcast message is added to the broadcast message instruction.
Correspondingly, the querying the broadcast receiver which is set by the broadcast sender corresponding to the registration instruction and allows to receive the broadcast message includes: and inquiring the broadcast receiver packet name in the broadcast message instruction corresponding to the registration instruction.
Based on the above optimization, as shown in fig. 3, the technical solution provided by this embodiment is specifically as follows:
s301, according to the broadcast message sent by the broadcast sender, adding the packet name of the broadcast receiver which is allowed to receive the broadcast message into the broadcast message instruction.
Wherein the packet name of the broadcast receiver corresponds to a specific broadcast receiver, such as the packet name of the QQ software installed in the terminal device is com. For example, the original broadcast message instruction of a counter application may be expressed as:
// creating a broadcast message
Intent intent=new Intent(BROADCAST_COUNTER_ACTION);
// passing the counter parameter and corresponding count value
intent.putExtra(COUNTER_VALUE,counter);
// sending broadcast messages
sendBroadcast(intent)
In one embodiment, when sending the broadcast message, the packet name com. op. oppo of the broadcast receiver is added to the broadcast message, which may be:
Intent intent=new Intent(BROADCAST_COUNTER_ACTION,com.op.oppo)
s302, after a registration instruction of the broadcast receiver is obtained, a broadcast sender corresponding to the registration instruction is determined.
S303, inquiring the packet name of the broadcast receiver in the broadcast message instruction corresponding to the registration instruction, and processing the registration of the broadcast receiver according to the inquiry result.
In this step, according to the broadcast sender determined in S302, the packet name of the broadcast receiver recorded in the broadcast message sent by the broadcast sender is obtained, where the message sent by the broadcast sender may be a broadcast message to be processed in a broadcast queue, or may be a broadcast message recorded in a history of the broadcast message sent by the broadcast sender. The inquired package name of the broadcast receiver is set in S301, and registration of the broadcast receiver is processed according to a specific inquiry result. The query result may be determined according to whether the packet name of the broadcast receiver is included in the packet name of the broadcast receiver of the corresponding broadcast message command, and specifically, the packet name of the broadcast receiver may be recorded in the packet name of the broadcast receiver that is allowed to receive the broadcast message sent by the broadcast sender, or the packet name of the broadcast receiver may not be recorded in the packet name of the broadcast receiver that is allowed to receive the broadcast message sent by the broadcast sender. The registration of the broadcast receiver comprises responding to the registration instruction, and registering the corresponding broadcast receiver according to the registration content of the registration instruction, so that the broadcast receiver receives the corresponding broadcast message according to the registered broadcast receiver, and the registration of the broadcast receiver can be forbidden, therefore, the broadcast receiver can not complete the registration of the broadcast receiver and can not complete the reception of the corresponding broadcast message.
The embodiment provides a registration method of a broadcast receiver, which includes adding a broadcast receiver packet name allowing to receive a broadcast message to a broadcast message instruction according to the broadcast message sent by a broadcast transmitter, determining the broadcast transmitter corresponding to the registration instruction after obtaining the registration instruction of the broadcast receiver, inquiring the broadcast receiver packet name in the broadcast message instruction corresponding to the registration instruction, and processing registration of the broadcast receiver according to an inquiry result.
On the basis of the above technical solution, processing the registration of the broadcast receiver according to the query result includes: if the broadcast receiver package name is identical to a package name of a broadcast receiver registering the broadcast receiver, the registration of the broadcast receiver is allowed.
On the basis of the above technical solution, after the allowing of the registration of the broadcast receiver, the method further includes: and setting a broadcast sender matched with the broadcast receiver when the broadcast receiver is registered, and receiving the broadcast message by the broadcast receiver when the matched broadcast sender is detected to send the broadcast message. In one embodiment, the broadcast sender matched with the broadcast receiver is set to perform synchronous registration on the packet names of the broadcast senders when the broadcast receiver is registered, so that the broadcast receiver only receives and processes broadcast messages sent by the broadcast senders with the same packet names of the broadcast senders, the problem of excessive consumption of system resources caused by the fact that a malicious broadcast sender sends a large amount of junk broadcasts and is received by the broadcast receiver is avoided, the security level of the system is also improved, and the problem that personal information is leaked due to the fact that broadcasts sent by malicious software are received and processed by the broadcast receiver is avoided. Specifically, the registration instruction of the broadcast receiver may be expressed as (for example, a broadcast message sent by the registration reception counter application):
// defining a broadcast message of interest
IntentFilter counterActionFilter=
new IntentFilter(CounterService.BROADCAST_COUNTER_ACTION);
V/making registration of the broadcast receiver
registerReceiver(counterActionReceiver,counterActionFilter)
In one embodiment, the packet name of the broadcast receiver is added when registration of the broadcast receiver is performed, such as: register receiver (counteraactionreceiver, counteraactionfilter, com.
Fig. 4 is a block diagram of a registration apparatus of a broadcast receiver according to an embodiment of the present invention, which is configured to execute the registration method of the broadcast receiver according to the foregoing embodiment, and has functional modules and beneficial effects corresponding to the execution method. As shown in fig. 4, the apparatus specifically includes: a broadcast receiver setting module 401, a broadcast sender determining module 402, a broadcast receiver inquiring module 403, and a broadcast receiver registering module 404.
A broadcast receiver setting module 401, configured to set, according to a broadcast message sent by a broadcast sender, a broadcast receiver that is allowed to receive the broadcast message;
a broadcast sender determining module 402, configured to determine, after obtaining a registration instruction of a broadcast receiver, a broadcast sender corresponding to the registration instruction;
a broadcast receiver querying module 403, configured to query a broadcast receiver that is set by the broadcast sender corresponding to the registration instruction and is allowed to receive the broadcast message;
a broadcast receiver registration module 404, configured to process registration of the broadcast receiver according to the query result.
According to the technical scheme provided by the embodiment, the broadcast receiver which is allowed to receive the broadcast message is set according to the broadcast message sent by the broadcast sender, after the registration instruction of the broadcast receiver is obtained, the broadcast sender corresponding to the registration instruction is determined, the broadcast receiver which is allowed to receive the broadcast message and is set by the broadcast sender corresponding to the registration instruction is inquired, and the registration of the broadcast receiver is processed according to the inquiry result, so that the defects of the existing broadcast receiver when the existing broadcast receiver receives the broadcast sent by the broadcast sender are overcome, the broadcast processing efficiency is improved, the system resource consumption is reduced, and the system stability is improved.
Optionally, the broadcast receiver setting module 401 is specifically configured to: setting a broadcast receiver list allowing reception of the broadcast message; correspondingly, the querying the broadcast receiver which is set by the broadcast sender corresponding to the registration instruction and allows to receive the broadcast message includes: and inquiring a broadcast receiver list which is set by the broadcast sender corresponding to the registration instruction and allows to receive the broadcast message.
Optionally, the broadcast receiver registration module 404 is specifically configured to: allowing registration of the broadcast receiver if there is a broadcast receiver registering the broadcast receiver in the broadcast receiver list.
Optionally, the broadcast receiver setting module 401 is specifically configured to: adding a broadcast receiver package name that allows reception of the broadcast message to a broadcast message instruction; correspondingly, the querying the broadcast receiver which is set by the broadcast sender corresponding to the registration instruction and allows to receive the broadcast message includes: and inquiring the broadcast receiver packet name in the broadcast message instruction corresponding to the registration instruction.
Optionally, the broadcast receiver registration module 404 is specifically configured to: if the broadcast receiver package name is identical to a package name of a broadcast receiver registering the broadcast receiver, the registration of the broadcast receiver is allowed.
Optionally, the method further includes: a broadcast sender matching module 405, configured to set a broadcast sender matching with the broadcast receiver when registering the broadcast receiver, and when detecting that the matched broadcast sender sends a broadcast message, the broadcast receiver receives the broadcast message.
The present embodiment provides a terminal device on the basis of the above embodiments, and the terminal device may include the registration apparatus of the broadcast receiver provided by the present invention. Fig. 5 is a schematic structural diagram of a terminal device according to an embodiment of the present invention, and as shown in fig. 5, the terminal device may include: memory 501, a Central Processing Unit (CPU) 502, peripheral interfaces 503, RF (Radio Frequency) circuitry 505, audio circuitry 506, speakers 511, a power management chip 508, an input/output (I/O) subsystem 509, a touch screen 512, other input/control devices 510, and an external port 504, which communicate via one or more communication buses or signal lines 507.
It should be understood that the illustrated terminal device 500 is merely one example of a terminal device, and that the terminal device 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 a terminal device for rights management of multi-open applications provided in this embodiment, where the terminal device is a smart phone as an example.
A memory 501, the memory 501 being accessible by the CPU502, the peripheral interface 503, and the like, the memory 501 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other volatile solid state storage devices.
A peripheral interface 503, the peripheral interface 503 may connect input and output peripherals of the device to the CPU502 and the memory 501.
An I/O subsystem 509, which I/O subsystem 509 may connect input and output peripherals on the device, such as a touch screen 512 and other input/control devices 510, to the peripheral interface 503. The I/O subsystem 509 may include a display controller 5091 and one or more input controllers 5092 for controlling other input/control devices 510. Where one or more input controllers 5092 receive electrical signals from or send electrical signals to other input/control devices 510, the other input/control devices 510 may include physical buttons (push buttons, rocker buttons, etc.), dials, slide switches, joysticks, click wheels. It is noted that the input controller 5092 may be connected to any one of: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
A touch screen 512, which is an input interface and an output interface between the user terminal and the user, displays visual output to the user, which may include graphics, text, icons, video, and the like.
The display controller 5091 in the I/O subsystem 509 receives electrical signals from the touch screen 512 or transmits electrical signals to the touch screen 512. The touch screen 512 detects a contact on the touch screen, and the display controller 5091 converts the detected contact into an interaction with a user interface object displayed on the touch screen 512, that is, implements a human-computer interaction, and the user interface object displayed on the touch screen 512 may be an icon for running a game, an icon networked to a corresponding network, or the like. It is worth mentioning that the device may also comprise a light mouse, which is a touch sensitive surface that does not show visual output, or an extension of the touch sensitive surface formed by the touch screen.
The RF circuit 505 is mainly used to establish communication between the mobile phone and the wireless network (i.e., network side), and implement data reception and transmission between the mobile phone and the wireless network. Such as sending and receiving short messages, e-mails, etc. In particular, the RF circuitry 505 receives and transmits RF signals, also referred to as electromagnetic signals, through which the RF circuitry 505 converts electrical signals to or from electromagnetic signals and communicates with communication networks and other devices. The RF circuitry 505 may include known circuitry for performing these functions including, but not limited to, an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a CODEC (CODEC) chipset, a Subscriber Identity Module (SIM), and so forth.
The audio circuit 506 is mainly used to receive audio data from the peripheral interface 503, convert the audio data into an electric signal, and transmit the electric signal to the speaker 511.
The speaker 511 is used for restoring the voice signal received by the handset from the wireless network through the RF circuit 505 to sound and playing the sound to the user.
And a power management chip 508 for supplying power and managing power to the hardware connected to the CPU502, the I/O subsystem, and the peripheral interfaces.
The CPU502 provided in the embodiment of the present invention may perform the following operations:
setting a broadcast receiver allowing to receive the broadcast message according to the broadcast message sent by a broadcast sender;
after a registration instruction of a broadcast receiver is obtained, a broadcast sender corresponding to the registration instruction is determined;
and inquiring the broadcast receiver which is set by the broadcast sender corresponding to the registration instruction and allows to receive the broadcast message, and processing the registration of the broadcast receiver according to the inquiry result.
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 (13)

1. A registration method of a broadcast receiver, comprising:
setting a broadcast receiver allowing to receive the broadcast message according to the broadcast message sent by a broadcast sender;
after a registration instruction of a broadcast receiver is obtained, a broadcast sender corresponding to the registration instruction is determined;
inquiring a broadcast receiver which is set by a broadcast sender corresponding to the registration instruction and allows to receive the broadcast message, and processing the registration of the broadcast receiver according to an inquiry result;
wherein processing registration of the broadcast receiver comprises: responding to the registration instruction, and registering the corresponding broadcast receiver according to the registration content of the registration instruction; alternatively, registration with the broadcast receiver is prohibited.
2. The method of claim 1, wherein setting up broadcast recipients allowed to receive the broadcast message comprises:
setting a broadcast receiver list allowing reception of the broadcast message;
correspondingly, the querying the broadcast receiver which is set by the broadcast sender corresponding to the registration instruction and allows to receive the broadcast message includes:
and inquiring a broadcast receiver list which is set by the broadcast sender corresponding to the registration instruction and allows to receive the broadcast message.
3. The method of claim 2, wherein the processing registration of the broadcast receiver according to the query result comprises:
allowing registration of the broadcast receiver if there is a broadcast receiver registering the broadcast receiver in the broadcast receiver list.
4. The method of claim 1, wherein setting up broadcast recipients allowed to receive the broadcast message comprises:
adding a broadcast receiver package name that allows reception of the broadcast message to a broadcast message instruction;
correspondingly, the querying the broadcast receiver which is set by the broadcast sender corresponding to the registration instruction and allows to receive the broadcast message includes:
and inquiring the broadcast receiver packet name in the broadcast message instruction corresponding to the registration instruction.
5. The method of claim 4, wherein the processing registration of the broadcast receiver according to the query result comprises:
if the broadcast receiver package name is identical to a package name of a broadcast receiver registering the broadcast receiver, the registration of the broadcast receiver is allowed.
6. The method of claim 3 or 5, further comprising, after said allowing registration of the broadcast receiver:
and setting a broadcast sender matched with the broadcast receiver when the broadcast receiver is registered, and receiving the broadcast message by the broadcast receiver when the matched broadcast sender is detected to send the broadcast message.
7. A registration apparatus of a broadcast receiver, comprising:
a broadcast receiver setting module for setting a broadcast receiver allowed to receive the broadcast message according to the broadcast message sent by the broadcast sender;
the broadcast sender determining module is used for determining a broadcast sender corresponding to a registration instruction after the registration instruction of the broadcast receiver is obtained;
a broadcast receiver inquiry module, configured to inquire a broadcast receiver that is set by a broadcast sender corresponding to the registration instruction and allows to receive the broadcast message;
a broadcast receiver registration module for processing the registration of the broadcast receiver according to the query result;
wherein processing registration of the broadcast receiver comprises: responding to the registration instruction, and registering the corresponding broadcast receiver according to the registration content of the registration instruction; alternatively, registration with the broadcast receiver is prohibited.
8. The apparatus of claim 7, wherein the broadcast receiver setup module is specifically configured to:
setting a broadcast receiver list allowing reception of the broadcast message;
correspondingly, the querying the broadcast receiver which is set by the broadcast sender corresponding to the registration instruction and allows to receive the broadcast message includes:
and inquiring a broadcast receiver list which is set by the broadcast sender corresponding to the registration instruction and allows to receive the broadcast message.
9. The apparatus of claim 8, wherein the broadcast receiver registration module is specifically configured to:
allowing registration of the broadcast receiver if there is a broadcast receiver registering the broadcast receiver in the broadcast receiver list.
10. The apparatus of claim 7, wherein the broadcast receiver setup module is specifically configured to:
adding a broadcast receiver package name that allows reception of the broadcast message to a broadcast message instruction;
correspondingly, the querying the broadcast receiver which is set by the broadcast sender corresponding to the registration instruction and allows to receive the broadcast message includes:
and inquiring the broadcast receiver packet name in the broadcast message instruction corresponding to the registration instruction.
11. The apparatus of claim 10, wherein the broadcast receiver registration module is specifically configured to:
if the broadcast receiver package name is identical to a package name of a broadcast receiver registering the broadcast receiver, the registration of the broadcast receiver is allowed.
12. The apparatus of claim 9 or 11, further comprising:
and the broadcast sender matching module is used for setting a broadcast sender matched with the broadcast receiver when the broadcast receiver is registered, and the broadcast receiver receives the broadcast message when the matched broadcast sender is detected to send the broadcast message.
13. A terminal device, comprising: a processor, a memory, and a computer program stored on the memory and executable on the processor, wherein the processor when executing the computer program implements the steps of:
setting a broadcast receiver allowing to receive the broadcast message according to the broadcast message sent by a broadcast sender;
after a registration instruction of a broadcast receiver is obtained, a broadcast sender corresponding to the registration instruction is determined;
inquiring a broadcast receiver which is set by a broadcast sender corresponding to the registration instruction and allows to receive the broadcast message, and processing the registration of the broadcast receiver according to an inquiry result;
wherein processing registration of the broadcast receiver comprises: responding to the registration instruction, and registering the corresponding broadcast receiver according to the registration content of the registration instruction; alternatively, registration with the broadcast receiver is prohibited.
CN201710141039.9A 2017-03-10 2017-03-10 Registration method and device of broadcast receiver and terminal equipment Active CN106953852B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710141039.9A CN106953852B (en) 2017-03-10 2017-03-10 Registration method and device of broadcast receiver and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710141039.9A CN106953852B (en) 2017-03-10 2017-03-10 Registration method and device of broadcast receiver and terminal equipment

Publications (2)

Publication Number Publication Date
CN106953852A CN106953852A (en) 2017-07-14
CN106953852B true CN106953852B (en) 2019-12-31

Family

ID=59467378

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710141039.9A Active CN106953852B (en) 2017-03-10 2017-03-10 Registration method and device of broadcast receiver and terminal equipment

Country Status (1)

Country Link
CN (1) CN106953852B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107729158B (en) * 2017-09-20 2022-01-11 惠州Tcl移动通信有限公司 Method for simplifying application program register, storage medium and electronic equipment
CN107968881A (en) * 2017-11-22 2018-04-27 珠海市魅族科技有限公司 End-point device broadcast processing method and processing device, terminal device and storage medium
CN110209513B (en) * 2019-06-06 2021-06-22 北京金山安全软件有限公司 Broadcast registration method, device, equipment and medium of application program
CN116450371A (en) * 2022-01-07 2023-07-18 北京有竹居网络技术有限公司 Method and device for registering broadcast

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103595547A (en) * 2013-11-15 2014-02-19 北京奇虎科技有限公司 Broadcast intercept method and device of intelligent equipment
CN104994481A (en) * 2015-07-10 2015-10-21 上海斐讯数据通信技术有限公司 Method and system for transceiving broadcast messages between application programs in Android system
CN105357648A (en) * 2015-10-10 2016-02-24 上海斐讯数据通信技术有限公司 Method and Android system for sending broadcast message to application program
CN105897438A (en) * 2016-03-22 2016-08-24 上海斐讯数据通信技术有限公司 Broadcast sending method and apparatus

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8914849B2 (en) * 2011-06-08 2014-12-16 Tracfone Wireless, Inc. Broadcast replenishment of account parameters for groups of wireless devices

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103595547A (en) * 2013-11-15 2014-02-19 北京奇虎科技有限公司 Broadcast intercept method and device of intelligent equipment
CN104994481A (en) * 2015-07-10 2015-10-21 上海斐讯数据通信技术有限公司 Method and system for transceiving broadcast messages between application programs in Android system
CN105357648A (en) * 2015-10-10 2016-02-24 上海斐讯数据通信技术有限公司 Method and Android system for sending broadcast message to application program
CN105897438A (en) * 2016-03-22 2016-08-24 上海斐讯数据通信技术有限公司 Broadcast sending method and apparatus

Also Published As

Publication number Publication date
CN106953852A (en) 2017-07-14

Similar Documents

Publication Publication Date Title
US10819455B2 (en) Broadcast processing method, non-transitory storage medium, and electronic device
CN106953852B (en) Registration method and device of broadcast receiver and terminal equipment
CN107070670B (en) Method, device and terminal equipment for controlling broadcast sender to send broadcast message
US10097292B2 (en) Method, device, terminal and storage medium for adjusting broadcast message queue
US10908976B2 (en) Broadcast queue adjustment method, terminal, and storage medium
US11051272B2 (en) Method for arranging broadcast message in operating system and electronic device
CN106919459B (en) Management method, device and terminal for broadcast receiver
CN106851015B (en) Method, device and terminal for adjusting broadcast message queue
US10785741B2 (en) Registration method for broadcast receiver, terminal and storage medium
EP3588993B1 (en) Broadcast sending method and terminal
US10990460B2 (en) Method of generating broadcast queue, storage medium, and terminal
EP3373137B1 (en) Method, apparatus and terminal device for sending broadcast
WO2018161955A1 (en) Method and device for controlling broadcast recipient, and mobile terminal
CN106844070B (en) Broadcast control method and device and mobile terminal
CN106851595B (en) Ordered broadcast processing method, device and terminal device
CN106899943B (en) Method, device and terminal equipment for controlling broadcast sender to send broadcast message
CN106936828B (en) Method, device and terminal for adjusting broadcast receiver queue
CN106708637B (en) Method, device and terminal for sending startup broadcast
US20180262358A1 (en) Method for monitoring broadcast message and terminal
CN106919461B (en) Method and device for adjusting broadcast receiver queue and terminal equipment
CN106851582B (en) Service switching method and device of mobile terminal and mobile terminal
KR20100096543A (en) Method and system for providing networking service and computer recordable medium

Legal Events

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

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

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

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

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

GR01 Patent grant
GR01 Patent grant