CN113791920A - Dual-system communication method, device, electronic equipment and computer readable storage medium - Google Patents

Dual-system communication method, device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN113791920A
CN113791920A CN202111366295.0A CN202111366295A CN113791920A CN 113791920 A CN113791920 A CN 113791920A CN 202111366295 A CN202111366295 A CN 202111366295A CN 113791920 A CN113791920 A CN 113791920A
Authority
CN
China
Prior art keywords
data
notification
sending
notification data
target
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.)
Pending
Application number
CN202111366295.0A
Other languages
Chinese (zh)
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 ByteDance Network Technology Co Ltd
Original Assignee
Beijing Jingling Information System 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 Jingling Information System Technology Co Ltd filed Critical Beijing Jingling Information System Technology Co Ltd
Priority to CN202111366295.0A priority Critical patent/CN113791920A/en
Publication of CN113791920A publication Critical patent/CN113791920A/en
Priority to PCT/CN2022/107196 priority patent/WO2023087766A1/en
Pending legal-status Critical Current

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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/542Event management; Broadcasting; Multicasting; Notifications
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/545Gui

Abstract

The invention provides a dual-system communication method, a dual-system communication device, electronic equipment and a computer readable storage medium, wherein the method comprises the following steps: when detecting that a first system notification management of a first system receives application notification data sent by an application program, recombining the application notification data to obtain notification data to be sent; determining a first message type value of a first system, and encapsulating notification data to be sent and the first message type value to obtain first target transmission notification data; and sending the first target sending notification data to a notification list interface of a second system, and displaying the first target sending notification data based on the notification list interface, wherein the first system and the second system are different types of systems. According to the method and the device, the notification list interface of the second system is used for displaying in detail, the target after application notification data recombination sends the notification data, so that the second system can compatibly display the application notification data sent by the application program of the first system, and the second system is completely compatible with the message display of the first system.

Description

Dual-system communication method, device, electronic equipment and computer readable storage medium
Technical Field
The present invention relates to the field of computer communication technologies, and in particular, to a dual-system communication method and apparatus, an electronic device, and a computer-readable storage medium.
Background
The existing dual-system communication method mainly includes notification message display between two same subsystems or notification message display between a plurality of different main systems and subsystems. In the process of displaying the notification messages between a plurality of different main systems and subsystems, the main system can only simply prompt one or more notification messages of the subsystems, and the message display of the main system fully compatible with the subsystems cannot be realized.
Disclosure of Invention
The invention provides a dual-system communication method, a dual-system communication device, electronic equipment and a computer readable storage medium, and aims to realize message display of a main system fully compatible with a subsystem.
The invention provides a dual-system communication method, which comprises the following steps:
when detecting that a first system notification management of a first system receives application notification data sent by an application program, recombining the application notification data to obtain notification data to be sent;
determining a first message type value of the first system, and encapsulating the notification data to be sent and the first message type value to obtain corresponding first target transmission notification data;
and sending the first target sending notification data to a notification list interface of a second system, and displaying the first target sending notification data based on the notification list interface, wherein the first system and the second system are different types of systems.
According to a dual-system communication method provided by the present invention, the step of sending the first target sending notification data to a notification list interface of a second system, and displaying the first target sending notification data based on the notification list interface, includes:
sending the first target sending notification data to a receiving and sending notification service of the first system, and sending the first target sending notification data to a second system notification management of the second system through preset inter-process communication based on the receiving and sending notification service;
forwarding the first target send notification data to the notification list interface based on the second system notification management;
and analyzing and displaying the first target sending notification data based on the notification list interface.
According to the dual-system communication method provided by the present invention, the step of recombining the application notification data to obtain notification data to be sent comprises:
determining the data interaction type of the second system, and analyzing the application notification data to obtain corresponding notification data to be processed;
and recombining the notification data to be processed according to the data interaction type to obtain notification data to be sent, which is subjected to data interaction with the second system.
According to a dual-system communication method provided by the present invention, the dual-system communication method further includes:
when a notification click command is detected to exist in the notification list interface, determining that a second target corresponding to the notification click command sends notification data, and determining a second message type value corresponding to the second target sending notification data;
reading intention data in the second target sending notification data based on the second message type value and a preset value;
and sending the intention data to an application process service of the first system, and starting a target application program in the first system based on the application process service and the intention data.
According to the dual system communication method provided by the present invention, the intention data includes packagemame data, activity data and intent data,
the step of sending the intention data to an application process service of the first system, and starting a target application program in the first system based on the application process service and the intention data comprises:
sending the packageName data, the activity data and the intent data to a second system notification management of a second system, and sending the packageName data, the activity data and the intent data to a first system notification management of the first system through preset inter-process communication based on the second system notification management;
sending and receiving notification service which sends the packageName data, the activity data and the intent data to the first system based on the first system notification management;
transmitting the packageName data, the activity data and the intent data to the application process service based on the sending and receiving notification service;
and starting a target application program in the first system based on the application process service through the packageName data, the activity data and the intent data.
According to the dual-system communication method provided by the present invention, the step of reading intention data in the second target transmission notification data based on the second message type value and the preset value comprises:
determining whether the second message type value is the preset value;
and if the second message type value is the preset value, reading intention data in the second target sending notification data.
According to the dual-system communication method provided by the invention, the first system is an Android system, and the second system is a Linux system.
The present invention also provides a dual system communication apparatus, comprising:
the system comprises a recombination module, a sending module and a receiving module, wherein the recombination module is used for recombining application notification data to obtain notification data to be sent when detecting that a first system notification management of a first system receives the application notification data sent by an application program;
the encapsulation module is used for determining a first message type value of the first system, and encapsulating the notification data to be sent and the first message type value to obtain corresponding first target transmission notification data;
and the display module is used for sending the first target sending notification data to a notification list interface of a second system and displaying the first target sending notification data based on the notification list interface, wherein the first system and the second system are different types of systems.
The present invention also provides an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of any of the above dual-system communication methods when executing the program.
The invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the dual system communication method as described in any of the above.
The invention also provides a computer program product comprising a computer program which, when executed by the processor, implements the steps of the dual system communication method as described in any one of the above.
According to the dual-system communication method, the dual-system communication device, the electronic equipment and the computer readable storage medium, when the fact that the first system notification management of the first system receives the application notification data sent by the application program is detected, the application notification data are recombined to obtain the notification data to be sent; determining a first message type value of a first system, and encapsulating notification data to be sent and the first message type value to obtain corresponding first target transmission notification data; and sending the first target sending notification data to a notification list interface of a second system, and displaying the first target sending notification data based on the notification list interface, wherein the first system and the second system are different types of systems. Therefore, the notification list interface of the second system is used for displaying in detail, the target after application notification data recombination sends the notification data, the second system can compatibly display the application notification data sent by the application program corresponding to the first system, and message display of the second system which is completely compatible with the first system is achieved.
Drawings
In order to more clearly illustrate the technical solutions of the present invention or the prior art, the drawings needed for the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
FIG. 1 is a flow chart of a dual system communication method provided by the present invention;
FIG. 2 is a message display diagram of a dual system communication method provided by the present invention;
FIG. 3 is a second flowchart of a dual system communication method provided by the present invention;
fig. 4 is a schematic structural diagram of a dual-system communication device provided by the present invention;
fig. 5 is a schematic structural diagram of an electronic device provided in the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The dual-system communication method, apparatus, electronic device and computer-readable storage medium provided by the present invention are described below with reference to fig. 1 to 5.
Specifically, the present invention provides a dual-system communication method, and referring to fig. 1, fig. 1 is one of the flow diagrams of the dual-system communication method provided by the present invention.
While a logical order is shown in the flow chart, in some cases, the steps shown or described may be performed in a different order than presented herein.
The noun explains:
IPC: Inter-Process Communication, Inter-Process Communication, IPC Inter-Process Communication refers to the interaction between two Process data. Methods of interprocess communication include, but are not limited to, half-duplex Unix pipes, FIFOs (named pipes), message queues, semaphores, shared memory, and network sockets.
AMS: the Activity Manager Service is an important Service in the Android system, and the AMS manages the four components of the Android system and schedules all application processes in a unified manner. The AMN is derived from a Binder class, inherits an I Activity Manager interface, and a client uses the Activity Manager to obtain an Activity Manager Proxy object by internally calling a getDefault method of the AMN, and can communicate with the AMS through the object.
Notification: commonly referred to as notifications, refer to messages displayed outside of the application interface by the Android system intended to provide reminders to the user of communication information from others or other real-time information in the application. The user may click on the notification to open the application or perform an operation directly from the notification.
Notification Manager Service: the system notification management is one of main processes of an Android system or a Linux system and manages distribution notifications.
The method provided by the embodiment of the invention takes the electronic equipment as an execution main body for example, and the dual-system communication method provided by the embodiment of the invention comprises the following steps:
step S10, when detecting that the first system notification management of the first system receives the application notification data sent by the application program, reorganize the application notification data to obtain notification data to be sent.
It should be noted that the communication system in the embodiment of the present invention is one of the expressions of the electronic device, and does not limit the electronic device.
Further, the communication system is a multi-system communication system, that is, the communication system includes a plurality of main systems and subsystems, including but not limited to one main system and one subsystem, two main systems and one subsystem, and three main systems and one subsystem. For convenience of description, the present embodiment is illustrated in the case that the communication system includes a main system and a sub-system. In this embodiment, a Linux system is used as a main system, and an Android system is used as a subsystem, that is, the communication system in this embodiment is a dual system in which the Linux system is compatible with the Android system.
Further, for convenience of describing the embodiment, the subsystem Android system is defined as a first system, and the main system is defined as a Linux system as a second system, but the main system Linux system may also be defined as the first system, and the subsystem Android system is defined as the second system, which is taken as an example in the embodiment.
Further, the main modules of the Linux System include, but are not limited to, a System UI (Linux System interactive interface) for displaying notification data; and the Linux Notification Manager Service is used for receiving Notification data sent by the Android System and click Notification data of the forwarding System UI. The Android system comprises main modules including but not limited to an Android Notification Manager Service (Android system Notification management), wherein the Android Notification Manager Service is used for receiving Notification data And reorganization Notification data sent by an application program of the Android system, sending the reorganized Notification data to a Send And receive Notification Service of the Android system, receiving click Notification data sent by the Linux system, And starting the application program of the Android system through the Activity Manager Service; the device comprises a Send And Red Service Linux Notification Service, a Linux system And a client, wherein the Send And Red Service Linux Notification Service is used for receiving Notification data sent by the Android Notification Manager Service And forwarding the Notification data to the Linux system; and the Activity Manager Service is used for starting the application program.
It should be further noted that, during the starting process of the communication system, the modules included in the Linux system and the Android system, but not limited to the Linux system and the Android system, are all started.
Specifically, when an application program (Android App) of the Android system needs to send Notification data to the Android system, the Android App needs to assemble the Notification data to be sent to obtain application Notification (Notification) data sent by the Android App to the Android system, and then sends the Notification data to system Notification management (Android Notification Manager Service) of the Android system through an Android Notification Manager.
When detecting that the Android Notification Manager Service (first system Notification management) receives Notification data sent by the Android App, the communication system reassembles the Notification data through the Android Notification Manager Service to obtain Notification (D-Notification) data to be sent, which is interacted between the Android system and the Linux system, specifically, as in steps S101 to S102.
Further, the specific description of steps S101 to S102 is as follows:
step S101, determining a data interaction type of the second system, and analyzing the application notification data to obtain corresponding notification data to be processed;
and step S102, recombining the notification data to be processed according to the data interaction type to obtain notification data to be sent, which is subjected to data interaction with the second system.
Specifically, the communication system determines the data interaction type of the second system (Linux system), and it should be noted that the data interaction types of different systems are different, and analyzes the application notification data to obtain the notification data to be processed in the application notification data. And then, the communication system extracts corresponding parameter data from the to-be-processed notification data according to the data interaction type of the Linux system, wherein the proposed parameter data comprises, but is not limited to, icon small icon data, appName application name data, time timestamp data, big icon bigIcon data, title data, text data, packagName application package name data, activity data, intent data and notifiationType message type value data. And finally, the communication system recombines the icon data, the appName data, the time data, the biGICON data, the title data, the text data, the packagName data, the activity data, the intent data and the notifiationType data through an Android Notification Manager Service (first system Notification management) to obtain D-Notification data for performing data interaction with the Linux system.
Step S20, determining a first message type value of the first system, and encapsulating the to-be-sent notification data and the first message type value to obtain corresponding first target sent notification data.
The communication system determines a first message type value corresponding to a first system (Android system), where it should be noted that the message type values corresponding to different systems are different, and the message type value of the Android system in this embodiment is 1, that is, the first message type value is 1. Then, the communication system encapsulates the data of the Notification to be sent (D-Notification) and the first message type value to obtain the corresponding data of the first target Notification to be sent (M1-Notification),
step S30, sending the first target sending notification data to a notification list interface of a second system, and displaying the first target sending notification data based on the notification list interface, where the first system and the second system are different types of systems.
After the communication system recombines the first target sending notification data, the first target sending notification data is sent to a sending and receiving notification service of the first system, the sending and receiving notification service of the first system then sends the first target sending notification data to a second system through preset inter-process communication, the second system then forwards the first target sending notification data to a notification list interface of the second system, and the first target sending notification data is analyzed and displayed through the notification list interface, wherein the preset inter-process communication in the embodiment is local IPC inter-process communication, and is specifically described in steps S301 to S303.
Further, the specific description of steps S301 to S303 is as follows:
step S301, sending the first target sending notification data to a receiving and sending notification service of the first system, and sending the first target sending notification data to a second system notification management of the second system through preset inter-process communication based on the receiving and sending notification service;
step S302, forwarding the first target sending notification data to the notification list interface based on the second system notification management;
step S303, parsing and displaying the first target transmission notification data based on the notification list interface.
The communication System sends first target sending Notification data (M1-Notification data) to a Send And Red Region Linux Notification Service of the Android System, the Send And Red Region Linux Notification Service of the Android System receives the M1-Notification data, the M1-Notification data is sent to a Linux Notification Manager Service of the Linux System through local IPC inter-process communication, the Linux Notification Manager Service of the Linux System receives the M1-Notification data, the M1-Notification data is forwarded to a Linux System UI (Linux System interaction interface), the M1-Notification data is analyzed through the System UI of the Linux System, And the analysis result of the M1-Notification data is displayed in a Notification list interface of the Linux System UI.
Further, the main display content of the notification list interface of the Linux System UI is shown in fig. 2, and fig. 2 is a message display schematic diagram of the dual-System communication method provided by the present invention. The main display contents of the notification list interface of the Linux System UI in fig. 2 at least include (i) small icons (information icons); application names (Messages); ③ timestamps (including but not limited to now, one minute ago, and ten minutes ago); large icons (user head portraits); title content (e.g. Justin Rhyss); sixthly, text content (such as Do you wait to go see a movie finish).
The embodiment provides a dual-system communication method, which includes when detecting that a first system notification management of a first system receives application notification data sent by an application program, recombining the application notification data to obtain notification data to be sent; determining a first message type value of a first system, and encapsulating notification data to be sent and the first message type value to obtain corresponding first target transmission notification data; and sending the first target sending notification data to a notification list interface of a second system, and displaying the first target sending notification data based on the notification list interface, wherein the first system and the second system are different types of systems. Therefore, in the embodiment, the notification list interface of the Linux system is used for displaying in detail, and the target after the application notification data of the Android system application program is recombined sends the notification data, so that the Linux system can compatibly display the application notification data sent by the Android system application program, and the information display that the Linux system is completely compatible with the Android system is realized, thereby increasing the robustness of the Linux system and improving the user experience.
Further, referring to fig. 3, fig. 3 is a second flowchart of the dual-system communication method provided by the present invention, where the dual-system communication method further includes:
step S40, when detecting that a notification click command exists on the notification list interface, determining that a second target corresponding to the notification click command sends notification data, and determining a second message type value corresponding to the second target sends notification data;
step S50, based on the second message type value and a preset value, reading intention data in the second target transmission notification data;
step S60, sending the intention data to an application process service of the first system, and starting a target application program in the first system based on the application process service and the intention data.
As can be seen from the description in the step S10, the first system is an Android system, and the second system is a Linux system.
It should be noted that, when a user needs to start a certain application program of the Android System through a certain notification data in the notification list interface of the Linux System, the user needs to click the notification list interface of the Linux System UI to trigger.
When detecting that a Notification click command exists on a Notification list interface of a Linux System UI, the communication System determines clicked Notification data corresponding to the Notification click command in the Notification list interface, and determines the clicked Notification data as second target transmission Notification data (M2-Notification data), and meanwhile, the communication System needs to determine a second message type value in the M2-Notification data. Then, the communication system determines whether the second message type value is a preset value, and obtains a corresponding comparison result, where the preset value is preset according to the system type of the first system, the preset value of the Android system is defined as 1 in this embodiment, and the comparison result indicates that the second message type value is a preset value, or indicates that the second message type value is not a preset value. The communication system reads the intention data in the M2-Notification data according to the comparison result, as described in step S501 to step S503. Finally, the communication system transmits the intention data to an application process Service (Activity Manager Service) of the Android system, and starts a target application program in the Android system according to the Activity Manager Service and the intention data, as specifically described in steps S601 to S604.
Further, the specific description of steps S501 to S503 is as follows:
step S501, determining whether the second message type value is the preset value;
step S502, if the second message type value is the preset value, reading intention data in the second target sending notification data.
Step S503, if the second message type value is not the preset value, starting an application program corresponding to the second system.
Specifically, the communication system determines whether the second message type value is a preset value, obtains a corresponding comparison result, and if the comparison result is that the second message type value is the preset value, the communication system reads intention data in second target transmission Notification data (M2-Notification data), wherein the intention data includes, but is not limited to, packagemame data, activity data, and intent data. And if the comparison result is that the second message type value is not the preset value, starting the application program corresponding to the Linux system by the communication system.
Further, the specific description of steps S601 to S604 is as follows:
step S601, sending the packageName data, the activity data and the intent data to a second system notification management of a second system, and sending the packageName data, the activity data and the intent data to a first system notification management of the first system through preset inter-process communication based on the second system notification management;
step S602, sending the packageName data, the activity data and the intent data to a sending and receiving notification service of the first system based on the first system notification management;
step S603, transmitting the packageName data, the activity data and the intent data into the application process service based on the sending and receiving notification service;
step S604, starting a target application program in the first system based on the application process service through the packageName data, the activity data and the intent data.
If the comparison result is that the second message type value is a preset value, the communication system determines that the clicked Notification data (M2-Notification data) is Notification data of an application program corresponding to the Android system, And sends the package name data, the activity data And the inter-event data in the M2-Notification data to a Linux Notification Manager Service (second system Notification management) of the Linux system, the Linux Notification Manager Service of the Linux system sends the package name data, the activity data And the inter-event data to the Android Notification Manager Service (first system Notification management) of the Android system through preset inter-process communication (local IPC inter-process communication), And the Android Manager sends the package name data, the activity data And the inter-event data to the Android Notification Manager Service (first system Notification management) of the Android system after receiving the package name data, the activity data And the inter-event data, after the Send And Red Service Linux Notification Service receives the packageName data, the Activity data And the intent data, the packageName data, the Activity data And the intent data are transmitted to an application process Service (Activity Manager Service) of the Android system, And the Activity Manager Service starts a target application program in the Android system according to the packageName data, the Activity data And the intent data.
The embodiment provides a dual-system communication method, which includes determining that a second target corresponding to a notification click instruction sends notification data when a notification click instruction is detected to exist in a notification list interface, and determining a second message type value corresponding to the second target sending notification data; reading intention data in the second target sending notification data based on the second message type value and the preset value; and sending the intention data to an application process service of the first system, and starting a target application program in the first system based on the application process service and the intention data. Therefore, in the embodiment, the application program corresponding to the Android system can be started according to the notification data clicked by the user on the notification list interface of the Linux system, so that the Linux system is completely compatible with the application start of the Android system, the operation complexity of the user is reduced, and the user experience is improved.
Further, the dual system communication apparatus provided by the present invention is described, and the dual system communication apparatus described below and the dual system communication method described above may be referred to correspondingly.
As shown in fig. 4, fig. 4 is a schematic structural diagram of a dual-system communication device provided in the present invention, the dual-system communication device includes:
the reconfiguration module 401 is configured to reconfigure, when it is detected that a first system notification management of a first system receives application notification data sent by an application program, the application notification data to obtain notification data to be sent;
an encapsulating module 402, configured to determine a first message type value of the first system, and encapsulate the to-be-sent notification data and the first message type value to obtain corresponding first target sending notification data;
a display module 403, configured to send the first target sending notification data to a notification list interface of a second system, and display the first target sending notification data based on the notification list interface, where the first system and the second system are different types of systems.
Further, the display module 403 is further configured to:
sending the first target sending notification data to a receiving and sending notification service of the first system, and sending the first target sending notification data to a second system notification management of the second system through preset inter-process communication based on the receiving and sending notification service;
forwarding the first target send notification data to the notification list interface based on the second system notification management;
and analyzing and displaying the first target sending notification data based on the notification list interface.
Further, the restructuring module 401 is further configured to:
determining the data interaction type of the second system, and analyzing the application notification data to obtain corresponding notification data to be processed;
and recombining the notification data to be processed according to the data interaction type to obtain notification data to be sent, which is subjected to data interaction with the second system.
Further, the dual-system communication apparatus further includes:
the determining module is used for determining that a second target corresponding to a notification click instruction sends notification data when detecting that the notification click instruction exists on the notification list interface, and determining a second message type value corresponding to the second target sending notification data;
the reading module is used for reading intention data in the second target sending notification data based on the second message type value and a preset value;
and the starting module is used for sending the intention data to the application process service of the first system and starting the target application program in the first system based on the application process service and the intention data.
Further, the starting module is further configured to:
sending the packageName data, the activity data and the intent data to a second system notification management of a second system, and sending the packageName data, the activity data and the intent data to a first system notification management of the first system through preset inter-process communication based on the second system notification management;
sending and receiving notification service which sends the packageName data, the activity data and the intent data to the first system based on the first system notification management;
transmitting the packageName data, the activity data and the intent data to the application process service based on the sending and receiving notification service;
and starting a target application program in the first system based on the application process service through the packageName data, the activity data and the intent data.
Further, the determining module is further configured to:
determining whether the second message type value is the preset value;
and if the second message type value is the preset value, reading intention data in the second target sending notification data.
The specific embodiment of the dual-system communication apparatus provided by the present invention is basically the same as the embodiments of the dual-system communication method described above, and is not described herein again.
Fig. 5 illustrates a physical structure diagram of an electronic device, which may include, as shown in fig. 5: a processor (processor) 510, a communication Interface (Communications Interface) 520, a memory (memory) 530 and a communication bus 540, wherein the processor 510, the communication Interface 520 and the memory 530 communicate with each other via the communication bus 540. Processor 510 may invoke logic instructions in memory 530 to perform a dual system communication method comprising:
when detecting that a first system notification management of a first system receives application notification data sent by an application program, recombining the application notification data to obtain notification data to be sent;
determining a first message type value of the first system, and encapsulating the notification data to be sent and the first message type value to obtain corresponding first target transmission notification data;
and sending the first target sending notification data to a notification list interface of a second system, and displaying the first target sending notification data based on the notification list interface, wherein the first system and the second system are different types of systems.
Furthermore, the logic instructions in the memory 530 may be implemented in the form of software functional units and stored in a computer readable storage medium when the software functional units are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform the dual system communication method provided by the above methods, the method comprising:
when detecting that a first system notification management of a first system receives application notification data sent by an application program, recombining the application notification data to obtain notification data to be sent;
determining a first message type value of the first system, and encapsulating the notification data to be sent and the first message type value to obtain corresponding first target transmission notification data;
and sending the first target sending notification data to a notification list interface of a second system, and displaying the first target sending notification data based on the notification list interface, wherein the first system and the second system are different types of systems.
In yet another aspect, the present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, is implemented to perform the dual system communication method provided in each of the above aspects, the method comprising:
when detecting that a first system notification management of a first system receives application notification data sent by an application program, recombining the application notification data to obtain notification data to be sent;
determining a first message type value of the first system, and encapsulating the notification data to be sent and the first message type value to obtain corresponding first target transmission notification data;
and sending the first target sending notification data to a notification list interface of a second system, and displaying the first target sending notification data based on the notification list interface, wherein the first system and the second system are different types of systems.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A dual system communication method, comprising:
when detecting that a first system notification management of a first system receives application notification data sent by an application program, recombining the application notification data to obtain notification data to be sent;
determining a first message type value of the first system, and encapsulating the notification data to be sent and the first message type value to obtain corresponding first target transmission notification data;
and sending the first target sending notification data to a notification list interface of a second system, and displaying the first target sending notification data based on the notification list interface, wherein the first system and the second system are different types of systems.
2. The dual-system communication method according to claim 1, wherein the step of transmitting the first target transmission notification data to a notification list interface of a second system, and displaying the first target transmission notification data based on the notification list interface comprises:
sending the first target sending notification data to a receiving and sending notification service of the first system, and sending the first target sending notification data to a second system notification management of the second system through preset inter-process communication based on the receiving and sending notification service;
forwarding the first target send notification data to the notification list interface based on the second system notification management;
and analyzing and displaying the first target sending notification data based on the notification list interface.
3. The dual-system communication method according to claim 1, wherein the step of reassembling the application notification data to obtain notification data to be sent comprises:
determining the data interaction type of the second system, and analyzing the application notification data to obtain corresponding notification data to be processed;
and recombining the notification data to be processed according to the data interaction type to obtain notification data to be sent, which is subjected to data interaction with the second system.
4. The dual-system communication method as claimed in claim 1, further comprising:
when a notification click command is detected to exist in the notification list interface, determining that a second target corresponding to the notification click command sends notification data, and determining a second message type value corresponding to the second target sending notification data;
reading intention data in the second target sending notification data based on the second message type value and a preset value;
and sending the intention data to an application process service of the first system, and starting a target application program in the first system based on the application process service and the intention data.
5. The dual system communication method according to claim 4, wherein the intention data includes packageName data, activity data, and intent data,
the step of sending the intention data to an application process service of the first system, and starting a target application program in the first system based on the application process service and the intention data comprises:
sending the packageName data, the activity data and the intent data to a second system notification management of a second system, and sending the packageName data, the activity data and the intent data to a first system notification management of the first system through preset inter-process communication based on the second system notification management;
sending and receiving notification service which sends the packageName data, the activity data and the intent data to the first system based on the first system notification management;
transmitting the packageName data, the activity data and the intent data to the application process service based on the sending and receiving notification service;
and starting a target application program in the first system based on the application process service through the packageName data, the activity data and the intent data.
6. The dual-system communication method according to claim 4, wherein the step of reading the intention data in the second target transmission notification data based on the second message type value and a preset value comprises:
determining whether the second message type value is the preset value;
and if the second message type value is the preset value, reading intention data in the second target sending notification data.
7. The dual-system communication method according to any one of claims 1 to 6, wherein the first system is an Android system, and the second system is a Linux system.
8. A dual-system communication apparatus, comprising:
the system comprises a recombination module, a sending module and a receiving module, wherein the recombination module is used for recombining application notification data to obtain notification data to be sent when detecting that a first system notification management of a first system receives the application notification data sent by an application program;
the encapsulation module is used for determining a first message type value of the first system, and encapsulating the notification data to be sent and the first message type value to obtain corresponding first target transmission notification data;
and the display module is used for sending the first target sending notification data to a notification list interface of a second system and displaying the first target sending notification data based on the notification list interface, wherein the first system and the second system are different types of systems.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the dual system communication method according to any of claims 1 to 7 are implemented when the processor executes the program.
10. A non-transitory computer readable storage medium having stored thereon a computer program, which when executed by a processor implements the steps of the dual system communication method according to any one of claims 1 to 7.
CN202111366295.0A 2021-11-18 2021-11-18 Dual-system communication method, device, electronic equipment and computer readable storage medium Pending CN113791920A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202111366295.0A CN113791920A (en) 2021-11-18 2021-11-18 Dual-system communication method, device, electronic equipment and computer readable storage medium
PCT/CN2022/107196 WO2023087766A1 (en) 2021-11-18 2022-07-21 Dual-system communication method and apparatus, and electronic device and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111366295.0A CN113791920A (en) 2021-11-18 2021-11-18 Dual-system communication method, device, electronic equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN113791920A true CN113791920A (en) 2021-12-14

Family

ID=78877386

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111366295.0A Pending CN113791920A (en) 2021-11-18 2021-11-18 Dual-system communication method, device, electronic equipment and computer readable storage medium

Country Status (2)

Country Link
CN (1) CN113791920A (en)
WO (1) WO2023087766A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114416239A (en) * 2021-12-30 2022-04-29 麒麟软件有限公司 Method for rapidly displaying Android application message notification on Linux system
WO2023087766A1 (en) * 2021-11-18 2023-05-25 北京字节跳动网络技术有限公司 Dual-system communication method and apparatus, and electronic device and computer-readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105183551A (en) * 2015-09-10 2015-12-23 电子科技大学 Multi-Android-system switching method based on Linux container technology
CN105260250A (en) * 2015-09-10 2016-01-20 烽火通信科技股份有限公司 Linux system and Android system dual-system communication device
CN106503502A (en) * 2016-10-13 2017-03-15 北京珠穆朗玛移动通信有限公司 Notification message processing method and its mobile terminal based on dual system
CN111625246A (en) * 2020-05-15 2020-09-04 武汉蓝星科技股份有限公司 Desktop management method of Linux-Android terminal dual system
CN113055272A (en) * 2019-12-27 2021-06-29 成都鼎桥通信技术有限公司 Message reminding method and device based on dual systems and terminal equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10897500B2 (en) * 2018-10-03 2021-01-19 International Business Machines Corporation Synchronizing a device using push notifications
CN113254154B (en) * 2021-05-21 2024-03-29 技德技术研究所(武汉)有限公司 Application starting method and device for compatibly running Android system on Linux
CN113791920A (en) * 2021-11-18 2021-12-14 北京鲸鲮信息系统技术有限公司 Dual-system communication method, device, electronic equipment and computer readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105183551A (en) * 2015-09-10 2015-12-23 电子科技大学 Multi-Android-system switching method based on Linux container technology
CN105260250A (en) * 2015-09-10 2016-01-20 烽火通信科技股份有限公司 Linux system and Android system dual-system communication device
CN106503502A (en) * 2016-10-13 2017-03-15 北京珠穆朗玛移动通信有限公司 Notification message processing method and its mobile terminal based on dual system
CN113055272A (en) * 2019-12-27 2021-06-29 成都鼎桥通信技术有限公司 Message reminding method and device based on dual systems and terminal equipment
CN111625246A (en) * 2020-05-15 2020-09-04 武汉蓝星科技股份有限公司 Desktop management method of Linux-Android terminal dual system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023087766A1 (en) * 2021-11-18 2023-05-25 北京字节跳动网络技术有限公司 Dual-system communication method and apparatus, and electronic device and computer-readable storage medium
CN114416239A (en) * 2021-12-30 2022-04-29 麒麟软件有限公司 Method for rapidly displaying Android application message notification on Linux system
CN114416239B (en) * 2021-12-30 2023-08-22 麒麟软件有限公司 Method for rapidly displaying Android application message notification on Linux system

Also Published As

Publication number Publication date
WO2023087766A1 (en) 2023-05-25

Similar Documents

Publication Publication Date Title
CN113791920A (en) Dual-system communication method, device, electronic equipment and computer readable storage medium
EP3200071A1 (en) Runtime environment configuration method, device and system
CN113630372A (en) Cloud edge coordination system for edge computing
US20110258598A1 (en) Server side application integration framework
US10303463B2 (en) Terminal management framework and terminal management method
US11709722B2 (en) Extensible communication framework and communication method supporting multiple communication protocols
CN102916998A (en) Network public whiteboard system and method based on cloud computing
CN111708550A (en) Application deployment method and device, computer equipment and storage medium
EP4340333A1 (en) Communication protocol conversion method, and device, system, and gateway device
CN113703997A (en) Bidirectional asynchronous communication middleware system integrating multiple message agents and implementation method
CN113867732A (en) Message information processing method, system and storage medium
US10649609B2 (en) Universal notification pipeline
CN112583630A (en) Device management method, device, system, device and storage medium
US9614900B1 (en) Multi-process architecture for a split browser
US10579577B2 (en) Bridge and asynchronous channel based bus to provide UI-to-UI asynchronous communication
CN110928706B (en) Applet interaction method and device, electronic equipment and storage medium
CN115632815A (en) Data updating method and device, electronic equipment and storage medium
CN115225482A (en) Method and device for configuring Pod network based on Kubernetes
CN109885334B (en) Version compatible system and message sending and receiving method
CN115190124B (en) Message transmission method and device based on distributed industrial control system, storage medium and scheduling server
CN112379927B (en) Method, device, computer equipment and storage medium for remotely executing code instructions
CN116708595A (en) Method, device, equipment and storage medium for constructing protocol chain
CN116339938A (en) Task processing method and device, storage medium and electronic device
CN112448952A (en) Method and device for remotely receiving and storing intelligent equipment parameters
CN115994077A (en) Service simulation processing method and related equipment

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
TA01 Transfer of patent application right

Effective date of registration: 20220505

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant after: BEIJING BYTEDANCE NETWORK TECHNOLOGY Co.,Ltd.

Address before: 2005, floor 2, No. 39, West Street, Haidian District, Beijing 100082

Applicant before: Beijing jingling Information System Technology Co.,Ltd.

TA01 Transfer of patent application right