A clipboard sharing method, device, equipment, medium and product

By deploying the second operating system in the container and synchronizing the pasteboard content using preset protocols, the problem that the Linux operating system and the Android operating system cannot connect to the clipboard is solved, and faster pasteboard synchronization is achieved and transmission efficiency is improved.

CN114035976BActive Publication Date: 2024-11-26DOUYIN VISION CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111221709.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-20
Publication Date
2024-11-26
Estimated Expiration
2041-10-20

AI Technical Summary

Technical Problem

The Android operating system environment deployed in Linux operating systems and containers cannot effectively connect the clipboard content. The existing shared clipboard method relies on network transmission, which is limited by disk and network speed.

Method used

By deploying the second operating system in the container, in response to the pasteboard update and sending data that complies with the preset protocol, the pasteboard synchronization between containers is realized, and the file mapping function is used to accelerate data transmission.

Benefits of technology

It realizes rapid synchronization between the system and the host system paste board content in the container environment, improves transmission speed, and avoids bottlenecks in network transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114035976B_ABST
    Figure CN114035976B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention provides a method, device, equipment, medium and product for sharing a clipboard, including: in response to a clipboard update in a second operating system in a first container, the second operating system in the container sends first data that complies with a preset protocol to the first operating system; the first operating system parses the first data according to the preset protocol to obtain first update content and a first instruction, and updates the clipboard in the first operating system with the first update content according to the first instruction. This can make clipboard content communication between systems faster.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a clipboard sharing method, device, equipment, medium and product. Background Art

[0002] In order to expand the application ecosystem of the Linux operating system, solutions such as anbox and xdroid have been developed to enable the Linux operating system to support Android applications through container technology.

[0003] In the related art, since the Linux operating system and the Android operating system environment deployed in the container are independent of each other, common operations such as pasting clipboard contents cannot be performed.

[0004] In order to solve the above problems, the method of sharing the clipboard in the related art is to transmit through the network. No matter it is a local area network method or an Internet application method, the transmission will be limited by the disk and network speed. Summary of the invention

[0005] Embodiments of the present invention provide a pasteboard sharing method, apparatus, device, medium and product, which can make the pasteboard content of a system in a container environment and a host system synchronized more quickly.

[0006] Specifically, the embodiment of the present invention provides the following technical solutions:

[0007] In a first aspect, an embodiment of the present invention provides a clipboard sharing method, which is applied to an electronic device, wherein the electronic device includes a first operating system, the first operating system includes at least one container, and a second operating system is deployed in the container, including: in response to a clipboard update in the second operating system in the first container, the second operating system in the container sends first data that complies with a preset protocol to the first operating system; the first operating system parses the first data according to the preset protocol to obtain first update content and a first instruction, and updates the clipboard in the first operating system with the first update content according to the first instruction.

[0008] Furthermore, the method also includes: the first operating system sends the first data that complies with the preset protocol to the second operating system in the second container; the second operating system in the second container parses the first data according to the preset protocol to obtain the first update content and the first instruction, and updates the clipboard in the second operating system in the second container with the first update content according to the first instruction.

[0009] Furthermore, the method also includes: in response to the clipboard update in the first operating system, the first operating system sends second data that complies with the preset protocol to the second operating system in the first container; the second operating system in the first container parses the second data according to the preset protocol to obtain second update content and second instructions, and updates the clipboard in the second operating system in the first container with the second update content according to the second instructions.

[0010] Furthermore, the method also includes: the first operating system sends the second data that complies with the preset protocol to the second operating system in the second container; the second operating system in the second container parses the second data according to the preset protocol to obtain the second update content and the second instruction, and updates the clipboard in the second operating system in the second container with the second update content according to the second instruction.

[0011] Furthermore, the method also includes: one of the first operating system and the second operating system is a Linux operating system, and the other is an Android operating system, and the Linux operating system and the Android operating system monitor the content of the clipboard in their respective systems.

[0012] In a second aspect, an embodiment of the present invention further provides a pasteboard sharing device, which is applied to an electronic device, wherein the electronic device includes a first operating system, the first operating system includes at least one container, and a second operating system is deployed in the container, including: a first pasteboard service module, which is used to respond to a pasteboard update in the second operating system in the first container, and the second operating system in the container sends first data that complies with a preset protocol to the first operating system; a container management module, the first operating system parses the first data according to the preset protocol to obtain first update content and a first instruction; and a pasteboard listening application, which is used to update the pasteboard in the first operating system with the first update content according to the first instruction.

[0013] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of the clipboard sharing method described in the first aspect are implemented.

[0014] In a fourth aspect, an embodiment of the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the clipboard sharing method described in the first aspect.

[0015] In a fifth aspect, an embodiment of the present invention further provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of the clipboard sharing method described in the first aspect.

[0016] The pasteboard sharing method provided by the embodiment of the present invention responds to the pasteboard update in the second operating system in the first container, and the second operating system in the container sends first data that complies with a preset protocol to the first operating system; the first operating system parses the first data according to the preset protocol to obtain first update content and a first instruction, and updates the pasteboard in the first operating system with the first update content according to the first instruction. It can be seen that the second operating system in the container is a virtual system running on the host system. Therefore, the pasteboard synchronization between the second operating system in the first container and the first operating system can be completed through the transmission of files on the disk, that is, the file mapping function. The transmission speed is related to the hard disk speed. With the help of the file mapping function, the second operating system can communicate the pasteboard content with the first operating system faster. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0018] Figure 1 is a flow chart of an embodiment of the pasteboard sharing method of the present invention;

[0019] Figure 2 Flow charts of other embodiments of the pasteboard sharing method of the present invention;

[0020] Figure 3 A schematic diagram of an application scenario of the pasteboard sharing method of the present invention;

[0021] Figure 4 It is a schematic diagram of the structure of some embodiments of the pasteboard sharing device of the present invention;

[0022] Figure 5 It is a schematic diagram of the structure of an electronic device provided according to the present invention. DETAILED DESCRIPTION

[0023] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0024] In the following embodiments, container refers to a technology derived from the Linux kernel, which is a series of processes isolated from other parts of the host system. All files required to run these processes are provided by another operating system image, and the host operating system and the operating system in the container share the same operating system kernel.

[0025] In terms of specific implementation methods, container deployment can be achieved through LXC, LXD, Docker and other methods.

[0026] In the following embodiments, the Linux operating system, the full name of which is the GNU / Linux operating system, is specifically implemented as Ubuntu, Debian, RedHat, etc. The Linux operating system is not limited to running on a physical machine, but can also be an operating system hosted on other operating systems, such as WSL in Windows system.

[0027] In the following embodiments, the Android operating system includes the Android OS released by Google, AOSP, and various derivative systems based on AOSP, such as MIUI, EMUI, One UI, etc.

[0028] In the following embodiments, the applicant uses the first operating system as the Linux operating system and the second operating system as the Android operating system as examples. Those skilled in the art will appreciate that any operating system based on the Linux kernel can be deployed through container technology, so in general, the first operating system and the second operating system can be operating systems based on the Linux kernel, such as Linux, Android, Tizen, Hongmeng, etc. For example, the Linux operating system can be deployed in the Android operating system through container technology (i.e., the first operating system is the Android operating system and the second operating system is the Linux operating system).

[0029] In the following embodiments, the pasteboard, also known as the clipboard, is a software function provided by the operating system, which uses copy and paste operations to store data in the short term and transfer data between documents or applications. It is usually implemented as an anonymous, temporary data buffer that can be accessed by most or all programs in the environment using a programming interface.

[0030] The present invention will be described in detail below with reference to the accompanying drawings and in conjunction with embodiments.

[0031] See also Figure 1 , Figure 1 FIG. 4 is a flow chart of an embodiment of the method for sharing a clipboard according to the present invention. Figure 1 As shown, the clipboard sharing method is applied to an electronic device, the electronic device includes a first operating system, the first operating system includes at least one container, and a second operating system is deployed in the container, including the following steps:

[0032] Step 101: In response to a clipboard update in a second operating system in a first container, the second operating system in the container sends first data that complies with a preset protocol to the first operating system.

[0033] In some embodiments, as an example, the second operating system in the first container may be an Android system, and the first operating system may be a Linux system. The pasteboard service in the Android system may be modified at the system level to implement real-time reading of updated content of the pasteboard. Among them, the real-time reading of the pasteboard service of the Android system may be open to system applications but not to ordinary applications. When updating the pasteboard content, the pasteboard service will send a notification, that is, the pasteboard service may be sending first data that complies with a preset protocol to the Linux system. The Linux system may be set up with multiple containers, and an Android system may be set up in each container, and the Android systems in each container may be of different versions.

[0034] Step 102: The first operating system parses the first data according to the preset protocol to obtain first update content and a first instruction, and updates the clipboard in the first operating system with the first update content according to the first instruction.

[0035] In some embodiments, the preset protocol can be determined according to specific business and needs, such as the preset protocol is a synchronous clipboard protocol. The preset protocol can be set in Figure 3 In the container management module shown, the preset protocol can specify the content of the transmitted data and the data processing method, such as the first update content and the first instruction.

[0036] In some embodiments of the present invention, a pasteboard sharing method is disclosed, in which, in response to a pasteboard update in a second operating system in a first container, the second operating system in the container sends first data that complies with a preset protocol to the first operating system; the first operating system parses the first data according to the preset protocol to obtain first update content and a first instruction, and updates the pasteboard in the first operating system with the first update content according to the first instruction. It can be seen that the second operating system in the container is a virtual system running on the host system, so the pasteboard synchronization between the second operating system in the first container and the first operating system can be completed through the transmission of files on the disk, that is, the file mapping function, and the transmission speed is related to the hard disk speed. With the help of the file mapping function, the second operating system can communicate the pasteboard content with the first operating system faster.

[0037] In some optional implementations, the method further includes:

[0038] The first operating system sends the first data that complies with the preset protocol to the second operating system in the second container; the second operating system in the second container parses the first data according to the preset protocol to obtain the first update content and the first instruction, and updates the clipboard in the second operating system in the second container in the second container with the first update content according to the first instruction.

[0039] In some embodiments, the second operating system in the second container may be an Android system, which may be the same as the second operating system in the first container, but the system version may be different. Still taking the second operating system in the first container as an example, the preset protocol may be set as follows: Figure 3 In the pasteboard service corresponding to the second container shown, the pasteboard service corresponding to the second container parses the first data, and updates the pasteboard in the Android system in the second container according to the parsing result, thereby updating the pasteboard update content in the Android system in the first container to the pasteboard of the Android system in the second container.

[0040] See also Figure 2 , Figure 2 Flow charts of other embodiments of the pasteboard sharing method of the present invention. Figure 2 As shown, the pasteboard sharing method includes the following steps:

[0041] Step 201: In response to a clipboard update in the first operating system, the first operating system sends second data that complies with the preset protocol to a second operating system in the first container.

[0042] In some embodiments, still taking the above as an example, the first operating system can be Figure 3 The container management module shown sends second data that complies with a preset protocol to the Android system in the first container.

[0043] Step 202: The second operating system in the first container parses the second data according to the preset protocol to obtain second update content and a second instruction, and updates the clipboard in the second operating system in the first container with the second update content according to the second instruction.

[0044] In some embodiments, still taking the above as an example, the preset protocol can be set as follows: Figure 3 In the pasteboard service corresponding to the first container shown, the pasteboard service corresponding to the first container parses the second data, and updates the pasteboard in the Android system in the first container according to the parsing result.

[0045] from Figure 2 It can be seen that Figure 1 Compared with the description of some corresponding embodiments, Figure 2 The corresponding clipboard sharing method in some embodiments reflects the update method of the second operating system in the first container when the clipboard in the first operating system is updated. The first operating system sends second data that complies with a preset protocol to the second operating system in the first container, and the second operating system in the first container parses the second data according to the preset protocol to obtain second update content and a second instruction, and updates the clipboard in the second operating system in the first container with the second update content according to the second instruction. This implements updating the content of the clipboard in the first operating system to the clipboard of the second operating system in the first container.

[0046] In some optional implementations, the method further includes:

[0047] The first operating system sends the second data that complies with the preset protocol to the second operating system in the second container; the second operating system in the second container parses the second data according to the preset protocol to obtain the second update content and the second instruction, and updates the clipboard in the second operating system in the second container with the second update content according to the second instruction.

[0048] In some embodiments, the first operating system may be configured to: Figure 3 The container management module shown sends the second data, that is, the information transmission between the second operating system in the second container and the first operating system can be realized by the container management module. The preset protocol can be set in Figure 3In the pasteboard service corresponding to the second container shown, the pasteboard service corresponding to the second container parses the first data and updates the pasteboard in the second Android system according to the parsing result, thereby updating the pasteboard update content in the Linux system to the pasteboard in the second Android system.

[0049] In some optional implementations, the method further includes: one of the first operating system and the second operating system is a Linux operating system, and the other is an Android operating system, and the Linux operating system and the Android operating system monitor the content of the clipboard in their respective systems.

[0050] In some embodiments, the Figure 3 The Linux clipboard monitoring application shown in the figure monitors the content of the clipboard in the Linux system. Figure 3 The pasteboard service shown monitors the content of the pasteboard of the Android system. When the content of one side of the pasteboard changes, the container management module can send instructions and content to update the pasteboard to other pasteboard services, triggering the function call to update the pasteboard of other containers.

[0051] like Figure 3 In the diagram of an application scenario shown in the figure, the first operating system is the Linux operating system, and the second operating system is the Android operating system. When an application in container 1, such as WeChat, copies the text "B", the pasteboard service in container 1 can pass the parameter, that is, the first data, to the data communication module. The data communication module can add a data structure for synchronizing the pasteboard. The structure can contain instructions and content. For example, the data structure can be about the conversion of binary data, that is, the data communication module can convert the text "B" into binary data and then send it to the container management module. The first data can be:

[0052]

[0053] The container management module converts the binary data into the original string and parses the string;

[0054] The container management module determines that the value corresponding to cmd in the string is sync_clipboard based on the parsed string, and then forwards the received string to the Linux system pasteboard listening application, and passes the received string to the pasteboard service of container 2 (it can also be passed to container 3, container 4 and other containers except container 1) through the data communication module: the Linux system pasteboard listening application parses the received first data, and sets the content "B" corresponding to the content in the first data to the Linux pasteboard; the pasteboard service in container 2 also parses the first data, and sets the content corresponding to the content in the first data to the pasteboard of container 2.

[0055] See also Figure 4 , Figure 4 The schematic diagrams of the structures of some embodiments of the clipboard sharing device of the present invention are as follows. As the implementation of the methods shown in the above figures, the present invention also provides some embodiments of the clipboard sharing device. These device embodiments are similar to Figure 1 The embodiments of some methods shown correspond to each other, and the device can be applied to various electronic devices.

[0056] like Figure 4 As shown, the pasteboard sharing device 400 of some embodiments includes a first pasteboard service module 401, a container management module 402, and a pasteboard listening application 403; the first pasteboard service module 401 is used to respond to a pasteboard update in the second operating system in the first container, and send first data that complies with a preset protocol to the first operating system, and the first pasteboard service module is set in the first container of the first operating system; the container management module 402 is set in the first operating system, and is used to parse the first data according to the preset protocol to obtain first update content and a first instruction; the first operation pasteboard listening application 403 is used to update the pasteboard in the first operating system with the first update content according to the first instruction.

[0057] In an optional implementation of some embodiments, the device 400 also includes: a container management module 402, which is also used to send first data that complies with a preset protocol to a second operating system in a second container, and the second operating system in the second container is set in the second container of the first operating system; a second clipboard service module, which is used to parse the first data according to the preset protocol, obtain first update content and a first instruction, and update the clipboard in the second operating system in the second container with the first update content according to the first instruction.

[0058] In an optional implementation of some embodiments, the apparatus 400 further includes: a container management module 402, further configured to send second data conforming to a preset protocol to a second operating system in the first container in response to a clipboard update in the first operating system;

[0059] The first clipboard service module 401 is further used to parse the second data according to a preset protocol to obtain second update content and a second instruction, and update the clipboard in the second operating system in the first container with the second update content according to the second instruction.

[0060] In an optional implementation of some embodiments, the device 400 also includes: a container management module 402, which is also used to send second data that complies with a preset protocol to a second operating system in a second container, and the second operating system in the second container is set in the second container of the first operating system; a second clipboard service module, which is also used to parse the second data according to the preset protocol, obtain second update content and a second instruction, and update the clipboard in the second operating system in the second container with the second update content according to the second instruction.

[0061] In an optional implementation of some embodiments, the device 400 also includes: a clipboard monitoring application 403, which is also used to monitor the content of the clipboard in the first operating system; a first clipboard service module 401, which is also used to monitor the content of the clipboard in the second operating system in the first container; and a second clipboard service module, which is also used to monitor the content of the clipboard in the second operating system in the second container.

[0062] It is understandable that the modules described in the device 400 are similar to those described in the reference Figure 1 Therefore, the operations, features and beneficial effects described above for the method are also applicable to the device 400 and the modules and units contained therein, and will not be described in detail here.

[0063] Figure 5 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 5 As shown, the electronic device may include: a processor 510, a communication interface 520, a 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 may call the logic instructions in the memory 530 to execute the pasteboard sharing method, for example, including: in response to the pasteboard update in the second operating system in the first container, the second operating system in the first container sends the first data that complies with the preset protocol to the first operating system, and the second operating system in the first container is set in the first container of the first operating system; the first operating system parses the first data according to the preset protocol to obtain the first update content and the first instruction, and updates the pasteboard in the first operating system with the first update content according to the first instruction.

[0064] In addition, the logic instructions in the above-mentioned memory 530 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, 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 a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0065] On the other hand, the present invention also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the clipboard sharing method provided by the above methods, for example, including: in response to a clipboard update in a second operating system in a first container, the second operating system in the first container sends first data that complies with a preset protocol to the first operating system, and the second operating system in the first container is set in the first container of the first operating system; the first operating system parses the first data according to the preset protocol to obtain first update content and a first instruction, and updates the clipboard in the first operating system with the first update content according to the first instruction.

[0066] On the other hand, an embodiment of the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the clipboard sharing method provided in the above-mentioned embodiments, for example, including: in response to a clipboard update in a second operating system in a first container, the second operating system in the first container sends first data that complies with a preset protocol to the first operating system, and the second operating system in the first container is set in the first container of the first operating system; the first operating system parses the first data according to the preset protocol to obtain first update content and a first instruction, and updates the clipboard in the first operating system with the first update content according to the first instruction.

[0067] The device embodiments described above are merely illustrative, wherein 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, i.e., they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative effort.

[0068] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods of each embodiment or some parts of the embodiment.

[0069] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A clipboard sharing method, applied to an electronic device, wherein the electronic device includes a first operating system, the first operating system includes at least one container, and a second operating system is deployed in the container, characterized in that: The method comprises: In response to a clipboard update in a second operating system in a first container, the second operating system in the container sends first data that complies with a preset protocol to the first operating system; the first operating system and the second operating system are operating systems based on the Linux kernel; the preset protocol specifies the content of the transmitted data and the data processing method; The first operating system parses the first data according to the preset protocol to obtain first update content and a first instruction, and updates the clipboard in the first operating system with the first update content according to the first instruction.

2. The clipboard sharing method according to claim 1, characterized in that: The method further comprises: The first operating system sends the first data conforming to the preset protocol to the second operating system in the second container; The second operating system in the second container parses the first data according to the preset protocol to obtain the first update content and the first instruction, and updates the clipboard in the second operating system in the second container with the first update content according to the first instruction.

3. The clipboard sharing method according to claim 1, characterized in that: The method further comprises: In response to a clipboard update in the first operating system, the first operating system sends second data that complies with the preset protocol to a second operating system in the first container; The second operating system in the first container parses the second data according to the preset protocol to obtain second update content and second instructions, and updates the clipboard in the second operating system in the first container with the second update content according to the second instructions.

4. The method for sharing a clipboard according to claim 3, characterized in that: The method further comprises: The first operating system sends the second data conforming to the preset protocol to the second operating system in the second container; The second operating system in the second container parses the second data according to the preset protocol to obtain the second update content and the second instruction, and updates the clipboard in the second operating system in the second container with the second update content according to the second instruction.

5. The method for sharing a clipboard according to any one of claims 1 to 4, characterized in that: The method further comprises: One of the first operating system and the second operating system is a Linux operating system, and the other is an Android operating system. The Linux operating system and the Android operating system monitor the content of the clipboard in their respective systems.

6. A clipboard sharing device, applied to an electronic device, the electronic device comprising a first operating system, the first operating system comprising at least one container, a second operating system being deployed in the container, characterized in that: include: A first clipboard service module, configured to respond to a clipboard update in a second operating system in a first container, wherein the second operating system in the container sends first data conforming to a preset protocol to the first operating system; The first operating system and the second operating system are operating systems based on the Linux kernel; The preset protocol specifies the content of the transmitted data and the data processing method; a container management module, wherein the first operating system parses the first data according to the preset protocol to obtain first update content and a first instruction; The pasteboard monitoring application is used to update the pasteboard in the first operating system with the first update content according to the first instruction.

7. The pasteboard sharing device according to claim 6, characterized in that: The device also includes: The container management module is further configured to, in response to a clipboard update in the first operating system, cause the first operating system to send second data that complies with the preset protocol to a second operating system in the first container; The first clipboard service module is also used for the second operating system in the first container to parse the second data according to the preset protocol to obtain second update content and second instructions, and to update the clipboard in the second operating system in the first container with the second update content according to the second instructions.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the clipboard sharing method according to any one of claims 1 to 5 are implemented.

9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the clipboard sharing method according to any one of claims 1 to 5 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the clipboard sharing method according to any one of claims 1 to 5 are implemented.