[go: up one dir, main page]

CN106844070B - Broadcast control method and device and mobile terminal - Google Patents

Broadcast control method and device and mobile terminal Download PDF

Info

Publication number
CN106844070B
CN106844070B CN201710144286.4A CN201710144286A CN106844070B CN 106844070 B CN106844070 B CN 106844070B CN 201710144286 A CN201710144286 A CN 201710144286A CN 106844070 B CN106844070 B CN 106844070B
Authority
CN
China
Prior art keywords
broadcast
application
receiver queue
registered
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.)
Expired - Fee Related
Application number
CN201710144286.4A
Other languages
Chinese (zh)
Other versions
CN106844070A (en
Inventor
林志泳
裴润升
付亮晶
吴汝煜
张俊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710144286.4A priority Critical patent/CN106844070B/en
Publication of CN106844070A publication Critical patent/CN106844070A/en
Application granted granted Critical
Publication of CN106844070B publication Critical patent/CN106844070B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/542Event management; Broadcasting; Multicasting; Notifications

Landscapes

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

Abstract

The embodiment of the invention discloses a broadcast control method, a broadcast control device and a mobile terminal. The method comprises the following steps: acquiring the number of broadcasts received by first application registration; judging whether the broadcast number is larger than a first threshold value; if the broadcast number is larger than a first threshold value, determining the first application as an illegal registered broadcast application; acquiring a receiver queue of a target broadcast; optimizing the receiver queue according to the determined illegal registered broadcast application. The broadcast control method provided by the embodiment of the invention can reduce the power consumption of the system and improve the resource utilization rate.

Description

一种广播的控制方法、装置及移动终端A broadcast control method, device and mobile terminal

技术领域technical field

本发明实施例涉及广播机制技术领域,尤其涉及一种广播的控制方法、装置及移动终端。Embodiments of the present invention relate to the technical field of broadcast mechanisms, and in particular, to a broadcast control method, apparatus, and mobile terminal.

背景技术Background technique

在Android系统中,广播是一种广泛运用在应用程序之间传输信息的机制。Android系统通过发出广播消息,来通知各应用组件一些系统事件,如地域变换、电量不足、来电信息等,这些消息通常称为系统广播消息。第三方应用也可以发送广播消息,这些消息称为自定义广播消息。In the Android system, broadcasting is a widely used mechanism to transmit information between applications. The Android system notifies each application component of some system events by sending out broadcast messages, such as region change, low battery, incoming call information, etc. These messages are usually called system broadcast messages. Third-party apps can also send broadcast messages, which are called custom broadcast messages.

然而,随着技术的发展,出现了一些非法应用,为达到某种非法目的,非法应用经常在后台通过接收各种各样的广播以实现自启动。由于非法应用对广播的接收需要占用广播队列,使其他应用对广播的相应滞后,影响其他程序对广播消息的响应时间。此外,非法程序在后台启动会造成系统电量消耗和资源消耗。However, with the development of technology, some illegal applications have appeared. In order to achieve some illegal purpose, illegal applications often receive various broadcasts in the background to achieve self-starting. Because the illegal application needs to occupy the broadcast queue to receive the broadcast, the corresponding delay of other applications to the broadcast will be affected, and the response time of other programs to the broadcast message will be affected. In addition, illegal programs starting in the background will cause system power consumption and resource consumption.

发明内容SUMMARY OF THE INVENTION

本发明提供一种广播的控制方法、装置及移动终端,可以降低系统耗电,提高资源利用率。The present invention provides a broadcast control method, device and mobile terminal, which can reduce system power consumption and improve resource utilization.

第一方面,本发明实施例提供了一种广播的控制方法,该方法包括:In a first aspect, an embodiment of the present invention provides a broadcast control method, the method includes:

获取第一应用注册接收的广播数量;Obtain the number of broadcasts registered and received by the first application;

判断所述广播数量是否大于第一阈值;judging whether the broadcast quantity is greater than a first threshold;

如果所述广播数量大于第一阈值,则将所述第一应用确定为非法注册广播应用;If the broadcast quantity is greater than a first threshold, determining the first application as an illegally registered broadcast application;

获取目标广播的接收者队列;Get the receiver queue of the target broadcast;

根据确定的所述非法注册广播应用对所述接收者队列进行优化。The receiver queue is optimized according to the determined illegal registration broadcast application.

第二方面,本发明实施例还提供了一种广播的控制装置,该装置包括:In a second aspect, an embodiment of the present invention further provides a broadcast control device, the device comprising:

注册接收的广播数量获取模块,用于获取第一应用注册接收的广播数量;A module for acquiring the number of broadcasts registered and received, used to acquire the number of broadcasts registered and received by the first application;

非法注册广播应用确定模块,用于判断所述广播数量是否大于第一阈值;如果所述广播数量大于第一阈值,则将所述第一应用确定为非法注册广播应用;an illegally registered broadcast application determination module, configured to determine whether the broadcast quantity is greater than a first threshold; if the broadcast quantity is greater than the first threshold, determine the first application as an illegally registered broadcast application;

接收者队列获取模块,用于获取目标广播的接收者队列;The receiver queue acquisition module is used to acquire the receiver queue of the target broadcast;

接收者队列优化模块,用于根据确定的所述非法注册广播应用对所述接收者队列进行优化。A receiver queue optimization module, configured to optimize the receiver queue according to the determined illegally registered broadcast application.

第三方面,本发明实施例还提供了一种移动终端,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现以下步骤:In a third aspect, an embodiment of the present invention further provides a mobile terminal, including a memory, a processor, and a computer program stored in the memory and running on the processor, where the processor implements the following steps when executing the computer program :

获取第一应用注册接收的广播数量;Obtain the number of broadcasts registered and received by the first application;

判断所述广播数量是否大于第一阈值;judging whether the broadcast quantity is greater than a first threshold;

如果所述广播数量大于第一阈值,则将所述第一应用确定为非法注册广播应用;If the broadcast quantity is greater than a first threshold, determining the first application as an illegally registered broadcast application;

获取目标广播的接收者队列;Get the receiver queue of the target broadcast;

根据确定的所述非法注册广播应用对所述接收者队列进行优化。The receiver queue is optimized according to the determined illegal registration broadcast application.

本发明实施例通过对于应用注册接收的广播的数量与某一特定值相比较,当大于这一特定值时,则确定该应用为非法注册广播应用,当非法注册广播应用在某一广播接收者队列中时,对该广播接收者队列进行优化,本发明实施例的技术方案可以解决非法程序接收到广播消息在后台启动会造成系统电量消耗和资源消耗问题,可以实现降低系统耗电,提高资源利用率的效果。In this embodiment of the present invention, the number of broadcasts registered and received by the application is compared with a specific value, and when the number is greater than the specific value, it is determined that the application is an illegally registered broadcast application. When the queue is in the queue, the broadcast receiver queue is optimized. The technical solution of the embodiment of the present invention can solve the problem of system power consumption and resource consumption caused by illegal programs receiving broadcast messages and starting in the background, and can reduce system power consumption and improve resources. utilization effect.

附图说明Description of drawings

图1是本发明实施例提供的一种广播的控制方法的流程图;1 is a flowchart of a method for controlling broadcasting provided by an embodiment of the present invention;

图2是本发明实施例提供的一种广播的控制方法的流程图;2 is a flowchart of a method for controlling broadcasting provided by an embodiment of the present invention;

图3是本发明实施例提供的一种广播的控制方法的流程图;3 is a flowchart of a method for controlling broadcasting provided by an embodiment of the present invention;

图4是本发明实施例提供的一种广播的控制装置的结构示意图;4 is a schematic structural diagram of a broadcast control apparatus provided by an embodiment of the present invention;

图5为本发明实施例提供的一种移动终端的结构示意图。FIG. 5 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.

具体实施方式Detailed ways

下面结合附图和实施例对本发明作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释本发明,而非对本发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本发明相关的部分而非全部结构。The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention. In addition, it should be noted that, for the convenience of description, the drawings only show some but not all structures related to the present invention.

在更加详细地讨论示例性实施例之前应当提到的是,一些示例性实施例被描述成作为流程图描绘的处理或方法。虽然流程图将各步骤描述成顺序的处理,但是其中的许多步骤可以被并行地、并发地或者同时实施。此外,各步骤的顺序可以被重新安排。当其操作完成时所述处理可以被终止,但是还可以具有未包括在附图中的附加步骤。所述处理可以对应于方法、函数、规程、子例程、子程序等等。Before discussing the exemplary embodiments in greater detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowchart depicts the steps as a sequential process, many of the steps may be performed in parallel, concurrently, or concurrently. Furthermore, the order of the steps can be rearranged. The process may be terminated when its operation is complete, but may also have additional steps not included in the figures. The processes may correspond to methods, functions, procedures, subroutines, subroutines, and the like.

实施例一Example 1

图1是本发明实施例提供的一种广播的控制方法的流程图,本实施例可适用非法注册广播应用接收已注册接收的广播消息自启动的情况,该方法可以由本发明实施例所提供的广播的控制装置来执行,该装置可以由软件和/或硬件的方式来实现,并可集成于移动终端中。FIG. 1 is a flowchart of a broadcast control method provided by an embodiment of the present invention. This embodiment is applicable to the situation where an illegally registered broadcast application receives a registered and received broadcast message and starts automatically. The method can be provided by the embodiment of the present invention. The broadcast control device can be implemented by means of software and/or hardware, and can be integrated into the mobile terminal.

如图1所示,所述广播的控制方法包括:As shown in Figure 1, the control method of the broadcast includes:

S110、获取第一应用注册接收的广播数量。S110. Acquire the number of broadcasts registered and received by the first application.

由于广播机制是一种消息订阅/发布机制,因此,使用广播这种消息驱动模型的第一步便是订阅消息,而订阅广播可以是对应用的广播接收器进行注册接收。这样,在广播消息发出时,可以通过注册接收的广播接收器将广播消息发送到已订阅该广播消息的应用,以实现对应用程序的控制作用。其中,可以实现应用程序的自启动、数据存储以及自行关闭等控制。Since the broadcast mechanism is a message subscription/publishing mechanism, the first step in using the message-driven model of broadcasting is to subscribe to messages, and subscribing to broadcasting can be registered and received by the application's broadcast receiver. In this way, when a broadcast message is sent, the broadcast receiver can be registered to send the broadcast message to the application that has subscribed to the broadcast message, so as to control the application program. Among them, the control of self-starting, data storage and self-closing of the application program can be realized.

第一应用可以是系统应用程序,也可以是第三方应用程序,由于本发明实施例所提供的技术方案主要是针对非法注册广播应用,所以主要是指第三方应用程序。The first application may be a system application or a third-party application. Since the technical solution provided by the embodiment of the present invention is mainly aimed at illegally registering broadcast applications, it mainly refers to a third-party application.

第一应用注册接收的广播数量即为第一应用注册接收广播的总数目,例如,第一应用注册接收开机广播、关机广播、音量调节广播,蜂窝网络切换至无限局域网的广播、无限局域网切换至蜂窝网络的广播以及屏幕亮度调节的广播等等。除此之外,由于第三方应用程序也能够发布广播消息,所以广播还可以包括由系统应用程序和第三方应用程序发出的广播消息。示例性的,如某输入法因为可能在很多应用中都能够用到,所以其注册接收的广播数量可以是150个,而某浏览器注册接收的广播数量可能只有75个。The number of broadcasts registered and received by the first application is the total number of broadcasts registered and received by the first application. For example, the first application registered to receive broadcasts for power-on, power-off, volume adjustment, the broadcast from the cellular network to the wireless LAN, and the wireless LAN to switch to the broadcast. Broadcasts from cellular networks and broadcasts of screen brightness adjustments, etc. Besides, since third-party applications can also publish broadcast messages, broadcasts may also include broadcast messages issued by system applications and third-party applications. For example, because an input method may be used in many applications, the number of broadcasts registered and received by a certain input method may be 150, while the number of broadcasts registered by a browser may be only 75.

第一应用注册接收的广播数量可以保存在该应用的广播接收器当中,也可以将每一应用注册接收的广播数量存储在系统广播管理模块当中。这样,在需要获取应用注册接收的广播数量时,可以直接进行数据的调用。The number of broadcasts registered and received by the first application may be stored in the broadcast receiver of the application, or the number of broadcasts registered and received by each application may be stored in the system broadcast management module. In this way, when the number of broadcasts registered and received by the application needs to be obtained, the data can be called directly.

S120、判断广播数量是否大于第一阈值。S120. Determine whether the broadcast quantity is greater than a first threshold.

其中,第一阈值可以是在设备出厂前设置好的,也可以是在设备使用过程中根据各个应用程序注册接收广播数量的大数据统计出来的一个标准值。例如,根据统计,得到一般应用接收的广播数量为100,则第一阈值可以设置为125。The first threshold may be set before the device leaves the factory, or may be a standard value calculated according to the big data of the number of broadcasts registered and received by each application during the use of the device. For example, according to statistics, it is found that the number of broadcasts received by a general application is 100, and the first threshold may be set to 125.

在获取到应用程序注册接收的广播数量之后,判断其与第一阈值的大小关系,判断方式可以通过比较器来实现。After the number of broadcasts registered and received by the application program is obtained, the magnitude relationship between the broadcast quantity and the first threshold is determined, and the determination method can be implemented by a comparator.

S130、如果广播数量大于第一阈值,则将第一应用确定为非法注册广播应用。S130. If the number of broadcasts is greater than the first threshold, determine the first application as an illegally registered broadcast application.

其中,非法注册广播应用可以是在系统广播管理模块中注册接收较多数量的广播,一旦有其注册接收的广播消息发布,就可以在接收到广播消息之后自启动。非法注册广播应用的自启动不仅消耗系统内存和能源,同时其在注册接收广播消息之后,还会占用广播消息发送的线程,使得其他应用程序响应广播消息的速度变慢,同时还可能导致广播消息发送的线程拥堵的情况。The illegally registered broadcast application may be registered in the system broadcast management module to receive a large number of broadcasts. Once a broadcast message registered and received by the application is published, it can be automatically activated after receiving the broadcast message. The self-starting of illegally registered broadcast applications not only consumes system memory and energy, but also occupies the thread for sending broadcast messages after registering to receive broadcast messages, making other applications slow down in responding to broadcast messages, and may also cause broadcast messages. The sending thread is congested.

例如,当某应用注册接收的广播数量为160,将第一阈值设置为125,则这一应用的注册接收的广播数量明显大于一般应用的数量,可以将这一应用确定为非法注册广播应用。For example, when the number of broadcasts registered and received by an application is 160, and the first threshold is set to 125, the number of broadcasts registered and received by this application is significantly larger than that of general applications, and this application can be determined as an illegally registered broadcast application.

S140、获取目标广播的接收者队列。S140. Obtain a receiver queue of the target broadcast.

其中,目标广播可以是任意广播。目标广播接收者队列可以在系统广播管理模块中获取。目标广播接收者队列中,包含了所有对于这一目标广播进行注册接收的应用名单。The target broadcast can be any broadcast. The target broadcast receiver queue can be obtained in the system broadcast management module. The target broadcast receiver queue contains a list of all applications registered to receive the target broadcast.

例如,在ActivityManagerService(活动管理器服务)中,包含了各种广播消息。所有应用程序将广播接收器注册到ActivityManagerService中,订阅程序感兴趣的广播之后,当系统或者某应用程序需要发布广播时,广播的发送者同样是把广播发送到ActivityManagerService中,由ActivityManagerService去查找广播的接收者队列中这个广播的接收者,然后把广播分发给注册接收这个广播的接收者。For example, in ActivityManagerService (activity manager service), various broadcast messages are included. All applications register broadcast receivers in ActivityManagerService. After subscribing to broadcasts that the program is interested in, when the system or an application needs to publish broadcasts, the sender of broadcasts also sends broadcasts to ActivityManagerService, and ActivityManagerService searches for broadcasts. The receivers of the broadcast in the receiver queue, and then distribute the broadcast to the receivers registered to receive the broadcast.

S150、根据确定的非法注册广播应用对接收者队列进行优化。S150. Optimize the receiver queue according to the determined illegally registered broadcast application.

由于广播接收者是以队列形式存在线程当中,所以在接收者队列中,如果存在非法注册广播应用且非法注册广播应用在线程中位置靠前,就会导致其他应用获取广播消息并做出响应的速度受到影响。因此,在获取到接收者队列后,可以判断接收者队列是否含有非法注册广播应用,当含有非法注册广播应用时,可以对接收者队列进行优化,优化的方式包括调整接收者队列的顺序,将接收者队列中包含的非法注册广播应用的接收顺序向后顺延,这样设置的好处是可以使其他应用接收和响应广播消息的速度增快,避免接收者队列中存在一个或者多个非法注册广播应用影响其他应用接收和响应广播消息的速度。优化方式还可以是在接收者队列中,将非法注册广播应用在接收者队列中删除,使其不能够接收到广播消息并自启动或者实现其他功能,这样设置的好处是可以避免非法注册广播应用对线程资源的占用,并能够解决非法注册广播应用进行自启动或做出其他响应占用系统资源和耗费能源的问题。Since the broadcast receiver exists in the thread in the form of a queue, in the receiver queue, if there is an illegally registered broadcast application and the illegally registered broadcast application is located in the front of the thread, it will cause other applications to obtain the broadcast message and respond. Speed is affected. Therefore, after obtaining the receiver queue, it can be determined whether the receiver queue contains illegally registered broadcast applications. When there are illegally registered broadcast applications, the receiver queue can be optimized. The receiving order of illegally registered broadcast applications contained in the receiver queue is delayed. The advantage of this setting is that the speed of other applications receiving and responding to broadcast messages can be increased, avoiding the existence of one or more illegally registered broadcast applications in the receiver queue. Affects the speed at which other applications receive and respond to broadcast messages. The optimization method can also be to delete the illegal registration broadcast application from the receiver queue in the receiver queue, so that it cannot receive broadcast messages and automatically start or implement other functions. The advantage of this setting is to avoid illegal registration of broadcast applications. The occupation of thread resources can solve the problems of illegal registration of broadcast applications for self-starting or making other responses to occupy system resources and consume energy.

本实施例的技术方案,通过对于应用注册接收的广播数量与某一特定值相比较,当大于这一特定值时,则认为该应用为非法注册广播应用,当非法注册广播应用在某一广播接收者队列中时,对该广播接收者队列进行优化,解决非法程序接收到广播消息在后台启动会造成系统电量消耗和资源消耗问题,可以实现降低系统耗电,提高资源利用率的效果。In the technical solution of this embodiment, the number of broadcasts received by the application registration is compared with a specific value, and when the number is greater than the specific value, the application is considered to be an illegally registered broadcast application. When the receiver queue is in the receiver queue, the broadcast receiver queue is optimized to solve the problem of system power consumption and resource consumption caused by illegal programs receiving broadcast messages and starting in the background, which can reduce system power consumption and improve resource utilization.

图2是本发明实施例提供的一种广播的控制方法的流程图。FIG. 2 is a flowchart of a broadcast control method provided by an embodiment of the present invention.

如图2所示,所述广播的控制方法包括:As shown in Figure 2, the control method of the broadcast includes:

S210、获取第一应用注册接收的广播数量。S210. Acquire the number of broadcasts registered and received by the first application.

S220、判断广播数量是否大于第一阈值。S220. Determine whether the broadcast quantity is greater than a first threshold.

S230、如果广播数量大于第一阈值,则将第一应用确定为非法注册广播应用。S230. If the broadcast quantity is greater than the first threshold, determine the first application as an illegally registered broadcast application.

S240、获取目标广播的接收者队列。S240. Obtain the receiver queue of the target broadcast.

S250、判断接收者队列中接收者的数量是否大于第二阈值。S250. Determine whether the number of recipients in the recipient queue is greater than a second threshold.

接收者队列的数量就是对于目标广播注册接收应用的数量,例如对于关机广播,注册接收的应用的数量是135个,则在关机这一广播消息发布后,接收者队列中接收者的数量就是135个。The number of receiver queues is the number of applications registered and received for the target broadcast. For example, for shutdown broadcasts, the number of applications registered to receive is 135. After the shutdown broadcast message is published, the number of receivers in the receiver queue is 135. indivual.

对于接收者数量设定的第二阈值,可以是根据广播消息发布后所有接收者全部接收和/或响应广播消息的时间进行数据统计和计算得到的。例如,当接收者队列中接收者数量为50个时,所有接收者接收和/或响应广播的时间为50ms,当接收者队列中接收者数量为100个时,所有接收者接收和/或响应广播的时间为100ms,而在时间超过100ms时,用户会明显感受到系统运行速度变慢,所以,则可以将第二阈值设置为100。The second threshold set for the number of receivers may be obtained by data statistics and calculation according to the time when all receivers receive and/or respond to the broadcast message after the broadcast message is published. For example, when the number of receivers in the receiver queue is 50, the time for all receivers to receive and/or respond to the broadcast is 50ms, and when the number of receivers in the receiver queue is 100, all receivers receive and/or respond to the broadcast The broadcast time is 100ms, and when the time exceeds 100ms, the user will obviously feel that the system runs slower, so the second threshold can be set to 100.

S260、如果接收者队列中接收者的数量大于第二阈值,则根据确定的非法注册广播应用对接收者队列进行优化。S260. If the number of receivers in the receiver queue is greater than the second threshold, optimize the receiver queue according to the determined illegally registered broadcast application.

结合上述示例,当接收者队列中接收者的数量大于第二阈值,即大于100时,则根据确定的非法注册广播应用对接收者队列进行优化。优化方式可以为上述技术方案的将接收者队列重新排序或者将非法注册广播应用在接收者队列中删除。其中,将接收者队列重新排序的方式具体可以是:将非法注册广播应用在接收者队列中后置,以及将前台应用程序在接收者队列中前置。With reference to the above example, when the number of receivers in the receiver queue is greater than the second threshold, that is, greater than 100, the receiver queue is optimized according to the determined illegally registered broadcast application. The optimization method may be reordering the receiver queue or deleting the illegal registration broadcast application in the receiver queue according to the above technical solution. Specifically, the method of reordering the receiver queue may be: post the illegal registration broadcast application in the receiver queue, and put the foreground application program in front of the receiver queue.

例如,第二阈值设置为100,当接收者队列中接收者数量为120时,在判断接收者数量超过第二阈值之后,获取接收者队列中非法注册广播应用有25个,则对接收者队列进行优化,优化之后接收者队列中其他应用程序就可以正常接收和/或响应广播消息。For example, if the second threshold is set to 100, when the number of receivers in the receiver queue is 120, after judging that the number of receivers exceeds the second threshold, it is obtained that there are 25 illegally registered broadcast applications in the receiver queue, and the receiver queue After optimization, other applications in the receiver queue can receive and/or respond to broadcast messages normally.

在上述技术方案的基础上,本技术方案提供了对接收者队列中接收者数量进行判断,并根据判断结果对接收者队列进行合理优化,可以更加有效的进行广播接收者队列的优化。值得说明的是,如果接收者队列中接收者数量不大于第二阈值时,则可以选择对接收者队列进行优化和不优化,本技术方案不对其做限定。On the basis of the above technical solution, the technical solution provides to judge the number of receivers in the receiver queue, and reasonably optimize the receiver queue according to the judgment result, which can optimize the broadcast receiver queue more effectively. It should be noted that, if the number of receivers in the receiver queue is not greater than the second threshold, the receiver queue may be optimized or not optimized, which is not limited in this technical solution.

在上述各个方案的基础上,优选的,根据确定的非法注册广播应用对接收者队列进行优化包括:在所述接收者队列中删除确定的非法注册广播应用。这样设置可以解决非法程序接收到广播消息在后台启动会造成系统电量消耗和资源消耗问题,可以实现降低系统耗电,提高资源利用率的效果。Based on the above solutions, preferably, optimizing the receiver queue according to the determined illegally registered broadcast application includes: deleting the determined illegally registered broadcast application from the receiver queue. This setting can solve the problem of system power consumption and resource consumption caused by illegal programs receiving broadcast messages and starting in the background, and can achieve the effects of reducing system power consumption and improving resource utilization.

在上述各个方案的基础上,优选的,根据确定的非法注册广播应用对接收者队列进行优化包括:在所述接收者队列中删除与所述非法注册广播应用存在数据交互的关联应用。Based on the above solutions, preferably, optimizing the receiver queue according to the determined illegally registered broadcast application includes: deleting an associated application that has data interaction with the illegally registered broadcast application in the receiver queue.

其中,与所述非法注册广播应用存在数据交互的关联应用,可以是其他应用程序,例如某应用程序A由于注册接收广播种类的数量超出了第一阈值,被确定为非法注册广播应用,这一应用程序A在后台运行时与另一应用程序B存在数据交互,在接收者队列中如果存在应用程序B,则将应用程序B在接收者队列中删除。The associated application that has data interaction with the illegally registered broadcast application may be other applications. For example, an application A is determined to be an illegally registered broadcast application because the number of registered and received broadcast types exceeds the first threshold. When application A is running in the background, there is data interaction with another application B. If application B exists in the receiver queue, application B is deleted from the receiver queue.

此技术方案在上述各个技术方案的基础上,对根据确定的非法注册广播应用对接收者队列进行优化进行了进一步的优化,这样设置的好处是可以大幅度节省接收者队列所在线程的空间,提高系统运行速度,同时还可以实现降低系统耗电,提高资源利用率的效果。On the basis of the above technical solutions, this technical solution further optimizes the optimization of the receiver queue according to the determined illegal registration broadcast application. The system running speed can also reduce the system power consumption and improve the resource utilization effect.

图3是本发明实施例提供的一种广播的控制方法的流程图。FIG. 3 is a flowchart of a broadcast control method provided by an embodiment of the present invention.

如图3所示,所述广播的控制方法包括:As shown in Figure 3, the control method of the broadcast includes:

S310、获取第一应用注册接收的广播数量。S310: Acquire the number of broadcasts registered and received by the first application.

S320、判断广播数量是否大于第一阈值。S320. Determine whether the number of broadcasts is greater than a first threshold.

S330、如果广播数量大于第一阈值,则将第一应用确定为非法注册广播应用。S330. If the broadcast quantity is greater than the first threshold, determine the first application as an illegally registered broadcast application.

S340、获取目标广播的接收者队列。S340. Obtain the receiver queue of the target broadcast.

S350、判断目标广播的接收者队列中非法注册广播应用是否在预设应用列表中。若是则执行S360,若否则执行S370。S350. Determine whether the illegally registered broadcast application in the receiver queue of the target broadcast is in the preset application list. If so, execute S360; otherwise, execute S370.

其中,预设应用列表可以是在出厂前或者在用户使用过程中设置的应用列表,预设应用列表中,可以是经过系统认证或者根据用户的使用习惯确定的安全注册广播应用。例如某输入法、某浏览器以及某图片查看应用等。The preset application list may be an application list set before leaving the factory or during the user's use, and the preset application list may be a secure registration broadcast application that has been authenticated by the system or determined according to the user's usage habits. For example, an input method, a browser, and a picture viewing application, etc.

因为非法注册广播应用是根据应用注册接收的广播数量来确定的,当应用注册接收的广播数量超过第一阈值时,则将该应用定义为非法注册广播应用。所以,在非法注册广播应用的确定过程中,很有可能把安全的经常用到的广播应用定义为非法广播应用。预设应用列表的设置就可以避免将安全的,而又注册接收较多广播应用作为非法注册广播应用来处理。Because the illegally registered broadcast application is determined according to the number of broadcasts received by the application registration, when the number of broadcasts received by the application registration exceeds the first threshold, the application is defined as an illegally registered broadcast application. Therefore, in the determination process of illegally registered broadcast applications, it is very possible to define the safe and frequently used broadcast applications as illegal broadcast applications. By setting the preset application list, it is possible to avoid treating safe, but more broadcast applications registered and received as illegally registered broadcast applications.

S360、在接收者队列中保留非法注册广播应用。S360. Retain the illegally registered broadcast application in the receiver queue.

当判断目标广播的接收者队列中非法注册广播应用在预设应用列表中时,则保留所述非法注册广播应用。示例性的,由于某输入法为经常用到的应用程序,而该输入法注册接收的广播数量可能是150种,超过了第一阈值125种,则将其定义为非法注册广播应用。而该输入法又在预设应用列表中,在对所述接收者队列进行优化的过程中,保留该输入法。When it is determined that the illegally registered broadcast application in the receiver queue of the target broadcast is in the preset application list, the illegally registered broadcast application is retained. Exemplarily, since an input method is a frequently used application, and the number of broadcasts registered and received by the input method may be 150, which exceeds the first threshold of 125, it is defined as an illegally registered broadcast application. The input method is also in the preset application list, and the input method is reserved in the process of optimizing the receiver queue.

S370、根据确定的所述非法注册广播应用对所述接收者队列进行优化。S370. Optimize the receiver queue according to the determined illegally registered broadcast application.

此技术方案在上述各个技术方案的基础上,提供了一种对于安全应用在接收者队列中进行保护的方法,避免了因安全应用注册接收广播数量过多,而使其被作为非法注册广播应用处理,从而导致设备无法正常使用的问题。Based on the above technical solutions, this technical solution provides a method for protecting a security application in a receiver queue, which avoids the security application being registered as an illegally registered broadcast application due to an excessive number of registered and received broadcasts. deal with the problem that the device cannot be used normally.

在上述各个技术方案的基础上,优选的,向服务器发送所述第一应用的注册接收的广播数量,以便所述服务器根据至少一个第一应用的注册接收的广播数量确定所述第一阈值。这样设置的好处是可以利用服务器的大数据计算方法使计算结果更为准确,同时能够减少设备自身的运算负担,提高移动终端设备运行速度。Based on the above technical solutions, preferably, the number of registered and received broadcasts of the first application is sent to the server, so that the server determines the first threshold according to the number of registered and received broadcasts of at least one first application. The advantage of this setting is that the big data calculation method of the server can be used to make the calculation result more accurate, and at the same time, the calculation burden of the device itself can be reduced, and the running speed of the mobile terminal device can be improved.

图4是本发明实施例四提供的一种广播的控制装置的结构示意图。如图4所示,所述广播的控制装置,包括:FIG. 4 is a schematic structural diagram of a broadcast control apparatus according to Embodiment 4 of the present invention. As shown in Figure 4, the broadcast control device includes:

注册接收的广播数量获取模块410,用于获取第一应用注册接收的广播数量;A registered and received broadcast quantity acquisition module 410, configured to acquire the registered received broadcast quantity of the first application;

非法注册广播应用确定模块420,用于判断所述广播数量是否大于第一阈值;如果所述广播数量大于第一阈值,则将所述第一应用确定为非法注册广播应用;an illegally registered broadcast application determination module 420, configured to determine whether the broadcast quantity is greater than a first threshold; if the broadcast quantity is greater than the first threshold, then determine the first application as an illegally registered broadcast application;

接收者队列获取模块430,用于获取目标广播的接收者队列;The receiver queue acquisition module 430 is used to acquire the receiver queue of the target broadcast;

接收者队列优化模块440,用于根据确定的所述非法注册广播应用对所述接收者队列进行优化。A receiver queue optimization module 440 is configured to optimize the receiver queue according to the determined illegally registered broadcast application.

本实施例的技术方案,通过对于应用注册接收的广播数量与某一特定值相比较,当大于这一特定值时,则认为该应用为非法注册广播应用,当非法注册广播应用在某一广播接收者队列中时,对该广播接收者队列进行优化,解决非法程序接收到广播消息在后台启动会造成系统电量消耗和资源消耗问题,可以实现降低系统耗电,提高资源利用率的效果。In the technical solution of this embodiment, the number of broadcasts received by the application registration is compared with a specific value, and when the number is greater than the specific value, the application is considered to be an illegally registered broadcast application. When the receiver queue is in the receiver queue, the broadcast receiver queue is optimized to solve the problem of system power consumption and resource consumption caused by illegal programs receiving broadcast messages and starting in the background, which can reduce system power consumption and improve resource utilization.

在上述各实施例的基础上,所述接收者队列优化模块440包括:Based on the above embodiments, the receiver queue optimization module 440 includes:

接收者数量判断单元,用于判断所述接收者队列中接收者的数量是否大于第二阈值;a receiver quantity judgment unit, configured to judge whether the number of receivers in the receiver queue is greater than a second threshold;

接收者队列优化单元,用于如果所述接收者队列中接收者的数量大于第二阈值,则根据确定的所述非法注册广播应用对所述接收者队列进行优化。A receiver queue optimization unit, configured to optimize the receiver queue according to the determined illegal registration broadcast application if the number of receivers in the receiver queue is greater than a second threshold.

在上述各实施例的基础上,所述接收者队列优化模块440包括:Based on the above embodiments, the receiver queue optimization module 440 includes:

非法注册广播应用删除单元,用于在所述接收者队列中删除确定的所述非法注册广播应用。An illegally registered broadcast application deletion unit, configured to delete the determined illegally registered broadcast application from the receiver queue.

在上述各实施例的基础上,所述接收者队列优化模块440包括:Based on the above embodiments, the receiver queue optimization module 440 includes:

关联应用删除单元,用于在所述接收者队列中删除与所述非法注册广播应用存在数据交互的关联应用。An associated application deletion unit, configured to delete an associated application that has data interaction with the illegally registered broadcast application from the receiver queue.

在上述各实施例的基础上,所述接收者队列优化模块440包括:Based on the above embodiments, the receiver queue optimization module 440 includes:

预设应用保留单元,用于若所述非法注册广播应用在预设应用列表中,则在所述接收者队列中保留所述非法注册广播应用。A preset application reservation unit, configured to reserve the illegally registered broadcast application in the receiver queue if the illegally registered broadcast application is in the preset application list.

在上述各实施例的基础上,所述装置还包括:On the basis of the above embodiments, the device further includes:

第一阈值确定模块,用于向服务器发送所述第一应用的注册接收的广播数量,以便所述服务器根据至少一个第一应用的注册接收的广播数量确定所述第一阈值。A first threshold determination module, configured to send the number of broadcasts received by registration of the first application to the server, so that the server determines the first threshold according to the number of broadcasts received by registration of at least one first application.

上述产品可执行本发明任意实施例所提供的方法,具备执行方法相应的功能模块和有益效果。The above product can execute the method provided by any embodiment of the present invention, and has corresponding functional modules and beneficial effects for executing the method.

图5是本发明实施例提供的一种移动终端的结构示意图,如图5所示,该移动终端可以包括:壳体(图中未示出)、存储器801、中央处理器(Central Processing Unit,CPU)802(又称处理器,以下简称CPU)、存储在存储器801上并可在处理器802上运行的计算机程序、电路板(图中未示出)和电源电路(图中未示出)。所述电路板安置在所述壳体围成的空间内部;所述CPU802和所述存储器801设置在所述电路板上;所述电源电路,用于为所述移动终端的各个电路或器件供电;所述存储器801,用于存储可执行程序代码;所述CPU802通过读取所述存储器801中存储的可执行程序代码来运行与所述可执行程序代码对应的程序,以用于执行:获取第一应用注册接收的广播数量;判断所述广播数量是否大于第一阈值;如果所述广播数量大于第一阈值,则将所述第一应用确定为非法注册广播应用;获取目标广播的接收者队列;根据确定的所述非法注册广播应用对所述接收者队列进行优化。FIG. 5 is a schematic structural diagram of a mobile terminal provided by an embodiment of the present invention. As shown in FIG. 5 , the mobile terminal may include: a casing (not shown in the figure), a memory 801, and a central processing unit (Central Processing Unit, CPU) 802 (also known as processor, hereinafter referred to as CPU), a computer program stored on the memory 801 and executable on the processor 802, a circuit board (not shown in the figure) and a power supply circuit (not shown in the figure) . The circuit board is arranged inside the space enclosed by the casing; the CPU 802 and the memory 801 are arranged on the circuit board; the power circuit is used to supply power to each circuit or device of the mobile terminal ; the memory 801 is used to store executable program codes; the CPU 802 runs a program corresponding to the executable program codes by reading the executable program codes stored in the memory 801, so as to execute: obtain The number of broadcasts registered and received by the first application; determine whether the number of broadcasts is greater than a first threshold; if the number of broadcasts is greater than the first threshold, determine the first application as an illegally registered broadcast application; obtain the recipient of the target broadcast queue; optimize the receiver queue according to the determined illegal registration broadcast application.

所述移动终端还包括:外设接口803、RF(Radio Frequency,射频)电路805、音频电路806、扬声器811、电源管理芯片808、输入/输出(I/O)子系统809、触摸屏812、其他输入/控制设备810以及外部端口804,这些部件通过一个或多个通信总线或信号线807来通信。The mobile terminal further includes: a peripheral interface 803, an RF (Radio Frequency, radio frequency) circuit 805, an audio circuit 806, a speaker 811, a power management chip 808, an input/output (I/O) subsystem 809, a touch screen 812, and other Input/control devices 810 and external ports 804, these components communicate via one or more communication buses or signal lines 807.

应该理解的是,图示移动终端800仅仅是移动终端的一个范例,并且移动终端800可以具有比图中所示出的更多的或者更少的部件,可以组合两个或更多的部件,或者可以具有不同的部件配置。图中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。It should be understood that the illustrated mobile terminal 800 is merely an example of a mobile terminal, and that the mobile terminal 800 may have more or fewer components than those shown in the figure, two or more components may be combined, Or can have different component configurations. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.

下面就本实施例提供的用于实现广播控制功能的移动终端进行详细的描述,该移动终端以手机为例。The following describes the mobile terminal provided in this embodiment for implementing the broadcast control function in detail, and the mobile terminal is a mobile phone as an example.

存储器801,所述存储器801可以被CPU802、外设接口803等访问,所述存储器801可以包括高速随机存取存储器,还可以包括非易失性存储器,例如一个或多个磁盘存储器件、闪存器件、或其他易失性固态存储器件。Memory 801, which can be accessed by CPU 802, peripheral interface 803, etc., said memory 801 can include high-speed random access memory, and can also include non-volatile memory, such as one or more disk storage devices, flash memory devices , or other volatile solid-state storage devices.

外设接口803,所述外设接口803可以将设备的输入和输出外设连接到CPU802和存储器801。A peripheral interface 803 that can connect the input and output peripherals of the device to the CPU 802 and the memory 801 .

I/O子系统809,所述I/O子系统809可以将设备上的输入输出外设,例如触摸屏812和其他输入/控制设备810,连接到外设接口803。I/O子系统809可以包括显示控制器8091和用于控制其他输入/控制设备810的一个或多个输入控制器8092。其中,一个或多个输入控制器8092从其他输入/控制设备810接收电信号或者向其他输入/控制设备810发送电信号,其他输入/控制设备810可以包括物理按钮(按压按钮、摇臂按钮等)、拨号盘、滑动开关、操纵杆、点击滚轮。值得说明的是,输入控制器8092可以与以下任一个连接:键盘、红外端口、USB接口以及诸如鼠标的指示设备。I/O subsystem 809 , which can connect input and output peripherals on the device, such as touch screen 812 and other input/control devices 810 , to peripherals interface 803 . The I/O subsystem 809 may include a display controller 8091 and one or more input controllers 8092 for controlling other input/control devices 810 . Wherein, one or more input controllers 8092 receive electrical signals from or send electrical signals to other input/control devices 810, which may include physical buttons (push buttons, rocker buttons, etc. ), dial pad, slide switch, joystick, click wheel. Notably, the input controller 8092 can be connected to any of the following: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.

其中,按照触摸屏的工作原理和传输信息的介质分类,触摸屏812可以为电阻式、电容感应式、红外线式或表面声波式。按照安装方式分类,触摸屏812可以为:外挂式、内置式或整体式。按照技术原理分类,触摸屏812可以为:矢量压力传感技术触摸屏、电阻技术触摸屏、电容技术触摸屏、红外线技术触摸屏或表面声波技术触摸屏。Wherein, according to the working principle of the touch screen and the classification of the medium for transmitting information, the touch screen 812 may be a resistive type, a capacitive induction type, an infrared type or a surface acoustic wave type. According to the installation method, the touch screen 812 can be an external type, a built-in type or an integral type. Classified according to technical principles, the touch screen 812 may be: a vector pressure sensing technology touch screen, a resistive technology touch screen, a capacitive technology touch screen, an infrared technology touch screen or a surface acoustic wave technology touch screen.

触摸屏812,所述触摸屏812是用户终端与用户之间的输入接口和输出接口,将可视输出显示给用户,可视输出可以包括图形、文本、图标、视频等。可选的,触摸屏812将用户在触屏幕上触发的电信号(如接触面的电信号),发送给处理器802。The touch screen 812, which is an input interface and an output interface between the user terminal and the user, displays visual output to the user, and the visual output may include graphics, text, icons, videos, and the like. Optionally, the touch screen 812 sends electrical signals triggered by the user on the touch screen (eg, electrical signals on the contact surface) to the processor 802 .

I/O子系统809中的显示控制器8091从触摸屏812接收电信号或者向触摸屏812发送电信号。触摸屏812检测触摸屏上的接触,显示控制器8091将检测到的接触转换为与显示在触摸屏812上的用户界面对象的交互,即实现人机交互,显示在触摸屏812上的用户界面对象可以是运行游戏的图标、联网到相应网络的图标等。值得说明的是,设备还可以包括光鼠,光鼠是不显示可视输出的触摸敏感表面,或者是由触摸屏形成的触摸敏感表面的延伸。Display controller 8091 in I/O subsystem 809 receives electrical signals from touch screen 812 or sends electrical signals to touch screen 812 . The touch screen 812 detects the contact on the touch screen, and the display controller 8091 converts the detected contact into interaction with the user interface objects displayed on the touch screen 812, that is, to realize human-computer interaction, and the user interface objects displayed on the touch screen 812 can be run. Icons for games, icons for connecting to the corresponding network, etc. It is worth noting that the device may also include a light mouse, which is a touch-sensitive surface that does not display visual output, or an extension of the touch-sensitive surface formed by a touch screen.

RF电路805,主要用于建立手机与无线网络(即网络侧)的通信,实现手机与无线网络的数据接收和发送。例如收发短信息、电子邮件等。The RF circuit 805 is mainly used to establish the communication between the mobile phone and the wireless network (ie, the network side), and realize the data reception and transmission between the mobile phone and the wireless network. Such as sending and receiving text messages, e-mails, etc.

音频电路806,主要用于从外设接口803接收音频数据,将该音频数据转换为电信号,并且将该电信号发送给扬声器811。The audio circuit 806 is mainly used to receive audio data from the peripheral interface 803 , convert the audio data into electrical signals, and send the electrical signals to the speaker 811 .

扬声器811,用于将手机通过RF电路805从无线网络接收的语音信号,还原为声音并向用户播放该声音。The speaker 811 is used to restore the voice signal received by the mobile phone from the wireless network through the RF circuit 805 to sound and play the sound to the user.

电源管理芯片808,用于为CPU802、I/O子系统及外设接口所连接的硬件进行供电及电源管理。The power management chip 808 is used for power supply and power management for the hardware connected to the CPU 802, the I/O subsystem and the peripheral interface.

在本实施例中,中央处理器802用于:In this embodiment, the central processing unit 802 is used for:

获取第一应用注册接收的广播数量;Obtain the number of broadcasts registered and received by the first application;

判断所述广播数量是否大于第一阈值;judging whether the broadcast quantity is greater than a first threshold;

如果所述广播数量大于第一阈值,则将所述第一应用确定为非法注册广播应用;If the broadcast quantity is greater than a first threshold, determining the first application as an illegally registered broadcast application;

获取目标广播的接收者队列;Get the receiver queue of the target broadcast;

根据确定的所述非法注册广播应用对所述接收者队列进行优化。The receiver queue is optimized according to the determined illegal registration broadcast application.

进一步的,所述根据确定的所述非法注册广播应用对所述接收者队列进行优化,包括:Further, optimizing the receiver queue according to the determined illegal registration broadcast application includes:

判断所述接收者队列中接收者的数量是否大于第二阈值;judging whether the number of recipients in the recipient queue is greater than a second threshold;

如果所述接收者队列中接收者的数量大于第二阈值,则根据确定的所述非法注册广播应用对所述接收者队列进行优化。If the number of recipients in the recipient queue is greater than a second threshold, the recipient queue is optimized according to the determined illegal registration broadcast application.

进一步的,所述根据确定的所述非法注册广播应用对所述接收者队列进行优化,包括:Further, optimizing the receiver queue according to the determined illegal registration broadcast application includes:

在所述接收者队列中删除确定的所述非法注册广播应用。The determined illegally registered broadcast application is deleted from the receiver queue.

进一步的,所述根据确定的所述非法注册广播应用对所述接收者队列进行优化,包括:Further, optimizing the receiver queue according to the determined illegal registration broadcast application includes:

在所述接收者队列中删除与所述非法注册广播应用存在数据交互的关联应用。The associated application that has data interaction with the illegally registered broadcast application is deleted from the receiver queue.

进一步的,所述根据确定的所述非法注册广播应用对所述接收者队列进行优化,包括:Further, optimizing the receiver queue according to the determined illegal registration broadcast application includes:

若所述非法注册广播应用在预设应用列表中,则在所述接收者队列中保留所述非法注册广播应用。If the illegally registered broadcast application is in the preset application list, the illegally registered broadcast application is reserved in the receiver queue.

进一步的,所述方法还包括:Further, the method also includes:

向服务器发送所述第一应用的注册接收的广播数量,以便所述服务器根据至少一个第一应用的注册接收的广播数量确定所述第一阈值。The number of registered and received broadcasts of the first application is sent to the server, so that the server determines the first threshold according to the number of registered and received broadcasts of at least one first application.

需要说明的是,移动终端还可以包括摄像头、蓝牙模块等,在此不再赘述。It should be noted that, the mobile terminal may further include a camera, a Bluetooth module, etc., which will not be repeated here.

注意,上述仅为本发明的较佳实施例及所运用技术原理。本领域技术人员会理解,本发明不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本发明的保护范围。因此,虽然通过以上实施例对本发明进行了较为详细的说明,但是本发明不仅仅限于以上实施例,在不脱离本发明构思的情况下,还可以包括更多其他等效实施例,而本发明的范围由所附的权利要求范围决定。Note that the above are only preferred embodiments of the present invention and applied technical principles. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the protection scope of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and can also include more other equivalent embodiments without departing from the concept of the present invention. The scope is determined by the scope of the appended claims.

Claims (13)

1.一种广播的控制方法,其特征在于,包括:1. a control method of broadcasting, is characterized in that, comprises: 获取第一应用注册接收的广播数量;其中,注册接收的广播数量存储在第一应用的广播接收器当中,或者,存储在系统广播管理模块当中;Obtain the number of broadcasts registered and received by the first application; wherein, the number of broadcasts registered and received is stored in the broadcast receiver of the first application, or stored in the system broadcast management module; 判断所述广播数量是否大于第一阈值;judging whether the broadcast quantity is greater than a first threshold; 如果所述广播数量大于第一阈值,则将所述第一应用确定为非法注册广播应用;If the broadcast quantity is greater than a first threshold, determining the first application as an illegally registered broadcast application; 获取目标广播的接收者队列;Get the receiver queue of the target broadcast; 根据确定的所述非法注册广播应用对所述接收者队列进行优化,以提高接收者队列中非法注册广播应用以外的其他应用对广播消息的响应时间;Optimizing the receiver queue according to the determined illegally registered broadcast application, so as to improve the response time of other applications other than the illegally registered broadcast application in the receiver queue to broadcast messages; 其中,根据确定的非法注册广播应用对接收者队列进行优化,包括:Among them, the receiver queue is optimized according to the determined illegal registration broadcast application, including: 调整接收者队列的顺序,将接收者队列中包含的所述非法注册广播应用的接收顺序向后顺延。The order of the receiver queue is adjusted, and the receiving order of the illegally registered broadcast applications included in the receiver queue is delayed. 2.根据权利要求1所述的广播的控制方法,其特征在于,所述根据确定的所述非法注册广播应用对所述接收者队列进行优化,包括:2. The broadcast control method according to claim 1, wherein the optimizing the receiver queue according to the determined illegally registered broadcast application comprises: 判断所述接收者队列中接收者的数量是否大于第二阈值;judging whether the number of recipients in the recipient queue is greater than a second threshold; 如果所述接收者队列中接收者的数量大于第二阈值,则根据确定的所述非法注册广播应用对所述接收者队列进行优化。If the number of recipients in the recipient queue is greater than a second threshold, the recipient queue is optimized according to the determined illegal registration broadcast application. 3.根据权利要求1或2所述的广播的控制方法,其特征在于,所述根据确定的所述非法注册广播应用对所述接收者队列进行优化,包括:3. The broadcast control method according to claim 1 or 2, wherein the optimizing the receiver queue according to the determined illegally registered broadcast application comprises: 在所述接收者队列中删除确定的所述非法注册广播应用。The determined illegally registered broadcast application is deleted from the receiver queue. 4.根据权利要求3所述的广播的控制方法,其特征在于,所述根据确定的所述非法注册广播应用对所述接收者队列进行优化,包括:4. The broadcast control method according to claim 3, wherein the optimizing the receiver queue according to the determined illegally registered broadcast application comprises: 在所述接收者队列中删除与所述非法注册广播应用存在数据交互的关联应用。The associated application that has data interaction with the illegally registered broadcast application is deleted from the receiver queue. 5.根据权利要求3所述的广播的控制方法,其特征在于,所述根据确定的所述非法注册广播应用对所述接收者队列进行优化,包括:5. The method for controlling broadcasting according to claim 3, wherein the optimizing the receiver queue according to the determined illegally registered broadcasting application comprises: 若所述非法注册广播应用在预设应用列表中,则在所述接收者队列中保留所述非法注册广播应用。If the illegally registered broadcast application is in the preset application list, the illegally registered broadcast application is reserved in the receiver queue. 6.根据权利要求1所述的广播的控制方法,其特征在于,还包括:6. The control method of broadcasting according to claim 1, is characterized in that, also comprises: 向服务器发送所述第一应用的注册接收的广播数量,以便所述服务器根据至少一个第一应用的注册接收的广播数量确定所述第一阈值。The number of registered and received broadcasts of the first application is sent to the server, so that the server determines the first threshold according to the number of registered and received broadcasts of at least one first application. 7.一种广播的控制装置,其特征在于,包括:7. A control device for broadcasting, comprising: 注册接收的广播数量获取模块,用于获取第一应用注册接收的广播数量;其中,注册接收的广播数量存储在第一应用的广播接收器当中,或者,存储在系统广播管理模块当中;A registered and received broadcast quantity acquisition module, used to acquire the registered received broadcast quantity of the first application; wherein, the registered received broadcast quantity is stored in the broadcast receiver of the first application, or is stored in the system broadcast management module; 非法注册广播应用确定模块,用于判断所述广播数量是否大于第一阈值;如果所述广播数量大于第一阈值,则将所述第一应用确定为非法注册广播应用;an illegally registered broadcast application determination module, configured to determine whether the broadcast quantity is greater than a first threshold; if the broadcast quantity is greater than the first threshold, determine the first application as an illegally registered broadcast application; 接收者队列获取模块,用于获取目标广播的接收者队列;The receiver queue acquisition module is used to acquire the receiver queue of the target broadcast; 接收者队列优化模块,用于根据确定的所述非法注册广播应用对所述接收者队列进行优化,以提高接收者队列中非法注册广播应用以外的其他应用对广播消息的响应时间;A receiver queue optimization module, configured to optimize the receiver queue according to the determined illegally registered broadcast application, so as to improve the response time of other applications other than the illegally registered broadcast application in the receiver queue to broadcast messages; 所述接收者队列优化模块,具体用于:调整接收者队列的顺序,将接收者队列中包含的非法注册广播应用的接收顺序向后顺延。The receiver queue optimization module is specifically configured to: adjust the order of the receiver queue, and delay the receiving order of illegally registered broadcast applications included in the receiver queue. 8.根据权利要求7所述的广播的控制装置,其特征在于,所述接收者队列优化模块包括:8. The control device for broadcasting according to claim 7, wherein the receiver queue optimization module comprises: 接收者数量判断单元,用于判断所述接收者队列中接收者的数量是否大于第二阈值;a receiver quantity judgment unit, configured to judge whether the number of receivers in the receiver queue is greater than a second threshold; 接收者队列优化单元,用于如果所述接收者队列中接收者的数量大于第二阈值,则根据确定的所述非法注册广播应用对所述接收者队列进行优化。A receiver queue optimization unit, configured to optimize the receiver queue according to the determined illegal registration broadcast application if the number of receivers in the receiver queue is greater than a second threshold. 9.根据权利要求7或8所述的广播的控制装置,其特征在于,所述接收者队列优化模块包括:9. The control device for broadcasting according to claim 7 or 8, wherein the receiver queue optimization module comprises: 非法注册广播应用删除单元,用于在所述接收者队列中删除确定的所述非法注册广播应用。An illegally registered broadcast application deletion unit, configured to delete the determined illegally registered broadcast application from the receiver queue. 10.根据权利要求9所述的广播的控制装置,其特征在于,所述接收者队列优化模块包括:10. The broadcast control device according to claim 9, wherein the receiver queue optimization module comprises: 关联应用删除单元,用于在所述接收者队列中删除与所述非法注册广播应用存在数据交互的关联应用。An associated application deletion unit, configured to delete an associated application that has data interaction with the illegally registered broadcast application from the receiver queue. 11.根据权利要求9所述的广播的控制装置,其特征在于,所述根据确定的所述非法注册广播应用对所述接收者队列进行优化,包括:11. The broadcast control apparatus according to claim 9, wherein the optimizing the receiver queue according to the determined illegally registered broadcast application comprises: 预设应用保留单元,用于若所述非法注册广播应用在预设应用列表中,则在所述接收者队列中保留所述非法注册广播应用。A preset application reservation unit, configured to reserve the illegally registered broadcast application in the receiver queue if the illegally registered broadcast application is in the preset application list. 12.根据权利要求7所述的广播的控制装置,其特征在于,还包括:12. The control device for broadcasting according to claim 7, further comprising: 第一阈值确定模块,用于向服务器发送所述第一应用的注册接收的广播数量,以便所述服务器根据至少一个第一应用的注册接收的广播数量确定所述第一阈值。A first threshold determination module, configured to send the number of broadcasts received by registration of the first application to the server, so that the server determines the first threshold according to the number of broadcasts received by registration of at least one first application. 13.一种移动终端,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现以下步骤:13. A mobile terminal, comprising a memory, a processor and a computer program stored on the memory and running on the processor, wherein the processor implements the following steps when executing the computer program: 获取第一应用注册接收的广播数量;其中,注册接收的广播数量存储在第一应用的广播接收器当中,或者,存储在系统广播管理模块当中;Obtain the number of broadcasts registered and received by the first application; wherein, the number of broadcasts registered and received is stored in the broadcast receiver of the first application, or stored in the system broadcast management module; 判断所述广播数量是否大于第一阈值;judging whether the broadcast quantity is greater than a first threshold; 如果所述广播数量大于第一阈值,则将所述第一应用确定为非法注册广播应用;If the broadcast quantity is greater than a first threshold, determining the first application as an illegally registered broadcast application; 获取目标广播的接收者队列;Get the receiver queue of the target broadcast; 根据确定的所述非法注册广播应用对所述接收者队列进行优化,以提高接收者队列中非法注册广播应用以外的其他应用对广播消息的响应时间;Optimizing the receiver queue according to the determined illegally registered broadcast application, so as to improve the response time of other applications other than the illegally registered broadcast application in the receiver queue to broadcast messages; 其中,根据确定的非法注册广播应用对接收者队列进行优化,包括:Among them, the receiver queue is optimized according to the determined illegal registration broadcast application, including: 调整接收者队列的顺序,将接收者队列中包含的所述非法注册广播应用的接收顺序向后顺延。The order of the receiver queue is adjusted, and the receiving order of the illegally registered broadcast applications included in the receiver queue is delayed.
CN201710144286.4A 2017-03-10 2017-03-10 Broadcast control method and device and mobile terminal Expired - Fee Related CN106844070B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710144286.4A CN106844070B (en) 2017-03-10 2017-03-10 Broadcast control method and device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710144286.4A CN106844070B (en) 2017-03-10 2017-03-10 Broadcast control method and device and mobile terminal

Publications (2)

Publication Number Publication Date
CN106844070A CN106844070A (en) 2017-06-13
CN106844070B true CN106844070B (en) 2020-07-31

Family

ID=59143322

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710144286.4A Expired - Fee Related CN106844070B (en) 2017-03-10 2017-03-10 Broadcast control method and device and mobile terminal

Country Status (1)

Country Link
CN (1) CN106844070B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106851014B (en) * 2017-03-10 2020-06-30 Oppo广东移动通信有限公司 Method, device and terminal for adjusting broadcast message queue
CN110209513B (en) * 2019-06-06 2021-06-22 北京金山安全软件有限公司 A broadcast registration method, device, device and medium for application program
CN113132121B (en) * 2019-12-30 2023-01-31 成都鼎桥通信技术有限公司 Broadcast message processing method and device and terminal equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101014101A (en) * 2006-02-01 2007-08-08 Lg电子株式会社 Method for managing applications related to data broadcasting, class/interface structure, and broadcast receiver
CN103019777A (en) * 2012-11-28 2013-04-03 广东欧珀移动通信有限公司 A method and system for automatically cleaning background applications of a mobile terminal
CN103823699A (en) * 2014-02-27 2014-05-28 广州视源电子科技股份有限公司 Method and device for controlling self-starting of application program
CN104503841A (en) * 2014-12-15 2015-04-08 北京奇虎科技有限公司 Process clearing method and process clearing device
CN104991803A (en) * 2015-07-10 2015-10-21 上海斐讯数据通信技术有限公司 System and method for managing and controlling self-startup of android application under specific conditions
CN105208590A (en) * 2015-08-17 2015-12-30 广东欧珀移动通信有限公司 Mobile terminal operation system card slack abnormity detection recovery method and mobile terminal
CN106201740A (en) * 2016-06-29 2016-12-07 北京金山安全软件有限公司 Broadcast message management method, device and equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101014101A (en) * 2006-02-01 2007-08-08 Lg电子株式会社 Method for managing applications related to data broadcasting, class/interface structure, and broadcast receiver
CN103019777A (en) * 2012-11-28 2013-04-03 广东欧珀移动通信有限公司 A method and system for automatically cleaning background applications of a mobile terminal
CN103823699A (en) * 2014-02-27 2014-05-28 广州视源电子科技股份有限公司 Method and device for controlling self-starting of application program
CN104503841A (en) * 2014-12-15 2015-04-08 北京奇虎科技有限公司 Process clearing method and process clearing device
CN104991803A (en) * 2015-07-10 2015-10-21 上海斐讯数据通信技术有限公司 System and method for managing and controlling self-startup of android application under specific conditions
CN105208590A (en) * 2015-08-17 2015-12-30 广东欧珀移动通信有限公司 Mobile terminal operation system card slack abnormity detection recovery method and mobile terminal
CN106201740A (en) * 2016-06-29 2016-12-07 北京金山安全软件有限公司 Broadcast message management method, device and equipment

Also Published As

Publication number Publication date
CN106844070A (en) 2017-06-13

Similar Documents

Publication Publication Date Title
CN106937258B (en) Broadcast control method and device and mobile terminal
EP3592004A1 (en) Broadcast processing method, device, storage medium and terminal device
CN106851014B (en) Method, device and terminal for adjusting broadcast message queue
US20210149747A1 (en) Control method and apparatus for broadcast sending, storage medium, and electronic device
CN107070670B (en) Method, device and terminal equipment for controlling broadcast sender to send broadcast message
US10908976B2 (en) Broadcast queue adjustment method, terminal, and storage medium
CN106844070B (en) Broadcast control method and device and mobile terminal
CN108693948B (en) Frame rate adjustment method, device, terminal device and storage medium
CN106851593B (en) A kind of broadcast transmission method, apparatus and terminal
CN106919459A (en) A kind of management method of broadcast recipients, device and terminal
CN106936826B (en) Registration method and device of broadcast receiver and terminal equipment
WO2018161607A1 (en) Broadcasting control method and apparatus, and mobile terminal and storage medium
US10863521B1 (en) Broadcast receiver control method and apparatus, and mobile terminal
EP3588991B1 (en) Method and apparatus for generating broadcast queue, storage medium, and electronic device
CN108011860A (en) A kind of method and device for handling broadcast message
CN106919461B (en) Method and device for adjusting broadcast receiver queue and terminal equipment
CN106899943B (en) Method, device and terminal equipment for controlling broadcast sender to send broadcast message
WO2018161609A1 (en) Broadcast receiver control method and device, mobile terminal and storage medium
CN106937370A (en) A broadcast message sending method, device and mobile terminal
EP3591523A1 (en) Control method, device, storage medium, and electronic apparatus for broadcast sending
CN106851595A (en) Ordered broadcast processing method, device and terminal equipment
CN106851594B (en) Broadcast sending method, device and terminal
CN106933685B (en) Management method, device and terminal for broadcast receiver
CN106936996A (en) Send method, device and the terminal of shutdown broadcast

Legal Events

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

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

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

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

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200731