CN104994481A - Method and system for transceiving broadcast messages between application programs in Android system - Google Patents

Method and system for transceiving broadcast messages between application programs in Android system Download PDF

Info

Publication number
CN104994481A
CN104994481A CN201510405871.6A CN201510405871A CN104994481A CN 104994481 A CN104994481 A CN 104994481A CN 201510405871 A CN201510405871 A CN 201510405871A CN 104994481 A CN104994481 A CN 104994481A
Authority
CN
China
Prior art keywords
broadcast
reception side
bag
bag name
radio receiver
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510405871.6A
Other languages
Chinese (zh)
Other versions
CN104994481B (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 a method and a system for transceiving broadcast messages between application programs in an Android system. When registering a broadcast receiver, a broadcast acceptor sets a first packet name list composed of broadcast sender packet names which are allowed to be received, when the broadcast sender packet names are successfully matched with the first packet name list, the broadcast acceptor receives broadcast messages through the broadcast receiver, and the broadcast sender is appointed to avoid of receiving counterfeit broadcast messages to interfere the operation of the application programs; when the broadcast sender sends the broadcast messages, the sending information contains a second packet name list composed of broadcast acceptor packet names which are allowed to receive the broadcast messages, when the broadcast acceptor packet names are successfully matched with the second packet name list, the broadcast acceptor receives the broadcast messages through the broadcast receiver, and a plurality of broadcast receivers are appointed to avoid unknown application programs of a third party of stealing the broadcast messages.

Description

The receiving/transmission method of broadcast and system between application program in a kind of android system
Technical field
The present invention relates to the broadcast security mechanism in a kind of android system, particularly relate to receiving/transmission method and the system of broadcast between application program in a kind of android system.
Background technology
In android system, broadcast is a kind of mechanism being widely used in transmission information between application program, and the broadcast in Android is used for monitoring system event or application event.
The broadcast of android system belongs to open nature, and any application program can receive broadcast by realizing radio receiver, and the interface that any application program can be provided by system sends broadcast.Cankered third party application can be caused like this to listen to the broadcast of normal application, send the operation of the broadcast interference normal application of personation simultaneously, had a strong impact on the fail safe of android system.Android system provides multiple method to avoid above-mentioned situation, but it is obviously perfect not, such as allow broadcast transmission side to specify the application program of specific radio receiver, permission broadcast intended receiver, only allow broadcast in broadcast transmission side's application program internal delivery, but these can not ensure the fail safe of broadcast.Third party application still can send the operation of the broadcast interference normal application of personation, the transmit leg of broadcast cannot specify multiple application program to receive broadcast simultaneously, causes the broadcast between multiple utility program cannot safe transmission and reception.Such as same company develops multiple application program, needs to transmit broadcast between this multiple application program, but does not allow other Unknown Applications to receive this broadcast, and existing android system cannot complete this function.
Summary of the invention
Object of the present invention, just be to provide receiving/transmission method and the system of broadcast between application program in a kind of android system, when sending broadcast, multiple application program allowing to receive can be specified, avoid third party's Unknown Applications to steal broadcast, receive broadcast time, can designated broadcast message send application program, to avoid the broadcast receiving personation, interfere with the operation of application.
The invention provides the receiving/transmission method of broadcast between application program in a kind of android system,
Concrete steps are:
S1 broadcast reception side, to campaign management services registration radio receiver, includes broadcast reception side's bag name in log-on message;
S2 broadcast transmission side, sends the broadcast comprising broadcast transmission side's bag name;
S3 campaign management services, by broadcast transmission side's bag name and/or broadcast reception side's bag name verification mode, determines whether radio receiver receives broadcast;
If be verified, enter step S4, if authentication failed, radio receiver does not receive broadcast;
S4 broadcast reception side receives broadcast by described radio receiver.
In present android system, broadcast sends and broadcast message reception, as long as the Action that specifies of broadcast transmission side is consistent with the Action in broadcast reception side's registration message just can carry out broadcast message reception.There is broadcast and stolen or receive the broadcast of personation by other application program and interfere with the situation of the operation of broadcast reception side in this mode.
The bag name of application program has uniqueness in android system aspect, can be used for identification application, in this programme, by increasing the verification mode of application package name, reaching message more accurately and sending and message sink.
Preferably,
In S1 step, during broadcast reception side's registration radio receiver, the first bag list of file names of the broadcast transmission side's bag name formation allowing to receive is set;
In S3 step, campaign management services is by the first bag list of file names coupling described in broadcast transmission side Bao Mingyu, if the match is successful, enter step S4, if it fails to match, broadcast reception side does not receive broadcast.
Cross this mode, the broadcast receiving personation can be avoided, interfere with the operation of application.
Preferably,
In S2 step, when broadcast transmission side sends broadcast, send packets of information containing the second bag list of file names allowing the broadcast reception side's bag name receiving broadcast to form;
Also step is comprised after S2 step:
S31, campaign management services, by the second bag list of file names coupling described in broadcast reception side Bao Mingyu, enter step S4 if the match is successful, if it fails to match, broadcast reception side does not receive broadcast.
By above verification mode, when sending broadcast, multiple application program allowing to receive can be specified, avoid third party's Unknown Applications to steal broadcast.
Preferably, registering radio receiver is dynamic registration and/or static registration.
Preferably, when described broadcast reception side starts, campaign management services resolves the file of described static registration, extracts and preserve the relevant information of radio receiver, and when described broadcast reception side closes, campaign management services deletes the relevant information of radio receiver.
The present invention also provides the receive-transmit system of broadcast between application program in a kind of android system, it is characterized in that, comprises broadcast transmission side, broadcast reception side, the campaign management services of system,
Broadcast transmission side comprises:
Send calling module, the broadcast provided for calling campaign management services sends function, and is organized in parameter by broadcast specifying information;
Broadcast reception side comprises:
Registering modules, to campaign management services registration radio receiver, includes broadcast reception side's bag name in log-on message;
Receiver module, for receiving broadcast by radio receiver, campaign management services comprises:
Broadcast sending module, calls broadcast transmission function for accepting broadcast transmission side, and sends broadcast;
Accept Registering modules, for accepting the information that broadcast reception side registers;
Log-on message parsing module, for resolving registered information;
Bag name authentication module, for verifying broadcast transmission side's bag name and/or broadcast reception side's bag name, if bag name is verified, broadcast processing module process broadcast, if authentication failed, receiver module does not receive broadcast;
Broadcast processing module, for the treatment of broadcast, when broadcast transmission side sends after broadcast, broadcast, according to the result of system verification rule and bag name authentication module, is sent to concrete radio receiver by broadcast processing module.
Preferably,
In broadcast Registering modules, also comprise:
First bag name adds submodule, allowing to receive broadcast transmission side's bag name, forming the first bag list of file names for adding;
Bag name authentication module also comprises:
First checking submodule, for mating the first bag list of file names described in broadcast transmission side Bao Mingyu.
Preferably,
Message sends calling module and also comprises:
Second bag name adds submodule, allowing to receive broadcast transmission side's bag name, forming the second bag list of file names for adding;
Bag name authentication module also comprises:
Second checking submodule, for mating the second bag list of file names described in broadcast reception side Bao Mingyu.
Preferably,
Broadcast Registering modules comprises static registration submodule and dynamic registration submodule.
Preferably,
Log-on message parsing module, for, when described broadcast reception side starts, resolve the file of described static registration, extract and preserve the relevant information of radio receiver, when described broadcast reception side closes, delete the relevant information of radio receiver.
During broadcast reception side's registration radio receiver, the the first bag list of file names allowing to receive broadcast transmission side's bag name formation is set, broadcast transmission side Bao Mingyu first bag list of file names is when the match is successful, broadcast reception side receives broadcast by described radio receiver, by designated broadcast transmit leg, to avoid the broadcast receiving personation, interfere with the operation of application; When broadcast transmission side sends broadcast, send packets of information containing the second bag list of file names allowing the broadcast reception side's bag name receiving broadcast to form, second bag list of file names described in broadcast reception side Bao Mingyu is when the match is successful, broadcast reception side receives broadcast by described radio receiver, by specifying multiple broadcast reception side, third party's Unknown Applications is avoided to steal broadcast.
Accompanying drawing explanation
Fig. 1 is the receiving/transmission method first embodiment schematic flow sheet of broadcast between application program in a kind of android system of the present invention;
Fig. 2 is the receive-transmit system first example structure schematic diagram of broadcast between application program in a kind of android system of the present invention;
Fig. 3 is the receiving/transmission method second embodiment schematic flow sheet of broadcast between application program in a kind of android system of the present invention;
Fig. 4 is the receive-transmit system second example structure schematic diagram of broadcast between application program in a kind of android system of the present invention;
Fig. 5 is receiving/transmission method the 3rd embodiment schematic flow sheet of broadcast between application program in a kind of android system of the present invention;
Fig. 6 is receive-transmit system the 3rd example structure schematic diagram of broadcast between application program in a kind of android system of the present invention.
Embodiment
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Embodiment one:
The present embodiment provides the receiving/transmission method of broadcast between application program in a kind of android system.
In android system, broadcast is a kind of mechanism of transmission information among applications of extensive utilization.Sent by broadcast and receive, can transmission of information mutually between application program, for convenience of description, we are transmitted as example with primary information and are introduced, in this time message transmitting procedure, the application program sending broadcast message is called broadcast transmission side by us, and the application program of receiving broadcasting information is called broadcast reception side.
In present android system, broadcast sends and broadcast message reception, as long as the Action that specifies of broadcast transmission side is consistent with the Action in broadcast reception side's registration message just can carry out message sink.There is broadcast and stolen or receive the broadcast of personation by other application program and interfere with the situation of the operation of broadcast reception side in this mode.
The bag name of application program has uniqueness in android system aspect, can be used for identification application, in this programme, by increasing the verification mode of application package name, reaching message more accurately and sending and message sink.
As shown in Figure 1, concrete steps are:
S1 broadcast reception side, to campaign management services registration radio receiver, includes broadcast reception side's bag name in log-on message;
Radio receiver assembly is for receiving the message with responding system broadcast.Broadcast mechanism, from essence, it is a kind of message subscribing/issue mechanism, therefore, the first step using this message-driven model is subscribe message, and concerning Android application program, subscribe message is exactly register radio receiver in fact, after system sends broadcast, system is according to registration scenarios, obtain corresponding radio receiver, then call the process function of radio receiver at application respectively, complete the process of broadcast.
The method of registration radio receiver has two kinds, and one is static registration, and one is dynamic registration.In the broadcast mechanism of Android, the priority of dynamic registration is higher than static registration priority.
S2 broadcast transmission side, sends the broadcast comprising broadcast transmission side's bag name;
In android system, the campaign management services (at industry common name ActivityManagerService) running on system process manages the registration of broadcast, transmission and dispatch deal, externally mainly provide dynamic registration broadcast (RegisterReceiver) and send broadcast (BroadcastIntent) two interface functions, application process calls by Binder interface striding course the correlation function that these two interface functions complete broadcast.
Broadcast transmission side sends message by the transmission broadcast function of calling system ActivityManagerService;
S3 campaign management services (ActivityManagerService), by broadcast transmission side's bag name and/or broadcast reception side's bag name verification mode, determines whether radio receiver receives broadcast;
If be verified, enter step S4, if authentication failed, radio receiver does not receive broadcast;
After sending broadcast, campaign management services ActivityManagerService obtains corresponding radio receiver from register list, and broadcast transmission side's bag name and/or broadcast reception side's bag name are verified, be proved to be successful then radio receiver and receive broadcast.
S4 broadcast reception side receives broadcast by described radio receiver.
As shown in Figure 2, the present invention also provides the receive-transmit system of broadcast between application program in a kind of android system, comprises broadcast transmission side, broadcast reception side, the campaign management services of system,
Wherein, broadcast transmission side comprises:
Send calling module, the broadcast provided for calling campaign management services sends function, and is organized in parameter by broadcast specifying information;
Broadcast reception side comprises:
Registering modules, to campaign management services registration radio receiver, comprises broadcast reception side's bag name in log-on message;
Receiver module, for receiving broadcast by radio receiver,
Campaign management services comprises:
Broadcast sending module, calls broadcast transmission function for accepting broadcast transmission side, and sends broadcast;
Accept Registering modules, for accepting the information that broadcast reception side registers;
Log-on message parsing module, for resolving registered information;
Bag name authentication module, for verifying broadcast transmission side's bag name and/or broadcast reception side's bag name, if bag name is verified, broadcast processing module process broadcast, if authentication failed, receiver module does not receive broadcast;
Broadcast processing module, for the treatment of broadcast, when broadcast transmission side sends after broadcast, broadcast, according to the result of system verification rule and bag name authentication module, is sent to concrete radio receiver by broadcast processing module.
Broadcast transmission side, by sending calling module, the broadcast that calling campaign management services provides sends function, and broadcast specifying information is organized in parameter, campaign management services accepts broadcast transmission side by acceptance transmission mode transfer block and calls broadcast transmission function, and sends broadcast;
Broadcast reception side, radio receiver is registered to campaign management services by Registering modules, include broadcast reception side's bag name in log-on message, the information that campaign management services accepts to register broadcast reception side by accepting Registering modules, and by log-on message parsing module, log-on message is resolved;
Campaign management services, by bag name authentication module, broadcast transmission side's bag name and/or broadcast reception side's bag name are verified, system convention checking (i.e. Action verify) by and bag name be verified, broadcast processing module, broadcast is sent to concrete radio receiver, if system verification failure, broadcast message reception module can not receive broadcast.
Embodiment two:
Bag name is verified, can be divided into the checking of broadcast transmission side's bag name with to the checking of broadcast reception side's bag name, the present embodiment describes the specific embodiments to the checking of broadcast transmission side's bag name, and basic implementation step is identical with embodiment one, be not described in detail, difference is:
As shown in Figure 3, to the checking of broadcast transmission side's bag name, concrete steps are:
In S1 step, during broadcast reception side's registration radio receiver, in log-on message, include broadcast reception side's bag name, the first bag list of file names of the broadcast transmission side's bag name formation allowing to receive also is set;
Broadcast filter (IntentFilter) is responsible for filtering out the broadcast message Intent that assembly cannot respond and process, and is only received to come in process by the broadcast message Intent oneself be concerned about.Only accept in order to ensure radio receiver the broadcast that designated broadcast transmit leg sends, need in broadcast filter (IntentFilter), increase broadcast transmission side bag concrete number group membership definition: JAVA code is as follows:
private ArrayList<String>mAllowPackages;
The application program at // restriction place, broadcast transmission side
Increase the interface function adding broadcast transmission side's bag name simultaneously:
JAVA code is as follows:
Broadcast reception side's registration radio receiver is divided into dynamic registration and static registration, introduces dynamic registration and static registration implementation below respectively.
Dynamic registration realizes:
The dynamic registration of broadcast is that the RegisterReceiver function calling ActivityManagerService has come, subsidiary radio receiver entity (BroadcastReceiver) and broadcast filter (IntentFilter).Like this when calling the RegisterReceiver function of ActivityManagerService, when building IntentFilter parameter, the addAllowPackage function of IntentFilter can be called to arrange the bag name of specified application, thus limit the application program sending broadcast.
Static registration realizes:
The static registration of radio receiver completes in the AndroidManifest.xml of application program, and need the Package title increasing defining application equally, example is as follows:
The bag " com.android.package1 " by name at application program place, define a BroadcastReceiver to be used for receiving broadcast Action for " android.intent.action.TEST_STATE ", limit the bag " com.android.package2 " by name and " com.android.package3 " that send this broadcast place application program, that is the broadcast " android.intent.action.TEST_STATE " that these two Package send is only had, could allow to receive, the broadcast that other all Package send all can be filtered.
Due to " package " member belongs to and newly increases, need to increase for " package " and parsing.The member definition of AndroidManifest.xml, in attrs_manifest.xml, needs to add wherein " package " member definition:
Like this, when resolving XML, can match " package " member, concrete XML resolves in the parseIntent function in PackageParser.java, parseIntent function is used for resolving the member defined in InentFilter specially, need in while circulation to add in this function for " package " process of member, specific as follows:
By resolving and mating " package " member, obtain the Package title for the restriction of IntentFilter in XML file, then call the addAllowPackage function newly increased in IntentFilter and arrange restriction transmission broadcast transmission side bag name, relevant information has just been kept in IntentFilter entity.
Only when application program is opened, just can go to resolve AndroidManifest.xml file, and preserve the information of wherein radio receiver (BroadcastReceiver) and broadcast filter (IntentFilter), when there being broadcast to send, need to carry out broadcast coupling from these data, when closing application program, delete the relevant information of broadcast.
In S3 step, campaign management services is by the first bag list of file names coupling described in broadcast transmission side Bao Mingyu, if the match is successful, enter step S4, if it fails to match, broadcast reception side does not receive broadcast.
Broadcast reception side is when registering radio receiver, be provided with the first bag list of file names that receivable broadcast transmission side bag name is formed, broadcast transmission side is that ActivityManagerService sends Message function transmission message by calling, system ActivityManagerService obtains corresponding radio receiver from register list, coupling broadcast transmission side's bag name and the bag name first bag list of file names of registration set by radio receiver, after the match is successful, radio receiver could be allowed to receive corresponding broadcast.In this way, the broadcast receiving personation can be avoided, interfere with the operation of application.
As shown in Figure 4, the receive-transmit system of broadcast between application program in a kind of android system that the present embodiment provides, substantially identical with embodiment one, difference is,
In broadcast Registering modules, also comprise:
First bag name adds submodule, allowing to receive broadcast transmission side's bag name, forming the first bag list of file names for adding;
Bag name authentication module also comprises:
First checking submodule, for mating the first bag list of file names described in broadcast transmission side Bao Mingyu.
Broadcast reception side is when registering radio receiver, submodule is added by the first bag name, add and allow to receive broadcast transmission side's bag name, form the first bag list of file names, campaign management services accepts log-on message by accepting Registering modules, and resolve log-on message by log-on message parsing module, therefore campaign management services obtains the first bag list of file names of registered radio receiver and additional permission reception broadcast transmission side bag name formation.
The broadcast sending module of campaign management services, by sending calling module, calls in broadcast transmission side, and when sending broadcast, transmission information comprises transmit leg bag name.
The first checking submodule in the bag name authentication module of campaign management services, for verifying broadcast transmission side Bao Mingyu first bag list of file names, there is transmit leg bag name situation in the first bag list of file names under, just filling radio receiver perhaps and receiving broadcast.
By this verification mode, the broadcast receiving personation can be avoided, interfere with the operation of application.
Embodiment three
The present embodiment describes the specific embodiments to the checking of broadcast reception side's bag name.Basic implementation step is identical with embodiment one, is not described in detail, and difference is:
As shown in Figure 5, in S2 step, when broadcast transmission side sends broadcast, send packets of information containing the second bag list of file names allowing the broadcast reception side's bag name receiving broadcast to form;
Also step is comprised after S2 step:
S31, campaign management services, by the second bag list of file names coupling described in broadcast reception side Bao Mingyu, enter step S4 if the match is successful, if it fails to match, broadcast reception side does not receive broadcast.
When sending broadcast, the BroadcastIntent function of ActivityManagerService is adjusted to process by Binder remote interface, concrete broadcast is encapsulated in Intent data structure, during in order to send broadcast, designated broadcast recipient wraps name, needs to add data member in Intent:
JAVA code is as follows:
private HashSet<String>mAllowPackages;
Need to add process function simultaneously:
JAVA code is as follows:
When sending broadcast and building Intent data structure, addAllowPackage function can be called add the Package title allowing to receive this broadcast application program.
By above verification mode, when sending broadcast, multiple application program allowing to receive can be specified, avoid third party's Unknown Applications to steal broadcast.
As shown in Figure 6, the receive-transmit system of broadcast between application program in a kind of android system that the present embodiment provides, substantially identical with embodiment one, difference is,
Message sends calling module and also comprises:
Second bag name adds submodule, and allow to receive broadcast transmission side's bag name for adding, form the second bag list of file names, the second bag list of file names is organized in parameter.
Bag name authentication module also comprises:
Second checking submodule, for mating the second bag list of file names described in broadcast reception side Bao Mingyu.
Broadcast transmission side, by sending calling module, when calling the broadcast sending module transmission broadcast of campaign management services, adds submodule by the second bag name, adds the broadcast reception side's bag name allowing to receive broadcast, form the second bag list of file names.
Campaign management services accepts log-on message by accepting Registering modules, and resolves log-on message by log-on message parsing module, and therefore campaign management services obtains broadcast reception side's bag name.
The second checking submodule in the bag name authentication module of campaign management services, for verifying broadcast transmission recipient Bao Mingyu second bag list of file names, existing under recipient wraps a situation, just filling radio receiver reception broadcast perhaps in the second bag list of file names.
Embodiment four
The verification mode to transmit leg bag name is described in above embodiment two, the verification mode of recipient being wrapped to name is described in embodiment three, in the present embodiment, comprise above two kinds of verification modes, concrete checking and embodiment two, embodiment three are identical, be not described in detail, only have two kinds of verification modes all to pass through, just fill the radio receiver perhaps registered and receive broadcast.
Above the broadcast avoiding receiving personation is solved to transmit leg bag name verification mode, interfere with the problem of the operation of application, a verification mode is wrapped to recipient and can specify multiple application program allowing to receive, avoid third party's Unknown Applications to steal broadcast.
Two kinds of verification modes are combined, above two kinds of functions can be completed simultaneously, realize accurate transmission and the reception of message.
The above is only the preferred embodiment of the present invention; it should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (10)

1. the receiving/transmission method of broadcast between application program in android system, is characterized in that,
Concrete steps are:
S1 broadcast reception side, to campaign management services registration radio receiver, includes broadcast reception side's bag name in log-on message;
S2 broadcast transmission side, sends the broadcast comprising broadcast transmission side's bag name;
S3 campaign management services, by broadcast transmission side's bag name and/or broadcast reception side's bag name verification mode, determines whether radio receiver receives broadcast;
If be verified, enter step S4, if authentication failed, radio receiver does not receive broadcast;
S4 broadcast reception side receives broadcast by described radio receiver.
2. the receiving/transmission method of broadcast between application program in android system according to claim 1, is characterized in that,
In S1 step, during broadcast reception side's registration radio receiver, the first bag list of file names of the broadcast transmission side's bag name formation allowing to receive is set;
In S3 step, campaign management services is by the first bag list of file names coupling described in broadcast transmission side Bao Mingyu, if the match is successful, enter step S4, if it fails to match, broadcast reception side does not receive broadcast.
3. in the android system according to claim 1 or 2 any one claim, the receiving/transmission method of broadcast between application program, is characterized in that,
In S2 step, when broadcast transmission side sends broadcast, send packets of information containing the second bag list of file names allowing the broadcast reception side's bag name receiving broadcast to form;
Also step is comprised after S2 step:
S31, campaign management services, by the second bag list of file names coupling described in broadcast reception side Bao Mingyu, enter step S4 if the match is successful, if it fails to match, broadcast reception side does not receive broadcast.
4. the receiving/transmission method of broadcast between application program in android system according to claim 1, it is characterized in that, registration radio receiver is dynamic registration and/or static registration.
5. the receiving/transmission method of broadcast between application program in android system according to claim 4, it is characterized in that, when described broadcast reception side starts, campaign management services resolves the file of described static registration, extract and preserve the relevant information of radio receiver, when described broadcast reception side closes, campaign management services deletes the relevant information of radio receiver.
6. the receive-transmit system of broadcast between application program in android system, is characterized in that, comprise broadcast transmission side, broadcast reception side, the campaign management services of system,
Broadcast transmission side comprises:
Send calling module, the broadcast provided for calling campaign management services sends function, and is organized in parameter by broadcast specifying information;
Broadcast reception side comprises:
Registering modules, to campaign management services registration radio receiver, includes broadcast reception side's bag name in log-on message;
Receiver module, for receiving broadcast by radio receiver,
Campaign management services comprises:
Broadcast sending module, calls broadcast transmission function for accepting broadcast transmission side, and sends broadcast;
Accept Registering modules, for accepting the information that broadcast reception side registers;
Log-on message parsing module, for resolving registered information;
Bag name authentication module, for verifying broadcast transmission side's bag name and/or broadcast reception side's bag name, if bag name is verified, broadcast processing module process broadcast, if authentication failed, receiver module does not receive broadcast;
Broadcast processing module, for the treatment of broadcast, when broadcast transmission side sends after broadcast, broadcast, according to the result of system verification rule and bag name authentication module, is sent to concrete radio receiver by broadcast processing module.
7. the receive-transmit system of broadcast between application program in android system according to claim 6, is characterized in that,
In broadcast Registering modules, also comprise:
First bag name adds submodule, allowing to receive broadcast transmission side's bag name, forming the first bag list of file names for adding;
Bag name authentication module also comprises:
First checking submodule, for mating the first bag list of file names described in broadcast transmission side Bao Mingyu.
8., according to the receive-transmit system of broadcast between application program in the android system in claim 6 or 7 described in any one claim, it is characterized in that,
Message sends calling module and also comprises:
Second bag name adds submodule, allowing to receive broadcast transmission side's bag name, forming the second bag list of file names for adding;
Bag name authentication module also comprises:
Second checking submodule, for mating the second bag list of file names described in broadcast reception side Bao Mingyu.
9. the receive-transmit system of broadcast between application program in android system according to claim 6, it is characterized in that, broadcast Registering modules comprises static registration submodule and dynamic registration submodule.
10. the receive-transmit system of broadcast between application program in android system according to claim 9, it is characterized in that, log-on message parsing module, for, when described broadcast reception side starts, resolve the file of described static registration, extract and preserve the relevant information of radio receiver, when described broadcast reception side closes, delete the relevant information of radio receiver.
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 true CN104994481A (en) 2015-10-21
CN104994481B 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)

Cited By (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
CN105516487A (en) * 2015-12-04 2016-04-20 上海斐讯数据通信技术有限公司 Broadcast receiving method, system and equipment
CN106201740A (en) * 2016-06-29 2016-12-07 北京金山安全软件有限公司 Broadcast message management method, device and equipment
CN106533703A (en) * 2016-12-08 2017-03-22 武汉斗鱼网络科技有限公司 Method and system for remotely controlling startup of application program
CN106777332A (en) * 2017-01-12 2017-05-31 山东大学 The system and method for file where file is found in a kind of Android terminal by file identification
CN106850238A (en) * 2015-12-03 2017-06-13 大唐移动通信设备有限公司 A kind of broadcasting method and device
CN106936826A (en) * 2017-03-10 2017-07-07 广东欧珀移动通信有限公司 The register method of radio receiver, device and terminal device
CN106953852A (en) * 2017-03-10 2017-07-14 广东欧珀移动通信有限公司 Register method, device and the terminal device of radio receiver
CN107070670A (en) * 2017-03-10 2017-08-18 广东欧珀移动通信有限公司 Broadcast transmission person is controlled to send method, device and the terminal device of broadcast message
WO2017173728A1 (en) * 2016-04-07 2017-10-12 中兴通讯股份有限公司 Broadcast message sending method and apparatus, and mobile terminal
CN108011860A (en) * 2016-10-28 2018-05-08 华为技术有限公司 A kind of method and device for handling broadcast message
CN108491327A (en) * 2018-03-26 2018-09-04 中南大学 A kind of Android application dynamic Receiver components local refusal service leak detection method
WO2018161580A1 (en) * 2017-03-10 2018-09-13 广东欧珀移动通信有限公司 Broadcast control method and apparatus, storage medium, and electronic device
CN110084036A (en) * 2019-05-13 2019-08-02 深圳市趣创科技有限公司 Prevent the method and device of application program self-starting
CN110096380A (en) * 2019-05-08 2019-08-06 苏州浪潮智能科技有限公司 Android corresponding internal communication method, system, device and storage medium
CN110209513A (en) * 2019-06-06 2019-09-06 北京金山安全软件有限公司 Broadcast registration method, device, equipment and medium of application program
US10819455B2 (en) 2017-03-10 2020-10-27 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Broadcast processing method, non-transitory storage medium, and electronic device
US10862819B2 (en) 2016-08-31 2020-12-08 Huawei Technologies Co., Ltd. Broadcast message management method and apparatus
US10990460B2 (en) 2017-03-10 2021-04-27 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method of generating broadcast queue, storage medium, and terminal
CN113141515A (en) * 2020-01-20 2021-07-20 阿里巴巴集团控股有限公司 Camera resource distribution method, operating system, terminal and broadcasting device
US11140208B2 (en) * 2017-05-17 2021-10-05 Huawei Technologies Co., Ltd. Scheduling method and terminal
US11157334B2 (en) 2017-03-10 2021-10-26 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Control method and apparatus for broadcast sending, storage medium, and electronic device
CN113626312A (en) * 2021-07-15 2021-11-09 荣耀终端有限公司 Test method, electronic device and storage medium
CN113795000A (en) * 2021-09-08 2021-12-14 号百信息服务有限公司 Method and system for distinguishing authorization takeover by short message application

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070022434A1 (en) * 2005-07-22 2007-01-25 Samsung Electronics Co., Ltd. Broadcasting signal receiving device and method for executing data broadcasting application of the same
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
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

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070022434A1 (en) * 2005-07-22 2007-01-25 Samsung Electronics Co., Ltd. Broadcasting signal receiving device and method for executing data broadcasting application of the same
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

Cited By (39)

* 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
CN106850238A (en) * 2015-12-03 2017-06-13 大唐移动通信设备有限公司 A kind of broadcasting method and device
CN106850238B (en) * 2015-12-03 2019-11-19 大唐移动通信设备有限公司 A kind of broadcasting method and device
CN105516487A (en) * 2015-12-04 2016-04-20 上海斐讯数据通信技术有限公司 Broadcast receiving method, system and equipment
CN105516487B (en) * 2015-12-04 2019-07-16 上海斐讯数据通信技术有限公司 Broadcast receiving method, system and equipment
WO2017173728A1 (en) * 2016-04-07 2017-10-12 中兴通讯股份有限公司 Broadcast message sending method and apparatus, and mobile terminal
US10740161B2 (en) 2016-04-07 2020-08-11 Zte Corporation Broadcast message sending method and apparatus, and mobile terminal
CN106201740A (en) * 2016-06-29 2016-12-07 北京金山安全软件有限公司 Broadcast message management method, device and equipment
US10862819B2 (en) 2016-08-31 2020-12-08 Huawei Technologies Co., Ltd. Broadcast message management method and apparatus
US11283724B2 (en) 2016-08-31 2022-03-22 Huawei Technologies Co., Ltd. Broadcast message management method and apparatus
CN108011860A (en) * 2016-10-28 2018-05-08 华为技术有限公司 A kind of method and device for handling broadcast message
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
CN106777332A (en) * 2017-01-12 2017-05-31 山东大学 The system and method for file where file is found in a kind of Android terminal by file identification
CN106953852A (en) * 2017-03-10 2017-07-14 广东欧珀移动通信有限公司 Register method, device and the terminal device of radio receiver
US10990460B2 (en) 2017-03-10 2021-04-27 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method of generating broadcast queue, storage medium, and terminal
CN106936826A (en) * 2017-03-10 2017-07-07 广东欧珀移动通信有限公司 The register method of radio receiver, device and terminal device
CN106953852B (en) * 2017-03-10 2019-12-31 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
CN106936826B (en) * 2017-03-10 2020-01-14 Oppo广东移动通信有限公司 Registration method and device of broadcast receiver and terminal equipment
CN107070670A (en) * 2017-03-10 2017-08-18 广东欧珀移动通信有限公司 Broadcast transmission person is controlled to send method, device and the terminal device of broadcast message
US11157334B2 (en) 2017-03-10 2021-10-26 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Control method and apparatus for broadcast sending, storage medium, and electronic device
US10819455B2 (en) 2017-03-10 2020-10-27 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Broadcast processing method, non-transitory storage medium, and electronic device
WO2018161580A1 (en) * 2017-03-10 2018-09-13 广东欧珀移动通信有限公司 Broadcast control method and apparatus, storage medium, and electronic device
US10785741B2 (en) 2017-03-10 2020-09-22 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Registration method for broadcast receiver, terminal and storage medium
US11140208B2 (en) * 2017-05-17 2021-10-05 Huawei Technologies Co., Ltd. Scheduling method and terminal
US11700293B2 (en) 2017-05-17 2023-07-11 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
CN108491327A (en) * 2018-03-26 2018-09-04 中南大学 A kind of Android application dynamic Receiver components local refusal service leak detection method
CN110096380A (en) * 2019-05-08 2019-08-06 苏州浪潮智能科技有限公司 Android corresponding 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
CN110209513A (en) * 2019-06-06 2019-09-06 北京金山安全软件有限公司 Broadcast registration method, device, equipment and medium of application program
CN113141515A (en) * 2020-01-20 2021-07-20 阿里巴巴集团控股有限公司 Camera resource distribution method, operating system, terminal and broadcasting device
CN113141515B (en) * 2020-01-20 2023-03-10 阿里巴巴集团控股有限公司 Camera resource distribution method, operating system, terminal and broadcasting device
CN113626312A (en) * 2021-07-15 2021-11-09 荣耀终端有限公司 Test method, electronic device and storage medium
CN113626312B (en) * 2021-07-15 2022-12-06 北京荣耀终端有限公司 Test method, electronic device and storage medium
CN113795000A (en) * 2021-09-08 2021-12-14 号百信息服务有限公司 Method and system for distinguishing authorization takeover by short message application
CN113795000B (en) * 2021-09-08 2023-01-10 号百信息服务有限公司 Method and system for distinguishing authorization takeover by short message application

Also Published As

Publication number Publication date
CN104994481B (en) 2018-09-28

Similar Documents

Publication Publication Date Title
CN104994481A (en) Method and system for transceiving broadcast messages between application programs in Android system
CN102457409B (en) Method and system for link failure detection
CN107113613B (en) Server, mobile terminal, network real-name authentication system and method
CN105007163B (en) Transmission, acquisition methods and the transmission of wildcard, acquisition device
EP3206422A1 (en) Method and device for creating subscription resource
CN101977379A (en) Authentication method and device of mobile terminal
CN102892091A (en) Scheme for acquiring own mobile phone number
CN106296899B (en) A kind of user account and the unbinding method of smart lock
CN110337100A (en) The more card business vice card adding methods of No.1, terminal and system based on block chain
KR20080046128A (en) Method and apparatus for performing integrity protection in a wireless communications system
CN206993151U (en) Network signal security authentication systems
CN116235524A (en) Secure communication method and device
CN103607324B (en) Data processing method for Java message service, Java message client and server
CN106301529A (en) A kind of short message transmission method, server, terminal and communication system
CN102340511A (en) Safety control method and device
CN103108316A (en) Authentication method, device and system for aerial card writing
CN101980518A (en) Method, system and terminal for transmitting data
CN101778055B (en) Message processing method and network entity
CN104427497A (en) Handset verification method, handset and handset verification system
US7861293B2 (en) Mobile terminal and authentication method
EP3123758B1 (en) User equipment proximity requests authentication
CN106951483A (en) Based on storing process realize across logic isolate by force and security audit communication means
CN106060824A (en) Method of utilizing broadcast frame embedded data mode to feed back state of smart device (SD) during SD networking process
CN105553676A (en) Beidou serial port communication method and sending and receiving device with equipment authentication function
WO2017215265A1 (en) Vertical industry user system and device, and method for distributing identification number

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