File transmission method and device, equipment, storage medium and program product
By providing file transfer controls and selection interfaces in the emulator environment, directly transferring files from the second operating system to the first application, the problem of low file transfer efficiency in the prior art is solved, and more convenient and efficient file transfer is achieved.
Patent Information
- Application Number
- CN202510107345.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-22
- Publication Date
- 2025-05-23
AI Technical Summary
When simulating different operating systems using emulators, file transfer efficiency is low in the prior art, and files need to be transferred manually or via physical connection.
By displaying the file transfer control in the application interface of the first application, displaying the file selection interface in response to the trigger operation, selecting the file stored in the second operating system, and directly transferring the target file to the first application.
It simplifies the file transfer process between different operating systems and improves the convenience and efficiency of file transfer.
Smart Images

Figure CN120034532A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of Internet technology, and in particular to a file transmission method, device, electronic device, computer-readable storage medium and computer program product. Background Art
[0002] In the related art, it is a widely adopted practice to use a mobile simulator to test and run mobile applications in a personal computer (PC) environment. However, to transfer files from a PC to a simulator environment, users need to manually copy files, place the required files in a specific shared folder, or transfer files to the simulator environment through a physical connection such as a universal serial bus (USB); however, such a file transfer method is very time-consuming, resulting in low file transfer efficiency. Summary of the invention
[0003] The embodiments of the present application provide a file transfer method, device, electronic device, computer-readable storage medium and computer program product, which can improve the efficiency of file transfer between operating systems when using a simulator to simulate different operating systems.
[0004] The technical solution of the embodiment of the present application is implemented as follows:
[0005] The present application provides a file transmission method, including:
[0006] Displaying a file transfer control in an application interface of a first application, wherein the first application runs on a first operating system, and the first operating system is simulated by a simulator running in a second operating system;
[0007] In response to a trigger operation on the file transfer control, displaying a file selection interface, wherein the file selection interface is used to select a file stored in the second operating system;
[0008] Based on the file selection interface, in response to a selection instruction for a target file, the target file is transmitted to the first application.
[0009] The present application provides a file transmission device, including:
[0010] A first display module, configured to display a file transfer control in an application interface of a first application, wherein the first application runs on a first operating system, and the first operating system is simulated by a simulator running on a second operating system;
[0011] a second display module, configured to display a file selection interface in response to a trigger operation on the file transfer control, wherein the file selection interface is used to select a file stored in the second operating system;
[0012] The transmission module is used to transmit the target file to the first application based on the file selection interface and in response to a selection instruction for the target file.
[0013] In the above scheme, the first display module is also used to display the application interface in response to an interface display instruction triggered in the first application, and to display a first area in the application interface; wherein the first area is used to record a first file transferred from the second operating system to the first application; and the file transfer control is displayed in the first area.
[0014] In the above scheme, the first display module is also used to display the file information of each first file in the first area in the order of transmission time when the first files transmitted to the first application include multiple first files; wherein the file information includes at least one of the following: the identification of the first file, the method for obtaining the first file, the transmission time of the first file, the file type of the first file and the size of the first file.
[0015] In the above scheme, the first display module is also used to display a viewing entrance of the target file in the first area, and the viewing entrance is used to locate the storage location of the target file; in response to a trigger operation on the viewing entrance, a first folder storing the target file is opened based on the storage location, and the target file is displayed in the first folder.
[0016] In the above scheme, the simulator runs on the second application, and the first display module is also used to display the virtual disk entry of the second application in the first area; in response to a trigger operation on the virtual disk entry, the file viewing page of the virtual disk is displayed, and the files stored in the virtual disk are displayed in the file viewing page, and the files stored in the virtual disk include the target file.
[0017] In the above scheme, the first display module is also used to display the first file in the first area using a target style when the first file transferred to the first application is deleted in the first operating system; wherein the target style is used to indicate that the first file has been deleted.
[0018] In the above scheme, the device also includes a third display module, which is used to display a second area in the application interface, and the second area is used to record the second file sent by the third application to the first application; wherein the third application and the first application run on different electronic devices, and the second file is stored in the first operating system; in the second area, a download control for the second file is displayed, and the download control is used to download the second file from the first operating system to the second operating system.
[0019] In the above scheme, the device also includes a fourth display module, which is used to display at least one candidate file and a determination control in an inactivated state in the file selection interface, wherein the at least one candidate file includes the target file; in response to a selection operation on the target file, the target file is controlled to be in a selected state, and the determination control is controlled to switch from the inactivated state to the activated state; in response to a trigger operation on the determination control in the activated state, a selection instruction for the target file is received.
[0020] In the above scheme, the application interface is used to transfer files of the target type, and the transmission module is also used to respond to a selection instruction for the target file, and when the type of the target file is consistent with the target type, transfer the target file to the first application; when the type of the target file is inconsistent with the target type, display a prompt message; wherein the prompt message is used to prompt the file type that can be transferred to the first application.
[0021] In the above scheme, the device also includes a fifth display module, which is used to display an animation of the target file being transferred from the second operating system to the first application when the file size of the target file reaches a file size threshold during the process of transferring the target file to the first application, wherein the animation includes the transfer progress of the target file.
[0022] In the above scheme, the fifth display module is also used to minimize the display window in response to a minimize instruction for the display window of the first application; display the display interface of the second operating system, and display the transmission progress of the target file in the display interface through a floating window.
[0023] In the above scheme, the device also includes a sixth display module, which is used to display at least one operation control for the target file during the process of transferring the target file to the first application; wherein the operation control includes at least one of a pause control and a termination control, the pause control is used to pause the transmission process of the target file, and the termination control is used to terminate the transmission process of the target file; in response to a trigger operation on a target operation control among the at least one operation control, the operation indicated by the target operation control is performed on the transmission process of the target file.
[0024] In the above scheme, the device also includes a seventh display module, and the seventh display module is used to display the file selection interface in response to a display instruction for the file selection interface during the process of transferring the target file to the first application; based on the file selection interface, in response to a selection instruction for other files, control the other files to be transmitted to the first application in parallel with the target file.
[0025] In the above scheme, the device further includes an eighth display module, and the eighth display module is used to display the transmission speed of the target file during the transmission of the target file, and the transmission speed is positively correlated with the object level of the triggering object of the selection instruction.
[0026] In the above scheme, the device also includes a ninth display module, which is used to display a third area in the application interface, and the third area is used to record a third file stored in the first operating system; in response to successfully transferring the target file to the first application, the target file is displayed in the third area.
[0027] In the above scheme, a first area is displayed in the application interface, and the first area is used to record the first file transferred from the second operating system to the first application; the device also includes a tenth display module, and the tenth display module is used to display the target file in the first area in response to successfully transferring the target file to the first application; a first delete control and a second delete control are displayed at the associated position of the target file; wherein the first delete control is used to delete the target file in the first area, and the second delete control is used to delete the target file in the first operating system.
[0028] An embodiment of the present application provides an electronic device, including:
[0029] Memory for storing computer executable instructions or computer programs;
[0030] The processor is used to implement the file transfer method provided in the embodiment of the present application when executing the computer executable instructions or computer programs stored in the memory.
[0031] An embodiment of the present application provides a computer-readable storage medium storing computer-executable instructions or a computer program for causing a processor to execute and implement the file transfer method provided in the embodiment of the present application.
[0032] The embodiment of the present application provides a computer program product, which includes computer executable instructions or computer programs, and the computer executable instructions or computer programs are stored in a computer-readable storage medium. The processor of the electronic device reads the computer executable instructions or computer programs from the computer-readable storage medium, and the processor executes the computer executable instructions or computer programs, so that the electronic device executes the file transfer method provided in the embodiment of the present application.
[0033] The embodiments of the present application have the following beneficial effects:
[0034] Through the file transfer control in the application interface of the first application running on the first operating system, the target file is selected from the files stored in the second operating system, so that the target file is directly transferred to the first application; wherein the first operating system is simulated by a simulator running in the second operating system; in this way, when using the simulator to simulate different operating systems, if files are to be transferred between different operating systems, compared with the related art that requires manual file copying operations or file transfer methods through a universal serial bus, through the present application, the target file to be transferred can be selected from the files stored in the second operating system through the file transfer control directly running in the first application of the first operating system, so that the target file is transferred to the first application. In this way, not only the file transfer process between different operating systems is simplified, the convenience of file transfer is improved, but also the file transfer efficiency between operating systems is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 1 is a schematic diagram of the architecture of a file transmission system 100 provided in an embodiment of the present application;
[0036] Figure 2 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0037] Figure 3 It is a flowchart of a file transmission method provided in an embodiment of the present application;
[0038] Figure 4 is a schematic diagram of an application interface and a file transfer control provided in an embodiment of the present application;
[0039] Figure 5 is a schematic diagram of the first area provided in an embodiment of the present application;
[0040] Figure 6 is a schematic diagram of file information of a first file provided in an embodiment of the present application;
[0041] Figure 7 is a schematic diagram of a file selection interface provided in an embodiment of the present application;
[0042] Figure 8 It is a schematic diagram of candidate files and determination controls provided in an embodiment of the present application;
[0043] Fig. 9 is a schematic diagram of a process for determining a state switching of a control provided in an embodiment of the present application;
[0044] Fig.10 is a schematic diagram of a viewing entrance provided in an embodiment of the present application;
[0045] Fig.11 is a schematic diagram of a virtual disk entry provided in an embodiment of the present application;
[0046] Fig.12 is a schematic diagram of a target pattern provided in an embodiment of the present application;
[0047] Fig.13 is a schematic diagram of a minimized control provided in an embodiment of the present application;
[0048] Fig.14 is a schematic diagram of the third region provided in an embodiment of the present application;
[0049] Fig.15 It is a schematic diagram of a picture selection page and a file management sidebar provided in an embodiment of the present application;
[0050] Fig.16 It is a first link diagram of the file transmission method provided in an embodiment of the present application;
[0051] Fig.17 is a second link diagram of the file transmission method provided in an embodiment of the present application;
[0052] Fig.18 is a third link diagram of the file transmission method provided in an embodiment of the present application;
[0053] Fig.19 This is the fourth link diagram of the file transmission method provided in the embodiment of the present application. DETAILED DESCRIPTION
[0054] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of this application.
[0055] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0056] In the following description, the terms "first\second\third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.
[0057] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0058] Before further describing the embodiments of the present application in detail, the nouns and terms involved in the embodiments of the present application are explained. The nouns and terms involved in the embodiments of the present application are subject to the following interpretations.
[0059] 1) In response, it is used to indicate the conditions or states on which the executed operations depend. When the dependent conditions or states are met, one or more operations executed may be in real time or have a set delay. Unless otherwise specified, there is no restriction on the order in which the multiple operations executed are executed.
[0060] 2) Client, also known as the user end, refers to the program corresponding to the server that provides local services to users. Except for some applications that can only run locally, it is generally installed on the terminal and needs to cooperate with the server to run, that is, it requires corresponding servers and service programs in the network to provide corresponding services. In this way, specific communication connections need to be established on the client and server sides to ensure the normal operation of the application, such as virtual scene clients (such as game clients) and video clients.
[0061] 3) Artificial Intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results. In other words, artificial intelligence is a comprehensive technology in computer science that attempts to understand the essence of intelligence and produce a new intelligent machine that can respond in a similar way to human intelligence. Artificial intelligence is to study the design principles and implementation methods of various intelligent machines so that machines have the functions of perception, reasoning and decision-making.
[0062] 4) Simulator, which is software used to simulate mobile phone hardware or PC hardware and operating system. For example, when the simulator is virtual machine software (such as VMware, VirtualBox), the virtual machine software can be used to simulate Windows, Linux or other operating system environments. Or, when the simulator is an Android simulator, the Android simulator can be used to simulate the operating system environment of various Android systems on the PC.
[0063] See also Figure 1 , Figure 1 It is a schematic diagram of the architecture of the file transfer system 100 provided in an embodiment of the present application, a terminal (terminal 400 is shown as an example), and the terminal 400 is connected to the server 200 through a network 300, wherein the network 300 can be a wide area network or a local area network, or a combination of the two, and data transmission is achieved using wireless or wired links.
[0064] The server 200 is used to send display data of the application interface of the first application to the terminal 400;
[0065] Terminal 400 is used to receive display data of an application interface of a first application, and based on the display data, display the application interface of the first application; display a file transfer control in the application interface of the first application, where the first application runs on a first operating system, and the first operating system is simulated by a simulator running in a second operating system; display a file selection interface in response to a trigger operation on the file transfer control, where the file selection interface is used to select a file stored in the second operating system; based on the file selection interface, in response to a selection instruction for a target file, transfer the target file to the first application.
[0066] In this way, when using an emulator to simulate different operating systems, if you want to transfer files between different operating systems, compared to the related art that requires manual file copying or file transfer through a universal serial bus, through the present application, you can directly use the file transfer control in the first application running on the first operating system to select the target file to be transferred from the files stored in the second operating system, and then transfer the target file to the first application. This not only simplifies the file transfer process between different operating systems and improves the convenience of file transfer, but also improves the efficiency of file transfer between operating systems.
[0067] In some embodiments, the server 200 may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content distribution networks (CDN, Content Deliver Network), and big data and artificial intelligence platforms. The terminal 400 may be a smart phone, a tablet computer, a laptop computer, a desktop computer, a set-top box, an intelligent voice interaction device, a smart home appliance, a virtual reality device, a vehicle-mounted terminal, an aircraft, a portable music player, a personal digital assistant, a dedicated messaging device, a portable gaming device, an intelligent speaker, and a smart watch, but is not limited thereto. The terminal and the server may be directly or indirectly connected via wired or wireless communication, which is not limited in the embodiments of the present application.
[0068] Next, an electronic device that implements the file transmission method provided in the embodiment of the present application is described. Figure 2 , Figure 2 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device may be a server or a terminal. Figure 1 Take the terminal shown in as an example, Figure 2 The electronic device shown includes: at least one processor 410, a memory 450, at least one network interface 420 and a user interface 430. The various components in the electronic device are coupled together via a bus system 440. It is understood that the bus system 440 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 440 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the bus system 440 is not shown in FIG. Figure 2 Various buses are labeled as bus system 440 .
[0069] Processor 410 can be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., where the general-purpose processor can be a microprocessor or any conventional processor, etc.
[0070] The user interface 430 includes one or more output devices 431 that enable display of media content, including one or more speakers and / or one or more visual display screens. The user interface 430 also includes one or more input devices 432, including user interface components that facilitate user input, such as a keyboard, mouse, microphone, touch screen display, camera, other input buttons and controls.
[0071] The memory 450 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid-state memory, hard disk drives, optical disk drives, etc. The memory 450 may optionally include one or more storage devices that are physically remote from the processor 410.
[0072] The memory 450 includes a volatile memory or a non-volatile memory, and may also include both volatile and non-volatile memories. The non-volatile memory may be a read-only memory (ROM), and the volatile memory may be a random access memory (RAM). The memory 450 described in the embodiments of the present application is intended to include any suitable type of memory.
[0073] In some embodiments, memory 450 can store data to support various operations, examples of which include programs, modules, and data structures, or a subset or superset thereof, as exemplarily described below.
[0074] Operating system 451, including system programs for processing various basic system services and performing hardware-related tasks, such as a framework layer, a core library layer, a driver layer, etc., for implementing various basic services and processing hardware-based tasks;
[0075] A network communication module 452, used to reach other electronic devices via one or more (wired or wireless) network interfaces 420, exemplary network interfaces 420 include: Bluetooth, Wireless Compatibility Certification (WiFi), and Universal Serial Bus (USB), etc.;
[0076] a presentation module 453 for enabling display of information via one or more output devices 431 (e.g., display screen, speaker, etc.) associated with the user interface 430 (e.g., a user interface for operating peripherals and displaying content and information);
[0077] The input processing module 454 is used to detect one or more user inputs or interactions from one of the one or more input devices 432 and translate the detected inputs or interactions.
[0078] In some embodiments, the device provided in the embodiments of the present application can be implemented in software. Figure 2 The file transmission device 455 stored in the memory 450 is shown, which can be software in the form of a program and a plug-in, etc., and includes the following software modules: a first display module 4551, a second display module 4552 and a transmission module 4553. These modules are logical, and therefore can be arbitrarily combined or further split according to the functions implemented. The functions of each module will be described below.
[0079] In other embodiments, the device provided in the embodiments of the present application can be implemented in hardware. As an example, the file transfer device provided in the embodiments of the present application can be a processor in the form of a hardware decoding processor, which is programmed to execute the file transfer method provided in the embodiments of the present application. For example, the processor in the form of a hardware decoding processor can adopt one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field programmable gate arrays (FPGAs), or other electronic components.
[0080] In some embodiments, the terminal or server can implement the file transfer method provided by the embodiment of the present application by running a computer program. For example, the computer program can be a native program or software module in the operating system; it can be a local (Native) application (APP, Application), that is, a local client, that is, a program that needs to be installed in the operating system to run, such as an instant messaging APP, a web browser APP; it can also be a small program, that is, a program that can be run only by downloading it to a browser environment; it can also be a small program that can be embedded in any APP. In short, the above-mentioned computer program can be any form of client, module or plug-in.
[0081] Based on the above description of the file transmission system and electronic device provided by the embodiment of the present application, the file transmission method provided by the embodiment of the present application is described below. In actual implementation, the file transmission method provided by the embodiment of the present application can be implemented by the terminal or the server alone, or by the terminal and the server in collaboration, so that Figure 1 The terminal 400 in the embodiment of the present application alone executes the file transmission method provided by the embodiment of the present application as an example for explanation. Figure 3 , Figure 3 is a flowchart of a file transmission method provided by an embodiment of the present application. Next, Figure 3 The steps shown are explained.
[0082] Step 101: The terminal displays a file transfer control in an application interface of a first application, where the first application runs on a first operating system, and the first operating system is simulated by a simulator running in a second operating system.
[0083] It should be noted that the simulator is software used to simulate mobile phone hardware or PC hardware and operating system, including PC simulators (such as Limbo PC Emulator, ExaPC, etc.) and mobile simulators (such as Android simulator, etc.), among which the PC simulator is used to simulate the PC system environment (such as Windows, Linux) on the mobile system (such as Android, IOS), and the mobile simulator is used to simulate the mobile system environment on the PC system. For example, when the simulator is a PC simulator, the PC simulator can be used to simulate Windows, Linux or other operating system environments on the mobile terminal (such as the mobile phone), or, when the simulator is an Android simulator, the Android simulator can be used to simulate the operating system environment of various Android systems on the PC. Based on this, when the simulator is a PC simulator, the second operating system can be the Android system or IOS system on the mobile phone, and the first operating system is the Windows system or Linux system simulated on the mobile phone through the simulator; when the simulator is an Android simulator, the second operating system can be the Windows system or Linux system on the PC, and the first operating system is the Android system or IOS system simulated on the PC through the simulator. Here, taking the second operating system as the operating system on the host (PC) as an example, the second operating system can be a Windows system, etc., and the emulator can be an Android emulator, so that the first operating system is the Android system simulated by the Android emulator; therefore, the first application here is an application running on the Android system.
[0084] In actual implementation, after the first operating system is simulated by running a simulator in the second operating system, the first application is run in the first operating system through the first operating system in response to a running instruction for the first application; the application interface of the first application is displayed in response to a display instruction for the application interface of the first application, thereby displaying a file transfer control in the application interface of the first application.
[0085] It should be noted that the application interface of the first application here can be any interface for transferring files in the first application, such as a picture sending interface, an audio sending interface, etc.; and the file transfer control can be displayed at any position in the application interface, which is not limited in this embodiment of the present application.
[0086] For example, see Figure 4 , Figure 4 is a schematic diagram of an application interface and a file transfer control provided in an embodiment of the present application, based on Figure 4 , the dotted box 401 indicates the file transfer control in the application interface of the first application.
[0087] In some embodiments, the process of displaying a file transfer control in an application interface of a first application may be, in response to an interface display instruction triggered in the first application, displaying the application interface, and displaying a first area in the application interface; wherein the first area is used to record a first file transferred from the second operating system to the first application; and displaying a file transfer control in the first area.
[0088] It should be noted that the first area is displayed in any blank position in the application interface, which is not limited in the embodiments of the present application; for example, see Figure 5 , Figure 5 is a schematic diagram of the first region provided in the embodiment of the present application, based on Figure 5 , the dotted box 502 indicates the application interface of the first application, the dotted box 501 indicates the first area displayed in the application interface, and 503 indicates the file transfer control displayed in the first area, so that in response to the interface display instruction triggered in the first application, the application interface as indicated by the dotted box 502 is displayed, and in the application interface as indicated by the dotted box 502, the first area as indicated by the dotted box 501 is displayed; and then in the first area as indicated by the dotted box 502, the file transfer control as indicated by 503 is displayed.
[0089] In this way, a file transfer control is displayed in the first area recording the first file transferred from the second operating system to the first application, and the file transfer control is integrated into the first area recording the historical file transfer record, making the file management function more integrated and facilitating users to complete all file management tasks in one area.
[0090] In actual implementation, if there are multiple files historically transmitted to the first application, in the first area, each first file will be displayed in sequence based on the order of transmission time. Specifically, when the first files transmitted to the first application include multiple files, in the first area, the file information of each first file will be displayed in the order of transmission time; wherein the file information includes at least one of the following: an identification of the first file, a method for obtaining the first file, a transmission time of the first file, a file type of the first file, and a size of the first file.
[0091] It should be noted that the identifier of the first file may be the name of the first file, the method for obtaining the first file refers to the method for generating the first file, for example, when the first file is a picture, the method for obtaining the picture may be camera shooting, screen capture, application screenshot, etc., the transmission time of the first file refers to the moment when the first file is transmitted from the second operating system to the first application, and the file type of the first file includes pictures, videos, audio, etc. For example, see Figure 6 , Figure 6 is a schematic diagram of the file information of the first file provided in the embodiment of the present application, based on Figure 6 The first area includes three first files, wherein the file information of each first file is displayed in the order of transmission time, as shown in the dotted box 601.
[0092] In this way, displaying the file information of the first file in sequence according to the transmission time of the first file can not only make it easier to trace and manage the transmission history and quickly find the previously transmitted files, but also if an error occurs during the file transmission process, sorting by time can quickly locate the file and time point where the problem occurred, facilitating troubleshooting.
[0093] In some embodiments, a second area is also displayed in the application interface, and the second area is used to record the second file sent by the third application to the first application; wherein the third application and the first application run on different electronic devices, and the second file is stored in the first operating system; in the second area, a download control for the second file is displayed, and the download control is used to download the second file from the first operating system to the second operating system.
[0094] It should be noted that the second area is used to record the second file sent by the third application to the first application, and the recording is achieved by displaying the file identifier (such as the name) of the second file in the second area; wherein the number of the second areas may be one or more, and when the number of the second areas is one, only one second area will be displayed in the application interface, and the second area is used to record the files sent to the first application by different third applications; when the number of the second areas is multiple, multiple second areas will be displayed in the application interface, and different second areas are used to record the files sent to the first application by different third applications, and there is a one-to-one correspondence between the second area and the third application;
[0095] At the same time, when there is a second file in the first application, the download control of the second file will be displayed in the second area, and there can be one or more download controls, that is, there is a one-to-one correspondence or a one-to-many relationship between the download control and the second file. When there is a one-to-many relationship between the download control and the second file, there is only one download control, so in response to the trigger operation on the download control, at least one second file for selection is displayed, and then in response to the selection operation of the target second file in the at least one second file, the target second file is downloaded from the first operating system to the second operating system; when there is a one-to-one correspondence between the download control and the second file, the number of download controls is at least one, so in response to the trigger operation on the target download control in the at least one download control, the second file corresponding to the target download control is downloaded from the first operating system to the second operating system.
[0096] In this way, files that are not transferred from the second operating system are recorded in the second area. In this way, the areas are clearly divided in the user interface, and files that are not transferred from the second operating system are recorded separately in the second area. This can help users distinguish the sources of files and allow users to quickly find these files, thereby better managing files. At the same time, separate recording of files that are not transferred from the second operating system helps to ensure data integrity and accuracy and avoid data confusion.
[0097] Step 102: In response to a trigger operation on a file transfer control, a file selection interface is displayed, where the file selection interface is used to select a file stored in the second operating system.
[0098] It should be noted that the trigger operation for the file transfer control may be a touch operation, a click operation or a press operation, including a single-click operation, a double-click operation, a long-press operation, etc., and when the trigger operation for the file transfer control is received, the process of displaying the file selection interface may be jumping from the application interface to the file selection interface, or may be on the application interface, displaying the file selection interface through a floating layer, which is not limited in this embodiment of the present application;
[0099] For example, see Figure 7 , Figure 7 is a schematic diagram of a file selection interface provided in an embodiment of the present application, based on Figure 7 , the dotted box 701 indicates a file selection interface, wherein, when a trigger operation for a file transfer control is received, a file selection interface as shown in the dotted box 701 is displayed on the application interface indicated by the dotted box 702 through a floating layer.
[0100] It should be noted that, for the files stored in the second operating system, as mentioned above, taking the second operating system as the operating system on the host (PC) as an example, the second operating system may be a Windows system, therefore, the files stored in the second operating system, that is, the files stored in the Windows system, are equivalent to the files stored locally on the host;
[0101] Taking the second operating system being the Windows system as an example, when the file is stored in the second operating system, in the Windows system, the file can be stored in the system disk, user data disk, etc., among which the system disk is usually the C drive, where the Windows operating system itself and many system-level applications and files are stored; and the user data disk can be the D drive, E drive, etc., where the current user's data is stored, including documents, pictures, music, videos, and downloaded files, etc.
[0102] Step 103: Based on the file selection interface, in response to a selection instruction for the target file, the target file is transferred to the first application.
[0103] In actual implementation, at least one candidate file and a determination control are displayed in a file selection interface, wherein at least one candidate file includes a target file; thereby, in response to a selection operation on the target file, the target file is controlled to be in a selected state; then, in response to a triggering operation of the determination control, a selection instruction for the target file in the selected state is received.
[0104] It should be noted that the determination control may be displayed at any position on the file selection interface, and the present application embodiment does not limit this; for example, see Figure 8 , Figure 8 is a schematic diagram of candidate files and control determination provided by the embodiment of the present application, based on Figure 8 ,like Figure 8 As shown in a, in the file selection interface, it is displayed as follows Figure 8 The two candidate files indicated by the dashed box 801 in a, and Figure 8 Then, in response to the selection operation of the target file below the two candidate files indicated by the dotted box 801, the target file is controlled to be in the following state. Figure 8b is selected as indicated by 803, thereby responding to the Figure 8 The trigger operation of the determination control indicated by 804 in b receives a selection instruction for the target file in the selected state.
[0105] In some embodiments, a control is determined to exist in an activated state and an inactivated state. When there is no selected file, the control is determined to be in an inactivated state. If there is a selected file, the control is determined to be activated. Specifically, before transferring the target file to the first application, at least one candidate file and an inactivated control may be displayed in a file selection interface, wherein the at least one candidate file includes the target file. In response to a selection operation on the target file, the target file is controlled to be in a selected state, and the control is controlled to switch from an inactivated state to an activated state. In response to a trigger operation on the activated control, a selection instruction for the target file is received.
[0106] It should be noted that the inactive state may be a gray state, and the active state may be a highlighted state. When there is no selected file, the control is determined to be in the inactive state. If there is a selected file, the control is determined to be switched from the inactive state to the active state. For example, see Fig. 9 , Fig. 9 is a schematic diagram of a process for determining a state switching of a control provided in an embodiment of the present application, based on Fig. 9 ,like Fig. 9 As shown in a, in the file selection interface, it is displayed as follows Fig. 9 The two candidate files indicated by the dashed box 901 in a, and Fig. 9 Then, in response to the selection operation of the target file below the two candidate files indicated by the dotted box 901, the target file is controlled to be in the state as shown in FIG. Fig. 9 b in 903 indicated by the selected state, and control the control to switch from the inactive state to the selected state as shown in FIG. Fig. 9 b 904 indicates the activation state, thereby responding to the Fig. 9 The trigger operation of the determination control in the activated state indicated by 904 in b receives a selection instruction for the target file in the selected state.
[0107] In this way, when there is no selected file, the control is determined to be in an inactive state. If there is a selected file, the control is determined to be activated. In this way, by determining the change in the activation state of the control, the user can intuitively know whether there is a file currently selected and whether the control is available, which helps the user understand the state of the interface and the available operations; at the same time, determining that the control is in an inactive state when no file is selected can effectively prevent the user from performing invalid or undefined operations and improve the user experience; in addition, by determining the activation state of the control, clear operation instructions can be provided to the user to guide the user to the next step.
[0108] In some embodiments, the application interface is used to transfer files of a target type, and the process of transferring the target file to the first application in response to a selection instruction for the target file may be, in response to a selection instruction for the target file, when the type of the target file is consistent with the target type, transferring the target file to the first application; thereby, when the type of the target file is inconsistent with the target type, displaying a prompt message; wherein the prompt message is used to prompt the file type that can be transferred to the first application.
[0109] It should be noted that file types include pictures, videos, audios, etc., and the target type is one of multiple file types. Therefore, when a selection instruction for a target file is received, the target type corresponding to the application interface is obtained, and the target file is analyzed to obtain the type of the target file; the type of the target file is matched with the target type; when the matching result indicates that the type of the target file is consistent with the target type, the target file is transferred to the first application; when the matching result indicates that the type of the target file is inconsistent with the target type, a prompt message is displayed; wherein the prompt message is used to prompt the file type that can be transferred to the first application, and prompt that the current target file type does not meet the file type that can be transferred to the first application and cannot be transferred to the first application.
[0110] In this way, the application interface is used to transfer files of a specific type. When the type of the target file matches the file type that can be transferred to the first application, the target file can be transferred to the first application. This not only ensures that only files of the correct type are transferred to the first application, but also ensures that the transferred files match the format and type supported by the first application, thereby maintaining data consistency and accuracy and preventing incompatible file types from causing application errors or crashes. In addition, by screening and limiting file types, unnecessary data transmission can be reduced and transmission efficiency can be improved.
[0111] In some embodiments, as described above, a first area is displayed in the application interface, and the first area is used to record the first file transferred from the second operating system to the first application; thus, after the target file is transferred to the first application, a viewing entrance of the target file can also be displayed in the first area, and the viewing entrance is used to locate the storage location of the target file; in response to a trigger operation on the viewing entrance, a first folder storing the target file is opened based on the storage location, and the target file is displayed in the first folder.
[0112] It should be noted that the style of the viewing entrance can be pre-set, and at the same time, there can be one or more viewing entrances, that is, there is a one-to-one correspondence or a one-to-many relationship between the viewing entrance and the first file. When there is a one-to-many relationship between the viewing entrance and the first file, there is only one viewing entrance, so in response to the trigger operation on the viewing entrance, at least one first file available for viewing is displayed, and then in response to the selection operation of the target first file in the at least one first file, the first folder storing the target file is opened based on the storage location, and the target file is displayed in the first folder; when there is a one-to-one correspondence between the viewing entrance and the first file, the number of viewing entrances is at least one, so in response to the trigger operation on the target viewing entrance in the at least one viewing entrance, the first folder storing the target file corresponding to the target viewing entrance is opened based on the storage location, and the target file is displayed in the first folder.
[0113] For example, see Fig.10 , Fig.10 is a schematic diagram of the viewing entrance provided in the embodiment of the present application, based on Fig.10 , the dotted box 1001 indicates the first area, and the dotted box 1002 indicates the viewing entrance, so that in the first area, the viewing entrance of each first file transferred to the first application is displayed, as shown in the dotted box 1002, each first file corresponds to a viewing entrance, and then in response to the trigger operation of the viewing entrance of the target file in the multiple first files, the first folder storing the target file is opened based on the storage location, and the target file is displayed in the first folder.
[0114] It should be noted that the first folder is a folder in the first operating system simulated by the simulator, but the first folder is mapped in the second operating system, so that the style of the first folder seen by the user is the style of the folder in the second operating system.
[0115] In this way, by viewing the entry, the storage location of the transmitted file can be viewed. Thus, the user can quickly find the storage location of the transmitted file without having to search level by level in the file system, saving time. At the same time, the user can clearly understand where the file goes after being transmitted, increasing the transparency of the operation process. In addition, the viewing entry can be used to view and manage the transmitted files to ensure the standardization and security of file storage.
[0116] In actual implementation, in the first area, an opening entry for the target file is also displayed. The opening entry is used to open the target file. Thus, in response to a trigger operation on the opening entry, the opened target file is displayed. Among them, the style of the opening entry can be preset. At the same time, there can be one or more opening entries, that is, there is a one-to-one correspondence or a one-to-many relationship between the opening entry and the first file. When there is a one-to-many relationship between the opening entry and the first file, there is only one opening entry. Thus, in response to a trigger operation on the opening entry, at least one first file available for opening is displayed, and then in response to a selection operation on the target first file among the at least one first file, the opened target file is displayed. When there is a one-to-one correspondence between the opening entry and the first file and the number of opening entries is at least one, thus, in response to a trigger operation on the target opening entry among the at least one opening entry, the target file corresponding to the opened target opening entry is displayed.
[0117] In some embodiments, as described above, a first area is displayed in the application interface. The first area is used to record the first files transmitted from the second operating system to the first application. At the same time, the emulator runs in the second application. Thus, a virtual disk entry of the second application is displayed in the first area. After the target file is transmitted to the first application, in response to a trigger operation on the virtual disk entry, a file viewing page of the virtual disk can be displayed, and the files stored in the virtual disk are displayed in the file viewing page. The files stored in the virtual disk include the target file.
[0118] It should be noted that the emulator running in the second application means that the second application integrates the function of the emulator, that is, the emulator runs by starting the second application. The virtual disk entry is used to open the virtual disk corresponding to the second application, that is, the virtual disk of the first operating system simulated by the emulator corresponding to the second application. That is, the virtual disk entry is used to open the root directory of the first operating system simulated by the emulator. The root directory is the starting point of the hierarchical structure of the file system, that is, the highest-level directory of the file system.
[0119] The virtual disk is the virtual storage space allocated by the simulator to the first operating system. It acts as an actual hard disk drive in the first operating system simulated by the simulator, and provides storage functions for the first operating system, including installing applications, saving game progress, storing multimedia files, etc.; in this embodiment of the application, when the first application is run through the first operating system, the files stored by the first application can be stored in the virtual disk.
[0120] For example, see Fig.11 , Fig.11 is a schematic diagram of a virtual disk entry provided in an embodiment of the present application, based on Fig.11 , the dotted box 1101 indicates the first area, and the dotted box 1102 indicates the virtual disk entrance, so that in the first area indicated by the dotted box 1101, the virtual disk entrance of the second application indicated by the dotted box 1102 is displayed, and then in response to the trigger operation of the virtual disk entrance indicated by the dotted box 1102, the file viewing page of the virtual disk is displayed, and the files stored in the virtual disk are displayed in the file viewing page.
[0121] In this way, by viewing the files stored on the virtual disk through the virtual disk entrance, users can directly access and manage the files stored on the virtual disk through the virtual disk entrance without going through complex paths or commands, thereby improving the user's overall experience when accessing and managing files stored on the virtual disk.
[0122] In some embodiments, as described above, a first area is displayed in the application interface, and the first area is used to record the first file transferred from the second operating system to the first application; thus, when the first file transferred to the first application is deleted in the first operating system, the first file is displayed in the first area using a target style; wherein the target style is used to indicate that the first file has been deleted.
[0123] It should be noted that the target style may be a gray style or a display style with a horizontal line in the middle, wherein the target style may be pre-set, and this is not limited in the embodiments of the present application; for example, see Fig.12 , Fig.12 is a schematic diagram of the target style provided in the embodiment of the present application, based on Fig.12 , the dotted box 1201 indicates the first area, and the dotted box 1202 indicates the deleted first file displayed in the target style, so that when the first file transferred to the first application is deleted in the first operating system, the first file is displayed in the first area indicated by the dotted box 1201 using the target style indicated by the dotted box 1202.
[0124] In this way, the deleted files are displayed in the first area by using a target style for indicating that the files have been deleted, which provides intuitive visual feedback to the user, allowing the user to immediately identify which files have been deleted and avoid confusing the deleted files with the non-deleted files; at the same time, even after the files are deleted, the records of the files are allowed to be retained, which facilitates the user to manage the files.
[0125] In some embodiments, when the file size of the target file reaches a file size threshold, during the process of transferring the target file to the first application, an animation of the target file being transferred from the second operating system to the first application can also be displayed, and the animation includes the transfer progress of the target file.
[0126] It should be noted that the animation here can be, for example, the flow of an hourglass, wherein the transmission progress in numerical form is displayed next to the hourglass; or, the animation can be a light band that gradually lights up, and at the end of the light band, the transmission progress in numerical form is displayed, etc., and this is not limited to the embodiments of the present application.
[0127] In this way, during the process of transferring the target file to the first application, the transfer progress of the target file is displayed in the form of animation. The user can not only intuitively see the real-time progress of the transfer, which is convenient for better management and adjustment of his or her own workflow, but the animation also increases the visual interactivity, making the user feel more friendly and interesting while waiting for the transfer to be completed. In this way, the interactivity and aesthetics of the user interface are enhanced, thereby improving user satisfaction and overall usage experience.
[0128] In actual implementation, after displaying the animation of the target file being transferred from the second operating system to the first application, it is also possible to minimize the display window in response to a minimize instruction for the display window of the first application; display the display interface of the second operating system, and display the transfer progress of the target file in the display interface through a floating window.
[0129] In actual implementation, a minimize control is displayed on the application interface of the first application, so that in response to a trigger operation on the minimize control, such as a click operation (including a single-click operation and a double-click operation), a minimize instruction for the display window of the first application is received. Fig.13 , Fig.13 is a schematic diagram of a minimized control provided in an embodiment of the present application, based on Fig.13 , the dotted box 1301 indicates a minimize control displayed on the application interface of the first application, so that in response to the trigger operation of the minimize control as indicated by the dotted box 1301, a minimize instruction for the display window of the first application is received.
[0130] It should be noted that minimizing the display window means shrinking the display window of the first application to the taskbar (such as in Windows system) or Dock (such as in macOS system). In this way, the user temporarily removes the display window of the first application from the desktop without closing the application to free up screen space or switch to other applications.
[0131] At the same time, after the display window of the first application is minimized, the transfer progress of the target file is displayed in the display interface of the second operating system through a floating window, wherein the floating window can be displayed at any position of the display interface of the second operating system, which is not limited in the embodiment of the present application;
[0132] In this way, after minimizing the display window of the first application, the transfer progress of the target file can also be displayed through a floating window. In this way, the user can view the file transfer progress in real time while processing other tasks. This not only enhances the system's multi-tasking capabilities and reduces interference when the user is performing other tasks, but also ensures that the user can view the file transfer speed. In other words, it not only improves the convenience and efficiency of user operations, but also enhances the functionality and aesthetics of the user interface.
[0133] In actual implementation, after the display window of the first application is minimized, in addition to displaying the transfer progress of the target file through a floating window in the display interface of the second operating system, the remaining transfer time can also be displayed, for example, how long it is expected to successfully transfer the target file to the first application.
[0134] In some embodiments, in response to a selection instruction for a target file, after the target file is transferred to the first application, at least one operation control for the target file can also be displayed; wherein the operation control includes at least one of a pause control and a termination control, the pause control is used to pause the transmission process of the target file, and the termination control is used to terminate the transmission process of the target file; in response to a trigger operation for a target operation control in at least one operation control, the operation indicated by the target operation control is performed on the transmission process of the target file.
[0135] In actual implementation, the operation control is displayed at an associated position of the target file, for example, one of the upper position, lower position, left position and right position of the target file; when the operation control includes a pause control, in response to a trigger operation on a target operation control in at least one operation control, the process of performing the operation indicated by the target operation control on the transmission process of the target file may be, in response to a trigger operation on the pause control, pausing the transmission process of the target file, at this time, the pause control will also be transformed into a continue control, and the continue control is used to continue the transmission control of the target file; thus, when a trigger operation on the continue control is received, the transmission control of the target file is continued; when the operation control includes a terminate control, in response to a trigger operation on a target operation control in at least one operation control, the process of performing the operation indicated by the target operation control on the transmission process of the target file may be, in response to a trigger operation on the terminate control, terminating the transmission process of the target file.
[0136] It should be noted that after pausing the target file transmission process, if you want to continue transmitting the target file, you can also continue transmitting the target file based on the transmission progress of the target file when it was paused. However, after terminating the transmission progress of the target file, if you want to continue transmitting the target file, you can only restart the transmission of the target file.
[0137] In this way, the transmission process of the target file can be paused or terminated through the pause control or the terminate control. In this way, the user can pause or terminate the transmission at any time as needed, that is, the user can directly control the file transfer control, which increases the flexibility and control of the user's operation; at the same time, if an error or problem is detected during the transmission process, the user can immediately pause or terminate the transmission based on the pause control and the terminate control, thereby preventing data damage or loss, and avoiding unnecessary data transmission, thereby improving the security and reliability of file transmission.
[0138] In some embodiments, after the target file is transferred to the first application in response to a selection instruction for the target file, during the process of transferring the target file to the first application, a file selection interface can be displayed in response to a display instruction for the file selection interface; based on the file selection interface, in response to selection instructions for other files, other files can be controlled to be transferred to the first application in parallel with the target file.
[0139] It should be noted that other files are files stored in the second operating system, so that in the process of transmitting the target file, other files can also be transmitted in parallel to the first application; in this way, through the parallel transmission of files, multiple file transfer tasks can be processed at the same time, thereby reducing the overall transmission time, which not only improves the file transfer efficiency, but also improves the user experience.
[0140] In some embodiments, after the target file is transmitted to the first application in response to a selection instruction for the target file, during the transmission process of the target file, the transmission speed of the target file may further be displayed, and the transmission speed is positively correlated with the object level of the triggering object of the selection instruction.
[0141] It should be noted that there is a corresponding relationship between the transmission speed and the object level. The higher the object level, the faster the file transmission speed. After receiving the selection instruction for the target file, in addition to transmitting the target file to the first application, the object level of the triggering object of the selection instruction will also be obtained, and then based on the pre-set corresponding relationship, the transmission speed corresponding to the object level will be determined, and then based on this transmission speed, the target file will be transmitted to the first application.
[0142] In this way, the transmission speed is determined based on the object level, and then the target file is transmitted to the first application based on this transmission speed. In this way, the network bandwidth and computing resources can be dynamically allocated according to the object level, so that the files of high-level objects can be transmitted quickly, improving the transmission efficiency of the files of high-level objects, that is, important files, and optimizing the resource utilization efficiency. At the same time, the high-speed transmission of important files can reduce the waiting time and make the response to urgent tasks more rapid.
[0143] In some embodiments, as described above, a first area is displayed in the application interface, and the first area is used to record the first file transmitted from the second operating system to the first application. Thus, after the target file is transmitted to the first application in response to a selection instruction for the target file, in response to successfully transmitting the target file to the first application, the target file may further be displayed in the first area, and a first deletion control and a second deletion control are displayed at the associated position of the target file. The first deletion control is used to delete the target file in the first area, and the second deletion control is used to delete the target file in the first operating system.
[0144] It should be noted that the associated position of the target file may be one of the upper position, lower position, left position, and right position of the target file. The first deletion control is used to delete the target file in the first area, which means that there is no transmission record of the target file in the first area, but the target file is still stored in the first operating system. The second deletion control is used to delete the target file in the first operating system, which means that the target file does not exist in the first operating system, and the target file can be displayed in the first area in a style used to indicate that the corresponding file has been deleted, such as Fig.12 As shown, the file displayed in the target style indicated by the dashed box 1202, that is, the style used to indicate that the corresponding file has been deleted.
[0145] In actual implementation, after displaying the first delete control and the second delete control at the associated position of the target file, in response to the triggering operation of the first delete control, the target file is deleted from the first area; in response to the triggering operation of the second delete control, the target file is deleted from the first operating system, and in the first area, the target file is displayed in a style for indicating that the target file is deleted.
[0146] In this way, through different deletion controls, users can choose whether to directly delete the file transfer record or directly delete the file itself. In this way, users can choose to delete the record or the file itself according to their needs, which improves the flexibility and efficiency of file management. At the same time, users have clearer options when performing deletion operations, which can reduce unnecessary data loss caused by misoperation.
[0147] In some embodiments, in response to a selection instruction for a target file, before transferring the target file to the first application, a third area may be displayed in the application interface, and the third area is used to record a third file stored in the first operating system; thus, in response to a selection instruction for a target file, after transferring the target file to the first application, the target file may be displayed in the third area in response to successfully transferring the target file to the first application.
[0148] It should be noted that after receiving the selection instruction for the target file and transferring the target file to the first application, if the target file is successfully transferred to the first application, the target file will be directly displayed in the third area; wherein the third area records the third file stored in the first operating system, which means that the third area displays all files received by the first operating system, including those transferred from the second operating system and those received from other applications, etc.; for example, see Fig.14 , Fig.14 is a schematic diagram of the third region provided in the embodiment of the present application, based on Fig.14 , Fig.14 The dotted box 1401 in a is the third area. Fig.14 The dashed box 1402 in a indicates two third files stored in the first operating system recorded in the third area. Fig.14 The dotted box 1403 in b indicates the target file that is successfully transferred to the first application, so before the target file is successfully transferred to the first application, the third area will display the following Fig.14 When the target file is successfully transferred to the first application, the target file that has been successfully transferred will be directly displayed in the third area, such as Fig.14 As shown in the dotted box 1403 in b, the third file displayed in the third area is as follows Fig.14 As shown in b.
[0149] It should be noted that after receiving the selection instruction for the target file, the page parameters of the third area will be obtained and cached, so that when the target file is successfully transferred to the first application, a new third area will be rebuilt based on the cached page parameters and the target file, and the target file will be displayed in the third area; in this way, the files transferred by the user can be refreshed in the list of the first application in real time.
[0150] In this way, in the related art, even if the user successfully transfers the file, the mobile application will not immediately update the file list to display the newly transferred file, which causes the user to perform additional refresh or restart operations after transferring the file, increasing the complexity and time cost of use. Through the present application, it can be ensured that once the file is successfully transferred, the relevant mobile application will immediately update the file list and display the new file without the user performing additional operations, which significantly improves the user's efficiency in transferring files in the simulator environment.
[0151] By applying the above-mentioned embodiments of the present application, a target file is selected from files stored in a second operating system through a file transfer control in an application interface of a first application running on a first operating system, thereby directly transferring the target file to the first application; wherein, the first operating system is simulated by a simulator running in the second operating system; thus, when using the simulator to simulate different operating systems, if files are to be transferred between different operating systems, compared to the related art that requires manual file copying operations or file transfer methods through a universal serial bus, through the present application, the target file to be transferred can be selected from files stored in the second operating system through a file transfer control directly running in the first application of the first operating system, thereby transferring the target file to the first application. In this way, not only is the file transfer process between different operating systems simplified, the convenience of file transfer is improved, but also the efficiency of file transfer between operating systems is improved.
[0152] The following is an explanation of an exemplary application of the embodiments of the present application in a practical application scenario.
[0153] It is a widely adopted practice to use a mobile simulator to test and run mobile applications in a PC environment. However, when transferring files from a PC to a simulator environment, users usually face the following challenges: First, the cumbersomeness of physical file copying: users need to manually perform file copying operations, place the required files in a specific shared folder, or transfer files to the simulator environment through physical connections such as USB. This process is not only time-consuming, but also susceptible to operational errors; second, the delay in file display: even if the user successfully copies the file, many mobile applications will not immediately update the file list to display the newly imported file. This causes users to perform additional refresh or restart operations after importing the file, which increases the complexity and time cost of use; third, the inefficiency of operation: the entire file unpacking process involves multiple steps, including file search, selection, copying and importing. The cumbersomeness of these steps not only affects the user experience, but also reduces work efficiency. In summary, the simulators in the relevant technology have obvious deficiencies in file transfer and display, which are mainly manifested in the cumbersomeness of operation, the delay of file display and the overall low efficiency. These problems limit the convenience and efficiency of users using mobile applications in the simulator environment.
[0154] Based on this, the present application provides a file transfer method, which simplifies the process of transferring files in a simulator environment. The file transfer can be completed with just one button, greatly reducing the complexity of the operation; at the same time, once the file is imported, the relevant mobile application will immediately update the file list and display the new file, without the user having to perform additional operations, thereby achieving the technical effect of real-time file update; in this way, by simplifying the operation process and realizing real-time file update, the user's efficiency in file transfer in the simulator environment is significantly improved.
[0155] Next, the technical solution of this application is explained from the product side.
[0156] In actual implementation, the present application can be applied to scenarios where a client application in a simulator needs to select and upload files on a PC. The following is an explanation of running a third-party application (first application) in a PC simulator. Specifically, in response to a startup instruction for an application (second application) corresponding to the simulator, the application corresponding to the simulator is run (i.e., the simulator is run), thereby simulating an operating system (first operating system) different from the operating system (second operating system) on the PC through the simulator, and in the operating system simulated by the simulator, in response to a startup instruction for a third-party application, a third application is run, and when the third-party application is run, a file selection scene (such as a chat page) is displayed, and then in the file selection scene, in response to a display instruction for a picture selection page (application interface), a picture selection page (third area) is displayed, and at the same time, the file management sidebar (first area) is automatically faded out in the picture selection page, such as Fig.15 As shown, Fig.15 is a schematic diagram of a picture selection page and a file management sidebar provided in an embodiment of the present application, based on Fig.15 , the dotted line box 1501 indicates the picture selection page, and the dotted line box 1502 indicates the file management sidebar; then, in response to the following Fig.15 The trigger operation of the "Import File to App" button (file transfer control) shown in 1503 pops up a file selection box (file selection interface) on the PC, such as Figure 7 shown.
[0157] Next, in response to the selection operation of the file (file of the target type) that meets the format requirements in the file selection box, a file that meets the format requirements stored on a PC is selected, and in response to the selection operation of the file (file of the target type) that meets the format requirements Figure 8 The trigger operation of the "Open" button (confirmation control) shown in 802 or 804 is used to import the file into the third-party application. At the same time, the file selection list in the third-party application is automatically refreshed and the imported file is displayed, such as Fig.14 As shown, Fig.14 The file selection list shown in the dashed box 1402 in a is refreshed to display the imported Fig.14 The file indicated by the dotted box 1403 in b.
[0158] Next, the technical solution of the present application is explained from a technical perspective.
[0159] In actual implementation, see Fig.16 , Fig.16 is a first link diagram of the file transmission method provided in the embodiment of the present application, based on Fig.16, the file transfer method provided by the present application can be implemented through steps 1601 to 1616. Specifically, in steps 1601-1603, the mobile application (first application) is started, and in response to the display instruction for the relevant page of the file selection, the relevant page of the file selection is displayed; in steps 1604-1605, when the system framework recognizes that the relevant page of the file selection is displayed, it sends a sidebar pop-up request to the mobile launcher; in step 1606, the mobile launcher responds to the sidebar pop-up request and sends the sidebar pop-up request to the simulator host through the message channel; in steps 1607-1613, the simulator host receives the sidebar pop-up request, and in response to the sidebar pop-up request, pops up the file management sidebar, In response to a click on the "Import Files to APP" button in the file management sidebar, a file selection box pops up; then in response to a selection operation on a file in the file selection box, the selected file is displayed; and then in response to an open operation on the selected file, the selected file is copied to a shared directory; finally, a message indicating that the copying is complete is sent to the mobile launcher; step 1614, when the mobile launcher receives the message indicating that the copying is complete, the message is sent to the system framework; step 1615, the system framework recreates the file selection page, and sends the recreated file selection page to the mobile application; step 1616, the mobile application refreshes the list, and displays the copied files described above in the refreshed list.
[0160] It should be noted that the system framework is one of the key components of the technical solution of this application, which is used to determine whether the currently opened page is a file selection page and to rebuild the page after the file is imported. Fig.17 , Fig.17 is a second link diagram of the file transmission method provided in the embodiment of the present application, based on Fig.17, the process related to the system framework in this application includes the following steps. Specifically, step 1701, the mobile application responds to the opening operation for the file selection page and displays the file selection page; step 1702-step 1704, when the file selection page is displayed, the system framework is triggered to judge the page type, that is, to identify the currently opened page. Specifically, in the onCreate method of the Activity class, it is judged whether the current page name hits the preset page list. If it hits, it is considered that the corresponding page is currently opened, and the opening parameters of the corresponding page are cached; step 1705, the system framework sends a sidebar pop-up request to the mobile launcher through cross-process communication. Specifically, the page opening event (that is, the sidebar pop-up request) is transmitted through Android The cross-process communication mechanism implemented by the interface definition language is transmitted to the mobile launcher, thus ensuring the correctness and security of information transmission between the file manager and the mobile launcher; step 1706, when the file import is completed, the mobile launcher sends a file import completion event to the system framework. Specifically, when the file selection is completed, the selection completion event will be transmitted to the system framework through the cross-process communication mechanism implemented by the Android interface definition language; step 1707-step 1708, after receiving the selection completion event, the system framework obtains the pre-cached opening parameters of the corresponding page, then destroys the page and uses the obtained cache parameters to recreate a new page, and then refreshes the file list; in this way, the imported files can be refreshed in the app list in real time.
[0161] It should be noted that the implementation process of the mobile launcher is to establish a stable service process to handle the "file selection related page" opening request and accurately transmit these request information to the simulator host. For details, see Fig.18 , Fig.18 is a third link diagram of the file transmission method provided in the embodiment of the present application, based on Fig.18, the process related to the mobile launcher in this application includes the following steps, specifically, step 1801, receiving the request information of the system framework, specifically, when the mobile launcher is started, it will initialize and start a background service. The main responsibility of this service is to detect the request information from the system. The service needs to be efficient and stable to ensure that all requests can be processed in a timely manner, so that when a third-party application opens a new page, the system framework will judge and identify the page type, and send a sidebar pop-up request to the receiving service of the mobile launcher for the expected page; step 1802, transmitting parameters through Socket communication, specifically, after the receiving service obtains the request information, it will pass this information to the simulator host through the established Socket communication channel; wherein, Socket communication can ensure the security and reliability of data transmission, and ensure that all sent parameter information is not tampered with or lost during the transmission process; step 1803-step 1804, when the file import is completed, the simulator host sends a notification message to the mobile launcher, and then the mobile launcher will also send the same notification message to the system framework.
[0162] It should be noted that for the implementation process of the simulator host, see Fig.19 , Fig.19 is a fourth link diagram of the file transmission method provided in the embodiment of the present application, based on Fig.19 , the process related to the simulator host end in this application includes the following steps, specifically, step 1901-step 1903, when the simulator host end receives a sidebar pop-up request, a sidebar is popped up, and a recent file list is displayed in the sidebar, as well as an entry for importing files to the app; step 1904-step 1905, when a click operation is received for the entry to import to the app, a file selection box is displayed, thereby ensuring that the required file can be quickly selected into the app based on the file selection box, wherein the file selection box provides a graphical interface that can intuitively browse and select files stored on the PC; step 1906, when a selection operation for a file in the file selection box is received, the simulator host end will automatically execute a file copy operation, that is, copy the file from the original location to a preset shared directory between the Android simulator and the PC, wherein the shared directory is a storage location that can be accessed by both the Android simulator and the PC, thereby ensuring the availability of the file; step 1907, when the file is copied, the simulator host end will send a message for completing the file copy (equivalent to a file import completion event) to the mobile launcher through the Socket communication channel.
[0163] In this way, the following technical effects can be achieved through this application: First, the user experience is improved: through a simplified file transfer process and a real-time file update mechanism, users can share files between the simulator environment and the host operating system more conveniently, thereby significantly improving the user experience; Second, work efficiency is improved: this application reduces the steps and time required for users to perform in the file transfer process, allowing users to complete work tasks faster, thereby improving work efficiency; Third, the ease of operation is enhanced: users only need to perform simple operations to quickly import files, without the need for complex settings or additional steps, which enhances the ease of operation; Fourth, security is enhanced: while achieving convenient file sharing, this application ensures the security of files during transmission and storage through Socket communication and cross-process communication mechanisms, protecting user privacy and data security.
[0164] By applying the above-mentioned embodiments of the present application, a target file is selected from files stored in a second operating system through a file transfer control in an application interface of a first application running on a first operating system, thereby directly transferring the target file to the first application; wherein, the first operating system is simulated by a simulator running in the second operating system; thus, when using the simulator to simulate different operating systems, if files are to be transferred between different operating systems, compared to the related art that requires manual file copying operations or file transfer methods through a universal serial bus, through the present application, the target file to be transferred can be selected from files stored in the second operating system through a file transfer control directly running in the first application of the first operating system, thereby transferring the target file to the first application. In this way, not only is the file transfer process between different operating systems simplified, the convenience of file transfer is improved, but also the efficiency of file transfer between operating systems is improved.
[0165] The following is a description of an exemplary structure of the file transmission device 455 provided in the embodiment of the present application implemented as a software module. In some embodiments, Figure 2 As shown, the software modules stored in the file transfer device 455 of the memory 450 may include:
[0166] A first display module 4551, configured to display a file transfer control in an application interface of a first application, wherein the first application runs on a first operating system, and the first operating system is simulated by a simulator running on a second operating system;
[0167] A second display module 4552, configured to display a file selection interface in response to a trigger operation on the file transfer control, wherein the file selection interface is used to select a file stored in the second operating system;
[0168] The transmission module 4553 is used to transmit the target file to the first application based on the file selection interface and in response to a selection instruction for the target file.
[0169] In some embodiments, the first display module 4551 is also used to display the application interface in response to an interface display instruction triggered in the first application, and to display a first area in the application interface; wherein the first area is used to record a first file transferred from the second operating system to the first application; and the file transfer control is displayed in the first area.
[0170] In some embodiments, the first display module 4551 is also used to display file information of each of the first files transmitted to the first application in the first area in order of transmission time when the first files include multiple first files; wherein the file information includes at least one of the following: an identification of the first file, a method for obtaining the first file, a transmission time of the first file, a file type of the first file and a size of the first file.
[0171] In some embodiments, the first display module 4551 is also used to display a viewing entrance of the target file in the first area, and the viewing entrance is used to locate the storage location of the target file; in response to a trigger operation on the viewing entrance, a first folder storing the target file is opened based on the storage location, and the target file is displayed in the first folder.
[0172] In some embodiments, the simulator runs on a second application, and the first display module 4551 is also used to display a virtual disk entry of the second application in the first area; in response to a trigger operation on the virtual disk entry, a file viewing page of the virtual disk is displayed, and files stored on the virtual disk are displayed on the file viewing page, wherein the files stored on the virtual disk include the target file.
[0173] In some embodiments, the first display module 4551 is also used to display the first file in the first area using a target style when the first file transferred to the first application is deleted in the first operating system; wherein the target style is used to indicate that the first file has been deleted.
[0174] In some embodiments, the device also includes a third display module, and the third display module is used to display a second area in the application interface, and the second area is used to record a second file sent by the third application to the first application; wherein the third application and the first application run on different electronic devices, and the second file is stored in the first operating system; in the second area, a download control for the second file is displayed, and the download control is used to download the second file from the first operating system to the second operating system.
[0175] In some embodiments, the device also includes a fourth display module, which is used to display at least one candidate file and a determination control in an inactivated state in the file selection interface, wherein the at least one candidate file includes the target file; in response to a selection operation on the target file, the target file is controlled to be in a selected state, and the determination control is controlled to switch from the inactivated state to an activated state; in response to a trigger operation on the determination control in the activated state, a selection instruction for the target file is received.
[0176] In some embodiments, the application interface is used to transfer files of a target type, and the transfer module 4553 is also used to respond to a selection instruction for a target file, and when the type of the target file is consistent with the target type, transfer the target file to the first application; when the type of the target file is inconsistent with the target type, display a prompt message; wherein the prompt message is used to prompt the file type that can be transferred to the first application.
[0177] In some embodiments, the device also includes a fifth display module, which is used to display an animation of the target file being transferred from the second operating system to the first application when the file size of the target file reaches a file size threshold during the process of transferring the target file to the first application, wherein the animation includes the transfer progress of the target file.
[0178] In some embodiments, the fifth display module is also used to minimize the display window in response to a minimize instruction for the display window of the first application; display the display interface of the second operating system, and display the transfer progress of the target file in the display interface through a floating window.
[0179] In some embodiments, the device also includes a sixth display module, which is used to display at least one operation control for the target file during the process of transferring the target file to the first application; wherein the operation control includes at least one of a pause control and a terminate control, the pause control is used to pause the transmission process of the target file, and the terminate control is used to terminate the transmission process of the target file; in response to a trigger operation on a target operation control among the at least one operation control, the operation indicated by the target operation control is performed on the transmission process of the target file.
[0180] In some embodiments, the device also includes a seventh display module, which is used to display the file selection interface in response to a display instruction for the file selection interface during the process of transferring the target file to the first application; based on the file selection interface, in response to a selection instruction for other files, control the other files to be transmitted to the first application in parallel with the target file.
[0181] In some embodiments, the device further comprises an eighth display module, wherein the eighth display module is used to display a transmission speed of the target file during the transmission of the target file, and the transmission speed is positively correlated with an object level of a triggering object of the selection instruction.
[0182] In some embodiments, the device also includes a ninth display module, which is used to display a third area in the application interface, and the third area is used to record a third file stored in the first operating system; in response to successfully transferring the target file to the first application, the target file is displayed in the third area.
[0183] In some embodiments, a first area is displayed in the application interface, and the first area is used to record a first file transferred from the second operating system to the first application; the device also includes a tenth display module, and the tenth display module is used to display the target file in the first area in response to successfully transferring the target file to the first application; a first delete control and a second delete control are displayed at an associated position of the target file; wherein the first delete control is used to delete the target file in the first area, and the second delete control is used to delete the target file in the first operating system.
[0184] The embodiment of the present application provides a computer program product, which includes computer executable instructions or computer programs, and the computer executable instructions or computer programs are stored in a computer-readable storage medium. The processor of the electronic device reads the computer executable instructions or computer programs from the computer-readable storage medium, and the processor executes the computer executable instructions or computer programs, so that the electronic device executes the file transfer method described in the embodiment of the present application.
[0185] The present application embodiment provides a computer-readable storage medium storing computer-executable instructions or computer programs. When the computer-executable instructions or computer programs are executed by a processor, the processor will execute the file transmission method provided by the present application embodiment, for example, Figure 3 The file transfer method shown.
[0186] In some embodiments, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a flash memory, a magnetic surface memory, an optical disk, or a CD-ROM; or it may be various devices including one or any combination of the above memories.
[0187] In some embodiments, computer executable instructions may be in the form of a program, software, software module, script or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine or other unit suitable for use in a computing environment.
[0188] As an example, computer-executable instructions may, but need not, correspond to a file in a file system, may be stored as part of a file storing other programs or data, such as in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files storing one or more modules, subroutines, or code portions).
[0189] As an example, computer executable instructions may be deployed to be executed on one electronic device, or on multiple electronic devices located at one site, or on multiple electronic devices distributed at multiple sites and interconnected by a communication network.
[0190] In summary, the embodiments of the present application have the following beneficial effects:
[0191] (1) When using an emulator to simulate different operating systems, if files need to be transferred between different operating systems, compared with the related art that requires manual file copying or file transfer through a universal serial bus, through the present application, a file transfer control in a first application running on a first operating system can be used to select a target file to be transferred from files stored in a second operating system, thereby transferring the target file to the first application. This not only simplifies the file transfer process between different operating systems and improves the convenience of file transfer, but also improves the efficiency of file transfer between operating systems.
[0192] (2) The following technical effects can be achieved through this application: First, the user experience is improved: through a simplified file transfer process and a real-time file update mechanism, users can share files between the simulator environment and the host operating system more conveniently, thereby significantly improving the user experience; Second, work efficiency is improved: through this application, the steps and time required by users in the file transfer process are reduced, allowing users to complete work tasks more quickly, thereby improving work efficiency; Third, the ease of operation is enhanced: users only need to perform simple operations to quickly import files, without the need for complex settings or additional steps, thereby enhancing the ease of operation; Fourth, security is enhanced: while achieving convenient file sharing, this application ensures the security of files during transmission and storage through Socket communication and cross-process communication mechanisms, protecting user privacy and data security.
[0193] (3) In the related art, even if the user successfully transfers the file, the mobile application will not immediately update the file list to display the newly transferred file, which causes the user to perform additional refresh or restart operations after transferring the file, increasing the complexity and time cost of use. Through the present application, it can be ensured that once the file is successfully transferred, the relevant mobile application will immediately update the file list and display the new file without the user having to perform additional operations, which significantly improves the user's efficiency in transferring files in the simulator environment.
[0194] It should be noted that in the embodiments of the present application, data related to user operations, etc., when the embodiments of the present application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.
[0195] The above is only an embodiment of the present application and is not intended to limit the protection scope of the present application. Any modifications, equivalent substitutions and improvements made within the spirit and scope of the present application are included in the protection scope of the present application.
Claims
1. A file transmission method, characterized in that: The method comprises: Displaying a file transfer control in an application interface of a first application, wherein the first application runs on a first operating system, and the first operating system is simulated by a simulator running in a second operating system; In response to a trigger operation on the file transfer control, displaying a file selection interface, wherein the file selection interface is used to select a file stored in the second operating system; Based on the file selection interface, in response to a selection instruction for a target file, the target file is transmitted to the first application.
2. The method according to claim 1, characterized in that The displaying of the file transfer control in the application interface of the first application includes: In response to an interface display instruction triggered in the first application, display the application interface, and display a first area in the application interface; The first area is used to record a first file transferred from the second operating system to the first application; In the first area, the file transfer control is displayed.
3. The method according to claim 2, characterized in that The method further comprises: When there are multiple first files transmitted to the first application, in the first area, file information of each of the first files is displayed in order of transmission time; The file information includes at least one of the following: an identifier of the first file, a method for obtaining the first file, a transmission time of the first file, a file type of the first file, and a size of the first file.
4. The method according to claim 3, characterized in that After transferring the target file to the first application, the method further includes: In the first area, displaying a viewing entry for the target file, the viewing entry is used to locate a storage location of the target file; In response to a trigger operation on the viewing entry, a first folder storing the target file is opened based on the storage location, and the target file is displayed in the first folder.
5. The method according to claim 2, characterized in that: The simulator runs on a second application, and the method further includes: Displaying a virtual disk entry of the second application in the first area; After transferring the target file to the first application, the method further includes: In response to a trigger operation on the virtual disk entry, a file viewing page of the virtual disk is displayed, and files stored in the virtual disk are displayed in the file viewing page, wherein the files stored in the virtual disk include the target file.
6. The method according to claim 2, characterized in that The method further comprises: When a first file transmitted to the first application is deleted in the first operating system, displaying the first file in the first area in a target style; The target pattern is used to indicate that the first file has been deleted.
7. The method according to claim 1, characterized in that The method further comprises: In the application interface, a second area is displayed, where the second area is used to record a second file sent by a third application to the first application; The third application and the first application are run on different electronic devices, and the second file is stored in the first operating system; In the second area, a download control for the second file is displayed, and the download control is used to download the second file from the first operating system to the second operating system.
8. The method according to claim 1, characterized in that: Before transferring the target file to the first application, the method further includes: Displaying at least one candidate file and a determination control in an inactive state in the file selection interface, wherein the at least one candidate file includes the target file; In response to a selection operation on the target file, controlling the target file to be in a selected state, and controlling the determination control to switch from the inactivated state to the activated state; In response to a trigger operation on the determined control in the activated state, a selection instruction for the target file is received.
9. The method according to claim 1, characterized in that: The application interface is used to transfer files of a target type, and in response to a selection instruction for a target file, transferring the target file to the first application includes: In response to a selection instruction for a target file, when the type of the target file is consistent with the target type, transmitting the target file to the first application; The method further comprises: When the type of the target file is inconsistent with the target type, display a prompt message; The prompt information is used to prompt the file types that can be transferred to the first application.
10. The method according to claim 1, characterized in that The method further comprises: When the file size of the target file reaches a file size threshold, during the process of transferring the target file to the first application, an animation of transferring the target file from the second operating system to the first application is displayed, and the animation includes the transfer progress of the target file.
11. The method according to claim 10, characterized in that After displaying the animation of the target file being transferred from the second operating system to the first application, the method further includes: In response to a minimize instruction for a display window of the first application, minimize the display window; The display interface of the second operating system is displayed, and in the display interface, the transfer progress of the target file is displayed through a floating window.
12. The method according to claim 1, characterized in that The method further comprises: During the process of transferring the target file to the first application, displaying at least one operation control for the target file; Wherein, the operation control includes at least one of a pause control and a termination control, the pause control is used to pause the transmission process of the target file, and the termination control is used to terminate the transmission process of the target file; In response to a trigger operation on a target operation control among the at least one operation control, an operation indicated by the target operation control is performed on a transmission process of the target file.
13. The method according to claim 1, characterized in that The method further comprises: In the process of transferring the target file to the first application, in response to a display instruction for the file selection interface, displaying the file selection interface; Based on the file selection interface, in response to a selection instruction for other files, the other files are controlled to be transmitted to the first application in parallel with the target file.
14. The method according to claim 1, characterized in that After transmitting the target file to the first application in response to the selection instruction for the target file, the method further includes: During the transmission of the target file, the transmission speed of the target file is displayed, and the transmission speed is positively correlated with the object level of the triggering object of the selection instruction.
15. The method according to claim 1, characterized in that Before transmitting the target file to the first application in response to the selection instruction for the target file, the method further includes: In the application interface, a third area is displayed, and the third area is used to record a third file stored in the first operating system; After transmitting the target file to the first application in response to the selection instruction for the target file, the method further includes: In response to successfully transferring the target file to the first application, the target file is displayed in the third area.
16. The method according to claim 1, characterized in that A first area is displayed in the application interface, and the first area is used to record a first file transferred from the second operating system to the first application; After transmitting the target file to the first application in response to the selection instruction for the target file, the method further includes: In response to successfully transferring the target file to the first application, displaying the target file in the first area; Displaying a first delete control and a second delete control at a location associated with the target file; The first deletion control is used to delete the target file in the first area, and the second deletion control is used to delete the target file in the first operating system.
17. A file transmission device, characterized in that: The device comprises: A first display module, configured to display a file transfer control in an application interface of a first application, wherein the first application runs on a first operating system, and the first operating system is simulated by a simulator running on a second operating system; a second display module, configured to display a file selection interface in response to a trigger operation on the file transfer control, wherein the file selection interface is used to select a file stored in the second operating system; The transmission module is used to transmit the target file to the first application based on the file selection interface and in response to a selection instruction for the target file.
18. An electronic device, characterized in that: include: Memory for storing computer executable instructions or computer programs; A processor, configured to implement the file transfer method according to any one of claims 1 to 16 when executing the computer executable instructions or computer programs stored in the memory.
19. A computer-readable storage medium, characterized in that: Computer executable instructions or computer programs are stored, which are used to cause a processor to execute and implement the file transmission method described in any one of claims 1 to 16.
20. A computer program product comprising computer executable instructions or a computer program, characterized in that When the computer executable instructions or computer programs are executed by a processor, the file transmission method according to any one of claims 1 to 16 is implemented.