Cross-system file processing method and electronic equipment

By implementing cross-system file processing methods in electronic devices, using file monitoring management and cross-system file refresh services, the shortcomings of cross-system file review functions in the multi-operating system ecological fusion scenario are solved, and the recent cross-system file review is realized, which improves the user experience.

CN119536860APending Publication Date: 2025-02-28HUAWEI TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202311090780.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-26
Publication Date
2025-02-28

AI Technical Summary

Technical Problem

Existing electronic devices cannot effectively realize the recent file review function of cross-system files in the multi-operating system ecological fusion scenario, resulting in poor user experience.

Method used

By implementing the cross-system file processing method in the electronic device, using file monitoring management in the second system and cross-system file refresh service in the first system, the file database in the first system is monitored and updated in real time, thereby displaying the most recently processed historical files in the first application interface.

Benefits of technology

In the multi-operating system ecological fusion scenario, electronic devices can provide cross-system recent file review functions, improve user experience, and enable users to easily access files recently processed in different systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119536860A_ABST
    Figure CN119536860A_ABST
Patent Text Reader

Abstract

The invention discloses a cross-system file processing method and electronic equipment, and relates to the technical field of electronics. For the electronic equipment comprising a first system and a second system, when a user completes file processing in the second system recently, the electronic equipment can display a file which is recently processed by the user in the second system in a recently used file display interface provided by the first system. In the scheme, when the electronic equipment detects that a user performs the first processing operation on the first file through the second application in the second system, the first file can be displayed in the first application interface corresponding to the first application in the first system in response to the first processing operation. Wherein the first application interface is used for displaying the recently processed historical file.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] 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

[0002] Currently, electronic devices such as mobile phones can provide a function for viewing recently used files. After a user opens a file such as a picture or document on an electronic device to browse or edit the content, the electronic device can display the file on a recently used interface. Thus, when the user needs to know the recently used files, he can directly view them by opening the recently used interface on the electronic device.

[0003] However, the recent file viewing 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 consult recently used files in complex scenarios such as dual system integration. Summary of the invention

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

[0005] In order to achieve the above objectives, this application adopts the following technical solutions:

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

[0007] 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 PC applications on electronic devices 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 mobile applications on electronic devices Of course, the first system and the second system may also be other operating systems, which are not specifically limited in this application.

[0008] Optionally, the second application is an application installed on the second system. When operating the system, the second application can be Version For example, the second system is an office application such as When the operating system is operated, 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.

[0009] 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 file information such as the file location, file attributes, and file content of the first file, for example, a saving operation after modifying the content of the first file, a renaming operation on the first file, etc.

[0010] Optionally, the first file may also be a file newly created 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 a file and saving the file.

[0011] Optionally, the first application is an application installed on the first system, which can provide a function of viewing the most recently processed historical files. As an example, the first application interface of the first application can be used to display the most recently processed historical files. 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 used, 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. When the operating system is operated, the first application is a file explorer, and the first application interface can be a quick access interface, and the quick access interface displays a list of recently used files. The user can enter the quick access interface through the file explorer icon displayed on the desktop, or enter the menu function interface through the start menu on the desktop, and the menu function interface displays a list of recently used files.

[0012] The solution provided in the first aspect above includes that when the electronic devices of the first system and the second system detect that the user uses the second application of the second system to perform a first processing operation (such as a modification and saving operation) on the first file, the electronic device can display the first file in a first application interface (such as a recently used interface) provided by the first application of the first system after receiving the first processing operation. In this way, when the user needs to know the recently used files, he can directly open the first application interface running and displayed in the first system to check the files recently processed in the second system.

[0013] 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 running and displayed in the first system.

[0014] In a 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; the first system updates and displays the most recently processed historical files in the first application interface according to the updated file database. In this way, when the second system detects that the user uses the second application in its own system to perform the first processing operation (such as modify and save operation) on the first file, 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.

[0015] In a possible implementation, the file database may be a media library 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 actively update the relevant file information of the first file to the media library. Therefore, when the first application perceives the update of the media library, it can actively read the updated first file in the media library and display it in the first application interface. Optionally, it can be displayed at the top of all historical files in the first application interface to indicate that the first file is the most recently processed file.

[0016] 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 actively update the relevant file information of the first file to the registry or configuration file of the first system. Therefore, when the first application perceives the update of the registry or configuration file, it can actively read the updated first file in the registry or configuration file and display it in the first application interface.

[0017] 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. So that the first system can find the first file according to 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.

[0018] In a possible implementation, 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. Thereby, 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.

[0019] Optionally, after converting to a file path recognizable by the first system, the first system may verify the file path to verify whether the file path is valid. When the file path is valid, it is updated to the file database.

[0020] In a possible implementation, the second system includes file monitoring management, the first system includes a cross-system file refresh service, and the second system sends the file information of the first file to the first system in response to the first processing operation, including: in response to the first processing operation, the second system obtains the file information of the first file through 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.

[0021] It is understandable that due to the isolation between different systems, the first system cannot monitor the user's processing of files in the second system, resulting in the first application interface in the first system being unable to display the files that the user has recently processed in the second system. Therefore, by adding a file monitoring service to the second system, when the user performs a file processing operation in the second system, the file monitoring service can monitor it in time and send the relevant file information of the monitored changed files to the first system.

[0022] Since the first application interface displays the recently processed historical files by extracting the file information from the file database of the first system, and the file database is usually refreshed actively by the 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 the relevant information of 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 of the changed files of the second system. Therefore, after the first application interface perceives the refresh of the file database, it can correspondingly refresh the recently processed historical file information displayed by itself.

[0023] In a possible implementation, 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, displaying the most recently processed historical files in the first application interface, and the most recently processed historical files include the first file and the second file.

[0024] In this way, when the user uses the third application of the first system to perform a second processing operation (such as a modification and saving 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 recently used files, he can directly open the first application interface running and displayed in the first system to check the files recently processed in the second system, and can also check the files recently processed in the first system.

[0025] 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 information about the file processed by the user's most recent system. As another example, the first application interface may separately display information about the file processed by different systems of the user.

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

[0027] In a possible implementation, after receiving the second processing operation, displaying 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.

[0028] It can be understood that since the user uses the application of the first system to perform processing operations on the file, the application of the first system can actively refresh the file database when detecting changes in the information sent by the file, so that the first application interface 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) after sensing the refresh of the file database. There is no need to refresh the file database through the above-mentioned file refresh service.

[0029] In a possible implementation, the first processing operation is an editing processing operation on the first file, and the editing processing operation may include at least one of creation, modification, and saving. Optionally, the editing processing operation may also include operations such as file location movement, sharing, and deletion. This application does not limit the editing processing operation.

[0030] In a possible implementation, 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 no application in the first system 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.

[0031] In a second aspect, an electronic device is provided, the electronic device comprising a processing module and a display module. The processing module is used to run a first system and a second system. The processing module is also used to perform a first processing operation on a first file through a second application, and the second application belongs to the second system. The display module is used to display a recently processed historical file in a first application interface after receiving the first processing operation, the recently processed historical file includes the first file, and the first application corresponding to the first application interface belongs to the first system.

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

[0033] In one possible implementation, the processing module may be used for: after receiving a 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; and the first system updates and displays the most recently processed historical files on the first application interface according to the updated file database.

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

[0035] In a possible implementation manner, 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.

[0036] In a possible implementation, 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 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.

[0037] In a 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.

[0038] In a possible implementation, the processing module is further used to: perform a second processing operation on the second file through a third application, and the third application belongs to the first system. Correspondingly, the display module is further used to: after receiving the second processing operation, display the most recently processed historical files in the first application interface, and the most recently processed historical files include the first file and the second file.

[0039] In a possible implementation, the processing module is also used for: 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 according to the updated file database, and the first application interface also includes the first file that was updated and displayed previously.

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

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

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

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

[0044] In a fifth aspect, a chip system is provided, which includes one or more interface circuits and one or more processors. The interface circuit and the processor are interconnected by a line. The interface circuit is used to receive a signal from a memory of an electronic device and send the signal to the processor, where the signal includes a computer instruction stored in the memory. When the processor executes the computer instruction, the electronic device executes the cross-system file processing method in any possible implementation of the first aspect above. The chip system can be composed of a chip, or it can include a chip and other discrete devices.

[0045] 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.

[0046] In a seventh aspect, a computer program product comprising instructions is provided. When the computer program product is run on an electronic device, the electronic device implements a cross-system file processing method as in any possible implementation of the first aspect.

[0047] 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

[0048] Figure 1 Interface diagram of an electronic device provided in an embodiment of the present application Figure 1 ;

[0049] Figure 2 An implementation architecture diagram of a recently used interface provided in an embodiment of the present application;

[0050] Figure 3 Interface diagram of an electronic device provided in an embodiment of the present application Figure 2 ;

[0051] Figure 4 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;

[0052] Figure 5 A schematic diagram of the software structure of an operating system provided in an embodiment of the present application;

[0053] Figure 6 A schematic diagram of a process flow of a cross-system file processing method provided in an embodiment of the present application;

[0054] Figure 7Interface diagram of an electronic device provided in an embodiment of the present application Figure 3 ;

[0055] Figure 8 Interface diagram of an electronic device provided in an embodiment of the present application Figure 4 . DETAILED DESCRIPTION

[0056] 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 technical features indicated. 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 "multiple" refers to two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may 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.

[0057] At present, there are many kinds 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, the electronic device can run application programs that match the operating system.

[0058] 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 an application in executable file format (i.e., an application with ".exe" as the file extension) or running a Linux application; 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.

[0059] 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 in the Android operating system cannot be directly installed and run on On the operating system.

[0060] At present, in order to carry Running Android OS applications on a laptop with native operating system can be achieved through virtual machine or virtualization technology, such as using Android simulator, Android container and other technologies. In this case, we can call the laptop the host machine, and the native operating system ( The host operating system is the host operating system (Host OS). Other operating systems running in the simulator or container on the host can be called guest operating systems (Guest OS). At this time, the guest operating system can run on the host. The host virtualizes a virtual hardware environment (including processor, memory, I / O devices, etc.) independent of the actual hardware for the simulator or container, so that for the guest operating system, running in the virtual hardware environment on the host is no different from running on the actual hardware.

[0061] Due to the barriers of communication and interaction between different operating systems, the client operating system in the simulator or container is isolated from the host operating system of the host machine. Therefore, the client operating system and the host operating system each use the applications in their own systems to browse and process files.

[0062] at present, Operating systems such as Safari and Safari can provide a recently used file viewing function. After a user opens a file such as a picture or document through an application within the operating system to browse or edit the content, the file management application of the operating system can display the file on the recently used interface, making it convenient for the user to view the recently used files.

[0063] For example, taking a tablet computer equipped with an Android operating system as an example, a user opens a program such as Figure 1 After the application interface of the photo album application shown in (a) in FIG. 1 is opened, one of the multiple pictures displayed in the application interface of the photo album application can be edited. Figure 1 After clicking on the picture 101 in the application interface of the photo album application shown in (a), the tablet computer displays the following Figure 1 In the picture display interface shown in (b) of FIG. 1 , the user can click the editing control 102 provided in the picture display interface to enter the Figure 1 The picture editing interface shown in (c) in FIG. 1 shows a picture editing interface. When the user uses the various editing tool controls provided in the picture editing interface, a series of editing operations are performed on the picture 101. 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 recent use interface for the user to view.

[0064] Alternatively, if Figure 2 As shown, in the Android operating system, when a user creates and saves a new file using an Android application in the system, or edits and saves an existing file, the corresponding Android application will actively refresh the media library. After the file management application of the Android operating system detects the refresh of the media library, it can read the media library according to a certain strategy, so as to display the new file saved by the user or the saved edited file in its own recently used interface.

[0065] When users need to view recently used files, they can Figure 3 In the desktop shown in (a) of FIG. 1 , click the application icon 104 of the file management application to enter the Figure 3 The file management interface shown in (b) of FIG. 1 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.

[0066] Optionally, when the user clicks the recently used control 105, the tablet computer can Figure 3 As shown in (b) in the figure, the recently used interface is displayed in the file management interface. The recently used interface is used to display recently used files, such as recently edited pictures 101. Optionally, when the tablet computer enters the file management interface, the file management interface can default to recommend displaying the recently used interface without the user clicking the recently used control 105 to trigger it.

[0067] However, the above-mentioned recently used file viewing function is limited to a single system scenario such as the Android operating system. Operating system or For electronic devices that do not use the Android operating system (i.e., the host operating system), due to the barriers to communication and interaction 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 the ecological integration scenario of multiple operating systems, the above-mentioned recently used interface can only display the files that the user has recently used in the Android operating system (i.e., the host operating system), and the user cannot easily find the files that have been recently used in the client operating system from the recently used interface, resulting in a poor user experience.

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

[0069] Since the user edits and saves the document using an office software application on the PC, the office software application on the PC is The Android operating system cannot monitor the changes of the document. Therefore, the recent use interface running in the Android operating system cannot display the historical files that the user has recently processed through the office software application on the PC. Figure 3 In the desktop shown in (e) of FIG. 1 , a click operation is performed on the application icon 104 of the file management application of the Android operating system to enter the Figure 3 The file management interface shown in (f) in FIG. The file management interface displays the recently used files, but does not display the document information processed by the user through the office software application on the PC.

[0070] In order to solve the above problems, the 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) to trigger the refresh of the media library. Therefore, after the file management application of the Android operating system (i.e., the host operating system) detects the refresh of the media library, it can read the media library according to a certain strategy, so as to display the newly created files or the 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 used recently in the Android operating system (i.e., the host operating system) in the recently used interface, but also can easily find the files used recently in the client operating system.

[0071] 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.

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

[0073] 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, realizing more complex office needs that cannot be achieved by Android applications.

[0074] The electronic devices described in this application may include, but are not limited to, smart phones, netbooks, tablet computers, personal computers (PCs) (such as desktop computers or laptops), PDAs, vehicle-mounted 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 electronic devices.

[0075] As an example, see Figure 4 , Figure 4 FIG. 1 shows a hardware structure diagram of an electronic device provided in an embodiment of the present application. Figure 3As shown, 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, etc. 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.

[0076] It is to be 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, or combine certain components, or split certain components, or arrange the components differently. The illustrated components may 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, a button, a motor, an indicator, a camera, etc.

[0077] 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 processor (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). Different processing units may be independent devices or integrated into one or more processors.

[0078] The processor 410 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 410 is a cache memory. The memory may store instructions or data that the processor 410 has just used or cyclically used. If the processor 410 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 410, and thus improves the efficiency of the system.

[0079] In some embodiments, the processor 410 may include one or more interfaces. The interface 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, etc.

[0080] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 410 may include multiple groups of I2C buses. The processor 410 may be coupled to the touch sensor 431 through the I2C interface, so that the processor 410 and the touch sensor 431 communicate through the I2C bus interface to realize the touch function of the electronic device.

[0081] In the 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 then respond to the click operation to execute the cross-system file processing method of the embodiment of the present application.

[0082] 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.

[0083] In an embodiment of the present application, the touch operation detected by the touch sensor 431 may be an operation performed by a user through a finger on or near the touch screen, or may 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, and the present application does not limit this.

[0084] 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 a data storage function.

[0085] Internal memory 421 may be used to store computer executable program code. For example, the computer program may include an operating system program and an application program. The operating system may include but is not limited to 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. The program storage area may store an operating system, an application required for at least one function, etc. The data storage area may store data (such as input events, file information) created during the use of the electronic device. 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.

[0086] In the embodiment of the present application, the electronic device can realize the display function through a GPU, a display screen 440, and an application processor. The GPU is a microprocessor for image processing, which 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, which execute program instructions to generate or change display information.

[0087] 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 client operating system running in a virtual machine. The first application corresponding to the first application interface belongs to the client operating system.

[0088] The display screen 440 is used to display images, videos and other interfaces. The 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 or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light emitting diode (QLED), etc. In some embodiments, the electronic device may include 1 or N display screens 440, where N is a positive integer greater than 1.

[0089] In the embodiment of the present application, the electronic device can display the application interface (such as the first application interface) that is 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) that is rendered by the native operating system of the electronic device through the display screen 440.

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

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

[0092] In the embodiment of the present application, the client operating system can be run on the host operating system in the form of an emulator or a virtual machine. The host operating system virtualizes a set of virtual hardware environments (including processors, memory, I / O devices, etc.) independent of the actual hardware for the client operating system, so that for the client operating system, running in the virtual hardware environment on the host operating system is no different from running on the actual hardware. In this way, the electronic device can realize the running of application software of other operating systems in the host operating system by providing a virtual operating system running environment in the host operating system.

[0093] 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 ( Applications) cannot be directly installed and run on a PC At this point, we can use "simulation" or "virtualization" to install and run the mobile application 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.

[0094] The host operating system is Operating system, the client operating system is Taking the operating system as an example, this paper introduces the software architecture of electronic devices.

[0095] like Figure 5 As shown, The operating system may include an application layer, an application framework layer (framework, FWK), a system library, an Android runtime, and a kernel layer.

[0096] 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 is 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 the 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.

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

[0098] Optionally, in the ecological integration scenario, the application layer also includes simulator software, such as PC application Used to achieve cross-system display. In the embodiment of the present application, the simulator can run Under the operating system, the simulator can render the interface of the running task. The display window of the operating system application 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.

[0099] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. Figure 5 As shown, the application framework layer includes a cross-system file refresh service (FileService), which is used to receive the changed file information transmitted by the client operating system and actively refresh the media library according to the received file information. After the file management application at the application layer detects the refresh of the media library, it can actively read the media library according to a certain strategy, so as to display the changed files in its own recently used interface.

[0100] In some scenarios, different operating systems may implement the recently used file query 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 actively refreshing the registry or configuration file after receiving the changed file information transmitted by the client operating system, so that the file resource manager senses the registry or configuration file refresh and refreshes the recently used interface accordingly.

[0101] 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. The agent software program is equivalent to 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) trigger the active refresh of the media library. The agent software program may include the above-mentioned FileService.

[0102] Optionally, the application framework layer may also 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 do not limit this.

[0103] 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 the status related to the "interface", such as managing window programs and event dispatching. Managing window programs includes outputting to the physical screen or other display device in an orderly manner with the assistance of the application server and WMS according to the display request of the application. Event dispatch refers to the dispatching of 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.

[0104] The activity manager (also called the activity management service (AMS)) is responsible for managing activities, starting, switching, and scheduling components in the system, and managing and scheduling applications. The view system can be used to build the display interface of the application. The view system includes visual controls, such as button controls such as Save.

[0105] The system library and Android runtime contain the functions that the application framework layer needs to call. The Android runtime includes the core library and the virtual machine. The system library can include multiple functional modules. For example: Figure 5 As shown, the system library includes a media library (Media Store), a rendering module, and a layer synthesis module. The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files. The rendering module is responsible for layer drawing and rendering of the interface. The layer synthesis module is responsible for layer synthesis of the interface. For a detailed introduction to the system library, please refer to conventional technologies.

[0106] in, When the file editing applications (such as gallery, photo album, etc.) of the operating system detect that the user has created, edited, saved, etc. a file, the application will actively refresh the file path of the file that the user has processed 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 recent use interface.

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

[0108] 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.

[0109] like Figure 5 As shown, The operating system is a layered architecture, mainly divided into kernel state and user state. Among them, the user state includes user applications, including a series of applications, such as office software 1, office software 2, camera, gallery, music, video, etc. The kernel state includes the hardware abstraction layer (HAL), kernel and device driver layer and executive body, as well as windowing and graphic system.

[0110] 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.

[0111] The kernel and device driver layer in the kernel (i.e. The kernel is composed of a set of low-level operating system functions, such as thread scheduling, interrupt and exception distribution, and multi-processor synchronization. The device driver (i.e., device driver) in the kernel and device driver layer is mainly used to initiate user threads of I / O requests. Device drivers are mainly divided into the following categories: hardware device drivers, file system drivers, file system filter drivers, network redirection drivers, protocol drivers, kernel churn filter drivers, etc.

[0112] 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.

[0113] 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 detect changes in the file and send relevant information about the changed file to the Operating system and Communication mechanism between operating systems, passing to A cross-system file refresh service in an operating system, wherein the relevant information of a file may include a path address of the file.

[0114] 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 send 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.

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

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

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

[0118] Usually, GUI applications need to open 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).

[0119] It is understandable that this application Figure 5 The illustrated architecture does not constitute a specific limitation on the host operating system and the client 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.

[0120] 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.

[0121] like Figure 6 As shown, a cross-system file processing method provided by an embodiment of the present application may include S601 and S602:

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

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

[0124] 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 may be any one of the operating systems, and the second system may be any one of the operating systems. The first system and the second system may be the same or different. The embodiment of the present application does not limit the first system and the second system installed in the electronic device.

[0125] In the embodiment of the present application, the first application can be installed and run on the first system, and the second application can be installed and run on the second system. The first application can provide the user with a function of looking up the most recently processed historical files, and the second application can provide the user with a file processing function.

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

[0127] In the embodiment of the present application, when the user needs to process a file, the file can be processed by 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.

[0128] As an implementation mode, the electronic device may display a second application interface, and the second application interface 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 it may be another page of the second application. The user may perform the first processing operation on the first file in the second application interface.

[0129] As an example, the second system is When operating the system, the second application can be PC version, PC version etc. can be run on The second application interface of an office application on the operating system can be PC version file browsing interface, PC version file browsing interface, etc.

[0130] 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.

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

[0132] 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.

[0133] Optionally, when the electronic device displays the 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, and 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.

[0134] 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 the present application.

[0135] 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.

[0136] As an example, the second application interface of the second application may include an option control corresponding to the first file. The option 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 a click operation of the user on the option control corresponding to the first file is received, the electronic device may respond to the click operation and display the content interface of the first file.

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

[0138] 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).

[0139] 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 also be a save operation after creating the first file.

[0140] 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.

[0141] 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.

[0142] As an example, the first file may be shared with other users through an instant messaging application. In at least one document displayed in the application interface of the PC version, long pressing the option control of the first file, such as document 1, can display various sharing functions for the document 1. For example, when the user clicks Share to hour, The operating system can be started The PC 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, so that the cross-system file processing method of the present application can be executed.

[0143] 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 may 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 on the first file, so that the cross-system file processing method of the present application can be executed.

[0144] 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.

[0145] S602: In response to a first processing operation, display a first file in a first application interface, wherein a first application corresponding to the first application interface belongs to a first system, and the first application interface is used to display a recently processed history file.

[0146] In the embodiment of the present application, the first application can be installed and run in the first system. The first application can provide a function of viewing recently processed files. Here, the interface used to display recently processed files in the first application is defined as the first application interface.

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

[0148] As another example, the first system is When operating the system, the first application may be a file explorer, and the first application interface may be a quick access interface in the file explorer, etc.

[0149] Optionally, the first system is When operating the system, the first application may be a menu application, and the first application interface may be an interface of a recently used card in the menu interface, etc. The embodiment of the present application does not limit the type of the first application.

[0150] 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 based on the received file information of the changed first file. Thus, the user can know the file information that he has recently used in the second system in the first application interface of the first system.

[0151] 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 name of the final file on the electronic device, as well as the file type extension. For example, C / dum / document1.docx. Optionally, the file information of the first file may also include other information such as the file type and the modification date, which are not limited in the embodiments of the present application.

[0152] As an example, the above first processing operation may be an operation of editing and saving 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 first file whose content has changed, 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 he has recently edited in the second system in the first application interface of the first system.

[0153] Exemplarily, as Figure 7 shown in (b) of, when the user clicks the option control 702 of document1 (the first file) on the file browsing interface of the office software, the tablet computer can open document1 and display the editing page of document1 as shown in Figure 7 shown in (c) of. When the user performs a series of editing operations such as adding, deleting, and moving content on this editing page, and then clicks the save control 703 in the upper right corner as shown in Figure 7 shown in (c) of, the tablet computer can save the edited document1.

[0154] At this time, the operating system (the second system) running through the virtual machine or emulator can transmit the file path of document1 whose content has changed to the operating system through the communication mechanism between the operating systems. Thus, the file management application of the operating system can display document1 that the user has recently edited in the operating system in the recently used interface. operating system in the recently used interface.

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

[0156] As another example, the first processing operation may be a sharing operation of the first file. Thus, 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.

[0157] As another example, the first processing operation may be an editing operation such as adding, deleting, modifying, or moving the first file. In this way, after the user edits the first file in the second application in the second system, the user can also know the file information that he / she has recently edited in the second system in the first application interface of the first system regardless of whether the edited content is saved.

[0158] Optionally, the first processing operation may 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.

[0159] In one scenario, a file monitoring management function capable of monitoring file information changes 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 Inotify detects the user's save operation on the first file, it can pass 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.

[0160] Optionally, a message transmission channel for cross-system communication, such as a socket or a 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.

[0161] 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.

[0162] Taking the first application interface showing only a list of office document types as an example, after detecting the user's first processing operation on the first file, the file monitoring module can first determine whether the type of the first file is a document type. If so, the file monitoring management can transmit the file path of the first file to the first system through the communication mechanism. If not, the file monitoring management can ignore the operation and not transmit the file information.

[0163] 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 may also be equipped with 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 to the media library in the first system. The embodiments of the present application do not limit the implementation of sharing monitoring management.

[0164] The first system may be provided with a cross-system file refresh service, which is used to receive the file path of the first file transmitted by the second system, and actively refresh the media library according to the received file path of the first file, so as to update the changed first file to the media library. The cross-system file refresh service may 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 agent application, a Shell agent application, etc.

[0165] 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 actively refresh the media library.

[0166] 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.

[0167] In the 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, actively read the updated file information in the media library, and refresh the content of the first application interface according to the updated file information. The first file that is about to change is displayed in the first application interface.

[0168] 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 a 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.

[0169] Optionally, the cross-system file refresh service may also check the validity of the file before refreshing the file path of the first file in the first system into the media library. When the file path of the converted first file in the first system is invalid, such as the first file cannot be found in the file path, the cross-system file refresh service may 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 may be refreshed into the media library only when it is determined that the file path of the first file is valid.

[0170] 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 path conversion mapping table may be used to determine the file path of the converted first file in the first system.

[0171] 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 implemented by reading the media library.

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

[0173] 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.

[0174] As another example, when the first system is operating system, When operating systems such as the operating system, the configuration file of the first system can also be read to refresh and display the most recently processed files. 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.

[0175] In the embodiment of the present application, such media libraries, registry tables, configuration files, etc. that can store file change information can be defined as file databases. The embodiment of the present application does not limit the presentation form of the file database. It can also be other resource libraries that can store file change information.

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

[0177] Optionally, the user can 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.

[0178] Optionally, in response to the trigger 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 used by the user to process the file before.

[0179] Optionally, in response to the trigger 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 recent use interface of the file management application, the electronic device can open the content interface of the file through the file management application.

[0180] Optionally, in response to the trigger 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.

[0181] 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 trigger operation by the user 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.

[0182] Optionally, in response to the trigger operation, the electronic device may also provide an option of at least one application that can view or edit the first file, so that the user can choose which application to use 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.

[0183] 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.

[0184] As an example, the third application can be installed and run in the first system. When the user performs a second processing operation on the 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 the second file.

[0185] Optionally, the second file may be a multimedia file such as a picture, audio, video, document, compressed package, folder, etc. 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 to create, edit, save, move / rename, or change attributes, etc. The embodiment of the present application does not limit the second processing operation mode. The second file may be the same as or different from the first file.

[0186] As an implementation mode, the electronic device may display a third application interface, and the third application interface 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 it may be another page of the third application. The user may perform the second processing operation on the second file in the third application interface.

[0187] 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 a gallery. The third application interface may be a picture management interface or a video management interface of applications such as a photo album or a 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 a picture management interface or a video management interface.

[0188] 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.

[0189] Optionally, when the electronic device displays the 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 a file and save it.

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

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

[0192] In some embodiments, when the user performs a second processing operation on the second file through the third application, the information of the second file changes. At this time, the third application can actively refresh the media library of the first system. After the first application of the first system detects the refresh of the media library, it can read the media library according to a certain strategy, thereby displaying the changed second file in the first application interface. Therefore, the first application interface can simultaneously display the second file that the user has recently used in the first system, and the first file that the user has recently used in the second system.

[0193] In some embodiments, the first application interface can distinguish and display files that the user has recently used in the first system and files that the user has recently used in the second system. For example, it 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.

[0194] The cross-system file processing method provided in 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, and 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.

[0195] 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 that the user has recently used in the host operating system (first system) in the recent use interface run by the client operating system (second system).

[0196] 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 client operating system to the client operating system through the virtual machine, triggering a refresh of the media library in the client operating system, and then the relevant application (file management application) in the client operating system can read the file path of the file that the user has 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 check them by opening the recently used interface in the client operating system. At this time, the user can not only easily find the files that have been recently used in the client operating system, but also the files that have been recently used in the host operating system in the recently used interface.

[0197] It is understandable that, in order to realize the above functions, the electronic device includes hardware and / or software modules corresponding to the execution of each function. 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 the present application.

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

[0199] 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.

[0200] Some other embodiments of the present application also provide a cross-system file processing device, which can be applied to the above electronic device and is used to execute each function or step executed by the electronic device in the above method embodiment.

[0201] The embodiment of the present application also provides a chip system, which includes at least one processor and at least one interface circuit. The processor and the interface circuit can be interconnected through a line. The interface circuit can read instructions stored in the memory and send the instructions to the processor. When the instructions are executed by the processor, the cross-system file processing device and the electronic device can perform each function or step in the above method embodiment.

[0202] 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 each function or step in the above-mentioned method embodiment.

[0203] The embodiment of the present application also provides a computer program product. When the computer program product is run on a computer, the computer is enabled to execute each function or step executed by the electronic device in the above method embodiment.

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

[0205] 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.

[0206] In the several embodiments provided in the present 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 only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, 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.

[0207] The units described as separate components may or may not be physically separated, 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 different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0208] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0209] 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, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.

[0210] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application shall be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope 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

Cited By

  • Cross-system file processing method and electronic device

    EP4730119A1

  • Cross-system file processing method and electronic device

    WO2025044443A1