CN108804194B - Notification bar message processing method and device, user terminal and readable storage medium - Google Patents

Notification bar message processing method and device, user terminal and readable storage medium Download PDF

Info

Publication number
CN108804194B
CN108804194B CN201810610143.2A CN201810610143A CN108804194B CN 108804194 B CN108804194 B CN 108804194B CN 201810610143 A CN201810610143 A CN 201810610143A CN 108804194 B CN108804194 B CN 108804194B
Authority
CN
China
Prior art keywords
notification bar
bar message
application program
message
current
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810610143.2A
Other languages
Chinese (zh)
Other versions
CN108804194A (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

Images

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)
  • User Interface Of Digital Computer (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a notification bar message processing method and device, a user terminal and a readable storage medium, and belongs to the technical field of computers. The method comprises the following steps: blocking a first notification bar message sent by each body-separating application program started in the sandbox to the operating system; the method comprises the steps of obtaining private data of an individual application program corresponding to intercepted first notification bar information, adding the private data into an extra field of the first notification bar information to obtain second notification bar information and sending the second notification bar information to an operating system; when the user terminal is in a screen locking state, monitoring notification bar messages of an operating system, detecting current notification bar messages based on private data, classifying the current notification bar messages according to detection results, and displaying the current notification bar messages in a screen locking interface according to classification results. The method and the device realize the classification and display of the notification bar messages of the system native application program and the notification bar messages of each self-service application program in the sandbox, and are favorable for improving the message reading efficiency of the user.

Description

Notification bar message processing method and device, user terminal and readable storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a notification bar message processing method and apparatus, a user terminal, and a readable storage medium.
Background
Many people now have more than two accounts in some applications (e.g., instant messaging applications) to facilitate work and life. In order to enable a terminal device to simultaneously open more than two identical applications, so that a user can simultaneously log in more than two accounts of the same application in the same terminal device, the terminal device needs to have a function of opening more applications. One way is that multiple applications can be implemented by configuring a sandbox in a terminal device, that is, more than one separate application of a native application is installed and opened in the sandbox, so that multiple identical applications can be run in the same terminal device at the same time.
The notification bar is one of important channels for helping the third-party application to interact with the user, and is used for displaying notification messages of the system and the third-party application to the user, such as system update prompting messages, unread message reminders pushed by the third-party application and other notification messages. In the prior art, whether the notification bar message of the system native application program or the notification bar message of the self-service application program opened by the sandbox, the system notification bar displays the message notifications according to the received time sequence. With the increase of the information amount, the terminal device receives a large amount of messages every day, wherein the messages comprise messages of a native application and messages of a separate application, and the messages are mixed together to cause messy message display and are not beneficial to reading of a user.
Disclosure of Invention
In view of the above problems, the present invention provides a notification bar message processing method, an apparatus, a user terminal and a readable storage medium, which can classify and display the notification bar messages of the system native application and the notification bar messages of each of the individual applications in the sandbox, and are beneficial to improving the message reading efficiency of the user.
In a first aspect, an embodiment of the present invention provides a notification bar message processing method, where the method includes: monitoring the behavior of each split application program started in the sandbox for sending a first notification bar message to an operating system in the running process, and intercepting the first notification bar message sent by each split application program to the operating system; obtaining the intercepted private data of the body-divided application program corresponding to the first notification bar message, adding the private data into an extra field of the first notification bar message to obtain a second notification bar message, and sending the second notification bar message to an operating system;
when the user terminal is in a screen locking state, monitoring the current notification bar message of the operating system, detecting the current notification bar message based on the private data, classifying the current notification bar message according to the detection result, and displaying the current notification bar message in a screen locking interface according to the classification result.
Optionally, the detecting the current notification bar message based on the private data, and classifying the current notification bar message according to the detection result includes: judging whether an additional field of the current notification bar message contains private data or not; if the current notification bar message contains private data, judging that the current notification bar message is the second notification bar message, and dividing the current notification bar message into a first preset category; if the current notification bar message does not contain private data, the current notification bar message is judged to be a third notification bar message sent by a system native application program, and the current notification bar message is divided into a second preset type.
Optionally, the private data includes a package name and a user identity of the self-identified application program corresponding to the first notification bar message, the detecting is performed on the current notification bar message based on the private data, and the current notification bar message is classified according to a detection result, further including: acquiring a packet name and a user identity certificate in an additional field of the current notification bar message belonging to the first preset category; dividing the current notification bar message corresponding to the same body-divided application program in the first preset category into a sub-category through the package name and the user identity certificate; and merging the current notification bar messages belonging to the same sub-category according to a preset merging strategy to generate a corresponding notification bar.
Optionally, the private data further includes first feature information of a body-separated application program corresponding to the first notification bar message, and after the current notification bar messages belonging to the same sub-category are merged according to a preset merging policy and a corresponding notification bar is generated, the method further includes: and sorting the notification bars generated after merging according to the first characteristic information.
Optionally, the first feature information is an alias of the body-distinguished application program corresponding to the first notification bar message.
Optionally, the adding the private data to the additional field of the first notification bar message to obtain the second notification bar message includes: acquiring second characteristic information of the self-body application program corresponding to the first notification bar message, wherein the second characteristic information of different self-body application programs corresponding to the same native application program is different; marking the first notification bar message according to the second characteristic information so as to distinguish different split application programs corresponding to the same native application program; and adding the private data into an additional field of the marked first notification bar message to obtain a second notification bar message.
Optionally, the marking the first notification bar message according to the second feature information includes: identifying a layout mode of the first notification bar message; and modifying the first notification bar message according to the layout mode of the first notification bar message and the second characteristic information of the body-divided application program corresponding to the first notification bar message so as to mark the first notification bar message corresponding to the body-divided application program.
Optionally, the intercepting a first notification bar message sent by each of the separate application programs to the operating system includes: and capturing a first notification bar message sent by each sub-body application program to the operating system by utilizing an enqueueNotification method in a hook function hijack notification manager.
In a second aspect, an embodiment of the present invention further provides a notification bar message processing apparatus, where the apparatus includes: the device comprises a monitoring module, a processing module and a display module. And the monitoring module is used for monitoring the action of sending a first notification bar message to the operating system by each body-divided application program started in the sandbox in the running process and intercepting the first notification bar message sent to the operating system by each body-divided application program. And the processing module is used for acquiring the private data of the self-body application program corresponding to the intercepted first notification bar message, adding the private data into an additional field of the first notification bar message to obtain a second notification bar message, and sending the second notification bar message to an operating system. And the display module is used for monitoring the current notification bar message of the operating system when the user terminal is in a screen locking state, detecting the current notification bar message based on the private data, classifying the current notification bar message according to the detection result, and displaying the current notification bar message in a screen locking interface according to the classification result.
Optionally, the display module is specifically configured to: judging whether an additional field of the current notification bar message contains private data or not; if the current notification bar message contains private data, judging that the current notification bar message is the second notification bar message, and dividing the current notification bar message into a first preset category; if the current notification bar message does not contain private data, the current notification bar message is judged to be a third notification bar message sent by a system native application program, and the current notification bar message is divided into a second preset type.
Optionally, the private data includes a package name and a user identity of the self-service application program corresponding to the first notification bar message. The display module is further configured to: acquiring a packet name and a user identity certificate in an additional field of the current notification bar message belonging to the first preset category; dividing the current notification bar message corresponding to the same body-divided application program in the first preset category into a sub-category through the package name and the user identity certificate; and merging the messages belonging to the same sub-category according to a preset merging strategy to generate a corresponding notification bar.
Optionally, the display module is further configured to: and sorting the notification bars generated after merging according to the first characteristic information.
Optionally, the first feature information is an alias of the body-distinguished application program corresponding to the first notification bar message.
Optionally, the processing module includes: the first acquisition submodule is used for acquiring the private data of the self-body application program corresponding to the intercepted first notification bar message; a second obtaining sub-module, configured to obtain second feature information of the self-identified application program corresponding to the first notification bar message, where the second feature information of different self-identified application programs corresponding to the same native application program is different; the marking submodule is used for marking the first notification bar message according to the second characteristic information so as to distinguish different body-separating application programs corresponding to the same native application program; the adding submodule is used for adding the private data into an additional field of the marked first notification bar message to obtain a second notification bar message; and the sending submodule is used for sending the second notification bar message to an operating system.
Optionally, the marking submodule is specifically configured to: identifying a layout mode of the first notification bar message; and modifying the first notification bar message according to the layout mode of the first notification bar message and the second characteristic information of the body-divided application program corresponding to the first notification bar message so as to mark the first notification bar message corresponding to the body-divided application program.
Optionally, the monitoring module is specifically configured to: and capturing a first notification bar message sent by each sub-body application program to the operating system by utilizing an enqueueNotification method in a hook function hijack notification manager.
In a third aspect, an embodiment of the present invention further provides a user terminal, which includes a processor and a memory, where the memory is coupled to the processor, and the memory stores instructions. When the instructions are executed by the processor, the user terminal is caused to execute the steps of the notification bar message processing method provided by the first aspect.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the notification bar message processing method provided in the first aspect.
In the technical scheme provided by the embodiment of the invention, a first notification bar message sent to an operating system by each body-divided application program started in a sandbox is intercepted in the running process, then private data of the body-divided application program corresponding to the intercepted first notification bar message is acquired, then the private data is added into an additional field of the first notification bar message to obtain a second notification bar message, and the second notification bar message is sent to the operating system. When the user terminal is in a screen locking state, the current notification bar message of the operating system can be monitored, the current notification bar message is detected based on private data, the current notification bar message is classified according to the detection result, and the current notification bar message is displayed in a screen locking interface according to the classification result. Therefore, the classification display of the notification bar messages of the system native application program and the notification bar messages of each self-body application program in the sandbox can be realized, and the improvement of the message reading efficiency of a user is facilitated.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a flowchart illustrating a notification bar message processing method according to a first embodiment of the present invention;
fig. 2 is a schematic diagram illustrating a message display arrangement of a notification bar according to a first embodiment of the present invention;
FIG. 3 is a schematic diagram illustrating another message display arrangement of a notification bar according to the first embodiment of the present invention;
fig. 4 shows a functional block diagram of a notification bar message processing apparatus according to a second embodiment of the present invention;
fig. 5 shows a block diagram of a user terminal according to a third embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Under the condition that the application is opened more by utilizing a sandbox which is constructed in advance in the user terminal, the split application programs are all opened by the sandbox, and when the notification bar message is displayed by the operating system, the notification bar message of the split application program in the sandbox and the notification bar message of the system native application program are mixed together to cause disordered display of the notification bar message, so that the reading by a user is not facilitated. In view of this, the embodiment of the present invention provides a notification bar message processing method and apparatus. The notification bar message processing method and device are applied to a user terminal, and an operating system and a third-party application program are installed in the user terminal. In this embodiment, the operating system may be Android (Android), IOS, Windows Phone, Windows, or the like.
The first embodiment of the invention provides a notification bar message processing method. Fig. 1 is a flowchart illustrating a method for processing a notification bar message according to a first embodiment of the present invention. As shown in fig. 1, the method includes:
step S101, monitoring the action of each divided application program started in a sandbox in the process of sending a first notification bar message to an operating system, and intercepting the first notification bar message sent by each divided application program to the operating system;
taking the android system as an example, the android system provides a system interface for an application program to generate a notification bar, and after the application program specifies information such as a package name (packagemame) of the application program, an Identity (Identity, ID) of a layout file, an ID of a picture resource, and the like, the application program sends a request for generating the notification bar to the system, that is, sends a notification bar message to the system, so that the system generates the notification bar in the current interface according to the request.
The Sandbox (Sandbox) is a virtual system program, and can run the application program to be detected in the Sandbox to obtain the activity behavior, the running result and the like of the application program. And the influence caused by running the detected application program in the sandbox can be deleted later without influencing the hard disk. The sandbox may act as a stand-alone virtual environment, detecting untrusted applications. The application program is put into the sandbox to run, a closed running environment is provided for the application program through the sandbox, and the monitoring of the behavior of the application program in the running process can be achieved.
A user opens a plurality of divided application programs of a certain target application program through a sandbox, and the sandbox can monitor the behaviors of the divided application programs in the running process. That is, the sandbox may monitor the behavior of each of the split application programs sending notification bar messages to the operating system. In this embodiment, a notification bar message sent by the split application started in the sandbox to the operating system is referred to as a first notification bar message.
Taking the android system as an example, as an implementation manner, the intercepting the first notification bar message sent by each of the avatar applications to the operating system may include: capturing a first notification column message sent by each body-divided application program opened in a sandbox to the operating system by utilizing an enqueueNotification method in a hook function hijack notification manager (NotificationManager). The first notification bar message may be a notification message that performs a prompt for an event for which the avatar application receives information. The notifier is a management class for status bar notification, and is responsible for operations such as notification and clearing notification. In addition, the notifiationmanager is a system Service, and therefore, it is necessary to acquire the NOTIFICATION by a getsysteservice (NOTIFICATION _ Service) method, and the NOTIFICATION method calling the notifiationmanager can transmit a NOTIFICATION to the system. By using the hook function hook to remove the enqueueNotification method of the Notification manager, the behavior that the application running in the sandbox sends the notification bar message to the operating system by dividing the application into two parts can be monitored.
Step S102, obtaining the intercepted private data of the self-body application program corresponding to the first notification bar message, adding the private data into an extra field of the first notification bar message to obtain a second notification bar message, and sending the second notification bar message to an operating system;
in this embodiment, the private data includes an identifier of the self-service application as a reference for subsequent message classification. In this embodiment, the identity of the self-identity application may be a package name and a User Identification (UID) of the self-identity application. It will be appreciated that the unique application may be determined by the package name and UID. For example, three wechat subbodies, namely a wechat subbody 1, a wechat subbody 2 and a wechat subbody 3, are opened in the sandbox, and when a first notification column message sent by the wechat subbody 1 is intercepted, the private data of the wechat identity 1 is acquired.
It should be noted that the additional fields of the first notification bar message are used to deliver additional data required by the target component, and do not affect the presentation of the notification bar message by the system. Taking the android system as an example, the acquired private data may be added to the notification.
In this embodiment, the first notification bar message in which the private data of the corresponding avatar application is added in the extra field is referred to as a second notification bar message, the second notification bar message is sent to the operating system for presentation, and the following step S103 is executed.
Step S103, when the user terminal is in the screen locking state, monitoring the current notification bar message of the operating system, detecting the current notification bar message based on the private data, classifying the current notification bar message according to the detection result, and displaying the current notification bar message in the screen locking interface according to the classification result.
It is understood that, before executing step S103, it is required to determine whether the user terminal is currently in the screen lock state. As an embodiment, the step of determining whether the user terminal is currently in the screen locking state may include: monitoring screen locking broadcast of a user terminal; and determining whether the user terminal is in a screen locking state currently or not according to the screen locking broadcast.
As another embodiment, the user terminal may determine whether the current terminal is in the lock screen state through the ongoing service. Some applications can only run in the screen-open state, for example, a video playing application, so that the terminal can determine whether the terminal is currently in the screen-lock state according to whether video playing is currently performed.
Or, the user terminal may also determine whether the current terminal is in the screen locking state according to the application type displayed on the current interface. For example, when the user terminal is in the lock screen state, even if the screen is lit, only a small number of applications such as weather or time are displayed on the terminal screen, and if the terminal is in the open screen state, a plurality of applications such as music or video playing applications, instant chat applications, and the like are displayed on the terminal screen, so that the terminal can determine whether the terminal is in the lock screen state currently according to the types of applications displayed on the current interface.
Or, the wallpaper in the screen locking state of the terminal is different from the wallpaper in the screen unlocking state, so that the user terminal can also determine whether the current terminal is in the screen locking state through the wallpaper of the current interface.
When the user terminal is in a screen locking state, the screen locking can monitor the change of a notification bar of the operating system. It should be noted that the notification bar messages received by the operating system include notification bar messages sent by the system native application, that is, the application outside the sandbox, and second notification bar messages sent by the avatar application inside the sandbox. For the sake of convenience of distinction, in the present embodiment, the notification bar message sent by the system native application is referred to as a third notification bar message. Obviously, based on the processing of step S102 described above, the private data is contained in the additional field of the second notification bar message, and the private data is not contained in the additional field of the third notification bar message.
Therefore, when the screen locking monitors that the operating system receives a new notification bar message, whether the extra field of the monitored current notification bar message contains private data or not can be detected, the monitored current notification bar message is classified according to the detection result, and the current notification bar message is displayed according to the classification result in the screen locking interface. Therefore, the third notification bar message and the second notification bar message can be displayed in a classified mode, namely the third notification bar message is of one type, the second notification bar message sent by the body-divided application program in the sandbox is of one type, namely the notification bar message of the system native application program and the notification bar messages of all the body-divided application programs in the sandbox are displayed in a classified mode, and a user can read the notification bar message from the system native application program and the notification bar message from the body-divided application program in the sandbox respectively. Compared with the method that all notification bar messages are directly and sequentially displayed according to the time sequence, the message reading efficiency is effectively improved.
For example, in one specific application scenario, when the notification bar message is presented in the lock screen interface, the notification bar message may be presented in two columns, that is, the third notification bar message is categorized as one column of presentation, as shown in the P1 area in fig. 2, and the second notification bar message sent by the sandbox internal split application is categorized as another column of presentation, as shown in the P2 area in fig. 2. In addition, the two columns of notification messages may be arranged up and down, as shown in fig. 2, or may be arranged left and right, as shown in fig. 3, and may be specifically set according to actual needs. For example, the two columns of notification bar messages can be arranged and displayed up and down for a user terminal with a narrow screen, such as a mobile phone, and can be arranged and displayed left and right for a user terminal with a wide screen, such as a tablet computer. In fig. 2 and 3, a notification bar is displayed in the P1 area, where the left-side graph represents an icon of a native application corresponding to the notification bar, "XXX" represents the name of a third notification bar message corresponding to the notification bar, and "XXXX" represents the notification content of the third notification bar message corresponding to the notification bar; three notification bar are displayed in the area P2, corresponding to the second notification bar messages sent by the three separate applications.
Specifically, in step S103, the detecting the current notification bar message based on the private data, and the classifying the current notification bar message according to the detection result may include: judging whether an additional field of the current notification bar message contains private data or not; if the current notification bar message contains private data, judging that the current notification bar message is the second notification bar message, and dividing the current notification bar message into a first preset category; if the current notification bar message does not contain private data, the current notification bar message is judged to be a third notification bar message sent by a system native application program, and the current notification bar message is divided into a second preset type. At this time, the current notification bar messages belonging to the first preset category are classified into one bar for display, the current notification bar messages belonging to the second preset category are classified into another bar for display, and the second notification bar messages and the third notification bar messages are displayed in a classified mode in a screen locking interface.
In this embodiment, when the notification bar messages belonging to the first preset category, that is, the second notification bar messages, are displayed on the screen-locking interface, the notification bar messages may be directly and sequentially displayed according to the time sequence of monitoring the second notification bar messages. Considering that each body-divided application program may correspond to a plurality of second notification bar messages, a large number of notification bars are displayed, and the reading efficiency of the user may be affected.
Based on this, in an embodiment of the present invention, when the private data includes the package name and the user identity of the self-organizing application program corresponding to the first notification bar message, in step S103, the detecting the current notification bar message based on the private data, and classifying the current notification bar message according to the detection result, the method may further include: acquiring a packet name and a user identity certificate in an additional field of the current notification bar message belonging to the first preset category; dividing the current notification bar message corresponding to the same body-divided application program in the first preset category into a sub-category through the package name and the user identity certificate; and merging the current notification bar messages belonging to the same sub-category according to a preset merging strategy to generate a corresponding notification bar.
It will be appreciated that the second notification bar messages with the same package name and the same user identification correspond to the same avatar application. In order to facilitate reading of the notification messages, the second notification bar messages from the same avatar application may be displayed in a merged manner, that is, the messages from the same avatar application are displayed in one notification bar, and a specific merging policy may be set as needed. It will be appreciated that the layout of the notification bar includes a title, an icon, and notification content, as shown in FIG. 2. Of course, in other embodiments, the layout of the notification bar may also include only the title and the notification content or only the icon and the notification content, which is specifically set according to actual needs.
As a first implementation manner, the number of the second notification bar messages of each sub-category in the currently monitored current notification bar message belonging to the first preset category, that is, the second notification bar message, may be acquired, and only the number of the second notification bar messages of each sub-category is shown at the notification content corresponding to the notification bar after combination. For example, the currently monitored messages belonging to the first preset category include one second notification bar message from the avatar 1 of the a application, two second notification bar messages from the avatar 2 of the a application, and three second notification bar messages from the avatar 1 of the B application. The names of the body 1 and the body 2 of the application program A are respectively an application program 1 and an application program 2A, and the name of the body 1 of the application program B is respectively an application program 1B. The currently heard messages belonging to the first preset category may be divided into three subcategories, namely a-application 1 for one subcategory S1, a-application 2 for one subcategory S2 and B-application 1 for one subcategory S3. Where subcategory S1 includes one second notification bar message, subcategory S2 includes two second notification bar messages, and subcategory S3 includes three second notification bar messages. At this time, the currently monitored display result of the message belonging to the first preset category in the screen locking interface is as follows: "1 message" is displayed at the notification content of the notification bar corresponding to the subcategory S1; "2 messages" are displayed at the notification content of the notification bar corresponding to the subcategory S2; "3 messages" are displayed at the notification content of the notification bar corresponding to the sub-category S3, as shown in fig. 2.
As a second implementation manner, when the second notification bar messages belonging to the same sub-category are combined and displayed in one notification bar, the message content of each second notification bar message belonging to the sub-category may be sequentially displayed at the notification content of the notification bar in the time sequence of monitoring the second notification bar messages. By way of example, the message content may include contact names and communication content, which may be expressed as "contact name: communication content ". In the above example, it is assumed that the message content of one second notification bar message included in the subcategory S1 is: "Xiaoming: is there? "; according to the time sequence of listening to the second notification bar messages, the message contents of the two second notification bar messages included in the sub-category S2 are: "Small piece: is there a good? "," Xiaoliu: is a shipment made? "; according to the time sequence of listening to the second notification bar messages, the message contents of the three second notification bar messages included in the sub-category S3 are: "plum: is there? "," small high: good bar "," small plum: is something received? ".
As a third implementation manner, when the avatar application is an instant messaging application, and the second notification bar message is a notification message that prompts an event that the avatar application receives information, where the notification message includes contact information, and notification messages belonging to the same sub-category are shown in a notification bar in a combined manner, the message content of each second notification bar message may be shown in sequence in the order of monitoring time at the notification content of the notification bar, and the message content from the same contact may be shown in a combined manner. For example, when multiple messages from the same contact are received, the user name of the contact, the number of messages, and the latest message content of the contact may be displayed at the notification content of the corresponding notification bar. It should be noted that, for a plurality of second notification bar messages belonging to a sub-category and corresponding to the same contact, the time of the second notification bar message that is listened to last is taken as the standard, and the time of the second notification bar messages from other contacts in the sub-category is compared to determine the ranking order.
Further, the order of arrangement of the notification fields generated after the merging may be variously implemented. As an implementation manner, after the current notification bar messages belonging to the first preset type are merged, the monitoring time corresponding to each current sub-type may be obtained, and the notification bar corresponding to each sub-type is displayed according to the sequence of the monitoring time corresponding to each sub-type. And the monitoring time corresponding to each sub-category is the monitoring time of the latest message in each sub-category. Thus, the display sequence of the notification bar corresponding to the message belonging to the first preset type is dynamically changed. For example, at the current time, the current notification bar messages belonging to the first preset category and monitored by the lock screen are divided into a plurality of subcategories, and when the current notification bar messages belonging to each subcategory are combined in one notification bar, if a message is newly added to a certain subcategory, the notification bar corresponding to the subcategory is displayed at the top after the newly added message is combined in the notification bar corresponding to the subcategory. Here, "top display" means that the arrangement position of the notification bar is adjusted to the top of the display bar corresponding to the first preset category, such as the top display of the above-mentioned P2 area.
As another embodiment, in step S102, the private data may further include first characteristic information of the avatar application corresponding to the first notification bar message, in addition to the package name and the UID. Correspondingly, when the current notification bar message monitored by the lock screen is the second notification bar message, the private data acquired from the additional field of the second notification bar message further comprises the first characteristic information of the corresponding body-separated application program. At this time, after the current notification bar messages belonging to the same sub-category are merged according to the preset merging strategy and a corresponding notification bar is generated, the method further includes: and sorting the notification bars generated after merging according to the first characteristic information, so that the arrangement sequence of the notification bars in the display bar corresponding to the first preset type message is determined by the first characteristic information of the body-divided application program corresponding to the notification bars, and cannot change along with the change of message monitoring time, thereby being beneficial to sorting the notification bars according to the needs of users and further facilitating the users to read the notification bar messages.
For example, the first feature information may be an alias of the avatar application corresponding to the first notification bar message. It should be noted that, when an avatar application corresponding to a certain native application opened in the sandbox is executed, a default name is assigned to the avatar application, and a user may modify the default name as needed, where the modified name is an alias of the avatar application. In this case, the sorting of the notification bar generated after merging according to the first feature information may specifically be: and sorting the notification fields generated after combination according to the order of the letters of the aliases.
For another example, the first feature information may be characters, such as arabic numerals 1, 2, 3, etc., input by the user to reflect the precedence order. Therefore, the user can set first characteristic information for each self-service application program opened in the sandbox according to the requirement, so that the notification bar generated after merging can be displayed according to the sequence set by the user. For example, if the user considers that the second notification bar message from the a application 1 is more important than the second notification bar message from the a application 2 and that the second notification bar message from the a application 2 is more important than the second notification bar message from the B application 1, the order of the a application 1 may be made earlier than the order of the a application 2 and the order of the a application 2 may be made earlier than the order of the B application 1 when setting the first feature information of each of the divided applications.
In addition, in addition to the classified display of the current notification bar messages in the screen locking interface, when the user terminal is in the screen-open state, the operating system may display the received current notification bar messages. Specifically, the operating system may present the received current notification bar message when receiving a user's trigger operation, such as a pull-down operation. Alternatively, the operating system may directly display the currently received notification bar message when the currently received notification bar message is received.
In order to facilitate the user to distinguish the current notification bar message exposed by the operating system, the third notification bar message sent by the native application and the second notification bar message sent by each of the self-owned applications corresponding to the native application inside the sandbox, as an optional embodiment, in the step S102, the step of adding the private data to an additional field of the first notification bar message to obtain the second notification bar message may include: acquiring second characteristic information of the self-body application program corresponding to the first notification bar message, wherein the second characteristic information of different self-body application programs corresponding to the same native application program is different; marking the first notification bar message according to the second characteristic information so as to distinguish different split application programs corresponding to the same native application program; and adding the private data into an additional field of the marked first notification bar message to obtain a second notification bar message. Thus, when the operating system displays the second notification bar message, the user can distinguish the third notification bar message sent by the native application program and the second notification bar message corresponding to different body-separated application programs corresponding to the native application program according to the mark. It should be noted that the private data added by the extra field does not affect the system to display the second notification bar message.
Specifically, the marking the first notification bar message according to the second feature information may include: identifying a layout mode of the first notification bar message; and modifying the first notification bar message according to the layout mode of the first notification bar message and the second characteristic information of the body-divided application program corresponding to the first notification bar message so as to mark the first notification bar message corresponding to the body-divided application program.
As an embodiment, the second feature information of the avatar application may include a name of a preset avatar application. The name may be a default name of the avatar application or may be an alias of the avatar application. The name of the separate application is different from the name of the corresponding native application, and the names of different separate applications corresponding to the same native application are different.
Specifically, the layout of the notification bar message includes two layouts, one is a native layout, and the other is a custom layout. The native layout is a layout of a notification bar of the operating system itself, and taking the android system as an example, the native layout is a layout of a notification bar of the android system itself. The custom layout refers to a notification bar layout that is customized by a third party application.
The first notification bar message adopting the native layout and the first notification bar message adopting the custom layout are modified in different manners. After a first notification bar message sent by a split application opened in a sandbox is intercepted, whether the first notification bar message is in a custom layout or not can be judged. When the first notification bar message is in a custom layout, nesting a layer of layout in the first notification bar message, and displaying second characteristic information of the body-divided application program corresponding to the first notification bar message, so as to realize marking of the first notification bar message.
For example, by adding a TextView control to the nested layout, the name of the avatar application corresponding to the first notification bar message is shown in the first notification bar message, so that the second notification bar message sent by different avatar applications can be distinguished.
And if the first notification bar message is judged not to be in the self-defined layout, the first notification bar message is shown to be in the native layout. When the first notification bar message is in a native layout, modifying the title of the first notification bar message according to a preset marking rule and second characteristic information of the split-body application program corresponding to the first notification bar message, so that the first notification bar message sent by different split-body application programs can be distinguished according to the modified title of the first notification bar message, and a third notification bar message sent by a native application program and a second notification bar message which is started in a sandbox and corresponds to different split-body application programs of the native application program can be distinguished.
The preset marking rule can be set according to actual needs. For example, the title of the first notification bar message may be directly replaced with the name of the avatar application corresponding to the first notification bar message, or the title of the first notification bar message may be modified according to a preset format and the name of the avatar application corresponding to the first notification bar message, so that the title of the first notification bar message includes the name of the corresponding avatar application.
In a specific application scenario, the name of the self-identified application is a default name, and the default name is composed of the name of the native application corresponding to the self-identified application and the opening serial number of the self-identified application. For example, the user opens three WeChat entities through the sandbox, and the default names of the divided WeChat entities are WeChat 1, WeChat 2 and WeChat 3, respectively.
When the title of the first notification column message is directly replaced by the name of the self-service application program corresponding to the first notification column message, the title of the first notification column message sent by the WeChat 1 is modified to be 'WeChat 1', the title of the first notification column message sent by the WeChat 2 is modified to be 'WeChat 2', and the title of the first notification column message sent by the WeChat 3 is modified to be 'WeChat 3'.
When the title of the first notification bar message is modified according to the preset format and the name of the body-divided application program corresponding to the first notification bar message, the preset format may be: from the A division. Wherein, A represents the name of the body-separated application program corresponding to the first notification column message. At this time, the titles of the first notification column messages respectively corresponding to the WeChat 1, the WeChat 2 and the WeChat 3 are modified from "WeChat" to "from WeChat 1 to" from WeChat 2 to "from WeChat 3 to" from. Of course, the preset format may also adopt other formats, and may be specifically set according to the name of the personal application.
The first notification bar message sent by the split-body application program opened in the sandbox is marked, and then the second notification bar message is generated and sent to the operating system for displaying, so that a user can conveniently distinguish the third notification bar message sent by the native application program and the second notification bar message corresponding to different split-body application programs corresponding to the native application program when browsing the notification bar message displayed by the system, and the user can conveniently and efficiently process the notification bar message.
In summary, in the technical solution provided in the embodiment of the present invention, a first notification bar message sent to an operating system during an operation process of each split application started in a sandbox is blocked, then private data of the split application corresponding to the blocked first notification bar message is obtained, then the private data is added to an additional field of the first notification bar message to obtain a second notification bar message, and the second notification bar message is sent to the operating system. When the user terminal is in a screen locking state, the current notification bar message of the operating system can be monitored, the current notification bar message is detected based on private data, the current notification bar message is classified according to the detection result, and the current notification bar message is displayed in a screen locking interface according to the classification result. Therefore, the classification display of the notification bar messages of the system native application program and the notification bar messages of each self-body application program in the sandbox can be realized, and the improvement of the message reading efficiency of a user is facilitated.
Based on the same inventive concept, a second embodiment of the present invention provides a notification bar message processing apparatus.
Fig. 4 shows a functional block diagram of a notification bar message processing apparatus according to a second embodiment of the present invention. As shown in fig. 4, the notification bar message processing apparatus 400 includes: a monitoring module 401, a processing module 402 and a presentation module 403.
The monitoring module 401 is configured to monitor a behavior that each of the split application programs started in the sandbox sends a first notification bar message to the operating system in an operation process, and intercept the first notification bar message sent by each of the split application programs to the operating system.
The processing module 402 is configured to obtain private data of the self-identified application program corresponding to the intercepted first notification bar message, add the private data to an extra field of the first notification bar message to obtain a second notification bar message, and send the second notification bar message to an operating system.
A display module 403, configured to monitor a current notification bar message of the operating system when the user terminal is in the screen lock state, detect the current notification bar message based on the private data, classify the current notification bar message according to a detection result, and display the current notification bar message in the screen lock interface according to the classification result.
As an optional implementation manner, the monitoring module 401 is specifically configured to: and capturing a first notification bar message sent by each sub-body application program to the operating system by utilizing an enqueueNotification method in a hook function hijack notification manager.
As an optional implementation, the processing module 402 includes: the device comprises a first obtaining submodule, a second obtaining submodule, a marking submodule, an adding submodule and a sending submodule. And the first acquisition submodule is used for acquiring the private data of the self-body application program corresponding to the intercepted first notification bar message. And the second obtaining submodule is used for obtaining second characteristic information of the self-body application program corresponding to the first notification bar message, wherein the second characteristic information of different self-body application programs corresponding to the same native application program is different. And the marking submodule is used for marking the first notification bar message according to the second characteristic information so as to distinguish different body-separated application programs corresponding to the same native application program. And the adding submodule is used for adding the private data into the marked extra field of the first notification bar message to obtain a second notification bar message. And the sending submodule is used for sending the second notification bar message to an operating system.
As an optional implementation, the marking submodule is specifically configured to: identifying a layout mode of the first notification bar message; and modifying the first notification bar message according to the layout mode of the first notification bar message and the second characteristic information of the body-divided application program corresponding to the first notification bar message so as to mark the first notification bar message corresponding to the body-divided application program.
As an optional implementation manner, the display module 403 is specifically configured to: judging whether an additional field of the current notification bar message contains private data or not; if the current notification bar message contains private data, judging that the current notification bar message is the second notification bar message, and dividing the current notification bar message into a first preset category; if the current notification bar message does not contain private data, the current notification bar message is judged to be a third notification bar message sent by a system native application program, and the current notification bar message is divided into a second preset type.
As an optional implementation manner, the private data includes a package name and a user identification of the self-identified application program corresponding to the first notification bar message. At this time, the display module 403 is further configured to: acquiring a packet name and a user identity certificate in an additional field of the current notification bar message belonging to the first preset category; dividing the current notification bar message corresponding to the same body-divided application program in the first preset category into a sub-category through the package name and the user identity certificate; and merging the messages belonging to the same sub-category according to a preset merging strategy to generate a corresponding notification bar.
As an optional implementation, the display module 403 is further configured to: and sorting the notification bars generated after merging according to the first characteristic information.
As an optional implementation manner, the first feature information is an alias of the avatar application corresponding to the first notification bar message.
The above modules may be implemented by software codes, and in this case, the modules may be stored in a memory of the user terminal. Alternatively, the above modules may also be implemented by hardware, such as an integrated circuit chip.
It should be noted that the detailed implementation and technical effects of the notification bar message processing apparatus 400 provided by the embodiment of the present invention are the same as those of the foregoing method embodiments, and for a brief description, reference may be made to corresponding contents in the foregoing method embodiments for the part of the apparatus embodiments that is not mentioned.
Further, based on the same inventive concept, a third embodiment of the present invention also provides a user terminal, including a processor and a memory coupled to the processor, the memory storing instructions that, when executed by the processor, cause the user terminal to:
monitoring the behavior of each split application program started in the sandbox for sending a first notification bar message to an operating system in the running process, and intercepting the first notification bar message sent by each split application program to the operating system;
obtaining the intercepted private data of the body-divided application program corresponding to the first notification bar message, adding the private data into an extra field of the first notification bar message to obtain a second notification bar message, and sending the second notification bar message to an operating system;
when the user terminal is in a screen locking state, monitoring the notification bar message of the operating system, classifying the monitored message by detecting whether the additional field of the monitored message contains private data, and displaying the monitored message in a screen locking interface according to the classification result.
It should be noted that, in the user terminal provided in the embodiment of the present invention, the specific implementation and the generated technical effect of each step are the same as those of the foregoing method embodiment, and for a brief description, for the sake of brevity, reference may be made to corresponding contents in the foregoing method embodiment for what is not mentioned in this embodiment.
In the embodiment of the invention, the user terminal is provided with an operating system and a third-party application program. The user terminal can be a tablet computer, a mobile phone, an electronic reader, a notebook computer, a wearable device, a vehicle-mounted terminal and other mobile terminal devices.
Fig. 5 illustrates a block diagram of modules of an exemplary user terminal 500. As shown in fig. 5, the user terminal 500 includes a memory 502, a storage controller 504, one or more processors 506 (only one of which is shown), a peripheral interface 508, a network module 510, an input-output module 512, a display module 514, and the like. These components communicate with one another via one or more communication buses/signal lines 516.
The memory 502 may be used to store software programs and modules, such as program instructions/modules corresponding to the notification bar message processing method and apparatus in the embodiments of the present invention, and the processor 506 executes various functional applications and data processing, such as the notification bar message processing method provided in the embodiments of the present invention, by running the software programs and modules stored in the memory 502.
The memory 502 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. Access to the memory 502 by the processor 506, and possibly other components, may be under the control of the memory controller 504.
Peripheral interface 508 couples various input/output devices to processor 506 and memory 502. In some embodiments, the peripheral interface 508, the processor 506, and the memory controller 504 may be implemented in a single chip. In other examples, they may be implemented separately from the individual chips.
The network module 510 is used for receiving and transmitting network signals. The network signal may include a wireless signal or a wired signal.
The input/output module 512 is used for providing input data for the user to realize the interaction between the user and the user terminal. The input/output module 512 can be, but is not limited to, a mouse, a keyboard, a touch screen, and the like.
The display module 514 provides an interactive interface (e.g., a user interface) between the user terminal 500 and the user or for displaying image data to the user's reference. In this embodiment, the display module 514 may be a liquid crystal display or a touch display. In the case of a touch display, the display can be a capacitive touch screen or a resistive touch screen, which supports single-point and multi-point touch operations. The support of single-point and multi-point touch operations means that the touch display can sense touch operations simultaneously generated from one or more positions on the touch display, and the sensed touch operations are sent to the processor for calculation and processing.
It is to be understood that the structure shown in fig. 5 is merely illustrative, and that user terminal 500 may also include more or fewer components than shown in fig. 5, or have a different configuration than shown in fig. 5. The components shown in fig. 5 may be implemented in hardware, software, or a combination thereof.
A fourth embodiment of the present invention provides a computer storage medium, and the function module integrated with the notification bar message processing apparatus according to the second embodiment of the present invention may be stored in a computer readable storage medium if it is implemented in the form of a software function module and sold or used as a separate product. Based on such understanding, all or part of the flow of the notification bar message processing method according to the first embodiment may be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the above method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
The algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functionality of some or all of the components of a gateway, proxy server, system according to embodiments of the present invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
The invention discloses a1 and a notification bar message processing method, which comprises the following steps:
monitoring the behavior of each split application program started in the sandbox for sending a first notification bar message to an operating system in the running process, and intercepting the first notification bar message sent by each split application program to the operating system;
obtaining the intercepted private data of the body-divided application program corresponding to the first notification bar message, adding the private data into an extra field of the first notification bar message to obtain a second notification bar message, and sending the second notification bar message to an operating system;
when the user terminal is in a screen locking state, monitoring the current notification bar message of the operating system, detecting the current notification bar message based on the private data, classifying the current notification bar message according to the detection result, and displaying the current notification bar message in a screen locking interface according to the classification result.
A2, according to the method of A1, the detecting the current notification bar message based on the private data, and classifying the current notification bar message according to the detection result includes:
judging whether an additional field of the current notification bar message contains private data or not;
if the current notification bar message contains private data, judging that the current notification bar message is the second notification bar message, and dividing the current notification bar message into a first preset category;
if the current notification bar message does not contain private data, the current notification bar message is judged to be a third notification bar message sent by a system native application program, and the current notification bar message is divided into a second preset type.
A3, according to the method in a2, the private data includes a package name and a user identification of the self-owned application corresponding to the first notification bar message, the current notification bar message is detected based on the private data, and the current notification bar message is classified according to the detection result, further including:
acquiring a packet name and a user identity certificate in an additional field of the current notification bar message belonging to the first preset category;
dividing the current notification bar message corresponding to the same body-divided application program in the first preset category into a sub-category through the package name and the user identity certificate;
and merging the current notification bar messages belonging to the same sub-category according to a preset merging strategy to generate a corresponding notification bar.
A4, according to the method in A3, the private data further includes first feature information of an avatar application corresponding to the first notification bar message, and after the current notification bar messages belonging to the same sub-category are merged according to a preset merging policy and a corresponding notification bar is generated, the method further includes:
and sorting the notification bars generated after merging according to the first characteristic information.
A5, according to the method in A4, the first feature information is an alias of the avatar application corresponding to the first notification bar message.
A6, according to the method of a1, the adding the private data to an additional field of the first notification bar message to obtain a second notification bar message includes:
acquiring second characteristic information of the self-body application program corresponding to the first notification bar message, wherein the second characteristic information of different self-body application programs corresponding to the same native application program is different;
marking the first notification bar message according to the second characteristic information so as to distinguish different split application programs corresponding to the same native application program;
and adding the private data into an additional field of the marked first notification bar message to obtain a second notification bar message.
A7, the marking the first notification bar message according to the second characteristic information according to the method of A6, including:
identifying a layout mode of the first notification bar message;
and modifying the first notification bar message according to the layout mode of the first notification bar message and the second characteristic information of the body-divided application program corresponding to the first notification bar message so as to mark the first notification bar message corresponding to the body-divided application program.
A8, according to the method in A1, the intercepting the first notification bar message sent by each of the divided body applications to the operating system includes:
and capturing a first notification bar message sent by each sub-body application program to the operating system by utilizing an enqueueNotification method in a hook function hijack notification manager.
The invention discloses B9, a notification bar message processing device, the device includes:
the monitoring module is used for monitoring the action of sending a first notification bar message to an operating system in the running process of each divided application program started in the sandbox and intercepting the first notification bar message sent to the operating system by each divided application program;
the processing module is used for acquiring the intercepted private data of the self-body application program corresponding to the first notification bar message, adding the private data into an extra field of the first notification bar message to obtain a second notification bar message, and sending the second notification bar message to an operating system;
and the display module is used for monitoring the current notification bar message of the operating system when the user terminal is in a screen locking state, detecting the current notification bar message based on the private data, classifying the current notification bar message according to the detection result, and displaying the current notification bar message in a screen locking interface according to the classification result.
B10, the device of B9, the display module being specifically configured to:
judging whether an additional field of the current notification bar message contains private data or not;
if the current notification bar message contains private data, judging that the current notification bar message is the second notification bar message, and dividing the current notification bar message into a first preset category;
if the current notification bar message does not contain private data, the current notification bar message is judged to be a third notification bar message sent by a system native application program, and the current notification bar message is divided into a second preset type.
B11, the apparatus of B10, the private data including a package name and a user identification of the avatar application corresponding to the first notification bar message, the presentation module further to:
acquiring a packet name and a user identity certificate in an additional field of the current notification bar message belonging to the first preset category;
dividing the current notification bar message corresponding to the same body-divided application program in the first preset category into a sub-category through the package name and the user identity certificate;
and merging the messages belonging to the same sub-category according to a preset merging strategy to generate a corresponding notification bar.
B12, the device of B11, the presentation module further for: and sorting the notification bars generated after merging according to the first characteristic information.
B13, according to the device of B12, the first feature information is an alias of the avatar application corresponding to the first notification bar message.
B14, the apparatus of B9, the processing module comprising:
the first acquisition submodule is used for acquiring the private data of the self-body application program corresponding to the intercepted first notification bar message;
a second obtaining sub-module, configured to obtain second feature information of the self-identified application program corresponding to the first notification bar message, where the second feature information of different self-identified application programs corresponding to the same native application program is different;
the marking submodule is used for marking the first notification bar message according to the second characteristic information so as to distinguish different body-separating application programs corresponding to the same native application program;
the adding submodule is used for adding the private data into an additional field of the marked first notification bar message to obtain a second notification bar message;
and the sending submodule is used for sending the second notification bar message to an operating system.
B15, the apparatus of B14, the tagging submodule being configured to:
identifying a layout mode of the first notification bar message;
and modifying the first notification bar message according to the layout mode of the first notification bar message and the second characteristic information of the body-divided application program corresponding to the first notification bar message so as to mark the first notification bar message corresponding to the body-divided application program.
B16, according to the apparatus of B9, the monitoring module is specifically configured to:
and capturing a first notification bar message sent by each sub-body application program to the operating system by utilizing an enqueueNotification method in a hook function hijack notification manager.
The invention discloses C17, a user terminal comprising a processor and a memory coupled to the processor, the memory storing instructions that, when executed by the processor, cause the user terminal to perform the steps of the method of any one of a1-a 8.
The invention discloses D18, a computer readable storage medium having stored thereon a computer program which, when executed by a processor, carries out the steps of the method of any one of a1-a 8.

Claims (18)

1. A notification bar message processing method is characterized by comprising the following steps:
monitoring the behavior of each split application program started in the sandbox for sending a first notification bar message to an operating system in the running process, and intercepting the first notification bar message sent by each split application program to the operating system;
obtaining the intercepted private data of the body-divided application program corresponding to the first notification bar message, adding the private data into an extra field of the first notification bar message to obtain a second notification bar message, and sending the second notification bar message to an operating system;
when the user terminal is in a screen locking state, monitoring the current notification bar message of the operating system, detecting the current notification bar message based on the private data, classifying the current notification bar message according to the detection result, and displaying the current notification bar message in a screen locking interface according to the classification result.
2. The method of claim 1, wherein the detecting the current notification bar message based on the private data, and classifying the current notification bar message according to a detection result comprises:
judging whether an additional field of the current notification bar message contains private data or not;
if the current notification bar message contains private data, judging that the current notification bar message is the second notification bar message, and dividing the current notification bar message into a first preset category;
if the current notification bar message does not contain private data, the current notification bar message is judged to be a third notification bar message sent by a system native application program, and the current notification bar message is divided into a second preset type.
3. The method of claim 2, wherein the private data includes a package name and a user identification of the self-owned application corresponding to the first notification bar message, and wherein the detecting the current notification bar message based on the private data and classifying the current notification bar message according to a detection result further comprises:
acquiring a packet name and a user identity certificate in an additional field of the current notification bar message belonging to the first preset category;
dividing the current notification bar message corresponding to the same body-divided application program in the first preset category into a sub-category through the package name and the user identity certificate;
and merging the current notification bar messages belonging to the same sub-category according to a preset merging strategy to generate a corresponding notification bar.
4. The method according to claim 3, wherein the private data further includes first feature information of an avatar application corresponding to the first notification bar message, and after merging current notification bar messages belonging to the same sub-category according to a preset merging policy and generating a corresponding notification bar, the method further includes:
and sorting the notification bars generated after merging according to the first characteristic information.
5. The method of claim 4, wherein the first feature information is an alias of an avatar application corresponding to the first notification bar message.
6. The method of claim 1, wherein adding the private data to an additional field of the first notification bar message to obtain a second notification bar message comprises:
acquiring second characteristic information of the self-body application program corresponding to the first notification bar message, wherein the second characteristic information of different self-body application programs corresponding to the same native application program is different;
marking the first notification bar message according to the second characteristic information so as to distinguish different split application programs corresponding to the same native application program;
and adding the private data into an additional field of the marked first notification bar message to obtain a second notification bar message.
7. The method of claim 6, wherein marking the first notification bar message according to the second characteristic information comprises:
identifying a layout mode of the first notification bar message;
and modifying the first notification bar message according to the layout mode of the first notification bar message and the second characteristic information of the body-divided application program corresponding to the first notification bar message so as to mark the first notification bar message corresponding to the body-divided application program.
8. The method of claim 1, wherein intercepting the first notification bar message sent by each of the split-body applications to the operating system comprises:
and capturing a first notification bar message sent by each sub-body application program to the operating system by utilizing an enqueueNotification method in a hook function hijack notification manager.
9. A notification bar message processing apparatus, characterized in that the apparatus comprises:
the monitoring module is used for monitoring the action of sending a first notification bar message to an operating system in the running process of each divided application program started in the sandbox and intercepting the first notification bar message sent to the operating system by each divided application program;
the processing module is used for acquiring the intercepted private data of the self-body application program corresponding to the first notification bar message, adding the private data into an extra field of the first notification bar message to obtain a second notification bar message, and sending the second notification bar message to an operating system;
and the display module is used for monitoring the current notification bar message of the operating system when the user terminal is in a screen locking state, detecting the current notification bar message based on the private data, classifying the current notification bar message according to the detection result, and displaying the current notification bar message in a screen locking interface according to the classification result.
10. The apparatus of claim 9, wherein the display module is specifically configured to:
judging whether an additional field of the current notification bar message contains private data or not;
if the current notification bar message contains private data, judging that the current notification bar message is the second notification bar message, and dividing the current notification bar message into a first preset category;
if the current notification bar message does not contain private data, the current notification bar message is judged to be a third notification bar message sent by a system native application program, and the current notification bar message is divided into a second preset type.
11. The apparatus of claim 10, wherein the private data comprises a package name and a user identification of the divided body application corresponding to the first notification bar message, and wherein the presentation module is further configured to:
acquiring a packet name and a user identity certificate in an additional field of the current notification bar message belonging to the first preset category;
dividing the current notification bar message corresponding to the same body-divided application program in the first preset category into a sub-category through the package name and the user identity certificate;
and merging the messages belonging to the same sub-category according to a preset merging strategy to generate a corresponding notification bar.
12. The apparatus of claim 11, wherein the private data further comprises first characteristic information of an avatar application corresponding to the first notification bar message, and the presentation module is further configured to: and sorting the notification bars generated after merging according to the first characteristic information.
13. The apparatus of claim 12, wherein the first feature information is an alias of an avatar application corresponding to the first notification bar message.
14. The apparatus of claim 9, wherein the processing module comprises:
the first acquisition submodule is used for acquiring the private data of the self-body application program corresponding to the intercepted first notification bar message;
a second obtaining sub-module, configured to obtain second feature information of the self-identified application program corresponding to the first notification bar message, where the second feature information of different self-identified application programs corresponding to the same native application program is different;
the marking submodule is used for marking the first notification bar message according to the second characteristic information so as to distinguish different body-separating application programs corresponding to the same native application program;
the adding submodule is used for adding the private data into an additional field of the marked first notification bar message to obtain a second notification bar message;
and the sending submodule is used for sending the second notification bar message to an operating system.
15. The apparatus of claim 14, wherein the tagging submodule is specifically configured to:
identifying a layout mode of the first notification bar message;
and modifying the first notification bar message according to the layout mode of the first notification bar message and the second characteristic information of the body-divided application program corresponding to the first notification bar message so as to mark the first notification bar message corresponding to the body-divided application program.
16. The apparatus according to claim 9, wherein the monitoring module is specifically configured to:
and capturing a first notification bar message sent by each sub-body application program to the operating system by utilizing an enqueueNotification method in a hook function hijack notification manager.
17. A user terminal comprising a processor and a memory coupled to the processor, the memory storing instructions that, when executed by the processor, cause the user terminal to perform the steps of the method of any of claims 1-8.
18. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 8.
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 CN108804194A (en) 2018-11-13
CN108804194B true 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)

Families Citing this family (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
KR20200117183A (en) * 2019-04-03 2020-10-14 삼성전자주식회사 Electronic device for displaying message and operating method thereof
CN112073289B (en) * 2019-06-10 2022-12-02 腾讯科技(深圳)有限公司 Instant messaging control method and device
CN111610903A (en) * 2020-05-25 2020-09-01 维沃移动通信有限公司 Information display method and electronic equipment
CN115756270B (en) * 2020-05-29 2024-03-26 华为技术有限公司 Content sharing method, device and system
CN114741143B (en) * 2022-03-18 2024-03-26 维沃移动通信有限公司 Notification display method and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014164893A2 (en) * 2013-03-13 2014-10-09 Arynga Inc. Remote transfer of electronic images to a vehicle
US9361476B2 (en) * 2014-05-16 2016-06-07 Safe Text Ltd. Messaging systems and methods
US9875150B2 (en) * 2015-06-02 2018-01-23 Apple Inc. Method and system for processing notifications amongst applications of a data processing system
US10620920B2 (en) * 2016-05-17 2020-04-14 Google Llc Automatic graphical user interface generation from notification data
CN106201547A (en) * 2016-07-21 2016-12-07 北京奇虎科技有限公司 Method, device and the mobile terminal that a kind of message based on mobile terminal shows

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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

Also Published As

Publication number Publication date
CN108804194A (en) 2018-11-13

Similar Documents

Publication Publication Date Title
CN108804194B (en) Notification bar message processing method and device, user terminal and readable storage medium
US11588858B2 (en) Monitoring a privacy rating for an application or website
US9215074B2 (en) Expressing intent to control behavior of application components
US9152219B2 (en) Creation and context-aware presentation of customized emoticon item sets
CN111432067B (en) Unread message number processing method, unread message number processing device, unread message number processing equipment and unread message number processing medium
US20140189533A1 (en) Dynamic notification system and method
CN109117208B (en) Information sharing method and device, user terminal and readable storage medium
CN107181858B (en) Method and terminal for displaying notification message
US20140052542A1 (en) Method, client and system for recommending software
CN110781408B (en) Information display method and device
CN106980442B (en) Icon management method and electronic equipment
CN106209607B (en) Subscription information display method and device
US10963935B2 (en) User recommendation method and device
WO2014026553A1 (en) Method, client, and system for recommending software
US10120846B2 (en) System and method for displaying online comments
CN111953761B (en) Data processing method, device, electronic equipment and storage medium
CN108874479B (en) Notification bar message display method and device, user terminal and readable storage medium
KR102106484B1 (en) Information display method, terminal, and server
CN105635461B (en) A kind of method, apparatus and terminal of filter information
CN110837335A (en) Method and device for displaying page tag in application, terminal and storage medium
US10354313B2 (en) Emphasizing communication based on past interaction related to promoted items
US20230004261A1 (en) Data processing method, terminal device and server device
CN113760152A (en) Message processing method and device, computer equipment and storage medium
CN112235451B (en) Method and device for providing alarm about deleted contact
US11061892B2 (en) Techniques for automated database query generation

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.