WO2023087766A1 - 双系统通信方法、装置、电子设备及计算机可读存储介质 - Google Patents

双系统通信方法、装置、电子设备及计算机可读存储介质 Download PDF

Info

Publication number
WO2023087766A1
WO2023087766A1 PCT/CN2022/107196 CN2022107196W WO2023087766A1 WO 2023087766 A1 WO2023087766 A1 WO 2023087766A1 CN 2022107196 W CN2022107196 W CN 2022107196W WO 2023087766 A1 WO2023087766 A1 WO 2023087766A1
Authority
WO
WIPO (PCT)
Prior art keywords
notification
data
sending
target
sent
Prior art date
Application number
PCT/CN2022/107196
Other languages
English (en)
French (fr)
Inventor
王锐
Original Assignee
北京字节跳动网络技术有限公司
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 北京字节跳动网络技术有限公司 filed Critical 北京字节跳动网络技术有限公司
Publication of WO2023087766A1 publication Critical patent/WO2023087766A1/zh

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

Definitions

  • the present disclosure relates to the technical field of computer communication, and in particular to a dual-system communication method, device, electronic equipment, and computer-readable storage medium.
  • the existing dual-system communication method is mainly the display of notification messages between two identical subsystems, or the display of notification messages between multiple different main systems and subsystems.
  • the main system can only simply prompt one or more notification messages of the subsystems, and cannot realize the message display of the main system being fully compatible with the subsystems.
  • the present disclosure provides a dual-system communication method, device, electronic equipment, and computer-readable storage medium, aiming at realizing message display of a main system fully compatible with a sub-system.
  • the present disclosure provides a dual-system communication method, including:
  • the first system notification manager of the first system Detecting that the first system notification manager of the first system receives the application notification data sent by the application program, reorganizes the application notification data to obtain the notification data to be sent;
  • the step of sending the notification data sent by the first target to the notification list interface of the second system, and displaying the notification data sent by the first target based on the notification list interface include:
  • the step of reorganizing the application notification data to obtain the notification data to be sent includes:
  • the notification data to be processed is reorganized according to the data interaction type to obtain notification data to be sent for data interaction with the second system.
  • the dual-system communication method further includes:
  • the intent data includes packageName data, activity data and intent data,
  • the step of sending the intent data to the application process service of the first system, and starting the target application in the first system based on the application process service and the intent data includes:
  • the step of reading the intent data in the notification data sent by the second target based on the second message type value and a preset value includes:
  • the first system is an Android system
  • the second system is a Linux system.
  • the present disclosure also provides a dual-system communication device, including:
  • the reorganization module is used to reorganize the application notification data to obtain the notification data to be sent when it detects that the first system notification management of the first system has received the application notification data sent by the application program;
  • An encapsulation module configured to determine the first message type value of the first system, encapsulate the notification data to be sent and the first message type value, and obtain the corresponding first target transmission notification data;
  • a display module configured to send the notification data sent by the first target to the notification list interface of the second system, and display the notification data sent by the first target based on the notification list interface, wherein the first system and the The second system is a different type system.
  • the present disclosure also provides an electronic device, including a memory, a processor, and a computer program stored on the memory and operable on the processor.
  • the processor executes the program, it realizes the dual-system communication as described above. method steps.
  • the present disclosure also provides a non-transitory computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of any one of the dual-system communication methods described above are implemented.
  • the present disclosure also provides a computer program product, where the computer program product includes a computer program, and when the computer program is executed by the processor, the steps of any one of the above dual-system communication methods are implemented.
  • the present disclosure also provides a computer program.
  • the computer program is executed by the processor, the steps of any one of the above dual-system communication methods are implemented.
  • the dual-system communication method, device, electronic device, and computer-readable storage medium reorganize the application notification data when detecting that the first system notification management of the first system receives the application notification data sent by the application program, Obtain the notification data to be sent; determine the first message type value of the first system, encapsulate the notification data to be sent and the first message type value, and obtain the corresponding first target sending notification data; send the first target sending notification data to
  • the notification list interface of the second system displays notification data sent by the first target based on the notification list interface, and the first system and the second system are systems of different types.
  • the present disclosure uses the notification list interface of the second system to display in detail, and the target sending notification data after the application notification data is reorganized, so that the second system can compatible display the application notification data sent by the corresponding application program of the first system, and realizes The second system is fully compatible with the message display of the first system.
  • FIG. 1 is one of the schematic flow diagrams of the dual-system communication method provided by the present disclosure
  • FIG. 2 is a schematic diagram of message display of the dual-system communication method provided by the present disclosure
  • Fig. 3 is the second schematic flow diagram of the dual-system communication method provided by the present disclosure.
  • FIG. 4 is a schematic structural diagram of a dual-system communication device provided by the present disclosure.
  • Fig. 5 is a schematic structural diagram of an electronic device provided by the present disclosure.
  • the dual-system communication method, device, electronic device and computer-readable storage medium provided by the present disclosure are described below with reference to FIG. 1 to FIG. 5 .
  • FIG. 1 is one of the schematic flowcharts of the dual-system communication method provided by the present disclosure.
  • the embodiment of the present disclosure provides an embodiment of a dual-system communication method. It should be noted that although the logic sequence is shown in the flowchart, under some data, the sequence shown or described steps.
  • IPC Inter-Process Communication
  • inter-process communication refers to the interaction between two process data.
  • Methods for inter-process communication include, but are not limited to, half-duplex Unix pipes, FIFOs (named pipes), message queues, semaphores, shared memory, and network sockets.
  • AMS Activity Manager Service is an important service in the Android system. AMS coordinates and manages the four major components of the Android system and uniformly schedules each application process.
  • AMN Activity Manager Native, derived from the Binder class, inherits the Activity Manager interface. The client uses the Activity Manager to obtain an Activity Manager Proxy object by internally calling the getDefault method of AMN, through which it can communicate with AMS.
  • Notification refers to the message displayed by the Android system outside the application interface, which aims to provide users with reminders of communication information from others or other real-time information in the application. Users can tap the notification to open the app, or take actions directly from the notification.
  • Notification Manager Service System notification management is one of the main processes of Android system or Linux system, which manages and distributes notifications.
  • the method in the embodiment of the present disclosure uses electronic equipment as an example for execution.
  • the dual-system communication method provided in the embodiment of the present disclosure includes:
  • Step S10 when detecting that the first system notification manager of the first system has received the application notification data sent by the application program, reorganize the application notification data to obtain the notification data to be sent.
  • the communication system in the embodiments of the present disclosure is one of the manifestations of electronic devices, and does not limit the electronic devices.
  • the communication system is a multi-system communication system, that is, the communication system includes multiple main systems and subsystems, including but not limited to one main system and one subsystem, two main systems and one subsystem, and three Main system and one subsystem.
  • this embodiment uses an example in which the communication system includes a main system and a subsystem.
  • the Linux system is used as the main system
  • the Android system is used as the subsystem. That is to say, the communication system in this embodiment is a dual system in which the Linux system is compatible with the Android system.
  • the subsystem Android system is defined as the first system
  • the main system is defined as the Linux system as the second system.
  • the main system Linux system can also be defined as the first system
  • the subsystem The Android system is defined as the second system, and this embodiment takes the former as an example.
  • the main modules of the Linux system include but are not limited to System UI (Linux system interactive interface), which is used to display notification data; Linux Notification Manager Service (Linux system notification management), which is used to receive notification data sent by the Android system and forward System UI's click notification data.
  • System UI Linux system interactive interface
  • Linux Notification Manager Service Linux Notification Manager Service
  • Linux system notification management which is used to receive notification data sent by the Android system and forward System UI's click notification data.
  • the main modules of the Android system include but are not limited to Android Notification Manager Service (Android system notification management), which is used to receive the notification data sent by the application program of the Android system and reorganize the notification data, and send the reorganized notification data to Send And Receive Linux Notification Service (receive and send notification service of Android system), receive click notification data sent by Linux system, and start Android system applications through Activity Manager Service (application process service); Send And Receive Linux Notification Service, used to receive Android Notification Notification data sent by Manager Service and forwarded to the Linux system; Activity Manager Service, used to start the application.
  • Android Notification Manager Service Android system notification management
  • Android system notification management is used to receive the notification data sent by the application program of the Android system and reorganize the notification data, and send the reorganized notification data to Send And Receive Linux Notification Service (receive and send notification service of Android system), receive click notification data sent by Linux system, and start Android system applications through Activity Manager Service (application process service); Send And Receive Linux Notification Service, used to receive Android Notification Notification data sent by Manager
  • the Linux system and the Android system including but not limited to the above-mentioned modules, must be started.
  • an application program (AndroidApp) 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, obtain the application notification (Notification) data sent by the Android App to the Android system, and then pass the Android
  • the Notification Manager sends the Notification data to the system notification management (Android Notification Manager Service) of the Android system.
  • the communication system detects that the Android Notification Manager Service (the first system notification management) receives the Notification data sent by the Android App, the Notification data is reorganized through the Android Notification Manager Service, and the notification to be sent for the interaction between the Android system and the Linux system is obtained (D -Notification) data, specifically as step S101 to step S102.
  • the Android Notification Manager Service the first system notification management
  • step S101 to step S102 is as follows:
  • Step S101 determining the data interaction type of the second system, and analyzing the application notification data to obtain corresponding notification data to be processed;
  • Step S102 reorganize the notification data to be processed according to the data interaction type to obtain notification data to be sent for data interaction with the second system.
  • the communication system determines the data interaction type of the second system (Linux system). It should be noted that the data interaction types of different systems are different.
  • the application notification data is analyzed to obtain the pending data in the application notification data. notification data.
  • the communication system extracts corresponding parameter data from the notification data to be processed according to the data interaction type of the Linux system, wherein the proposed parameter data includes but is not limited to icon small icon data, appName application name data, time timestamp data, bigIcon big Icon data, title title data, text text data, packageName application package name data, activity data, intent data and notificationType message type value data.
  • the communication system reorganizes the icon data, appName data, time data, bigIcon data, title data, text data, packageName data, activity data, intent data and notificationType data through the Android Notification Manager Service (the first system notification management), and obtains D-Notification data for data interaction with the Linux system.
  • Step S20 determine the first message type value of the first system, encapsulate the notification data to be sent and the first message type value, and obtain the corresponding first target sending notification data.
  • the communication system determines the first message type value corresponding to the first system (Android system). 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, also That is, the value of the first message type is 1. Next, the communication system encapsulates the data to be sent (D-Notification) with the first message type value to obtain the corresponding first target sending notification (M1-Notification) data,
  • Step S30 sending the first target sending notification data to the notification list interface of the second system, and displaying the first target sending notification data based on the notification list interface, wherein the first system and the second system
  • the systems are different types of systems.
  • the communication system After the communication system reorganizes and obtains the sending notification data of the first target, it sends the sending notification data of the first target to the sending and receiving notification service of the first system, and the sending and receiving notification service of the first system then sends the first
  • the notification data sent by the target is sent to the second system, and the second system forwards the notification data sent by the first target to its notification list interface, and analyzes and displays the notification data sent by the first target through the notification list interface.
  • the preset inter-process communication in is local IPC inter-process communication, specifically as described in step S301 to step S303.
  • step S301 to step S303 is as follows:
  • Step S301 sending the first target sending notification data to the sending and receiving notification service of the first system, and sending the first destination sending notification data based on the sending and receiving notification service through preset inter-process communication second system notification management to said second system;
  • Step S302 based on the notification management of the second system, forward the notification data sent by the first target to the notification list interface;
  • Step S303 analyzing and displaying the notification data sent by the first target based on the notification list interface.
  • the communication system sends the notification data (M1-Notification data) sent by the first target to the Send And Receive Linux Notification Service of the Android system.
  • the Send And Receive Linux Notification Service service of the Android system receives the M1-Notification data
  • send the M1-Notification data to the Linux Notification Manager Service (second system notification management) of the Linux system through the local IPC inter-process communication
  • the Linux Notification Manager Service of the Linux system will forward the M1-Notification data after receiving the M1-Notification data Go to the Linux system System UI (Linux system interactive interface), analyze the M1-Notification data through the Linux system System UI, and display the analysis results of the M1-Notification data in the notification list interface of the Linux system System UI.
  • Linux system System UI Linux system interactive interface
  • FIG. 2 is a schematic diagram of the message display of the dual-system communication method provided by the present disclosure.
  • the display main content of the notification list interface of the Linux system System UI in Fig. 2 includes at least 1 small icon (information icon); 2 application name (Messages); 3 time stamp (including but not limited to now, one minute ago and ten minutes ago); 4 large icon (user avatar); 5 title content (such as Justin Rhyss); 6 text content (such as Do you want to go see a movie tonight?).
  • This embodiment provides a dual-system communication method.
  • the first system notification management of the first system When detecting that the first system notification management of the first system receives the application notification data sent by the application program, it reorganizes the application notification data to obtain the notification data to be sent; determine the first system the value of the first message type, encapsulate the notification data to be sent and the value of the first message type, and obtain the corresponding first target sending notification data; send the first target sending notification data to the notification list interface of the second system, based on the notification The list interface shows the notification data sent by the first target, and the first system and the second system are different types of systems.
  • the present embodiment displays in detail through the notification list interface of the Linux system, the target sending notification data after the reorganization of the application notification data of the Android system application program, so that the Linux system can be compatible with displaying the application notification data sent by the Android system application program, realizing The message display that the Linux system is fully compatible with the Android system is displayed, thereby increasing the robustness of the Linux system and improving user experience.
  • FIG. 3 is the second schematic flow diagram of the dual-system communication method provided by the present disclosure, and the dual-system communication method further includes:
  • Step S40 when it is detected that there is a notification click instruction in the notification list interface, determine the second target sending notification data corresponding to the notification clicking instruction, and determine the second message type value corresponding to the second target sending notification data;
  • Step S50 based on the second message type value and preset value, read the intent data in the notification data sent by the second target;
  • Step S60 sending the intent data to the 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 intent data.
  • the first system is the Android system
  • the second system is the Linux system
  • the communication system When the communication system detects that there is a notification click instruction in the notification list interface of the Linux system System UI, it determines the clicked notification data corresponding to the notification click instruction in the notification list interface, and determines the clicked notification data as the second target to send the notification data (M2-Notification data), and at the same time, the communication system needs to determine the second message type value in the M2-Notification data. Next, the communication system determines whether the second message type value is a preset value, and obtains a corresponding comparison result, wherein the preset value is preset according to the system type of the first system, and this embodiment defines the preset value of the Android system.
  • the value is 1, and the comparison result is that the value of the second message type is a preset value, or the value of the second message type is not a preset value.
  • the communication system then reads the intent data in the M2-Notification data according to the comparison result, specifically as described in steps S501 to S503. Finally, the communication system transmits the intent data to the application process service (Activity Manager Service) of the Android system, and then starts the target application program in the Android system according to the Activity Manager Service and the intent data, specifically as described in steps S601 to S604.
  • the application process service Activity Manager Service
  • step S501 to step S503 is as follows:
  • Step S501 determining whether the second message type value is the preset value
  • Step S502 if the value of the second message type is the preset value, then read the intent data in the notification data sent by the second target.
  • Step S503 if the value of the second message type is not the preset value, start an application program corresponding to the second system.
  • the communication system determines whether the value of the second message type is a preset value, and obtains a corresponding comparison result. If it is determined that the value of the second message type is a preset value, the communication system reads the second target to send the notification Intent data in the data (M2-Notification data), where the intent data includes but not limited to packageName data, activity data and intent data. If it is determined that the second message type value is not a preset value as a result of the comparison, the communication system starts an application program corresponding to the Linux system.
  • step S601 to step S604 is as follows:
  • Step S601 sending the packageName data, the activity data and the intent data to the second system notification management of the second system, based on the second system notification management and sending the packageName data through preset inter-process communication , sending the activity data and the intent data to the first system notification management of the first system;
  • Step S602 based on the notification management of the first system, sending the packageName data, the activity data and the intent data to the receiving and sending notification service of the first system;
  • Step S603 based on the sending and receiving notification service, transferring the packageName data, the activity data and the intent data to the application process service;
  • Step S604 based on the application process service and through the packageName data, the activity data and the intent data, start the target application program in the first system.
  • the communication system determines that the clicked notification data (M2-Notification data) is the notification data of the application program corresponding to the Android system, and the M2-Notification data in the The packageName data, activity data and intent data are sent to the Linux Notification Manager Service (second system notification management) of the Linux system.
  • M2-Notification data is the notification data of the application program corresponding to the Android system
  • the M2-Notification data in the The packageName data, activity data and intent data are sent to the Linux Notification Manager Service (second system notification management) of the Linux system.
  • the Linux Notification Manager Service of the Linux system passes the preset process Inter-communication (local IPC inter-process communication) sends the packageName data, activity data and intent data to the Android Notification Manager Service (the first system notification management) of the Android system, and the Android Notification Manager Service receives the packageName data, activity data and intent After receiving the data, send the packageName data, activity data and intent data to the Send And Receive Linux Notification Service of the Android system.
  • the Send And Receive Linux Notification Service receives the packageName data, activity data and intent data
  • the packageName data, activity data and intent data are transferred to the application process service Activity Manager Service of the Android system, and the Activity Manager Service starts the target application in the Android system according to the packageName data, activity data and intent data.
  • This embodiment provides a dual-system communication method.
  • determine the second target sending notification data corresponding to the notification clicking instruction and determine the second message type value corresponding to the second target sending notification data.
  • Based on the second message type value and the preset value read the intent data in the notification data sent by the second target; send the intent data to the application process service of the first system, and start the first system based on the application process service and the intent data target application.
  • 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 fully compatible with the application startup of the Android system, thereby reducing the complicated operation of the user. to improve user experience.
  • the dual-system communication device provided by the present disclosure is described, and the dual-system communication device described below and the dual-system communication method described above can be referred to in correspondence.
  • FIG. 4 is a schematic structural diagram of a dual-system communication device provided by the present disclosure.
  • the dual-system communication device includes:
  • the reorganization module 401 is configured to reorganize the application notification data to obtain the notification data to be sent when detecting that the first system notification management of the first system has received the application notification data sent by the application program;
  • An encapsulation module 402 configured to determine the first message type value of the first system, encapsulate the notification data to be sent and the first message type value, and obtain corresponding first target transmission notification data;
  • the display module 403 is configured to send the notification data sent by the first target to the notification list interface of the second system, and display the notification data sent by the first target based on the notification list interface, wherein the first system and the The second system is a different type of system.
  • the display module 403 is also used for:
  • the recombination module 401 is also used for:
  • the notification data to be processed is reorganized according to the data interaction type to obtain notification data to be sent for data interaction with the second system.
  • the dual-system communication device also includes:
  • a determining module configured to determine the second target sending notification data corresponding to the notification clicking instruction when detecting that there is a notification click instruction on the notification list interface, and determine the second message type corresponding to the second target sending notification data value;
  • a reading module configured to read the intent data in the notification data sent by the second target based on the second message type value and a preset value
  • a starting module configured to send the intent data to an application process service of the first system, and start a target application in the first system based on the application process service and the intent data.
  • startup module is also used for:
  • the determining module is also used for:
  • FIG. 5 illustrates a schematic diagram of the physical structure of an electronic device.
  • the electronic device may include: 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 through the communication bus 540 .
  • the processor 510 can invoke logic instructions in the memory 530 to perform a dual-system communication method, the method comprising:
  • the first system notification manager of the first system Detecting that the first system notification manager of the first system receives the application notification data sent by the application program, reorganizes the application notification data to obtain the notification data to be sent;
  • the above logic instructions in the memory 530 may be implemented in the form of software function units and be stored in a computer-readable storage medium when sold or used as an independent product.
  • the technical solution of the present disclosure is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in various embodiments of the present disclosure.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disc, etc., which can store program codes. .
  • the present disclosure also provides a computer program product
  • the computer program product includes a computer program stored on a non-transitory computer-readable storage medium
  • the computer program includes program instructions, and when the program instructions are executed by a computer When executing, the computer can execute the dual-system communication method provided by the above-mentioned methods, the method includes:
  • the first system notification manager of the first system Detecting that the first system notification manager of the first system receives the application notification data sent by the application program, reorganizes the application notification data to obtain the notification data to be sent;
  • the present disclosure also provides a computer program.
  • the program When the program is executed by a computer, the computer can execute the dual-system communication method provided by the above-mentioned methods.
  • the method includes:
  • the first system notification manager of the first system Detecting that the first system notification manager of the first system receives the application notification data sent by the application program, reorganizes the application notification data to obtain the notification data to be sent;
  • the present disclosure also provides a non-transitory computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it is implemented to perform the dual-system communication methods provided above, the method includes:
  • the first system notification manager of the first system Detecting that the first system notification manager of the first system receives the application notification data sent by the application program, reorganizes the application notification data to obtain the notification data to be sent;
  • the device embodiments described above are only illustrative, and the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in One place, or it can be distributed to multiple network elements. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. It can be understood and implemented by those skilled in the art without any creative efforts.
  • each implementation can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware.
  • the essence of the above technical solution or the part that contributes to the prior art can be embodied in the form of software products, and the computer software products can be stored in computer-readable storage media, such as ROM/RAM, magnetic discs, optical discs, etc., including several instructions to make a computer device (which may be a personal computer, server, or network device, etc.) execute the methods described in various embodiments or some parts of the embodiments.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephonic Communication Services (AREA)
  • Hardware Redundancy (AREA)

Abstract

本公开提供一种双系统通信方法、装置、电子设备及计算机可读存储介质,该方法包括:侦测到第一系统的第一系统通知管理接收到应用程序发送的应用通知数据时,对应用通知数据进行重组,得到待发送通知数据;确定第一系统的第一消息类型值,将待发送通知数据和第一消息类型值进行封装,得到第一目标发送通知数据;将第一目标发送通知数据发送至第二系统的通知列表界面,基于通知列表界面显示第一目标发送通知数据,第一系统和第二系统为不同类型系统。本公开通过第二系统的通知列表界面详细显示,应用通知数据重组后的目标发送通知数据,使得第二系统可以兼容显示第一系统的应用程序发送的应用通知数据,实现了第二系统完全兼容第一系统的消息显示。

Description

双系统通信方法、装置、电子设备及计算机可读存储介质
相关申请的交叉引用
本公开要求于2021年11月18日提交的、申请号为202111366295.0、名称为“双系统通信方法、装置、电子设备及计算机可读存储介质”的中国专利申请的优先权,其全部内容通过引用并入本文。
技术领域
本公开涉及计算机通信技术领域,尤其涉及一种双系统通信方法、装置、电子设备及计算机可读存储介质。
背景技术
现有的双系统通信方法主要是两个相同子系统之间的通知消息显示,或者多个不同主系统与子系统之间的通知消息显示。在多个不同主系统与子系统之间的通知消息显示的过程中,主系统只能简单地提示子系统的一条或多条通知消息,并不能实现主系统完全兼容子系统的消息显示。
发明内容
本公开提供一种双系统通信方法、装置、电子设备及计算机可读存储介质,旨在实现主系统完全兼容子系统的消息显示。
本公开提供一种双系统通信方法,包括:
侦测到第一系统的第一系统通知管理接收到应用程序发送的应用通知数据时,对所述应用通知数据进行重组,得到待发送通知数据;
确定所述第一系统的第一消息类型值,将所述待发送通知数据和所述第一消息类型值进行封装,得到对应的第一目标发送通知数据;
将所述第一目标发送通知数据发送至第二系统的通知列表界面,基于所述通知列表界面显示所述第一目标发送通知数据,其中,所述第一系统和所述第二系统为不同类型系统。
根据本公开提供的一种双系统通信方法,所述将所述第一目标发送通知数据发送至第二系统的通知列表界面,基于所述通知列表界面显示所述第一目标发送通知数据的步骤包 括:
将所述第一目标发送通知数据发送至所述第一系统的接发通知服务中,基于所述接发通知服务并通过预设进程间通信将所述第一目标发送通知数据发送至所述第二系统的第二系统通知管理;
基于所述第二系统通知管理将所述第一目标发送通知数据转发至所述通知列表界面;
基于所述通知列表界面解析并显示所述第一目标发送通知数据。
根据本公开提供的一种双系统通信方法,所述对所述应用通知数据进行重组,得到待发送通知数据的步骤包括:
确定所述第二系统的数据交互类型,并对所述应用通知数据进行解析,得到对应的待处理通知数据;
将所述待处理通知数据按照所述数据交互类型进行重组,得到与所述第二系统进行数据交互的待发送通知数据。
根据本公开提供的一种双系统通信方法,所述双系统通信方法,还包括:
侦测到所述通知列表界面存在通知点击指令时,确定所述通知点击指令对应的第二目标发送通知数据,并确定所述第二目标发送通知数据对应的第二消息类型值;
基于所述第二消息类型值与预设值,读取所述第二目标发送通知数据中的意图数据;
将所述意图数据发送至所述第一系统的应用进程服务,基于所述应用进程服务和所述意图数据启动所述第一系统中的目标应用程序。
根据本公开提供的一种双系统通信方法,所述意图数据包括packageName数据、activity数据和intent数据,
所述将所述意图数据发送至所述第一系统的应用进程服务,基于所述应用进程服务和所述意图数据启动所述第一系统中的目标应用程序的步骤包括:
将所述packageName数据、所述activity数据和所述intent数据发送至第二系统的第二系统通知管理,基于所述第二系统通知管理并通过预设进程间通信将所述packageName数据、所述activity数据和所述intent数据发送至所述第一系统的第一系统通知管理;
基于所述第一系统通知管理将所述packageName数据、所述activity数据和所述intent数据发送至所述第一系统的接发通知服务;
基于所述接发通知服务将所述packageName数据、所述activity数据和所述intent数据传入所述应用进程服务;
基于所述应用进程服务并通过所述packageName数据、所述activity数据和所述intent 数据,启动所述第一系统中的目标应用程序。
根据本公开提供的一种双系统通信方法,所述基于所述第二消息类型值与预设值,读取所述第二目标发送通知数据中的意图数据的步骤包括:
确定所述第二消息类型值是否为所述预设值;
若所述第二消息类型值为所述预设值,则读取所述第二目标发送通知数据中的意图数据。
根据本公开提供的一种双系统通信方法,所述第一系统为Android系统,所述第二系统为Linux系统。
本公开还提供一种双系统通信装置,包括:
重组模块,用于侦测到第一系统的第一系统通知管理接收到应用程序发送的应用通知数据时,对所述应用通知数据进行重组,得到待发送通知数据;
封装模块,用于确定所述第一系统的第一消息类型值,将所述待发送通知数据和所述第一消息类型值进行封装,得到对应的第一目标发送通知数据;
显示模块,用于将所述第一目标发送通知数据发送至第二系统的通知列表界面,基于所述通知列表界面显示所述第一目标发送通知数据,其中,所述第一系统和所述第二系统为不同类型系统。
本公开还提供一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现如上述任一种所述双系统通信方法的步骤。
本公开还提供一种非暂态计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现如上述任一种所述双系统通信方法的步骤。
本公开还提供一种计算机程序产品,所述计算机程序产品包括计算机程序,所述计算机程序被所述处理器执行时实现如上任一种所述双系统通信方法的步骤。
本公开还提供一种计算机程序,所述计算机程序被所述处理器执行时实现如上任一种所述双系统通信方法的步骤。
本公开提供的双系统通信方法、装置、电子设备及计算机可读存储介质,侦测到第一系统的第一系统通知管理接收到应用程序发送的应用通知数据时,对应用通知数据进行重组,得到待发送通知数据;确定第一系统的第一消息类型值,将待发送通知数据和第一消息类型值进行封装,得到对应的第一目标发送通知数据;将第一目标发送通知数据发送至第二系统的通知列表界面,基于通知列表界面显示第一目标发送通知数据,第一系统和第 二系统为不同类型系统。由此可知,本公开通过第二系统的通知列表界面详细显示,应用通知数据重组后的目标发送通知数据,使得第二系统可以兼容显示第一系统对应的应用程序发送的应用通知数据,实现了第二系统完全兼容第一系统的消息显示。
附图说明
为了更清楚地说明本公开或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单的介绍,显而易见地,下面描述中的附图是本公开的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本公开提供的双系统通信方法的流程示意图之一;
图2是本公开提供的双系统通信方法的消息显示示意图;
图3是本公开提供的双系统通信方法的流程示意图之二;
图4是本公开提供的双系统通信装置的结构示意图;
图5是本公开提供的电子设备的结构示意图。
具体实施方式
为使本公开的目的、技术方案和优点更加清楚,下面将结合本公开中的附图,对本公开中的技术方案进行清楚、完整的描述,显然,所描述的实施例是本公开一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。
下面结合图1至图5描述本公开提供的双系统通信方法、装置、电子设备及计算机可读存储介质。
具体地,本公开提供一种双系统通信方法,参照图1,图1是本公开提供的双系统通信方法的流程示意图之一。
本公开实施例提供了双系统通信方法的实施例,需要说明的是,虽然在流程图中示出了逻辑顺序,但是在某些数据下,可以以不同于此处的顺序完成所示出或描述的步骤。
名词解释:
IPC:Inter-Process Communication,进程间通信,IPC进程间通信是指两个进程数据之间的交互。进程间通信的方法包括但不限制于半双工Unix管道、FIFO(命名管道)、 消息队列、信号量、共享内存和网络Socket。
AMS:Activity Manager Service是Android系统中重要的一个服务,AMS统筹管理Android系统的四大组件和统一调度各应用进程。AMN:Activity Manager Native,由Binder类派生,继承了Activity Manager接口,客户端使用Activity Manager通过内部调用AMN的getDefault方法得到一个Activity Manager Proxy对象,通过该对象可与AMS通信。
Notification:俗称通知,是指Android系统在应用界面之外显示的消息,旨在向用户提供提醒来自他人的通信信息或应用中的其他实时信息。用户可以点按通知打开应用,或直接从通知中执行操作。
Notification Manager Service:系统通知管理是Android系统或者Linux系统主要的进程之一,管理分发通知。
本公开实施例方法以电子设备作为执行主体进行举例,本公开实施例提供的双系统通信方法包括:
步骤S10,侦测到第一系统的第一系统通知管理接收到应用程序发送的应用通知数据时,对所述应用通知数据进行重组,得到待发送通知数据。
需要说明的是,本公开实施例中的通信系统是电子设备的表现形式之一,并不对电子设备进行限制。
进一步地,通信系统为多系统的通信系统,也即通信系统中包括多个主系统和子系统,包括但不限制于一个主系统和一个子系统、两个主系统和一个子系统,及三个主系统和一个子系统。为了方便说明,本实施例以通信系统包括一个主系统和一个子系统进行举例说明。其中,本实施例以Linux系统作为主系统,以Android安卓系统作为子系统,也就是说,本实施例中的通信系统为Linux系统兼容Android系统的双系统。
进一步地,为了方便阐述本实施例,将子系统Android系统定义为第一系统,将主系统定义Linux系统为第二系统,当然,也可以将主系统Linux系统定义为第一系统,并将子系统Android系统定义为第二系统,本实施例以前者为例。
进一步地,Linux系统的主要模块包括但不限制于System UI(Linux系统交互界面),用于显示通知数据;Linux Notification Manager Service(Linux系统通知管理),用于接收Android系统发送的通知数据和转发System UI的点击通知数据。Android系统的主要模块包括但不限制于Android Notification Manager Service(Android系统通知管理),用于接收Android系统的应用程序发送的通知数据和重组通知数据、将重组后的通知数据发送到Send And Receive Linux Notification Service(Android系统的接发通知服务)、接收Linux 系统发送的点击通知数据,及通过Activity Manager Service(应用进程服务)启动Android系统的应用程序;Send And Receive Linux Notification Service,用于接收Android Notification Manager Service发送的通知数据并将通知数据转发至Linux系统;Activity Manager Service,用于启动应用程序。
进一步需要说明的是,在通信系统启动的过程中,Linux系统和Android系统中的包括但不限制于上述模块都要启动。
具体地,Android系统的应用程序(AndroidApp)需要向Android系统发送通知数据时,Android App需要对所要发送的通知数据进行组装,得到Android App发送至Android系统的应用通知(Notification)数据,再通过Android Notification Manager将Notification数据发送至Android系统的系统通知管理(Android Notification Manager Service)。
通信系统侦测到Android Notification Manager Service(第一系统通知管理)接受到Android App发送的Notification数据时,通过Android Notification Manager Service将Notification数据进行重组,得到Android系统与Linux系统交互的待发送通知(D-Notification)数据,具体如步骤S101至步骤S102。
进一步地,步骤S101至步骤S102的具体描述如下:
步骤S101,确定所述第二系统的数据交互类型,并对所述应用通知数据进行解析,得到对应的待处理通知数据;
步骤S102,将所述待处理通知数据按照所述数据交互类型进行重组,得到与所述第二系统进行数据交互的待发送通知数据。
具体地,通信系统确定第二系统(Linux系统)的数据交互类型,需要说明的是,不同系统的数据交互类型是不一样的,同时对应用通知数据进行解析,得到应用通知数据中的待处理通知数据。接着,通信系统将待处理通知数据按照Linux系统的数据交互类型提取对应的参数数据,其中,提出的参数数据包括但不限制于icon小图标数据、appName应用名称数据、time时间戳数据、bigIcon大图标数据、title标题数据、text文本数据、packageName应用包名数据、activity数据、intent数据和notificationType消息类型值数据。最后,通信系统通过Android Notification Manager Service(第一系统通知管理)将icon数据、appName数据、time数据、bigIcon数据、title数据、text数据、packageName数据、activity数据、intent数据和notificationType数据进行重组,得到与Linux系统进行数据交互的D-Notification数据。
步骤S20,确定所述第一系统的第一消息类型值,将所述待发送通知数据和所述第一 消息类型值进行封装,得到对应的第一目标发送通知数据。
通信系统确定第一系统(Android系统)对应的第一消息类型值,需要说明的是,不同系统对应的消息类型值是不一样的,本实施例中的Android系统的消息类型值为1,也即第一消息类型值为1。接着,通信系统将待发送通知(D-Notification)数据与第一消息类型值进行封装,得到对应的第一目标发送通知(M1-Notification)数据,
步骤S30,将所述第一目标发送通知数据发送至第二系统的通知列表界面,基于所述通知列表界面显示所述第一目标发送通知数据,其中,所述第一系统和所述第二系统为不同类型系统。
通信系统重组得到第一目标发送通知数据后,将该第一目标发送通知数据发送至第一系统的接发通知服务中,第一系统的接发通知服务接着通过预设进程间通信将第一目标发送通知数据送至第二系统,第二系统再将第一目标发送通知数据转发至其通知列表界面中,通过通知列表界面对第一目标发送通知数据进行解析并显示,其中,本实施例中的预设进程间通信为本地IPC进程间通信,具体如步骤S301至步骤S303所述。
进一步地,步骤S301至步骤S303的具体描述如下:
步骤S301,将所述第一目标发送通知数据发送至所述第一系统的接发通知服务中,基于所述接发通知服务并通过预设进程间通信将所述第一目标发送通知数据发送至所述第二系统的第二系统通知管理;
步骤S302,基于所述第二系统通知管理将所述第一目标发送通知数据转发至所述通知列表界面;
步骤S303,基于所述通知列表界面解析并显示所述第一目标发送通知数据。
通信系统将第一目标发送通知数据(M1-Notification数据)发送到Android系统的Send And Receive Linux Notification Service(接发通知服务),Android系统的Send And Receive Linux Notification Service服务接收到M1-Notification数据后,通过本地IPC进程间通信将M1-Notification数据发送至Linux系统的Linux Notification Manager Service(第二系统通知管理),Linux系统的Linux Notification Manager Service接收到M1-Notification数据后,将M1-Notification数据转发至Linux系统System UI(Linux系统交互界面),通过Linux系统的System UI解析M1-Notification数据,并将M1-Notification数据的解析结果显示到Linux系统System UI的通知列表界面中。
进一步地,Linux系统System UI的通知列表界面的显示主要内容如图2所示,图2是本公开提供的双系统通信方法的消息显示示意图。图2中Linux系统System UI的通知 列表界面的显示主要内容至少包括①为小图标(信息图标);②应用名称(Messages);③时间戳(包括但不限制于now、one minute ago和ten minutes ago);④大图标(用户头像);⑤标题内容(如Justin Rhyss);⑥文本内容(如Do you want to go see a movie tonight?)。
本实施例提供了双系统通信方法,侦测到第一系统的第一系统通知管理接收到应用程序发送的应用通知数据时,对应用通知数据进行重组,得到待发送通知数据;确定第一系统的第一消息类型值,将待发送通知数据和第一消息类型值进行封装,得到对应的第一目标发送通知数据;将第一目标发送通知数据发送至第二系统的通知列表界面,基于通知列表界面显示第一目标发送通知数据,第一系统和第二系统为不同类型系统。由此可知,本实施例通过Linux系统的通知列表界面详细显示,Android系统应用程序的应用通知数据重组后的目标发送通知数据,使得Linux系统可以兼容显示Android系统应用程序发送的应用通知数据,实现了Linux系统完全兼容Android系统的消息显示,从而增加了Linux系统的健壮性,提高了用户体验。
进一步地,参照图3,图3是本公开提供的双系统通信方法的流程示意图之二,所述双系统通信方法还包括:
步骤S40,侦测到所述通知列表界面存在通知点击指令时,确定所述通知点击指令对应的第二目标发送通知数据,并确定所述第二目标发送通知数据对应的第二消息类型值;
步骤S50,基于所述第二消息类型值与预设值,读取所述第二目标发送通知数据中的意图数据;
步骤S60,将所述意图数据发送至所述第一系统的应用进程服务,基于所述应用进程服务和所述意图数据启动所述第一系统中的目标应用程序。
由上述步骤S10描述的内容可知,第一系统为Android系统,第二系统为Linux系统。
需要说明的是,用户需要通过Linux系统的通知列表界面中的某一通知数据启动Android系统的某一应用程序时,需要点击Linux系统System UI的通知列表界面进行触发。
通信系统侦测到Linux系统System UI的通知列表界面存在通知点击指令时,确定通知点击指令在通知列表界面中所对应的被点击通知数据,并将该被点击通知数据确定为第二目标发送通知数据(M2-Notification数据),同时,通信系统需要确定该M2-Notification数据中的第二消息类型值。接着,通信系统确定该第二消息类型值是否为预设值,得到对应的比较结果,其中,预设值是根据第一系统的系统类型预先设定的,本实施例定义Android系统的预设值为1,比较结果为该第二消息类型值为预设值,也可以为该第二消 息类型值不是预设值。通信系统再根据比较结果读取该M2-Notification数据中的意图数据,具体如步骤S501至步骤S503所述。最后,通信系统将该意图数据传入Android系统的应用进程服务(Activity Manager Service)中,再根据Activity Manager Service和意图数据启动Android系统中的目标应用程序,具体如步骤S601至步骤S604所述。
进一步地,步骤S501至步骤S503的具体描述如下:
步骤S501,确定所述第二消息类型值是否为所述预设值;
步骤S502,若所述第二消息类型值为所述预设值,则读取所述第二目标发送通知数据中的意图数据。
步骤S503,若所述第二消息类型值不是所述预设值,则启动第二系统对应的应用程序。
具体地,通信系统确定该第二消息类型值是否为预设值,得到对应的比较结果,若确定比较结果为该第二消息类型值为预设值,通信系统则读取第二目标发送通知数据(M2-Notification数据)中的意图数据,其中,意图数据包括但不限制于packageName数据、activity数据和intent数据。若确定比较结果为该第二消息类型值不是预设值,通信系统则启动Linux系统对应的应用程序。
进一步地,步骤S601至步骤S604的具体描述如下:
步骤S601,将所述packageName数据、所述activity数据和所述intent数据发送至第二系统的第二系统通知管理,基于所述第二系统通知管理并通过预设进程间通信将所述packageName数据、所述activity数据和所述intent数据发送至所述第一系统的第一系统通知管理;
步骤S602,基于所述第一系统通知管理将所述packageName数据、所述activity数据和所述intent数据发送至所述第一系统的接发通知服务;
步骤S603,基于所述接发通知服务将所述packageName数据、所述activity数据和所述intent数据传入所述应用进程服务;
步骤S604,基于所述应用进程服务并通过所述packageName数据、所述activity数据和所述intent数据,启动所述第一系统中的目标应用程序。
若确定比较结果为该第二消息类型值为预设值,通信系统则确定该被点击通知数据(M2-Notification数据)为Android系统对应的应用程序的通知数据,并将M2-Notification数据中的packageName数据、activity数据和intent数据发送至Linux系统的Linux Notification Manager Service(第二系统通知管理),Linux系统的Linux Notification Manager  Service接收到该packageName数据、activity数据和intent数据后,再通过预设进程间通信(本地IPC进程间通信)将该packageName数据、activity数据和intent数据发送至Android系统的Android Notification Manager Service(第一系统通知管理),Android Notification Manager Service接收到该packageName数据、activity数据和intent数据后,将该packageName数据、activity数据和intent数据发送至Android系统的Send And Receive Linux Notification Service(接发通知服务),Send And Receive Linux Notification Service接收到该packageName数据、activity数据和intent数据后,将该packageName数据、activity数据和intent数据传入Android系统的应用进程服务Activity Manager Service,Activity Manager Service根据packageName数据、activity数据和intent数据启动Android系统中的目标应用程序。
本实施例提供了双系统通信方法,侦测到通知列表界面存在通知点击指令时,确定通知点击指令对应的第二目标发送通知数据,并确定第二目标发送通知数据对应的第二消息类型值;基于第二消息类型值与预设值,读取第二目标发送通知数据中的意图数据;将意图数据发送至第一系统的应用进程服务,基于应用进程服务和意图数据启动第一系统中的目标应用程序。由此可知,本实施例通过可以根据用户在Linux系统的通知列表界面所点击的通知数据,启动Android系统对应的应用程序,实现了Linux系统完全兼容Android系统的应用启动,从而减少用户的操作复杂度,提升用户体验。
进一步地,对本公开提供的双系统通信装置进行描述,下文描述的双系统通信装置与上文描述的双系统通信方法可相互对应参照。
如图4所示,图4是本公开提供的双系统通信装置的结构示意图,双系统通信装置包括:
重组模块401,用于侦测到第一系统的第一系统通知管理接收到应用程序发送的应用通知数据时,对所述应用通知数据进行重组,得到待发送通知数据;
封装模块402,用于确定所述第一系统的第一消息类型值,将所述待发送通知数据和所述第一消息类型值进行封装,得到对应的第一目标发送通知数据;
显示模块403,用于将所述第一目标发送通知数据发送至第二系统的通知列表界面,基于所述通知列表界面显示所述第一目标发送通知数据,其中,所述第一系统和所述第二系统为不同类型系统。
进一步地,所述显示模块403还用于:
将所述第一目标发送通知数据发送至所述第一系统的接发通知服务中,基于所述接发 通知服务并通过预设进程间通信将所述第一目标发送通知数据发送至所述第二系统的第二系统通知管理;
基于所述第二系统通知管理将所述第一目标发送通知数据转发至所述通知列表界面;
基于所述通知列表界面解析并显示所述第一目标发送通知数据。
进一步地,所述重组模块401还用于:
确定所述第二系统的数据交互类型,并对所述应用通知数据进行解析,得到对应的待处理通知数据;
将所述待处理通知数据按照所述数据交互类型进行重组,得到与所述第二系统进行数据交互的待发送通知数据。
进一步地,所述双系统通信装置,还包括:
确定模块,用于侦测到所述通知列表界面存在通知点击指令时,确定所述通知点击指令对应的第二目标发送通知数据,并确定所述第二目标发送通知数据对应的第二消息类型值;
读取模块,用于基于所述第二消息类型值与预设值,读取所述第二目标发送通知数据中的意图数据;
启动模块,用于将所述意图数据发送至所述第一系统的应用进程服务,基于所述应用进程服务和所述意图数据启动所述第一系统中的目标应用程序。
进一步地,所述启动模块还用于:
将所述packageName数据、所述activity数据和所述intent数据发送至第二系统的第二系统通知管理,基于所述第二系统通知管理并通过预设进程间通信将所述packageName数据、所述activity数据和所述intent数据发送至所述第一系统的第一系统通知管理;
基于所述第一系统通知管理将所述packageName数据、所述activity数据和所述intent数据发送至所述第一系统的接发通知服务;
基于所述接发通知服务将所述packageName数据、所述activity数据和所述intent数据传入所述应用进程服务;
基于所述应用进程服务并通过所述packageName数据、所述activity数据和所述intent数据,启动所述第一系统中的目标应用程序。
进一步地,所述确定模块还用于:
确定所述第二消息类型值是否为所述预设值;
若所述第二消息类型值为所述预设值,则读取所述第二目标发送通知数据中的意图数 据。
本公开提供的双系统通信装置的具体实施例与上述双系统通信方法各实施例基本相同,在此不作赘述。
图5示例了一种电子设备的实体结构示意图,如图5所示,该电子设备可以包括:处理器(processor)510、通信接口(Communications Interface)520、存储器(memory)530和通信总线540,其中,处理器510,通信接口520,存储器530通过通信总线540完成相互间的通信。处理器510可以调用存储器530中的逻辑指令,以执行双系统通信方法,该方法包括:
侦测到第一系统的第一系统通知管理接收到应用程序发送的应用通知数据时,对所述应用通知数据进行重组,得到待发送通知数据;
确定所述第一系统的第一消息类型值,将所述待发送通知数据和所述第一消息类型值进行封装,得到对应的第一目标发送通知数据;
将所述第一目标发送通知数据发送至第二系统的通知列表界面,基于所述通知列表界面显示所述第一目标发送通知数据,其中,所述第一系统和所述第二系统为不同类型系统。
此外,上述的存储器530中的逻辑指令可以通过软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本公开的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本公开各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。
另一方面,本公开还提供一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,计算机能够执行上述各方法所提供的双系统通信方法,该方法包括:
侦测到第一系统的第一系统通知管理接收到应用程序发送的应用通知数据时,对所述应用通知数据进行重组,得到待发送通知数据;
确定所述第一系统的第一消息类型值,将所述待发送通知数据和所述第一消息类型值进行封装,得到对应的第一目标发送通知数据;
将所述第一目标发送通知数据发送至第二系统的通知列表界面,基于所述通知列表界 面显示所述第一目标发送通知数据,其中,所述第一系统和所述第二系统为不同类型系统。
另一方面,本公开还提供一种计算机程序,所述程序被计算机执行时,计算机能够执行上述各方法所提供的双系统通信方法,该方法包括:
侦测到第一系统的第一系统通知管理接收到应用程序发送的应用通知数据时,对所述应用通知数据进行重组,得到待发送通知数据;
确定所述第一系统的第一消息类型值,将所述待发送通知数据和所述第一消息类型值进行封装,得到对应的第一目标发送通知数据;
将所述第一目标发送通知数据发送至第二系统的通知列表界面,基于所述通知列表界面显示所述第一目标发送通知数据,其中,所述第一系统和所述第二系统为不同类型系统。
又一方面,本公开还提供一种非暂态计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现以执行上述各提供的双系统通信方法,该方法包括:
侦测到第一系统的第一系统通知管理接收到应用程序发送的应用通知数据时,对所述应用通知数据进行重组,得到待发送通知数据;
确定所述第一系统的第一消息类型值,将所述待发送通知数据和所述第一消息类型值进行封装,得到对应的第一目标发送通知数据;
将所述第一目标发送通知数据发送至第二系统的通知列表界面,基于所述通知列表界面显示所述第一目标发送通知数据,其中,所述第一系统和所述第二系统为不同类型系统。
以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行各个实施例或者实施例的某些部分所述的方法。
最后应说明的是:以上实施例仅用以说明本公开的技术方案,而非对其限制;尽管参照前述实施例对本公开进行了详细的说明,本领域的普通技术人员应当理解:其依然可以 对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本公开各实施例技术方案的精神和范围。

Claims (12)

  1. 一种双系统通信方法,其特征在于,包括:
    侦测到第一系统的第一系统通知管理接收到应用程序发送的应用通知数据时,对所述应用通知数据进行重组,得到待发送通知数据;
    确定所述第一系统的第一消息类型值,将所述待发送通知数据和所述第一消息类型值进行封装,得到对应的第一目标发送通知数据;
    将所述第一目标发送通知数据发送至第二系统的通知列表界面,基于所述通知列表界面显示所述第一目标发送通知数据,其中,所述第一系统和所述第二系统为不同类型系统。
  2. 根据权利要求1所述的双系统通信方法,其特征在于,所述将所述第一目标发送通知数据发送至第二系统的通知列表界面,基于所述通知列表界面显示所述第一目标发送通知数据的步骤包括:
    将所述第一目标发送通知数据发送至所述第一系统的接发通知服务中,基于所述接发通知服务并通过预设进程间通信将所述第一目标发送通知数据发送至所述第二系统的第二系统通知管理;
    基于所述第二系统通知管理将所述第一目标发送通知数据转发至所述通知列表界面;
    基于所述通知列表界面解析并显示所述第一目标发送通知数据。
  3. 根据权利要求1或2所述的双系统通信方法,其特征在于,所述对所述应用通知数据进行重组,得到待发送通知数据的步骤包括:
    确定所述第二系统的数据交互类型,并对所述应用通知数据进行解析,得到对应的待处理通知数据;
    将所述待处理通知数据按照所述数据交互类型进行重组,得到与所述第二系统进行数据交互的所述待发送通知数据。
  4. 根据权利要求1至3任一项所述的双系统通信方法,其特征在于,所述双系统通信方法还包括:
    侦测到所述通知列表界面存在通知点击指令时,确定所述通知点击指令对应的第二目标发送通知数据,并确定所述第二目标发送通知数据对应的第二消息类型值;
    基于所述第二消息类型值与预设值,读取所述第二目标发送通知数据中的意图数据;
    将所述意图数据发送至所述第一系统的应用进程服务,基于所述应用进程服务和所述意图数据启动所述第一系统中的目标应用程序。
  5. 根据权利要求4所述的双系统通信方法,其特征在于,所述意图数据包括 packageName数据、activity数据和intent数据,
    所述将所述意图数据发送至所述第一系统的应用进程服务,基于所述应用进程服务和所述意图数据启动所述第一系统中的目标应用程序的步骤包括:
    将所述packageName数据、所述activity数据和所述intent数据发送至所述第二系统的第二系统通知管理,基于所述第二系统通知管理并通过预设进程间通信将所述packageName数据、所述activity数据和所述intent数据发送至所述第一系统的所述第一系统通知管理;
    基于所述第一系统通知管理将所述packageName数据、所述activity数据和所述intent数据发送至所述第一系统的接发通知服务;
    基于所述接发通知服务将所述packageName数据、所述activity数据和所述intent数据传入所述应用进程服务;
    基于所述应用进程服务并通过所述packageName数据、所述activity数据和所述intent数据,启动所述第一系统中的所述目标应用程序。
  6. 根据权利要求4或5所述的双系统通信方法,其特征在于,所述基于所述第二消息类型值与预设值,读取所述第二目标发送通知数据中的意图数据的步骤包括:
    确定所述第二消息类型值是否为所述预设值;
    若所述第二消息类型值为所述预设值,则读取所述第二目标发送通知数据中的所述意图数据。
  7. 根据权利要求1至6任一项所述的双系统通信方法,其特征在于,所述第一系统为Android系统,所述第二系统为Linux系统。
  8. 一种双系统通信装置,其特征在于,包括:
    重组模块,用于侦测到第一系统的第一系统通知管理接收到应用程序发送的应用通知数据时,对所述应用通知数据进行重组,得到待发送通知数据;
    封装模块,用于确定所述第一系统的第一消息类型值,将所述待发送通知数据和所述第一消息类型值进行封装,得到对应的第一目标发送通知数据;
    显示模块,用于将所述第一目标发送通知数据发送至第二系统的通知列表界面,基于所述通知列表界面显示所述第一目标发送通知数据,其中,所述第一系统和所述第二系统为不同类型系统。
  9. 一种电子设备,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述程序时实现如权利要求1至7任一 项所述双系统通信方法的步骤。
  10. 一种非暂态计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至7任一项所述双系统通信方法的步骤。
  11. 一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至7任一项所述双系统通信方法的步骤。
  12. 一种计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至7任一项所述双系统通信方法的步骤。
PCT/CN2022/107196 2021-11-18 2022-07-21 双系统通信方法、装置、电子设备及计算机可读存储介质 WO2023087766A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111366295.0 2021-11-18
CN202111366295.0A CN113791920A (zh) 2021-11-18 2021-11-18 双系统通信方法、装置、电子设备及计算机可读存储介质

Publications (1)

Publication Number Publication Date
WO2023087766A1 true WO2023087766A1 (zh) 2023-05-25

Family

ID=78877386

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/107196 WO2023087766A1 (zh) 2021-11-18 2022-07-21 双系统通信方法、装置、电子设备及计算机可读存储介质

Country Status (2)

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

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113791920A (zh) * 2021-11-18 2021-12-14 北京鲸鲮信息系统技术有限公司 双系统通信方法、装置、电子设备及计算机可读存储介质
CN114416239B (zh) * 2021-12-30 2023-08-22 麒麟软件有限公司 一种将Android应用消息通知快速显示在Linux系统上的方法

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200112606A1 (en) * 2018-10-03 2020-04-09 International Business Machines Corporation Synchronizing a device using push notifications
CN111625246A (zh) * 2020-05-15 2020-09-04 武汉蓝星科技股份有限公司 一种Linux-Android终端双系统的桌面管理方法
CN113055272A (zh) * 2019-12-27 2021-06-29 成都鼎桥通信技术有限公司 基于双系统的消息提醒方法、装置和终端设备
CN113254154A (zh) * 2021-05-21 2021-08-13 技德技术研究所(武汉)有限公司 一种在Linux上兼容运行Android系统的应用启动方法及装置
CN113791920A (zh) * 2021-11-18 2021-12-14 北京鲸鲮信息系统技术有限公司 双系统通信方法、装置、电子设备及计算机可读存储介质

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105183551B (zh) * 2015-09-10 2019-12-10 电子科技大学 基于Linux容器技术的多Android系统之间切换方法
CN105260250B (zh) * 2015-09-10 2018-08-03 烽火通信科技股份有限公司 一种Linux系统与Android系统的双系统通信装置
CN106503502B (zh) * 2016-10-13 2020-08-25 北京珠穆朗玛移动通信有限公司 基于双系统的通知消息处理方法及其移动终端

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200112606A1 (en) * 2018-10-03 2020-04-09 International Business Machines Corporation Synchronizing a device using push notifications
CN113055272A (zh) * 2019-12-27 2021-06-29 成都鼎桥通信技术有限公司 基于双系统的消息提醒方法、装置和终端设备
CN111625246A (zh) * 2020-05-15 2020-09-04 武汉蓝星科技股份有限公司 一种Linux-Android终端双系统的桌面管理方法
CN113254154A (zh) * 2021-05-21 2021-08-13 技德技术研究所(武汉)有限公司 一种在Linux上兼容运行Android系统的应用启动方法及装置
CN113791920A (zh) * 2021-11-18 2021-12-14 北京鲸鲮信息系统技术有限公司 双系统通信方法、装置、电子设备及计算机可读存储介质

Also Published As

Publication number Publication date
CN113791920A (zh) 2021-12-14

Similar Documents

Publication Publication Date Title
WO2023087766A1 (zh) 双系统通信方法、装置、电子设备及计算机可读存储介质
CN108536524B (zh) 资源更新方法、装置、终端及存储介质
CN106161537B (zh) 远程过程调用的处理方法、装置、系统及电子设备
CN109995801B (zh) 一种消息传输方法和装置
US10693816B2 (en) Communication methods and systems, electronic devices, and computer clusters
JP2019537158A (ja) リソース共有方法、装置およびシステム
CN102868728B (zh) 在vdi环境下基于虚拟通道的网络代理方法
US20190173960A1 (en) Method, device and computer program product for protocol selection
KR102121358B1 (ko) 데이터 전송 방법 및 디바이스
CN102916998A (zh) 一种基于云计算的网络公共白板系统及方法
US10133696B1 (en) Bridge, an asynchronous channel based bus, and a message broker to provide asynchronous communication
EP3779690A1 (en) Processor core scheduling method and apparatus, terminal, and storage medium
KR101416280B1 (ko) 이벤트 처리 시스템 및 방법
CN111200606A (zh) 深度学习模型任务处理方法、系统、服务器及存储介质
CN111988386A (zh) 一种云管理平台实时消息推送方法、装置及计算机可读介质
CN112328362A (zh) 一种基于容器技术实现函数计算服务的方法
CN110928706B (zh) 小程序交互方法、装置、电子设备及存储介质
CN113703997A (zh) 集成多种消息代理的双向异步通信中间件系统及实现方法
WO2022214012A1 (zh) 实现应用程序的多语言翻译的系统、方法、设备和介质
US10649609B2 (en) Universal notification pipeline
CN112887420B (zh) 消息推送方法和装置、计算机可读存储介质、电子设备
CN104702494B (zh) 一种阅后即焚消息的即时通讯方法及装置
US10579577B2 (en) Bridge and asynchronous channel based bus to provide UI-to-UI asynchronous communication
CN112689020A (zh) 一种消息传输方法、消息中间件、电子设备及存储介质
CN112395242A (zh) 多芯片控制方法、装置、电子设备和计算机可读存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22894309

Country of ref document: EP

Kind code of ref document: A1