CN105354492B - Communication terminal and its message informing control method and device - Google Patents

Communication terminal and its message informing control method and device Download PDF

Info

Publication number
CN105354492B
CN105354492B CN201510676327.5A CN201510676327A CN105354492B CN 105354492 B CN105354492 B CN 105354492B CN 201510676327 A CN201510676327 A CN 201510676327A CN 105354492 B CN105354492 B CN 105354492B
Authority
CN
China
Prior art keywords
message
application program
push
request
permission
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510676327.5A
Other languages
Chinese (zh)
Other versions
CN105354492A (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.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
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 Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN201510676327.5A priority Critical patent/CN105354492B/en
Publication of CN105354492A publication Critical patent/CN105354492A/en
Application granted granted Critical
Publication of CN105354492B publication Critical patent/CN105354492B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/50Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
    • G06F21/55Detecting local intrusion or implementing counter-measures
    • G06F21/554Detecting local intrusion or implementing counter-measures involving event detection and direct action
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2141Access rights, e.g. capability lists, access control lists, access tables, access matrices

Abstract

The invention discloses a kind of communication terminal and its message informing control method and devices.The message informing control method of communication terminal includes:Whether the application program installed on detection communication terminal is obtaining system service;If detecting that application program is obtaining system service, judge whether application program there is message to push permission;If it is judged that there is application program message to push permission, then application program is allowed to obtain message push service;If it is judged that application program, which does not have message, pushes permission, then application program is forbidden to obtain message push service.Through the invention, the notification message for more effectively shielding mobile terminal has been achieved the effect that.

Description

Communication terminal and its message informing control method and device
Technical field
The present invention relates to the communications fields, in particular to a kind of communication terminal and its message informing control method And device.
Background technology
Currently, the communication terminal product of Android system is more and more welcomed by the people, for example, Android mobile phone.It moves The application program of dynamic communicating terminal installation improves the convenience that communication terminal uses, and facilitates people and handles in life Various things.With the increase of the demand for experience of user terminal, it is whole that mobile communication is no longer only used only in terminal user in mobile communication The original-pack application program at end, and various third party applications are needed to support the function of communication terminal.
Communication terminal is once equipped with third party application, and third party application will carry for user terminal for a long time For application service.Therefore, many third party applications are constantly updated with the improvement of the demand and technology of product, past Diversification direction is developed.And third party application is not limited solely to the application function that itself is possessed, but by other The function of application program integrates together, and user terminal is made only to can be achieved with many common functions by third party application, this Promote the development of the third party application for communication terminal product so that third party application becomes function most Strong professional applications.Such third party application usually has prodigious access rights, can drop by movement The content of communicating terminal.On the other hand, third party application also pushes the various information of business men, for example, a surname of product advertising It passes, expands the recommendation of application function, information of product up-gradation etc. is many to the unpractical information of user terminal.Third-party application journey The unpractical information of sequence push also becomes a big source of communication terminal information pollution.
Currently, in order to when using application program, the information of communication terminal can be purified, is arranged by system, it is right The notification message of application program push is intercepted.For example, sliding notification bar to the left or to the right, the master control of application program is shown The notification message of certain applications is further forbidden at interface processed by specifically controlling switch.Specifically, being cut off in mobile communication The notification message that the application program forbidden is sent out is had received, the notification message that only application program forbidden is sent out is in notification bar It does not show, to achieve the effect that purify notification bar.This control method be the improvement that brings of communication terminal not Obviously, the notification message for being equivalent to push is received by communication terminal, and only communication terminal is not shown Go out, be not inherently eliminated the notification message of application program, notification message still occupies the memory of communication terminal, increases The redundancy for having added application program consumes the electricity of communication terminal.In addition, such control mode is on communication terminal It is arranged more hidden, general user's terminal is not easy to control.
For for the limited problem of the shielding action of communication terminal PUSH message, not yet carrying at present in the related technology Go out effective solution scheme.
Invention content
The main purpose of the present invention is to provide a kind of communication terminal and its message informing control method and device, with It at least solves the problems, such as due to that communication terminal EMS memory occupation amount cannot be caused big from basic shielding notification message.
To achieve the goals above, according to an aspect of the invention, there is provided a kind of message of communication terminal is logical Know control method.The message informing control method of the communication terminal includes:The application installed on detection communication terminal Whether program is obtaining system service, wherein application program realizes the push of notification message by obtaining system service;If inspection It measures application program and is obtaining system service, then judge whether application program there is message to push permission;If it is judged that using There is program message to push permission, then application program is allowed to obtain message push service;And if it is judged that application program not Permission is pushed with message, then application program is forbidden to obtain message push service.
Further, judge whether application program there is message to push permission and include:Detect the message of communication terminal The total setting of notice, wherein message informing is always arranged for being arranged whether communication terminal allows message to push;If detected Message informing is always positioned to allow for message push, it is determined that there is application program message to push permission;And disappear if detected Breath notice is always set as not allowing message to push, it is determined that application program does not have message and pushes permission.Further, if inspection It measures message informing and is always positioned to allow for message push, the message informing control method of the communication terminal further includes:Detection Message informing of communication terminal is arranged, wherein the setting of message informing allows message for communication terminal to be arranged The application program and/or communication terminal of push do not allow the application program that message pushes;If detecting that application program is Communication terminal allows the application program that message pushes, it is determined that there is application program message to push permission;And if inspection It is the application program that communication terminal does not allow message to push to measure application program, it is determined that application program is pushed away without message Send permission.
Further, judge whether application program there is message to push permission and include:Receive the message request of application program Packet;Judge whether message request meets preset rules;If it is judged that message request does not meet preset rules, it is determined that institute It states application program and pushes permission with message;And determine that the application program does not have message and pushes permission.
Further, judge whether message request meets preset rules and include:Obtain the packet name of message request;It obtains The packet name of default request bag, wherein default request bag includes that the message for the application program push for not having message push permission is asked Seek packet;Judge whether the packet name of the default request bags of the Bao Mingyu of message request is consistent;If it is judged that the packet of message request Name is inconsistent with the packet name of default request bag, determines that message request does not meet preset rules;And if it is determined that outbound message is asked It asks the packet name that the Bao Mingyu of packet presets request bag consistent, determines that message request meets preset rules.
To achieve the goals above, according to an aspect of the present invention, a kind of message of communication terminal is additionally provided Notify control device.The message informing control device of the communication terminal includes:Detection unit, for detecting mobile communication end Whether the application program installed on end is obtaining system service, wherein application program realizes that notice disappears by obtaining system service The push of breath;Judging unit, for detect application program obtain system service, then judge application program whether have disappear Breath push permission;First processing units, for judge application program have message push permission, then allow application program to obtain Obtain message push service;And second processing unit, for judge application program do not have message push permission, then forbid Application program obtains message push service.
Further, judging unit includes:First detection module, if for detecting that the message informing is always arranged When to allow message to push, the message informing for detecting communication terminal is always arranged, wherein message informing is always arranged for being arranged Whether communication terminal allows message to push;First determining module, for detecting that message informing is always positioned to allow for disappearing Breath push, it is determined that there is application program message to push permission;And second determining module, for detecting that message informing is total It is set as not allowing message to push, it is determined that application program does not have message and pushes permission.
Further, the first determining module includes:Detection sub-module, message informing for detecting communication terminal Setting, wherein the setting of message informing allows the application program of message push and/or movement logical for communication terminal to be arranged News terminal does not allow the application program that message pushes;First determination sub-module, for detecting that application program is mobile communication When terminal allows the application program that message pushes, it is determined that there is application program message to push permission;And second determine submodule Block, for when it is the application program that communication terminal does not allow message push to detect application program, it is determined that apply journey Sequence does not have message and pushes permission.
Further, judging unit further includes:Receiving module, the message request for receiving application program;Judge mould Block, for judging whether message request meets preset rules, wherein first processing units are for judging message request Preset rules are not met, it is determined that there is application program message to push permission, and second processing unit is used to judge that outbound message asks Packet is asked to meet preset rules, it is determined that application program does not have message and pushes permission.
Further, judgment module includes:First acquisition submodule, the packet name for obtaining message request;Second obtains Submodule is taken, the packet name for obtaining default request bag, wherein default request bag includes not having the application of message push permission The message request of program push;Judging submodule, for judge message request Bao Mingyu preset request bag packet name be When no consistent;Third determination sub-module, the packet name for presetting request bag in the Bao Mingyu for judging message request is inconsistent, Determine that message request does not meet preset rules;And the 4th determination sub-module, in the packet name for judging message request When consistent with the packet name of default request bag, determine that message request meets preset rules.
To achieve the goals above, according to an aspect of the present invention, a kind of communication terminal is additionally provided, the movement Communicating terminal includes the message informing control device of communication terminal provided by the invention.
Through the invention, detect whether the application program installed on communication terminal is obtaining system service;If inspection It measures application program and is obtaining system service, then judge whether application program there is message to push permission;If it is judged that using There is program message to push permission, then application program is allowed to obtain message push service;And if it is judged that application program not Permission is pushed with message, then application program is forbidden to obtain message push service.Solves communication terminal PUSH message The limited problem of shielding action, and then reached the PUSH message of effective shielding communication terminal, reduce communication terminal The effect of EMS memory occupation amount.
Description of the drawings
The attached drawing constituted part of this application is used to provide further understanding of the present invention, schematic reality of the invention Example and its explanation are applied for explaining the present invention, is not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart of the message informing control method of communication terminal according to a first embodiment of the present invention;
Fig. 2 is the flow chart of the message informing control method of communication terminal according to a second embodiment of the present invention;
Fig. 3 is the flow chart of the message informing control method of communication terminal according to a third embodiment of the present invention;With And
Fig. 4 is the schematic diagram of the message informing control device of communication terminal according to the ... of the embodiment of the present invention.
Specific implementation mode
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase Mutually combination.The present invention will be described in detail below with reference to the accompanying drawings and embodiments.
In order to make those skilled in the art more fully understand application scheme, below in conjunction in the embodiment of the present application Attached drawing, technical solutions in the embodiments of the present application are clearly and completely described, it is clear that described embodiment is only The embodiment of the application part, instead of all the embodiments.Based on the embodiment in the application, ordinary skill people The every other embodiment that member is obtained without making creative work should all belong to the model of the application protection It encloses.
It should be noted that term " first " in the description and claims of this application and above-mentioned attached drawing, " Two " etc. be for distinguishing similar object, without being used to describe specific sequence or precedence.It should be appreciated that using in this way Data can be interchanged in the appropriate case, so as to embodiments herein described herein.In addition, term " comprising " and " tool Have " and their any deformation, it is intended that cover it is non-exclusive include, for example, containing series of steps or unit Process, method, system, product or equipment those of are not necessarily limited to clearly to list step or unit, but may include without clear It is listing to Chu or for these processes, method, product or equipment intrinsic other steps or unit.
An embodiment of the present invention provides a kind of message informing control methods of communication terminal.
Fig. 1 is the flow chart of the message informing control method of communication terminal according to a first embodiment of the present invention.Such as Shown in Fig. 1, the message informing control method of the communication terminal includes the following steps:
Step S102, detects whether the application program installed on communication terminal is obtaining system service, wherein application Program realizes the push of notification message by obtaining system service.
Communication terminal includes a variety of application programs, for example, Sina weibo, instant messaging, Baidu map and Alipay Etc. application programs, a variety of application programs can by obtain system service to realize that it is different that different functions meets user terminal Demand.A variety of application programs support that communication terminals realize different functions, and application program includes original-pack application program and the Tripartite's application program.Wherein, third party application can be continuous with the raising of the application demand and product technology of user terminal Ground is updated.During user terminal uses communication terminal, application program can be whole to user with business demand End pushes all kinds of notification messages.For example, with the continuous renewal of third party application, third party application is newer each Fresh information is correspondingly generated in a stage.
The application program installed on communication terminal realizes the function of application program by obtaining system service, is answering With program by obtain system service during may be implemented to push the notification message of application program, system is taken The notification message that business is supported is presented to the user terminal by notification bar, includes the advertisement information of product advertising, expands application function Recommendation information, the notification messages such as information of product up-gradation, to different user terminals, the useful notification information that needs is different.
Step S104 judges whether application program has message if detecting that application program is obtaining system service Push permission.
Whether the application program installed on to communication terminal is after obtaining system service and being detected, preferably Ground, judges whether application program there is message to push permission and include:The message informing of detection communication terminal is always arranged, In, message informing is always arranged for being arranged whether communication terminal allows message to push, if detecting that message informing is always set When being set to permission message push, it is determined that there is application program message to push permission, if detecting that message informing is always set as Message is not allowed to push, it is determined that application program does not have message and pushes permission.Specifically, if detecting that application program exists System service is obtained, then whether allow message push, wherein message is logical if further judging that the message informing of application program is always arranged Know that total setting has the function of that mobile terminal, which is arranged, has total setting of message push permission, that is, always setting has message informing To the notice management function that the sending out notice message authority of application program is managed collectively, belong to the strategy of communication terminal The management of manager and one kind of control authority.Message informing, which is always arranged, to be allowed message to push and message is not allowed to push and start Total setting function of notification message and the total setting function of not starting notification message are mutual corresponding, it is preferable if judge Message informing, which is always arranged, allows message to push, and starts total setting function of notification message, determines that application program is pushed with message Permission.If it is judged that always setting does not allow message to push to message informing, total setting function of notification message is closed, determines application Program does not have message and pushes permission.
Preferably, if detecting that message informing is always positioned to allow for message push, disappearing for communication terminal is detected Breath notice son setting, wherein message informing setting for be arranged communication terminal allow message push application program and/ Or communication terminal does not allow the application program that message pushes.If detecting that application program is communication terminal and allows to disappear Cease the application program of push, it is determined that there is application program message to push permission, if detecting that application program is mobile communication Terminal does not allow the application program that message pushes, it is determined that application program does not have message and pushes permission.Specifically, starting After total setting function of notification message, the message push permission of the application program of mobile terminal is set.Judge application Whether the message informing setting of program allows message to push, wherein there is the setting of message informing setting mobile terminal to have The son setting function that message pushes permission has that is, control application program has the function of that message pushes permission with application program There is one-to-one relationship, belongs to the management of the policy manager of communication terminal and one kind of control authority.Preferably, such as Fruit judges that the setting of message informing allows message to push, then message informing is arranged corresponding application program and is pushed with message Permission.If it is judged that the setting of message informing does not allow message to push, corresponding application program, which is arranged, in message informing does not have There is message to push permission, message informing always setting can be used for being arranged the message push permission of multiple application programs.
Preferably, corresponding function is always arranged in message informing and corresponding function is arranged as mobile communication end in message informing The function of pre-setting, message informing always setting is held to be set as the total setting function of switch form triggering in communication terminal. It is opened when corresponding display switch is always arranged in message informing, then message informing is always arranged corresponding display switch to receive message logical Know the trigger signal being always arranged, the message push permission that message informing can be arranged corresponding application program is set, That is, the corresponding message informing setting of application program can trigger.It is closed when corresponding display switch is always arranged in message informing, Then message informing is always arranged corresponding display switch and does not receive the trigger signal that message informing is always arranged, closes total setting function, The message push permission that corresponding application program message informing cannot be arranged is set.Message informing is arranged in movement Communicating terminal is set as switch form and is triggered, and corresponding display switch is always arranged in message informing, and to receive message informing total After the trigger signal of setting, opened when corresponding display switch is arranged in message informing, the setting of message informing is corresponding aobvious Show that switch receives the trigger signal of message informing setting, message informing is arranged corresponding application program and is pushed with message Permission;It is closed when corresponding display switch is arranged in message informing, message informing is arranged corresponding display switch and does not receive The trigger signal of message informing setting, message informing are arranged corresponding application program and do not have message push permission.
For example, communication terminal has the system setting function being configured to systematic difference program, system Setting function is presented to the user terminal in communication terminal with specific interactive interface.User terminal enters communication terminal System interface is set, find message informing in system setting corresponding display switch be always set, that is, finding notice management The setting option of function.The inbound message after corresponding display switch is always set to message informing and is configured by clicking trigger The setting space of a whole page of the setting space of a whole page of notice son setting, the setting of message informing includes the message informing setting of multiple application programs Corresponding display switch can be configured the corresponding display switch of specific application program, and then realize to application program Message push permission is configured.
It is closed when corresponding display switch is always arranged in message informing, message informing is arranged corresponding display switch and closes, Optionally, display switch be grey to prompt user terminal display switch to be in off state, that is, communication terminal does not allow Message pushes.It is closed when corresponding display switch is always arranged in message informing, message informing is arranged corresponding display switch and opens, Optionally, display switch be light tone to prompt user terminal display switch to be in an open state, at this point, communication terminal does not allow Message pushes.It is opened when corresponding display switch is always arranged in message informing, message informing is arranged corresponding display switch and closes, Communication terminal allows message to push, but the message informing setting that display switch is closed is corresponding using journey Sequence does not have message to push permission.It is opened when corresponding display switch is always arranged in message informing, the setting of message informing is corresponding aobvious Show that switch is opened, communication terminal allows message to push, that is, the message informing setting that display switch is in the open state Corresponding application program has message to push permission.
Step S106 then allows application program to obtain message and pushes away if it is judged that there is application program message to push permission Take business.
After judging whether application program has message push permission, if it is judged that application program is pushed with message Permission then allows application program to obtain message push service during obtaining system service, is pushed to communication terminal The notification bar of the notification message of application program, mobile terminal can show notification message to user terminal.
Step S108 then forbids application program to obtain message if it is judged that application program, which does not have message, pushes permission Push Service.
If it is judged that application program, which does not have message, pushes permission, then forbid application program in the mistake for obtaining system service Message push service is obtained in journey, the application program of no message push permission cannot send notice to communication terminal and disappear Breath, the notification bar of mobile terminal will not show notification message related with application program, to by forbidding application program to send out It send notification message to realize the notification message for fundamentally shielding application program, reduces the redundancy of application program, reduce shifting The occupancy of dynamic communicating terminal memory, to improve the stand-by time of communication terminal.
Preferably, corresponding display is set and is opened by message informing being always arranged corresponding display switch and message informing After pass is configured, the permission of application program PUSH message is also set.When detect application program obtain system service, Application program sends message request to the system bottom program of mobile terminal first, wherein the message request is that will accuse Know that mobile terminal system needs the solicited message of the notification message of sending application program, represents the attribute of application program, it is different The corresponding message request of application program is different.The system bottom program of mobile terminal is in the message request for receiving application program Later, analyzed by the policy manager of mobile terminal, wherein the policy manager of communication terminal be used for manage and Control the access right of application program.
Message request is analyzed, judges whether message request meets preset rules, wherein preset rules are used for Judge whether the corresponding application program of message request there is message to push permission.Preferably, if it is judged that message request Preset rules are not met, then there is the corresponding application program of message request message to push permission, and application program is allowed to be disappeared Push Service is ceased, if it is judged that message request meets preset rules, then the corresponding application program of message request does not have Message pushes permission, and application program is forbidden to obtain message push service.Preferably, judge whether message request meets default rule Include then:Obtain the packet name of message request;Obtain the packet name for presetting request bag, wherein default request bag includes not having to disappear The message request of the application program push of breath push permission;Judging the packet name that the Bao Mingyu of message request presets request bag is It is no consistent;If it is judged that the packet name that the Bao Mingyu of message request presets request bag is inconsistent, determine that message request is not inconsistent Close preset rules;And if it is judged that message request Bao Mingyu preset request bag packet name it is consistent, determine message request Packet meets preset rules.
Optionally, default request bag includes the message request of the application program push with message push permission.It is obtaining After taking default request bag, the packet name of message request is obtained, and obtain the packet name for presetting request bag.Then judge that message is asked Ask the packet name that the Bao Mingyu of packet presets request bag whether consistent;If it is judged that the Bao Mingyu of message request presets request bag Packet name is consistent, then the message request of notification message does not meet preset rules;If it is judged that the Bao Mingyu of message request is pre- If the packet name of request bag is inconsistent, then the message request of notification message meets preset rules, to logical by judging to send Know whether the message request of message meets preset rules and realize the judgement for pushing permission to the message of application program, Jin Ershi The purpose fundamentally controlled the notification message that application program is sent is showed, has reached and more effectively shielded mobile terminal Notification message effect.
The embodiment is by detecting whether the application program installed on communication terminal is obtaining system service, wherein Application program realizes the push of notification message by obtaining system service;If detecting that application program is obtaining system service, Then judge whether application program there is message to push permission;If it is judged that there is application program message to push permission, then allow Application program obtains message push service;And if it is judged that application program then forbids applying without message push permission Program obtains message push service, realizes the purpose fundamentally controlled the notification message that application program is sent, reaches Having arrived reduces the effect of communication terminal EMS memory occupation amount.
Fig. 2 is the flow chart of the message informing control method of communication terminal according to a second embodiment of the present invention.Such as Shown in Fig. 2, the message informing control method of the communication terminal includes the following steps:
Step S201 is arranged into system.
Communication terminal combines the difference of the operating system of configuration, has the function of different settings, specifically to mobile logical The application layer of news terminal is configured.For example, the communication terminal of Android system.System setting includes notice management and display The setting options etc. of management.Wherein, notice management, corresponding to for be arranged the message informing of communication terminal be always arranged it is total Function is set, can be used for being arranged whether communication terminal allows message push permission optionally to pass through the opening of master switch The opening and closing of total setting function are realized with closing.Communication terminal not only installs the original-pack application of communication terminal Program installs third party application also according to the demand of user terminal.It is arranged further to communication terminal by system The different application of installation is configured, and makes application program that communication terminal be supported to realize different functions, for example, receiving The notification message of application program push intercepts the notification message etc. of application program push.System setting function is at mobile communication end End is presented to the user terminal with specific interactive interface.
Step S202 searches notice management setting.
After entering system setting, the setting options of notice management are searched by the interactive interface that system is arranged.It is optional Ground receives trigger signal in the preset range of the interactive interface of system setting, and judges trigger signal within a preset range Whether residence time is more than preset time, if it is judged that residence time is more than when presetting to trigger signal within a preset range Between, then enter the operation interface of notice management setting.After entering system setting, it can also be touched by what is clicked or double-click Originating party formula enters the operation interface of notice management setting.The operation interface of notice management setting includes the setting of message informing, is used Allow the application that the application program of message push and/or communication terminal do not allow message to push in setting communication terminal Program.Optionally, the setting of message informing realizes display message informing setting function by the opening and closing of sub switch Opening and closing.
Step S203, judges whether master switch is opened.Master switch corresponds to the notice management function of application program.Judge total Whether switch is opened, that is, the message informing of detection communication terminal is always arranged, wherein message informing is always arranged for setting Set whether communication terminal allows message to push.If master switch is opened, detect that message informing is always positioned to allow for disappearing Breath push, executes step S204;If master switch is closed, detects that message informing is always set as not allowing message to push, hold Row step S207.
Step S204, judges whether sub switch is opened.
Sub switch is opened, then detects that application program is the application program that communication terminal allows message to push, then really Determine application program and pushes permission with message;Sub switch is closed, then detects that application program is communication terminal and does not allow to disappear Cease the application program of push, it is determined that application program does not have message and pushes permission.Step S205, the application journey that sub switch is opened Sequence expression allows to send a notification message.
Step S205, the corresponding application program of sub switch allow message to push.
Judge whether sub switch is opened after judging that sub switch is opened, the corresponding application program of sub switch has message Permission is pushed, the application program expression that sub switch is opened allows to send a notification message, and the notification bar of mobile terminal can show have Message pushes the notification message of the application program of permission.
Step S206 does not enable sub switch function.
After judging that sub switch is closed, this step is executed, does not enable sub switch function, that is, the sub switch closed Corresponding application program does not have message and pushes permission, and the application program expression that sub switch is opened is forbidden sending a notification message, and moves The notification bar of dynamic terminal can will not show the notification message for the application program that permission is pushed without message.
Step S207 does not enable master switch function.
After judging that master switch is closed, this step is executed, does not enable master switch function, that is, if notice management Function does not allow message to push, and does not start total setting function of notification message, the message push power of the application program of mobile terminal Limit cannot be set.
The embodiment is arranged by entering system, searches notice management, judges whether master switch is opened in notice manages, If it is judged that master switch is opened, then judge whether sub switch is opened, if it is judged that sub switch is opened, then sub switch is opened Application program expression allows to send a notification message, and realizes and is fundamentally controlled the notification message that application program is sent Purpose has achieved the effect that reduce communication terminal EMS memory occupation amount.
Fig. 3 is the flow chart of the message informing control method of communication terminal according to a third embodiment of the present invention.Such as Shown in Fig. 3, the message informing control method of the communication terminal includes the following steps:
Step S301 obtains message request.
When detecting application program in acquisition system service, application program sends message request to mobile terminal first System bottom program, wherein the message request is that will inform that mobile terminal system needs the notice of sending application program to disappear The solicited message of breath, represents the attribute of application program, and the corresponding message request of different application programs is different.
Step 302, calling system notice service.
After obtaining message request, the notifications service of communication terminal is called.Wherein, notifications service It is determined by the permission of policy manager, that is, related with master switch and the setting state of sub switch.
Step 303, message request packet name is obtained.
After the message request and calling system notice service for obtaining notification message, message request packet name is obtained.
Step 304, acquisition strategy manager permission.
The permission of message manager is determined by master switch and sub switch.For example, master switch is closed, and sub switch is closed, Notice management function is not activated, and message informing is always set as not allowing message to push, and determines that application program is pushed away without message Send permission;Master switch is closed, and sub switch is opened, and notice management function is not activated, and message informing is always set as not allowing message Push determines that application program does not have message and pushes permission;Master switch is opened, and sub switch is closed, and is started notice management function, is disappeared Breath notice is always positioned to allow for message push, determines that there is application program message to push permission, detects that application program is movement Communicating terminal does not allow the application program that message pushes, determines that application program does not have message and pushes permission;Master switch is opened, son Switch is opened, and message informing is always positioned to allow for message push, is determined that there is application program message to push permission, is detected application Program is the application program that communication terminal allows message to push, and determines that there is application program message to push permission.
Step 305, whether the packet name of the default request bags of the Bao Mingyu of message request is consistent.
After the access right of acquisition strategy manager, obtains and preset request bag.Default request bag includes not pushed away The message request for the notification message that the application program of permission pushes is sent, optionally, default request bag includes multiple message requests Packet.After obtaining default request bag, the packet name of the message request of notification message is obtained, and obtain the packet for presetting request bag Name.Then judge whether the packet name of the default request bags of the Bao Mingyu of message request is consistent;If it is judged that message request The packet name that Bao Mingyu presets request bag is consistent, thens follow the steps S306, and application program is forbidden to obtain message push service;If sentenced The packet name that the Bao Mingyu of disconnected outbound message request bag presets request bag is inconsistent, then application program is allowed to obtain message push service, Execute step S307.
Step 306, application program is forbidden to obtain message push service.
If it is judged that the packet name that the Bao Mingyu of message request presets request bag is consistent, then application program is forbidden to be disappeared Push Service is ceased, application program does not have message and pushes permission, and communication terminal will not be received to push without message and be weighed The notification message of the application program push of limit.
Step 307, application program is allowed to obtain message push service.
If it is judged that the packet name that the Bao Mingyu of message request presets request bag is inconsistent, then application program has message Permission is pushed, application program is allowed to obtain message push service.Communication terminal receives the application with message push permission The notification message that program is pushed.
The embodiment is by obtaining sending out notice message, then calling system notice service, then obtains message request packet Whether the packet name of name, acquisition strategy manager permission, the default request bags of Bao Mingyu of message request is consistent, if message request The packet name that the Bao Mingyu of packet presets request bag is consistent, then forbids application program to obtain message push service, if message request Bao Mingyu preset request bag packet name it is inconsistent, then allow application program obtain message push service, realize to applying journey The purpose that the notification message that sequence is sent fundamentally is controlled has reached the effect for reducing communication terminal EMS memory occupation amount Fruit.
It should be noted that step shown in the flowchart of the accompanying drawings can be in such as a group of computer-executable instructions It is executed in computer system, although also, logical order is shown in flow charts, and it in some cases, can be with not The sequence being same as herein executes shown or described step.
The embodiment of the present invention additionally provides a kind of message informing control device of communication terminal.It should be noted that The message informing control device of the communication terminal of the present invention can be used for executing the communication terminal of the embodiment of the present invention Message informing control method.
Fig. 4 is the schematic diagram of the message informing control device of communication terminal according to the ... of the embodiment of the present invention.Such as Fig. 4 institutes Show, the message informing control device of the communication terminal includes:Detection unit 10, judging unit 20, first processing units 30 With first processing units 40.
Detection unit 10, for detecting whether the application program installed on communication terminal is obtaining system service, In, application program realizes the push of notification message by obtaining system service.
Communication terminal includes a variety of application programs, and a variety of application programs can be by obtaining system service to realize not Same function meets the needs of user terminal is different, and application program, which passes through, obtains the push that notification message is realized in system service.It moves The application program installed on dynamic communicating terminal realizes the function of application program by obtaining system service, passes through in application program It may be implemented to push the notification message of application program during obtaining system service, system service be supported logical Know that message is presented to the user terminal by notification bar.The application program installed on communication terminal is detected by detection unit 10 Whether system service is being obtained.
Judging unit 20, for detect application program obtain system service, then judge whether application program has Message pushes permission.
Judging unit 20 further includes first detection module, the first determining module and the second determining module.Wherein, the first detection Module, for when detecting that the message informing is always positioned to allow for message push, the message for detecting communication terminal to be logical Know total setting, wherein message informing is always arranged for being arranged whether communication terminal allows message to push;First determines mould Block, for detect message informing be always positioned to allow for message push, it is determined that application program have message push permission;The Two determining modules, for detecting that message informing is always set as not allowing message to push, it is determined that application program, which does not have, to disappear Breath push permission.
First determining module includes:Detection sub-module, the first determination sub-module, the second determination sub-module.Wherein, detection Module, for detect message informing be always positioned to allow for message push, it is determined that application program have message push permission Later, the message informing setting of communication terminal is detected, wherein message informing is arranged for communication terminal to be arranged Allow the application program that message pushes and/or the application program that communication terminal does not allow message to push;First determines submodule Block, for detecting that application program is the application program that communication terminal allows message to push, it is determined that application program has There is message to push permission;And second determination sub-module, for detecting that application program is communication terminal and do not allow to disappear Cease the application program of push, it is determined that application program does not have message and pushes permission.
Judging unit 20 further includes receiving module:Receiving module and judgment module, the message for receiving application program are asked Seek packet;Judgment module, for judging whether message request meets preset rules, wherein first processing units 30 are for sentencing Disconnected outbound message request bag does not meet preset rules, it is determined that there is application program message to push permission, wherein second processing unit 40 for judging that message request meets preset rules, it is determined that application program does not have message and pushes permission.
Preferably, the judgment module of judging unit 20 includes:First acquisition submodule, the second acquisition submodule, third are true Stator modules and the 4th determination sub-module.Wherein, the first acquisition submodule, the packet name for obtaining message request;Second obtains Submodule is taken, the packet name for obtaining default request bag, wherein default request bag includes not having the application of message push permission The message request of program push;Judging submodule, for judge message request Bao Mingyu preset request bag packet name be It is no consistent;Third determination sub-module, the packet name for presetting request bag in the Bao Mingyu for judging message request is inconsistent, really Determine message request and does not meet preset rules;And the 4th determination sub-module, in the Bao Mingyu for judging message request The packet name of default request bag is consistent, determines that message request meets preset rules.
First processing units 30, for judge application program have message push permission, then allow application program to obtain Obtain message push service.
First processing units 40, for judge application program do not have message push permission, then forbid application program Obtain message push service.
In this embodiment, when detection unit 10 detects application program in acquisition system service, application program is sent out first Send message request to the system bottom program of mobile terminal.The system bottom program of mobile terminal is receiving disappearing for application program It after ceasing request bag, is analyzed by the policy manager of mobile terminal, wherein the policy manager of communication terminal is used To manage and control the access right of application program.Message request is analyzed, judges that message is asked by judging unit 20 Ask whether packet meets preset rules, wherein preset rules are used for judging whether the corresponding application program of message request has and disappear Breath push permission.Preferably, if judging that message request does not meet preset rules, message request by judging unit 20 There is corresponding application program message to push permission, allows application program to obtain message by first processing units 30 and pushes clothes Business, if judging that message request meets preset rules, the corresponding application program of message request by judging unit 20 Permission is pushed without message, forbids application program to obtain message push service by second processing unit 40.
Preferably, judge whether message request meets preset rules and include by judging unit 20:It is obtained by first Submodule obtains the packet name of message request, and the packet name for presetting request bag is then obtained by the second acquisition submodule, wherein pre- If request bag includes the message request for the application program push for not having message push permission, then is judged by judging submodule Whether the packet name that the Bao Mingyu of message request presets request bag is consistent, if judging message request by judging submodule Bao Mingyu preset request bag packet name it is inconsistent, then determine that message request does not meet default rule by third determination sub-module Then;If judging that the packet name of the default request bags of the Bao Mingyu of message request is consistent by judging submodule, pass through the 4th Determination sub-module determines that message request meets preset rules.
Optionally, default request bag includes the message request of the application program push with message push permission.Logical The first acquisition submodule is crossed to obtain the packet name of message request and obtain the packet for presetting request bag by the second acquisition submodule Name judges whether the packet name of the default request bags of the Bao Mingyu of message request is consistent by judging submodule;If passing through judgement Submodule judges that the packet name of the default request bags of the Bao Mingyu of message request is consistent, then is determined by third determination sub-module logical Know that the message request of message does not meet preset rules;If judging that the Bao Mingyu of message request is pre- by judging submodule If the packet name of request bag is inconsistent, then determine that the message request of notification message meets default rule by the 4th determination sub-module Then, to judge whether the message request of the notification message sent meets preset rules and realize correspondence by judging submodule Permission is pushed with the message of program, and then realizes the mesh fundamentally controlled the notification message that application program is sent , achieve the effect that the notification message for more effectively shielding mobile terminal.
Whether the embodiment detects the application program installed on communication terminal in acquisition system by detection unit 10 Service, wherein application program realizes the push of notification message by obtaining system service, is answered by judging unit 20 detecting System service is being obtained with program, then is judging whether application program there is message to push permission, is being existed by first processing units 30 Judge that there is application program message to push permission, then allows application program to obtain message push service, pass through second processing list Member 40 judge application program do not have message push permission, then forbid application program obtain message push service, realize To the purpose that the notification message that application program is sent fundamentally is controlled, reduction communication terminal EMS memory occupation is reached The effect of amount.
The embodiment of the present invention additionally provides a kind of communication terminal.It should be noted that the movement of the embodiment of the present invention Communicating terminal includes the message informing control device of communication terminal provided in an embodiment of the present invention.The shifting of the embodiment of the present invention Dynamic communicating terminal can be the mobile terminals such as mobile phone, tablet computer.
The embodiment of the present invention is realized by adding filter layer in system framework layer to application program sending out notice message Management.It is connected to message request in system, system can obtain the packet name of message request, and acquisition strategy manager makes system again With power, the packet name of message request is transmitted to policy manager.The management strategy and user terminal of policy manager are set in system Setting in setting is associated, and operation of the user terminal in the setting option of notice management function directly affects management strategy.Pass through The parsing of policy manager, obtains analysis result.If analysis result is the permission that application program has sending out notice message, The notification message of application program push is received, and it will be shown in the notification bars of communication terminal;If analysis result is to answer The permission for not having sending out notice message with program, then directly ignore the push request of this message request, and mobile communication is whole The notification bar at end will not show the notification message of the application program, realize the notification message fundamentally sent to application program The purpose controlled achievees the effect that the notification message for more effectively shielding mobile terminal, and then obtains answering for actual needs The notification message pushed with program greatly reduces the redundancy of application program, reduces the EMS memory occupation of communication terminal Amount, increases the utilization rate of memory, and then increase the stand-by time of communication terminal.
Obviously, those skilled in the art should be understood that each module of the above invention or each step can be with general Computing device realize that they can be concentrated on a single computing device, or be distributed in multiple computing devices and formed Network on, optionally, they can be realized with the program code that computing device can perform, it is thus possible to which they are stored Be performed by computing device in the storage device, either they are fabricated to each integrated circuit modules or by they In multiple modules or step be fabricated to single integrated circuit module to realize.In this way, the present invention is not limited to any specific Hardware and software combines.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, any made by repair Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.

Claims (5)

1. a kind of message informing control method of communication terminal, which is characterized in that including:
Whether the application program installed on detection communication terminal is obtaining system service, wherein the application program passes through Obtain the push that notification message is realized in the system service;
If detecting that the application program is obtaining the system service, judge whether the application program pushes away with message Send permission;
If it is judged that there is the application program message to push permission, then the application program is allowed to obtain message push clothes Business;And
If it is judged that the application program, which does not have message, pushes permission, then the application program is forbidden to obtain message push clothes Business;
Wherein, judge whether the application program there is message to push permission and include:Receive the message request of the application program Packet, wherein the message request is the solicited message of the notification message of application program;Judge whether the message request accords with Close preset rules;If it is judged that the message request does not meet the preset rules, it is determined that the application program has Message pushes permission;And if it is judged that the message request meets the preset rules, it is determined that the application program Permission is pushed without message.
2. according to the method described in claim 1, it is characterized in that, judging whether the message request meets preset rules packet It includes:
Obtain the packet name of the message request;
Obtain the packet name for presetting request bag, wherein the default request bag includes the application program for not having message push permission The message request of push;
Judge whether the packet name that request bag is preset described in the Bao Mingyu of the message request is consistent;
If it is judged that the packet name for presetting request bag described in the Bao Mingyu of the message request is inconsistent, determine that the message is asked Packet is asked not meet the preset rules;And
If it is judged that the packet name for presetting request bag described in the Bao Mingyu of the message request is consistent, the message request is determined Packet meets the preset rules.
3. a kind of message informing control device of communication terminal, which is characterized in that including:
Detection unit, for detecting whether the application program installed on communication terminal is obtaining system service, wherein described Application program realizes the push of notification message by obtaining the system service;
Judging unit then judges that the application program is for detecting that the application program obtaining the system service It is no that there is message to push permission;
First processing units, for judge the application program have message push permission, then allow the application program Obtain message push service;And
Second processing unit, for judge the application program do not have message push permission, then forbid it is described apply journey Sequence obtains message push service;
Wherein, the judging unit includes:Receiving module, the message request for receiving the application program, wherein described Message request is the solicited message of the notification message of application program;Judgment module, for whether judging the message request Meet preset rules, wherein the first processing units are used to judge that the message request do not meet the default rule When then, determine that there is the application program message to push permission, the second processing unit is used to judge that the message asks When packet being asked to meet the preset rules, determine that the application program does not have message and pushes permission.
4. device according to claim 3, which is characterized in that the judgment module includes:
First acquisition submodule, the packet name for obtaining the message request;
Second acquisition submodule, the packet name for obtaining default request bag, wherein the default request bag includes not having message Push the message request of the application program push of permission;
Judging submodule, for judging whether the packet name for presetting request bag described in the Bao Mingyu of the message request is consistent;
Third determination sub-module, the packet name for presetting request bag described in the Bao Mingyu for judging the message request differ When cause, determine that the message request does not meet the preset rules;And
4th determination sub-module, the packet name for presetting request bag described in the Bao Mingyu for judging the message request are consistent When, determine that the message request meets the preset rules.
5. a kind of communication terminal, which is characterized in that whole including the mobile communication described in any one of claim 3 to 4 The message informing control device at end.
CN201510676327.5A 2015-10-16 2015-10-16 Communication terminal and its message informing control method and device Active CN105354492B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510676327.5A CN105354492B (en) 2015-10-16 2015-10-16 Communication terminal and its message informing control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510676327.5A CN105354492B (en) 2015-10-16 2015-10-16 Communication terminal and its message informing control method and device

Publications (2)

Publication Number Publication Date
CN105354492A CN105354492A (en) 2016-02-24
CN105354492B true CN105354492B (en) 2018-07-17

Family

ID=55330463

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510676327.5A Active CN105354492B (en) 2015-10-16 2015-10-16 Communication terminal and its message informing control method and device

Country Status (1)

Country Link
CN (1) CN105354492B (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107305499B (en) * 2016-04-22 2022-03-04 中兴通讯股份有限公司 Method and device for clearing notification messages of mobile terminal
CN106022108B (en) * 2016-05-17 2019-07-02 Oppo广东移动通信有限公司 A kind of synchronization management method and terminal device
CN106022110B (en) * 2016-05-18 2019-04-09 Oppo广东移动通信有限公司 The method and device of identification push platform application
CN105897559B (en) * 2016-05-20 2019-01-29 维沃移动通信有限公司 A kind of control method and mobile terminal of HTML5 application
CN106055073B (en) * 2016-05-31 2019-02-26 Oppo广东移动通信有限公司 A kind for the treatment of method and apparatus based on bright screen lock
CN106528791B (en) * 2016-11-08 2019-08-02 宇龙计算机通信科技(深圳)有限公司 A kind of method and device of sending out notice message
CN106681474A (en) * 2016-12-07 2017-05-17 上海传英信息技术有限公司 Mobile communication terminal bright screen management and setting method thereof
CN107071751B (en) * 2016-12-30 2019-09-17 Oppo广东移动通信有限公司 A kind of message block method and mobile terminal based on mobile terminal framework
CN107343311A (en) * 2017-06-19 2017-11-10 北京小米移动软件有限公司 Push control method and device
CN108427598B (en) * 2018-03-21 2021-05-25 Oppo广东移动通信有限公司 Message processing method, device, terminal and storage medium
CN108833677A (en) * 2018-05-18 2018-11-16 珠海格力电器股份有限公司 Shield method, apparatus, storage medium and the mobile phone of message
CN109218410B (en) * 2018-08-17 2021-09-17 青岛海信智慧家居系统股份有限公司 Message display method and terminal equipment
CN109669730B (en) * 2018-12-26 2022-05-06 北京达佳互联信息技术有限公司 Process keep-alive method, device, electronic equipment and medium
CN111090800B (en) * 2019-12-11 2023-10-20 北京小米移动软件有限公司 User data processing method, device, terminal and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102752730A (en) * 2012-07-19 2012-10-24 腾讯科技(深圳)有限公司 Method and device for message handling
CN103116722A (en) * 2013-02-06 2013-05-22 北京奇虎科技有限公司 Processing method, processing device and processing system of notification board information
CN103546641A (en) * 2013-10-29 2014-01-29 广东欧珀移动通信有限公司 Method and device for filtering messages on notification bar of mobile terminal
CN103577749A (en) * 2013-11-15 2014-02-12 北京奇虎科技有限公司 Method and device for processing notification column message
CN104169855A (en) * 2013-12-20 2014-11-26 华为终端有限公司 Notification bar inforamiton management method and device
CN104346569A (en) * 2013-07-31 2015-02-11 贝壳网际(北京)安全技术有限公司 Method and device for identifying malicious advertisements in mobile terminal and mobile terminal
US9130988B2 (en) * 2010-12-21 2015-09-08 Microsoft Technology Licensing, Llc Scareware detection

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9130988B2 (en) * 2010-12-21 2015-09-08 Microsoft Technology Licensing, Llc Scareware detection
CN102752730A (en) * 2012-07-19 2012-10-24 腾讯科技(深圳)有限公司 Method and device for message handling
CN103116722A (en) * 2013-02-06 2013-05-22 北京奇虎科技有限公司 Processing method, processing device and processing system of notification board information
CN104346569A (en) * 2013-07-31 2015-02-11 贝壳网际(北京)安全技术有限公司 Method and device for identifying malicious advertisements in mobile terminal and mobile terminal
CN103546641A (en) * 2013-10-29 2014-01-29 广东欧珀移动通信有限公司 Method and device for filtering messages on notification bar of mobile terminal
CN103577749A (en) * 2013-11-15 2014-02-12 北京奇虎科技有限公司 Method and device for processing notification column message
CN104169855A (en) * 2013-12-20 2014-11-26 华为终端有限公司 Notification bar inforamiton management method and device

Also Published As

Publication number Publication date
CN105354492A (en) 2016-02-24

Similar Documents

Publication Publication Date Title
CN105354492B (en) Communication terminal and its message informing control method and device
US11743296B2 (en) Secure network device management in a telecommunications network
CN104484259A (en) Application program traffic monitoring method and device, and mobile terminal
CN109104412A (en) Account right management method, management system and computer readable storage medium
EP2597814A1 (en) Abnormality alarm method and service node for intelligent home system
WO2013085867A1 (en) Contextual and location awareness for device interaction
CN104601639A (en) Webpage application message push method, client, server and system
CN103076977B (en) A kind of method and system of the transmission of trigger message in the standby state
CN106656989B (en) Flow monitoring method and terminal
EP3422271A1 (en) Mail information management method and associated apparatus
CN104159231A (en) Method for optimizing background flow of client, and client
CN104571870A (en) Method and device for processing application information
CN105808286A (en) Background program removal method and electronic device
CN105718809A (en) Mobile communication terminal, data security monitoring method and device thereof
CN102572814B (en) A kind of mobile terminal virus monitor method, system and device
CN112185059B (en) Method and device for reminding user
CN106161733B (en) System switching method and device and mobile terminal
CN105447384B (en) A kind of anti-method monitored, system and mobile terminal
CN109669785A (en) Page sharing method, device, server and the storage medium of terminal applies
EP2385726A1 (en) Apparatus and method for controlling amount of concurrent calls
CN105490913A (en) Instant message processing method and device
CN105307134A (en) Short message monitoring method and device
CN114173366B (en) User parameter restoration method and device, computer storage medium and electronic equipment
CN100574214C (en) The implementation method of protection mobile network resource
CN105933545A (en) Real-time traffic and call cost reminding apparatus and method

Legal Events

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