CN108804194A - Notification bar message treatment method, device, user terminal and readable storage medium storing program for executing - Google Patents

Notification bar message treatment method, device, user terminal and readable storage medium storing program for executing Download PDF

Info

Publication number
CN108804194A
CN108804194A CN201810610143.2A CN201810610143A CN108804194A CN 108804194 A CN108804194 A CN 108804194A CN 201810610143 A CN201810610143 A CN 201810610143A CN 108804194 A CN108804194 A CN 108804194A
Authority
CN
China
Prior art keywords
message
notification bar
anything
application program
bar message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810610143.2A
Other languages
Chinese (zh)
Other versions
CN108804194B (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.)
Beijing Hongxiang Technical Service Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201810610143.2A priority Critical patent/CN108804194B/en
Publication of CN108804194A publication Critical patent/CN108804194A/en
Application granted granted Critical
Publication of CN108804194B publication Critical patent/CN108804194B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a kind of notification bar message treatment method, device, user terminal and readable storage medium storing program for executing, belong to field of computer technology.This method includes:It intercepts and each of opens the first notification bar message that application program of attending to anything else is sent to operating system in sandbox;The private data for obtaining the corresponding application program of attending to anything else of the first notification bar message intercepted, private data is added in the extra field of the first notification bar message, obtains the second notification bar information and sending to operating system;When user terminal is in screen lock state, the notification bar message of snoop-operations system, current notifications column message is detected based on private data, is classified according to testing result to current notifications column message, shows current notifications column message according to classification results in locking screen interface.The classification displaying for realizing the notification bar message of the application program of respectively attending to anything else inside the notification bar message and sandbox to system native applications program, is conducive to the message reading efficiency for improving user.

Description

Notification bar message treatment method, device, user terminal and readable storage medium storing program for executing
Technical field
The present invention relates to field of computer technology more particularly to a kind of notification bar message treatment method, device, user terminals And readable storage medium storing program for executing.
Background technology
Now many people in certain applications (such as instant messaging application) all there are two above account, with facilitate work with Life.In order to enable terminal device to open simultaneously more than two identical applications, so that user can set in the same terminal More than two accounts of same application, the function of needing terminal device that there is application to open more are logged in standby simultaneously.A kind of mode It is that can realize that application is opened more, i.e., be installed and turned on certain native applications program in sandbox by configuring sandbox in terminal device More than one application program of attending to anything else, to realize in same terminal device simultaneously run multiple identical application programs.
Notification bar is to aid in one of the important channel that third-party application is interacted with user, for user's display systems and The notification message of third-party application, such as the unread message of system update prompting message, third-party application push remind notice to disappear Breath.In the prior art, the application program of attending to anything else that either the notification bar message of system native applications program is still opened by sandbox Notification bar message, notifications column be according to reception time sequencing show message informing.With the growth of information content, eventually End equipment will receive a large amount of message daily, include the message of the message of native applications program and application program of attending to anything else, these disappear Cease it is mixed in together cause message display chaotic, be unfavorable for user's reading.
Invention content
In view of the above problems, the present invention proposes a kind of notification bar message treatment method, device, user terminal and readable deposits Storage media can disappear to the notification bar of the application program of respectively attending to anything else inside the notification bar message and sandbox of system native applications program Breath carries out classification displaying, is conducive to the message reading efficiency for improving user.
In a first aspect, an embodiment of the present invention provides a kind of notification bar message treatment method, the method includes:To sandbox Each of middle unlatching attend to anything else application program in the process of running to operating system send the first notification bar message behavior supervised Control intercepts the first notification bar message that each application program of attending to anything else is sent to the operating system;Obtain the institute intercepted The private data is added to this and first led to by the private data for stating the corresponding application program of attending to anything else of the first notification bar message In the extra field for knowing column message, the second notification bar message is obtained, and the second notification bar message is sent to operating system;
When user terminal is in screen lock state, the current notifications column message of the operating system is monitored, and based on described Private data is detected current notifications column message, divides according to testing result current notifications column message Class, and show current notifications column message according to classification results in locking screen interface.
Optionally, described that current notifications column message is detected based on the private data, according to testing result Classify to current notifications column message, including:Judge in the extra field of current notifications column message whether include Private data;If current notifications column message includes private data, judge that current notifications column message is described second Notification bar message, and current notifications column message is divided into the first pre-set categories;If current notifications column message is not wrapped Containing private data, then judge that current notifications column message is the third notice column message sent by system native applications program, And current notifications column message is divided into the second pre-set categories.
Optionally, the private data includes the packet name of the corresponding application program of attending to anything else of the first notification bar message It is proved with user identity, it is described that current notifications column message is detected based on the private data, according to testing result Classify to current notifications column message, further includes:Obtain the current notifications column message for belonging to first pre-set categories Extra field in packet name and user identity prove;It is proved first pre-set categories by the packet name and user identity In, it is divided into a subclass corresponding to the current notifications column message of the same application program of attending to anything else;According to preset merging Strategy merges the current notifications column message for belonging to the same subclass, generates corresponding notification bar.
Optionally, the private data further includes the first spy of the corresponding application program of attending to anything else of the first notification bar message Reference ceases, described to be merged to the current notifications column message for belonging to the same subclass according to preset consolidation strategy, raw After corresponding notification bar, further include:The notification bar generated after merging is ranked up according to the fisrt feature information.
Optionally, the fisrt feature information is the alias of the corresponding application program of attending to anything else of the first notification bar message.
Optionally, described to be added to the private data in the extra field of the first notification bar message, obtain second Notification bar message includes:The second feature information of the corresponding application program of attending to anything else of the first notification bar message is obtained, it is right The second feature information for the application program that should attend to anything else described in the difference of same native applications program is different;According to the second feature The first notification bar message is marked in information, and the difference with differentiation corresponding to same native applications program is attended to anything else using journey Sequence;The private data is added in the extra field of the first notification bar message after label, obtains the second notification bar Message.
Optionally, described that the first notification bar message is marked according to the second feature information, including:Identification institute State the layout type of the first notification bar message;According to the layout type of the first notification bar message and first notification bar The second feature information of the corresponding application program of attending to anything else of message, modifies to the first notification bar message, with label The corresponding first notification bar message of the application program of attending to anything else.
Optionally, the first notification bar message for intercepting each application program of attending to anything else and being sent to the operating system Including:Kidnap the enqueueNotification methods in notification manager using Hook Function, capture it is described it is each attend to anything else answer The the first notification bar message sent to the operating system with program.
Second aspect, the embodiment of the present invention additionally provide a kind of notification bar message processing apparatus, and described device includes:Monitoring Module, processing module and display module.Monitoring module, for each of opening application program of attending to anything else in sandbox in operational process The middle behavior that the first notification bar message is sent to operating system is monitored, and intercepts each application program of attending to anything else to the behaviour Make the first notification bar message of system transmission.Processing module, it is corresponding for obtaining the first notification bar message intercepted The private data is added in the extra field of the first notification bar message by the private data of the application program of attending to anything else, The second notification bar message is obtained, and the second notification bar message is sent to operating system.Display module, for when user's end When end is in screen lock state, the current notifications column message of the operating system is monitored, and work as to described based on the private data Preceding notification bar message is detected, and is classified according to testing result to current notifications column message, and in locking screen interface Current notifications column message is shown according to classification results.
Optionally, the display module is specifically used for:Judge whether wrapped in the extra field of current notifications column message Containing private data;If current notifications column message includes private data, judge that current notifications column message is described the Two notification bar message, and current notifications column message is divided into the first pre-set categories;If current notifications column message is not Including private data, then judge that current notifications column message is that the third notice column sent by system native applications program disappears Breath, and current notifications column message is divided into the second pre-set categories.
Optionally, the private data includes the packet name of the corresponding application program of attending to anything else of the first notification bar message It is proved with user identity.The display module is additionally operable to:Obtain the current notifications column message for belonging to first pre-set categories Packet name and user identity in extra field prove;It is proved first pre-set categories by the packet name and user identity In, it is divided into a subclass corresponding to the current notifications column message of the same application program of attending to anything else;According to preset merging Strategy merges the message for belonging to the same subclass, generates corresponding notification bar.
Optionally, the display module is additionally operable to:According to the fisrt feature information to the notification bar that is generated after merging It is ranked up.
Optionally, the fisrt feature information is the alias of the corresponding application program of attending to anything else of the first notification bar message.
Optionally, the processing module includes:First acquisition submodule, for obtaining first notification bar intercepted The private data of the corresponding application program of attending to anything else of message;Second acquisition submodule disappears for obtaining first notification bar The second feature information of the corresponding application program of attending to anything else is ceased, attends to anything else described in the difference corresponding to same native applications program and answers It is different with the second feature information of program;Submodule is marked, for disappearing to first notification bar according to the second feature information Breath is marked, and is attended to anything else application program with the difference for distinguishing corresponding to same native applications program;Submodule is added, is used for institute In the extra field for stating the first notification bar message that private data is added to after label, the second notification bar message is obtained;Hair Submodule is sent, for the second notification bar message to be sent to operating system.
Optionally, the label submodule is specifically used for:Identify the layout type of the first notification bar message;According to institute It states the layout type of the first notification bar message and the first notification bar message is corresponding described attends to anything else the second of application program Characteristic information modifies to the first notification bar message, with corresponding first notification bar of application program of attending to anything else described in label Message.
Optionally, the monitoring module is specifically used for:It is kidnapped in notification manager using Hook Function EnqueueNotification methods capture the first notice that each application program of attending to anything else is sent to the operating system Column message.
The third aspect, the embodiment of the present invention additionally provide a kind of user terminal, including processor and memory, the storage Device is couple to the processor, the memory store instruction.Make the user when executed by the processor Terminal executes the step of notification bar message treatment method that above-mentioned first aspect provides.
Fourth aspect, the embodiment of the present invention additionally provide a kind of computer readable storage medium, are stored thereon with computer The step of program, which realizes the notification bar message treatment method that above-mentioned first aspect provides when being executed by processor.
In technical solution provided in an embodiment of the present invention, each of opens application program of attending to anything else by intercepting in sandbox and transporting The the first notification bar message sent to operating system during row, then obtains corresponding point of the first notification bar message intercepted Private data is then added in the extra field of the first notification bar message by the private data of body application program, obtains Two notification bar message, and the second notification bar message is sent to operating system.When user terminal is in screen lock state, so that it may with The current notifications column message of snoop-operations system is detected current notifications column message based on private data, is tied according to detection Fruit classifies to current notifications column message, and shows current notifications column message according to classification results in locking screen interface Show.The logical of the application program of respectively attending to anything else inside the notification bar message and sandbox to system native applications program thus may be implemented The classification displaying for knowing column message, is conducive to the message reading efficiency for improving user.
Above description is only the general introduction of technical solution of the present invention, in order to better understand the technical means of the present invention, And can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, below the special specific implementation mode for lifting the present invention.
Description of the drawings
By reading the detailed description of hereafter preferred embodiment, various other advantages and benefit are common for this field Technical staff will become clear.Attached drawing only for the purpose of illustrating preferred embodiments, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows a kind of flow chart for notification bar message treatment method that first embodiment of the invention provides;
Fig. 2 shows a kind of notification bar message display arrangement schematic diagrams that first embodiment of the invention provides;
Fig. 3 shows another notification bar message display arrangement schematic diagram that first embodiment of the invention provides;
Fig. 4 shows a kind of functional block diagram for notification bar message processing apparatus that second embodiment of the invention provides;
Fig. 5 shows a kind of module frame chart for user terminal that third embodiment of the invention provides.
Specific implementation mode
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure Completely it is communicated to those skilled in the art.
In the case where the sandbox constructed in advance in using user terminal is carried out using open more, application program of attending to anything else all be by Sandbox is opened, and when operating system shows notification bar message, the notification bar message and system for application program of attending to anything else inside sandbox are primary The notification bar message of application program is mixed in together to cause notification bar message display chaotic, is unfavorable for user's reading.In consideration of it, this Inventive embodiments provide a kind of notification bar message treatment method and device.The notification bar message treatment method and device are applied to User terminal is equipped with operating system and third party application in the user terminal.In the present embodiment, which can Think Android (Android), IOS, Windows Phone or Windows etc..
First embodiment of the invention provides a kind of notification bar message treatment method.Fig. 1 shows that the present invention first is implemented A kind of method flow diagram for notification bar message treatment method that example provides.As shown in Figure 1, the method includes:
Step S101 sends first to operating system in the process of running to each of opening application program of attending to anything else in sandbox The behavior of notification bar message is monitored, and intercepts the first notice that each application program of attending to anything else is sent to the operating system Column message;
By taking Android system as an example, Android system provides the system interface for generating notification bar for application program, application Program is in the packet name (Packagename), the identity (Identity, ID) of topology file, picture resource for specifying application program The information such as ID after, the request for generating notification bar is sent out to system, i.e., sends notification bar message to system, with by system according to Request generates notification bar in current interface.
Sandbox (Sandbox) is a virtual system program, and the application program for needing to detect can be run in sandbox, Obtain crawler behavior, the operation result etc. of application program.And it is influenced caused by the application program for running detection in sandbox It can then delete, hard disk itself will not be had an impact.Sandbox can be used as an independent virtual environment, detection not accredited The application program appointed.Application program is put into sandbox and is run, a closed operation ring is provided for application program by sandbox Border may be implemented to be monitored the behavior of the application program in the process of running.
User opens multiple application programs of attending to anything else of certain destination application by sandbox, and sandbox, which can attend to anything else to these, answers It is monitored with the behavior of program in the process of running.That is, sandbox can monitor each application program of attending to anything else to operation System sends the behavior of notification bar message.In the present embodiment, the application program of attending to anything else opened in sandbox is sent to operating system Notification bar message be known as the first notification bar message.
By taking Android system as an example, as an implementation, above-mentioned interception each application program of attending to anything else is to the behaviour Making the first notification bar message that system is sent may include:Notification manager is kidnapped using Hook Function (NotificationManager) the enqueueNotification methods in capture and each of open application of attending to anything else in sandbox The first notification bar message that program is sent to the operating system.First notification bar message can be connect to the application program of attending to anything else The event for receiving information executes the notification message of prompt.NotificationManager is the management class of status bar notice, is responsible for It sends out public notice, remove the operations such as notice.In addition, NotificationManager is a system Service, so must pass through GetSystemService (NOTIFICATION_SERVICE) methods obtain, and call NotificationManager's Notify methods can send to system and notify.Fall NotificationManager's using Hook Function hook EnqueueNotification methods, so that it may with monitor the application run in sandbox attend to anything else to operating system send notification bar disappear The behavior of breath.
Step S102 obtains the privately owned number of the corresponding application program of attending to anything else of the first notification bar message intercepted According to the private data being added in the extra field of the first notification bar message, obtains the second notification bar message, and by institute It states the second notification bar message and is sent to operating system;
In the present embodiment, private data includes the identity of application program of attending to anything else, the reference as subsequent message classification. In the present embodiment, the identity for application program of attending to anything else can be attend to anything else the packet name and UID (User of application program Identification, user identity prove).It is understood that can determine unique application by packet name and UID.For example, Three wechats are opened in sandbox to attend to anything else, respectively wechat attend to anything else 1, wechat attend to anything else 2 and wechat attend to anything else 3, when intercepting wechat Attend to anything else 1 transmission the first notification bar message when, then obtain the private data of wechat identity 1.
It should be noted that the extra field of the first notification bar message is for transmitting the required additional number of target element According to not interfering with displaying of the system to notification bar message.By taking Android system as an example, acquired private data can be added to The Notification.extras fields of first notification bar message.
In the present embodiment, the first notification bar of the private data that application program of accordingly attending to anything else is added in extra field is disappeared Breath is known as the second notification bar message, the second notification bar message is sent to operating system displaying, and execute following steps S103.
Step S103 monitors the current notifications column message of the operating system, base when user terminal is in screen lock state Current notifications column message is detected in the private data, according to testing result to current notifications column message into Row classification, and show current notifications column message according to classification results in locking screen interface.
It is understood that before executing step S103, need first to determine whether user terminal is currently in screen locking shape State.As an implementation, determine that the step of whether user terminal is currently in screen lock state may include:Monitoring users are whole The screen locking at end is broadcasted;It is broadcasted according to the screen locking, determines whether the user terminal is currently in screen lock state.
As another embodiment, user terminal can determine whether present terminal is in by ongoing business Screen lock state.Some applications can only be run under the state of spreading its tail, such as video playing application, therefore terminal can be according to being currently The no video playing that carrying out determines whether to be in screen lock state.
Alternatively, user terminal can also determine whether present terminal is in screen locking according to the application type that current interface is shown State.For example, usually user terminal when being in screen lock state, also can only be shown even if screen is lighted, on terminal screen weather or Time etc. is applied on a small quantity, if terminal is in state of spreading its tail, multiple application programs can be shown on terminal screen, as music or video are broadcast Class application, the application of instant chat class etc. are put, therefore terminal can be currently according to the application type determination shown in current interface It is no to be in screen lock state.
Or the wallpaper of terminal screen lock state is different from the wallpaper for the state of spreading its tail, therefore user terminal can also pass through The wallpaper of current interface determines whether present terminal is in screen lock state.
When user terminal is in screen lock state, screen locking, which can change the notification bar of operating system, monitors.It needs Bright, the notification bar message that operating system receives includes system native applications program, i.e., sandbox external application is sent Notification bar message and sandbox inside attend to anything else application program transmission the second notification bar message.For the ease of distinguishing, this implementation In example, the notification bar message that system native applications program is sent is known as third notice column message.Obviously, above-mentioned steps are based on The processing of S102 includes private data in the extra field of the second notification bar message, and the extra field of third notice column message In do not include private data.
Therefore, it when screen locking, which listens to operating system, receives new notification bar message, can be arrived with Anti-Sniffer current Whether include private data in the extra field of notification bar message, by testing result to the current notifications column message that is listened to Classify, and shows current notifications column message according to classification results in locking screen interface.It thus can be by third Notification bar message and the second notification bar message carry out classification displaying, i.e. third notice column message is one kind, attends to anything else inside sandbox and answers The the second notification bar message sent with program is a kind of, that is, realizes the notification bar message and sandbox to system native applications program The classification displaying of the notification bar message of internal application program of respectively attending to anything else, user can be read respectively from system native applications journey The notification bar message of sequence and the notification bar message for application program of attending to anything else inside sandbox.Compared to directly sequentially in time All notification bar message are shown successively, are effectively improved message reading efficiency.
For example, in a kind of concrete application scene, when locking screen interface shows notification bar message, the displaying of two columns can be divided to logical Know column message, i.e., third notice column message is classified as column displaying, it, will be by attending to anything else inside sandbox as shown in the regions P1 in Fig. 2 The second notification bar message that application program is sent is classified as another column displaying, as shown in the regions P2 in Fig. 2.In addition, this two column is logical Know that message can arrange up and down, as shown in Fig. 2, arrangement can also be controlled, as shown in figure 3, specifically can be according to practical need It is arranged.For example, two column notification bar message can be arranged display up and down for the relatively narrow user terminal of screen such as mobile phone, for Two column notification bar message or so can be arranged and be shown by the wider user terminal of screen such as tablet computer.In Fig. 2 and Fig. 3, the areas P1 There are one notification bars for display in domain, wherein the icon of the corresponding native applications program of the left side graphical representation notification bar, " XXX " Indicate that the title of the corresponding third notice column message of the notification bar, " XXXX " indicate the corresponding third notice column message of the notification bar Content of announcement;There are three notification bars for display in the regions P2, correspond respectively to the second notice of three application program transmissions of attending to anything else Column message.
Specifically, in above-mentioned steps S103, current notifications column message is detected based on the private data, Carrying out classification to current notifications column message according to testing result may include:Judge the additional of current notifications column message Whether include private data in field;If current notifications column message includes private data, the current notifications column is judged Message is the second notification bar message, and current notifications column message is divided into the first pre-set categories;If described current Notification bar message does not include private data, then judges that current notifications column message is the sent by system native applications program Three notification bar message, and current notifications column message is divided into the second pre-set categories.At this point, the first pre-set categories will be belonged to Current notifications column message be classified as a column displaying, the current notifications column message for belonging to the second pre-set categories is classified as another column exhibition Show, with the second notification bar message of displaying and the third notice column message of classifying in locking screen interface.
In the present embodiment, show that the notification bar message for belonging to the first pre-set categories, i.e. the second notification bar disappear in locking screen interface When breath, can directly it be shown successively according to the time sequencing for listening to the second notification bar message.In view of each attending to anything else using journey Sequence may correspond to multiple second notification bar message, and the notification bar shown in this way is more, may influence the reading of user Efficiency.
Based on this, in one embodiment of the invention, when private data includes that the first notification bar message is corresponding described When the packet name and user identity for application program of attending to anything else prove, in above-mentioned steps S103, disappeared to current notifications column based on private data Breath is detected, and is classified according to testing result to current notifications column message, can also be included:It is pre- that acquisition belongs to described first If the packet name and user identity in the extra field of the current notifications column message of classification prove;Pass through the packet name and user identity It proves, by first pre-set categories, one to be divided into corresponding to the current notifications column message of the same application program of attending to anything else Subclass;The current notifications column message for belonging to the same subclass is merged according to preset consolidation strategy, generation pair The notification bar answered.
It is understood that the second notification bar message with identical packet name and same subscriber proof of identification is corresponding to same Attend to anything else application program.It, can be by the second notification bar message from same application program of attending to anything else in order to facilitate read notification message Displaying is merged, i.e., from the message of same application program of attending to anything else, specific consolidation strategy can be with for display in a notification bar It is arranged as required to.It is understood that the layout of notification bar includes title, icon and content of announcement, as shown in Figure 2.Certainly, In other embodiments, the layout of notification bar can also only include title and content of announcement or only include icon and content of announcement, It is arranged with specific reference to actual needs.
As the first embodiment, the current notifications column for belonging to the first pre-set categories currently listened to can be obtained and disappeared It is the second notification bar message number of each subclass in the second notification bar message to cease, in the notice that notification bar is corresponded to after merging The second notification bar message number of each subclass is only shown at appearance.For example, what is currently listened to belongs to first pre-set categories Message includes the one article of second notification bar message of attending to anything else from A application programs 1, attending to anything else two article of 2 from A application programs Two notification bar message and from B application programs attend to anything else 1 three the second notification bar message.Application program A attend to anything else 1 and point The title of body 2 is respectively A application programs 1 and A application programs 2, and 1 title of attending to anything else of B application programs is respectively B application programs 1. The message for belonging to the first pre-set categories so currently listened to can be divided into three subclass, i.e. A application programs 1 correspond to One subclass S1, A application program 2 corresponds to subclass S2, B an application program 1 and corresponds to a subclass S3.Wherein, Subclass S1 includes a second notification bar message, and subclass S2 includes two the second notification bar message, and subclass S3 includes three Item the second notification bar message.At this point, displaying knot of the message for belonging to the first pre-set categories currently listened in locking screen interface Fruit is:" 1 message " is shown at the content of announcement of the corresponding notification bars of subclass S1;In the corresponding notification bars of subclass S2 " 2 message " is shown at content of announcement;" 3 message " is shown at the content of announcement of the corresponding notification bars of subclass S3, such as Fig. 2 It is shown.
As second of embodiment, the second notification bar message coalescing for belonging to the same subclass is illustrated in one and is led to When knowing in column, specifically can at the content of announcement of the notification bar according to the time sequencing for listening to the second notification bar message, according to It is secondary to show the message content for belonging to each of the subclass the second notification bar message.For example, message content may include connection It is that name claims and Content of Communication, " contact name can be expressed as:Content of Communication ".In the examples described above, it is assumed that subclass S1 Including the message content of a second notification bar message be:" Xiao Ming:??";According to listening to the second notification bar message The message content of time sequencing, two the second notification bar message that subclass S2 includes is followed successively by:" Xiao Zhang:It is also in stockit is available?", " Xiao Liu:It has delivered?";According to the time sequencing for listening to the second notification bar message, subclass S3 include three second is logical Know that the message content of column message is followed successively by:" Xiao Li:??", " small height:Well ", " Xiao Li:Thing has received?".
As the third embodiment, when attending to anything else, application program is instant messaging class application program, and the second notification bar disappears For breath to receive the notification message that the event of information executes prompt to application program of attending to anything else, which includes contact person's letter Breath specifically can be in the notification bar when being illustrated in the notification message for belonging to same subclass merging in one notification bar It shows the message content of each second notification bar message at content of announcement successively according to listening period sequence, and will come from same It is the message content merging displaying of people.For example, when receiving the multiple messages from same contact person, can be notified corresponding At the content of announcement on column, the user name of the contact person, the item number of message and the newest a piece of news content of the contact person are shown. It should be noted that a plurality of second notification bar message corresponding to same contact person for belonging to a certain subclass, with newest Subject to the time of that the second notification bar message listened to, with the second notification bar from other contact persons in the subclass The time of message is compared, and is put in order with determination.
In addition, putting in order for the notification bar that is generated after merging, it can be there are many embodiment.As a kind of reality Mode is applied, after the current notifications column message for belonging to the first preset kind is carried out above-mentioned merging, current each subclass can be obtained Not corresponding listening period, according to the sequencing of the corresponding listening period of each subtype to the corresponding notice of each subtype Column is shown.Wherein, the corresponding listening period of each subclass is the listening period of the latest news in each subclass.This The corresponding notification bar displaying sequence of message that sample belongs to the first preset kind is dynamic change.For example, at current time, screen locking The current notifications column message for belonging to the first pre-set categories listened to is divided into multiple subclass, and will belong to each subclass Current notifications column message coalescing in a notification bar, if some subclass has increased message newly, by the message increased newly close And after arriving the corresponding notification bar of the subclass, the corresponding notification bar top set of the subclass is shown.It should be noted that herein " top set is shown " refer to the arrangement position of the notification bar is adjusted to Show board corresponding with the first pre-set categories top it is as above The top for stating the regions P2 is shown.
As another embodiment, in above-mentioned steps S102, private data may be used also other than including packet name and UID To include the fisrt feature information of the corresponding application program of attending to anything else of the first notification bar message.Correspondingly, screen locking is worked as what is listened to When preceding notification bar message is the second notification bar message, the private data obtained from the extra field of the second notification bar message also wraps Include the fisrt feature information of corresponding application program of attending to anything else.At this point, it is above-mentioned according to preset consolidation strategy to belonging to the same son The current notifications column message of classification merges, and after generating corresponding notification bar, further includes:According to the fisrt feature information The notification bar generated after merging is ranked up so that in Show board corresponding with the first pre-set categories message, each notification bar It puts in order and is determined by the fisrt feature information of the corresponding application program of attending to anything else of each notification bar, it will not be with message listening period It changes and changes, be conducive to need to be ranked up notification bar according to user, further facilitate user's read notification column message.
For example, fisrt feature information can be the alias of the corresponding application program of attending to anything else of the first notification bar message.It needs It is noted that certain the native applications program opened in sandbox it is corresponding attend to anything else application program when, can attend to anything else using journey to this Sequence distributes a default name, and user can as needed modify to the default name, and title is that this is attended to anything else after modification The alias of application program.At this point, above-mentioned be ranked up tool according to the fisrt feature information to the notification bar generated after merging Body can be:The notification bar generated after merging is ranked up according to the lexicographic order of alias.
In another example fisrt feature information can be the character input by user for reflecting sequencing, for example, I Uncle's number 1,2,3 etc..Fisrt feature can be arranged as needed for application program of attending to anything else each of is opened in sandbox in user in this way Information, so that the notification bar generated after above-mentioned merging can be shown according to sequence set by user.For example, user thinks Significance level from 1 second notification bar message of A application programs is higher than the second notification bar message from A application programs 2, comes from The significance level of second notification bar of A application programs 2 is higher than the second notification bar message from B application programs 1, then can be arranged When the fisrt feature information for application program of respectively attending to anything else so that 1 corresponding sequence of A application programs is corresponding prior to A application programs 2 suitable Sequence, sequence of the 2 corresponding sequence of A application programs prior to B application programs 1.
In addition, other than classification displaying current notifications column message, being in and opening in user terminal in locking screen interface in addition to above-mentioned When screen state, operating system can be shown the current notifications column message received.Specifically, operating system can connect The current notifications column message received is shown when receiving the trigger action such as pulling operation of user.Alternatively, operating system Directly the notification bar message being currently received can also be shown when receiving current notifications column message.
In order to facilitate the third that in the current notifications column message of user's discriminated operant system demonstration, native applications program is sent Notification bar message and sandbox are internally corresponding to the second notification bar message of the application program transmission of respectively attending to anything else of the native applications program, As a kind of optional embodiment, in above-mentioned steps S102, the private data is added to the volume of the first notification bar message In outer field, the step of obtaining the second notification bar message, may include:It is described point corresponding to obtain the first notification bar message The second feature information of body application program, the second of application program of attending to anything else described in the difference corresponding to same native applications program are special Reference breath is different;The first notification bar message is marked according to the second feature information, corresponds to same original to distinguish The difference of raw application program is attended to anything else application program;The private data is added to the first notification bar message after label In extra field, the second notification bar message is obtained.In this way when operating system shows the second notification bar message, user can basis Above-mentioned label distinguishes the third notice column message that native applications program is sent and the corresponding difference of native applications program is attended to anything else The corresponding second notification bar message of application program.It should be noted that the private data of extra field addition does not influence system exhibition Show the second notification bar message.
Specifically, above-mentioned be marked the first notification bar message according to the second feature information, may include:Know The layout type of the not described first notification bar message;Led to according to the layout type of the first notification bar message and described first The second feature information for knowing the corresponding application program of attending to anything else of column message, modifies to the first notification bar message, with The corresponding first notification bar message of application program of attending to anything else described in label.
As an implementation, the second feature information for application program of attending to anything else may include pre-set application of attending to anything else The title of program.The title can be the default name of application program of attending to anything else, alternatively, can also be the other of application program of attending to anything else Name.The title for application program of attending to anything else is different from the corresponding title of native applications program, and corresponds to same native applications program Difference attend to anything else application program title it is different.
Specifically, the layout type of notification bar message includes two kinds, and one is primary layout, another kind is self-defined cloth Office.Primary layout is the included notification bar layout of operating system, by taking Android system as an example, primary layout refer to Android system from The notification bar of band is laid out.Self-defined layout refers to by the customized notification bar layout of third-party application.
The modification side of the first notification bar message using primary layout and the first notification bar message using self-defined layout Formula is different.Intercept opened in sandbox attend to anything else application program transmission the first notification bar message after, can first judge this first Whether notification bar message is self-defined layout.When the first notification bar message is self-defined layout, then in first notification bar A nested layout layer, shows the second feature information of the corresponding application program of attending to anything else of the first notification bar message in message, to Realize the label to the first notification bar message.
For example, it can be opened up in the first notification bar message by adding TextView controls in nested layout The title for showing the corresponding application program of attending to anything else of the first notification bar message, can thus distinguish difference attend to anything else application program transmission The second notification bar message.
If it is determined that the first notification bar message is not self-defined layout, then it represents that the first notification bar message is primary layout. When the first notification bar message is primary layout, then corresponding described point according to preset mark rule and the first notification bar message The second feature information of body application program changes the title of the first notification bar message, to logical according to modified first Know that the title of column message distinguishes the first notification bar message of different application program transmissions of attending to anything else, can also distinguish native applications journey Third notice column message that sequence is sent and opened in sandbox, attend to anything else using journey corresponding to the difference of the native applications program The corresponding second notification bar message of sequence.
Wherein, preset mark rule can be set according to actual needs.For example, can be directly by the first notification bar message Title replaces with the title of the corresponding application program of attending to anything else of the first notification bar message, alternatively, can also according to preset format with And the title of name modifications the first notification bar message of the corresponding application program of attending to anything else of the first notification bar message so that first is logical Know the title that the title of column message includes corresponding application program of attending to anything else.
In a kind of concrete application scene, the entitled default name for application program of attending to anything else, and the default name is by this point The title of the corresponding native applications program of body application program and the unlatching serial number of the application program of attending to anything else form.For example, user is logical It crosses three wechats of sandbox unlatching to attend to anything else, and the default name for wechat of attending to anything else is respectively wechat 1, wechat 2 and wechat 3.
When the title of the first notification bar message is directly replaced with the corresponding application program of attending to anything else of the first notification bar message Title when, then the title for the first notification bar message that wechat 1 is sent is revised as " wechat 1 ", first led to wechat 2 is sent Know that the title of column message is revised as " wechat 2 ", the title for the first notification bar message that wechat 3 is sent is revised as " wechat 3 ".
When logical according to the name modifications first of preset format and the corresponding application program of attending to anything else of the first notification bar message When knowing the title of column message, preset format can be:Attend to anything else from A.Wherein, A indicates that the first notification bar message is corresponding attends to anything else The title of application program.At this point, then corresponding to the title for the first notification bar message for sending wechat 1, wechat 2 and wechat 3 respectively It is revised as " attending to anything else from wechat 1 " by " wechat ", attends to anything else from wechat 2 " and attend to anything else from wechat 3 ".Certainly, preset format Extended formatting may be used, can be specifically arranged according to the title for application program of attending to anything else.
It is marked, and then regenerated by the first notification bar message to the application program transmission of attending to anything else opened in sandbox Second notification bar message is sent to operating system displaying, and user can be facilitated when browsing the notification bar message of system demonstration, distinguished The third notice column message that other native applications program is sent is attended to anything else application program pair with by the corresponding difference of the native applications program The the second notification bar message answered is conducive to further facilitate user's efficient process notification bar message.
In conclusion technical solution provided in an embodiment of the present invention, application of attending to anything else each of is opened in sandbox by intercepting The first notification bar message that program is sent to operating system in the process of running, then obtains the first notification bar message intercepted Private data is then added to the extra field of the first notification bar message by the private data of corresponding application program of attending to anything else In, the second notification bar message is obtained, and the second notification bar message is sent to operating system.When user terminal is in screen lock state When, so that it may with the current notifications column message of snoop-operations system, current notifications column message is detected based on private data, root Classify to current notifications column message according to testing result, and in locking screen interface by current notifications column message according to classification results It is shown.Respectively attending to anything else using journey inside notification bar message and sandbox to system native applications program thus may be implemented The classification of the notification bar message of sequence is shown, is conducive to the message reading efficiency for improving user.
Based on same inventive concept, second embodiment of the invention provides a kind of notification bar message processing apparatus.
Fig. 4 shows a kind of functional block diagram for notification bar message processing apparatus that second embodiment of the invention provides. As shown in figure 4, the notification bar message processing apparatus 400 includes:Monitoring module 401, processing module 402 and display module 403.
Wherein, monitoring module 401, for each of opening application program of attending to anything else in sandbox in the process of running to operation The behavior that system sends the first notification bar message is monitored, and is intercepted each application program of attending to anything else and is sent out to the operating system The the first notification bar message sent.
Processing module 402, for obtaining the corresponding application program of attending to anything else of the first notification bar message intercepted Private data, the private data is added in the extra field of the first notification bar message, obtains the second notification bar and disappear Breath, and the second notification bar message is sent to operating system.
Display module 403, for when user terminal is in screen lock state, monitoring the current notifications column of the operating system Message is detected current notifications column message based on the private data, according to testing result to the current notifications Column message is classified, and shows current notifications column message according to classification results in locking screen interface.
As an alternative embodiment, the monitoring module 401 is specifically used for:Notice pipe is kidnapped using Hook Function The enqueueNotification methods in device are managed, capture is described each to attend to anything else what application program was sent to the operating system First notification bar message.
As an alternative embodiment, the processing module 402 includes:First acquisition submodule, second obtain son Module, label submodule, addition submodule and sending submodule.Wherein, the first acquisition submodule, for obtaining the institute intercepted State the private data of the corresponding application program of attending to anything else of the first notification bar message.Second acquisition submodule, it is described for obtaining The second feature information of the corresponding application program of attending to anything else of first notification bar message, corresponds to same native applications program not It is different with the second feature information of the application program of attending to anything else.Submodule is marked, is used for according to the second feature information to this First notification bar message is marked, and is attended to anything else application program with the difference for distinguishing corresponding to same native applications program.Addition Module, for by the private data be added to label after the first notification bar message extra field in, obtain second Notification bar message.Sending submodule, for the second notification bar message to be sent to operating system.
As an alternative embodiment, the label submodule is specifically used for:Identify the first notification bar message Layout type;Corresponding described point according to the layout type of the first notification bar message and the first notification bar message The second feature information of body application program modifies to the first notification bar message, with application program of attending to anything else described in label Corresponding first notification bar message.
As an alternative embodiment, the display module 403 is specifically used for:Judge current notifications column message Extra field in whether include private data;If current notifications column message includes private data, judge described current Notification bar message is the second notification bar message, and current notifications column message is divided into the first pre-set categories;If institute It states current notifications column message and does not include private data, then judge that current notifications column message is to be sent out by system native applications program The third notice column message sent, and current notifications column message is divided into the second pre-set categories.
As an alternative embodiment, the private data includes that the first notification bar message is described point corresponding The packet name and user identity of body application program prove.At this point, the display module 403 is additionally operable to:It is pre- that acquisition belongs to described first If the packet name and user identity in the extra field of the current notifications column message of classification prove;Pass through the packet name and user identity It proves, by first pre-set categories, one to be divided into corresponding to the current notifications column message of the same application program of attending to anything else Subclass;The message for belonging to the same subclass is merged according to preset consolidation strategy, generates corresponding notification bar.
As an alternative embodiment, the display module 403 is additionally operable to:According to the fisrt feature information pairing And the notification bar generated afterwards is ranked up.
Attend to anything else as an alternative embodiment, the fisrt feature information is that the first notification bar message is corresponding The alias of application program.
Above each module can be by software code realization, at this point, above-mentioned each module can be stored in depositing for user terminal In reservoir.Alternatively, above each module can equally be realized by hardware such as IC chip.
It should be noted that the notification bar message processing apparatus 400 that the embodiment of the present invention is provided, specific implementation and production Raw technique effect is identical with preceding method embodiment, and to briefly describe, device embodiment part does not refer to place, before can refer to State corresponding contents in embodiment of the method.
In addition, being based on same inventive concept, third embodiment of the invention additionally provides a kind of user terminal, including processor And memory, the memory are couple to the processor, the memory store instruction, when described instruction is by the processor The user terminal is set to execute following operation when execution:
The first notification bar is sent to operating system in the process of running to each of opening application program of attending to anything else in sandbox to disappear The behavior of breath is monitored, and intercepts the first notification bar message that each application program of attending to anything else is sent to the operating system;
The private data for obtaining the corresponding application program of attending to anything else of the first notification bar message intercepted, will be described Private data is added in the extra field of the first notification bar message, obtains the second notification bar message, and described second is led to Know that column message is sent to operating system;
When user terminal is in screen lock state, the notification bar message of the operating system is monitored, is arrived by Anti-Sniffer Message extra field in whether include private data, classify to the message listened to, in locking screen interface will The message listened to is shown according to classification results.
It should be noted that in the user terminal that the embodiment of the present invention is provided, the specific implementation of above-mentioned each step and The technique effect of generation is identical with preceding method embodiment, and to briefly describe, the present embodiment does not refer to that place can refer to aforementioned side Corresponding contents in method embodiment.
Operating system and third party application are installed in the embodiment of the present invention, in user terminal.User terminal Can be the mobile terminal devices such as tablet computer, mobile phone, electronic reader, laptop, wearable device, car-mounted terminal.
Fig. 5 shows a kind of module frame chart of exemplary user terminal 500.As shown in figure 5, user terminal 500 includes depositing Reservoir 502, storage control 504, one or more (one is only shown in figure) processors 506, Peripheral Interface 508, network mould Block 510, input/output module 512, display module 514 etc..These components pass through one or more communication bus/signal wire 516 Mutually communication.
Memory 502 can be used for storing software program and module, such as the notification bar Message Processing in the embodiment of the present invention Method and the corresponding program instruction/module of device, processor 506 are stored in the software program in memory 502 by operation And module, to perform various functions application and data processing, such as notification bar Message Processing provided in an embodiment of the present invention Method.
Memory 502 may include high speed random access memory, may also include nonvolatile memory, such as one or more magnetic Property storage device, flash memory or other non-volatile solid state memories.Processor 506 and other possible components are to storage The access of device 502 can carry out under the control of storage control 504.
Peripheral Interface 508 couples various input/output devices to processor 506 and memory 502.In some implementations In example, Peripheral Interface 508, processor 506 and storage control 504 can be realized in one single chip.In some other reality In example, they can be realized by independent chip respectively.
Network module 510 is for receiving and transmitting network signal.Above-mentioned network signal may include wireless signal or have Line signal.
The interaction that input/output module 512 is used to that user input data to be supplied to realize user and user terminal.It is described defeated Enter output module 512 may be, but not limited to, mouse, keyboard and Touch Screen etc..
Display module 514 provides an interactive interface (such as user interface) between user terminal 500 and user Or it is referred to user for display image data.In the present embodiment, the display module 514 can be liquid crystal display or touch Control display.Can be that the capacitance type touch control screen or resistance-type of single-point and multi-point touch operation is supported to touch if touch control display Control screen etc..Single-point and multi-point touch operation is supported to refer to touch control display and can sense on the touch control display one or more The touch control operation generated simultaneously at a position, and transfer to processor to be calculated and handled the touch control operation that this is sensed.
It is appreciated that structure shown in fig. 5 is only to illustrate, user terminal 500 may also include it is more than shown in Fig. 5 or Less component, or with the configuration different from shown in Fig. 5.Each component shown in Fig. 5 may be used hardware, software or its Combination is realized.
Fourth embodiment of the invention provides a kind of computer storage media, and the notification bar in second embodiment of the invention disappears If the integrated function module of breath processing unit is realized in the form of software function module and sells or make as independent product Used time can be stored in a computer read/write memory medium.Based on this understanding, the present invention realizes that above-mentioned first is real All or part of flow in the notification bar message treatment method of example is applied, can also be instructed by computer program relevant hard Part is completed, and the computer program can be stored in a computer readable storage medium, which is being handled When device executes, it can be achieved that the step of above-mentioned each embodiment of the method.Wherein, the computer program includes computer program generation Code, the computer program code can be source code form, object identification code form, executable file or certain intermediate forms Deng.The computer-readable medium may include:Any entity or device, record of the computer program code can be carried Medium, USB flash disk, mobile hard disk, magnetic disc, CD, computer storage, read-only memory (ROM, Read-Only Memory), with Machine accesses memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc.. It should be noted that the content that the computer-readable medium includes can be according to legislation and patent practice in jurisdiction It is required that carrying out increase and decrease appropriate, such as in certain jurisdictions, do not wrapped according to legislation and patent practice, computer-readable medium Include electric carrier signal and telecommunication signal.
Algorithm and display be not inherently related to any certain computer, virtual system or miscellaneous equipment provided herein. Various general-purpose systems can also be used together with teaching based on this.As described above, it constructs required by this kind of system Structure be obvious.In addition, the present invention is not also directed to any certain programmed language.It should be understood that can utilize various Programming language realizes the content of invention described herein, and the description done above to language-specific is to disclose this hair Bright preferred forms.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that the implementation of the present invention Example can be put into practice without these specific details.In some instances, well known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this description.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of each inventive aspect, Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:It is i.e. required to protect Shield the present invention claims the more features of feature than being expressly recited in each claim.More precisely, as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following specific implementation mode are expressly incorporated in the specific implementation mode, wherein each claim itself All as a separate embodiment of the present invention.
Those skilled in the art, which are appreciated that, to carry out adaptively the module in the equipment in embodiment Change and they are arranged in the one or more equipment different from the embodiment.It can be the module or list in embodiment Member or component be combined into a module or unit or component, and can be divided into addition multiple submodule or subelement or Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it may be used any Combination is disclosed to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so to appoint Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification (including adjoint power Profit requires, abstract and attached drawing) disclosed in each feature can be by providing the alternative features of identical, equivalent or similar purpose come generation It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments in this include institute in other embodiments Including certain features rather than other feature, but the combination of the feature of different embodiment means to be in the scope of the present invention Within and form different embodiments.For example, in the following claims, embodiment claimed it is arbitrary it One mode can use in any combination.
The all parts embodiment of the present invention can be with hardware realization, or to run on one or more processors Software module realize, or realized with combination thereof.It will be understood by those of skill in the art that can use in practice Microprocessor or digital signal processor (DSP) are realized in gateway according to the ... of the embodiment of the present invention, proxy server, system Some or all components some or all functions.The present invention is also implemented as executing side as described herein Some or all equipment or program of device (for example, computer program and computer program product) of method.It is such Realize that the program of the present invention can may be stored on the computer-readable medium, or can be with the shape of one or more signal Formula.Such signal can be downloaded from internet website and be obtained, and either be provided on carrier signal or with any other shape Formula provides.
It should be noted that the present invention will be described rather than limits the invention for above-described embodiment, and ability Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference mark between bracket should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" before element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real It is existing.In the unit claims listing several devices, several in these devices can be by the same hardware branch To embody.The use of word first, second, and third does not indicate that any sequence.These words can be explained and be run after fame Claim.
The invention discloses A1, a kind of notification bar message treatment method, the method includes:
The first notification bar is sent to operating system in the process of running to each of opening application program of attending to anything else in sandbox to disappear The behavior of breath is monitored, and intercepts the first notification bar message that each application program of attending to anything else is sent to the operating system;
The private data for obtaining the corresponding application program of attending to anything else of the first notification bar message intercepted, will be described Private data is added in the extra field of the first notification bar message, obtains the second notification bar message, and described second is led to Know that column message is sent to operating system;
When user terminal is in screen lock state, the current notifications column message of the operating system is monitored, is based on the private There are data to be detected current notifications column message, classify according to testing result to current notifications column message, And current notifications column message is shown according to classification results in locking screen interface.
A2, the method according to A1, it is described that current notifications column message is detected based on the private data, Classify according to testing result to current notifications column message, including:
Judge in the extra field of current notifications column message whether to include private data;
If current notifications column message includes private data, judge that current notifications column message is described second logical Know column message, and current notifications column message is divided into the first pre-set categories;
If current notifications column message does not include private data, judge that current notifications column message is by system original The third notice column message that raw application program is sent, and current notifications column message is divided into the second pre-set categories.
A3, the method according to A2, the private data include attending to anything else described in the first notification bar message is corresponding The packet name and user identity of application program prove, described to be examined to current notifications column message based on the private data It surveys, classifies according to testing result to current notifications column message, further include:
Obtain the packet name and user identity in the extra field for the current notifications column message for belonging to first pre-set categories It proves;
It is proved in first pre-set categories by the packet name and user identity, corresponding to the same application of attending to anything else The current notifications column message of program is divided into a subclass;
The current notifications column message for belonging to the same subclass is merged according to preset consolidation strategy, generation pair The notification bar answered.
A4, the method according to A3, the private data further include the first notification bar message it is corresponding attend to anything else answer It is described to disappear to the current notifications column for belonging to the same subclass according to preset consolidation strategy with the fisrt feature information of program Breath merges, and after generating corresponding notification bar, further includes:
The notification bar generated after merging is ranked up according to the fisrt feature information.
A5, the method according to A4, the fisrt feature information be the first notification bar message it is corresponding attend to anything else answer With the alias of program.
A6, the method according to A1, the additional word that the private data is added to the first notification bar message Duan Zhong, obtaining the second notification bar message includes:
The second feature information for obtaining the corresponding application program of attending to anything else of the first notification bar message, corresponds to same The second feature information for application program of attending to anything else described in the difference of native applications program is different;
The first notification bar message is marked according to the second feature information, corresponds to same primary answer to distinguish Attended to anything else application program with the difference of program;
The private data is added in the extra field of the first notification bar message after label, it is logical to obtain second Know column message.
A7, the method according to A6, it is described according to the second feature information to the first notification bar message into rower Note, including:
Identify the layout type of the first notification bar message;
Described attend to anything else according to the layout type of the first notification bar message and the first notification bar message are corresponding The second feature information of application program modifies to the first notification bar message, with application program pair of attending to anything else described in label The the first notification bar message answered.
A8, the method according to A1, the interception is described each to attend to anything else what application program was sent to the operating system First notification bar message includes:
The enqueueNotification methods in notification manager are kidnapped using Hook Function, capture described each point The first notification bar message that body application program is sent to the operating system.
The invention discloses B9, a kind of notification bar message processing apparatus, described device includes:
Monitoring module, for being sent in the process of running to operating system to each of opening application program of attending to anything else in sandbox The behavior of first notification bar message is monitored, and intercepts each application program of attending to anything else is sent to the operating system first Notification bar message;
Processing module, the private for obtaining the corresponding application program of attending to anything else of the first notification bar message intercepted There are data, the private data is added in the extra field of the first notification bar message, obtains the second notification bar message, and The second notification bar message is sent to operating system;
Display module, for when user terminal is in screen lock state, the current notifications column for monitoring the operating system to disappear Breath, is detected current notifications column message based on the private data, according to testing result to the current notifications column Message is classified, and shows current notifications column message according to classification results in locking screen interface.
B10, the device according to B9, the display module are specifically used for:
Judge in the extra field of current notifications column message whether to include private data;
If current notifications column message includes private data, judge that current notifications column message is described second logical Know column message, and current notifications column message is divided into the first pre-set categories;
If current notifications column message does not include private data, judge that current notifications column message is by system original The third notice column message that raw application program is sent, and current notifications column message is divided into the second pre-set categories.
B11, the device according to B10, the private data include that the first notification bar message is described point corresponding The packet name and user identity of body application program prove that the display module is additionally operable to:
Obtain the packet name and user identity in the extra field for the current notifications column message for belonging to first pre-set categories It proves;
It is proved in first pre-set categories by the packet name and user identity, corresponding to the same application of attending to anything else The current notifications column message of program is divided into a subclass;
The message for belonging to the same subclass is merged according to preset consolidation strategy, generates corresponding notice Column.
B12, the device according to B11, the display module are additionally operable to:According to the fisrt feature information to merging after The notification bar generated is ranked up.
B13, the device according to B12, the fisrt feature information, which is that the first notification bar message is corresponding, attends to anything else The alias of application program.
B14, the device according to B9, the processing module include:
First acquisition submodule, for obtaining, the first notification bar message for intercepting is corresponding described to attend to anything else using journey The private data of sequence;
Second acquisition submodule, for obtaining, the first notification bar message is corresponding described to attend to anything else the second of application program The second feature information of characteristic information, application program of attending to anything else described in the difference corresponding to same native applications program is different;
Submodule is marked, for the first notification bar message to be marked according to the second feature information, to distinguish Attend to anything else application program corresponding to the difference of same native applications program;
Submodule is added, the additional word for the private data to be added to the first notification bar message after marking Duan Zhong obtains the second notification bar message;
Sending submodule, for the second notification bar message to be sent to operating system.
B15, the device according to B14, the label submodule are specifically used for:
Identify the layout type of the first notification bar message;
Described attend to anything else according to the layout type of the first notification bar message and the first notification bar message are corresponding The second feature information of application program modifies to the first notification bar message, with application program pair of attending to anything else described in label The the first notification bar message answered.
B16, the device according to B9, the monitoring module are specifically used for:
The enqueueNotification methods in notification manager are kidnapped using Hook Function, capture described each point The first notification bar message that body application program is sent to the operating system.
The invention discloses C17, a kind of user terminal, including processor and memory, the memory is couple to described Processor, the memory store instruction make the user terminal execute A1-A8 when executed by the processor Any one of the method the step of.
The invention discloses D18, a kind of computer readable storage mediums, are stored thereon with computer program, the program quilt The step of any one of A1-A8 the methods are realized when processor executes.

Claims (10)

1. a kind of notification bar message treatment method, which is characterized in that the method includes:
To each of opening application program of attending to anything else in sandbox the first notification bar message is sent to operating system in the process of running Behavior is monitored, and intercepts the first notification bar message that each application program of attending to anything else is sent to the operating system;
The private data for obtaining the corresponding application program of attending to anything else of the first notification bar message intercepted, will be described privately owned Data are added in the extra field of the first notification bar message, obtain the second notification bar message, and by second notification bar Message is sent to operating system;
When user terminal is in screen lock state, the current notifications column message of the operating system is monitored, is based on the privately owned number It is detected according to current notifications column message, classifies according to testing result to current notifications column message, and Current notifications column message is shown according to classification results in locking screen interface.
2. according to the method described in claim 1, it is characterized in that, described be based on the private data to the current notifications column Message is detected, and is classified according to testing result to current notifications column message, including:
Judge in the extra field of current notifications column message whether to include private data;
If current notifications column message includes private data, judge that current notifications column message is second notification bar Message, and current notifications column message is divided into the first pre-set categories;
If current notifications column message does not include private data, judge that current notifications column message is to be answered by system is primary The third notice column message sent with program, and current notifications column message is divided into the second pre-set categories.
3. according to the method described in claim 2, it is characterized in that, the private data includes the first notification bar message pair The packet name of application program of attending to anything else described in answering and user identity prove, described to be based on the private data to the current notifications column Message is detected, and is classified according to testing result to current notifications column message, is further included:
The packet name and user identity obtained in the extra field for the current notifications column message for belonging to first pre-set categories proves;
It is proved in first pre-set categories by the packet name and user identity, corresponding to the same application program of attending to anything else Current notifications column message be divided into a subclass;
The current notifications column message for belonging to the same subclass is merged according to preset consolidation strategy, is generated corresponding Notification bar.
4. according to the method described in claim 3, it is characterized in that, the private data further includes the first notification bar message The fisrt feature information of corresponding application program of attending to anything else, it is described according to preset consolidation strategy to belonging to the same subclass Current notifications column message merges, and after generating corresponding notification bar, further includes:
The notification bar generated after merging is ranked up according to the fisrt feature information.
5. according to the method described in claim 4, it is characterized in that, the fisrt feature information is the first notification bar message The alias of corresponding application program of attending to anything else.
6. according to the method described in claim 1, it is characterized in that, described be added to first notification bar by the private data In the extra field of message, obtaining the second notification bar message includes:
The second feature information for obtaining the corresponding application program of attending to anything else of the first notification bar message, corresponds to same primary The second feature information for application program of attending to anything else described in the difference of application program is different;
The first notification bar message is marked according to the second feature information, corresponds to same native applications journey to distinguish The difference of sequence is attended to anything else application program;
The private data is added in the extra field of the first notification bar message after label, obtains the second notification bar Message.
7. according to the method described in claim 6, it is characterized in that, it is described according to the second feature information to this first notice Column message is marked, including:
Identify the layout type of the first notification bar message;
According to the corresponding application of attending to anything else of the layout type of the first notification bar message and the first notification bar message The second feature information of program modifies to the first notification bar message, corresponding with application program of attending to anything else described in label First notification bar message.
8. a kind of notification bar message processing apparatus, which is characterized in that described device includes:
Monitoring module, for sending first to operating system in the process of running to each of opening application program of attending to anything else in sandbox The behavior of notification bar message is monitored, and intercepts the first notice that each application program of attending to anything else is sent to the operating system Column message;
Processing module, the privately owned number for obtaining the corresponding application program of attending to anything else of the first notification bar message intercepted According to the private data being added in the extra field of the first notification bar message, obtains the second notification bar message, and by institute It states the second notification bar message and is sent to operating system;
Display module, for when user terminal is in screen lock state, monitoring the current notifications column message of the operating system, base Current notifications column message is detected in the private data, according to testing result to current notifications column message into Row classification, and show current notifications column message according to classification results in locking screen interface.
9. a kind of user terminal, which is characterized in that including processor and memory, the memory is couple to the processor, The memory store instruction makes the user terminal perform claim require 1-7 when executed by the processor Any one of the method the step of.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor The step of any one of claim 1-7 the methods are realized when execution.
CN201810610143.2A 2018-06-13 2018-06-13 Notification bar message processing method and device, user terminal and readable storage medium Active CN108804194B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810610143.2A CN108804194B (en) 2018-06-13 2018-06-13 Notification bar message processing method and device, user terminal and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810610143.2A CN108804194B (en) 2018-06-13 2018-06-13 Notification bar message processing method and device, user terminal and readable storage medium

Publications (2)

Publication Number Publication Date
CN108804194A true CN108804194A (en) 2018-11-13
CN108804194B CN108804194B (en) 2021-09-07

Family

ID=64086998

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810610143.2A Active CN108804194B (en) 2018-06-13 2018-06-13 Notification bar message processing method and device, user terminal and readable storage medium

Country Status (1)

Country Link
CN (1) CN108804194B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111324386A (en) * 2018-12-13 2020-06-23 北京奇虎科技有限公司 Method and device for starting personal application program, electronic equipment and storage medium
CN111610903A (en) * 2020-05-25 2020-09-01 维沃移动通信有限公司 Information display method and electronic equipment
CN112073289A (en) * 2019-06-10 2020-12-11 腾讯科技(深圳)有限公司 Instant messaging control method and device
CN113906381A (en) * 2019-04-03 2022-01-07 三星电子株式会社 Electronic device for displaying messages and method of operating the same
CN114741143A (en) * 2022-03-18 2022-07-12 维沃移动通信有限公司 Notification display method and electronic equipment
CN115756270A (en) * 2020-05-29 2023-03-07 华为技术有限公司 Content sharing method, device and system

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140282470A1 (en) * 2013-03-13 2014-09-18 Arynga Inc. Remote transfer of electronic images to a vehicle
US20160034710A1 (en) * 2014-05-16 2016-02-04 Safe Text Ltd. Messaging systems and methods
CN106056010A (en) * 2016-05-20 2016-10-26 北京小米移动软件有限公司 Method and apparatus for processing messages by terminal, and terminal
CN106156300A (en) * 2016-06-30 2016-11-23 宇龙计算机通信科技(深圳)有限公司 A kind of notification message display packing and device
CN106201547A (en) * 2016-07-21 2016-12-07 北京奇虎科技有限公司 Method, device and the mobile terminal that a kind of message based on mobile terminal shows
US20160360004A1 (en) * 2015-06-02 2016-12-08 Apple Inc. Method and system for processing notifications amongst applications of a data processing system
CN106775829A (en) * 2016-11-24 2017-05-31 维沃移动通信有限公司 The management method and mobile terminal of a kind of notice sound function
US20170337045A1 (en) * 2016-05-17 2017-11-23 Google Inc. Automatic graphical user interface generation from notification data
CN107861608A (en) * 2017-11-21 2018-03-30 广东欧珀移动通信有限公司 Notifications service control method, device, terminal device and storage medium
CN107992248A (en) * 2017-11-27 2018-05-04 北京小米移动软件有限公司 Message display method and device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140282470A1 (en) * 2013-03-13 2014-09-18 Arynga Inc. Remote transfer of electronic images to a vehicle
US20160034710A1 (en) * 2014-05-16 2016-02-04 Safe Text Ltd. Messaging systems and methods
US20160360004A1 (en) * 2015-06-02 2016-12-08 Apple Inc. Method and system for processing notifications amongst applications of a data processing system
US20170337045A1 (en) * 2016-05-17 2017-11-23 Google Inc. Automatic graphical user interface generation from notification data
CN106056010A (en) * 2016-05-20 2016-10-26 北京小米移动软件有限公司 Method and apparatus for processing messages by terminal, and terminal
CN106156300A (en) * 2016-06-30 2016-11-23 宇龙计算机通信科技(深圳)有限公司 A kind of notification message display packing and device
CN106201547A (en) * 2016-07-21 2016-12-07 北京奇虎科技有限公司 Method, device and the mobile terminal that a kind of message based on mobile terminal shows
CN106775829A (en) * 2016-11-24 2017-05-31 维沃移动通信有限公司 The management method and mobile terminal of a kind of notice sound function
CN107861608A (en) * 2017-11-21 2018-03-30 广东欧珀移动通信有限公司 Notifications service control method, device, terminal device and storage medium
CN107992248A (en) * 2017-11-27 2018-05-04 北京小米移动软件有限公司 Message display method and device

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111324386A (en) * 2018-12-13 2020-06-23 北京奇虎科技有限公司 Method and device for starting personal application program, electronic equipment and storage medium
CN113906381A (en) * 2019-04-03 2022-01-07 三星电子株式会社 Electronic device for displaying messages and method of operating the same
EP3935590A4 (en) * 2019-04-03 2022-04-27 Samsung Electronics Co., Ltd. Electronic device for displaying message and operating method thereof
US11644937B2 (en) 2019-04-03 2023-05-09 Samsung Electronics Co., Ltd. Electronic device for displaying message and operating method thereof
CN112073289A (en) * 2019-06-10 2020-12-11 腾讯科技(深圳)有限公司 Instant messaging control method and device
CN111610903A (en) * 2020-05-25 2020-09-01 维沃移动通信有限公司 Information display method and electronic equipment
CN115756270A (en) * 2020-05-29 2023-03-07 华为技术有限公司 Content sharing method, device and system
CN115756270B (en) * 2020-05-29 2024-03-26 华为技术有限公司 Content sharing method, device and system
CN114741143A (en) * 2022-03-18 2022-07-12 维沃移动通信有限公司 Notification display method and electronic equipment
CN114741143B (en) * 2022-03-18 2024-03-26 维沃移动通信有限公司 Notification display method and electronic equipment

Also Published As

Publication number Publication date
CN108804194B (en) 2021-09-07

Similar Documents

Publication Publication Date Title
CN108804194A (en) Notification bar message treatment method, device, user terminal and readable storage medium storing program for executing
CN108351772A (en) Across the identifier of application example
US20180316727A1 (en) Enabling user definition of anomaly action rules in a network security system
US10904289B2 (en) Enabling user definition of custom threat rules in a network security system
US9407443B2 (en) Component analysis of software applications on computing devices
US20180316705A1 (en) User interface for defining anomaly action rules in a network security system
US11574205B2 (en) Unified cognition for a virtual personal cognitive assistant of an entity when consuming multiple, distinct domains at different points in time
CN104331216B (en) In the method and apparatus of intelligent terminal middle pipe reason applicative notifications
CN108614774A (en) Automated testing method and device
DE202016008133U1 (en) Container application with dynamic subpack loader
US11429874B2 (en) Unified cognition for a virtual personal cognitive assistant when cognition is embodied across multiple embodied cognition object instances
CN105554280A (en) Message reminding method and terminal
CN104317648B (en) A kind of method and apparatus of monitoring advertisement
US20200012990A1 (en) Systems and methods of network-based intelligent cyber-security
US11475071B2 (en) Configuring dynamic content previews
CN103778012B (en) The method and device of change terminal operator's informaiton
CN107038358A (en) A kind of self-starting treating method and apparatus and mobile terminal
CN105933546A (en) Message notification method and apparatus, and terminal
CN105931034A (en) Electronic virtual currency obtaining method and mobile terminal thereof
CN110209984A (en) Information interacting method, electronic equipment and computer-readable medium
CN108228300A (en) The method and device that a kind of control content refreshes in real time
CN105528251A (en) Application notification information processing method and device and mobile terminal
CN108683588A (en) A kind of information management method, message management apparatus and mobile terminal
CN104427285B (en) A kind of prompt message generation method and device
CN105491239B (en) The hold-up interception method and device of junk information

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
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220802

Address after: 300450 No. 9-3-401, No. 39, Gaoxin 6th Road, Binhai Science Park, Binhai New Area, Tianjin

Patentee after: 3600 Technology Group Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230704

Address after: 1765, floor 17, floor 15, building 3, No. 10 Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: Beijing Hongxiang Technical Service Co.,Ltd.

Address before: 300450 No. 9-3-401, No. 39, Gaoxin 6th Road, Binhai Science Park, Binhai New Area, Tianjin

Patentee before: 3600 Technology Group Co.,Ltd.