CN104994481B - The receiving/transmission method and system to broadcast the message between application program in a kind of android system - Google Patents

The receiving/transmission method and system to broadcast the message between application program in a kind of android system Download PDF

Info

Publication number
CN104994481B
CN104994481B CN201510405871.6A CN201510405871A CN104994481B CN 104994481 B CN104994481 B CN 104994481B CN 201510405871 A CN201510405871 A CN 201510405871A CN 104994481 B CN104994481 B CN 104994481B
Authority
CN
China
Prior art keywords
broadcast
message
packet
radio receiver
reception side
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
CN201510405871.6A
Other languages
Chinese (zh)
Other versions
CN104994481A (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.)
Huzhou Yinglie Intellectual Property Operation Co ltd
Original Assignee
Shanghai Feixun Data Communication Technology Co 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 Shanghai Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN201510405871.6A priority Critical patent/CN104994481B/en
Publication of CN104994481A publication Critical patent/CN104994481A/en
Application granted granted Critical
Publication of CN104994481B publication Critical patent/CN104994481B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • 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

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 invention discloses the receiving/transmission method to broadcast the message between application program in a kind of android system and systems.When broadcast reception side registers radio receiver, the first packet list of file names that broadcast transmission side's packet name that being arranged allows to receive is constituted, when broadcast transmission side Bao Mingyu the first packet list of file names successful match, broadcast reception side is received by the radio receiver and is broadcast the message, by specifying broadcast transmission side, to avoid the broadcast message of personation is received, the operation of application is interfered with;When broadcast transmission side sends broadcast message, it includes to allow to receive the second packet list of file names that the broadcast reception side's packet name to broadcast the message is constituted to send information, described in broadcast reception side Bao Mingyu when the second packet list of file names successful match, broadcast reception side is received by the radio receiver and is broadcast the message, by specifying multiple broadcast reception sides, third party's Unknown Applications is avoided to steal broadcast message.

Description

A kind of receiving/transmission method for broadcasting the message between application program in android system and System
Technical field
The present invention relates in a kind of android system broadcast message security mechanism more particularly to a kind of android system The receiving/transmission method and system to broadcast the message between middle application program.
Background technology
Broadcast is the mechanism that a kind of extensive utilization transmits information among applications in android system, in Android Broadcast be used for monitoring system event or application event.
The broadcast message of android system belongs to open nature, and any application program can be by realizing that broadcast connects Device is received to receive broadcast message, the interface that any application program can be provided by system sends broadcast message.It can lead in this way Cause cankered third party application that can listen to the broadcast message of normal application, while the broadcast for sending personation disappears The operation of breath interference normal application, has seriously affected the safety of android system.Android system provides a variety of Method avoids the above situation, it is apparent that it is incomplete, for example broadcast transmission side is allowed to specify specific radio receiver, permission The application program of broadcast message intended receiver only allows broadcast message to be transmitted inside broadcast transmission side's application program, but this A little safeties for not ensuring that broadcast message.The broadcast message interference that third party application still can send personation is normal The sender of the operation of application program, broadcast message can not specify multiple application programs to receive broadcast message simultaneously, cause more Broadcast message between application program can not safe transmission and reception.For example same company develops multiple application programs, needs Broadcast message is transmitted between this multiple application program, but is not allowed other Unknown Applications to receive the broadcast and disappeared Breath, existing android system can not complete the function.
Invention content
The purpose of the present invention is just to provide the receiving/transmission method to broadcast the message between application program in a kind of android system And system, when sending broadcast message, multiple application programs for allowing to receive can be specified, third party's Unknown Applications is avoided to steal Broadcast message is got, when receiving broadcast message, the application program that broadcast message can be specified to send, to avoid personation is received Broadcast message, interferes with the operation of application.
The present invention provides the receiving/transmission method to broadcast the message between application program in a kind of android system,
The specific steps are:
The broadcast reception sides S1 register radio receiver to campaign management services, include broadcast reception side in log-on message Packet name;
The broadcast transmission sides S2 send the broadcast message for including broadcast transmission side's packet name;
S3 campaign management services determine broadcast by broadcast transmission side's packet name and/or broadcast reception side's packet name verification mode Whether receiver receives broadcast message;
If being verified, S4 is entered step, if authentication failed, radio receiver does not receive broadcast message;
The broadcast reception sides S4 are received by the radio receiver and are broadcast the message.
Broadcast message transmission and broadcast message reception in present android system, if what broadcast transmission side specified Action is consistent with the Action in broadcast reception side's registration message to can be carried out broadcast message reception.This mode exists wide Broadcast the case where message is stolen or received the broadcast message of personation by other application program and interferes with the operation of broadcast reception side.
The packet name of application program has uniqueness in android system level, can be used for identification application, in we In case, by increasing the verification mode of application package name, reach more accurate message transmission and message sink.
Preferably,
In S1 steps, when broadcast reception side registers radio receiver, setting allows the broadcast transmission side's packet name structure received At the first packet list of file names;
In S3 steps, campaign management services match the first packet list of file names described in broadcast transmission side Bao Mingyu, if matching Success, enters step S4, if it fails to match, broadcast reception side does not receive broadcast message.
This mode is crossed, the operation of application can be interfered with to avoid the broadcast message of personation is received.
Preferably,
In S2 steps, when broadcast transmission side sends broadcast message, it is wide comprising allowing reception to broadcast the message to send information Broadcast the second packet list of file names of recipient's packet name composition;
Further include step after S2 steps:
S31, campaign management services match the second packet list of file names described in broadcast reception side Bao Mingyu, if successful match into Enter step S4, if it fails to match, broadcast reception side does not receive broadcast message.
By the above verification mode, when sending broadcast message, multiple application programs for allowing to receive can be specified, are avoided Third party's Unknown Applications steal broadcast message.
Preferably, registration radio receiver is dynamic registration and/or static registration.
Preferably, when the broadcast reception side starts, campaign management services parse the file of the static registration, extraction With the relevant information for preserving radio receiver, when the broadcast reception side closes, campaign management services delete radio receiver Relevant information.
The present invention also provides the receive-transmit system to broadcast the message between application program in a kind of android system, feature exists In, including broadcast transmission side, broadcast reception side, the campaign management services of system,
Broadcast transmission side includes:
Calling module is sent, the broadcast message for calling campaign management services to be provided sends function, and broadcast is disappeared Breath specifying information group is woven in parameter;
Broadcast reception side includes:
Registration module registers radio receiver to campaign management services, includes broadcast reception side's packet name in log-on message;
Receiving module, broadcasts the message for being received by radio receiver, and campaign management services include:
Broadcast the message sending module, calls broadcast message to send function for receiving broadcast transmission side, and send broadcast and disappear Breath;
Receive registration module, the information registered for receiving broadcast reception side;
Log-on message parsing module, for parsing registered information;
Packet name authentication module, for being verified to broadcast transmission side's packet name and/or broadcast reception side's packet name, if packet name is tested Card passes through, and broadcast message processing module processing broadcast message, if authentication failed, receiving module does not receive broadcast message;
Broadcast the message processing module, for handling broadcast message, after broadcast transmission side, which is sent, to broadcast the message, and broadcast message Processing module sends broadcast messages to specific broadcast reception according to system proof rule and the verification result of packet name authentication module Device.
Preferably,
It broadcasts the message in registration module, also includes:
First packet name adds submodule, allows to receive broadcast transmission side's packet name for adding, constitutes the first packet list of file names;
Packet name authentication module also includes:
First verification submodule, for matching the first packet list of file names described in broadcast transmission side Bao Mingyu.
Preferably,
Message sends calling module:
Second packet name adds submodule, allows to receive broadcast transmission side's packet name for adding, constitutes the second packet list of file names;
Packet name authentication module also includes:
Second verification submodule, for matching the second packet list of file names described in broadcast reception side Bao Mingyu.
Preferably,
The registration module that broadcasts the message includes static registration submodule and dynamic registration submodule.
Preferably,
Log-on message parsing module, is used for, and when the broadcast reception side starts, parses the file of the static registration, Extraction and the relevant information for preserving radio receiver delete the related letter of radio receiver when the broadcast reception side closes Breath.
When broadcast reception side registers radio receiver, setting allows the first packet for receiving broadcast transmission side's packet name composition to rank Table, when broadcast transmission side Bao Mingyu the first packet list of file names successful match, broadcast reception side is received wide by the radio receiver Message is broadcast, the operation of application is interfered with to avoid the broadcast message of personation is received by specified broadcast transmission side; When broadcast transmission side sends broadcast message, it includes to allow to receive that the broadcast reception side packet name to broadcast the message constitutes the to send information Two packet list of file names, described in broadcast reception side Bao Mingyu when the second packet list of file names successful match, broadcast reception side passes through the broadcast Receiver receives broadcast message, by specifying multiple broadcast reception sides, avoids third party's Unknown Applications from stealing broadcast and disappears Breath.
Description of the drawings
Fig. 1 is the receiving/transmission method first embodiment to broadcast the message between application program in a kind of android system of the present invention Flow diagram;
Fig. 2 is the receive-transmit system first embodiment to broadcast the message between application program in a kind of android system of the present invention Structural schematic diagram;
Fig. 3 is the receiving/transmission method second embodiment to broadcast the message between application program in a kind of android system of the present invention Flow diagram;
Fig. 4 is the receive-transmit system second embodiment to broadcast the message between application program in a kind of android system of the present invention Structural schematic diagram;
Fig. 5 is the receiving/transmission method 3rd embodiment to broadcast the message between application program in a kind of android system of the present invention Flow diagram;
Fig. 6 is the receive-transmit system 3rd embodiment to broadcast the message between application program in a kind of android system of the present invention Structural schematic diagram.
Specific implementation mode
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with Obtain other attached drawings according to these attached drawings.
Embodiment one:
The present embodiment provides the receiving/transmission methods to broadcast the message between application program in a kind of android system.
In android system, broadcast is a kind of mechanism for transmitting information among applications of extensive utilization.Pass through Broadcast message sends and receives, and information can be mutually transmitted between application program, for the convenience of description, we are passed with primary information It is introduced for defeated, in this time message transmitting procedure, we are known as the application program for sending out broadcast message to broadcast hair The application program for receiving broadcast message is known as broadcast reception side by the side of sending.
Broadcast message transmission and broadcast message reception in present android system, if what broadcast transmission side specified Action is consistent with the Action in broadcast reception side's registration message to can be carried out message sink.This mode disappears in the presence of broadcast The case where breath is stolen or is received the broadcast message of personation by other application program and interferes with the operation of broadcast reception side.
The packet name of application program has uniqueness in android system level, can be used for identification application, in we In case, by increasing the verification mode of application package name, reach more accurate message transmission and message sink.
As shown in Figure 1, the specific steps are:
The broadcast reception sides S1 register radio receiver to campaign management services, include broadcast reception side in log-on message Packet name;
Broadcast reception device assembly is used to receive and the message of response system broadcast.Broadcast mechanism, for essence, it is one Kind message subscribing/issue mechanism, therefore, the first step using this message-driven model are subscription message, and to Android For application program, it is exactly to register radio receiver in fact to subscribe to message, and after system, which is sent, to broadcast the message, system is according to registration Situation obtains corresponding radio receiver, then calls the processing function of radio receiver respectively in application, completes broadcast The processing of message.
There are two ways to registering radio receiver, one is static registrations, and one is dynamic registrations.Android's In broadcast mechanism, the priority of dynamic registration is higher than static registration priority.
The broadcast transmission sides S2 send the broadcast message for including broadcast transmission side's packet name;
In android system, the campaign management services of system process are run on (in industry common name ActivityManagerService) registration, transmission and the dispatch deal of management broadcast message externally mainly provides dynamic and notes Volume broadcast message (RegisterReceiver) and transmission broadcast message (BroadcastIntent) two interface functions, application Process calls the two interface functions to complete the correlation function of broadcast message by Binder interface striding courses.
Broadcast transmission side broadcasts the message function to send by the transmission of calling system ActivityManagerService Message;
S3 campaign management services (ActivityManagerService) are connect by broadcast transmission side's packet name and/or broadcast Debit's packet name verification mode, determines whether radio receiver receives broadcast message;
If being verified, S4 is entered step, if authentication failed, radio receiver does not receive broadcast message;
After sending broadcast message, campaign management services ActivityManagerService obtains correspondence from register list Radio receiver, and broadcast transmission side's packet name and/or broadcast reception side's packet name are verified, are proved to be successful then broadcast reception Device receives broadcast message.
The broadcast reception sides S4 are received by the radio receiver and are broadcast the message.
As shown in Fig. 2, the present invention also provides the transmitting-receiving systems to broadcast the message between application program in a kind of android system System, including broadcast transmission side, broadcast reception side, the campaign management services of system,
Wherein, broadcast transmission side includes:
Calling module is sent, the broadcast message for calling campaign management services to be provided sends function, and broadcast is disappeared Breath specifying information group is woven in parameter;
Broadcast reception side includes:
Registration module registers radio receiver to campaign management services, includes broadcast reception side's packet name in log-on message;
Receiving module broadcasts the message for being received by radio receiver,
Campaign management services include:
Broadcast the message sending module, calls broadcast message to send function for receiving broadcast transmission side, and send broadcast and disappear Breath;
Receive registration module, the information registered for receiving broadcast reception side;
Log-on message parsing module, for parsing registered information;
Packet name authentication module, for being verified to broadcast transmission side's packet name and/or broadcast reception side's packet name, if packet name is tested Card passes through, and broadcast message processing module processing broadcast message, if authentication failed, receiving module does not receive broadcast message;
Broadcast the message processing module, for handling broadcast message, after broadcast transmission side, which is sent, to broadcast the message, and broadcast message Processing module sends broadcast messages to specific broadcast reception according to system proof rule and the verification result of packet name authentication module Device.
Broadcast transmission side, by sending calling module, the broadcast message transmission function for calling campaign management services to be provided, And broadcast message specifying information group is woven in parameter, campaign management services send mode transfer block by receiving and receive broadcast transmission side It calls broadcast message to send function, and sends broadcast message;
Broadcast reception side registers radio receiver to campaign management services by registration module, includes in log-on message Broadcast reception side's packet name, campaign management services receive the information that broadcast reception side is registered by receiving registration module, and pass through Log-on message parsing module parses log-on message;
Campaign management services carry out broadcast transmission side's packet name and/or broadcast reception side's packet name by packet name authentication module Verification, system convention verify (i.e. Action verifications) by and packet name be verified, broadcast message processing module, will broadcast the message It is sent to specific radio receiver, if system authentication failed, broadcast message reception module cannot receive broadcast message.
Embodiment two:
Packet name is verified, can be divided into and broadcast transmission side's packet name is verified and broadcast reception side's packet name is verified, this reality It applies example and describes the specific embodiment verified to broadcast transmission side's packet name, basic implementation steps are identical as embodiment one, no longer in detail Thin description, difference lies in:
As shown in figure 3, broadcast transmission side's packet name is verified, the specific steps are:
Include broadcast reception side's packet name in log-on message when broadcast reception side registers radio receiver in S1 steps, The first packet list of file names that broadcast transmission side's packet name that also setting up allows to receive is constituted;
Broadcast message filter (IntentFilter) is responsible for filtering out the broadcast message that component cannot respond to and handle The broadcast message Intent that oneself is concerned about only is received and is handled by Intent.In order to ensure radio receiver only receives Broadcast message transmitted by specified broadcast transmission side needs to increase broadcast hair in broadcast message filter (IntentFilter) The side of sending packet concrete number group membership defines:JAVA codes are as follows:
private ArrayList<String>mAllowPackages;
Application program where // restriction broadcast transmission side
Increase the interface function of addition broadcast transmission side's packet name simultaneously:
JAVA codes are as follows:
Broadcast reception side registration radio receiver be divided into dynamic registration and static registration, introduce separately below dynamic registration and Static registration realization method.
Dynamic registration is realized:
The dynamic registration of broadcast message is the RegisterReceiver functions for calling ActivityManagerService Come what is completed, subsidiary radio receiver entity (BroadcastReceiver) and broadcast message filter (IntentFilter). In this way when calling the RegisterReceiver functions of ActivityManagerService, IntentFilter parameters are built When, the addAllowPackage functions of IntentFilter can be called the packet name of specified application is arranged, to limit Send the application program of broadcast message.
Static registration is realized:
The static registration of radio receiver is completed in the AndroidManifest.xml of application program, is also needed Increase the Package titles of defining application, example is as follows:
Packet where application program is entitled " com.android.package1 ", defines one It is " android.intent.action.TEST_STATE " that BroadcastReceiver, which is used for receiving broadcast message Action, Limit send the broadcast message where application program packet entitled " com.android.package2 " and " Com.android.package3 ", that is to say, that the broadcast message of only the two Package transmissions " Android.intent.action.TEST_STATE " could allow to receive, the broadcast message that other all Package are sent It will be filtered.
Due to " package " members belong to and newly increase, need to increase for " parsing of package ". The member definition of AndroidManifest.xml needs to add wherein in attrs_manifest.xml " package " at Member's definition:
In this way, when being parsed to XML, can be matched to " package " members, specific XML, which is parsed, to exist In parseIntent functions in PackageParser.java, parseIntent functions are specifically used to parse Member defined in InentFilter, needed in while cycles in the function addition for " processing of package " members, It is specific as follows:
By parsing and matching " package " members, obtain the restriction in XML file for IntentFilter Then Package titles call the addAllowPackage functions newly increased in IntentFilter to be sent extensively to be arranged to limit Sender's packet name is broadcast, relevant information has just been stored in IntentFilter entities.
Only when application program is opened, parsing AndroidManifest.xml files can be just removed, and preserve and wherein broadcast The information of receiver (BroadcastReceiver) and broadcast message filter (IntentFilter) is sent out when there is broadcast message It when sending, needs to carry out broadcast message matching in these data, when closing application program, deletes the related letter of broadcast message Breath.
In S3 steps, campaign management services match the first packet list of file names described in broadcast transmission side Bao Mingyu, if matching Success, enters step S4, if it fails to match, broadcast reception side does not receive broadcast message.
Broadcast reception side is provided with the first packet that receivable broadcast transmission side's packet name is constituted when registering radio receiver List of file names, broadcast transmission side are that ActivityManagerService sends Message function transmission message, system by calling ActivityManagerService obtains corresponding radio receiver from register list, matches broadcast transmission side's packet name and note Packet name the first packet list of file names set by volume radio receiver after successful match, could allow radio receiver reception corresponding Broadcast message.In this way, the operation of application can be interfered with to avoid the broadcast message of personation is received.
As shown in figure 4, the transmitting-receiving to broadcast the message between application program in a kind of android system that the present embodiment is provided System, it is essentially identical with embodiment one, difference lies in,
It broadcasts the message in registration module, also includes:
First packet name adds submodule, allows to receive broadcast transmission side's packet name for adding, constitutes the first packet list of file names;
Packet name authentication module also includes:
First verification submodule, for matching the first packet list of file names described in broadcast transmission side Bao Mingyu.
Broadcast reception side adds submodule when registering radio receiver, by the first packet name, and addition, which allows to receive, to be broadcasted Sender's packet name constitutes the first packet list of file names, and campaign management services receive log-on message by receiving registration module, and pass through note Volume information analysis module parses log-on message, therefore campaign management services obtain registered radio receiver and additional permission Receive the first packet list of file names that broadcast transmission side's packet name is constituted.
The broadcast message sending module of campaign management services is called, is sent wide by sending calling module in broadcast transmission side When broadcasting message, it includes sender's packet name to send information.
The first verification submodule in the packet name authentication module of campaign management services, for verifying broadcast transmission side Bao Mingyu First packet list of file names just fills radio receiver reception broadcast perhaps and disappears there are sender's packet name in the first packet list of file names Breath.
By this verification mode, the operation of application can be interfered with to avoid the broadcast message of personation is received.
Embodiment three
The present embodiment describes the specific embodiment verified to broadcast reception side's packet name.Basic implementation steps and embodiment one It is identical, it is not described in detail, difference lies in:
As shown in figure 5, in S2 steps, when broadcast transmission side sends broadcast message, it includes to allow reception wide to send information Broadcast the second packet list of file names that broadcast reception side's packet name of message is constituted;
Further include step after S2 steps:
S31, campaign management services match the second packet list of file names described in broadcast reception side Bao Mingyu, if successful match into Enter step S4, if it fails to match, broadcast reception side does not receive broadcast message.
When sending broadcast message, pass through Binder remote interface tune ActivityManagerService's BroadcastIntent functions are handled, and specific broadcast message is encapsulated in Intent data structures, in order to send broadcast When message, broadcast reception side's packet name is specified, the interpolation data member in Intent is needed:
JAVA codes are as follows:
private HashSet<String>mAllowPackages;
Addition processing function is needed simultaneously:
JAVA codes are as follows:
When sending broadcast message structure Intent data structures, addAllowPackage functions can be called to add Allow the Package titles for receiving the broadcast message application program.
By the above verification mode, when sending broadcast message, multiple application programs for allowing to receive can be specified, are avoided Third party's Unknown Applications steal broadcast message.
As shown in fig. 6, the transmitting-receiving to broadcast the message between application program in a kind of android system that the present embodiment is provided System, it is essentially identical with embodiment one, difference lies in,
Message sends calling module:
Second packet name adds submodule, allows to receive broadcast transmission side's packet name for adding, and constitutes the second packet list of file names, the Two packets rank table organization in parameter.
Packet name authentication module also includes:
Second verification submodule, for matching the second packet list of file names described in broadcast reception side Bao Mingyu.
The broadcast message sending module of campaign management services is called to send broadcast by sending calling module in broadcast transmission side When message, submodule is added by the second packet name, addition allows to receive the broadcast reception side's packet name to broadcast the message, constitutes the second packet List of file names.
Campaign management services receive log-on message by receiving registration module, and are parsed and noted by log-on message parsing module Therefore volume information, campaign management services obtain broadcast reception side's packet name.
The second verification submodule in the packet name authentication module of campaign management services, for verifying broadcast transmission recipient packet Name and the second packet list of file names are just filled radio receiver perhaps and are received extensively there are recipient's packet name in the second packet list of file names Broadcast message.
Example IV
The verification mode to sender's packet name is described in above example two, is described in embodiment three and recipient is wrapped The verification mode of name, in the present embodiment, including both the above verification mode, specific verification and embodiment two, embodiment three-phase Together, it is not described in detail, only all passes through there are two types of verification mode, just fill the radio receiver registered perhaps and receive broadcast message.
It solves the broadcast message for avoiding receiving personation to sender's packet name verification mode above, interferes with this application journey The problem of operation of sequence, can specify multiple application programs for allowing to receive to recipient's packet name verification mode, avoid third party Unknown Applications steal broadcast message.
Two kinds of verification modes are combined, both the above function can be completed at the same time, realize that the accurate of message sends and receives.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered It is considered as protection scope of the present invention.

Claims (6)

1. the receiving/transmission method to broadcast the message between application program in a kind of android system, which is characterized in that the specific steps are:
The broadcast reception sides S1 register radio receiver to campaign management services, include broadcast reception side's packet name in log-on message; Wherein, when broadcast reception side's registration radio receiver, the first packet that setting allows the broadcast transmission side's packet name received to constitute ranks Table;
The broadcast transmission sides S2 send the broadcast message for including broadcast transmission side's packet name;Wherein, broadcast transmission side sends broadcast message When, it includes to allow to receive the second packet list of file names that the broadcast reception side's packet name to broadcast the message is constituted to send information;
S3 campaign management services, registration, transmission and dispatch deal for managing broadcast message;By system convention verification, extensively Broadcast the second packet list of file names matching described in the first packet list of file names matching verification and broadcast reception side Bao Mingyu described in sender Bao Mingyu The mode of verification, determines whether radio receiver receives broadcast message;
If being verified, S4 is entered step, if authentication failed, radio receiver does not receive broadcast message;
The broadcast reception sides S4 are received by the radio receiver and are broadcast the message.
2. the receiving/transmission method to broadcast the message between application program in android system according to claim 1, feature exist In registration radio receiver is dynamic registration and/or static registration.
3. the receiving/transmission method to broadcast the message between application program in android system according to claim 2, feature exist In when the broadcast reception side starts, campaign management services parse the file of the static registration, and extraction and preservation broadcast connect The relevant information for receiving device, when the broadcast reception side closes, campaign management services delete the relevant information of radio receiver.
4. the receive-transmit system to broadcast the message between application program in a kind of android system, which is characterized in that including broadcast transmission Side, broadcast reception side, the campaign management services of system,
Broadcast transmission side includes:
Calling module is sent, is had for calling the broadcast message that campaign management services are provided to send function, and by broadcast message Body information group is woven in parameter;And the transmission calling module also includes:Second packet name adds submodule, allows to connect for adding Broadcast transmission side's packet name is received, the second packet list of file names is constituted;
Broadcast reception side includes:
Registration module registers radio receiver to campaign management services, includes broadcast reception side's packet name in log-on message;And institute Stating registration module also includes:
First packet name adds submodule, allows to receive broadcast transmission side's packet name for adding, constitutes the first packet list of file names;
Receiving module broadcasts the message for being received by radio receiver,
Campaign management services, registration, transmission and dispatch deal for managing broadcast message;Including:Broadcast the message sending module, It calls broadcast message to send function for receiving broadcast transmission side, and sends broadcast message;
Receive registration module, the information registered for receiving broadcast reception side;
Log-on message parsing module, for parsing registered information;
Packet name authentication module, for being verified to broadcast transmission side's packet name and broadcast reception side's packet name, if packet name is verified, The processing module that broadcasts the message processing broadcast message, if authentication failed, receiving module does not receive broadcast message;Wherein, the packet name Authentication module includes:
First verification submodule, for matching the first packet list of file names described in broadcast transmission side Bao Mingyu;
Second verification submodule, for matching the second packet list of file names described in broadcast reception side Bao Mingyu;
Broadcast the message processing module, for handling broadcast message, after broadcast transmission side, which is sent, to broadcast the message, and broadcast message processing Module sends broadcast messages to specific radio receiver according to system proof rule and the verification result of packet name authentication module.
5. the receive-transmit system to broadcast the message between application program in android system according to claim 4, feature exist In broadcast message registration module includes static registration submodule and dynamic registration submodule.
6. the receive-transmit system to broadcast the message between application program in android system according to claim 5, feature exist In, log-on message parsing module is used for, and when the broadcast reception side starts, parses the file of the static registration, extraction and The relevant information for preserving radio receiver deletes the relevant information of radio receiver when the broadcast reception side closes.
CN201510405871.6A 2015-07-10 2015-07-10 The receiving/transmission method and system to broadcast the message between application program in a kind of android system Active CN104994481B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510405871.6A CN104994481B (en) 2015-07-10 2015-07-10 The receiving/transmission method and system to broadcast the message between application program in a kind of android system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510405871.6A CN104994481B (en) 2015-07-10 2015-07-10 The receiving/transmission method and system to broadcast the message between application program in a kind of android system

Publications (2)

Publication Number Publication Date
CN104994481A CN104994481A (en) 2015-10-21
CN104994481B true CN104994481B (en) 2018-09-28

Family

ID=54306216

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510405871.6A Active CN104994481B (en) 2015-07-10 2015-07-10 The receiving/transmission method and system to broadcast the message between application program in a kind of android system

Country Status (1)

Country Link
CN (1) CN104994481B (en)

Families Citing this family (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105335243A (en) * 2015-11-30 2016-02-17 上海斐讯数据通信技术有限公司 Broadcast message operation method and system in Android system
CN106850238B (en) * 2015-12-03 2019-11-19 大唐移动通信设备有限公司 A kind of broadcasting method and device
CN105516487B (en) * 2015-12-04 2019-07-16 上海斐讯数据通信技术有限公司 Broadcast receiving method, system and equipment
CN107277780B (en) 2016-04-07 2020-11-20 中兴通讯股份有限公司 Broadcast message sending method and device and mobile terminal
CN106201740A (en) * 2016-06-29 2016-12-07 北京金山安全软件有限公司 Broadcast message management method, device and equipment
CN107800546B (en) 2016-08-31 2021-03-30 华为技术有限公司 Management method and device for broadcast messages
CN108011860B (en) * 2016-10-28 2020-05-08 华为技术有限公司 Method, device and terminal for processing broadcast message
CN106533703A (en) * 2016-12-08 2017-03-22 武汉斗鱼网络科技有限公司 Method and system for remotely controlling startup of application program
CN106777332B (en) * 2017-01-12 2020-03-20 山东大学 System and method for finding folder where file is located through file identification in Android terminal
CN106936826B (en) 2017-03-10 2020-01-14 Oppo广东移动通信有限公司 Registration method and device of broadcast receiver and terminal equipment
CN107070670B (en) * 2017-03-10 2020-01-14 Oppo广东移动通信有限公司 Method, device and terminal equipment for controlling broadcast sender to send broadcast message
CN106851014B (en) * 2017-03-10 2020-06-30 Oppo广东移动通信有限公司 Method, device and terminal for adjusting broadcast message queue
CN106936825B (en) 2017-03-10 2021-07-27 Oppo广东移动通信有限公司 Method and device for controlling broadcast transmission and mobile terminal
CN106878957B (en) 2017-03-10 2019-05-14 Oppo广东移动通信有限公司 Broadcast queue's generation method, device and terminal device
CN106686557B (en) 2017-03-10 2019-05-03 Oppo广东移动通信有限公司 Broadcast processing method, device and terminal device
CN106953852B (en) * 2017-03-10 2019-12-31 Oppo广东移动通信有限公司 Registration method and device of broadcast receiver and terminal equipment
US11140208B2 (en) * 2017-05-17 2021-10-05 Huawei Technologies Co., Ltd. Scheduling method and terminal
CN108491327B (en) * 2018-03-26 2020-08-25 中南大学 Android application dynamic Receiver component local denial of service vulnerability detection method
CN110096380B (en) * 2019-05-08 2020-07-07 苏州浪潮智能科技有限公司 Android internal communication method, system, device and storage medium
CN110084036A (en) * 2019-05-13 2019-08-02 深圳市趣创科技有限公司 Prevent the method and device of application program self-starting
CN110209513B (en) * 2019-06-06 2021-06-22 北京金山安全软件有限公司 Broadcast registration method, device, equipment and medium of application program
CN113141515B (en) * 2020-01-20 2023-03-10 阿里巴巴集团控股有限公司 Camera resource distribution method, operating system, terminal and broadcasting device
CN113626312B (en) * 2021-07-15 2022-12-06 北京荣耀终端有限公司 Test method, electronic device and storage medium
CN113795000B (en) * 2021-09-08 2023-01-10 号百信息服务有限公司 Method and system for distinguishing authorization takeover by short message application

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103491263A (en) * 2013-09-30 2014-01-01 北京恒通安信科技有限公司 Method and system for achieving incoming call filtering
CN103595547A (en) * 2013-11-15 2014-02-19 北京奇虎科技有限公司 Broadcast intercept method and device of intelligent equipment
CN104462952A (en) * 2014-12-31 2015-03-25 北京奇虎科技有限公司 Method and device for preventing self-starting of application
CN104462980A (en) * 2014-12-30 2015-03-25 北京奇虎科技有限公司 Authority management method, device and system of application programs and mobile terminal
CN104462978A (en) * 2014-12-24 2015-03-25 北京奇虎科技有限公司 Method and device for application program authority management

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100725397B1 (en) * 2005-07-22 2007-06-07 삼성전자주식회사 Broadcasting receiving device and method for performing data broadcasting application using the broadcasting receiving device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103491263A (en) * 2013-09-30 2014-01-01 北京恒通安信科技有限公司 Method and system for achieving incoming call filtering
CN103595547A (en) * 2013-11-15 2014-02-19 北京奇虎科技有限公司 Broadcast intercept method and device of intelligent equipment
CN104462978A (en) * 2014-12-24 2015-03-25 北京奇虎科技有限公司 Method and device for application program authority management
CN104462980A (en) * 2014-12-30 2015-03-25 北京奇虎科技有限公司 Authority management method, device and system of application programs and mobile terminal
CN104462952A (en) * 2014-12-31 2015-03-25 北京奇虎科技有限公司 Method and device for preventing self-starting of application

Also Published As

Publication number Publication date
CN104994481A (en) 2015-10-21

Similar Documents

Publication Publication Date Title
CN104994481B (en) The receiving/transmission method and system to broadcast the message between application program in a kind of android system
AU2021258074B2 (en) Methods and apparatus for hypersecure last mile communication
US20210014939A1 (en) Methods And Apparatus For HyperSecure Last Mile Communication
CN105743650B (en) Mobile office identity identifying method, platform and system and mobile terminal
Kent Encryption-based protection protocols for interactive user-computer communication
CN115460606B (en) Method and device for enhancing security of control plane based on 5G core network
CN102904900A (en) Method for authenticating user status for registering and/or logging in network application
CN108985037A (en) A kind of auth method, registration terminal and system
CN103200059A (en) Secure network access processing method and device
CN101977379A (en) Authentication method and device of mobile terminal
CN106296899B (en) A kind of user account and the unbinding method of smart lock
KR100842868B1 (en) Spam short message blocking system using call back short message and spam short message blocking method using the same
CN105323735A (en) Short message display method, short message display system, intelligent short message platform and short message assistant client side
CN104052754B (en) The auth method and system of a kind of third-party application
CN109327475B (en) Multi-layer identity authentication method, device, equipment and storage medium
CN101986646A (en) XML (extensible markup language)-based broadband SIP (session initiation protocol) service trigger/configuration method and service trigger
CN103607324B (en) Data processing method for Java message service, Java message client and server
CN106302329A (en) Teleconference identity identifying method and device
CN110418343A (en) Paging method, the network equipment and terminal
CN104184710A (en) Random code providing method, user identity authentication method and related devices
EP1703477A1 (en) Mobile terminal and authentication method
CN107113308A (en) Method for authenticating and access device
CN102148720B (en) Method and system for detecting distributed denial of service (DDoS) vulnerability of internet protocol (IP) multimedia subsystem
CN115086420B (en) Cross-domain request method, system and computer equipment thereof
CN109040042B (en) LTE private network terminal account password resetting method and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20201125

Address after: Room 10242, No. 260, Jiangshu Road, Xixing street, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: Hangzhou Jiji Intellectual Property Operation Co.,Ltd.

Address before: 201616 Shanghai city Songjiang District Sixian Road No. 3666

Patentee before: Phicomm (Shanghai) Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20201216

Address after: 233000 3rd floor, Dong'an Market, Fengyang West Road, Longzihu District, Bengbu City, Anhui Province

Patentee after: Bengbu 309 Technology Consulting Co.,Ltd.

Address before: Room 10242, No. 260, Jiangshu Road, Xixing street, Binjiang District, Hangzhou City, Zhejiang Province

Patentee before: Hangzhou Jiji Intellectual Property Operation Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20210201

Address after: 313001 room 1019, Xintiandi office building, Yishan street, Wuxing District, Huzhou, Zhejiang, China

Patentee after: Huzhou YingLie Intellectual Property Operation Co.,Ltd.

Address before: 233000 3rd floor, Dong'an Market, Fengyang West Road, Longzihu District, Bengbu City, Anhui Province

Patentee before: Bengbu 309 Technology Consulting Co.,Ltd.

PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A method and system for sending and receiving broadcast messages between applications in Android system

Effective date of registration: 20230111

Granted publication date: 20180928

Pledgee: Huzhou Wuxing Rural Commercial Bank Co.,Ltd. high tech Zone Green sub branch

Pledgor: Huzhou YingLie Intellectual Property Operation Co.,Ltd.

Registration number: Y2023330000072

PC01 Cancellation of the registration of the contract for pledge of patent right
PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20231205

Granted publication date: 20180928

Pledgee: Huzhou Wuxing Rural Commercial Bank Co.,Ltd. high tech Zone Green sub branch

Pledgor: Huzhou YingLie Intellectual Property Operation Co.,Ltd.

Registration number: Y2023330000072