Cross-OS Object Dragging via File Descriptor Intermediary
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Current methods for transferring content between Linux and Android systems typically require a copy mode, making it cumbersome and inefficient, especially when trying to drag and drop objects across applications running on different operating systems.
Innovation Solution
A method and apparatus that establish a connection between two operating systems, allowing a user to drag and drop objects directly from one application to another by determining the position of the object and sending drag data to the corresponding application, enabling seamless object transfer without the need for a copy mode.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Ease of operation
If copy mode is used to transfer content between Linux and Android systems, then content transfer is achieved, but user operation becomes cumbersome and inefficient
Solution Approach 1:
The patent introduces a file descriptor as an intermediary mechanism that allows direct access to file content across operating system boundaries. Instead of copying files, the file descriptor acts as a reference that enables the Android application to access the Linux file system directly, eliminating the need for copy-paste operations and reducing both operational complexity and time consumption.
2Productivity
If direct object transfer is implemented across operating systems, then operation efficiency improves, but system complexity increases
Solution Approach 1:
The patent implements a universal file descriptor mechanism that works across different operating systems (Linux and Android). The file descriptor serves multiple functions: it acts as a file reference in Linux, can be transferred to Android applications, and enables direct file access without requiring separate implementation for each OS pair, thereby managing complexity while improving productivity.
3Productivity
If copy mode is used for content transfer, then system stability is maintained, but operational efficiency decreases
Solution Approach 1:
The patent uses a virtual copy mechanism where the file descriptor is copied from the Linux application to the Android application, but the actual file content is not copied. This virtual copying approach maintains system stability by avoiding duplicate data while achieving efficient transfer through the shared file descriptor reference.
Data Source
AI summary
Methods, devices and storage media are provided for object dragging implemented at an electronic device. One of the methods includes establishing a connection between a first operating system and a second operating system; in response to a drag operation by a user on a target object in a first application in the first operating system, obtaining position information corresponding to the drag operation; in accordance with a determination that an application window corresponding to the position information belongs to a window of a second application in the second operating system, and that a drag release operation by the user on the target object is received, controlling the first application to send drag data of the target object to the second application; and performing, based on the drag data, a target operation on the target object in the second application.


