Cross-system file processing method and electronic device

By implementing cross-system file processing methods in electronic devices, the recent shortcomings of file review functions in the multi-operating system ecological fusion scenario have been solved, and the synchronization and unified display of file information between multiple operating systems has been realized, which has improved the user experience.

WO2025044443A1PCT designated stage expired Publication Date: 2025-03-06HUAWEI TECH CO LTD

Patent Information

Application Number
PCT/CN2024/101312
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-08-26
Filing Date
2024-06-25
Publication Date
2025-03-06

AI Technical Summary

Technical Problem

The recent file review function of existing electronic devices is limited to a single operating system and cannot meet the needs of multi-operating system ecological convergence scenarios.

Method used

By implementing a cross-system file processing method in an electronic device, using the file monitoring and management of the second system and the cross-system file refresh service of the first system, the file information synchronization between multiple operating systems and the unified display of the recent use interface is realized.

Benefits of technology

In the multi-operating system ecological fusion scenario, the recent file search function of multiple operating systems is realized, which improves the user experience, and users can easily access files recently processed in different systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024101312_06032025_PF_FP_ABST
    Figure CN2024101312_06032025_PF_FP_ABST
Patent Text Reader

Abstract

A cross-system file processing method and an electronic device. The method comprises: for an electronic device comprising a first system and a second system, when a user has recently completed processing of files in the second system, the files recently processed by the user in the second system can be displayed in a recently used file display interface provided by the first system. When detecting that the user performs a first processing operation on a first file by means of a second application in the second system, the electronic device displays, in response to the first processing operation, the first file in a first application interface corresponding to a first application in the first system. The first application interface is used for displaying recently processed historical files.
Need to check novelty before this filing date? Find Prior Art

Description

Cross-system file processing method and electronic device

[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on August 26, 2023, with application number 202311090780.9 and application name “A cross-system file processing method and electronic device”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The embodiments of the present application relate to the field of electronic technology, and in particular to a cross-system file processing method and electronic device. Background Art

[0003] Currently, electronic devices such as mobile phones offer a recently used file viewing function. After a user opens a file such as an image or document on an electronic device to browse or edit its contents, the electronic device can display the file on a recently used interface. This allows the user to access recently used files directly by opening the recently used interface on the electronic device.

[0004] However, the recent file access function provided by current electronic devices is limited and only supports simple scenarios of a single operating system, which cannot meet the needs of and The need to review recently used files in complex scenarios such as dual-system integration.

[0005] Summary of the Invention

[0006] The present application provides a cross-system file processing method and electronic device. In the ecological integration scenario of multiple operating systems, the electronic device can provide a function for viewing recently used files of multiple operating systems, thereby improving the user experience.

[0007] To achieve the above objectives, this application adopts the following technical solutions:

[0008] In a first aspect, a cross-system file processing method is provided, which is applied to an electronic device, wherein the electronic device includes a first system and a second system, and the method includes: performing a first processing operation on a first file through a second application, and the second application belongs to the second system; after receiving the first processing operation, displaying the most recently processed historical files in a first application interface, the most recently processed historical files include the first file, and the first application corresponding to the first application interface belongs to the first system.

[0009] Optionally, the second system may be run in a virtual machine or simulator of the electronic device. Operating system or operating system, the second system can be Operating system or operating system, the second system can run on the PC of the electronic device In. For example, the first system may be Operating system or operating system, the second system can be Operating system or operating system, the second system can run on the mobile Of course, the first system and the second system may also be other operating systems, which are not specifically limited in this application.

[0010] Optionally, the second application is an application installed on the second system. For example, the second system is When operating the system, the second application can be Version For example, the second system is an office application for processing a first document type. When the operating system is used, the second application may be a picture editing application such as a gallery, which is used to process the first file of the picture type. This application does not limit this.

[0011] Optionally, the first file may be an existing file on the electronic device, and the first processing operation may be a processing operation that can change the file information of the first file, such as the file location, file attributes, file content, etc., for example, a save operation after modifying the content of the first file, a rename operation on the first file, etc.

[0012] Optionally, the first file may be a newly created file by the electronic device, and the first processing operation may be an operation of creating a new file. That is, the user may create the first file through the second user. The creation completion may refer to creating and saving the file.

[0013] Optionally, the first application is an application installed on the first system, which can provide a function of viewing the history files recently processed. As an example, the first application interface of the first application can be used to display the history files recently processed. The user can operate the electronic device in various ways to enter the first application interface of the first application. For example, the first system is When the operating system is running, the first application is a file management application, and the first application interface can be a recently used interface. The user can enter the recently used interface through the icon of the file management application displayed on the desktop. For example, the first system is When operating the system, the first application is a file explorer, and the first application interface can be a quick access interface, which displays a list of recently used files. The user can access the quick access interface through the file explorer icon displayed on the desktop, or access the menu function interface through the start menu on the desktop, which displays a list of recently used files.

[0014] The solution provided in the first aspect above includes the following: when the electronic devices of the first and second systems detect that a user has executed a first processing operation (e.g., a modify and save operation) on a first file using a second application of the second system, the electronic device may, after receiving the first processing operation, display the first file in a first application interface (e.g., a recently used interface) provided by the first application of the first system. In this way, when the user needs to know the most recently used files, they can directly open the first application interface running and displayed in the first system to view the files most recently processed in the second system.

[0015] In a possible implementation, the first file may include at least one of a picture, a video, an audio, and a document. Thus, the user can view various types of files recently processed in the second system by opening the first application interface displayed in the first system.

[0016] In one possible implementation, after receiving the first processing operation, displaying the most recently processed historical files in the first application interface includes: after receiving the first processing operation, in response to the first processing operation, the second system sends the file information of the first file to the first system; the first system updates the file information of the first file to the file database; and the first system updates the display of the most recently processed historical files in the first application interface based on the updated file database. In this way, when the second system detects that the user performs the first processing operation (such as a modify and save operation) on the first file using a second application within its own system, the second system can transmit the relevant file information of the first file to the first system to notify the first system to update the most recently processed historical files displayed in the first application interface.

[0017] In a possible implementation, the file database may be a media library of the first system. Operating system or When operating the system, upon receiving the relevant file information of the first file transmitted by the second system, the first system can proactively update the relevant file information of the first file to the media library. Thus, upon detecting the media library update, the first application can proactively read the updated first file from the media library and display it on the first application interface. Optionally, the first file can be displayed first among all historical files on the first application interface to indicate that the first file is the most recently processed file.

[0018] In a possible implementation, the file database may be a registry of the first system, or a configuration file of the first system. Operating system or When operating the system, after receiving the relevant file information of the first file transmitted by the second system, the first system can proactively update the relevant file information of the first file to the registry or configuration file of the first system. Thus, when the first application perceives the registry or configuration file update, it can proactively read the updated first file in the registry or configuration file and display it in the first application interface.

[0019] In one possible implementation, the file information of the first file transmitted by the second system to the first system may include the file path of the first file. This allows the first system to find the first file based on the file path. The file path may include the disk partition and folder of the electronic device where the first file is stored, as well as the file name and file extension presented in the final folder. Optionally, when displaying the first file, the first application interface may also display the file path of the first file.

[0020] In one possible embodiment, the file path of the first file passed by the second system to the first system may refer to the file path of the first file in the second system, and the first system updates the file information of the first file to the file database, including: the first system performs path conversion on the file path of the first file in the second system to obtain the file path of the first file in the first system; the first system updates the file path of the first file in the first system to the file database. Since different systems store different path representations of the first file, after receiving the file path of the first file passed by the second system to the first system, the first system can first complete the path conversion of the first file to convert it into a file path recognizable by the first system. In this way, the first system can update the converted and recognizable file path of the first file to the file database to complete the content update of the first application interface.

[0021] Optionally, after converting the file path into a file path recognizable by the first system, the first system may verify the file path to see whether the file path is valid, and update the file database if the file path is valid.

[0022] In one possible implementation, the second system includes file monitoring management, and the first system includes a cross-system file refresh service. The second system sending file information of the first file to the first system in response to the first processing operation includes: in response to the first processing operation, the second system obtains the file information of the first file through the file monitoring management; and the second system sends the file information of the first file to the cross-system file refresh service in the first system. The first system updating the file information of the first file to the file database includes: the first system updating the file information of the first file to the file database through the cross-system file refresh service.

[0023] Understandably, due to the isolation between the different systems, the first system cannot monitor the user's file processing in the second system, resulting in the first application interface in the first system being unable to display the files recently processed by the user in the second system. Therefore, by adding a file monitoring service to the second system, when the user performs file processing operations in the second system, the file monitoring service can promptly monitor and send the relevant file information of the monitored files to the first system.

[0024] Since the first application interface displays the recently processed historical files by extracting file information from the file database of the first system, and the file database is usually refreshed actively by various applications in the first system. The application of the second system cannot refresh the file database. Therefore, by adding a file update service to the first system, after the first system receives relevant information about the changed files from the second system, the file update service can actively refresh the file database of the first system based on the relevant information about the changed files of the second system. In this way, the first application interface can refresh the recently processed historical file information displayed by itself after sensing the refresh of the file database.

[0025] In one possible embodiment, after the most recently processed historical files are displayed in the first application interface and the most recently processed historical files include the first file, the cross-system file processing method further includes: performing a second processing operation on the second file through a third application, and the third application belongs to the first system; after receiving the second processing operation, the most recently processed historical files are displayed in the first application interface, and the most recently processed historical files include the first file and the second file.

[0026] In this way, when the user uses the third application of the first system to perform a second processing operation (such as a modify and save operation) on the second file, the electronic device can also respond to the second processing operation and display the second file in the first application interface (such as a recently used interface) provided by the first application of the first system. In this way, when the user needs to know the most recently used files, he can directly open the first application interface running and displayed in the first system to view the files recently processed in the second system, or view the files recently processed in the first system.

[0027] Optionally, the first file and the second file may be the same file, that is, the user may use applications of different systems to process the same file. As an example, the first application interface may only display the information about the file processed by the user's most recent system. As another example, the first application interface may separately display the information about the file processed by the user's different systems.

[0028] Optionally, the first file and the second file may also be different files.

[0029] In a possible embodiment, after receiving the second processing operation, the above-mentioned display of the most recently processed historical files in the first application interface includes: after receiving the second processing operation, in response to the second processing operation, the first system updates the file information of the second file to the file database; the first system updates and displays the second file in the first application interface according to the updated file database, and the first application interface also includes the first file that was previously updated and displayed.

[0030] It is understandable that since the user uses the application of the first system to perform file processing operations, the application of the first system can proactively refresh the file database when it detects changes in the file information sent. Therefore, after the first application interface senses the file database refresh, it can correspondingly refresh the recently processed historical file information displayed by itself (including the second file currently processed by the user and the first file previously processed by the user). There is no need to refresh the file database through the above-mentioned file refresh service.

[0031] In one possible implementation, the first processing operation is an editing operation on the first file. The editing operation may include at least one of creating, modifying, and saving. Optionally, the editing operation may also include operations such as moving, sharing, and deleting the file. This application does not limit the editing operation.

[0032] In a possible embodiment, after the most recently processed historical files are displayed in the above-mentioned first application interface and the most recently processed historical files include the first file, the cross-system file processing method further includes: in response to a trigger operation for the first file in the first application interface, displaying the content interface of the first file through the second application; or in response to a trigger operation for the first file in the first application interface, displaying the content interface of the first file through the first application. In this way, the user can also quickly open the corresponding file content interface through the most recently processed historical files displayed in the first application interface. Optionally, when there is no application in the first system that has the ability to open the first file, the electronic device can display the content interface of the first file by starting an application in the second system (such as the second application, or other applications in the second system). When there is an application in the first system that has the ability to open the first file, the electronic device can display the content interface of the first file by starting an application in the first system. This application does not limit the way in which the electronic device opens the first file.

[0033] In a second aspect, an electronic device is provided, comprising a processing module and a display module. The processing module is configured to operate a first system and a second system. The processing module is further configured to perform a first processing operation on a first file via a second application, the second application belonging to the second system. The display module is configured to display recently processed history files in a first application interface after receiving the first processing operation, the recently processed history files including the first file, the first application corresponding to the first application interface belonging to the first system.

[0034] In a possible implementation, the first file may include at least one of a picture, a video, an audio, and a document.

[0035] In one possible embodiment, the processing module can be used to: after receiving the first processing operation, in response to the first processing operation, the second system sends the file information of the first file to the first system; the first system updates the file information of the first file to the file database; the first system updates and displays the most recently processed historical files on the first application interface based on the updated file database.

[0036] In a possible implementation, the file database may be a media library, a registry, or a configuration file of the first system.

[0037] In a possible implementation, the file information of the first file transmitted by the second system to the first system may include the file path of the first file.

[0038] In a possible implementation, the file path of the first file transmitted by the second system to the first system may refer to the file path of the first file in the second system. The above-mentioned processing module can be used for: the first system performs path conversion on the file path of the first file in the second system to obtain the file path of the first file in the first system; the first system updates the file path of the first file in the first system to the file database.

[0039] In one possible implementation, the second system includes file monitoring management, and the first system includes a cross-system file refresh service. The above-mentioned processing module can be used for: in response to the first processing operation, the second system obtains the file information of the first file through the file monitoring management; the second system sends the file information of the first file to the cross-system file refresh service in the first system; the first system updates the file information of the first file to the file database, including: the first system updates the file information of the first file to the file database through the cross-system file refresh service.

[0040] In one possible implementation, the processing module is further configured to perform a second processing operation on the second file via a third application, where the third application belongs to the first system. Accordingly, the display module is further configured to display recently processed history files in the first application interface after receiving the second processing operation, where the recently processed history files include the first file and the second file.

[0041] In one possible embodiment, the processing module is also used to: after receiving the second processing operation, in response to the second processing operation, the first system updates the file information of the second file to the file database; the first system updates and displays the second file on the first application interface based on the updated file database, and the first application interface also includes the first file that was previously updated and displayed.

[0042] In one possible implementation, the first processing operation is an editing operation on the first file, and the editing operation may include at least one of creating, modifying, and saving. Optionally, the editing operation may also include operations such as moving, sharing, and deleting the file.

[0043] In one possible embodiment, the display module is also used to: display the content interface of the first file through the second application in response to a trigger operation on the first file in the first application interface; or display the content interface of the first file through the first application in response to a trigger operation on the first file in the first application interface.

[0044] In a third aspect, an electronic device is provided, comprising one or more processors and one or more memories. The one or more memories are coupled to the one or more processors, and the one or more memories are configured to store computer program code. The computer program code comprises computer instructions, and when the one or more processors execute the computer instructions, the electronic device executes the cross-system file processing method of any possible implementation of the first aspect.

[0045] In a fourth aspect, a cross-system file processing device is provided. The device is included in an electronic device and has the function of implementing the electronic device behavior described in the first aspect and any of the possible implementations of the first aspect. The function can be implemented in hardware or by hardware executing corresponding software. The hardware or software includes one or more modules or units corresponding to the above-mentioned functions.

[0046] In a fifth aspect, a chip system is provided, comprising one or more interface circuits and one or more processors. The interface circuit and the processor are interconnected via a circuit. The interface circuit is configured to receive a signal from a memory of an electronic device and send the signal to the processor, the signal comprising a computer instruction stored in the memory. When the processor executes the computer instruction, the electronic device executes the cross-system file processing method of any possible implementation of the first aspect described above. The chip system may be composed of a chip, or may include a chip and other discrete components.

[0047] In a sixth aspect, a computer-readable storage medium is provided, on which computer program instructions are stored. When the computer instructions are executed on an electronic device, the electronic device executes the cross-system file processing method in any possible implementation of the first aspect.

[0048] In a seventh aspect, a computer program product comprising instructions is provided, which, when executed on an electronic device, enables the electronic device to implement a cross-system file processing method as in any possible implementation of the first aspect.

[0049] It can be understood that the beneficial effects that can be achieved by the electronic device of the second aspect, the electronic device of the third aspect, the device of the fourth aspect, the chip system of the fifth aspect, the computer storage medium of the sixth aspect, and the computer program product of the seventh aspect provided above can be referred to the beneficial effects of the first aspect and any possible implementation thereof, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] FIG1 is a first schematic diagram of an interface of an electronic device provided in an embodiment of the present application;

[0051] FIG2 is an implementation architecture diagram of a recently used interface provided by an embodiment of the present application;

[0052] FIG3 is a second schematic diagram of an interface of an electronic device provided in an embodiment of the present application;

[0053] FIG4 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;

[0054] FIG5 is a schematic diagram of the software structure of an operating system provided in an embodiment of the present application;

[0055] FIG6 is a flow chart of a cross-system file processing method provided in an embodiment of the present application;

[0056] FIG7 is a third schematic diagram of an interface of an electronic device provided in an embodiment of the present application;

[0057] FIG8 is a fourth schematic diagram of the interface of the electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0058] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application. In the following, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. It should be understood that in the present application, "at least one" refers to one or more, and "more" refers to two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships can exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural.

[0059] Currently, there are many types of electronic devices, and different types of electronic devices can be equipped with different operating systems. Based on the operating system installed on the electronic device, it can run application programs that match the operating system.

[0060] For example, when the electronic device is a personal computer (PC) (such as a desktop computer or a laptop computer), the electronic device may be equipped with Operating system or Operating system, corresponding to running applications in executable file format (i.e. applications with ".exe" as the file extension) or running Linux applications; when the electronic device is a mobile phone or tablet computer, the electronic device can be equipped with an Android operating system or Operating system, corresponding to running Android applications or app.

[0061] Since the operating mechanisms of applications on different operating systems are different, there are barriers to communication and interaction between different operating systems, and in many aspects, it is difficult to achieve simple and effective coordination and interface integration. Therefore, in general, applications on operating system A cannot be installed and run on operating system B. For example, applications on the Android operating system cannot be directly installed and run on On the operating system.

[0062] At present, in order to carry Running Android OS applications on a laptop with an operating system can be achieved through virtual machines or virtualization technologies, such as using Android simulators and Android containers. In this case, we can call the laptop the host machine, and the native operating system ( The host operating system (OS) is the host OS. Other operating systems running in emulators or containers on the host are called guest OSes. In this case, the guest OS can run on the host. The host creates a virtual hardware environment (including processors, memory, I / O devices, etc.) independent of the actual hardware for the emulator or container. This makes it possible for the guest OS to run in the virtual hardware environment on the host in the same way as running on the actual hardware.

[0063] Because of the communication and interaction barriers between different operating systems, the guest operating system in an emulator or container is isolated from the host operating system on the host machine. Therefore, the guest operating system and the host operating system each use their own applications to browse and process files.

[0064] at present, Operating systems such as Windows 10 and macOS can provide a recently used file viewing function. After a user opens a file such as an image or document through an application within the operating system to browse or edit the content, the operating system's file management application can display the file on the recently used interface, making it easier for the user to view recently used files.

[0065] For example, taking a tablet computer equipped with an Android operating system as an example, after the user opens the application interface of the album application as shown in (a) in Figure 1 on the tablet computer, he can edit one of the multiple pictures displayed in the application interface of the album application. For example, after the user clicks on the picture 101 in the application interface of the album application shown in (a) in Figure 1, the tablet computer displays the picture display interface as shown in (b) in Figure 1. The user can enter the picture editing interface as shown in (c) in Figure 1 by clicking on the editing control 102 provided by the picture display interface. When the user uses the various editing tool controls provided by the picture editing interface, a series of editing operations on the picture 101 are performed. Then, the user can save the edited picture 101 by clicking the save control 103 displayed in the upper right corner of the picture editing interface. At the same time, the tablet computer will display the edited picture 101 on the recently used interface for the user to view.

[0066] Alternatively, as shown in FIG2 , in the Android operating system, when a user creates and saves a new file using an Android application within the system, or edits and saves an existing file, the corresponding Android application will proactively refresh the media library. Upon detecting the refresh of the media library, the file management application of the Android operating system can access the media library according to a specific strategy, thereby displaying the newly created file or the saved edited file on its own recently used interface.

[0067] When a user needs to view recently used files, the user can click on the application icon 104 of the file management application on the desktop as shown in FIG3(a) to enter the file management interface as shown in FIG3(b). The file management interface may include a recently used control 105 for displaying recently used files and a browse control 106 for browsing all files in the tablet computer.

[0068] Optionally, when the user clicks the recently used control 105, the tablet computer may display a recently used interface on the file management interface, as shown in FIG3(b). The recently used interface is used to display recently used files, such as the recently edited image 101. Optionally, when the tablet computer enters the file management interface, the file management interface may default to displaying the recently used interface, without the user having to click the recently used control 105 to trigger it.

[0069] However, the above-mentioned recently used file query function is limited to single system scenarios such as the Android operating system. Operating system or For electronic devices running on a client operating system (i.e., an Android operating system), due to the communication and interaction barriers between different operating systems, applications in the client operating system cannot refresh the media library in the Android operating system (i.e., the host operating system). Therefore, in a multi-operating system ecosystem, the aforementioned recent use interface only displays files recently used by the user in the Android operating system (i.e., the host operating system). Users cannot easily find files recently used in the client operating system from the recent use interface, resulting in a poor user experience.

[0070] For example, the tablet computer is equipped with an Android operating system and Taking the operating system as an example, as shown in FIG3 (c), when the tablet receives a click operation from the user to open the office software application 107 on the PC, the tablet can display the document editing page of the office software as shown in FIG3 (d) through the PC application engine. After the user performs a series of editing operations such as adding, deleting, and moving content on the document editing page, and clicks the save control 108 in the upper right corner as shown in FIG3 (d), the tablet can save the edited document.

[0071] Since the user edits and saves the document using the office software application on the PC, the office software application on the PC is The Android operating system cannot monitor changes to the document. Therefore, the recently used interface running in the Android operating system cannot display the historical files recently processed by the user through the office software application on the PC. Therefore, when the user needs to view the recently used files, the user clicks the application icon 104 of the file management application of the Android operating system on the desktop as shown in (e) of Figure 3 to enter the file management interface as shown in (f) of Figure 3. The recently used files displayed in this file management interface do not display the document information processed by the user through the office software application on the PC.

[0072] In order to solve the above problems, an embodiment of the present application provides a cross-system file processing method, which can add file monitoring management in the client operating system and increase the communication mechanism between the client operating system and the Android operating system. When the file monitoring management detects that there is a file saving action in the application in the client operating system, it notifies the Android operating system (i.e., the host operating system) side to trigger the refresh of the media library. Therefore, after detecting the refresh of the media library, the file management application of the Android operating system (i.e., the host operating system) can read the media library according to a certain strategy, thereby displaying the newly created files or edited files saved by the user in the client operating system in its own recently used interface. In this way, when the user needs to know the files used recently, he can directly check them by opening the recently used interface. At this time, the user can not only easily find the files recently used in the Android operating system (i.e., the host operating system) in the recently used interface, but also can easily find the files recently used in the client operating system.

[0073] Among them, the cross-system file processing method provided in the embodiment of the present application is mainly based on a virtual machine (such as an emulator, container, etc.) running on an electronic device, wherein the virtual machine can provide an operating environment independent of the native operating system (i.e., the host operating system) of the electronic device. The electronic device can run an operating system (i.e., a client operating system) different from the native operating system of the electronic device in the virtual machine based on the operating environment provided by the virtual machine to provide an application running experience different from that provided by the native operating system. For example, although the Android operating system on the electronic device cannot run computer-side applications, the electronic device can run computer-side applications based on the operating environment provided by the virtual machine.

[0074] In some embodiments, the electronic device may be installed with emulator software. By installing the emulator software, the electronic device can provide an operating environment independent of the native operating system of the electronic device and implement a cross-system file processing method provided in the embodiments of the present application. The embodiments of the present application do not limit the emulator software.

[0075] As an example, when the host operating system is an Android operating system, a PC simulator can be installed in the Android operating system to run PC programs on the Android operating system. Operating system or Operating system (i.e. client operating system). In this way, users can run PC application software directly on their mobile phones or tablets, achieving more complex office needs that cannot be achieved by Android applications.

[0076] The electronic devices described in this application may include, but are not limited to, smartphones, netbooks, tablet computers, personal computers (PCs) (such as desktop computers or laptops), PDAs, in-vehicle devices, wearable devices (such as smart watches, smart bracelets, smart glasses, etc.), smart TVs, projection devices, smart screen devices, augmented reality (AR) / virtual reality (VR) devices, mixed reality (MR) devices, and other electronic devices. This application does not limit the specific functions and structures of the electronic devices.

[0077] As an example, please refer to Figure 4, which shows a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. As shown in Figure 3, the electronic device may include a processor (such as a central processing unit (CPU)) 410, a memory (including an external memory interface 420 and an internal memory 421), a sensor module 430 and a display screen 440. Among them, the sensor module 430 may include a touch sensor 431. Optionally, the sensor module 430 may also include a pressure sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, an ambient light sensor, a bone conduction sensor, etc.

[0078] It is understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device. In other embodiments of the present application, the electronic device may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The illustrated components can be implemented in hardware, software, or a combination of software and hardware. For example, the electronic device may also include a universal serial bus (USB) interface, a charging management module, a power management module, a battery, an antenna, a mobile communication module, a wireless communication module, a speaker, a receiver, a microphone, a headphone jack, buttons, a motor, an indicator, a camera, etc.

[0079] The processor 410 may include one or more processing units. For example, the processor 410 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a flight controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors.

[0080] Processor 410 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 410 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 410. If processor 410 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 410 latency, and thus improves system efficiency.

[0081] In some embodiments, the processor 410 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface.

[0082] The I2C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 410 may include multiple I2C busses. The processor 410 can be coupled to the touch sensor 431 via the I2C interface, enabling communication between the processor 410 and the touch sensor 431 via the I2C bus interface, thereby implementing the touch function of the electronic device.

[0083] In an embodiment of the present application, the processor 410 can obtain the user's click operation on the save control detected by the touch sensor 431 through the I2C bus interface, and thus respond to the click operation and execute the cross-system file processing method of the embodiment of the present application.

[0084] Among them, the touch sensor 431 is also called a "touch panel". The touch sensor 431 can be set on the display screen 440, and the touch sensor 431 and the display screen 440 form a touch screen, also called a "touch screen". The touch sensor 431 is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation (including information such as touch position, touch force, contact area and touch duration) to the processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 440. In other embodiments, the touch sensor 431 can also be set on the surface of the electronic device, which is different from the position of the display screen 440.

[0085] In an embodiment of the present application, the touch operation detected by the touch sensor 431 can be an operation performed by a user through a finger on or near the touch screen, or it can be an operation performed by a user using a touch-assistive tool such as a stylus, a touch pen, or a touch ball on or near the touch screen. This application does not limit this.

[0086] The external memory interface 420 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device. The external memory card communicates with the processor 410 through the external memory interface 420 to implement data storage.

[0087] Internal memory 421 can be used to store computer executable program code. For example, computer programs can include operating system programs and application programs. The operating system can include but is not limited to apple etc. operating systems. Among them, the executable program code includes instructions. The processor 410 executes various functional applications and data processing of the electronic device by running the instructions stored in the internal memory 421. The internal memory 421 may include a program storage area and a data storage area. Among them, the program storage area may store the operating system, at least one application required for a function, etc. The data storage area may store data created during the use of the electronic device (such as input events, file information), etc. In addition, the internal memory 421 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 410 executes various functional applications and data processing of the electronic device by running the instructions stored in the internal memory 421, and / or the instructions stored in the memory provided in the processor.

[0088] In the embodiments of the present application, the electronic device can implement display functions using a GPU, display screen 440, and an application processor. The GPU is a microprocessor for image processing that connects the display screen 440 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics drawing and rendering. The processor 410 may include one or more GPUs that execute program instructions to generate or change display information.

[0089] In an embodiment of the present application, the electronic device can be responsible for completing the drawing and rendering of the first application interface through a virtual GPU in a guest operating system running in a virtual machine. The first application corresponding to the first application interface belongs to the guest operating system.

[0090] Display screen 440 is used to display images, videos, and other interfaces. Display screen 440 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a MiniLED, a MicroLED, a Micro-oLed, or a quantum dot light-emitting diode (QLED). In some embodiments, the electronic device can include one or N display screens 440, where N is a positive integer greater than one.

[0091] In the embodiment of the present application, the electronic device can display the application interface (such as the first application interface) drawn and rendered by the operating system running in the virtual machine through the display screen 440. The electronic device can also display the application interface (such as the second application interface) drawn and rendered by the native operating system of the electronic device through the display screen 440.

[0092] The methods in the following embodiments can all be implemented in an electronic device having the above hardware structure.

[0093] In the embodiment of the present application, the electronic device can be referred to as a host machine, and the native operating system installed in the electronic device can be referred to as a host operating system (Host OS). The electronic device can also load a client operating system on top of the host operating system. Optionally, the operating system that the electronic device can carry can include but is not limited to common operating system, operating system, operating system, operating system, operating system, The host operating system can be any one of them, and the guest operating system can be any one of them. The host operating system and the guest operating system can be the same or different. The embodiments of the present application do not limit the host operating system and guest operating system installed in the electronic device.

[0094] In embodiments of the present application, a guest operating system can be run on a host operating system in the form of an emulator or virtual machine. The host operating system creates a virtual hardware environment (including processors, memory, I / O devices, etc.) independent of the actual hardware for the guest operating system. This allows the guest operating system to run in the virtual hardware environment of the host operating system indistinguishable from running on the actual hardware. In this way, an electronic device can run application software of other operating systems within the host operating system by providing a virtual operating system operating environment within the host operating system.

[0095] It is understandable that, usually, applications on the client operating system cannot be directly installed and run on the host operating system. For example, applications on mobile phones or tablets ( Application) cannot be directly installed and run on the PC At this point, we can use "simulation" or "virtualization" to install and run mobile phone applications on the PC. On the operating system. For example, PC applications (such as Apps) cannot be directly installed and run on mobile phones or tablets At this point, we can also use "simulation" or "virtualization" to install and run PC applications on mobile phones or tablets. On the operating system.

[0096] The following will take the host operating system as Operating system, the client operating system is Taking the operating system as an example, the software architecture of electronic devices is introduced.

[0097] As shown in Figure 5, The operating system may include the application layer, the application framework layer (framework, FWK), the system library, the Android runtime and the kernel layer.

[0098] The application layer may include a series of application packages, such as camera, gallery, music, video and other applications. For the convenience of description, the application will be referred to as application below. The above application can be a native application (such as an application integrated in the operating system) or a third-party application (such as an application downloaded and installed by the user through an application store), which is not limited in the embodiment of the present application. In the embodiment of the present application, the application layer may include a file management application for managing files such as pictures, music, videos, documents, etc. stored on the electronic device.

[0099] In some embodiments, the file management application may provide a review function for recently used files.

[0100] Optionally, in an ecological integration scenario, the application layer also includes simulator software, such as PC Used to achieve cross-system display. In the embodiment of the present application, the simulator can run Multiple tasks under the operating system, the simulator can render the interface of the running task, The operating system applies for the display window of the interface. The operating system sends interface data to achieve Operating system cross-system display The purpose of the interface corresponding to the above tasks running in the operating system.

[0101] The application framework layer provides an application programming interface (API) and programming framework for applications in the application layer. In this embodiment, as shown in Figure 5, the application framework layer includes a cross-system file refresh service (FileService), which receives file changes from the client operating system and proactively refreshes the media library based on the received file information. Upon detecting a media library refresh, the file management application in the application layer can proactively read the media library according to a specific strategy, displaying the changed files in its recently used interface.

[0102] In some scenarios, different operating systems may implement the recently used file lookup function in different ways. For example, when the host operating system is Under the operating system, the file explorer can display the recently used interface, and the file explorer can read the recently used file information from the registry or configuration file. In this case, The operating system may also include a cross-system file refresh service (FileService) for proactively refreshing the registry or configuration file upon receiving file information changes transmitted by the client operating system. This allows the file explorer to refresh the recently used interface accordingly upon sensing the registry or configuration file refresh.

[0103] In some embodiments, the application layer may include an agent software program that can autonomously perform tasks and interact with other intelligent agent software programs and environments, such as a Shell agent application, an Agent agent application, etc. A common application in the operating system that can be used to implement the Guest operating system (i.e. The recently used files of the operating system) are triggered to actively refresh the media library. The agent software program may include the above-mentioned FileService.

[0104] Optionally, the application framework layer may further include a window manager, an activity manager, content providers, a view system, a telephony manager, a resource manager, a notification manager, etc. The embodiments of the present application are not limited thereto.

[0105] Among them, the window manager (also known as the window management service (WMS)) carries data and attributes related to the "interface" and is used to manage states related to the "interface", such as managing window programs and event dispatching. Managing window programs includes outputting to the physical screen or other display devices in an orderly manner with the assistance of the application server and WMS according to the display request of the application. Event dispatching refers to dispatching user events from the keyboard, physical buttons, touch screen, mouse, etc. to the corresponding controls or windows. The window management service can also obtain the size of the display screen, determine whether there is a status bar, lock the screen, capture the screen, etc. In an embodiment of the present application, managing the window program is also used to complete the rendering of the interface in an orderly manner with the assistance of the application server and WMS according to the display request of the application.

[0106] The activity manager (also known as the activity management service (AMS)) manages activities, starting, switching, and scheduling components in the system, as well as managing and scheduling applications. The view system is used to build the application's display interface. The view system includes visual controls, such as buttons like the Save button.

[0107] The system library and Android runtime contain functional functions that need to be called by the application framework layer. The Android runtime includes a core library and a virtual machine. The system library can include multiple functional modules. For example: as shown in Figure 5, the system library includes a media library (Media Store), a rendering module, and a layer synthesis module. Among them, the media library supports a variety of commonly used audio and video format playback and recording, as well as static image files, etc. The rendering module is responsible for the layer drawing and rendering of the interface. The layer synthesis module is responsible for the layer synthesis of the interface. For a detailed introduction to the system library, please refer to conventional technology.

[0108] in, When the operating system's file editing applications (such as gallery, photo album, etc.) detect that the user has created, edited, saved, or other processing operations on a file, the application will proactively refresh the file path of the user's processed file to the media library. The file management application of the operating system can detect the refresh of the media library and read the media library according to a certain strategy to display it in the recently used interface.

[0109] In the embodiment of this application, The operating system's FileService will also actively refresh the media library based on the received file information after receiving the changed file information transmitted by the client operating system.

[0110] The kernel layer is the layer between hardware and software. For example, the kernel layer may include display drivers, sensor drivers, input / output device drivers (such as keyboard drivers, touch screen drivers, microphone drivers, etc.), camera drivers, audio drivers (such as headphone drivers, speaker drivers, etc.), wireless drivers, USB drivers, Bluetooth drivers, etc.

[0111] As shown in Figure 5, An operating system has a layered architecture, primarily divided into kernel mode and user mode. User mode includes user applications, including a range of applications such as Office 1 and Office 2, Camera, Gallery, Music, and Video. Kernel mode comprises the hardware abstraction layer (HAL), the kernel and device driver layers, the executive, and the windowing and graphics system.

[0112] The hardware abstraction layer enables The operating system can be ported to various hardware platforms. The hardware abstraction layer is a loadable kernel module that can provide a unified service interface for different hardware platforms.

[0113] The kernel and the device driver layer (ie The kernel is composed of a set of low-level operating system functions, such as thread scheduling, interrupt and exception handling, and multi-processor synchronization. Device drivers (also known as device drivers) within the kernel and device driver layer are primarily responsible for user threads initiating I / O requests. Device drivers are primarily categorized into the following types: hardware device drivers, file system drivers, file system filter drivers, network redirection drivers, protocol drivers, and kernel churn filter drivers.

[0114] The executive body includes basic operating system services, such as memory management, process and thread management, security management, I / O management, network and cross-process communication management, power management, configuration management, driver management, object management, etc. In the embodiment of the present application, the executive body may include file monitoring management for monitoring Changes to files in the operating system, such as opening, closing, moving / renaming, deleting, creating, or changing attributes.

[0115] In the embodiment of the present application, when the user uses After an application in the operating system creates a new file and saves it, or edits an existing file and saves it, the file monitoring management can monitor the changes in the file and send the relevant information of the changed file to the system. Operating system and Communication mechanism between operating systems, passing to A cross-system file refresh service in an operating system, wherein the file-related information may include the file's path address.

[0116] Optionally, file monitoring management can be A file monitoring mechanism of the operating system kernel, such as Inotify, which can monitor File changes in the operating system. For example, when a user uses After an application in the operating system creates, edits, or saves a file, Inotify will monitor the creation, editing, or saving of the file. In the embodiment of the present application, when Inotify monitors the creation, editing, or saving of the file, it can obtain the file information (such as the file path) of the corresponding file and pass the file information to the server. Operating system and Communication mechanism between operating systems, notifying FileService in the operating system. After obtaining the file information, FileService will automatically refresh Media library in the operating system.

[0117] In some embodiments, file monitoring management can also be arranged in user mode. The layout in the operating system is not limited.

[0118] Optionally, the execution body may also include a cross-system communication component for communicating between operating systems in an ecological integration scenario, realizing cross-system display features, etc. For example, for a simulator scenario, a cross-system communication component such as a PC Components responsible for implementing PC Unique features, as well as communication between the Host operating system and the Guest operating system.

[0119] The window and graphics system is mainly used to implement graphical user interface (GUI) functions, such as window processing, generation of user interface controls within windows, and drawing of interface layers within windows.

[0120] Typically, GUI applications require opening windows (i.e., display windows). A typical window includes multiple components, such as a title bar, a menu bar, and a main display area. Among them, the title bar may include an application icon and / or a window title. The main display area is generally used to place the function controls, interface content, etc. of the window. In an embodiment of the present application, the window and graphics system can be used to support electronic devices to display interfaces of tasks running across systems through display windows (such as small window interfaces such as floating interfaces and picture-in-picture interfaces).

[0121] It is understandable that the architecture shown in FIG5 of the present application does not constitute a specific limitation on the host operating system and the guest operating system, which depends on the specific operating system. Operating system and The specific software architecture of the operating system can refer to conventional technologies, and this application is only used as an example.

[0122] The following will take the client operating system as the second system and the host operating system as the first system as an example to specifically introduce a cross-system file processing method provided in an embodiment of the present application.

[0123] As shown in FIG6 , a cross-system file processing method provided by an embodiment of the present application may include S601 and S602:

[0124] S601: The electronic device performs a first processing operation on a first file through a second application, where the second application belongs to a second system.

[0125] In an embodiment of the present application, the electronic device is installed with a first system, which can be called a host operating system. The electronic device can also be loaded with a second system on top of the first system through an emulator or container, which can be called a client operating system.

[0126] Optionally, the operating system that the electronic device can carry may include but is not limited to common operating system, operating system, operating system, operating system, operating system, The first system can be any one of the operating systems, and the second system can be any one of the operating systems. The first system and the second system can be the same or different. The embodiments of the present application do not limit the first system and the second system installed in the electronic device.

[0127] In an embodiment of the present application, a first application can be installed and run on a first system, and a second application can be installed and run on a second system. The first application can provide the user with a function for viewing recently processed historical files, and the second application can provide the user with a file processing function.

[0128] Optionally, the first file may be a multimedia file such as an image, audio, video, document, compressed package, or folder. The present embodiment of the application does not limit the file type. The first processing operation performed on the first file may be an editing operation on the first file. The editing operation may include creating, editing, saving, moving / renaming, or changing attributes. The present embodiment of the application does not limit the editing operation.

[0129] In the embodiment of the present application, when a user needs to process a file, the user can process the file through the second application in the second system. Here, the file processed by the second application in the second system can be defined as the first file.

[0130] As an embodiment, the electronic device may display a second application interface, which may be used to present the first file to be processed. The second application interface may be a file browsing interface for displaying at least one file (including the first file) that can be processed by the second application. It may be the main interface of the second application or another page of the second application. The user may perform the first processing operation on the first file in the second application interface.

[0131] As an example, the second system is When operating the system, the second application can be Version, Versions that can run on The second application interface of the office application on the operating system can be Version file browsing interface, Version file browsing interface, etc.

[0132] Optionally, the second system is When operating the system, the second application may also be a file viewing application for viewing or editing multimedia files such as pictures, audio, and video. The embodiment of the present application does not limit the type of the second application.

[0133] As another example, the second system is When operating the system, the second application can be an application for viewing or editing pictures or videos, or a multimedia editing application for viewing or editing audio or video. This embodiment of the application does not limit the type of the second application.

[0134] Optionally, when the electronic device receives a trigger operation from the user to open a second application, the electronic device may display a second application interface corresponding to the second application.

[0135] Optionally, when the electronic device displays a second application interface corresponding to the second application, the second application interface may not include the first file. The second application interface may provide a function control for creating a new file. When the user clicks the function control on the second application interface, a new file may be created and saved on the second application interface. The new file may be the first file.

[0136] Optionally, the trigger operation can be a user clicking on a related icon or control of the second application on the desktop of the second system, or it can be a user's voice instruction operation, command input operation, preset gesture operation or other operations, which is not limited in the embodiments of this application.

[0137] Optionally, the trigger operation can be input by the user through touch, or by using an input device (such as a mouse, keyboard, microphone, etc.), which is not limited in the embodiment of the present application.

[0138] As an example, the second application interface of the second application may include an options control corresponding to the first file. The options control is used to instruct the electronic device to open the first file. When the electronic device displays the second application interface of the second application under the control of the user, if the user clicks the options control corresponding to the first file, the electronic device may respond to the click and display the content interface of the first file.

[0139] For example, as shown in FIG7 (a), when the tablet computer receives a click operation from a user to open office software application 701 on a PC, the tablet computer may display a file browsing interface of the office software as shown in FIG7 (b). The file browsing interface may display at least one document file on the tablet computer. The first file may be Document 1.

[0140] As an example, the second application interface of the second application may also include a file creation control, which is used to instruct the electronic device to create a new file. When the electronic device displays the second application interface of the second application under the control of the user, if a click operation of the user on the creation control of the file is received, the electronic device can respond to the click operation and display the content interface of the newly created file (such as the newly created first file). Optionally, the electronic device can also respond to the click operation and display the option control of the newly created file (such as the newly created first file). If a click operation of the user on the option control of the newly created file (such as the newly created first file) is received, the electronic device can respond to the click operation and display the content interface of the newly created file (such as the newly created first file).

[0141] Optionally, the first processing operation performed by the user on the first file in the second application interface may be a save operation performed after opening the first file and performing an editing operation such as adding, deleting, modifying, or moving the file content. Optionally, the first processing operation performed by the user on the first file in the second application interface may be a save operation performed after creating the first file.

[0142] It is understood that the save operation can indicate that the electronic device user has confirmed the file information changes caused by the aforementioned editing of the first file. In the embodiment of the present application, the electronic device can execute the cross-system file processing method of the present application after detecting the user's save operation on the file.

[0143] In some embodiments, the first processing operation performed on the first file by the second application may also be a sharing operation on the first file. The electronic device may execute the cross-system file processing method of the present application after detecting the user's sharing operation on the file.

[0144] As an example, the first file may be shared with other users via an instant messaging application. In at least one document displayed in the application interface of the version, long pressing the option control of the first file, such as document 1, can display various sharing functions for the document 1. hour, The operating system can be started The version of the application displays the user's WeChat chat interface, so that the user can select a chat partner to share. The operating system can detect the sharing operation on the first file, thereby executing the cross-system file processing method of the present application.

[0145] As an example, the user can also share the first file with other users by triggering the file sharing function in the chat interface of the instant messaging application. The operating system can call a second application (such as a file explorer) to display at least one file to be shared (including the first file). When the user chooses to share the first file, The operating system can detect the sharing operation of the first file, and thus can execute the cross-system file processing method of the present application. It can be understood that the above-mentioned first processing operation is only an example, and the embodiment of the present application does not limit the specific method of the first processing operation.

[0146] S602: In response to the first processing operation, display a first file in a first application interface. The first application corresponding to the first application interface belongs to a first system. The first application interface is used to display recently processed historical files.

[0147] In the embodiments of the present application, the first application can be installed and run on the first system. The first application can provide a function for viewing recently processed files. Here, the interface in the first application for displaying recently processed files is defined as the first application interface.

[0148] As an example, when the first system is an operating system, the first application can be a file management application, and the first application interface can be the recently used interface of the file management application, etc. As shown in (b) of Figure 3.

[0149] As another example, when the first system is an operating system, the first application can be a file explorer, and the first application interface can be the quick access interface in the file explorer, etc.

[0150] Optionally, when the first system is an operating system, the first application can be a menu application, and the first application interface can be the interface of the recently used card in the menu interface, etc. The embodiments of the present application do not limit the type of the first application.

[0151] When the user performs a first processing operation on the first file through the second application, the information of the first file changes. At this time, the second system can monitor the changed first file and transmit the file information of the first file to the first system through the communication mechanism between the first system and the second system. Thus, the first system can display the first file in the first application interface of the first application according to the received file information of the changed first file. Thus, the user can know the file information that they have recently used in the second system in the first application interface of the first system.

[0152] Among them, the file information of the first file may include the file path. The file path may refer to which disk partition, which folder (directory) and the final name of this file, as well as the file type extension on the electronic device where the file is located. For example, C / dum / document1.docx. Optionally, the file information of the first file may also include other information such as the file type, modification date, etc., which are not limited in the embodiments of the present application.

[0153] As an example, the first processing operation can be an edit and save operation on the first file. In this way, when the user uses the second application of the second system to edit and save the first file, the second system can monitor the changed content of the first file and transmit the file information of the first file to the first system through the communication mechanism between the first system and the second system. In this way, the first system can display the first file in the first application interface of the first application based on the received file information of the changed first file. In this way, the user can know the file information that he or she recently edited in the second system in the first application interface of the first system.

[0154] For example, as shown in FIG7(b), when a user clicks the option control 702 of Document 1 (the first file) in the file browsing interface of the office software, the tablet computer can open Document 1 and display the editing page of Document 1 as shown in FIG7(c). After the user performs a series of editing operations such as adding, deleting, and moving content on the editing page, and clicks the save control 703 in the upper right corner as shown in FIG7(c), the tablet computer can save the edited Document 1.

[0155] At this point, the tablet runs a virtual machine or emulator The operating system (second system) can be Operating system and The communication mechanism between operating systems passes the file path of document 1 with changed content to operating system. The file management application of the operating system can display the user's most recently used files in the recent use interface. Documents edited in the operating system1.

[0156] For example, when a user needs to view recently used files, the user can click on the application icon 801 of the file management application on the desktop as shown in FIG8 (a) to enter the file management interface as shown in FIG8 (b). The file management interface may include a recently used interface for displaying recently used files. For example, a document 1 802 that the user recently edited in an office software application on a PC is displayed.

[0157] As another example, the first processing operation may be a sharing operation on the first file. In this way, when the user shares the first file with other devices or other users in the second application of the second system, the user can know the file information that he has recently shared in the second system in the first application interface of the first system.

[0158] As another example, the first processing operation may be an editing operation such as adding, deleting, modifying, or moving the first file. Thus, after the user edits the first file in the second application of the second system, regardless of whether the edited content is saved, the user can also see the file information recently edited in the second system in the first application interface of the first system.

[0159] Optionally, the first processing operation can be input by the user through touch, or by using an input device (such as a mouse, keyboard, microphone, etc.), which is not limited in the embodiment of the present application.

[0160] In one scenario, a file monitoring management function capable of monitoring changes in file information in real time is added to the second system. For example, file monitoring management can be implemented through Inotify (a Linux kernel mechanism). Inotify can monitor the creation, editing, saving, and other related operations of files in the second system in real time. Therefore, after detecting the user's save operation on the first file, Inotify can transmit the file path of the first file to the first system through the communication mechanism to update it to the media library in the first system. The embodiments of the present application do not limit the implementation of file monitoring management.

[0161] Optionally, a message transmission channel for cross-system communication, such as a socket or pipe, may be established between the first system and the second system of the electronic device, so that the second system running in the simulator or container can send changed file information through the message transmission channel.

[0162] Optionally, after detecting the first processing operation of the user on the first file, the file monitoring management may first determine whether the file type of the first file is a preset type, wherein the preset type is a file type that can be displayed on the first application interface.

[0163] For example, if a first application interface displays only a list of office document files, upon detecting a user's first processing operation on a first file, the file monitoring module may first determine whether the first file is of a document type. If so, the file monitoring module may transmit the file path of the first file to the first system via a communication mechanism. If not, the file monitoring module may ignore the operation and not transmit the file information.

[0164] In some scenarios, when the first processing operation is a sharing operation on the first file, Inotify may not be able to monitor the user's sharing operation on the first file. Therefore, the second system can also add sharing monitoring management that can monitor the user's sharing operation on the file in real time. When the user's sharing action on the first file is detected, the file path of the first file can be transmitted to the first system through the communication mechanism to be updated in the media library of the first system. The embodiments of the present application do not limit the implementation of sharing monitoring management.

[0165] The first system can be equipped with a cross-system file refresh service that receives the file path of the first file from the second system and, based on the received file path, proactively refreshes the media library to update the changed first file to the media library. The cross-system file refresh service can be an agent application in the first system that can autonomously execute tasks and interact with other agent applications and environments. For example, an agent application or a shell application can be used.

[0166] It is understandable that the purpose of the proxy application is to achieve a specific goal. In the embodiment of the present application, the goal of the proxy application is to monitor the information of the file transmitted by the second system and to actively refresh the media library.

[0167] Optionally, the cross-system file refresh service may also be other applications of the first system, such as a system service. The embodiment of the present application does not limit the cross-system file refresh service in the first system.

[0168] In an embodiment of the present application, the first application in the first system can sense the update of the media library, and when sensing the update of the media library, it can actively read the updated file information in the media library and refresh the content of the first application interface based on the updated file information. The first file that is about to change is displayed in the first application interface.

[0169] In some embodiments, since the file path representation of the first file is different in different systems, the cross-system file refresh service can first perform path conversion after receiving the file path of the first file to convert the file path of the first file in the second system into the file path of the first file in the first system, and then refresh the file path of the first file in the first system into the media library.

[0170] Optionally, the cross-system file refresh service can also verify the validity of the file before refreshing the file path of the first file in the first system into the media library. If the converted file path of the first file in the first system is invalid, such as if the first file cannot be found at the file path, the cross-system file refresh service can stop refreshing the file path of the first file in the first system into the media library. Thus, the file path of the first file in the first system can only be refreshed into the media library if the file path of the first file is determined to be valid.

[0171] Optionally, the system library in the first system may store a path conversion mapping table. When the cross-system file refresh service receives the file path of the first file transmitted by the second system, the file path of the converted first file in the first system may be determined through the path conversion mapping table.

[0172] In some scenarios, different systems may implement the function of looking up recently processed files in different ways. Therefore, the recently processed files displayed on the first application interface may not be realized by reading the media library.

[0173] As an example, when the first system is operating system, operating system, When operating the system, you can refresh the display of recently processed files by reading file information in the media library.

[0174] As another example, when the first system is operating system, When operating systems such as operating systems, the most recently processed files can also be refreshed and displayed by reading the registry of the first system. In this case, after detecting the user's save operation on the first file, Inotify can pass the file path of the first file to the first system through the communication mechanism to update the registry in the first system. The cross-system file refresh service in the first system can receive the file path of the first file passed by the second cross-system file, and actively refresh the registry based on the received file path of the first file to update the changed first file to the registry. In this way, when the first application in the first system perceives the update of the registry, it actively reads the updated file information in the registry and refreshes the content of the first application interface based on the updated file information. The first file that is about to change is displayed in the first application interface.

[0175] As another example, when the first system is operating system, When operating a system, it is also possible to refresh and display the most recently processed files by reading the configuration file of the first system. In this case, after detecting the user's save operation on the first file, Inotify can pass the file path of the first file to the first system through the communication mechanism to update the configuration file in the first system. The cross-system file refresh service in the first system can receive the file path of the first file passed by the second cross-system file, and actively refresh the configuration file based on the received file path of the first file to update the changed first file to the configuration file. In this way, when the first application in the first system perceives the update of the configuration file, it actively reads the updated file information in the configuration file and refreshes the content of the first application interface based on the updated file information. The first file that is about to change is displayed in the first application interface.

[0176] In the embodiments of the present application, such media libraries, registry tables, configuration files, etc. capable of storing file change information can be defined as file databases. The embodiments of the present application do not limit the presentation form of the file database. It can also be other resource libraries capable of storing file change information.

[0177] In some scenarios, users can also quickly open files from recently used files.

[0178] Optionally, the user may perform a trigger operation on the first file in the first application interface, so that the electronic device can quickly display the content interface of the first file in response to the trigger operation.

[0179] Optionally, in response to the triggering operation, the electronic device can quickly display the content interface of the first file through the second application of the second system. In this way, when the user clicks on a file in the recently used interface, the electronic device can open the content interface of the file through the application that the user previously used to process the file.

[0180] Optionally, in response to the triggering operation, the electronic device can also quickly display the content interface of the first file through the first application of the first system. For example, when the user clicks on a file in the recently used interface of the file management application, the electronic device can open the content interface of the file through the file management application.

[0181] Optionally, in response to the triggering operation, the electronic device may also open the content interface of the first file through other applications in the first system that are capable of viewing or editing the first file.

[0182] When the electronic device cannot view or edit the first file using an application in the first system, the electronic device may also respond to a user's trigger operation on the first file in the second application interface and open the content interface of the first file through an application in the second system that can view or edit the first file.

[0183] Optionally, in response to the triggering operation, the electronic device may also provide an option of at least one application that can view or edit the first file, allowing the user to select which application to open the content interface of the first file. The at least one application may include an application in the first system or an application in the second system, which is not limited in this application.

[0184] In some scenarios, the recently processed files displayed on the first application interface include not only the files recently processed by the user in the second system, but also the files recently processed by the user in the first system.

[0185] As an example, a third application can be installed and run on the first system. When a user performs a second processing operation on a file through the third application, the electronic device can also respond to the second processing operation and display the file in the first application interface. Here, the file processed by the third application in the first system can be defined as a second file.

[0186] Optionally, the second file may be a multimedia file such as an image, audio, video, document, compressed package, or folder. The embodiment of the present application does not limit the type of the second file. The second processing operation on the second file may be creating, editing, saving, moving / renaming, or changing attributes. The embodiment of the present application does not limit the second processing operation method. The second file may be the same as or different from the first file.

[0187] As an embodiment, the electronic device may display a third application interface, which may be used to present the second file to be processed. The third application interface may be a file browsing interface for displaying at least one file (including the second file) that can be processed by the third application. It may be the main interface of the third application or another page of the third application. The user may perform the second processing operation on the second file in the third application interface.

[0188] As an example, the first system is When operating the system, the third application may be an application for viewing or editing pictures or videos, such as a photo album or gallery. The third application interface may be an image management interface or a video management interface of an application such as a photo album or gallery. As an example, the third application may also be a multimedia editing application for viewing or editing audio or video. The third application interface may be an image management interface or a video management interface.

[0189] Optionally, when the electronic device receives a trigger operation from the user to open a third application, for example, the user clicks on the application icon of the third application on the desktop of the first system, the electronic device can display a third application interface corresponding to the third application.

[0190] Optionally, when the electronic device displays a third application interface corresponding to the third application, the third application interface may include at least one file to be processed (including the second file). Optionally, the third application interface may not include a file, waiting for the user to create and save a file.

[0191] As an example, the third application interface corresponding to the third application may include an options control corresponding to the second file. The options control is used to instruct the electronic device to open the second file. When the electronic device, under the control of the user, displays the third application interface of the third application, if the user clicks the options control corresponding to the second file, the electronic device may respond to the click and display the content interface of the second file.

[0192] Optionally, the second processing operation performed by the user on the second file in the third application interface can be a save operation performed after opening the first file and performing an editing operation such as adding, deleting, modifying, or moving the file content. Optionally, the second processing operation performed by the user on the second file in the third application interface can also be a save operation performed after creating the second file. In some embodiments, the second processing operation performed on the second file by the third application can also be a sharing operation on the second file.

[0193] In some embodiments, when a user performs a second processing operation on a second file through a third application, the information of the second file changes. At this point, the third application can proactively refresh the media library of the first system. Upon detecting the refresh of the media library, the first application of the first system can read the media library according to a specific strategy, thereby displaying the changed second file on the first application interface. This allows the first application interface to simultaneously display the second files that the user recently used in the first system, as well as the first files that the user recently used in the second system.

[0194] In some embodiments, the first application interface can distinguish and display files that the user has recently used in the first system from files that the user has recently used in the second system. For example, the interface can be divided into a first display area and a second display area. The first display area displays files that the user has recently used in the first system, and the second display area displays files that the user has recently used in the second system.

[0195] The cross-system file processing method provided by the embodiment of the present application is that, in addition to the native host operating system (first system), the electronic device runs a virtual machine, and a client operating system (second system) runs in the virtual machine. When a user creates, edits or saves a file in the client operating system, the electronic device can send the file path of the file used by the user on the client operating system to the native host operating system through the virtual machine, triggering a refresh of the media library in the host operating system. Then, the relevant application in the host operating system can read the file path of the file that the user has recently used in the client operating system from the media library, so that the file can be displayed in the recently used interface. In this way, when the user needs to know the recently used files, he can directly check them by opening the recently used interface. At this time, the user can not only easily find the files that have been recently used in the native host operating system in the recently used interface, but also can easily find the files that have been recently used in the client operating system.

[0196] In some scenarios, when the client operating system (second system) also provides a function for viewing recently processed historical files, the file change information of the host operating system (first system) can also be synchronized to the client operating system (second system) to display the files recently used by the user in the host operating system (first system) in the recently used interface run by the client operating system (second system).

[0197] For example, when a user creates, edits, or saves a file in the host operating system (first system), the electronic device can send the file path of the file used by the user on the guest operating system to the guest operating system through the virtual machine, triggering a refresh of the media library in the guest operating system. Then, the relevant application (file management application) in the guest operating system can read the file path of the file that the user recently used in the host operating system from the media library, so that the file can be displayed in the recently used interface. In this way, when the user needs to know the recently used files, he can directly open the recently used interface in the guest operating system to check them. At this time, the user can conveniently find not only the files recently used in the guest operating system, but also the files recently used in the host operating system in the recently used interface.

[0198] It is understandable that, in order to implement the above functions, the electronic device includes hardware and / or software modules that perform the corresponding functions. In combination with the algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in combination with the embodiments, but such implementation should not be considered to be beyond the scope of this application.

[0199] In this embodiment, the electronic device can be divided into functional modules according to the above-mentioned method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into a single processing module. The above-mentioned integrated modules can be implemented in the form of hardware. It should be noted that the module division in this embodiment is illustrative and is only a logical functional division. In actual implementation, other division methods may be used.

[0200] It should be noted that all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module and will not be repeated here.

[0201] Some other embodiments of the present application further provide a cross-system file processing device, which can be applied to the above-mentioned electronic device and is used to execute the various functions or steps executed by the electronic device in the above-mentioned method embodiment.

[0202] The present application also provides a chip system comprising at least one processor and at least one interface circuit. The processor and the interface circuit may be interconnected via a circuit. The interface circuit may read instructions stored in a memory and send the instructions to the processor. When the instructions are executed by the processor, the cross-system file processing device or electronic device may perform the functions or steps of the above-described method embodiments.

[0203] An embodiment of the present application also provides a computer storage medium, which includes computer instructions. When the computer instructions are executed in the above-mentioned cross-system information processing device and electronic device, the cross-system file processing device and electronic device execute the various functions or steps in the above-mentioned method embodiment.

[0204] An embodiment of the present application further provides a computer program product. When the computer program product is run on a computer, the computer is enabled to execute the functions or steps executed by the electronic device in the above method embodiment.

[0205] Among them, the cross-system file processing device, electronic device, computer storage medium, computer program product or chip provided in this embodiment are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here.

[0206] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0207] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the modules or units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0208] The units described as separate components may or may not be physically separate, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0209] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0210] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0211] The above content is only a specific embodiment of this application, but the scope of protection of this application is not limited to this. Any changes or replacements within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.

Claims

1. A cross-system file processing method, characterized in that: Applied to an electronic device, the electronic device includes a first system and a second system, and the method includes: performing a first processing operation on the first file by using a second application, where the second application belongs to the second system; After receiving the first processing operation, the most recently processed historical files are displayed in a first application interface, the most recently processed historical files include the first file, and a first application corresponding to the first application interface belongs to the first system.

2. The method according to claim 1, characterized in that: The first file includes at least one of a picture, a video, an audio, and a document.

3. The method according to claim 1 or 2, characterized in that: After receiving the first processing operation, displaying the most recently processed history file in the first application interface includes: After receiving the first processing operation, in response to the first processing operation, the second system sends file information of the first file to the first system; The first system updates the file information of the first file to a file database; The first system updates and displays the most recently processed historical files on the first application interface according to the updated file database.

4. The method according to claim 3, characterized in that The file database is a media library of the first system; or the file database is a registry of the first system; or the file database is a configuration file of the first system.

5. The method according to claim 3 or 4, characterized in that: The file information includes a file path of the first file.

6. The method according to any one of claims 3 to 5, characterized in that: The file information includes a file path of the first file in the second system, and the first system updates the file information of the first file to a file database, including: The first system performs path conversion on the file path of the first file in the second system to obtain the file path of the first file in the first system; The first system updates the file path of the first file in the first system to a file database.

7. The method according to any one of claims 3 to 6, characterized in that: The second system includes file monitoring management, the first system includes a cross-system file refresh service, and in response to the first processing operation, the second system sends file information of the first file to the first system, including: In response to the first processing operation, the second system acquires file information of the first file through the file monitoring management; The second system sends the file information of the first file to the cross-system file refresh service in the first system; The first system updates the file information of the first file to a file database, including: The first system updates the file information of the first file to the file database through the cross-system file refresh service.

8. The method according to any one of claims 1 to 7, characterized in that: After displaying the most recently processed historical files in the first application interface, wherein the most recently processed historical files include the first file, the method further includes: performing a second processing operation on the second file by a third application, wherein the third application belongs to the first system; After receiving the second processing operation, the most recently processed history files are displayed in the first application interface, where the most recently processed history files include the first file and the second file.

9. The method according to any one of claims 1 to 8, characterized in that: The first processing operation is an editing processing operation on the first file, and the editing processing operation includes at least one operation of creating, modifying, and saving.

10. The method according to any one of claims 1 to 9, characterized in that: After displaying the most recently processed historical files in the first application interface, wherein the most recently processed historical files include the first file, the method further includes: In response to a triggering operation on the first file in the first application interface, displaying a content interface of the first file through the second application; or In response to a triggering operation on the first file in the first application interface, a content interface of the first file is displayed through the first application.

11. An electronic device, characterized in that: The electronic device includes a memory and one or more processors; the memory and the processor are coupled; the memory is used to store computer program code, the computer program code includes computer instructions, and when the processor executes the computer instructions, the electronic device executes the method as described in any one of claims 1-10.

12. A chip system, characterized in that: The chip system is applied to an electronic device; the chip system includes one or more interface circuits and one or more processors; the interface circuit and the processor are interconnected through lines; the interface circuit is used to receive a signal from a memory of the electronic device and send the signal to the processor, the signal including a computer instruction stored in the memory; when the processor executes the computer instruction, the electronic device executes the method as described in any one of claims 1-10.

13. A computer-readable storage medium, characterized in that: The method comprises computer instructions, and when the computer instructions are executed on an electronic device, the electronic device executes the method as claimed in any one of claims 1 to 10.

Citation Information

Patent Citations

  • Cross-system file processing method and electronic equipment

    CN119536860A

  • Automatic synchronization of most recently used document lists

    CN103649945A

  • Method and device for viewing recently used files and terminal

    CN108228894A

  • Method for calling Linux screenshot tool by Android application

    CN114385304A

  • Method and unit for processing display characteristics across multiple operating systems, and traffic equipment

    CN116028000A

Cited By

  • Method, device and equipment for debugging cross-system agent of swan gap and storage medium

    CN122387827A