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.