WO2015070655A1 - 智能设备的广播拦截方法和装置 - Google Patents

智能设备的广播拦截方法和装置 Download PDF

Info

Publication number
WO2015070655A1
WO2015070655A1 PCT/CN2014/085189 CN2014085189W WO2015070655A1 WO 2015070655 A1 WO2015070655 A1 WO 2015070655A1 CN 2014085189 W CN2014085189 W CN 2014085189W WO 2015070655 A1 WO2015070655 A1 WO 2015070655A1
Authority
WO
WIPO (PCT)
Prior art keywords
broadcast
application
interception
information
type
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.)
Ceased
Application number
PCT/CN2014/085189
Other languages
English (en)
French (fr)
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.)
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing 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 Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to US15/036,706 priority Critical patent/US10237158B2/en
Publication of WO2015070655A1 publication Critical patent/WO2015070655A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • H04L12/1886Arrangements for providing special services to substations for broadcast or conference, e.g. multicast with traffic restrictions for efficiency improvement, e.g. involving subnets or subdomains
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/04Processing captured monitoring data, e.g. for logfile generation

Definitions

  • the present invention relates to a broadcast technology of a smart device, and in particular to a broadcast interception method and device for a smart device. Background technique
  • some applications In smart devices (especially smart mobile devices) whose operating system is Android, some applications (also called third-party applications or applications) will not know the user according to the corresponding type of broadcast received from the operating system. In the case, some operations are automatically performed in the background; a specific example, after the smart mobile device is powered on or successfully connected to the network, the broadcast center in the framework of the operating system (the interface activity management month) , Act ivi tyManagerService ) will send a broadcast of the boot type or broadcast of the network connection type to the broadcast receiver of the corresponding application, and the corresponding application automatically performs the boot operation in the background after receiving the broadcast of the boot type or the network connection type, thereby making it It is running.
  • the operation that the application receives the broadcast and performs automatically in the background is likely to have a bad influence on the smart device.
  • the self-launched application will take up the processing of the smart mobile device and the resources such as the cache, which may deteriorate the performance of the smart mobile device. It may even affect the normal operation of other applications on the smart mobile device; for example, a malicious application may perform some malicious operations after receiving the corresponding type of broadcast, which may adversely affect the security of the smart mobile device; Self-launched apps will shorten the life of smart mobile devices.
  • broadcast interception should be performed for the corresponding application.
  • the existing broadcast interception mode is generally as follows: component disable setting is performed on the broadcast receiver of the corresponding application, so that the broadcast receivers facing the broadcast center are broadcast receivers that are not disabled by the component, so that the corresponding application will not pass again.
  • the broadcast receiver that is disabled by the component receives a broadcast from the broadcast center.
  • Any type of broadcast in the center so the existing broadcast interception method is likely to affect the normal operation of the application, such as the application can not start normally or can not normally implement a certain function; in addition, the component disable settings usually need to have higher settings Permissions, such as the security management application, can have the root receiver of the application set to the component disabled state; and the security management application has higher setting permissions, which may have some adverse effects, such as increased maliciousness in the smart device. Programs (such as Trojans) get the risk of root privileges on smart devices, etc. The safety of the equipment. Also, failures due to higher setup privileges are often excluded from the smart device after-sales warranty. Summary of the invention
  • the present invention has been made in order to provide a broadcast intercepting method of a smart device and a corresponding broadcast intercepting device of the smart device that overcome the above problems or at least partially solve the above problems.
  • a broadcast intercepting method of a smart device comprising: acquiring, at a framework layer, a broadcast that a broadcast center needs to send to a broadcast receiver of an application; determining, according to information included in the broadcast Determining a broadcast type of the broadcast; determining, according to the broadcast type and the broadcast subscription information, identifier information of an application that needs to receive the broadcast; determining the identifier information of the application and the identifier information applied in the preset broadcast interception information set Matching, and the broadcast type of the broadcast matches the broadcast filter type set in advance for the application, prohibiting transmission of the broadcast to the broadcast receiver of the application; otherwise, allowing transmission to the broadcast receiver of the application The broadcast.
  • a broadcast intercepting apparatus of a smart device comprising: an acquiring module, configured at a frame layer, adapted to acquire a broadcast that a broadcast center needs to send to a broadcast receiver of an application; a module, configured to determine, according to the information included in the broadcast, a broadcast type of the broadcast according to the information included in the broadcast; a second determining module, configured at the framework layer, configured to determine, according to the broadcast type and the broadcast subscription information, that the receiving The identification information of the application of the broadcast; the interception processing module is disposed at the framework layer, and is adapted to determine that the identification information of the application matches the identification information applied in the preset set of broadcast interception information, and the broadcast of the broadcast In the case where the type matches the broadcast filter type set in advance for the application, the broadcast is prohibited from being transmitted to the broadcast receiver of the application; otherwise, the broadcast is allowed to be transmitted to the broadcast receiver of the application.
  • the broadcast intercepting method and apparatus of the smart device of the present invention performs matching of the identification information of the application and the broadcast type after determining the broadcast type of the broadcast of the broadcast receiver that needs to be transmitted to the application and the identification information of the application that needs to receive the broadcast.
  • the matching operation so that the corresponding application can perform broadcast interception of the corresponding broadcast type according to the matching result, that is, the present invention implements the broadcast interception in the process of transmitting the broadcast to the broadcast receiver of the application;
  • the invention avoids some applications that perform self-starting operations in the background without the user's knowledge, and avoids adverse effects on the normal operation of the application by setting the broadcast receiver component to be disabled.
  • the invention can also avoid the adverse effects of high setting authority on the security of the smart device and the after-sales warranty service.
  • FIG. 1 is a flowchart of a broadcast interception method of a smart device according to a first embodiment of the present invention
  • FIG. 2 is a flowchart showing a broadcast interception method of a smart device according to a second embodiment of the present invention
  • FIG. 4 is a block diagram showing a communication device for performing the method of the present invention
  • Figure 5 shows a schematic diagram of a memory unit for holding or carrying program code implementing a method in accordance with the present invention. detailed description
  • Embodiment 1 A broadcast interception method of a smart device. The method of this embodiment will be described below with reference to Fig. 1.
  • S100 at the framework layer, acquires a broadcast that the broadcast center needs to send to the broadcast receiver of the application.
  • the smart device in this embodiment may be an intelligent device based on the Android operating system.
  • the smart device in this embodiment may also be based on the structure.
  • a smart device like a similar operating system The invention will be described below by taking the Andriod operating system as an example.
  • the application in the application layer can register the broadcast receiver at the framework layer by using the subscription message according to its specific requirement, and the process of registering the broadcast receiver generates the broadcast subscription information, and the broadcast subscription information can be stored in the framework.
  • the broadcast subscription information should include identification information of the application (which may also be referred to as identification information of the broadcast receiver of the application) and information such as the broadcast type; thus, the framework layer may receive the broadcast according to the broadcast subscription information to the corresponding application.
  • the device sends the corresponding type of broadcast.
  • the broadcast receiver of the application registration can generally receive broadcasts of a plurality of different broadcast types, and the broadcast receiver of the application registration can be a static broadcast receiver or a dynamic broadcast receiver.
  • the identification information of the application may be a package name (ie, a package identifier) of the application, and the broadcast type may be a boot type or a network connection type.
  • the smart device When the smart device performs corresponding operations (such as power-on operation or network connection operation, etc.), its operating system generates a broadcast of the corresponding broadcast type (such as a broadcast of a boot type or a broadcast of a network connection type) to perform the current execution of the smart device. The operation is notified to the corresponding application, so that the application can perform corresponding operations (such as self-starting operations, etc.) according to the received broadcast.
  • corresponding operations such as power-on operation or network connection operation, etc.
  • the broadcast center in this embodiment generally refers to a platform for buffering a broadcast in the form of a queue and finally transmitting a broadcast buffered in the queue to a broadcast receiver of a corresponding application.
  • the broadcast center may be AMS (Activity Management Service, ActivityManagerService) is implemented.
  • the operation of acquiring the broadcast may be performed by the broadcast center.
  • processing the next broadcast function in the AMS ie, the function ProcessNextBroadCast( )
  • the broadcast that is taken out is the above-mentioned broadcast that needs to be sent to the broadcast receiver of the application.
  • the broadcast type of the broadcast can be accurately determined by the information contained in the broadcast.
  • the operation of determining the broadcast type in this step can be performed by the broadcast center.
  • the function ProcessNextBroadCast( ) in the AMS determines the broadcast type of the broadcast based on the information contained in the broadcast it takes out from the broadcast queue.
  • S120 Determine, according to the determined broadcast type and the preset broadcast subscription information, identifier information of an application that needs to receive the broadcast.
  • the application that needs to receive the broadcast may be one or multiple, that is, the broadcast receiver that needs to receive the broadcast may be one or multiple;
  • the identification information (which may also be referred to as the identification information of the broadcast receiver) of the application that needs to receive the broadcast determined according to the broadcast type and the broadcast subscription information may be one or plural.
  • the broadcast subscription information may be stored in the broadcast center in the form of a table or a database, and the broadcast subscription information shall include a correspondence between the broadcast type and the identification information of the application, so that the broadcast subscription information may be queried according to the broadcast type of the broadcast.
  • the identity of all applications that receive this type of broadcast Information can be performed by the broadcast center.
  • the ProcessNextBroadCast( ) function in the AMS uses the broadcast type after the broadcast is taken out from the broadcast queue and the broadcast type of the broadcast is determined according to the information contained in the broadcast. Query in the broadcast subscription information to determine identification information of all applications that need to receive the broadcast.
  • the identification information of the above application may be the application package name, or other information that can uniquely identify the application.
  • S130 Determine whether the identification information of the determined application matches the identification information applied in the preset broadcast interception information set, and determine whether the broadcast type of the determined broadcast and the broadcast filtering type set in advance for the application are Matching; determining that the identification information of the determined application matches the identification information applied in the preset broadcast interception information set, and the broadcast type of the determined broadcast matches the broadcast filter type set in advance for the application, Then, it is determined that the identification information of the determined application does not match the identification information applied in the preset broadcast interception information set, or the broadcast type of the determined broadcast and the broadcast set in advance for the application are determined. If the filter types do not match, go to S150.
  • the broadcast interception information set of the embodiment generally includes identifier information of one or more applications (such as an application package name), and when the broadcast interception information set is empty, it indicates that all applications in the smart device are not It is necessary to perform broadcast interception in the manner of this embodiment.
  • the identification information of the application in the broadcast interception information set may indicate that there is a broadcast that needs to be intercepted for some or some of the specified applications.
  • the broadcast filtering type may be specifically in the form of a broadcast type filter, that is, a broadcast type filter is separately set for each application that needs to perform broadcast interception, and all broadcast types that need to be intercepted for one application may pass through the corresponding application. Broadcast type filter to reflect.
  • the identification information of the application in the broadcast interception information set and the broadcast type filter may be set by the user according to actual needs; a specific example, the smart device provides a security management application, and the user selects the security management application after the security management application is in the running state.
  • the security interception option in the security management application so that the security management application presents a broadcast intercept window for the user, and the user can set the identification information of the application in the broadcast interception information set and the broadcast type filter through the broadcast intercept window; for example, the broadcast intercept window includes There are icons of multiple applications in the smart device, and each application icon corresponds to at least one broadcast type (such as a boot type or a network connection type) option, and the user selects the corresponding application icon and selects the corresponding application icon.
  • the security management application receives the broadcast interception policy information, and the security management application generates the corresponding application package name and broadcast type filter according to the received broadcast interception policy information. And adding packet identification information set in the broadcast knockdown.
  • the identification information of the application in the broadcast interception information set and the broadcast type filter may also be missing.
  • a specific example is provided in the smart device with a security management application. When the security management application is installed, the broadcast interception information set is automatically set at the framework layer, and one or more applications are set in the broadcast interception information set. The identification information is set and the corresponding broadcast type filter is set for the corresponding application; the identification information of the application added by the security management application in the broadcast interception information set and the set broadcast type filter are usually for the malicious application that has been found.
  • the operation in this step can be performed by the broadcast center.
  • the ProcessNextBroadCast( ) function in the AMS is in the broadcast taken from the broadcast queue, and the broadcast type of the broadcast is determined according to the information contained in the broadcast, and the broadcast type is utilized.
  • the broadcast interception policy query function ie, isIntentBlockedForPkg() function
  • the ProcessNextBroadCast() function will The identification information of the determined application and the input parameter of the broadcast type filter as a function are provided to the isIntentBlockedForPkg( ) function; whether the preset broadcast interception information set is matched by the isIntentBlockedForPkg( ) function to match the identification information of the above application And a determination operation as to whether the determined broadcast type matches the broadcast type indicated by the broadcast type filter.
  • the matching information in this step should be separately performed for each identification information of the application that needs to receive the broadcast. operating.
  • the isIntentBlockedForPkg( ) function returns the matching result information generated by the above matching operation to the ProcessNextBroadCast( ) function.
  • the returned matching result information may include: the identification information of the application; may also include: the identification information of the application and the broadcast type; the ProcessNextBroadCast( ) function does not wait for the matching result information returned by the isIntentBlockedForPkg ( ) function.
  • the identification information of the application in the matching result information transmits the aforementioned broadcast that is taken out from the broadcast queue to the broadcast receiver of the corresponding application.
  • the matching result information returned by the function may include only the application identification information that has the identification information of the application and the broadcast type, and may also include the identification information of all the applications, and further indicate whether each application needs to perform broadcast interception information (such as matching flag, etc.).
  • the broadcast is allowed to be sent to a broadcast receiver of the application that needs to receive the broadcast.
  • the broadcast center can receive broadcasts to corresponding applications according to its existing broadcast processing flow.
  • the broadcaster sends the broadcast, a specific example, the isIntentBlockedForPkg() function returns the matching result information generated by the above matching operation to the ProcessNextBroadCast() function, and the returned matching result information may include: an application whose application identifier information matches the broadcast type Identification information; may also include: application identification information and broadcast type matching application identification information and broadcast type; ProcessNextBroadCast () function after receiving the matching result information returned by isIntentBlockedForPkg () function, will match the result information
  • the identification information of the application is removed from the identification information of the application that needs to receive the broadcast determined in the foregoing S120, and then, according to the identification information of the remaining application, the foregoing broadcast receiver of the corresponding application is sent out from the broadcast queue. broadcast.
  • the matching result information returned by the isIntentBlockedForPkg( ) function may be empty.
  • the ProcessNextBroadCast( ) function shall be according to the foregoing S120.
  • the identification information of the application that is determined to receive the broadcast is sent to the broadcast receiver of the corresponding application for the aforementioned broadcast that is taken out from the broadcast queue.
  • Embodiment 2 Android-based broadcast interception method. The device will be described in detail below with reference to FIG.
  • this embodiment implements broadcast interception based on the application layer (ie, the app layer in FIG. 2) and the framework layer.
  • the Development Kit the software development kit, is used to define functions.
  • SecurityService (which can be a system service) is newly added in the Framework layer, and the service provides the following two functions:
  • the function can be called by the setBroadcastPolicyO function, and is mainly used to set the package name of the corresponding application in the broadcast interception information set according to the broadcast interception policy information input by the user, and Set a broadcast type filter for the corresponding application;
  • packageName is the package name corresponding to the application
  • intentFilter is a broadcast type filter, which can indicate the broadcast type that needs to be broadcast intercepted, and the intent is sent to the application.
  • the security management application of the application layer can call the setBroadcastPolicy() function in QihooAppManager to set the broadcast interception information in the framework layer, that is, the setBroadcastPolicy() function calls the setlntentBlockedForPkg() function of the framework layer, and will need
  • the package name of the application for broadcast interception and the broadcast type filter are provided to the setBroadcastPolicy ( ) function.
  • the setBroadcastPolicy ( ) function sets the package name in the broadcast interception information set and sets the broadcast type filter for the package name.
  • the operating system calls the sendBroadcast() function or the sendOrderedBroadcast() function to send the broadcast
  • the sendBroadcast() function or the sendOrderedBroadcast() function calls the broadcastlntent() function in the active management service
  • the broadcastlntent() function calls the broadcast ⁇ ij function processNextBroadcast. ( ) function; in the prior art, after the processNextBroadcast( ) function takes a broadcast from the broadcast queue, directly processes and transmits the broadcast (as shown by the dotted line on the right side in FIG.
  • processNextBroadcast() function After the processNextBroadcast() function takes a broadcast from the broadcast queue, it calls the isIntentBlockedForPkg() function in the security service, and the isIntentBlockedForPkg() function determines whether broadcast interception is required for some or some applications, and the processNextBroadcast() function Determining whether to send the above-mentioned broadcast to the broadcast receiver of the corresponding application according to the judgment result of the isIntentBlockedForPkg( ) function, for example, sending the extracted broadcast to When should broadcast receivers, processNextBroadcast () function is called event management services in processCurBroadcastLocked () function.
  • Embodiment 3 A broadcast intercepting device of a smart device. The device will be described in detail below with reference to FIG.
  • the device shown in FIG. 3 can be disposed in a smart device (especially a smart mobile device), such as a smart mobile device such as a smart mobile phone or a tablet.
  • the smart device in this embodiment may be an intelligent device based on the Android operating system.
  • the smart device in this embodiment may also be based on the structure.
  • a smart device like a similar operating system. The following uses the Andriod operating system as an example to describe the embodiment.
  • the apparatus shown in FIG. 3 is disposed on the framework layer, and the apparatus mainly includes: an obtaining module 300, a first determining module 310, a second determining module 320, and an intercepting processing module 330; wherein, the first determining module 310 and the obtaining module 300
  • the second determining module 320 is respectively connected, and the first determining module 310 and the second determining module 320 are also respectively connected to the intercept processing module 330.
  • the apparatus may further include a broadcast interception policy setting module 340, the broadcast interception policy setting module 340 is disposed at the framework layer and the application layer, and the broadcast interception policy setting module 340 is connected to the interception processing module 330.
  • the acquisition module 300 is primarily adapted to obtain broadcasts that the broadcast center needs to send to the broadcast receiver of the application.
  • the obtaining module 300 may be disposed in the next broadcast function (ie, ProcessNextBroadCast( ) function) in the AMS.
  • the obtaining module 300 in the ProcessNextBroadCast( ) function takes a broadcast from the broadcast queue (BroadCastQueue) of the broadcast center.
  • the broadcast that is taken out of the strip is the above broadcast that needs to be sent to the broadcast receiver of the application.
  • the first determining module 310 is primarily adapted to determine the broadcast type of the broadcast based on the information contained in the broadcast described above.
  • the first determining module 310 can accurately determine the broadcast type of the broadcast by using the information contained in the broadcast.
  • the first determining module 310 may be disposed in the next broadcast function (ie, ProcessNextBroadCast( ) function) in the AMS.
  • the first determining module 310 in the ProcessNextBroadCast( ) function in the AMS is taken out from the broadcast queue according to the obtaining module 300.
  • the information contained in the broadcast determines the broadcast type of the broadcast.
  • the second determining module 320 is mainly adapted to determine the identification information of the application that needs to receive the broadcast according to the broadcast type determined by the first determining module 310 and the broadcast subscription information.
  • the application that needs to receive the broadcast may be one or multiple, that is, the broadcast receiver that needs to receive the broadcast may be one or multiple;
  • the identification information (also referred to as the identification information of the broadcast receiver) of the application that needs to receive the broadcast determined by the second determining module 320 according to the broadcast type and the broadcast subscription information may be one or multiple.
  • the broadcast subscription information may be stored in the broadcast center in the form of a table or a database, and the broadcast subscription information shall include a correspondence between the broadcast type and the identification information of the application, so that the second determining module 320 can subscribe from the broadcast according to the broadcast type of the broadcast.
  • the information is queried for identification information of all applications that need to receive broadcasts of this type.
  • the second determining module 320 can be set in the AMS to process the next broadcast function (ie In the ProcessNextBroadCast( ) function, for example, the acquisition module 300 in the ProcessNextBroadCast( ) function in the AMS is in the broadcast taken out from the broadcast queue, and the first determining module 310 determines the broadcast type of the broadcast according to the information contained in the broadcast.
  • the second determining module 320 queries the broadcast subscription information by using the broadcast type to determine identification information of all applications that need to receive the broadcast.
  • the identification information of the above application may be the application package name, or other information that can uniquely identify the application.
  • the interception processing module 330 is mainly adapted to determine that the identification information of the application determined by the second determining module 320 matches the identification information applied in the preset broadcast interception information set, and the broadcast type determined by the first determining module 310 is In the case where the broadcast filter type set for the application is matched in advance, the broadcast is prohibited from being transmitted to the broadcast receiver of the application; otherwise, the broadcast is allowed to be transmitted to the broadcast receiver of the application.
  • the foregoing broadcast filtering type may be specifically in the form of a broadcast type filter, that is, each broadcast type intercepting application has a broadcast type filter respectively, and all broadcast types that need to be intercepted for one application may pass the
  • the broadcast type filter corresponding to the application is embodied.
  • the interception processing module 330 may be disposed in the next broadcast function (ie, ProcessNextBroadCast( ) function) in the AMS.
  • the acquisition module 300 in the ProcessNextBroadCast( ) function in the AMS is in the broadcast taken from the broadcast queue, the first determination.
  • the module 310 determines the broadcast type of the broadcast according to the information included in the broadcast, and the second determining module 320 uses the broadcast type to query the broadcast subscription information to determine the identifier information of all applications that need to receive the broadcast, and then intercept the processing module 330.
  • ProcessNextBroadCast () function will provide the application's identification information and broadcast type filter as input parameters of the function to isIntentBlockedForPkg ( ) a function (the function belongs to the interception processing module 330); performing, by the isIntentBlockedForPkg() function, whether the preset broadcast interception information set matches the identification information of the application and the determined broadcast Whether the type of the broadcast type filter as shown in the judgment operation of the broadcast type matches.
  • isIntentBlockedForPkg The ( ) function returns the matching result information generated by the above matching operation to the ProcessNextBroadCast( ) function, and the intercept processing module 330 in the ProcessNextBroadCast( ) function receives the matching result information returned by the isIntentBlockedForPkg ( ) function, and is no longer based on the matching result information.
  • Application identification information to the corresponding application The broadcast receiver transmits the aforementioned broadcast that it has taken out of the broadcast queue.
  • the broadcast center may transmit the broadcast to the broadcast receiver of the corresponding application according to its existing broadcast processing flow, a specific example, isIntentBlockedForPkg ( The function returns the matching result information generated by the above matching operation to the ProcessNextBroadCast( ) function, and the interception processing module 330 in the ProcessNextBroadCast( ) function receives the matching result information returned by the isIntentBlockedForPkg ( ) function, and then matches the identification of the application in the matching result information. The information is removed from the identification information of the application that needs to receive the broadcast determined by the second determining module 320, and then the aforementioned broadcast received from the broadcast queue is transmitted to the broadcast receiver of the corresponding application according to the identification information of the remaining applications.
  • isIntentBlockedForPkg The function returns the matching result information generated by the above matching operation to the ProcessNextBroadCast( ) function, and the interception processing module 330 in the ProcessNextBroadCast( ) function receives the matching result information returned by the is
  • the broadcast interception policy setting module 340 is configured to receive the broadcast interception policy information input by the user, set the identification information of the application in the broadcast interception information set according to the broadcast interception policy information, and set a broadcast type filter for the application according to the broadcast interception policy information. .
  • the broadcast interception policy setting module 340 mainly includes: a set broadcast interception policy function set in the application layer and a set broadcast interception policy function of the security service set in the framework layer, and the operations performed by the two functions are as in the first embodiment The description is not repeated here.
  • modules in the devices of the embodiments can be adaptively changed and placed in one or more devices different from the embodiment.
  • Modules or units or components in an embodiment may be combined into one module or unit or component, and in addition They are divided into multiple sub-modules or sub-units or sub-components.
  • any combination of the features disclosed in the specification, including the accompanying claims, the abstract and the drawings, and any methods so disclosed may be employed in any combination. Or combine all the processes or units of the device.
  • Each feature disclosed in the specification (including the accompanying claims, the abstract, and the drawings) may be replaced by alternative features that provide the same, equivalent, or similar purpose.
  • the various component embodiments of the present invention may be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof.
  • a microprocessor or digital signal processor may be used in practice to implement some or all of the functionality of some or all of the components of the Android-based broadcast interceptor in accordance with embodiments of the present invention.
  • the invention can also be implemented as a device or device program (e.g., a computer program and a computer program product) for performing some or all of the methods described herein.
  • a program implementing the invention may be stored on a computer readable medium or may be in the form of one or more signals. Such signals may be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.
  • FIG. 4 shows a communication device that can implement the broadcast intercept method of the smart device of the present invention.
  • the communication device conventionally includes a processor 410 and a computer program product or computer readable medium in the form of a memory 420.
  • the memory 420 may be an electronic memory such as a flash memory, an EEPROM (Electrically Erasable Programmable Read Only Memory), an EPROM, a hard disk, or a ROM.
  • Memory 420 has a memory space 430 for program code 431 for performing any of the method steps described above.
  • storage space 430 for program code may include various steps for implementing the above methods, respectively.
  • the program code can be read from or written to one or more computer program products.
  • These computer program products include program code carriers such as hard disks, compact disks (CDs), memory cards or floppy disks.
  • Such computer program products are typically portable or fixed storage units as described with reference to FIG.
  • the storage unit may have a storage section or a storage space or the like arranged similarly to the storage 420 in the communication device of FIG.
  • the program code can be compressed, for example, in an appropriate form.
  • the storage unit comprises a program 431 for performing the steps of the method according to the invention, ie a code readable by a processor, such as 410, which, when executed by the communication device, causes the communication device to perform the above Each step in the described method.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Data Mining & Analysis (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本发明公开了一种智能设备的广播拦截方法和装置;其中的广播拦截方法包括:在框架层,获取广播中心需要向应用的广播接收器发送的广播;根据所述广播中包含的信息确定所述广播的广播类型;根据所述广播类型以及广播订阅信息确定需要接收所述广播的应用的标识信息;在判断出所述应用的标识信息与预先设定的广播拦截信息集合中应用的标识信息匹配、且所述广播的广播类型与预先针对应用设定的广播过滤类型匹配的情况下,禁止向所述应用的广播接收器发送所述广播;否则,允许向所述应用的广播接收器发送所述广播。

Description

智能设备的广播拦截方法和装置
技术领域
本发明涉及智能设备的广播技术,具体涉及一种智能设备的广播拦截方法 和装置。 背景技术
在操作系统为 Android的智能设备(尤其是智能移动设备) 中, 一些应用 (也可以称为第三方应用或者应用程序)会根据其接收到的来自操作系统的相 应类型的广播, 在用户不知情的情况下, 在后台自动执行一些操作; 一个具体 的例子, 智能移动设备在开机或者成功接入网络后, 其操作系统的框架 ( Framework )层中的广播中心、(^口活动管理月良务, Act ivi tyManagerService ) 会向相应应用的广播接收器发送开机类型的广播或网络连接类型的广播,相应 应用在接收到开机类型或者网络连接类型的广播后, 在后台自动执行启动操 作, 从而使其处于运行状态。
应用接收到广播而在后台自动执行的操作很可能会给智能设备带来不良 影响, 例如, 自启动的应用会占用智能移动设备的处理以及緩存等资源, 从而 可能会使智能移动设备的性能恶化,甚至有可能会影响智能移动设备中其他应 用的正常运行; 再例如, 恶意应用可能会在接收到相应类型的广播后执行一些 恶意操作, 从而会对智能移动设备的安全产生不良影响; 还有, 自启动的应用 会缩短智能移动设备的续航时间。
为了避免应用在接收到广播后在后台自动执行的操作对智能设备的不良 影响, 应针对相应应用进行广播拦截。 现有的广播拦截方式通常为: 对相应应 用的广播接收器进行组件禁用设置,使广播中心所面对的广播接收器均为未被 组件禁用设置的广播接收器,从而相应应用不会再通过被组件禁用设置的广播 接收器接收到来自广播中心的广播。
发明人在实现本发明过程中发现,应用在正常运行过程中很可能也需要接 收广播, 而将应用的广播接收器进行组件禁用设置后,该应用不会再通过该广 播接收器接收到来自广播中心的任何类型的广播,从而现有的广播拦截方式很 可能会影响应用的正常运行,如应用不能够正常启动或者不能正常实现某个功 能等; 另外, 组件禁用设置通常需要具有较高的设置权限, 如安全管理应用在 具有 Root权限后, 才能将相应应用的广播接收器设置为组件禁用状态; 而安全 管理应用具有较高的设置权限会产生一些不良影响,如增加了智能设备中的恶 意程序(如木马病毒程序)获得智能设备的 Root权限的风险等, 从而会影响智 能设备的安全。还有, 由于较高的设置权限而引起的故障通常会被排除在智能 设备售后保修服务范围之外。 发明内容
鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地 解决上述问题的智能设备的广播拦截方法和相应的智能设备的广播拦截装置。
依据本发明的一个方面,提供了一种智能设备的广播拦截方法, 该方法包 括: 在框架层, 获取广播中心需要向应用的广播接收器发送的广播; 根据所述 广播中包含的信息确定所述广播的广播类型;根据所述广播类型以及广播订阅 信息确定需要接收所述广播的应用的标识信息;在判断出所述应用的标识信息 与预先设定的广播拦截信息集合中应用的标识信息匹配、且所述广播的广播类 型与预先针对应用设定的广播过滤类型匹配的情况下,禁止向所述应用的广播 接收器发送所述广播; 否则, 允许向所述应用的广播接收器发送所述广播。
根据本发明的另一方面,提供了一种智能设备的广播拦截装置, 该装置包 括: 获取模块, 设置于框架层, 适于获取广播中心需要向应用的广播接收器发 送的广播; 第一确定模块, 设置于框架层, 适于根据所述广播中包含的信息确 定所述广播的广播类型; 第二确定模块, 设置于框架层, 适于根据所述广播类 型以及广播订阅信息确定需要接收所述广播的应用的标识信息; 拦截处理模 块,设置于框架层,适于在判断出所述应用的标识信息与预先设定的广播拦截 信息集合中应用的标识信息匹配、且所述广播的广播类型与预先针对应用设定 的广播过滤类型匹配的情况下, 禁止向所述应用的广播接收器发送所述广播; 否则, 允许向所述应用的广播接收器发送所述广播。
本发明的智能设备的广播拦截方法和装置通过在确定出需要发送给应用 的广播接收器的广播的广播类型以及需要接收该广播的应用的标识信息之后, 进行应用的标识信息的匹配以及广播类型的匹配操作,这样, 可以根据匹配结 果对相应的应用进行相应广播类型的广播拦截,也即, 本发明在将广播发送到 应用的广播接收器的过程中有针对性的实现了广播拦截;从而本发明在避免了 某些应用在用户不知情的情况下,在后台执行自启动等操作的同时,避免了将 广播接收器组件设置为禁用而对应用的正常运行带来的不良影响; 而且, 本发 明还可以同时避免设置权限较高而对智能设备的安全以及售后保修服务等方 面带来的不良影响。
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术 手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、 特征和优点能够更明显易懂, 以下特举本发明的具体实施方式。 附图说明
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领 域普通技术人员将变得清楚明了。本实施例的附图仅用于示出优选实施方式的 目的, 而并不认为是对本发明的限制。 而且在整个附图中, 用相同的参考符号 表示相同的部件。 在附图中:
图 1示出了根据本发明实施例一的智能设备的广播拦截方法流程图; 图 2示出了根据本发明实施例二的智能设备的广播拦截方法流程图; 图 3示出了根据本发明实施例三的智能设备的广播拦截装置示意图; 图 4示出了用于执行本发明的方法的通信设备的框图; 以及
图 5示出了用于保持或者携带实现根据本发明的方法的程序代码的存储单 元示意图。 具体实施方式
下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了 本公开的示例性实施例, 然而应当理解, 可以以各种形式实现本公开而不应被 这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本 公开, 并且能够将本公开的范围完整的传达给本领域的技术人员。
实施例一、智能设备的广播拦截方法。 下面结合图 1对本实施例的方法进 行说明。
图 1中, S100、 在框架(Framework )层, 获取广播中心需要向应用的广 播接收器发送的广播。
具体的,本实施例中的智能设备可以为基于 Android操作系统的智能设备, 当然, 如果存在与 Andriod操作系统结构类似结构的其他操作系统, 则本实施 例中的智能设备也可以为基于该结构类似的操作系统的智能设备。 下面以 Andriod操作系统为例对本发明进行说明。
在基于 Android的智能设备中,应用层中的应用可以根据其具体需求利用 订阅消息在框架层注册广播接收器,应用注册广播接收器的过程会产生广播订 阅信息, 该广播订阅信息可以存储在框架层中,且该广播订阅信息应包括应用 的标识信息(也可以称为应用的广播接收器的标识信息)以及广播类型等信息; 这样,框架层可以根据广播订阅信息向相应的应用的广播接收器发送相应类型 的广播。
应用注册的广播接收器通常可以接收多种不同广播类型的广播,而且应用 注册的广播接收器可以为静态广播接收器, 也可以为动态广播接收器。 另外, 上述应用的标识信息可以为应用的包名称(即包标识), 上述广播类型可以为 开机类型或者网络连接类型等。
智能设备在执行相应操作(如开机操作或者网络连接操作等)时, 其操作 系统会产生相应广播类型的广播(如开机类型的广播或者网络连接类型的广播 等), 以将智能设备当前执行的操作通知给相应的应用, 从而应用可以根据接 收到的广播执行相应的操作 (如自启动操作等)。
本实施例中的广播中心通常是指用于以队列的形式緩存广播并最终将队 列中緩存的广播发送给相应的应用的广播接收器的平台,在基于 Android的操 作系统中, 广播中心可以由 AMS (活动管理服务, ActivityManagerService ) 来实现。
从广播接收器的角度而言,所有的动态广播接收器和静态广播接收器在经 过解析后均存储在 AMS中; 从广播发送的角度而言, 通过函数 SendBroadcast ( )或者 SendOrderedBroadcast( )而发送的广播,实际上最终会被调用至 AMS 中, 并在 AMS中以队列的形式存储, 并等待 AMS对各广播进行处理; AMS 会针对队列中存储的广播逐条进行处理,以使广播最终发送给相应的广播接收 器。
在本实施例中, 获取广播的操作可以由广播中心来执行, 例如, AMS 中 的处理下一条广播函数 (即函数 ProcessNextBroadCast ( ) )从广播中心的广播 队列 ( BroadCastQueue ) 中取出一条广播, 该条被取出的广播即为上述需要向 应用的广播接收器发送的广播。
S110、 根据广播中包含的信息确定该广播的广播类型。
具体的, 由于广播中通常包含有与广播类型相关的信息, 因此, 通过广播 中包含的信息就可以准确的确定出该广播的广播类型。本步骤中确定广播类型 的操作可以由广播中心来执行, 例如, AMS 中的函数 ProcessNextBroadCast ( )根据其从广播队列中取出的广播所包含的信息确定该广播的广播类型。
S120、根据上述确定出的广播类型以及预先设置的广播订阅信息确定需要 接收该广播的应用的标识信息。
具体的, 针对一条广播而言, 需要接收该条广播的应用可以是一个, 也可 以是多个, 也就是说, 需要接收该条广播的广播接收器可能是一个, 也可能是 多个; 因此,根据广播类型以及广播订阅信息确定出的需要接收该广播的应用 的标识信息(也可以称为广播接收器的标识信息)可以是一个,也可以是多个。
上述广播订阅信息可以以表或者数据库的形式存储在广播中心中,且广播 订阅信息应包括广播类型与应用的标识信息的对应关系,从而根据广播的广播 类型即可从广播订阅信息中查询出需要接收该类型的广播的所有应用的标识 信息。 本步骤中的操作可以由广播中心来执行, 例如, AMS 中的 ProcessNextBroadCast ( ) 函数在从广播队列中取出的广播, 并根据该广播包 含的信息确定出该广播的广播类型后, 利用该广播类型在广播订阅信息中查 询, 以确定需要接收该广播的所有应用的标识信息。
上述应用的标识信息可以为应用的包名称,也可以为其他能够唯一标识出 应用的信息。
S 130、判断上述确定出的应用的标识信息与预先设定的广播拦截信息集合 中应用的标识信息是否匹配,并判断上述确定出的广播的广播类型与预先针对 应用设定的广播过滤类型是否匹配;在判断出上述确定出的应用的标识信息与 预先设定的广播拦截信息集合中应用的标识信息匹配、且上述确定出的广播的 广播类型与预先针对应用设定的广播过滤类型匹配, 则到 S140; 在判断出上 述确定出的应用的标识信息与预先设定的广播拦截信息集合中应用的标识信 息不匹配, 或者, 上述确定出的广播的广播类型与预先针对应用设定的广播过 滤类型不匹配, 则到 S150。
具体的,本实施例的广播拦截信息集合中通常包含有一条或者多条应用的 标识信息 (如应用的包名称), 在广播拦截信息集合为空时, 表示该智能设备 中的所有应用均不需要釆用本实施例的方式进行广播拦截。
广播拦截信息集合中的应用的标识信息可以表示出针对某个或者某些指 定应用而言, 存在需要进行拦截的广播。
上述广播过滤类型可以具体为广播类型过滤器的形式,即针对每一个需要 进行广播拦截的应用分别设置一个广播类型过滤器,针对一个应用需要拦截的 所有的广播类型都可以通过该应用所对应的广播类型过滤器来体现。
广播拦截信息集合中的应用的标识信息以及广播类型过滤器可以是用户 根据其实际需要设置的; 一个具体的例子, 智能设备提供安全管理应用, 用户 在使安全管理应用处于运行状态后, 选择该安全管理应用中的广播拦截选项, 从而安全管理应用为用户呈现广播拦截窗口,用户可以通过该广播拦截窗口设 置广播拦截信息集合中的应用的标识信息以及广播类型过滤器;如广播拦截窗 口中包括有智能设备中的多个应用的图标,且每个应用图标均对应有至少一种 广播类型(如开机类型或者网络连接类型等)选项, 用户勾选相应的应用图标 并勾选该应用图标对应的某一或某些广播类型, 且用户在点击拦截确定按钮 后, 安全管理应用接收到广播拦截策略信息, 安全管理应用根据接收到的广播 拦截策略信息生成相应的应用的包名称以及广播类型过滤器,并将包标识添加 在广播拦截信息集合中。
广播拦截信息集合中的应用的标识信息以及广播类型过滤器也可以是缺 省设置的; 一个具体的例子, 智能设备中设置有安全管理应用, 该安全管理应 用在安装时,会自动在框架层设置广播拦截信息集合, 并在广播拦截信息集合 中设置一个或者多个应用的标识信息,并为相应的应用设置相应的广播类型过 滤器;安全管理应用在广播拦截信息集合中增加的应用的标识信息以及设置的 广播类型过滤器通常是其针对已发现的恶意应用的。
本步骤中的操作可以由广播中心来执行, 例如, AMS 中的 ProcessNextBroadCast ( ) 函数在从广播队列中取出的广播, 并根据该广播包 含的信息确定出该广播的广播类型,且利用该广播类型在广播订阅信息中查询 确定了需要接收该广播的所有应用的标识信息后,调用广播拦截策略查询函数 (即 isIntentBlockedForPkg ( )函数),且在调用广播拦截策略查询函数过程中, ProcessNextBroadCast ( ) 函数会将其确定出的应用的标识信息以及广播类型 过滤器作为函数的输入参数提供给 isIntentBlockedForPkg ( ) 函数; 由 isIntentBlockedForPkg ( ) 函数执行预先设定的广播拦截信息集合中是否存在 与上述应用的标识信息匹配、以及上述确定出的广播类型是否与广播类型过滤 器所表示出的广播类型匹配的判断操作。
需要说明的是, 如果 S120中确定出的需要接收该广播的应用的标识信息 为多个, 则在本步骤中应针对每一个需要接收该广播的应用的标识信息, 分别 进行本步骤中的匹配操作。
S140、 禁止向上述需要接收该广播的应用的广播接收器发送该广播。 具体的,广播中心不再会按照其现有广播处理流程向相应的应用的广播接 收器发送该广播, 一个具体的例子, isIntentBlockedForPkg ( ) 函数将上述匹 配操作产生的匹配结果信息返回 ProcessNextBroadCast ( ) 函数, 且该返回的 匹配结果信息可以包括: 应用的标识信息; 也可以包括: 应用的标识信息与广 播类型; ProcessNextBroadCast ( ) 函数在接收到 isIntentBlockedForPkg ( ) 函 数返回的匹配结果信息后,不再才艮据匹配结果信息中的应用的标识信息向相应 的应用的广播接收器发送前述其从广播队列中取出的广播。
需要说明的是, 如果在前述 S120中确定出的需要接收该广播的应用的标 识信息为多个, 而在前述 S130中判断出并不是所有的应用的标识信息和广播 类型均匹配, 则 isIntentBlockedForPkg ( ) 函数返回的匹配结果信息中可以只 包括具有应用的标识信息和广播类型均匹配的应用标识信息,也可以包括所有 的应用的标识信息, 并进一步标明每个应用是否需要进行广播拦截的信息(如 匹配标志位等)。
S150、 允许向上述需要接收该广播的应用的广播接收器发送该广播。 具体的,广播中心可以按照其现有广播处理流程向相应的应用的广播接收 器发送该广播, 一个具体的例子, isIntentBlockedForPkg ( ) 函数将上述匹配 操作产生的匹配结果信息返回 ProcessNextBroadCast ( ) 函数, 且该返回的匹 配结果信息可以包括: 应用的标识信息与广播类型均匹配的应用的标识信息; 也可以包括: 应用的标识信息与广播类型均匹配的应用的标识信息和广播类 型; ProcessNextBroadCast ( ) 函数在接收到 isIntentBlockedForPkg ( ) 函数返 回的匹配结果信息后, 将匹配结果信息中的应用的标识信息从前述 S120中其 确定出的需要接收该广播的应用的标识信息中刨除, 然后,根据剩余的应用的 标识信息向相应的应用的广播接收器发送前述其从广播队列中取出的广播。
需要说明的是, 如果前述 S130中判断出所有的应用的标识信息和广播类 型均不同时匹配, 则 isIntentBlockedForPkg ( ) 函数返回的匹配结果信息可以 为空, 此时, ProcessNextBroadCast ( ) 函数应根据前述 S120中其确定出的需 要接收该广播的应用的标识信息向相应的应用的广播接收器发送前述其从广 播队列中取出的广播。
实施例二、 基于 Android的广播拦截方法。 下面结合图 2对该装置进行详 细说明。
从图 2可知, 本实施例是在应用层(即图 2中的 app层)和框架层的基础 上实现广播拦截的。
在应用层,安全管
Development Kit, 即软件开发工具包)来定义函数。
本实施例在应用层定义的函数可以如下述表 1所示,
表 1
Figure imgf000009_0001
本实施例在 Framework层中新增定义了名称为 SecurityService的服务(该 服务可以为系统服务), 该服务提供了如下两个函数:
//针对指定应用, 设置拦截其接收指定广播类型的广播
〃该函数可以被前述的 setBroadcastPolicyO函数调用, 主要用于根据用户 输入的广播拦截策略信息在广播拦截信息集合中设置相应的应用的包名称,并 针对相应的应用设置广播类型过滤器;
public boolean setIntentBlockedForPkg(String packageName, IntentFilter intentFilter) //查询对于某应用而言, 是否需要进行广播拦截
public boolean isIntentBlockedForPkg(String packageName, Intent intent) 在上述两个函数中, packageName为应用对应的包名称, intentFilter为广 播类型过滤器, 可以表示出需要进行广播拦截的广播类型, intent为需要发送 给应用的广播接收器的广播的广播类型。
在图 2所示的流程中,应用层的安全管理应用可以调用 QihooAppManager 中的 setBroadcastPolicy ( ) 函数在框架层中设置广播拦截信息, 即 setBroadcastPolicy ( ) 函数调用框架层的 setlntentBlockedForPkg ( ) 函数, 并 将需要进行广播拦截的应用的包名称以及广播类型过滤器提供给 setBroadcastPolicy ( ) 函数。 setBroadcastPolicy ( ) 函数将包名称设置在广播 拦截信息集合中, 并针对该包名称设置广播类型过滤器。
之后, 操作系统调用 sendBroadcast ( )函数或者 sendOrderedBroadcast ( ) 函数发送广播, sendBroadcast ( ) 函数或者 sendOrderedBroadcast ( ) 函数调 用活动管理服务中的 broadcastlntent ( ) 函数, 且 broadcastlntent ( ) 函数调用 广播队歹 ij的函数 processNextBroadcast ( ) 函数; 在现有技术中 , processNextBroadcast ( )函数从广播队列中取出一条广播后, 直接对该广播进 行处理并发送 (如图 2 中右侧的虚线所示 ); 而在本实施例中, processNextBroadcast ( )函数从广播队列中取出一条广播后, 调用安全服务中 的 isIntentBlockedForPkg ( )函数, 由 isIntentBlockedForPkg ( )函数进行针对 某个或者某些应用是否需要进行广播拦截的判断, 且 processNextBroadcast ( ) 函数根据 isIntentBlockedForPkg ( ) 函数的判断结果决定是否将上述取出的广 播发送给相应的应用的广播接收器, 例如,在需要将取出的广播发送给相应的 广播接收器时, processNextBroadcast ( ) 函数调用活动管理服务中的 processCurBroadcastLocked ( ) 函数。
实施例三、智能设备的广播拦截装置。 下面结合图 3对该装置进行详细说 明。
图 3中示出的装置可以设置于智能设备(尤其是智能移动设备)中, 如设 置于智能移动电话或者平板电脑等智能移动设备中。本实施例中的智能设备可 以为基于 Android操作系统的智能设备, 当然, 如果存在与 Andriod操作系统 结构类似结构的其他操作系统,则本实施例中的智能设备也可以为基于该结构 类似的操作系统的智能设备。下面以 Andriod操作系统为例对本实施例进行说 明。
图 3示出的装置设置于框架层, 且该装置主要包括: 获取模块 300、 第一 确定模块 310、 第二确定模块 320以及拦截处理模块 330; 其中, 第一确定模 块 310与获取模块 300和第二确定模块 320分别连接, 且第一确定模块 310 和第二确定模块 320还分别与拦截处理模块 330连接。 另外, 该装置还可以包 括广播拦截策略设置模块 340, 广播拦截策略设置模块 340设置于框架层和应 用层, 且该广播拦截策略设置模块 340与拦截处理模块 330连接。
获取模块 300 主要适于获取广播中心需要向应用的广播接收器发送的广 播。
具体的, 获取模块 300 可以设置于 AMS 中的处理下一条广播函数(即 ProcessNextBroadCast ( ) 函数) 中, 例如, ProcessNextBroadCast ( ) 函数中 的获取模块 300从广播中心的广播队列 ( BroadCastQueue ) 中取出一条广播, 该条被取出的广播即为上述需要向应用的广播接收器发送的广播。
第一确定模块 310 主要适于根据上述广播中包含的信息确定该广播的广 播类型。
具体的, 由于广播中通常包含有与广播类型相关的信息, 因此, 第一确定 模块 310通过广播中包含的信息就可以准确的确定出该广播的广播类型。
第一确定模块 310 可以设置于 AMS 中的处理下一条广播函数 (即 ProcessNextBroadCast ( ) 函数) 中, 例如, AMS 中的 ProcessNextBroadCast ( )函数中的第一确定模块 310根据获取模块 300从广播队列中取出的广播所 包含的信息确定该广播的广播类型。
第二确定模块 320主要适于根据上述第一确定模块 310确定出的广播类型 以及广播订阅信息确定需要接收该广播的应用的标识信息。
具体的, 针对一条广播而言, 需要接收该条广播的应用可以是一个, 也可 以是多个, 也就是说, 需要接收该条广播的广播接收器可能是一个, 也可能是 多个; 因此, 第二确定模块 320根据广播类型以及广播订阅信息确定出的需要 接收该广播的应用的标识信息(也可以称为广播接收器的标识信息)可以是一 个, 也可以是多个。
上述广播订阅信息可以以表或者数据库的形式存储在广播中心中,且广播 订阅信息应包括广播类型与应用的标识信息的对应关系, 从而第二确定模块 320根据广播的广播类型即可从广播订阅信息中查询出需要接收该类型的广 播的所有应用的标识信息。
第二确定模块 320 可以设置于 AMS 中的处理下一条广播函数 (即 ProcessNextBroadCast ( ) 函数) 中, 例如, AMS 中的 ProcessNextBroadCast ( )函数中的获取模块 300在从广播队列中取出的广播, 且第一确定模块 310 根据该广播包含的信息确定出该广播的广播类型后,第二确定模块 320利用该 广播类型在广播订阅信息中查询,以确定需要接收该广播的所有应用的标识信 息。
上述应用的标识信息可以为应用的包名称,也可以为其他能够唯一标识出 应用的信息。
拦截处理模块 330主要适于在判断出第二确定模块 320确定出的应用的标 识信息与预先设定的广播拦截信息集合中应用的标识信息匹配、且第一确定模 块 310确定出的广播类型与预先针对应用设定的广播过滤类型匹配的情况下, 禁止向该应用的广播接收器发送该广播; 否则, 允许向该应用的广播接收器发 送该广播。
具体的, 上述广播过滤类型可以具体为广播类型过滤器的形式, 即针对每 一个需要进行广播拦截的应用分别对应有一个广播类型过滤器,针对一个应用 需要拦截的所有的广播类型都可以通过该应用所对应的广播类型过滤器来体 现。
拦截处理模块 330 可以设置于 AMS 中的处理下一条广播函数 (即 ProcessNextBroadCast ( ) 函数) 中, 例如, AMS 中的 ProcessNextBroadCast ( ) 函数中的获取模块 300在从广播队列中取出的广播, 第一确定模块 310 根据该广播包含的信息确定出该广播的广播类型,且第二确定模块 320利用该 广播类型在广播订阅信息中查询确定了需要接收该广播的所有应用的标识信 息后,拦截处理模块 330调用广播拦截策略查询函数(即 isIntentBlockedForPkg ( )函数), 且在调用广播拦截策略查询函数过程中, ProcessNextBroadCast ( ) 函数会将应用的标识信息以及广播类型过滤器作为函数的输入参数提供给 isIntentBlockedForPkg ( ) 函数 (该函数属于拦截处理模块 330 ); 由 isIntentBlockedForPkg ( ) 函数执行预先设定的广播拦截信息集合中是否存在 与上述应用的标识信息匹配、以及上述确定出的广播类型是否与广播类型过滤 器所表示出的广播类型匹配的判断操作。
在禁止向上述需要接收该广播的应用的广播接收器发送该广播的情况下, 广播中心不再会按照其现有广播处理流程向相应的应用的广播接收器发送该 广播, 一个具体的例子, isIntentBlockedForPkg ( ) 函数将上述匹配操作产生 的匹配结果信息返回 ProcessNextBroadCast ( ) 函数, ProcessNextBroadCast ( ) 函数中的拦截处理模块 330在接收到 isIntentBlockedForPkg ( ) 函数返回 的匹配结果信息后,不再根据匹配结果信息中的应用的标识信息向相应的应用 的广播接收器发送前述其从广播队列中取出的广播。
在允许向上述需要接收该广播的应用的广播接收器发送该广播的情况下, 广播中心可以按照其现有广播处理流程向相应的应用的广播接收器发送该广 播, 一个具体的例子, isIntentBlockedForPkg ( ) 函数将上述匹配操作产生的 匹配结果信息返回 ProcessNextBroadCast ( ) 函数, ProcessNextBroadCast ( ) 函数中的拦截处理模块 330在接收到 isIntentBlockedForPkg ( ) 函数返回的匹 配结果信息后,将匹配结果信息中的应用的标识信息从第二确定模块 320确定 出的需要接收该广播的应用的标识信息中刨除, 然后,根据剩余的应用的标识 信息向相应的应用的广播接收器发送前述其从广播队列中取出的广播。
广播拦截策略设置模块 340主要适于接收用户输入的广播拦截策略信息, 根据所述广播拦截策略信息在广播拦截信息集合中设置应用的标识信息,并根 据广播拦截策略信息针对应用设置广播类型过滤器。
广播拦截策略设置模块 340主要包括:设置于应用层中的设置广播拦截策 略函数以及设置于框架层中的安全服务的设置广播拦截策略函数,这两个函数 所执行的操作如上述实施例一中的描述, 在此不再重复说明。
在此提供的算法和显示不与任何特定计算机、虚拟系统或者其它设备固有 相关。 各种通用系统也可以与基于在此的示教一起使用。 根据上面的描述, 构 造这类系统所要求的结构是显而易见的。此外, 本发明也不针对任何特定编程 语言。 应当明白, 可以利用各种编程语言实现在此描述的本发明的内容, 并且 上面对特定语言所做的描述是为了披露本发明的最佳实施方式。
在此处所提供的说明书中, 说明了大量具体细节。 然而, 能够理解, 本发 明的实施例可以在没有这些具体细节的情况下实践。在一些实例中, 并未详细 示出公知的方法、 结构和技术, 以便不模糊对本说明书的理解。
类似地,应当理解, 为了精简本公开并帮助理解各个发明方面中的一个或 多个,在上面对本发明的示例性实施例的描述中, 本发明的各个特征有时被一 起分组到单个实施例、 图、 或者对其的描述中。 然而, 并不应将该公开的方法 解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确 记载的特征更多的特征。 更确切地说, 如下面的权利要求书所反映的那样, 发 明方面在于少于前面公开的单个实施例的所有特征。 因此, 遵循具体实施方式 的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为 本发明的单独实施例。
本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适 应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实 施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它 们分成多个子模块或子单元或子组件。 除了这样的特征和 /或过程或者单元中 的至少一些是相互排斥之外, 可以釆用任何组合对本说明书(包括伴随的权利 要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所 有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、 摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征 来代替。
此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它 实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意 味着处于本发明的范围之内并且形成不同的实施例。例如,在下面的权利要求 书中, 所要求保护的实施例的任意之一都可以以任意的组合方式来使用。
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器 上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解, 可以在实践中使用微处理器或者数字信号处理器(DSP )来实现根据本发明实 施例的基于 Android的广播拦截装置中的一些或者全部部件的一些或者全部功 能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备 或者装置程序 (如计算机程序和计算机程序产品)。 这样的实现本发明的程序 可以存储在计算机可读介质上, 或者可以具有一个或者多个信号的形式。这样 的信号可以从因特网网站上下载得到, 或者在载体信号上提供, 或者以任何其 他形式提供。
应该注意的是, 上述实施例对本发明进行说明而不是对本发明进行限制, 并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实 施例。在权利要求中, 不应将位于括号之间的任何参考符号构造成对权利要求 的限制。 单词 "包含" 不排除存在未列在权利要求中的元件或步骤。 位于元件 之前的单词 "一" 或 "一个" 不排除存在多个这样的元件。 本发明可以借助于 包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若 干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具 体体现。 单词第一、 第二以及第三等的使用不表示任何顺序。 可将这些单词解 释为名称。
例如, 图 4 示出了可以实现本发明的智能设备的广播拦截方法的通信设 备。该通信设备传统上包括处理器 410和以存储器 420形式的计算机程序产品 或者计算机可读介质。 存储器 420可以是诸如闪存、 EEPROM (电可擦除可编 程只读存储器)、 EPROM、 硬盘或者 ROM之类的电子存储器。 存储器 420具 有用于执行上述方法中的任何方法步骤的程序代码 431的存储空间 430。例如, 用于程序代码的存储空间 430 可以包括分别用于实现上面的方法中的各种步 骤的各个程序代码 431。 这些程序代码可以从一个或者多个计算机程序产品中 读出或者写入到这一个或者多个计算机程序产品中。这些计算机程序产品包括 诸如硬盘, 紧致盘(CD )、 存储卡或者软盘之类的程序代码载体。 这样的计算 机程序产品通常为如参考图 5所述的便携式或者固定存储单元。该存储单元可 以具有与图 4的通信设备中的存储器 420类似布置的存储段或者存储空间等。 程序代码可以例如以适当形式进行压缩。通常,存储单元包括用于执行根据本 发明的方法步骤的程序 431,, 即可以由例如诸如 410之类的处理器读取的代 码, 这些代码当由通信设备运行时, 导致该通信设备执行上面所描述的方法中 的各个步骤。
应该注意的是, 上述实施例对本发明进行说明而不是对本发明进行限制, 并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实 施例。在权利要求中, 不应将位于括号之间的任何参考符号构造成对权利要求 的限制。 单词 "包含" 不排除存在未列在权利要求中的元件或步骤。 位于元件 之前的单词 "一" 或 "一个" 不排除存在多个这样的元件。 本发明可以借助于 包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若 干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具 体体现。 单词第一、 第二以及第三等的使用不表示任何顺序。 可将这些单词解 释为名称。

Claims

权 利 要 求
1、 一种智能设备的广播拦截方法, 其包括:
在框架层, 获取广播中心需要向应用的广播接收器发送的广播; 根据所述广播中包含的信息确定所述广播的广播类型;
根据所述广播类型以及广播订阅信息确定需要接收所述广播的应用的标 识信息;
在判断出所述应用的标识信息与预先设定的广播拦截信息集合中应用的 标识信息匹配、且所述广播的广播类型与预先针对应用设定的广播过滤类型匹 配的情况下, 禁止向所述应用的广播接收器发送所述广播; 否则, 允许向所述 应用的广播接收器发送所述广播。
2、 如权利要求 1所述的方法, 其中, 所述广播过滤类型表现为广播类型 过滤器的形式。
3、 如权利要求 2所述的方法, 所述方法还包括:
接收用户输入的广播拦截策略信息,根据所述广播拦截策略信息在所述广 播拦截信息集合中设置应用的标识信息,并根据所述广播拦截策略信息针对应 用设置广播类型过滤器。
4、 如权利要求 3所述的方法, 其中, 应用层中设置有设置广播拦截策略 函数, 框架层中设置有安全服务的设置广播拦截策略函数;
且所述接收用户输入的广播拦截策略信息,根据所述广播拦截策略信息在 所述广播拦截信息集合中设置应用的标识信息,并根据所述广播拦截策略信息 针对应用设置广播类型过滤器包括:
应用层的设置广播拦截策略函数接收用户输入的广播拦截策略信息,并调 用框架层的设置广播拦截策略函数,以将应用的包名称和广播类型过滤器传输 给所述框架层的设置广播拦截策略函数;
框架层的设置广播拦截策略函数将所述包名称设置于广播拦截信息集合 中, 并在框架层为所述应用设置广播类型过滤器。
5、 如权利要求 1至 4中任一权利要求所述的方法, 所述获取广播中心需 要向应用的广播接收器发送的广播包括:
从广播中心的广播队列中取出一条广播。
6、 如权利要求 5所述的方法, 其中, 所述从广播中心的广播队列中取出 一条广播包括:
框架层中的处理下一条广播函数从广播中心的广播队列中取出一条广播; 且所述处理下一条广播函数还适于:根据所述广播中包含的信息确定所述 广播的广播类型,根据所述广播类型以及广播订阅信息确定需要接收所述广播 的应用的标识信息,调用广播拦截策略查询函数, 并将所述应用的标识信息和 广播类型提供给所述广播拦截策略查询函数。
7、 如权利要求 6所述的方法, 其中, 所述广播拦截策略查询函数具体适 于:判断所述应用的标识信息与预先设定的广播拦截信息集合中应用的标识信 息是否匹配以及所述广播的广播类型与预先针对应用设定的广播过滤类型是 否匹配, 并将判断结果返回给所述处理下一条广播函数。
8、 如权利要求 7所述的方法, 其中, 所述处理下一条广播函数还具体适 于:针对所述广播拦截策略查询函数返回的不需要进行广播拦截的信息进行相 应的广播发送处理,针对所述广播拦截策略查询函数返回的需要进行广播拦截 的信息不进行相应的广播发送处理。
9、 如权利要求 1至 4中任一权利要求所述的方法, 其中, 所述智能设备 为基于 Andriod操作系统的智能设备。
10、 如权利要求 1至 4中任一权利要求所述的方法, 其中, 所述广播订阅 信息为: 应用注册广播接收器所产生的广播订阅信息。
11、 如权利要求 1至 4中任一权利要求所述的方法, 其中, 所述广播类型 包括: 开机类型或者网络连接类型。
12、 一种智能设备的广播拦截装置, 其包括:
获取模块,设置于框架层,适于获取广播中心需要向应用的广播接收器发 送的广播;
第一确定模块,设置于框架层,适于根据所述广播中包含的信息确定所述 广播的广播类型;
第二确定模块,设置于框架层,适于根据所述广播类型以及广播订阅信息 确定需要接收所述广播的应用的标识信息;
拦截处理模块,设置于框架层,适于在判断出所述应用的标识信息与预先 设定的广播拦截信息集合中应用的标识信息匹配、且所述广播的广播类型与预 先针对应用设定的广播过滤类型匹配的情况下,禁止向所述应用的广播接收器 发送所述广播; 否则, 允许向所述应用的广播接收器发送所述广播。
13、 如权利要求 12所述的装置, 其中, 所述广播过滤类型表现为广播类 型过滤器的形式。
14、 如权利要求 13所述的装置, 其中, 所述装置还包括:
广播拦截策略设置模块,适于接收用户输入的广播拦截策略信息,根据所 述广播拦截策略信息在所述广播拦截信息集合中设置应用的标识信息,并根据 所述广播拦截策略信息针对应用设置广播类型过滤器。
15、 如权利要求 14所述的装置, 其中, 所述广播拦截策略设置模块包括: 设置于应用层中的设置广播拦截策略函数以及设置于框架层中的安全服务的 设置广播拦截策略函数;
应用层的设置广播拦截策略函数接收用户输入的广播拦截策略信息,并调 用框架层的设置广播拦截策略函数,以将应用的包名称和广播类型过滤器传输 给所述框架层的设置广播拦截策略函数;
框架层的设置广播拦截策略函数将所述包名称设置于广播拦截信息集合 中, 并在框架层为所述应用设置广播类型过滤器。
16、如权利要求 12至 14中任一权利要求所述的装置, 所述获取模块具体 适于:
从广播中心的广播队列中取出一条广播。
17、 如权利要求 16所述的装置, 其中, 所述获取模块设置于框架层中的 处理下一条广播函数中, 且从广播中心的广播队列中取出一条广播包括: 框架层中的处理下一条广播函数从广播中心的广播队列中取出一条广播; 且所述第一确定模块和第二确定模块设置于处理下一条广播函数中,且所 述处理下一条广播函数中的第一确定模块根据所述广播中包含的信息确定所 述广播的广播类型,所述处理下一条广播函数中的第而确定模块根据所述广播 类型以及广播订阅信息确定需要接收所述广播的应用的标识信息,所述处理下 一条广播函数中的拦截处理模块调用广播拦截策略查询函数,并将所述应用的 标识信息和广播类型提供给所述广播拦截策略查询函数。
18、 如权利要求 17所述的装置, 其中, 所述广播拦截策略查询函数属于 拦截处理模块,且所述广播拦截策略查询函数具体适于: 判断所述应用的标识 信息与预先设定的广播拦截信息集合中应用的标识信息是否匹配以及所述广 播的广播类型与预先针对应用设定的广播过滤类型是否匹配,并将判断结果返 回给所述处理下一条广播函数。
19、 如权利要求 18所述的装置, 其中, 所述处理下一条广播函数中的拦 截处理模块还具体适于:针对所述广播拦截策略查询函数返回的不需要进行广 播拦截的信息进行相应的广播发送处理,针对所述广播拦截策略查询函数返回 的需要进行广播拦截的信息不进行相应的广播发送处理。
20、 如权利要求 12至 14中任一权利要求所述的装置, 其中, 所述智能设 备为基于 Andriod操作系统的智能设备。
21、 如权利要求 12至 14中任一权利要求所述的装置, 其中, 所述广播订 阅信息为: 应用注册广播接收器所产生的广播订阅信息。
22、 如权利要求 12至 14中任一权利要求所述的装置, 其中, 所述广播类 型包括: 开机类型或者网络连接类型。
23、 一种计算机程序, 包括计算机可读代码, 当通信设备运行所述计算机 可读代码时, 导致权利要求 1-11中的任一项权利要求所述的方法被执行。
24、 一种计算机可读介质, 其中存储了如权利要求 23所述的计算机程序。
PCT/CN2014/085189 2013-11-15 2014-08-26 智能设备的广播拦截方法和装置 Ceased WO2015070655A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US15/036,706 US10237158B2 (en) 2013-11-15 2014-08-26 Broadcast interception method and apparatus of intelligent device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310573881.1 2013-11-15
CN201310573881.1A CN103595547B (zh) 2013-11-15 2013-11-15 智能设备的广播拦截方法和装置

Publications (1)

Publication Number Publication Date
WO2015070655A1 true WO2015070655A1 (zh) 2015-05-21

Family

ID=50085539

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/085189 Ceased WO2015070655A1 (zh) 2013-11-15 2014-08-26 智能设备的广播拦截方法和装置

Country Status (3)

Country Link
US (1) US10237158B2 (zh)
CN (1) CN103595547B (zh)
WO (1) WO2015070655A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108011860A (zh) * 2016-10-28 2018-05-08 华为技术有限公司 一种处理广播消息的方法及装置
EP3754902A1 (en) * 2016-08-31 2020-12-23 Huawei Technologies Co., Ltd. Broadcast message management method and apparatus

Families Citing this family (46)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103595547B (zh) * 2013-11-15 2016-07-13 北京奇虎科技有限公司 智能设备的广播拦截方法和装置
CN105094869B (zh) * 2014-05-14 2019-09-20 腾讯科技(深圳)有限公司 目标程序确定方法及装置
CN105278931B (zh) * 2014-06-19 2019-08-02 腾讯科技(深圳)有限公司 一种安卓系统禁止应用程序后台自启的方法及终端
CN104052909A (zh) * 2014-06-19 2014-09-17 深圳市中兴移动通信有限公司 拍摄方法和装置
CN104135563B (zh) * 2014-07-04 2017-03-15 北京奇虎科技有限公司 一种通信处理方法和系统
CN104123162B (zh) * 2014-07-29 2017-06-16 北京奇虎科技有限公司 控制应用程序自启的方法及装置
CN104199934B (zh) * 2014-09-05 2017-07-04 北京奇虎科技有限公司 针对应用程序的广告进行拦截的方法及装置
CN104375869B (zh) * 2014-11-28 2018-04-10 北京奇虎科技有限公司 自启动应用控制方法及装置
CN104462978B (zh) * 2014-12-24 2017-09-15 北京奇虎科技有限公司 一种应用程序权限管理的方法和装置
CN104601341B (zh) * 2014-12-30 2018-01-19 广东欧珀移动通信有限公司 一种广播拦截方法和装置
CN106304044B (zh) * 2015-05-28 2020-02-21 宇龙计算机通信科技(深圳)有限公司 一种增强通话安全性的方法、装置及通信终端
CN105094278B (zh) * 2015-06-30 2018-10-12 努比亚技术有限公司 一种信息处理方法及装置
CN104994481B (zh) * 2015-07-10 2018-09-28 上海斐讯数据通信技术有限公司 一种Android系统中应用程序之间广播消息的收发方法及系统
CN105208590B (zh) * 2015-08-17 2018-07-06 广东欧珀移动通信有限公司 移动终端操作系统卡顿异常的检测恢复方法及移动终端
CN105446853A (zh) * 2015-11-03 2016-03-30 深圳市金立通信设备有限公司 一种应用程序管理方法及终端
CN105335243A (zh) * 2015-11-30 2016-02-17 上海斐讯数据通信技术有限公司 安卓系统中的广播信息运行方法及系统
CN105516487B (zh) * 2015-12-04 2019-07-16 上海斐讯数据通信技术有限公司 广播接收方法、系统及设备
EP3418892B1 (en) 2016-03-30 2021-09-01 Huawei Technologies Co., Ltd. Method and device for managing and controlling broadcast, and terminal
CN106022099A (zh) * 2016-05-16 2016-10-12 上海传英信息技术有限公司 应用程序的自启动管理装置和方法
CN106095064B (zh) * 2016-06-16 2019-07-09 惠州Tcl移动通信有限公司 一种移动终端禁止应用接收特定广播的方法及系统
CN106201738B (zh) * 2016-06-27 2020-09-29 北京小米移动软件有限公司 系统广播调用方法及装置
CN106201740A (zh) * 2016-06-29 2016-12-07 北京金山安全软件有限公司 一种广播消息管理方法、装置及设备
CN106775679A (zh) * 2016-11-30 2017-05-31 深圳天珑无线科技有限公司 一种消息处理方法和装置
CN106937258B (zh) * 2017-03-10 2019-07-12 Oppo广东移动通信有限公司 一种广播的控制方法、装置及移动终端
CN106874131B (zh) * 2017-03-10 2020-06-09 Oppo广东移动通信有限公司 广播队列调整方法、装置和终端设备
CN106936994B (zh) * 2017-03-10 2019-10-01 Oppo广东移动通信有限公司 一种广播接收者的控制方法、装置及移动终端
CN106686557B (zh) * 2017-03-10 2019-05-03 Oppo广东移动通信有限公司 广播处理方法、装置和终端设备
CN106933686A (zh) * 2017-03-10 2017-07-07 广东欧珀移动通信有限公司 一种调整广播消息队列的方法、装置及终端
CN106844069A (zh) 2017-03-10 2017-06-13 广东欧珀移动通信有限公司 调整广播消息队列的方法、装置及终端
CN106899943B (zh) * 2017-03-10 2019-12-06 Oppo广东移动通信有限公司 控制广播发送者发送广播消息的方法、装置和终端设备
CN106954191B (zh) * 2017-03-10 2019-06-07 Oppo广东移动通信有限公司 广播发送方法、装置和终端设备
CN106919460A (zh) 2017-03-10 2017-07-04 广东欧珀移动通信有限公司 一种控制广播发送的方法、装置及移动终端
CN106878957B (zh) * 2017-03-10 2019-05-14 Oppo广东移动通信有限公司 广播队列生成方法、装置和终端设备
CN106851595B (zh) * 2017-03-10 2019-08-02 Oppo广东移动通信有限公司 有序广播处理方法、装置和终端设备
CN106953852B (zh) * 2017-03-10 2019-12-31 Oppo广东移动通信有限公司 广播接收器的注册方法、装置和终端设备
CN106921947B (zh) * 2017-03-10 2020-09-29 Oppo广东移动通信有限公司 调整广播消息队列的方法、装置及终端
CN106951333A (zh) * 2017-03-10 2017-07-14 广东欧珀移动通信有限公司 一种广播控制方法、装置及移动终端
CN106936826B (zh) * 2017-03-10 2020-01-14 Oppo广东移动通信有限公司 广播接收器的注册方法、装置和终端设备
CN106936827B (zh) * 2017-03-10 2019-03-08 Oppo广东移动通信有限公司 一种广播接收者队列调整方法、装置及终端
CN106899604B (zh) * 2017-03-14 2020-06-05 东软集团股份有限公司 数据包过滤规则的处理方法及装置
CN108196960B (zh) * 2017-08-31 2023-08-04 中兴通讯股份有限公司 一种应用的管控方法、终端及存储介质
CN107846725B (zh) * 2017-10-27 2021-01-15 努比亚技术有限公司 一种通知消息的处理方法、终端及存储介质
CN107872528B (zh) * 2017-11-21 2020-11-06 口碑(上海)信息技术有限公司 消息推送方法及装置
CN107861608A (zh) * 2017-11-21 2018-03-30 广东欧珀移动通信有限公司 系统通知服务控制方法、装置、终端设备及存储介质
CN109002323A (zh) * 2018-06-27 2018-12-14 北京金山安全软件有限公司 一种数据处理方法、装置及电子设备
CN112616179A (zh) * 2020-12-31 2021-04-06 努比亚技术有限公司 一种广播拦截方法、终端及计算机可读存储介质

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102428688A (zh) * 2009-05-19 2012-04-25 高通股份有限公司 通过具有内容过滤能力的移动广播设备向客户端应用递送选择性内容
CN103368914A (zh) * 2012-03-31 2013-10-23 百度在线网络技术(北京)有限公司 一种用于拦截消息的方法、装置和设备
CN103595547A (zh) * 2013-11-15 2014-02-19 北京奇虎科技有限公司 智能设备的广播拦截方法和装置

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103152701A (zh) * 2011-12-07 2013-06-12 腾讯科技(深圳)有限公司 一种安卓系统中获取服务信息的方法和装置
CN102547713A (zh) * 2011-12-21 2012-07-04 成都三零瑞通移动通信有限公司 一种针对x卧底软件的防激活方法
CN102799643A (zh) * 2012-06-30 2012-11-28 成都西可科技有限公司 移动平台广告过滤方法
CN102752730B (zh) * 2012-07-19 2014-04-16 腾讯科技(深圳)有限公司 消息处理的方法及装置
US9736166B2 (en) * 2015-06-08 2017-08-15 Microsoft Technology Licensing, Llc System and method for using per-application profiles in a computing device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102428688A (zh) * 2009-05-19 2012-04-25 高通股份有限公司 通过具有内容过滤能力的移动广播设备向客户端应用递送选择性内容
CN103368914A (zh) * 2012-03-31 2013-10-23 百度在线网络技术(北京)有限公司 一种用于拦截消息的方法、装置和设备
CN103595547A (zh) * 2013-11-15 2014-02-19 北京奇虎科技有限公司 智能设备的广播拦截方法和装置

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3754902A1 (en) * 2016-08-31 2020-12-23 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 (zh) * 2016-10-28 2018-05-08 华为技术有限公司 一种处理广播消息的方法及装置
CN108011860B (zh) * 2016-10-28 2020-05-08 华为技术有限公司 一种处理广播消息的方法、装置及终端

Also Published As

Publication number Publication date
CN103595547B (zh) 2016-07-13
US10237158B2 (en) 2019-03-19
US20160323170A1 (en) 2016-11-03
CN103595547A (zh) 2014-02-19

Similar Documents

Publication Publication Date Title
CN103595547B (zh) 智能设备的广播拦截方法和装置
CN104462978B (zh) 一种应用程序权限管理的方法和装置
CN103577757B (zh) 病毒防御方法和装置
US8626125B2 (en) Apparatus and method for securing mobile terminal
US8918841B2 (en) Hardware interface access control for mobile applications
CN110869907B (zh) 一种浏览应用页面的方法及终端
CN103595867B (zh) 基于多卡识别的应用程序实现方法及装置
CN105095788B (zh) 隐私数据保护的方法、装置及系统
WO2014055354A1 (en) Protecting users from undesirable content
CN104020999B (zh) 一种应用程序的管理方法和系统
CN104376263A (zh) 应用程序行为拦截的方法和装置
WO2015070654A1 (zh) 基于Android的移动设备安全保护方法和装置
CN106603498B (zh) 事件上报方法及装置
CN104660557A (zh) 操作处理方法和装置
US20170126556A1 (en) Information transmission method and apparatus, device and storage medium
CN103888619A (zh) 一种消息处理方法及其系统
WO2018171092A1 (zh) 权限更新方法和终端设备
CN103634935B (zh) 基于wps或qss的网络接入方法和装置
CN115412920A (zh) 一种物联网设备绑定系统、方法、装置及电子设备
CN109977676B (zh) 一种应用程序的管控方法、装置和设备
KR20150005343A (ko) 메시지 가로채기 방지 방법 및 이를 이용하는 휴대 단말기
CN112837019A (zh) 快递轨迹数据的推送方法、装置和设备
CN105991730A (zh) 一种信息处理方法及服务器、移动终端
CN110784551A (zh) 基于多租户的数据处理方法、装置、设备和介质
CN103067360B (zh) 程序网络行为识别方法及系统

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14862153

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 15036706

Country of ref document: US

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14862153

Country of ref document: EP

Kind code of ref document: A1