Search

CN-122027635-A - Clipboard synchronization method, system, device, storage medium and electronic equipment

CN122027635ACN 122027635 ACN122027635 ACN 122027635ACN-122027635-A

Abstract

The application discloses a clipboard synchronization method, a system, a device, a storage medium and electronic equipment, and relates to the technical field of cloud computing, wherein when an application program in a cloud mobile phone example calls a clipboard interface, call operation of the clipboard interface is intercepted; the method comprises the steps of obtaining clipboard content corresponding to calling operation and an identity of a cloud mobile phone instance, inquiring a preset synchronization strategy based on the identity, determining one or more target devices, and synchronizing the clipboard content to the target devices. Compared with the prior art, the method and the system have the advantages that the synchronous coverage rate of the clipboard content is improved by carrying out system level interception on clipboard interface call, inquiring the synchronous strategy by combining the cloud mobile phone instance identity identification and executing the directional synchronization, and further, basic support is provided for introducing mechanisms such as content perception, intelligent filtering and network self-adaption by organically combining the identity identification, the strategy inquiry and the content synchronization flow, so that the network self-adaption capability in the clipboard synchronization process is improved.

Inventors

  • WU WEIMIN
  • YU WENQING
  • CHEN ZHENXU
  • CHEN CHAO

Assignees

  • 中移互联网有限公司
  • 中国移动通信集团有限公司

Dates

Publication Date
20260512
Application Date
20251224

Claims (18)

  1. 1. A clipboard synchronization method, comprising: When an application program in a cloud mobile phone instance calls a clipboard interface, intercepting call operation of the clipboard interface; Acquiring clipboard content corresponding to the calling operation and an identity of the cloud mobile phone instance; inquiring a preset synchronization strategy based on the identity, and determining one or more target devices; synchronizing the clipboard content to the target device.
  2. 2. The method of claim 1, wherein synchronizing the clipboard content to the target device comprises: performing cross-platform format conversion on the clipboard content according to the type of the operating system of the target equipment; And transmitting the converted clipboard content to the target device through a network service.
  3. 3. The method of claim 1, wherein determining one or more target devices based on the identity query preset synchronization policy comprises: Acquiring user information and instance grouping associated with the cloud mobile phone instance from cloud mobile phone management configuration according to the identity; Determining a synchronous range configuration of the cloud mobile phone instance based on the user information and the instance group, wherein the synchronous range configuration comprises a full instance synchronous mode, an intra-group synchronous mode or a directional synchronous mode; and determining one or more target devices according to the synchronous range configuration.
  4. 4. A method according to claim 3, wherein determining one or more target devices according to the synchronization scope configuration comprises: In the full-instance synchronous mode, determining a cloud mobile phone instance associated with a user and corresponding terminal equipment as target equipment; In the intra-group synchronization mode, determining a cloud mobile phone instance belonging to the same instance group or service domain as the cloud mobile phone instance as target equipment; In the directional synchronization mode, one or more target devices are determined according to a receiving end device list or a target instance identifier which is pre-designated by a user.
  5. 5. The method of claim 1, wherein prior to intercepting the call operations of the clipboard interface, the method further comprises: acquiring an operation instance of an original clipboard service; Constructing a proxy object meeting the clipboard interface requirements based on the running instance; And replacing the corresponding clipboard service reference in the system service registry with the proxy object, wherein the proxy object is used for forwarding the call to the enhanced clipboard management service when receiving the call of the application program to the clipboard interface, and the enhanced clipboard management service is used for executing the clipboard content processing and synchronizing operation.
  6. 6. The method according to claim 1, wherein the method further comprises: detecting sensitive information of the clipboard content to generate a security score; if the security score is higher than a first threshold, terminating synchronizing the clipboard content to a target device; If the security score is between a first threshold and a second threshold, delaying synchronization of the clipboard content or waiting for user confirmation; and if the security score is lower than a second threshold, allowing the clipboard content to be synchronized to a target device.
  7. 7. The method of claim 1, wherein prior to synchronizing the clipboard content to the target device, the method further comprises: Evaluating the current network quality and determining the network quality fraction; selecting a corresponding transmission protocol and a compression strategy according to the network quality fraction; The synchronizing the clipboard content to the target device includes: Transmitting the clipboard content to the target device based on the selected transmission protocol and the compression policy.
  8. 8. The clipboard synchronization system is characterized by comprising a cloud server, an instance manager and a synchronization server; the cloud server is used for intercepting calling operation of the clipboard interface when an application program in a cloud mobile phone instance calls the clipboard interface, and acquiring clipboard content corresponding to the calling operation and an identity of the cloud mobile phone instance; The instance manager is used for inquiring a preset synchronization strategy based on the identity, and determining one or more target devices; the synchronization server is used for synchronizing the clipboard content to the target device.
  9. 9. The system of claim 8, wherein the synchronization server comprises a format conversion unit and a transmission unit; The format conversion unit is used for performing cross-platform format conversion on the clipboard content according to the type of the operating system of the target equipment; The transmission unit is used for transmitting the converted clipboard content to the target equipment through network service.
  10. 10. The system according to claim 8, wherein the synchronization server further comprises a configuration acquisition unit, a range determination unit, and a device determination unit; the configuration acquisition unit is used for acquiring user information and instance grouping associated with the cloud mobile phone instance from cloud mobile phone management configuration according to the identity; The range determining unit is used for determining a synchronous range configuration of the cloud mobile phone instance based on the user information and the instance grouping, wherein the synchronous range configuration comprises a full instance synchronous mode, an intra-group synchronous mode or a directional synchronous mode; the device determining unit is configured to determine one or more target devices according to the synchronization range configuration.
  11. 11. The system according to claim 10, wherein the device determination unit is specifically configured to: In the full-instance synchronous mode, determining a cloud mobile phone instance associated with a user and corresponding terminal equipment as target equipment; In the intra-group synchronization mode, determining a cloud mobile phone instance belonging to the same instance group or service domain as the cloud mobile phone instance as target equipment; In the directional synchronization mode, one or more target devices are determined according to a receiving end device list or a target instance identifier which is pre-designated by a user.
  12. 12. The system of claim 8, wherein the system further comprises a controller configured to control the controller, the system further comprises a service initialization unit for: acquiring an operation instance of an original clipboard service; Constructing a proxy object meeting the clipboard interface requirements based on the running instance; And replacing the corresponding clipboard service reference in the system service registry with the proxy object, wherein the proxy object is used for forwarding the call to the enhanced clipboard management service when receiving the call of the application program to the clipboard interface, and the enhanced clipboard management service is used for executing the clipboard content processing and synchronizing operation.
  13. 13. The system of claim 8, wherein the system further comprises a controller configured to control the controller, the system further comprises a content analyzer for: detecting sensitive information of the clipboard content to generate a security score; if the security score is higher than a first threshold, terminating synchronizing the clipboard content to a target device; If the security score is between a first threshold and a second threshold, delaying synchronization of the clipboard content or waiting for user confirmation; and if the security score is lower than a second threshold, allowing the clipboard content to be synchronized to a target device.
  14. 14. The system of claim 8, further comprising a network service unit configured to: Evaluating the current network quality and determining the network quality fraction; selecting a corresponding transmission protocol and a compression strategy according to the network quality fraction; Transmitting the clipboard content to the target device based on the selected transmission protocol and the compression policy.
  15. 15. A clipboard synchronization device, comprising: The interception module is used for intercepting calling operation of the clipboard interface when an application program in the cloud mobile phone instance calls the clipboard interface; the acquisition module is used for acquiring the clipboard content corresponding to the calling operation and the identity of the cloud mobile phone instance; the determining module is used for determining one or more target devices based on the identity identification inquiry preset synchronous strategy; And the synchronization module is used for synchronizing the clipboard content to the target equipment.
  16. 16. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the method of any of claims 1 to 7.
  17. 17. An electronic device comprising a storage medium, a processor and a computer program stored on the storage medium and executable on the processor, characterized in that the processor implements the method of any one of claims 1 to 7 when executing the computer program.
  18. 18. A computer program product having a computer program stored thereon, which, when executed by a processor, implements the method of any of claims 1 to 7.

Description

Clipboard synchronization method, system, device, storage medium and electronic equipment Technical Field The application relates to the technical field of cloud computing, in particular to a clipboard synchronization method, a system, a device, a storage medium and electronic equipment. Background With the rapid development of cloud computing and virtualization technologies, a cloud mobile phone is used as a virtualization service form based on the cloud computing technology, and an Android operating system and the like are operated on a cloud server to provide experience of remotely accessing mobile equipment for users. The clipboard (Clipboard) is used as a temporary data storage mechanism provided by an operating system, supports various data formats such as text, images, files and the like, and plays an important role in transmitting data between application programs. At present, the prior art mainly realizes cross-device synchronization by deploying a clipboard monitoring agent at a client or cloud mobile phone application layer. For example, part of the scheme installs a special client on the user terminal, listens to the local clipboard change event, and uploads the content to the cloud side via a protocol such as hypertext transfer protocol (HyperText Transfer Protocol, HTTP). However, application layer interception cannot cover clipboard calls at system level or Native layer, especially is not effective for applications using proprietary application programming interfaces (Application Programming Interface, APIs), resulting in insufficient synchronization coverage, and lack of content awareness and intelligent filtering mechanisms, poor network adaptation. Disclosure of Invention In view of the above, the present application provides a clipboard synchronization method, system, device, storage medium and electronic device, which mainly aims to solve the technical problems of insufficient synchronization coverage rate, lack of content perception and intelligent filtering mechanism, and poor network adaptation capability of the current clipboard call. In a first aspect, the present application provides a clipboard synchronization method, including: When an application program in a cloud mobile phone instance calls a clipboard interface, intercepting call operation of the clipboard interface; Acquiring clipboard content corresponding to the calling operation and an identity of the cloud mobile phone instance; inquiring a preset synchronization strategy based on the identity, and determining one or more target devices; synchronizing the clipboard content to the target device. In a second aspect, the application provides a clipboard synchronization system, which comprises a cloud server, an instance manager and a synchronization server; the cloud server is used for intercepting calling operation of the clipboard interface when an application program in a cloud mobile phone instance calls the clipboard interface, and acquiring clipboard content corresponding to the calling operation and an identity of the cloud mobile phone instance; The instance manager is used for inquiring a preset synchronization strategy based on the identity, and determining one or more target devices; the synchronization server is used for synchronizing the clipboard content to the target device. In a third aspect, the present application provides a clipboard synchronization device, including: The interception module is used for intercepting calling operation of the clipboard interface when an application program in the cloud mobile phone instance calls the clipboard interface; the acquisition module is used for acquiring the clipboard content corresponding to the calling operation and the identity of the cloud mobile phone instance; the determining module is used for determining one or more target devices based on the identity identification inquiry preset synchronous strategy; And the synchronization module is used for synchronizing the clipboard content to the target equipment. In a fourth aspect, the present application provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method of the first aspect. In a fifth aspect, the present application provides an electronic device comprising a storage medium, a processor and a computer program stored on the storage medium and executable on the processor, the processor implementing the method of the first aspect when executing the computer program. In a sixth aspect, the application provides a computer program product having a computer program stored thereon, which when executed by a processor implements the method of the first aspect. According to the technical scheme, the clipboard synchronization method, the system, the device, the storage medium and the electronic equipment provided by the application are characterized in that firstly, when an application program in a cloud mobile phone instance calls