CN114374690B - File sharing method, communication system and electronic equipment - Google Patents

File sharing method, communication system and electronic equipment Download PDF

Info

Publication number
CN114374690B
CN114374690B CN202210071978.1A CN202210071978A CN114374690B CN 114374690 B CN114374690 B CN 114374690B CN 202210071978 A CN202210071978 A CN 202210071978A CN 114374690 B CN114374690 B CN 114374690B
Authority
CN
China
Prior art keywords
file
electronic device
directory
operating system
path information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210071978.1A
Other languages
Chinese (zh)
Other versions
CN114374690A (en
Inventor
刘诗聪
姚远
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202210071978.1A priority Critical patent/CN114374690B/en
Publication of CN114374690A publication Critical patent/CN114374690A/en
Application granted granted Critical
Publication of CN114374690B publication Critical patent/CN114374690B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/13File access structures, e.g. distributed indices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/176Support for shared access to files; File sharing support
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/146Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • H04M1/72436User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for text messaging, e.g. SMS or e-mail
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers

Abstract

The application discloses a file sharing method which is applied to first electronic equipment, wherein the first electronic equipment comprises a first operating system, a second operating system is operated on the first operating system, and a first application is operated on the second operating system, and the method comprises the following steps: displaying a first interface of a first application, wherein the first interface comprises a first file identifier; receiving triggering operation of a user for a first file identifier; responding to the triggering operation, determining that the file corresponding to the first file identifier is a file shared by the second electronic equipment to the second operating system, acquiring the file corresponding to the first file identifier from the second electronic equipment, and executing subsequent processing on the file corresponding to the first file identifier. Therefore, the first application running on the second operating system in the first electronic device can access and acquire the files in the second electronic device, so that the use requirement of a user on more files is met, and the user experience is improved. The application also discloses a communication system and electronic equipment.

Description

File sharing method, communication system and electronic equipment
Technical Field
The present application relates to the field of communications technologies, and in particular, to a file sharing method, a communication system, and an electronic device.
Background
Currently, a plurality of Operating Systems (OS) can be run in an electronic device such as a personal computer (Personal Computer, PC, hereinafter referred to as "computer"). For example, a computer operating system (e.g., windows) may be run in a computer R System) and a Virtual Machine (Virtual Machine) operating system (e.g., android (Android) operating system is run on top of the computer operating system R ) Operating system, etc.). In addition, corresponding virtual machine applications (e.g., android) may also be run on top of the virtual machine operating system R Application, etc.). In addition, the current computer can establish communication connection with electronic equipment such as a mobile phone and the like.
However, the files between the computer operating system, the virtual machine operating system and the mobile phone, which are currently connected by communication, are stored independently of each other, and file sharing cannot be performed. In the process of using the computer and the mobile phone by the user, the problem that the user cannot access more files exists, and the user experience is affected.
Disclosure of Invention
The application provides a file sharing method, a communication system and electronic equipment, which can solve the problem that in the prior art, a user cannot access more files in the process of using a computer and a mobile phone, namely, the user can access more files in the process of using the computer and the mobile phone, so that the user experience can be effectively improved.
In order to solve the above technical problem, in a first aspect, an implementation manner of the present application provides a file sharing method, which is applied to a first electronic device, where the first electronic device includes a first operating system, a second operating system is running on the first operating system, and a first application is running on the second operating system, where the method includes: displaying a first interface of a first application, wherein the first interface comprises a first file identifier; receiving triggering operation of a user for a first file identifier, wherein the triggering operation is operation of acquiring a file corresponding to the first file identifier; responding to the triggering operation, determining that the file corresponding to the first file identifier is a file which is shared by the second electronic device to the second operating system, acquiring the file corresponding to the first file identifier from the second electronic device, and carrying out subsequent processing on the file corresponding to the first file identifier, wherein the second electronic device is connected with the first electronic device based on a file sharing communication channel.
In this implementation manner, the second electronic device may share the file identifier of the file in the second electronic device to the first electronic device for displaying. The first application running on the second operating system in the first electronic device can acquire the files in the second electronic device corresponding to the file identifiers according to user operation, so that the access requirement of the first application on the files in the second electronic device can be met, the use requirement of a user on more files can be met, and the user experience is effectively improved.
It should be noted that, in this implementation manner, the first electronic device and the second electronic device may establish a wireless or wired communication connection, and establish a file sharing communication channel, so as to be used for file identification and file transmission in a file sharing process.
In one possible implementation manner of the first aspect, determining that the file corresponding to the first file identifier is a file shared by the second electronic device to the second operating system includes: determining first path information corresponding to the first file identifier, wherein the first path information is path information of the first file identifier under a catalog corresponding to the second operating system; if the first file identification is determined to be stored under the first directory corresponding to the second operating system according to the first path information, determining that the file corresponding to the first file identification is the file shared by the second electronic equipment to the second operating system, and mapping the first directory to the directory of the file identification shared by the second electronic equipment by the second operating system.
In the implementation manner, whether the file corresponding to the first file identifier is from the second electronic device can be conveniently determined through the path information of the first file identifier, and file acquisition efficiency can be effectively improved.
In one possible implementation manner of the first aspect, acquiring, from the second electronic device, a file corresponding to the first file identifier includes: determining second path information corresponding to the first path information according to the first path information and a preset corresponding relation between the first directory and the second directory, wherein the second directory is a directory corresponding to the first operating system and used for mapping file identifiers corresponding to the first directory, and the second path information is path information of the first file identifiers under the second directory; determining third path information corresponding to the second path information according to the second path information and a preset corresponding relation between the second directory and a third directory, wherein the third directory is a directory in the second electronic equipment, and the third path information is path information of a file corresponding to the first file identifier under the third directory; and sending the third path information to the second electronic equipment, so that the second electronic equipment determines the file corresponding to the third path information as the file corresponding to the first file identifier according to the third path information, and sends the file corresponding to the first file identifier to the first electronic equipment.
In the implementation manner, the storage position of the file corresponding to the first file identifier can be accurately determined through the corresponding relation between the path information and the preset directory, the file corresponding to the first file identifier can be conveniently and rapidly acquired, and the file acquisition efficiency can be effectively improved.
In a possible implementation manner of the first aspect, sending the third path information to the second electronic device includes: generating first network path information according to the third path information, wherein the first network path information comprises the third path information and network position information of the second electronic equipment; the first network path information is sent to the second electronic device.
In this implementation manner, the location of the second electronic device may be determined according to the network location information, and the storage location of the file corresponding to the first file identifier may be determined according to the third path information.
In a possible implementation manner of the first aspect, the connecting with the second electronic device based on the file sharing communication channel includes: and receiving the file identification of the file corresponding to the third directory in the second electronic device shared by the second electronic device, mapping the file identification of the file corresponding to the third directory to the second directory corresponding to the first operating system, and mapping the file identification corresponding to the second directory to the first directory corresponding to the second operating system.
Thus, the purpose that the second electronic device shares the file in the second electronic device with the second operating system in the first electronic device can be achieved, so that the user can access the file in the second electronic device on the first electronic device.
In a possible implementation manner of the first aspect, the method for connecting with the second electronic device based on the file sharing communication channel further includes: mapping the file corresponding to the fourth directory corresponding to the second operating system to the fifth directory corresponding to the first operating system, and sharing the file identification of the file corresponding to the fifth directory to the second electronic device, so that the second electronic device maps the file identification of the file corresponding to the fifth directory to the sixth directory.
Therefore, the purpose that the first electronic device shares the file corresponding to the second operating system in the first electronic device to the second electronic device can be achieved, and a user can access the file corresponding to the first operating system on the second electronic device.
In a possible implementation of the first aspect, the method further includes: displaying a first file search interface; receiving a first search keyword input by a user through a first file search interface; receiving search operation of a user; responding to the searching operation, searching files corresponding to the first searching keyword in a first storage space and a second storage space according to the first searching keyword, wherein the first storage space is used for storing local files corresponding to a first operating system, the second storage space is used for storing local files corresponding to a second operating system, and the second electronic equipment shares file identifiers to the second operating system; displaying the file identification of the searched file.
When the user searches the file through the first electronic device, the first electronic device can search the file corresponding to the first operating system corresponding to the first search keyword, the file corresponding to the second operating system and the file shared by the second electronic device. The method can meet the use requirements of users on more files, and can effectively improve the user experience.
In a possible implementation of the first aspect described above, the file is identified as a soft link or a thumbnail of the file. Of course, the file identifier may be any other information that can identify the file, and may be selected and set according to needs.
In a possible implementation of the first aspect, the method further includes: responding to the triggering operation, determining that the file corresponding to the first file identifier is a file shared by a first operating system of the first electronic device to a second operating system, acquiring the file corresponding to the first file identifier from a first storage space corresponding to the first operating system, and executing subsequent processing on the file corresponding to the first file identifier.
In this implementation manner, the first electronic device may also share the file corresponding to the first operating system with the second operating system, where the specific implementation manner of the first electronic device is that the first electronic device maps the file identifier of the file corresponding to some directories corresponding to the first operating system to the shared directory corresponding to the second operating system. Therefore, when the user uses the first application, the file corresponding to the first operating system can be accessed, the access requirement of the user on more files can be met, and the user experience can be effectively improved.
In the application, the first electronic device can provide the file identification shared by the second electronic device for the application running on the first operating system to access and acquire, and/or can provide the file identification of the file corresponding to the second operating system for the application running on the first operating system to access and acquire. Therefore, in the process that the user uses the first electronic equipment, the use requirement of the user on more files can be met, and the user experience is effectively improved.
In the application, if the file corresponding to the first file identifier is determined to be the local file corresponding to the second operating system of the first electronic device in response to the triggering operation; and acquiring the file corresponding to the first file identifier from the second storage space corresponding to the first operating system, and executing the processing corresponding to the triggering operation on the file corresponding to the first file identifier.
In a second aspect, an implementation manner of the present application provides a file sharing method, which is applied to a second electronic device, where a second application is running in the second electronic device, and the method includes: displaying a second interface of a second application, wherein the second interface comprises a second file identifier; receiving triggering operation of a user for a second file identifier, wherein the triggering operation is operation of acquiring a file corresponding to the second file identifier; responding to the triggering operation, determining that the file corresponding to the second file identifier is a file corresponding to a second operating system operated in the first electronic device shared by the first electronic device, acquiring the file corresponding to the second file identifier from the first electronic device, and implementing subsequent processing on the file corresponding to the second file identifier, wherein the first electronic device is an electronic device connected with the second electronic device based on a file sharing communication channel, and comprises a first operating system, and the second operating system is operated on the first operating system.
In this implementation manner, the first electronic device may share the file identifier of the file corresponding to the second operating system in the first electronic device to the second electronic device for display. The second application running in the first electronic device can acquire the file corresponding to the second file identifier from the second electronic device according to the user operation, so that the access requirement of the second application to the file corresponding to the second operating system in the first electronic device can be met, namely the use requirement of a user to more files can be met, and the user experience is effectively improved.
It should be noted that, in this implementation manner, the first electronic device and the second electronic device may establish a wireless or wired communication connection, and establish a file sharing communication channel, so as to be used for file identification and file transmission in a file sharing process.
In one possible implementation manner of the second aspect, determining that the file corresponding to the second file identifier is a file corresponding to a second operating system shared by the first electronic device includes: determining fourth path information corresponding to the second file identifier, wherein the fourth path information is path information of the second file identifier in the second electronic equipment; if the second file identifier is determined to be stored under the sixth directory according to the fourth path information, determining that the file corresponding to the second file identifier is a file corresponding to the second operating system shared by the first electronic device, and the sixth directory is a directory in which the second electronic device maps the file identifier corresponding to the second operating system shared by the first electronic device.
In the implementation manner, whether the file corresponding to the second file identifier is from the first electronic device can be conveniently determined through the path information of the second file identifier, and file acquisition efficiency can be effectively improved.
In one possible implementation manner of the second aspect, acquiring, from the first electronic device, a file corresponding to the second file identifier includes: determining fifth path information corresponding to fourth path information according to the fourth path information and a preset corresponding relation between a sixth directory and a fifth directory, wherein the fifth directory is a directory corresponding to the first operating system and used for mapping a file corresponding to the fourth directory corresponding to the second operating system, and the fifth path information is path information of a file corresponding to the second file identifier under the fifth directory; and sending the fifth path information to the first electronic equipment, so that the first electronic equipment determines that the file corresponding to the fifth path information is the file corresponding to the second file identifier according to the fifth path information, and sends the file corresponding to the second file identifier to the second electronic equipment.
In the implementation manner, the storage position of the file corresponding to the second file identifier can be accurately determined through the corresponding relation between the path information and the preset directory, the file corresponding to the second file identifier can be conveniently and rapidly acquired, and the file acquisition efficiency can be effectively improved.
In a possible implementation manner of the second aspect, sending the fifth path information to the first electronic device includes: generating second network path information according to the fifth path information, wherein the second network path information comprises the fifth path information and network position information of the first electronic equipment; and sending the second network path information to the first electronic device.
In this implementation manner, the location of the first electronic device may be determined according to the network location information, and the storage location of the file corresponding to the second file identifier may be determined according to the third path information.
In one possible implementation of the second aspect, the connecting with the first electronic device based on the file sharing communication channel includes: and receiving the file identification of the file corresponding to the fifth directory and corresponding to the first operating system shared by the first electronic equipment, and mapping the file identification of the file corresponding to the fifth directory to the sixth directory.
Therefore, the purpose that the first electronic device shares the file corresponding to the second operating system in the first electronic device to the second electronic device can be achieved, and the user can access the file corresponding to the second operating system on the second electronic device.
In a possible implementation manner of the second aspect, the method further includes, in connection with the first electronic device, based on a file sharing communication channel: and sharing the file identification of the file corresponding to the third directory to the first electronic equipment so that the first electronic equipment maps the file identification of the file corresponding to the third directory to the second directory corresponding to the first operating system, and maps the file identification corresponding to the second directory corresponding to the first operating system to the first directory corresponding to the second operating system.
Thus, the purpose that the second electronic device shares the file in the second electronic device with the second operating system in the first electronic device can be achieved, so that the user can access the file in the second electronic device on the first electronic device.
In a possible implementation of the second aspect, the method further includes: displaying a second file search interface; receiving a second search keyword input by a user through a second file search interface; receiving search operation of a user; responding to the searching operation, searching files corresponding to the second searching keywords in a storage space of the second electronic equipment according to the second searching keywords, wherein the storage space of the second electronic equipment is used for storing local files of the second electronic equipment and file identifiers shared by the first electronic equipment; displaying the file identification of the searched file.
When the user searches the files through the second electronic equipment, the second electronic equipment can at least search local files of the second electronic equipment corresponding to the second search keywords and files corresponding to the second operating system shared by the first electronic equipment. The method can meet the use requirements of users on more files, and can effectively improve the user experience.
In a possible implementation of the above second aspect, the file is identified as a soft link or a thumbnail of the file. Of course, the file identifier may be any other information that can identify the file, and may be selected and set according to needs.
In a possible implementation of the second aspect, the method further includes: responding to the triggering operation, and determining that the file corresponding to the second file identifier is a file corresponding to a first operating system shared by the first electronic equipment; and acquiring the file corresponding to the second file identifier from the first storage space corresponding to the first operating system of the first electronic device, and implementing subsequent processing on the file corresponding to the second file identifier.
In this implementation manner, the first electronic device may also share the file corresponding to the first operating system with the second electronic device, where the specific implementation manner of the first electronic device is that the first electronic device maps the file identifiers of files corresponding to some directories corresponding to the first operating system to the shared directory corresponding to the second electronic device. Therefore, when the user uses the second application, the file corresponding to the first operating system can be accessed, the access requirement of the user on more files can be met, and the user experience can be effectively improved.
In the application, if the file corresponding to the second file identifier is determined to be the local file of the second electronic device in response to the triggering operation; and acquiring the file corresponding to the second file identifier from the storage space of the second electronic equipment, and executing the processing corresponding to the triggering operation on the file corresponding to the second file identifier.
In a third aspect, an implementation manner of the present application provides a file sharing method, which is applied to a communication system including a first electronic device and a second electronic device, where the first electronic device includes a first operating system, a second operating system is running on the first operating system, a first application is running on the second operating system, a second application is running in the second electronic device, and the first electronic device and the second electronic device are connected based on a file sharing communication channel, and the method includes: the method comprises the steps that a first electronic device displays a first interface of a first application, the first interface comprises a first file identifier, a triggering operation of a user for the first file identifier is received, the triggering operation is responded, a file corresponding to the first file identifier is determined to be a file shared by a second electronic device to a second operating system, the file corresponding to the first file identifier is obtained from the second electronic device, subsequent processing is carried out on the file corresponding to the first file identifier, and the triggering operation is an operation of obtaining the file corresponding to the first file identifier; the second electronic equipment displays a second interface of the second application, the second interface comprises a second file identifier, a triggering operation of a user for the second file identifier is received, the triggering operation is responded, the file corresponding to the second file identifier is determined to be the file corresponding to the second operating system shared by the first electronic equipment, the file corresponding to the second file identifier is acquired from the first electronic equipment, subsequent processing is carried out on the file corresponding to the second file identifier, and the triggering operation is the operation of acquiring the file corresponding to the second file identifier.
In one possible implementation manner of the third aspect, the connection between the first electronic device and the second electronic device based on the file sharing communication channel includes: the second electronic device shares the file identification of the file corresponding to the third directory in the second electronic device to the first electronic device; the first electronic device maps the file identification of the file corresponding to the third directory to the second directory corresponding to the first operating system, and maps the file identification corresponding to the second directory corresponding to the first operating system to the first directory corresponding to the second operating system; the first electronic device maps the files corresponding to the fourth catalogue corresponding to the second operating system in the first electronic device to the fifth catalogue in the second electronic device, and shares the file identifiers of the files corresponding to the fifth catalogue to the second electronic device; and the second electronic equipment maps the file identification of the file corresponding to the fifth directory to the sixth directory.
In other possible implementations of the third aspect, a process of sharing files between the first electronic device and the second electronic device is the same as or similar to the foregoing first aspect and/or the second aspect, and is not described herein.
In a fourth aspect, an implementation manner of the present application provides a communication system, including a first electronic device and a second electronic device, where the first electronic device includes a first operating system, a second operating system is running on the first operating system, a first application is running on the second operating system, a second application is running in the second electronic device, the first electronic device is connected with the second electronic device based on a file sharing communication channel, the first electronic device is used for displaying a first interface of the first application, the first interface includes a first file identifier, a trigger operation of a user for the first file identifier is received, in response to the trigger operation, a file corresponding to the first file identifier is determined to be a file shared by the second electronic device to the second operating system, a file corresponding to the first file identifier is acquired from the second electronic device, and a subsequent process is implemented on the file corresponding to the first file identifier, where the trigger operation is an operation of acquiring the file corresponding to the first file identifier; the second electronic device is used for displaying a second interface of the second application, the second interface comprises a second file identifier, a triggering operation of a user for the second file identifier is received, the triggering operation is responded, the file corresponding to the second file identifier is determined to be the file corresponding to the second operating system shared by the first electronic device, the file corresponding to the second file identifier is acquired from the first electronic device, subsequent processing is carried out on the file corresponding to the second file identifier, and the triggering operation is the operation of acquiring the file corresponding to the second file identifier.
In a fifth aspect, an implementation manner of the present application provides an electronic device, including: a memory for storing a computer program, the computer program comprising program instructions; a controller for executing program instructions for causing an electronic device to perform a file sharing method as provided by any one of the possible implementations of the first aspect and/or the first aspect or for causing an electronic device to perform a file sharing method as provided by any one of the possible implementations of the second aspect and/or the second aspect.
In a sixth aspect, an implementation of the present application provides a computer readable storage medium storing a computer program, the computer program comprising program instructions that are executed by an electronic device to cause the electronic device to perform a file sharing method as provided by the first aspect and/or any one of the possible implementations of the first aspect, or to cause the electronic device to perform a file sharing method as provided by the second aspect and/or any one of the possible implementations of the second aspect.
It will be appreciated that the advantages of the second and sixth aspects may also be referred to in the description of the first aspect, and will not be repeated here.
Drawings
In order to more clearly illustrate the technical solution of the present application, the following description will briefly explain the drawings used in the description of the embodiments.
FIG. 1 is a schematic diagram illustrating one configuration of a communication system provided by the present application, according to some implementations of the present application;
FIG. 2 is a schematic diagram of a display interface of a computer 200 according to some embodiments of the present application;
fig. 3 is a schematic diagram illustrating a structure of a mobile phone 100 according to some embodiments of the present application;
FIG. 4 is a block diagram illustrating a computer 200 according to some implementations of the application;
FIG. 5A is a block diagram illustrating the software architecture of a mobile phone 100 and a computer 200 according to some implementations of the application;
FIG. 5B is a schematic diagram illustrating a social application 1 in a computer 200 accessing a photograph in a cell phone 100 according to some implementations of the application;
FIG. 5C is another schematic diagram illustrating a social application 1 in a computer 200 accessing a photograph in a cell phone 100 according to some implementations of the application;
FIG. 6A is a schematic diagram of a display interface of a computer 200 according to some embodiments of the present application;
FIG. 6B is a schematic diagram of a display interface of a computer 200 according to some embodiments of the application;
FIG. 6C is a schematic diagram of a display interface of a computer 200 according to some embodiments of the application;
FIG. 6D is a diagram illustrating a display interface of a computer 200 according to some embodiments of the application;
FIG. 6E is a schematic diagram of a display interface of a computer 200 according to some embodiments of the application;
FIG. 6F is a schematic diagram of a display interface of a computer 200 according to some embodiments of the application;
FIG. 7A is a schematic diagram of a display interface of a computer 200 according to some embodiments of the present application;
FIG. 7B is a schematic diagram of a display interface of a computer 200 according to some embodiments of the application;
FIG. 8A is a diagram illustrating a display interface of a mobile phone 100 according to some embodiments of the present application;
FIG. 8B is a diagram illustrating a display interface of the mobile phone 100 according to some embodiments of the present application;
FIG. 8C is a diagram illustrating a display interface of the mobile phone 100 according to some embodiments of the present application;
FIG. 8D is a diagram illustrating a display interface of the mobile phone 100 according to some embodiments of the present application;
FIG. 8E is a diagram illustrating a display interface of the mobile phone 100 according to some embodiments of the present application;
FIG. 8F is a diagram illustrating a display interface of the mobile phone 100 according to some embodiments of the present application;
FIG. 9A is a schematic diagram of a display interface of a computer 200 according to some embodiments of the present application;
FIG. 9B is a schematic diagram of a display interface of a computer 200 according to some embodiments of the present application;
FIG. 10A is a diagram illustrating a display interface of a mobile phone 100 according to some embodiments of the present application;
FIG. 10B is a diagram illustrating a display interface of the mobile phone 100 according to some embodiments of the present application;
FIG. 11 is a diagram illustrating some of the directories in the cell phone 100 and the computer 200 according to some implementations of the application;
FIG. 12 is a flow chart illustrating a method for establishing a file sharing communication connection between a mobile phone 100 and a computer 200 according to some embodiments of the present application;
FIG. 13 is a flow chart illustrating a method for a virtual machine application in a computer 200 to access a file in a mobile phone 100 according to some embodiments of the present application;
fig. 14 is a schematic flow chart illustrating a file corresponding to a virtual machine operating system in a mobile phone 200 accessed by an application in the mobile phone 100 in the file sharing method according to some embodiments of the present application;
FIG. 15 is a schematic diagram of another display interface of a computer 200 according to some embodiments of the present application;
FIG. 16 is a diagram illustrating another display interface of the mobile phone 100 according to some implementations of the application;
FIG. 17 is a schematic diagram illustrating the structure of an electronic device, according to some implementations of the application;
fig. 18 is a schematic diagram illustrating the architecture of a system on a chip (SoC), in accordance with some implementations of the application.
Detailed Description
The technical scheme of the application will be described in further detail with reference to the accompanying drawings.
Referring to fig. 1, fig. 1 is a schematic diagram of a communication system provided by the present application, which includes a mobile phone 100 and a computer 200. Wherein:
computer 200 includes a computer operating system (e.g., windows) running in computer 200 R Operating system), a virtual machine operating system (e.g., android) running on top of a computer operating system R Operating system, etc.), and virtual machine applications (e.g., android) running on top of the virtual machine operating system R Application, etc.).
The user can operate the virtual machine application through the computer 200, and view the file corresponding to the virtual machine operating system through the file management window corresponding to the virtual machine operating system. For example, as shown in fig. 2, the computer 200 may display the display interfaces of the virtual machine applications "video application" and "social application" according to the user operation, and the computer 200 may further provide "file management windows" corresponding to the virtual machine operating system according to the user operation, so that the user may view the files corresponding to the virtual machine operating system.
The cell phone 100 includes a cell phone operating system (e.g., android running in the cell phone 100 R Operating system), and a mobile phone application (e.g., android) running on top of the mobile phone operating system R Application).
Currently, during the use of the mobile phone 100 and the computer 200, there is a problem that files cannot be shared between the virtual machine operating systems of the mobile phone 100 and the computer 200.
The implementation manner of the present application provides a file sharing method (may also be referred to as a file access method or a file synchronization method), which can implement file sharing between the mobile phone 100 and the virtual machine operating system of the computer 200.
In one implementation of the present application, the file sharing method includes: the mobile phone 100 and the computer 200 establish a file sharing communication connection in a wireless communication mode or a wired communication mode, that is, establish a file sharing communication channel. The wireless communication method may be, for example, wiFi, bluetooth (blue tooth), near field communication (Near Field Communication, NFC) or the like. In addition, the file sharing communication connection may be a collaborative communication connection.
The mobile phone 100 may share the file identifiers of some files corresponding to the directory in the mobile phone 100 to the virtual machine operating system of the computer 200, and the computer 200 maps the file identifiers of the files corresponding to the directory to the shared directory corresponding to the virtual machine operating system. Thus, the computer 200 can display the file identifier shared by the mobile phone 100 according to the user operation, so as to be used for viewing or selecting by the user. And, if the computer 200 receives the operation of the user to obtain the file corresponding to the file identifier, the computer 200 obtains the file corresponding to the file identifier from the mobile phone 100.
In this way, file sharing between the mobile phone 100 and the virtual machine operating system of the computer 200 can be achieved, so that a user can view the file identifier of the file in the mobile phone 100 on the computer 200, and the computer 200 can support the cross-device access of the virtual machine application running in the virtual machine operating system to the file in the mobile phone 100. The method can meet the use requirements of users on more files, and can effectively improve the user experience.
And/or, the computer 200 may share the file identifier of some directory corresponding files corresponding to the virtual machine operating system to the mobile phone 100, and the mobile phone 100 maps the file identifier of the directory corresponding file to the shared directory in the mobile phone 100. Thus, the mobile phone 100 can display the file identifier of the file corresponding to the virtual machine operating system shared by the computer 200 according to the user operation, so as to be used for the user to check or select. And, if the mobile phone 100 receives the operation of obtaining the file corresponding to the file identifier from the user, the mobile phone 100 obtains the file corresponding to the file identifier from the computer 200.
Thus, file sharing between the virtual machine operating system of the computer 200 and the mobile phone 100 can be realized, so that a user can view the file identifier of the file corresponding to the virtual machine operating system in the computer 200 on the mobile phone 100, and the mobile phone 100 can support the mobile phone application running in the mobile phone 100 to access the file corresponding to the virtual machine operating system in the computer 200 across devices. The method can meet the use requirements of users on more files, and can effectively improve the user experience.
The files shared between the virtual machine operating systems of the mobile phone 100 and the computer 200 may be any type of files such as a picture file, a video file, a document file, etc., which may be selected and set as needed.
In addition, the file identifier may be any information such as a soft link, a thumbnail, etc. of the file. For example, the file identifier corresponding to the picture file may be a picture thumbnail, the file identifier corresponding to the video file may be a video thumbnail, the file identifier corresponding to the document file may be a document soft link, etc., which may be selected and set as needed.
The process of establishing a file sharing communication connection between the mobile phone 100 and the computer 200 and performing file sharing will be described later, and will not be described herein.
The structure of the mobile phone 100 according to the implementation of the present application will be described.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a mobile phone 100 according to an embodiment of the present application.
The handset 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) connector 130, a charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, keys 190, a motor 191, an indicator 192, a camera 193, a display 194, and a subscriber identity module (subscriber identification module, SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
It should be understood that the structure illustrated in the embodiments of the present application is not limited to the specific embodiment of the mobile phone 100. In other embodiments of the application, the handset 100 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The processor 110 may generate operation control signals according to the instruction operation code and the timing signals to complete instruction fetching and instruction execution control.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system.
The wireless communication function of the mobile phone 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like. The mobile communication module 150 may provide a solution for wireless communication including 2G/3G/4G/5G, etc. applied to the handset 100. The wireless communication module 160 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (e.g., wireless fidelity (wireless fidelity, wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field wireless communication technology (near field communication, NFC), infrared technology (IR), etc. applied to the handset 100.
In some embodiments, the antenna 1 and the mobile communication module 150 of the handset 100 are coupled, and the antenna 2 and the wireless communication module 160 are coupled, so that the handset 100 can communicate with a network and other devices through wireless communication technology. For example, with computer 200.
The mobile phone 100 implements display functions through a GPU, a display 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
The display screen 194 is used to display images, videos, and the like. The display 194 includes a display panel. In some embodiments, the cell phone 100 may include 1 or N display screens 194, N being a positive integer greater than 1.
The internal memory 121 may be used to store computer executable program code including instructions. The internal memory 121 may include a storage program area and a storage data area. The storage program area may store an application program (such as a sound playing function, an image playing function, etc.) required for at least one function of the operating system, etc. The storage data area may store data (e.g., audio data, phonebook, etc.) created during use of the handset 100, etc. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like. The processor 110 performs various functional applications of the mobile phone 100 and data processing by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor 110. For example, executing the file sharing method provided by the application.
The pressure sensor 180A is used to sense a pressure signal, and may convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194. When a touch operation is applied to the display 194, the mobile phone 100 detects the intensity of the touch operation according to the pressure sensor 180A. The mobile phone 100 may also calculate the position of the touch based on the detection signal of the pressure sensor 180A. In some embodiments, touch operations that act on different touch locations, or different touch operation intensities, may correspond to different operation instructions.
The touch sensor 180K, also referred to as a "touch device". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is for detecting a touch operation acting thereon or thereabout. The touch sensor may communicate the detected touch operation to the application processor to determine the touch event type. Visual output related to touch operations may be provided through the display 194. In other embodiments, the touch sensor 180K may be disposed on the surface of the mobile phone 100 at a different location than the display 194.
Referring to fig. 4, fig. 4 shows a schematic structure of a computer 200.
Computer 200 may include a processor 210, a communication module 220, an audio module 230, a display 240, a power module 250, and an internal memory 260.
Processor 210 may include, among other things, one or more processing units, such as: processor 210 may include an application processor (application processor, AP), modem processor, graphics processor (graphics processing unit, GPU), image signal processor (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors. The processor 210 may generate operation control signals according to the instruction operation code and the timing signals to complete instruction fetching and instruction execution control.
A memory may also be provided in the processor 210 for storing instructions and data. In some embodiments, the memory in the processor 210 is a cache memory. The memory may hold instructions or data that the processor 210 has just used or recycled. If the processor 210 needs to reuse the instruction or data, it may be called directly from the memory. Repeated accesses are avoided and the latency of the processor 210 is reduced, thereby improving the efficiency of the system.
The communication module 220 may provide a solution for wireless communication including WLAN (Wi-Fi), BT, etc. applied on the computer 200. For example, for the computer 200 to communicate with the cell phone 100.
Computer 200 implements display functions via a GPU, display screen 240, and application processor, etc. The GPU is a microprocessor for image processing, and is connected to the display screen 240 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 210 may include one or more GPUs that execute program instructions to generate or change display information.
The computer 200 may implement audio functions through an audio module 230, an application processor, and the like. Such as video play, music play, etc.
The computer 200 may be self powered by the power module 250.
Internal memory 260 may be used to store computer-executable program code that includes instructions. The internal memory 260 may include a storage program area and a storage data area. The storage program area may store an application program (such as a sound playing function, an image playing function, etc.) required for at least one function of the operating system, etc. The storage data area may store data (e.g., video data) created during use of the computer 200, etc. In addition, the internal memory 260 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like. The processor 210 performs various functional applications of the computer 200 and data processing, such as executing the file sharing method provided by the present application, by executing instructions stored in the internal memory 260 and/or instructions stored in a memory provided in the processor.
It should be understood that the structure illustrated in the embodiments of the present application is not limited to the specific configuration of the computer 200. In other embodiments of the application, computer 200 may include more or less components than those shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The software structure of the mobile phone 100 and the computer 200 provided by the implementation of the present application will be described below.
Referring to fig. 5A, fig. 5A shows a software block diagram of the mobile phone 100 and the computer 200 according to the present embodiment.
The mobile phone 100 includes a mobile phone application, a collaboration service application, a mobile phone file management service (phone File Manager Service), a mobile phone local file system (phone LocalFile System), a communication service, and a mobile phone operating system.
The mobile phone application may be an application installed when the mobile phone leaves the factory, or may be a third party application developed by a third party application developer installed later by the user, for example, the mobile phone application may be a social application for implementing a chat function between the user of the mobile phone and other users, or may be any other type of application, for example, a video application, which may be selected and set as required.
The collaborative service application is software for implementing collaborative management between the mobile phone 100 and the computer 200, and is responsible for processing of collaborative policy, business control, hardware control, equipment authentication and the like between the mobile phone 100 and the computer 200. In addition, the collaboration service application may also implement control of a file sharing policy (also referred to as a file mount policy) between the mobile phone 100 and the computer 200.
In this implementation, the collaborative service application may be "Phone Service App", for example, and file transfer between the mobile phone 100 and the computer 200 may be performed through an authentication channel corresponding to "Phone Service App". Of course, the collaborative services application may also be other types of applications, which may be selected and set as desired.
The mobile phone file management service is a service for local file management of a mobile phone, can store the corresponding relation of a shared directory between the mobile phone 100 and the computer 200, and can also provide shared file transmission and file index service between the mobile phone 100 and the computer 200.
The mobile phone local file system is a local file system of the mobile phone 100, and includes a mobile phone file storage area, where the mobile phone file storage area is used to store files such as system files and application files of the mobile phone 100, and the application files may be any type of files such as picture files, video files, document files, and the like. The local file system of the mobile phone can be, for example, a Magic FS, which can also be called a mobile phone side distributed file system.
In this implementation, the mobile phone 100 may share the file in the local file system of the mobile phone, for example, in the "\sdcard\date\myfiles\directory (as an example of the third directory) to the computer 200, so that the computer 200 maps the file corresponding to the directory to the file in the computer operating system corresponding to the computer 200, for example," D: \vmware\date\sidamountfs\directory (as an example of the second directory).
The communication service is used to implement a communication connection (i.e., a file sharing communication connection) between the mobile phone 100 and the computer 200, and is responsible for cooperative data communication streaming between the mobile phone 100 and the computer 200, and the newly added file transfer protocol (which may also be referred to as a file sharing protocol) may implement file transfer between the mobile phone 100 and a running virtual machine application on a virtual machine operating system running in the computer 200.
The communication service may be, for example, a direct connection service (Direct Link service), specifically, a Magic-link/Auth service, which is used to implement processes such as file forwarding and dragging between the mobile phone 100 and the computer 200. Of course, the communication service may be other types of communication connection services, which may be selected and set as desired. In addition, the file transfer protocol may be any communication protocol (may also be referred to as a standard file transfer protocol) that satisfies the communication requirements between the mobile phone 100 and the computer 200, such as a service message block (Server Message Block, SMB) protocol, a network file system (Network File System, NFS) protocol, and the like.
The mobile phone operating system is a basic operating system of the mobile phone 100, and is used for taking charge of all system processing of the mobile phone 100, and may also provide a User Interface (UI) related to the mobile phone 100. The mobile phone operating system may be, for example, magic UI Android R The system.
It should be noted that, the mobile phone application, the collaboration service application, the mobile phone file management service, the mobile phone local file system and the communication service may be located at an application layer of the mobile phone 100, and the mobile phone operating system may be located at a system layer of the mobile phone 100, which may be all set at other layers of the mobile phone 100 as required.
With continued reference to fig. 5A, in this implementation, the computer 200 includes a computer operating system, a communication service, a collaboration service application, a virtual machine Manager (i.e., virtual machine Manager), a virtual machine File management service (i.e., virtual machine File Space), a computer File system, and a virtual machine operating system. Wherein:
the computer operating system is the basic operating system of the computer 200 and is responsible for all system processing of the computer 200.
The communication service is used for realizing communication connection between the mobile phone 100 and the computer 200, is responsible for cooperative data communication stream transmission between the mobile phone 100 and the computer 200, and the newly added file transmission protocol can realize file transmission (also referred to as data transmission) between the mobile phone 100 and a running virtual machine application on a virtual machine operating system running in the computer 200. The communication service may be, for example, the direct connection service described above, and the file transfer protocol may be, for example, any communication protocol that satisfies the communication requirements between the mobile phone 100 and the computer 200, such as the SMB protocol and the NFS protocol described above.
The collaborative service application is software for implementing collaborative management between the computer 200 and the mobile phone 100, and is responsible for processing collaborative policies, business control, hardware control, equipment authentication and the like between the computer 200 and the mobile phone 100. In addition, the collaboration service application may also implement file sharing policy (also referred to as file mount policy) control between the computer 200 and the cell phone 100. The collaborative service application may be, for example, "Phone Service App" as previously described.
The virtual machine manager is responsible for management such as starting of the virtual machine operating system. For example, the system can comprise a virtual machine platform and a virtual machine monitoring platform, wherein the virtual machine platform is responsible for the starting management of a virtual machine operating system, and the virtual machine monitoring platform is responsible for the processing such as the monitoring of the processing performance of the virtual machine platform.
The virtual machine file management service is used for realizing file access management between the virtual machine operating system and the computer file system.
The computer File system includes a computer File storage area (PC File Space) (as an example of a first storage Space) and a virtual machine File storage area (WSA File Space) (as an example of a second storage Space), wherein the computer File storage area is used to store local files corresponding to the computer system, including, for example, computer system files, and application files corresponding to a computer application running in the computer system, etc., and the application files may be, for example, any type of files such as document files (for example, doc documents), picture files, video files, movie (Movie) files, etc. In addition, the computer file storage area may be a file storage area corresponding to a new technology file system (New Technology File System, NTFS). The virtual machine file storage area is used for storing local files corresponding to a virtual machine operating system, and for example, includes a virtual machine operating system file, an application file corresponding to a virtual machine application running on the virtual machine operating system, and the application file may be any type of file, such as a document file (for example, doc document), a picture file, a video file, a Movie (Movie) file, and the like. And storing the file identification of the file shared by the handset 100. In addition, the file storage area of the virtual machine is a file storage area corresponding to VFS (virtual File System), and the local file corresponding to the operating system of the virtual machine is generally stored in the storage space corresponding to the operating system of the computer by storing an image file on the computer 200 side.
The virtual machine operating system may be, for example, microsoft An Zhuozi system (Windows Subsystem for Android, WSA), or simply referred to as An Zhuozi system (Android Subsystem), which provides a hardware device for running a virtual mobile phone device for a virtual machine running environment in a computer operating system. Specifically, virtual machine applications, a side-load file system (SideMountFiles system (FS)) and android file management services may be included. Wherein:
the virtual machine application is an android application running in the virtual machine operating system, and may be, for example, a third-party android application (3 rd Android APP). The virtual machine application may be the same as the mobile phone application described above, or may be different.
The side file system (removed-FS) is a newly added file system in the virtual machine operating system, and is a file system which is added in addition to the file system of the virtual machine operating system itself and is responsible for synchronizing the management of the files synchronized by the mobile phone 100, that is, the computer 200 can map the file identifier of the shared file of the mobile phone 100 to the side file directory corresponding to the side file system (as an example of the shared directory corresponding to the virtual machine operating system, that is, as an example of the first directory), so as to provide the file identifier of the shared file of the mobile phone 100 for the virtual machine application in the virtual machine operating system. The side-loading directory is a directory corresponding to the operating system of the virtual machine, and may be, for example, an "\sdcard\SideMountFS\".
Specifically, as shown by the solid line with the arrow in fig. 5A, the local file system in the mobile phone 100 may store the file identifier of the foregoing "\sdcard\date\myfiles\directory corresponding to the file in the mobile phone 100 under the" D \vmware\date\sidmount fs\directory in the virtual machine storage area in the computer file system, that is, the "D \vmware\date\sidmount fs\directory used for mapping the file identifier shared by the mobile phone 100, through the mobile phone file management service, the communication service and the collaboration service application in the computer 200 in sequence. And the computer file system maps the file identification under the 'D \Vmware\date\SideMountFS\directory to the corresponding' sdcard\SideMountFS\directory of the side-loading file system. The virtual machine application can access the information under the "\sdcard\sidamountfs\directory, so that the virtual machine application can access the file identifier of the shared file of the mobile phone 100.
For example, as shown in fig. 5B, according to the user's operation of the virtual machine application (which may also be referred to as an Android application) "social application 1" running on top of the virtual machine operating system (which may also be referred to as within the virtual machine environment) in the computer 200, the computer 200 may display a "picture and video" display interface as shown in fig. 5B, which includes a thumbnail of a picture file in the mobile phone 100 (i.e., a mobile phone photo taken by the mobile phone 100), so that the user views and manipulates the picture file in the mobile phone 100 on the computer 200. That is, a virtual machine application running on top of the virtual machine operating system of the computer 200 may access the picture files in the cell phone 100.
Referring to fig. 5C, it should be noted that the picture file in the mobile phone 100 may be a file under the "\sdcard\date\myfiles\directory corresponding to the Magic FS in the mobile phone 100, or may be a file under the" \sdcard\pictures\directory, for example. In addition, as shown in FIG. 5C, where social application 1 is running in a virtual machine operating system (e.g., an android virtual machine operating system) in computer 200. And, the file system corresponding to the computer operating system of the computer 200 may be the aforementioned NTFS, where the NTFS includes a directory such as "C: \date".
The Android file management service is a file management service in a virtual machine operating system, and may be, for example, an Android Open Source Project (AOSP) file management service (AOSP FileManager) based on an Android Open Source Project. And the newly added interface is in butt joint with the side-load file system, so that the virtual machine application can read the files corresponding to the side-load catalogue corresponding to the side-load file system.
It should be noted that the communication service, the collaboration service application, the virtual machine manager, the virtual machine file management service, the computer file system and the virtual machine operating system may be located at an application layer of the computer 200, and the computer operating system may be located at a system layer of the computer 200, which may be all located at other layers of the computer 200 as required.
In addition, in another implementation of the present application, the computer 200 may also share the file identifier of some directory corresponding files corresponding to the operating system of the virtual machine to the mobile phone 100. And the mobile phone 100 maps the file identifier shared by the computer 200 to the shared directory in the mobile phone 100. For example, the computer 200 may store the application file corresponding to the virtual machine application in the aforementioned side-load file system, that is, under the side-load directory (as an example of the fourth directory), and share the file identifier of the file corresponding to the side-load directory to the mobile phone 100. The mobile phone application may access information in the shared directory, and the shared directory in the mobile phone 100 may be, for example, the foregoing \sdcard\date\myfiles\frompc directory (as an example of the sixth directory). Thus, the mobile phone application can access the file identification of the file corresponding to the virtual machine operating system shared by the computer 200. The implementation process is similar to the process of accessing the files in the mobile phone 100 by the virtual machine application in the computer 200, or may be considered as contrary, and will not be described here.
The process of implementing file sharing between the mobile phone 100 and the virtual machine operating system between the mobile phone 100 and the computer 200 after the mobile phone 100 and the computer 200 are connected by establishing file sharing communication with each other will be described below with reference to some display interface diagrams of the mobile phone 100 and the computer 200.
In one implementation of the present application, the mobile phone 100 may share the file identifiers of the files corresponding to some directories in the mobile phone 100 to the shared directory corresponding to the virtual machine operating system in the computer 200, so as to be used for accessing the virtual machine application running in the virtual machine operating system.
The following describes a process of a user operating the social application 1 running on the virtual machine operating system of the computer 200 to access a picture file shared by the mobile phone 100.
Referring to fig. 6A, the computer 200 displays a display interface of the social application 1 (as an example of the first application), and if the computer 200 receives a click operation of an "add" control included in the display interface by a user, the computer 200 displays the display interface shown in fig. 6B (as an example of the first interface). The display interface includes thumbnails of a plurality of picture files (which may also include a plurality of video files or other files) (as one example of a first file identification). As shown in fig. 6C, if the computer 200 receives a click operation of the thumbnail M by the user and a click operation of the "release" control by the user (as an example of a trigger operation), the computer 200 determines that a picture file corresponding to the thumbnail M needs to be acquired and determines path information of the thumbnail M (as an example of the first path information). If the computer 200 determines that the thumbnail M is stored in the aforementioned side-loading directory (as an example of the first directory) according to the path information, the computer 200 determines that the picture file corresponding to the thumbnail M is a file shared by the mobile phone 100 to the virtual machine operating system, and the computer 200 sends a file acquisition request to the mobile phone 100 to acquire the picture file corresponding to the thumbnail M from the mobile phone 100. After the computer 200 obtains the picture file corresponding to the thumbnail M, the picture file is released (i.e., the subsequent processing is performed), and the display interface shown in fig. 6D is displayed.
In this implementation manner, the computer 200 may display the thumbnail corresponding to the file shared by the mobile phone 100 to the virtual machine operating system for the user to view and operate, and may further obtain the file corresponding to the thumbnail from the mobile phone 100 to issue and other processes according to the need, so as to satisfy the use requirement of the user for more files in the process of using the virtual machine application corresponding to the virtual machine operating system in the computer 200, and effectively improve the user experience.
In other embodiments of the present application, if the computer 200 receives the clicking operation of the "add" control shown in fig. 6A, the computer 200 may also display a display interface as shown in fig. 6E, where the display interface includes two directories, i.e. a "from computer" and a "from mobile phone 100", where the "from mobile phone 100" directory is a side-loading directory in the computer 200, and the "from computer" directory is a local file directory of the computer 200, i.e. the computer 200 may display the corresponding file directory according to the source classification of the file, so that the user views the corresponding file. For example, as shown in fig. 6E, if the computer 200 receives a click operation from the "from mobile phone 100" directory by the user, the computer 200 may display a display interface (as another example of the first interface) as shown in fig. 6F. The display interface includes thumbnail images of files shared by the mobile phone 100 to the side-load directory so that the user can select files to be released. If the computer 200 receives a selection operation of a thumbnail from a user and a click operation of a release control from a user, the computer 200 obtains a file corresponding to the thumbnail from the mobile phone 100. In addition, if the computer 200 receives the clicking operation of the user on the "from computer" directory, the computer 200 can display the file corresponding to the virtual machine operating system in the computer 200, so that the user can check and perform the corresponding operation.
In another implementation of the present application, the computer 200 may share files corresponding to some directories in the computer 200 under a shared directory in the mobile phone 100 for user access of the mobile phone 100.
For example, referring to fig. 7A, if the computer 200 receives a long press operation of the user on the video file displayed by the social application 1, the computer 200 displays a "save" control, and if the computer 200 further receives a click operation of the user on the "save" control, the computer 200 saves the video file and saves the video file under the aforementioned side-loading directory by default (i.e. saves the video file to the local, and stores the video file in a storage space corresponding to the virtual machine operating system in the computer 200). And the computer 200 can share the file identification of the file corresponding to the side-loading directory under the sharing directory in the mobile phone 100, so that the user of the mobile phone 100 can view and operate the video file in the mobile phone 100.
In another implementation of the present application, if the computer 200 receives a long press operation of the video file displayed by the social application 1 by the user, the computer 200 may also display a display interface as shown in fig. 7B, where the display interface includes two directories, namely, a "local directory" and a "side-load directory". If the computer 200 receives the user selection operation of the "side-load directory" and the user click operation of the "save" control, the computer 200 saves the video file to the side-load directory. And the computer 200 shares the identification of the video file to the shared directory in the mobile phone 100, so that the user of the mobile phone 100 can view and operate the video file in the mobile phone 100. If the computer 200 receives the selection operation of the user on the "local directory" and the click operation of the user on the "save" control, the computer 200 saves the video file under the local directory corresponding to the virtual machine operating system, and does not need to share the identifier of the video file to the mobile phone 100.
The following will describe a process of operating the social application 2 in the mobile phone 100 by the user and accessing a file corresponding to the virtual machine operating system shared by the computer 200.
For example, referring to fig. 8A, if the user uses the social application 2 (as an example of the second application) installed in the mobile phone 100 to chat with the small a, and the mobile phone 100 receives the click operation of the "add" control shown in fig. 8A by the user, the mobile phone 100 displays a display interface (as an example of the second interface) shown in fig. 8B. The display interface includes thumbnails of a plurality of video files and picture files (as an example of the second file identification), and the thumbnail includes a thumbnail N corresponding to a video file stored by the user when using the social application 1 running in the virtual machine operating system. As shown in fig. 8C, if the mobile phone 100 receives a click operation of the user on the thumbnail N and a click operation of the user on the "send" control (as an example of a trigger operation), the mobile phone 100 determines that a video file corresponding to the thumbnail N needs to be acquired and determines path information of the thumbnail N (as an example of fourth path information). If the mobile phone 100 determines that the thumbnail N is stored in the shared directory (for example "\sdcard\date\myfiles\from pc\") of the mobile phone 100 according to the path information, the mobile phone 100 determines that the video file corresponding to the thumbnail N is a file that the computer 200 shares to the mobile phone 100, and the mobile phone 100 sends a file acquisition request to the computer 200 to acquire the video file corresponding to the thumbnail N from the computer 200. After the mobile phone 100 acquires the video file, the video file is sent to the cell a (i.e., the subsequent processing is performed), and a display interface as shown in fig. 8D is displayed.
In this implementation manner, the mobile phone 100 may display the thumbnail of the file corresponding to the virtual machine operating system shared by the computer 200, so as to be used for the user to view and operate, and may further obtain the file corresponding to the thumbnail from the computer 200 to issue and other corresponding processes according to the need, so as to satisfy the access requirement of the user to the file corresponding to the virtual machine operating system in the process of using the mobile phone 100, satisfy the requirement of the user to access more files, and effectively improve the user experience.
In other embodiments of the present application, after receiving the click operation of the "add" control shown in fig. 8A, the mobile phone 100 may also display a display interface shown in fig. 8E, where the display interface includes two directories, i.e. "from computer 200" and "from mobile phone". The "from computer 200" directory is a shared directory in the mobile phone 100, and is used for mapping files corresponding to the side-loading directory shared by the computer 200 (i.e. files corresponding to the virtual machine operating system), and the "from mobile phone" directory is a local file directory of the mobile phone 100, i.e. the mobile phone 100 can display different directories according to the sources of the files, so that the user can view the corresponding files. In addition, if the mobile phone 100 receives the click operation of the user on the "from computer 200" directory, the mobile phone 100 displays a display interface (as another example of the second interface) as shown in fig. 8F, that is, displays a thumbnail of the side-load directory corresponding file shared by the computer 200. If the mobile phone 100 receives the selection operation of the user on a certain thumbnail, it determines that the user needs to send a certain file corresponding to the side-loading directory to the small a, and obtains the file corresponding to the thumbnail from the computer 200. In addition, if the mobile phone 100 receives the click operation of the user on the "from mobile phone" directory, the mobile phone 100 may display the local file directory of the mobile phone 100, so that the user can view and perform the corresponding operation.
In other embodiments of the present application, since the files in the mobile phone 100 and the files corresponding to the virtual machine operating system are shared between the mobile phone 100 and the computer 200, in the scenario where the user views the files using the mobile phone 100, the file identifier of the files shared by the computer 200 can be viewed, and in the scenario where the user searches the files through the mobile phone 100, the file identifier of the local files in the mobile phone 100 matching the search keyword and the file identifier of the files corresponding to the virtual machine operating system shared by the computer 200 can be viewed through the mobile phone 100. And/or, in a scenario where the user uses the computer 200 to view the file, the user may view the file identifier of the file shared by the mobile phone 100, and in a scenario where the user searches the file through the computer 200, the user may search the file identifier of the local file in the computer 200 (including the local file corresponding to the computer operating system and the local file corresponding to the virtual machine operating system) that matches the search keyword, and the file identifier of the file shared by the mobile phone 100.
As shown in fig. 9A, the computer 200 may display a corresponding file management interface (as an example of the first file search interface) according to a user operation, and the user may input a search keyword in a search box included in the file management interface, and if the computer 200 further receives a click operation of the user on the "download" directory and the "search file" control, the computer 200 searches for a file corresponding to the search keyword under the "download" directory, and displays the interface as shown in fig. 9B, it may be seen that a file matching the search keyword "Readme" (as an example of the first search keyword) under the "download" directory includes file identifications "Readme-in web" and "Readme-in shadess" from a file local to the computer 200, and file identifications "Readme-in paper top" and "Readme-in paper top" from a file shared by the mobile phone 100.
That is, the computer 200 may provide a document retrieval portal for searching documents in the computer 200 and the mobile phone 100 according to search keywords input by a user. In this manner, a multi-device file search function across the computer 200 (i.e., windows device) may be implemented.
In addition, as shown in fig. 10A, the user can see the "computer 200" directory in the file management interface (as an example of the second file search interface) corresponding to the mobile phone 100, and the "computer 200 directory" stores the file identifier of the file corresponding to the virtual machine operating system shared by the computer 200, that is, the user can view the file corresponding to the virtual machine operating system shared by the computer 200 by clicking the "computer 200 directory".
In addition, as shown in fig. 10A, if the user inputs a search keyword in a search box corresponding to a file management service of the mobile phone 100, and if the mobile phone 100 receives a click operation of the user on the "search" control, the mobile phone 100 searches for a file corresponding to the search keyword, and displays a display interface as shown in fig. 10B, it can be seen that a file matching the search keyword "Readme" (as an example of a second search keyword) includes file identifications "Readme-in paper top" and the like from local files of the mobile phone 100, and file identifications "Readme-in web" and "Readme-in shadypass" and the like from files corresponding to a virtual machine operating system shared by the computer 200.
That is, the mobile phone 100 may provide a document retrieval portal to search for documents in the computer 200 and the mobile phone 100 according to search keywords input by a user. In this manner, a multi-device file search function across the handset 100 (i.e., windows device) may be implemented.
It should be noted that, the search keyword may be file directory information, or may be content information of a file, which may be selected and set as needed.
It should be noted that, in some implementations of the present application, referring to fig. 11, the mobile phone 100 may include multiple file directories such as SdCard, pictures, sdCard, documents, sdCard, downloads, etc. as shown in fig. 11, and the computer 200 may include multiple file directories such as C: \ MyDocuments, D: \data, D: \photo, D: \Workspace, etc. corresponding to a computer operating system, and multiple file directories such as \imgfs\graphics, \imgfs\downloads, etc. corresponding to a virtual machine operating system. The directory in the mobile phone 100, the directory corresponding to the computer operating system in the computer 200, and the directory corresponding to the virtual machine operating system can be set according to the selection of the user.
In addition, as shown in fig. 11, the file system corresponding to the computer operating system may be a new technology file system (New Technology File System, NTFS), and the file system corresponding to the android virtual machine operating system may be a VFS (virtual File System) file system. The file system in the handset 100 may be, for example, a Magic FS.
The process of establishing a file sharing communication connection between the mobile phone 100 and the computer 200 will be described.
Referring to fig. 12, the process of establishing file sharing communication between the mobile phone 100 and the computer 200 includes the following steps:
s101, the mobile phone 100 performs device discovery, if the computer 200 is found within the preset distance range, it is determined that a file sharing communication connection needs to be established with the computer 200, and a file transmission channel (as an example of a file sharing communication channel) for file sharing with the virtual machine operating system running on the computer 200 needs to be established. The collaborative service application in the mobile phone 100 sends a request for establishing a file sharing communication connection to establish a file sharing communication connection to the direct connection service in the mobile phone 100, so as to establish the file sharing communication connection with the computer 200, and simultaneously requests to establish a file transmission channel for sharing files with the virtual machine operating system.
It should be noted that, in this implementation manner, the mobile phone 100 establishes a communication connection with the computer 200 and establishes a file transmission channel for file sharing, or establishes a basic communication connection with the computer 200 first and then establishes a file transmission channel for file sharing, which can be selected and set as required.
S102, the direct connection service in the mobile phone 100 sends a request for establishing file sharing communication connection to the direct connection service in the computer 200.
S103, the direct connection service in the computer 200 forwards the file sharing communication connection establishment request to the collaborative service application in the computer 200.
S104, after receiving the request for establishing the file sharing communication connection, the collaborative service application in the computer 200 determines that file sharing between the virtual machine operating system of the computer 200 and the mobile phone 100 needs to be established according to the request for establishing the file sharing communication connection, and generates a request for querying a file storage location of the virtual machine, and sends the request for querying the file storage location of the virtual machine to a virtual machine manager in the computer 200.
S105, after receiving the virtual machine file inquiry request, the virtual machine manager forwards the virtual machine file storage position inquiry request to the virtual machine file management service in the computer 200 to request to inquire the virtual machine file storage position.
S106, the virtual machine file management service forwards the inquiry request of the virtual machine file storage position to the computer file system so as to request to inquire the virtual machine file storage position.
S107, the computer file system determines the storage position of the virtual machine file according to the inquiry request of the storage position of the virtual machine file.
S108, the computer file system reports (can also be called as sending) the storage position of the virtual machine file to the virtual machine file system.
The storage position of the virtual machine file can be, for example, a 'D: \Vmware\date' catalog, namely, the virtual machine file is stored in the 'D: \Vmware\date' catalog corresponding to the computer operating system.
S109, the virtual machine file system reports the virtual machine file storage position to the virtual machine manager.
S110, the virtual machine manager calculates the configuration of the side-loading file system corresponding to the virtual machine operating system.
Specifically, the virtual machine manager may determine configuration information such as the size of the side-loading file system according to the memory size of the computer operating system, the memory size of the virtual machine operating system, the memory size of the mobile phone 100, and the like.
S111, after the virtual machine manager completes configuration calculation of the side-load file system corresponding to the virtual machine operating system, a configuration instruction for creating the side-load file system is sent to the virtual machine file management service, and the configuration instruction comprises configuration information of the side-load file system.
S112, the virtual machine file management service sends the configuration instruction to the computer file system so that the computer file system creates a side-load file system, and the virtual machine file management service executes step S114.
S113, after the computer file system receives the configuration instruction, a side-loading file system is created in the virtual machine file system according to the configuration instruction.
The storage directory (i.e. storage position) of the created side-loading file system in the virtual machine file storage space corresponding to the virtual machine operating system may be, for example, a "D: \vmware\date\SideMountFS\directory", i.e. the computer 200 stores the shared file corresponding to the virtual machine operating system under the "D: \vmware\date\SideMountFS\directory".
After the creation of the side file system is completed, the notification information of the completion of the creation of the side file system may be sent to the virtual machine file management service.
S114, the virtual machine file management service sends a catalog creation instruction for creating the side-loading catalog to the android file management service, wherein the catalog creation instruction can comprise information of the catalog to be created. For example, the directory to be created is "\sdcard\sidamountfs\directory.
S115, the android file management service receives the catalog creation instruction and creates a side-loading catalog. The created side-load directory may be, for example, a "\sdcard\sidamountfs\directory.
S116, the android file management service sends notification information of completion of creation of the side-load directory to the virtual machine file management service to notify completion of creation of the side-load directory (which may also be referred to as side-load file partition creation completion).
S117, the virtual machine file management service transmits notification information of completion of creation of the side-load directory to the virtual machine manager to notify completion of creation of the side-load directory.
It should be noted that, the virtual machine file management service may record the correspondence between the foregoing "D: \vmware\date\sidemountfs\directory and" \sdcard\sidemountfs\directory, and carry the directory information "D: \vmware\date\sidemountfs\in the notification information of completion of creation of the side-loaded directory, so as to notify the mobile phone 100 that the directory in which the computer 200 performs sharing is" D: \vmware\date\sidemountfs\ ".
S118, after receiving the notification information of the completion of the creation of the side-load catalog, the virtual machine manager determines that the creation of the side-load catalog is completed, and sends the notification information of the completion of the creation of the side-load catalog to the collaborative service application to notify the completion of the creation of the side-load catalog.
S119, the collaboration service application sends notification information of completion of creation of the side-load catalog to the direct connection service to notify completion of creation of the side-load catalog.
S120, the direct connection service sends notification information of the completion of the creation of the side-load catalog to the direct connection service in the mobile phone 100 to notify the completion of the creation of the side-load catalog.
S121, the direct connection service in the mobile phone 100 sends notification information of completion of creation of the side-load directory to the collaborative service application to notify completion of creation of the side-load directory.
S122, after receiving the notification information of the completion of the creation of the side-load directory, the collaboration service application sends a request for searching the directory allowed to be shared by the mobile phone 100 to the mobile phone file management service.
S123, the mobile phone file management service determines the directory which the mobile phone 100 allows sharing, and returns the mobile phone file directory which the mobile phone 100 allows sharing to the collaborative service application. The mobile phone 100 allows the shared mobile phone file directory to be, for example, "\sdcard\date\myfiles\directory.
S124, the collaboration service application prepares a local file directory and creates a file transfer service. The file transfer service may be, for example, the aforementioned SMB, NFS, or the like.
S125, the collaboration service application sends an instruction for setting directory sharing configuration to the mobile phone file management service.
S126, the mobile phone file management service forwards the instruction for setting the directory sharing configuration to a mobile phone local file system.
S127, the local file system of the mobile phone sets directory sharing configuration according to the instruction of setting directory sharing configuration.
Setting the directory sharing configuration includes setting the user name of the user allowed to access the mobile phone sharing directory, and the access authority and other information.
And S128, the mobile phone local file system sends notification information of the completion of the directory sharing configuration setting to the mobile phone file management service.
In addition, the local file system of the mobile phone can store the corresponding relation between the 'sdcard\date\Myfiles\directory and the' D \vmware\date\SideMountFS\directory, namely the local file system of the mobile phone can determine that the mobile phone 100 shares the file corresponding to the 'sdcard\date\Myfiles\directory' in the computer 200, and the file is specifically mapped under the 'D \vmware\date\SideMountFS\directory' in the computer 200.
S129, the mobile phone file management service forwards notification information of the completion of directory sharing configuration to the collaborative service application, and the mobile phone file management service stores the corresponding relation between the mobile phone directory "\sdBoard\date\Myfiles\and the computer sharing directory": \Vware\date\SideMountFS\ ".
And S130, the collaborative service application determines that the directory sharing configuration is completed according to the notification information of the completion of the directory sharing configuration setting, and sends file transfer protocol authentication information to the direct connection service.
The file transfer protocol authentication information includes the user name, access authority, directory location, transfer protocol, key information, etc. of the user allowed to access the directory shared by the mobile phone.
S131, the direct connection service sends the authentication information of the file transfer protocol to the direct connection service in the computer 200.
S132, the direct connection service in the computer 200 sends the file transmission service authentication information to the collaborative service application.
And S133, the collaborative service application completes the authentication of the file transmission service according to the authentication information of the file transmission service.
Thus, the file synchronization mapping between the shared directory "\sdBoard\date\Myfiles\in the mobile phone 100 and the directory" D: \vmware\date\SideMountFS\ "in the computer 200 is completed.
S134, the collaboration service application sends a notification instruction to the virtual machine manager to enable the virtual machine manager to notify the virtual machine file management service to write the corresponding relation between the ' sdcard\date\Myfiles\directory in the mobile phone 100 and the ' D: \vmware\date\SideMountFS\in the computer 200 into a file management information table in the virtual machine file management service, and enable the computer operating system to complete the second authentication between ' D: \vmware\date\SideMountFS\and the ' side-loaded directory corresponding to the virtual machine operation '.
S135, the virtual machine manager forwards the notification instruction to the virtual machine file management service.
S136, the virtual machine file management service forwards the notification instruction to the computer file system, and the virtual machine file management service writes the corresponding relation between the ' sdcard\date\Myfiles\catalog ' in the mobile phone 100 and the ' D: \vmware\date\SideMountFS\in the computer 200 into a file management information table in the virtual machine file management service.
S137, the computer file system completes the second re-authentication between the 'D \Vmware\date\SideMountFS\side-loaded directory corresponding to the operation of the virtual machine', 'sdBoard\SideMountFS\' of the computer 200. And the computer file system stores the correspondence between "D \vmware\date\sidamountfs\and the side-load directory" \sdcard\sidamountfs\ "in the computer 200, the second re-authentication may refer to a process of determining whether the creation was successful or not.
Thus, the synchronous channel authentication is established between the catalog "\sdBoard\SideMountFS\" in the virtual machine operating system and the side-load file partition "D: \Vmware\date\SideMountFS\" on the computer 200, namely, the file synchronous mapping between the catalog "\sdBoard\SideMountFS\" in the virtual machine operating system and the side-load file partition "D: \Vmware\date\SideMountFS\" on the computer 200 is completed.
In this implementation, the mobile phone 100 and the computer 200 establish a file sharing communication connection, i.e. establish a file sharing communication channel. The mobile phone 100 may map files included in some directories in the mobile phone 100 to side-load directories corresponding to the virtual machine operating system in the computer 200 through a file transmission channel (i.e., a file sharing communication channel). Thus, file sharing between the mobile phone 100 and the computer 200 can be realized. The user can access the shared file of the mobile phone 100 in the computer 200. Therefore, the user can view and operate more files, and user experience can be effectively improved.
In another implementation of the present application, the computer 200 may map files included in some directories of the operating system of the virtual machine to the shared directory in the mobile phone 100 through a file transmission channel (i.e. a file sharing communication channel), so as to realize sharing of directory files corresponding to the mobile phone directory and the side-loading directory between the mobile phone 100 and the computer 200. The user can view the files corresponding to the side-loading catalogue in the mobile phone 100, that is, the user can view and operate more files, so that the user experience can be effectively improved.
The process of accessing files shared by the mobile phone 100 by a user operating the social application 1 running on the virtual machine operating system of the computer 200 on the computer 200 will be described. Referring to fig. 13, the process includes the steps of:
s201, the user operates the social application 1 (as an example of a virtual machine application) running on top of the virtual machine operating system to post the personal status, and as shown in the foregoing fig. 6C, the user selects the thumbnail M (as an example of the first file identification). The social application 1 receives a click operation of the thumbnail M by a user and a click operation of a "release" control by a user (as an example of a trigger operation), determines that a picture file corresponding to the thumbnail M needs to be acquired, and determines that path information of the thumbnail M is "\sdcard\sidamountfs\photo. The social application 1 determines that the thumbnail M is stored in the side-loading directory "\sdcard\sidmount fs\" (as an example of the first directory) according to the path information (as an example of the first path information) of the thumbnail M, and determines that the picture file corresponding to the thumbnail M is a file shared by the mobile phone 100, and needs to read the real storage location of the thumbnail M in the computer 200, that is, the storage location of the thumbnail M in the aforementioned virtual machine file storage area.
It should be noted that, the foregoing operations of receiving the click operation of the thumbnail M by the user and the click operation of the "publish" control by the user may be understood as the operations of receiving the file selected by the user from the virtual machine side file partition "i.e. the side-load directory".
S202, the social application 1 sends a file reading request for reading the side-load directory file (i.e., thumbnail M) to the android file management service.
S203, the android file management sends the file reading request to the virtual machine file management service to read the side-load directory file (i.e., thumbnail M).
S204, the virtual machine file management service sends a file reading request to the computer file system to read the real position of the side-loading directory file (i.e. the thumbnail M) in the computer 200.
S205, after the computer file system receives the file reading request, the real position of the side-loaded directory file (i.e. the thumbnail M) in the computer 200 is determined according to the corresponding relation of the path information "\sdBoard\SideMountFS\photo. Img" of the thumbnail M, and the side-loaded directory "\sdBoard\SideMountFS\and the computer sharing directory" D: \Vmware\date\SideMountFS\ "(as an example of a second directory). I.e., the true location (i.e., path information) of the side-loaded directory file (i.e., thumbnail image M) in the computer 200 can be determined to be "D: \vmware\date\sidmount fs\photo. Img" (as an example of second path information).
Further, the computer file system may determine that the location information (i.e., path information) of the side-loaded directory file (i.e., thumbnail M) in the mobile phone 100 is "\sdcard\date\myfiles\photo. Img" (as an example of the third path information) according to the correspondence between the "D \vmware\date\siderfs\photo. Img" and the "D \vmware\sidfs" directory and the "\sdcard\date\myfiles\directory (as an example of the third directory).
S206, the computer file system sends a file acquisition request to the direct connection service to request to acquire the network location of the file corresponding to the side-loading directory file (i.e. the thumbnail M), i.e. acquire the source file of the side-loading directory file (i.e. the thumbnail M) in the mobile phone 100.
At this time, it can be understood that the network location of the corresponding file is acquired from the mobile phone file management service as the file sharing service.
The file acquisition request includes network path information of the side-load directory file, which may be, for example, "Smb://192.168.50.129 \vmware\date\sidamountfs\photo. Img" (as an example of the first network path information). Wherein' Smb://192.168.50.129 \is the network location information of the mobile phone 100, "\sdBoard\date\photo. Img" is the path information of the side-loaded directory file (i.e. thumbnail image M) in the mobile phone 100.
S207, the direct connection service sends the file acquisition request to the direct connection service in the mobile phone 100. At this time, it can be understood that the network location of the corresponding file is acquired from the mobile phone file management service as the file sharing service.
S208, the direct connection service in the mobile phone 100 forwards the file acquisition request to the mobile phone file management service. At this time, it can be understood that the network location of the corresponding file is acquired from the mobile phone file management service as the file sharing service.
S209, the mobile phone file management service forwards the file acquisition request to a mobile phone local file system.
S210, the mobile phone local file system determines that the real path information of the side-load directory file (i.e. the thumbnail M) on the mobile phone 100 is "\sdBoard\date\Myfiles\photo. Img" according to the file acquisition request.
S211, the mobile phone local file management system sends the real path information (namely the real position of the file on the mobile phone) to the mobile phone file management service.
S212, the mobile phone file management service determines a picture file corresponding to the side-loading directory file (i.e. the thumbnail M) according to the real path information, and sends the picture file to the direct-connection service.
S213, the direct connection service sends the picture file to the direct connection service in the computer 200 based on the file transfer protocol.
S214, the direct connection service in the computer 200 sends the picture file to the computer file system.
S215, the computer file system sends the picture file to the android file management service.
S216, the android file management service sends the picture file to the social application 1.
That is, through steps S215 and S216, the computer 200 may send the picture file to the file system corresponding to the virtual machine operating system based on the local file reading of the computer 100, so that the social application 1 obtains the picture file based on the file reading corresponding to the virtual machine operating system.
S217, the social application 1 publishes the picture file, and a display interface shown in FIG. 6D can be displayed.
Thus, when the user operates the social application 1 corresponding to the virtual machine operating system on the computer 200, the user can view and operate the file shared by the mobile phone 100, and user experience can be effectively improved.
It should be noted that, in other embodiments of the present application, the first directory, the second directory, and the third directory may be any one or more of other directories, which may be selected and set according to needs.
The following will describe a process of saving an application file by a user operating the social application 1 corresponding to the virtual machine operation in the computer 200. Referring to fig. 14, the process includes the steps of:
S301, a user uses a social application 1 running in a virtual machine operating system, as shown in FIG. 7A, if the social application 1 receives an operation of saving a video file by the user, the social application 1 determines that the video file needs to be saved.
S302, the social application 1 sends an instruction for storing the video file to the android file management service, so that the android file management service stores the video file under a side-loading directory according to the instruction, and path information of the video file corresponding to the side-loading directory can be "\sdcard\date\SideMountFS\video.mp4", for example. That is, the video file is first saved by the social application 1 in the virtual machine operating system to the local side-loading file system (i.e., side-loading directory "\sdcard\sidamountfs\") corresponding to the virtual machine operating system.
S303, the android file management service stores the video file under the side-loading directory and stores the video file into a virtual machine file storage area in a computer file system of the computer 200. Specifically, the path information of the video file in the virtual machine file storage area is "\vmware\date\sidamountfs\video. Thus, the content of the local side file system (i.e., side file directory "\sdBoard\SideMountFS\") corresponding to the virtual machine operating system is consistent with the side file directory "D: \Vware\date\SideMountFS\at the computer 200 end.
It should be noted that, since the computer 200 shares the files included in the side-loading directory to the mobile phone 100 in real time or according to a preset period, the user can view the file identifier of the video file in the mobile phone 100.
A process of a user operating the social application 2 installed in the mobile phone 100 and accessing a file corresponding to the virtual machine operating system shared by the computer 200 will be described. With continued reference to fig. 14, the process includes the steps of:
s401, the user operates the mobile phone 100 to display a display interface shown in fig. 8B, where the display interface includes a thumbnail N corresponding to a video file, and the user can select the video file to be transmitted through the display interface. If the social application 2 receives the click operation of the user on the thumbnail N (i.e. receives the selection operation of the user on the thumbnail N) and the click operation of the "send" control, the mobile phone 100 determines that the video file corresponding to the thumbnail N needs to be acquired, and determines the path information of the thumbnail N. The path information of the thumbnail image N may be "\sdcard\date\myfiles\from pc\video.mp4" (as an example of the fourth path information).
S402, the social application 2 sends a file reading request for reading the video file corresponding to the thumbnail N to the mobile phone file management service.
S403, the mobile phone file management system determines that the file corresponding to the thumbnail N is the file shared by the computer 200 according to the file reading request, and determines the network position of the file corresponding to the thumbnail N.
Specifically, the mobile phone file management system may determine that the thumbnail N is stored under "\sdcard\date\myfiles\from pc\" according to the path information of the thumbnail N, and determine that the file corresponding to the thumbnail N is the file shared by the computer 200. Moreover, the mobile phone file management system may determine that the path information of the file corresponding to the thumbnail N in the computer 200 is "vmware\date\sidunitfs\video.mp4" (as an example of fifth path information) according to the path information of the thumbnail N and the preset correspondence between the directory "\sdcard\myfiles" (as an example of sixth directory) in the mobile phone 100 and the directory "\vmware\date\sideunfs\as an example of fifth directory in the computer 200. In addition, the mobile phone file management system determines that the network location information of the computer 200 is 'Smb:// 192.168.50.128'. The handset file management system may determine that the network path information of the file corresponding to the thumbnail N is "Smb://192.168.50.128 \vmware\date\sidamountfs\video.mp4" (as an example of the second network path information).
It should be noted that, actually stored in the "\vmware\date\sidamountfs\directory is a file corresponding to the" \sdcard\sidamountfs\directory (as an example of the fourth directory) corresponding to the operating system of the virtual machine.
S404, the mobile phone file management service sends a network file reading request for reading the network file to the direct connection service. The request includes the network path information "Smb://192.168.50.128 \vmware\date\sidamountfs\video.mp4" of the file corresponding to thumbnail N.
S405, the direct connection service sends the network file reading request to the direct connection service in the computer 200 to read the network file.
S406, the direct connection service in the computer 200 sends the network file reading request to the computer file system to request to read the real storage position of the file corresponding to the network address in the computer 200, namely, to read the file directory in the computer 200.
S407, the computer file system receives the network file reading request and determines the video file corresponding to the network address according to the network file reading request.
Specifically, the computer 200 obtains the corresponding file from the file storage area of the virtual machine as the video file corresponding to the thumbnail N according to the path information "vmware\date\sidemountfs\video.
S408, the computer file system transmits (i.e. sends) the video file to the direct connection service.
S409, the direct connection service transmits the video file to the direct connection service in the mobile phone 100 based on the file transfer protocol.
S410, the direct connection service in the mobile phone 100 transmits the video file to the mobile phone local file system.
S411, the local file system of the mobile phone transmits the video file to the social application 2.
S412, the social application 2 sends the video file to the peer device (i.e., small a).
Thus, when the user operates the social application 2 on the mobile phone 100, the user can view and operate the file corresponding to the social application 2 shared by the computer 200, so that the user experience can be effectively improved.
It should be noted that, in other embodiments of the present application, the fourth directory, the fifth directory, and the sixth directory may be any one or more other directories, which may be selected and set as needed.
It should be noted that, in the implementation manner of the present application, the mobile phone 100 may share files included in some directories of the mobile phone 100 to the virtual machine operating system in the computer 200, so as to realize unidirectional sharing from the files in the mobile phone 100 to the virtual machine operating system. Or the computer 200 may share files corresponding to some directories corresponding to the virtual machine operating system to the mobile phone 100, so as to realize unidirectional sharing between the files corresponding to the virtual machine operating system and the mobile phone 100. Of course, the mobile phone 100 and the computer 200 can also realize file sharing in both directions, that is, the mobile phone 100 can share files included in some directories in the mobile phone 100 to the virtual machine operating system in the computer 200, and the computer 200 can share files corresponding to some directories corresponding to the virtual machine operating system to the mobile phone 100. In the scenario where the mobile phone 100 and the virtual machine operating system share files in both directions, the mobile phone 100 and the virtual machine operating system may determine the directory that shares, and determine the directory that maps the files shared by the other party, respectively.
In other implementations of the present application, the bidirectional sharing of files between the mobile phone 100 and the virtual machine operating system may be implemented by the mobile phone 100 sharing the file identifier of the "sdcard\date\myfiles\directory corresponding to the file in the mobile phone 100 to the" D \vmware\date\sideuntfs\from directory in the computer 200, and then the computer 200 maps the file identifier of the "D \vmware\date\sideuntfs\from directory to the" sdcard\sideuntfs\directory. The computer 200 shares the file identifier of the local file corresponding to the "\sdBoard\SideMountFS\directory" in the virtual machine operating system in the computer 200 to the "D: \vmware\date\SideMountFS\FromVM\directory in the computer 200, and the computer 200 shares the file identifier under the" D: \vmware\date\SideMountFS\FromVM\directory to the "sdBoard\date\Myfiles\FromPC" directory in the mobile phone 100.
In addition, there is a problem that the virtual machine operating system in the computer 200 cannot access the file corresponding to the computer operating system in the computer 200.
In another implementation manner of the present application, a file sharing method is further provided, where the file sharing method includes that the computer 200 may further share a file corresponding to a computer operating system to a virtual machine operating system, and when the computer 200 receives the clicking operation of the user on the "add" control, the shared directory corresponding to the computer operating system and the virtual machine operating system corresponding directory may be displayed in a classified manner. For example, as shown in FIG. 15, computer 200 may also display a "computer operating system files" directory and a "virtual machine operating system files" directory under a "from computer" directory. If the computer 200 receives the clicking operation of the user on the directory of the "computer operating system file", the computer 200 can display the file identifier of the file corresponding to the computer operating system shared by the computer operating system; if the computer 200 receives the clicking operation of the user on the "virtual machine operating system file" directory, the computer 200 may display the file identifier of the file corresponding to the virtual machine operating system file, so that the user can view the corresponding file.
If the computer 200 receives the operation of obtaining the file corresponding to a certain file identifier from the user, and determines that the file corresponding to the file identifier is a file shared by the computer operating system to the virtual machine operating system, the file corresponding to the file identifier is obtained from the computer file storage area corresponding to the computer operating system, and the subsequent processing is performed on the file corresponding to the file identifier. If the file corresponding to the file identifier is determined to be a local file corresponding to the virtual machine operating system, the file corresponding to the file identifier is obtained from a virtual machine file storage area corresponding to the virtual machine operating system, and subsequent processing is carried out on the file corresponding to the file identifier.
The directory of the computer operating system file and the directory of the virtual machine operating system file can be selected and set according to the requirement. For example, the "computer operating system files" directory may be a "\sdcard\SideMountFS\FrompC" directory, and the "virtual machine operating system files" directory may be a "\sdcard\SideMountFS\PCVM" directory. Of course, it may be set as any other directory as desired.
In addition, when the computer 200 displays the file management interface, the "computer operating system file" directory and the "virtual machine operating system file" directory may be displayed separately, or may not be displayed separately, and may be selected and set as required.
In addition, there is a problem that the mobile phone 100 cannot access the files corresponding to the computer operating system in the computer 200.
In other embodiments of the present application, a file sharing method is further provided, where the file sharing method includes that the computer 200 can also share files corresponding to the operating system of the computer to the mobile phone 100. Then, referring to fig. 16, after receiving the click operation of the "add" control by the user, the mobile phone 100 may further display a display interface as shown in fig. 16, that is, the "from computer 200" directory may further include a "computer operating system file" directory and a "virtual machine operating system file" directory. If the mobile phone 100 receives the clicking operation of the user on the "computer operating system file" directory, the mobile phone 100 can display the file identifier of the file corresponding to the computer operating system shared by the computer 200. If the computer 200 receives the clicking operation of the user on the "virtual machine operating system file" directory, the computer 200 may display the file identifier of the file corresponding to the virtual machine operating system file shared by the computer 200. And if the computer 200 determines that the user needs to issue the file corresponding to the file identifier, the file corresponding to the file identifier is obtained from the corresponding computer file storage space or the virtual machine file storage space.
For example, if the mobile phone 100 receives the operation of obtaining the file corresponding to the certain file identifier from the user, and if it is determined that the file corresponding to the file identifier is the file corresponding to the computer operating system shared by the computer 200, the file corresponding to the file identifier is obtained from the computer file storage area corresponding to the computer operating system of the computer 200, and the subsequent processing is performed on the file corresponding to the file identifier. If the file corresponding to the file identifier is determined to be the local file of the mobile phone 100, the file corresponding to the file identifier is obtained from the mobile phone file storage area, and subsequent processing is performed on the file corresponding to the file identifier.
The path information of the file identification of the file corresponding to the directory of the 'computer operating system file' and the directory of the 'virtual machine operating system file' can be selected and set according to the requirement. For example, the "computer operating system files" directory may be an "sdcard\date\myfiles\frompc" directory, and the "virtual machine operating system files" directory may be an "sdcard\date\myfiles\frompvm" directory. Of course, it may be set as any other directory as desired.
In addition, when the mobile phone 100 displays the file management interface, the "computer operating system file" directory and the "virtual machine operating system file" directory may be displayed separately, or may not be displayed separately, and may be selected and set as required.
The file sharing method provided by the implementation manner of the application can realize the file intercommunication between the virtual machine operating system (also called as virtual machine equipment, which is usually without Modem) in the computer 200 and the mobile phone 100. The method can solve the problem that the user experience is affected because the virtual machine operating system is completely isolated from files between the computer 200 and the mobile phone 100 in the prior art. For example, in the file search scenario, the mobile phone 100 and the computer 200 may implement global search or read files in three locations (or referred to as devices) that are files corresponding to the operating system of the virtual machine, files corresponding to the operating system of the computer, and files corresponding to the mobile phone 100. The file sharing method provided by the implementation mode of the application can effectively improve the user experience.
It should be noted that, the virtual machine operating system may be run on top of the computer operating system, or may be run on top of the computer operating system directly, or may be run on top of the computer operating system in other manners, which may be selected and set as required.
The foregoing computer 200 is an example of a first electronic device, the computer operating system is an example of a first operating system, the virtual machine operating system is an example of a second operating system, the virtual machine application is an example of a first application, the mobile phone 100 is an example of a second electronic device, and the mobile phone application is an example of a second application.
In addition, a virtual machine operating system refers to a technology that provides a virtual operating system running environment within a host operating system (e.g., a computer operating system), thereby implementing running other operating system software within the host operating system.
In other implementations of the application, the cell phone 100 may also be a wearable device other than a cell phone (e.g., including a smart watch, smart bracelet, pedometer, etc.), a large screen device, an electronic whiteboard, a gaming machine, a personal digital assistant, a portable media player, a vehicle-mounted device, a navigation device, a video game device, a set-top box, a virtual reality and/or augmented reality device, an internet of things device, an industrial control device, a streaming client device, an electronic book, a reading device, a POS machine, and other devices.
In other embodiments of the present application, the computer 200 may be a tablet computer, a notebook computer, a palm computer, or other electronic devices such as other internet of things devices.
In addition, in other embodiments of the present application, the computer 200 may establish a file sharing communication connection with a plurality of electronic devices such as mobile phones, so as to implement file sharing between the plurality of devices. And, the computer 200 can access the files in the electronic devices according to the user operation, and search the devices establishing the file sharing communication connection and the files in the computer 200 according to the search keywords input by the user. The electronic device may establish a close range communication connection with the computer 200 and thus may be referred to as a near field device.
In other embodiments of the present application, the first operating system may also be windows R Other than operating systems, e.g. androidd R 、Linux R 、LiteOS R And the second operating system can also be Android R Other than operating systems, e.g. IOS R 、MAC R 、Windows R 、LiteOS R Any operating system such as a game machine simulator, etc., and the mobile phone 100 may be operated by the same operating system as the second operating system in the computer 200 or by a different operating system; in addition, the first application and the second application may be other applications than the social application, and the first interface and the second interface may be any other interfaces; the names and numbers of the directories for file sharing may be other names or numbers, which may be selected and set according to the needs.
For example, in apples R In the PC+MacOS+IOS virtual machine scene, a user downloads a picture from a mobile phone and can directly read the picture in an IOS program on MacBook. In Microsoft Windows R In the scene of the game machine, liteos and android virtual machine, a user downloads a picture from a mobile phone, and the picture can be obtained in Microsoft R Android in gaming machine R The program is read directly. In a PC+AndroidoS+gaming machine simulator scenario. The user downloads a game archive from the cell phone and can directly load the archive into the game machine simulator of the PC to play the game.
Further possible configurations of the electronic device provided by the implementation of the present application are described below.
Referring to fig. 17, fig. 17 is a schematic structural diagram of an electronic device 900 according to an implementation of the present application. The electronic device 900 may include one or more processors 901 coupled to a controller hub 904. For at least one embodiment, the controller hub 904 communicates with the processor 901 via a multi-drop Bus, such as a Front Side Bus (FSB), a point-to-point interface, such as a fast path interconnect (QuickPath Interconnect, QPI), or similar connection. The processor 901 executes instructions that control the general type of data processing operations. In one embodiment, the controller hub 904 includes, but is not limited to, a graphics memory controller hub (Graphics Memory controller hub, GMCH) (not shown) and an input/output hub (IOH) (which may be on separate chips) (not shown), where the GMCH includes memory and graphics controllers and is coupled to the IOH.
Electronic device 900 may also include a coprocessor 906 and memory 902 coupled to controller hub 904. Alternatively, one or both of the memory 902 and GMCH may be integrated within the processor 901 (as described herein), with the memory 902 and co-processor 906 being directly coupled to the processor 901 and the controller hub 904, the controller hub 904 being in a single chip with the IOH.
The memory 902 may be, for example, dynamic random access memory (Dynamic Random Access Memory, DRAM), phase change memory (Phase Change Memory, PCM), or a combination of both.
In one embodiment, coprocessor 906 is a special-purpose processor, such as, for example, a high-throughput many-core (Many Integrated Core, MIC) processor, network or communication processor, compression engine, graphics processor, general-purpose graphics processor (General Purpose Graphics Processing Units, GPGPU), embedded processor, or the like. Optional properties of coprocessor 906 are shown in fig. 17 with dashed lines.
In one embodiment, the electronic device 900 may further include a network interface (Network Interface Card, NIC) 903. The network interface 903 may include a transceiver to provide a radio interface for the electronic device 900 to communicate with any other suitable device (e.g., front end module, antenna, etc.). In various embodiments, the network interface 903 may be integrated with other components of the electronic device 900. The network interface 903 may implement the functions of the communication units in the above-described embodiments.
The electronic device 900 may further include an input/output (I/O) device 905. Input/output (I/O) devices 905 may include: a user interface, the design enabling a user to interact with the electronic device 900; the design of the peripheral component interface enables the peripheral component to also interact with the electronic device 900; and/or sensors are designed to determine environmental conditions and/or path information associated with the electronic device 900.
It is noted that fig. 17 is merely exemplary. That is, although fig. 17 shows that the electronic apparatus 900 includes a plurality of devices such as a processor 901, a controller hub 904, and a memory 902, in practical applications, an apparatus using the methods of the present application may include only a part of the devices of the electronic apparatus 900, for example, may include only the processor 901 and the NIC903. The nature of the alternative device is shown in dashed lines in fig. 17.
One or more tangible, non-transitory computer-readable media for storing data and/or instructions may be included in the memory of the electronic device 900. The computer-readable storage medium has stored therein instructions, and in particular, temporary and permanent copies of the instructions.
In the present application, the electronic device 900 may be a terminal device such as a mobile phone, a tablet computer, a personal digital assistant (Personal Digital Assistant, PDA) or a desktop computer. The instructions stored in the memory of the electronic device may include: instructions that, when executed by at least one unit in the processor, cause the electronic device to implement the file sharing method as previously mentioned.
Referring to fig. 18, fig. 18 is a schematic structural diagram of an SoC (System on Chip) 1000 according to an implementation of the present application. In fig. 18, similar parts have the same reference numerals. In addition, the dashed box is an optional feature of the more advanced SoC 1000. The SoC1000 may be used in any electronic device according to the present application, and may implement corresponding functions according to the device in which it is located and the instructions stored therein.
In fig. 18, the SoC1000 includes: an interconnect unit 1002 coupled to the processor 1001; a system agent unit 1006; a bus controller unit 1005; an integrated memory controller unit 1003; a set or one or more coprocessors 1007 which may include integrated graphics logic, image processors, audio processors, and video processors; a Static Random-Access Memory (SRAM) unit 1008; direct memory access (Direct Memory Access, DMA) unit 1004. In one embodiment, coprocessor 1007 includes a special-purpose processor, such as, for example, a network or communication processor, compression engine, GPGPU, high-throughput MIC processor, embedded processor, or the like.
One or more computer-readable media for storing data and/or instructions may be included in the SRAM cell 1008. The computer-readable storage medium may have stored therein instructions, and in particular, temporary and permanent copies of the instructions. The instructions may include: instructions that when executed by at least one unit in the processor 1001 cause the electronic device to implement the file sharing method as previously mentioned.
It should be noted that the terms "first," "second," and the like are used merely to distinguish between descriptions and should not be construed as indicating or implying relative importance.
It should be noted that in the drawings, some structural or method features may be shown in a specific arrangement and/or order. However, it should be understood that such a particular arrangement and/or ordering may not be required. Rather, in some embodiments, these features may be arranged in a different manner and/or order than shown in the illustrative figures. Additionally, the inclusion of structural or methodological features in a particular figure is not meant to imply that such features are required in all embodiments, and in some embodiments, may not be included or may be combined with other features.
While the application has been shown and described with respect to certain implementations thereof, it will be apparent to those of ordinary skill in the art that the foregoing is a further detailed description of the application in connection with the specific implementations, and it is not intended to limit the practice of the application to those descriptions. Various changes in form and detail may be made therein by those skilled in the art, including a few simple inferences or alternatives, without departing from the spirit and scope of the present application.

Claims (21)

1. A file sharing method, applied to a first electronic device, where the first electronic device includes a first operating system, a second operating system is running on the first operating system, and a first application is running on the second operating system, the method includes:
displaying a first interface of the first application, wherein the first interface comprises a first file identifier;
receiving triggering operation of a user for the first file identifier, wherein the triggering operation is operation of acquiring a file corresponding to the first file identifier;
and responding to the triggering operation, determining first path information corresponding to the first file identifier, wherein the first path information is path information of the first file identifier under a directory corresponding to the second operating system, if the first path information is determined that the first file identifier is stored under the first directory corresponding to the second operating system, determining that the file corresponding to the first file identifier is a file shared by the second electronic device to the second operating system, acquiring the file corresponding to the first file identifier from the second electronic device, and performing subsequent processing on the file corresponding to the first file identifier, wherein the second electronic device is an electronic device connected with the first electronic device based on a file sharing communication channel, and the first directory is a directory of the file identifier shared by the second electronic device mapped by the second operating system.
2. The file sharing method according to claim 1, wherein obtaining the file corresponding to the first file identifier from the second electronic device includes:
determining second path information corresponding to the first path information according to the first path information and a preset corresponding relation between the first directory and a second directory, wherein the second directory is a directory corresponding to the first operating system and used for mapping file identifiers corresponding to the first directory, and the second path information is path information of the first file identifiers under the second directory;
determining third path information corresponding to the second path information according to the second path information and a preset corresponding relation between the second directory and a third directory, wherein the third directory is a directory in the second electronic equipment, and the third path information is path information of a file corresponding to the first file identifier under the third directory;
and sending the third path information to the second electronic device, so that the second electronic device determines that the file corresponding to the third path information is the file corresponding to the first file identifier according to the third path information, and sends the file corresponding to the first file identifier to the first electronic device.
3. The file sharing method of claim 2, wherein transmitting the third path information to the second electronic device comprises:
generating first network path information according to the third path information, wherein the first network path information comprises the third path information and network position information of the second electronic equipment;
and sending the first network path information to the second electronic equipment.
4. A method of sharing files according to any of claims 1-3, wherein interfacing with the second electronic device based on a file sharing communication channel comprises:
receiving a file identifier of a file corresponding to a third directory in the second electronic device, which is shared by the second electronic device, mapping the file identifier of the file corresponding to the third directory to a second directory corresponding to the first operating system, and mapping the file identifier corresponding to the second directory to a first directory corresponding to the second operating system.
5. The file sharing method of claim 4, wherein connecting with the second electronic device is based on a file sharing communication channel, further comprising:
Mapping the file corresponding to the fourth directory corresponding to the second operating system to a fifth directory corresponding to the first operating system, and sharing the file identification of the file corresponding to the fifth directory to the second electronic device, so that the second electronic device maps the file identification of the file corresponding to the fifth directory to a sixth directory.
6. A file sharing method according to any of claims 1-3, wherein the method further comprises:
displaying a first file search interface;
receiving a first search keyword input by a user through the first file search interface;
receiving search operation of a user;
responding to the searching operation, searching files corresponding to the first searching keyword in a first storage space and a second storage space according to the first searching keyword, wherein the first storage space is used for storing local files corresponding to the first operating system, the second storage space is used for storing local files corresponding to the second operating system, and the second electronic equipment shares file identifiers for the second operating system;
displaying the file identification of the searched file.
7. A method of sharing files according to any of claims 1-3, wherein the file is identified as a soft link or thumbnail of the file.
8. A file sharing method according to any of claims 1-3, wherein the method further comprises:
and responding to the triggering operation, determining that the file corresponding to the first file identifier is a file shared by the first operating system of the first electronic equipment to the second operating system, acquiring the file corresponding to the first file identifier from a first storage space corresponding to the first operating system, and carrying out subsequent processing on the file corresponding to the first file identifier.
9. A method for sharing files, applied to a second electronic device, where a second application runs, the method comprising:
displaying a second interface of the second application, wherein the second interface comprises a second file identifier;
receiving triggering operation of a user for the second file identifier, wherein the triggering operation is operation of acquiring a file corresponding to the second file identifier;
and in response to the triggering operation, determining fourth path information corresponding to the second file identifier, wherein the fourth path information is path information of the second file identifier in the second electronic device, if the second file identifier is determined to be stored under a sixth directory according to the fourth path information, determining that the file corresponding to the second file identifier is a file corresponding to a second operating system operated in the first electronic device shared by the first electronic device, acquiring the file corresponding to the second file identifier from the first electronic device, and performing subsequent processing on the file corresponding to the second file identifier, wherein the first electronic device is an electronic device connected with the second electronic device based on a file sharing communication channel, and comprises a first operating system, the second operating system is operated on the first operating system, and the sixth directory maps the directory corresponding to the second operating system shared by the first electronic device for the second electronic device.
10. The file sharing method according to claim 9, wherein obtaining, from the first electronic device, a file corresponding to the second file identifier, includes:
determining fifth path information corresponding to the fourth path information according to the fourth path information and a preset corresponding relation between the sixth directory and a fifth directory, wherein the fifth directory is a directory corresponding to the first operating system and used for mapping a fourth directory corresponding file corresponding to the second operating system, and the fifth path information is path information of a file corresponding to the second file identifier under the fifth directory;
and sending the fifth path information to the first electronic device, so that the first electronic device determines that the file corresponding to the fifth path information is the file corresponding to the second file identifier according to the fifth path information, and sends the file corresponding to the second file identifier to the second electronic device.
11. The file sharing method of claim 10, wherein transmitting the fifth path information to the first electronic device comprises:
generating second network path information according to the fifth path information, wherein the second network path information comprises the fifth path information and network position information of the first electronic equipment;
And sending the second network path information to the first electronic equipment.
12. The file sharing method according to any one of claims 9 to 11, characterized by connecting with the first electronic device based on a file sharing communication channel, comprising:
and receiving the file identification of the file corresponding to the fifth directory and corresponding to the first operating system shared by the first electronic equipment, and mapping the file identification of the file corresponding to the fifth directory to a sixth directory.
13. The file sharing method of claim 12, wherein connecting with the first electronic device is based on a file sharing communication channel, further comprising:
and sharing the file identification of the file corresponding to the third directory to the first electronic equipment, so that the first electronic equipment maps the file identification of the file corresponding to the third directory to the second directory corresponding to the first operating system, and maps the file identification corresponding to the second directory corresponding to the first operating system to the first directory corresponding to the second operating system.
14. The file sharing method according to any one of claims 9 to 11, characterized in that the method further comprises:
Displaying a second file search interface;
receiving a second search keyword input by a user through the second file search interface;
receiving search operation of a user;
responding to the searching operation, searching files corresponding to the second searching keywords in a storage space of the second electronic equipment according to the second searching keywords, wherein the storage space of the second electronic equipment is used for storing local files of the second electronic equipment and file identifications shared by the first electronic equipment;
displaying the file identification of the searched file.
15. The method of any of claims 9-11, wherein the file is identified as a soft link or a thumbnail of the file.
16. The file sharing method according to any one of claims 9 to 11, characterized in that the method further comprises:
and responding to the triggering operation, determining that the file corresponding to the second file identifier is the file corresponding to the first operating system shared by the first electronic equipment, acquiring the file corresponding to the second file identifier from a first storage space corresponding to the first operating system of the first electronic equipment, and carrying out subsequent processing on the file corresponding to the second file identifier.
17. The file sharing method is characterized by being applied to a communication system comprising a first electronic device and a second electronic device, wherein the first electronic device comprises a first operating system, a second operating system is operated on the first operating system, a first application is operated on the second operating system, a second application is operated in the second electronic device, and the first electronic device and the second electronic device are connected based on a file sharing communication channel, and the method comprises the following steps:
the first electronic device displays a first interface of the first application, the first interface comprises a first file identifier, a triggering operation of a user for the first file identifier is received, first path information corresponding to the first file identifier is determined in response to the triggering operation, the first path information is path information of the first file identifier under a directory corresponding to the second operating system, if the first path information is determined that the first file identifier is stored under a first directory corresponding to the second operating system, the file corresponding to the first file identifier is determined to be a file shared by the second electronic device to the second operating system, the file corresponding to the first file identifier is acquired from the second electronic device, subsequent processing is performed on the file corresponding to the first file identifier, the triggering operation is an operation of acquiring the file corresponding to the first file identifier, and the first directory is a directory of the file identifier shared by the second electronic device;
The second electronic device displays a second interface of the second application, the second interface comprises a second file identifier, a triggering operation of a user for the second file identifier is received, the triggering operation is responded, the file corresponding to the second file identifier is determined to be the file corresponding to the second operating system shared by the first electronic device, the file corresponding to the second file identifier is obtained from the first electronic device, the subsequent processing is carried out on the file corresponding to the second file identifier, and the triggering operation is the operation of obtaining the file corresponding to the second file identifier.
18. The file sharing method of claim 17, wherein the first electronic device and the second electronic device are connected based on a file sharing communication channel, comprising:
the second electronic equipment shares the file identification of the file corresponding to the third directory in the second electronic equipment to the first electronic equipment;
the first electronic device maps the file identifier of the file corresponding to the third directory to a second directory corresponding to the first operating system, and maps the file identifier corresponding to the second directory corresponding to the first operating system to a first directory corresponding to the second operating system;
The first electronic device maps the files corresponding to the fourth catalogue corresponding to the second operating system in the first electronic device to the fifth catalogue in the second electronic device, and shares the file identifiers of the files corresponding to the fifth catalogue to the second electronic device;
and the second electronic equipment maps the file identification of the file corresponding to the fifth directory to a sixth directory.
19. A communication system is characterized by comprising a first electronic device and a second electronic device, wherein the first electronic device comprises a first operating system, a second operating system is operated on the first operating system, a first application is operated on the second operating system, a second application is operated in the second electronic device, the first electronic device and the second electronic device are connected based on a file sharing communication channel,
the first electronic device is configured to display a first interface of the first application, where the first interface includes a first file identifier, receive a trigger operation of a user on the first file identifier, respond to the trigger operation, determine first path information corresponding to the first file identifier, where the first path information is path information of the first file identifier under a directory corresponding to the second operating system, and if the first path information is determined that the first file identifier is stored under a first directory corresponding to the second operating system, determine that the file corresponding to the first file identifier is a file shared by the second electronic device to the second operating system, obtain the file corresponding to the first file identifier from the second electronic device, and implement subsequent processing on the file corresponding to the first file identifier, where the trigger operation is an operation of obtaining the file corresponding to the first file identifier, and the first directory is a directory mapped by the second operating system to the file identifier shared by the second electronic device;
The second electronic device is configured to display a second interface of the second application, where the second interface includes a second file identifier, receive a triggering operation of a user on the second file identifier, determine, in response to the triggering operation, that a file corresponding to the second file identifier is a file corresponding to the second operating system shared by the first electronic device, obtain, from the first electronic device, a file corresponding to the second file identifier, and perform subsequent processing on the file corresponding to the second file identifier, where the triggering operation is an operation of obtaining the file corresponding to the second file identifier.
20. An electronic device, comprising:
a memory for storing a computer program, the computer program comprising program instructions;
a processor for executing the program instructions to cause the electronic device to perform the file sharing method of any one of claims 1-8 or to cause the electronic device to perform the file sharing method of any one of claims 9-16.
21. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program comprising program instructions that are executed by an electronic device to cause the electronic device to perform the file sharing method of any one of claims 1-8 or to cause the electronic device to perform the file sharing method of any one of claims 9-16.
CN202210071978.1A 2022-01-21 2022-01-21 File sharing method, communication system and electronic equipment Active CN114374690B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210071978.1A CN114374690B (en) 2022-01-21 2022-01-21 File sharing method, communication system and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210071978.1A CN114374690B (en) 2022-01-21 2022-01-21 File sharing method, communication system and electronic equipment

Publications (2)

Publication Number Publication Date
CN114374690A CN114374690A (en) 2022-04-19
CN114374690B true CN114374690B (en) 2023-10-31

Family

ID=81146664

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210071978.1A Active CN114374690B (en) 2022-01-21 2022-01-21 File sharing method, communication system and electronic equipment

Country Status (1)

Country Link
CN (1) CN114374690B (en)

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1513065A1 (en) * 2003-09-04 2005-03-09 Hitachi, Ltd. File system and file transfer method between file sharing devices
CN1609858A (en) * 2003-10-24 2005-04-27 微软公司 System and method for file sharing in peer-to-peer group shared spaces
CN101141470A (en) * 2006-09-05 2008-03-12 腾讯科技(深圳)有限公司 Resource sharing method and system
CN103491193A (en) * 2013-09-30 2014-01-01 华为技术有限公司 Method and device for sharing file
CN105052104A (en) * 2013-12-02 2015-11-11 华为技术有限公司 File processing method, device, and system
CN106170804A (en) * 2013-11-11 2016-11-30 亚马逊技术有限公司 Document management and cooperative system
CN106998329A (en) * 2017-03-31 2017-08-01 腾讯科技(深圳)有限公司 File sharing method and device
CN107077483A (en) * 2014-09-23 2017-08-18 亚马逊技术股份有限公司 The synchronization of Shared Folders and file
CN108268609A (en) * 2017-12-29 2018-07-10 新浪网技术(中国)有限公司 A kind of foundation of file path, access method and device
CN109144657A (en) * 2017-06-14 2019-01-04 中兴通讯股份有限公司 A kind of method and apparatus of the file-sharing of spanning operation system platform
CN110765078A (en) * 2019-12-27 2020-02-07 武汉慧联无限科技有限公司 File management method and device and computer readable storage medium
WO2021052147A1 (en) * 2019-09-18 2021-03-25 华为技术有限公司 Data transmission method and related devices
CN112714139A (en) * 2019-10-24 2021-04-27 中兴通讯股份有限公司 File sharing system, method, electronic device and storage medium
CN113254409A (en) * 2020-02-12 2021-08-13 华为技术有限公司 File sharing method, system and related equipment
CN113672576A (en) * 2020-05-15 2021-11-19 华为技术有限公司 File sharing method and terminal equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4641496B2 (en) * 2005-12-09 2011-03-02 富士通株式会社 File sharing system, file sharing method, and file sharing program
US10210048B2 (en) * 2016-10-25 2019-02-19 Commvault Systems, Inc. Selective snapshot and backup copy operations for individual virtual machines in a shared storage
WO2019071872A1 (en) * 2017-10-09 2019-04-18 华为技术有限公司 File sharing method and terminal

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1513065A1 (en) * 2003-09-04 2005-03-09 Hitachi, Ltd. File system and file transfer method between file sharing devices
CN1609858A (en) * 2003-10-24 2005-04-27 微软公司 System and method for file sharing in peer-to-peer group shared spaces
CN101141470A (en) * 2006-09-05 2008-03-12 腾讯科技(深圳)有限公司 Resource sharing method and system
CN103491193A (en) * 2013-09-30 2014-01-01 华为技术有限公司 Method and device for sharing file
CN106170804A (en) * 2013-11-11 2016-11-30 亚马逊技术有限公司 Document management and cooperative system
CN105052104A (en) * 2013-12-02 2015-11-11 华为技术有限公司 File processing method, device, and system
CN107077483A (en) * 2014-09-23 2017-08-18 亚马逊技术股份有限公司 The synchronization of Shared Folders and file
CN106998329A (en) * 2017-03-31 2017-08-01 腾讯科技(深圳)有限公司 File sharing method and device
WO2018177106A1 (en) * 2017-03-31 2018-10-04 腾讯科技(深圳)有限公司 File sharing method and device, and storage medium
CN109144657A (en) * 2017-06-14 2019-01-04 中兴通讯股份有限公司 A kind of method and apparatus of the file-sharing of spanning operation system platform
CN108268609A (en) * 2017-12-29 2018-07-10 新浪网技术(中国)有限公司 A kind of foundation of file path, access method and device
WO2021052147A1 (en) * 2019-09-18 2021-03-25 华为技术有限公司 Data transmission method and related devices
CN112714139A (en) * 2019-10-24 2021-04-27 中兴通讯股份有限公司 File sharing system, method, electronic device and storage medium
CN110765078A (en) * 2019-12-27 2020-02-07 武汉慧联无限科技有限公司 File management method and device and computer readable storage medium
CN113254409A (en) * 2020-02-12 2021-08-13 华为技术有限公司 File sharing method, system and related equipment
CN113672576A (en) * 2020-05-15 2021-11-19 华为技术有限公司 File sharing method and terminal equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
"Distributed files sharing management: A file sharing application using distributed computing concepts";S. Malgaonkar等;《012 IEEE International Conference on Computational Intelligence and Computing Research》;全文 *
面向共享交换的水利混合云存储平台;冯读庆;冯钧;唐志贤;王超;;计算机与现代化(12);全文 *

Also Published As

Publication number Publication date
CN114374690A (en) 2022-04-19

Similar Documents

Publication Publication Date Title
CN108881030B (en) Routing method and device in gray release scene
CN108228894B (en) Method, device and terminal for checking recently used files
CN108717432B (en) Resource query method and device
WO2019061040A1 (en) File management method and device
CN111221845A (en) Cross-device information searching method and terminal device
US11321407B2 (en) Search method, and apparatus
EP4102379A1 (en) Data sharing method, electronic device and system
US20160381291A1 (en) Electronic device and method for controlling display of panorama image
WO2022127661A1 (en) Application sharing method, and electronic device and storage medium
CN110636144A (en) Data downloading method and device
US11323880B2 (en) Method for wireless connection and electronic device therefor
CN111625315A (en) Page display method and device, electronic equipment and storage medium
CN111682983B (en) Interface display method and device, terminal and server
CN110086814B (en) Data acquisition method and device and storage medium
CN114374690B (en) File sharing method, communication system and electronic equipment
CN110597840A (en) Partner relationship establishing method, device, equipment and storage medium based on block chain
CN111726848B (en) Equipment binding method, target starting device, fixed terminal and storage medium
CN111130985A (en) Incidence relation establishing method, device, terminal, server and storage medium
CN115278616A (en) File sharing method and electronic equipment
CN112784201A (en) Webpage display method, device, terminal and storage medium
CN111680039A (en) Storage method, query method, device, equipment and storage medium of order information
US20230418932A1 (en) File access method, communication system, and electronic device
CN111930686B (en) Method and device for storing logs and computer equipment
WO2024022119A1 (en) Data synchronization method, electronic device and system
CN111164983B (en) The interconnection terminal lends local processing capability

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant