Application calling method and electronic equipment
By using gateway services to transmit application calling instructions between different operating systems, the problem of cross-operating system application calling is solved, application calling flexibility and user experience are improved, and unified display and data sharing of cross-system applications are achieved.
Patent Information
- Application Number
- CN202310238685.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-03
- Publication Date
- 2024-09-03
AI Technical Summary
Existing virtual machine and container technologies cannot implement application calls across operating systems, resulting in poor flexibility in application calls. Users cannot perceive different operating systems when installing applications in different operating systems, resulting in poor user experience.
The gateway service transmits application calling instructions between different operating systems to realize cross-system application calling, so that users cannot perceive different operating systems when using applications installed in different operating systems, improving the flexibility of application calling.
It realizes application calling across operating systems, improves the flexibility of application calling, optimizes user experience, enables users to display and use applications in different operating systems in a single display window, and simplifies data sharing and content sharing between applications.
Smart Images

Figure CN118585294A
Abstract
Description
Technical Field
[0001] The present application relates to the field of terminal technology, and in particular to an application calling method and an electronic device. Background Art
[0002] In the current virtual machine and container technologies, application calls are all made within the operating system, and application calls cannot be made across operating systems, which results in poor flexibility. For example, one of the host operating systems of an electronic device is the Macintosh system (Mac OS), and a client operating system, such as the Microsoft Windows (Windows) operating system, is also installed on the electronic device through virtual machine or container technology. Among them, Windows runs application A and application B, and Mac OS runs application C. In Windows, application A and application B can be called, but application C cannot be called; in Mac OS, application C can be called, but application A and application B cannot be called. Summary of the invention
[0003] The present application provides an application calling method and an electronic device, which can call applications across systems in a scenario where multiple operating systems are installed on the electronic device, and the application calling flexibility is strong.
[0004] In order to achieve the above objectives, this application adopts the following technical solutions:
[0005] In a first aspect, an application calling method is provided, the method is applied to an electronic device, the electronic device includes a first operating system and a second operating system, the method includes: the first operating system sends a first instruction for calling a first application in the second operating system to the second operating system through a gateway service; the second operating system calls the first application according to the first instruction. The display window of the first operating system displays an operation interface of the first application.
[0006] In the first aspect, the first operating system sends a first instruction to call a first application in the second operating system to the second operating system through a gateway service, and then the second operating system calls the first application according to the first instruction, so that the user does not perceive the different operating systems when using applications installed in different operating systems, thereby realizing cross-system application calls and improving the flexibility of application calls.
[0007] In one possible implementation, the first operating system includes a host operating system, and the second operating system includes a client operating system; or, the first operating system and the second operating system include different client operating systems; wherein the client operating system runs in a virtual machine or a container.
[0008] In combination with the first aspect, in this implementation, the system types of the first operating system and the second operating system are diverse, which improves the flexibility of application calls between different types of systems.
[0009] In a possible implementation, the method further includes: displaying a first icon of the first application based on a display window of the first operating system; receiving and responding to a first operation of the user on the first icon, and generating a first instruction in the first operating system.
[0010] In combination with the first aspect, in this implementation, a first instruction can be generated in a first operating system of the electronic device, and then the electronic device can implement application calls across operating systems based on the first instruction, and the application calls have good flexibility.
[0011] In a possible implementation, displaying a first icon of a first application based on a display window of a first operating system includes: the second operating system sending application status information of the first application to the first operating system through a gateway service; and the first operating system displaying the first icon in the display window of the first operating system according to the application status information.
[0012] In this implementation, the display window of the first operating system can display application icons of applications installed in other operating systems (second operating systems), thus realizing cross-system application icon display. In this way, the full display of application icons in different operating systems can be realized under the premise of displaying fewer operating system display windows (even only one display window).
[0013] In one possible implementation, the method also includes: displaying an operation interface of a second application installed in the first operating system in a display window of the first operating system; the operation interface includes first display information, and the first display information includes application information of the first application installed in the second operating system; the first operating system receives and responds to the user's second operation on the first display information, and generates a first instruction in the first operating system.
[0014] In combination with the first aspect, in this implementation, a first instruction can be generated in a first operating system of the electronic device, and then the electronic device can implement application calls across operating systems based on the first instruction, and the application calls have good flexibility.
[0015] In a possible implementation, the method may further include: displaying in a display window of the first operating system an operation interface of a second application installed in the first operating system that includes second display information, the second display information including application information of the second application installed in the first operating system; the first operating system receiving and responding to a third operation of the user, displaying in the display window of the first operating system a list of optional applications that allow sharing of the second display information, the list of optional applications including application information of the first application; the first operating system receiving and responding to a fourth operation of the user on the list of optional applications, generating a first instruction based on the application information and the second display information, wherein the fourth operation is used to select application information.
[0016] In combination with the first aspect, in this implementation, a first instruction can be generated in a first operating system of the electronic device, and then the electronic device can implement application content sharing between applications across operating systems based on the first instruction, and the application calling flexibility is good.
[0017] In one possible implementation, the second operating system calls the first application in the second operating system according to the first instruction, including: the second operating system generates an operation interface of the first application according to the first instruction; the second operating system sends the operation interface of the first application to the first operating system through a gateway service; the method also includes: displaying the operation interface of the first application in the display window of the first operating system.
[0018] In this implementation, since the operation interface of the first application can be displayed in the display window of the first operating system, the operation interface of the first application can include the content that the user wants to present through operation (for example, the page corresponding to the first display information or the second display information), thus optimizing the user experience. In addition, since this solution implements cross-system application calling, the application calling flexibility is good.
[0019] In a second aspect, an electronic device is provided, which includes a first operating system and a second operating system, and the electronic device includes: a processing module, used by the first operating system to send a first instruction for calling a first application in the second operating system to the second operating system through a gateway service; a processing module, which is also used by the second operating system to call the first application according to the first instruction; and a display module, used to display the operation interface of the first application in the display window of the first operating system.
[0020] In a third aspect, an electronic device is provided, the electronic device includes a processor, when the processor executes the program code, the electronic device executes the method of the first aspect. The electronic device may also include a memory, the memory stores computer instructions, when the processor can execute the computer instructions to execute the method of the first aspect.
[0021] In a fourth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and when the computer instructions are executed, the method of the first aspect is executed.
[0022] In a fifth aspect, a computer program product comprising instructions is provided, which, when executed on a computer, enables the computer to execute the method of the first aspect.
[0023] In a sixth aspect, a chip is provided, comprising a processor and a transceiver, wherein the processor and the transceiver are used to support an electronic device to execute the method of the first aspect.
[0024] Among them, the beneficial effects described in the second to sixth aspects of the present application can refer to the analysis of the beneficial effects of the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 A schematic diagram of a terminal usage scenario provided in an embodiment of the present application;
[0026] Figure 2 A schematic diagram of the electronic device provided in the embodiment of the present application;
[0027] Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application Figure 1 ;
[0028] Figure 4A Schematic diagram of a multi-system compatibility framework provided in an embodiment of the present application Figure 1 ;
[0029] Figure 4B Schematic diagram of a multi-system compatibility framework provided in an embodiment of the present application Figure 2 ;
[0030] Figure 5 A schematic diagram of the software structure of an electronic device provided in an embodiment of the present application;
[0031] Figure 6 Schematic diagram of the interaction of various services in the electronic device provided in the embodiment of the present application Figure 1 ;
[0032] Figure 7 Schematic diagram of the interaction of various services in the electronic device provided in the embodiment of the present application Figure 2 ;
[0033] Figure 8 A schematic diagram of a method for calling an application provided in an embodiment of the present application Figure 1 ;
[0034] Fig. 9 A schematic diagram of a method for calling an application provided in an embodiment of the present application Figure 2 ;
[0035] Fig.10 A schematic diagram of a display window of a current electronic device provided in an embodiment of the present application;
[0036] Fig.11 A display window diagram of the first operating system provided in an embodiment of the present application Figure 1 ;
[0037] Fig.12 A schematic diagram of a method for calling an application provided in an embodiment of the present application Figure 3 ;
[0038] Fig.13 Schematic diagram 4 of a flow chart of an application calling method provided in an embodiment of the present application;
[0039] Fig.14 A display window diagram of the first operating system provided in an embodiment of the present application Figure 2 ;
[0040] Fig.15 A schematic diagram of a method for calling an application provided in an embodiment of the present application Figure 5 ;
[0041] Fig.16 A display window diagram of the first operating system provided in an embodiment of the present application Figure 3 ;
[0042] Fig.17 A schematic diagram of a method for calling an application provided in an embodiment of the present application Figure 6 ;
[0043] Fig.18 Schematic diagram 4 of the display window of the first operating system provided in the embodiment of the present application;
[0044] Fig.19 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application Figure 2 . DETAILED DESCRIPTION
[0045] The network architecture and business scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. A person of ordinary skill in the art can appreciate that with the evolution of the network architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0046] Before introducing the embodiments of the present application, some terms involved in the embodiments of the present application are explained.
[0047] Container technology: The core of container technology is to run the process in a sandbox by limiting and isolating resources. Among them, this sandbox can be packaged into a container image and ported to another electronic device for direct operation. The container is an application-level abstraction used to package code and dependent resources together. The purpose of the container is to encapsulate an application and its dependent resources in its environment. This encapsulation allows them to run in isolation while using the same system resources and operating system as other containers within the electronic device. Since resources are not wasted on running independent operating system tasks, containerization allows applications to be deployed faster and more efficiently.
[0048] Virtual machine: refers to a complete computer system with complete hardware system functions that is simulated by software and runs in a completely isolated environment. Any work that can be done in a physical computer can be done in a virtual machine. When creating a virtual machine in a computer, part of the hard disk and memory capacity of the physical machine needs to be used as the hard disk and memory capacity of the virtual machine. Each virtual machine has an independent chip (complementary metal oxide semiconductor, CMOS) that stores basic computer startup information (such as date, time, startup settings, etc.), hard disk and operating system, and the virtual machine can be operated like a physical machine.
[0049] Existing virtual machines and container technologies interact independently across systems. Virtual machines or containers generally run as independent windows or views. Users can clearly perceive two different systems, and the user experience (UE / UX) is poor. For example, application A or application B on Windows cannot directly jump to application C on Mac OS. In another terminal usage scenario, such as Figure 1 As shown, application A or application B on Windows cannot directly share files with application C on Mac OS, and vice versa, application C on Mac OS cannot directly share files with application A or application B on Windows. Users can only save the shared files in application A or application B to local storage on Windows, then open local storage on Mac OS to find the shared files, and copy the shared files to application C to achieve data sharing between cross-system applications.
[0050] It can be seen that in the current application calling method, in the scenario where the electronic device is installed with multiple operating systems, it is impossible to implement application calling across operating systems, and the calling flexibility is poor.
[0051] In order to solve the above technical problems, the following examples of this application provide an application calling method. The method provided by the embodiments of this application is described below in conjunction with the drawings in the specification.
[0052] The embodiment of the present application transmits application calling instructions between different operating systems through a gateway service to implement cross-system application calling, so that users are unaware of the different operating systems when using applications installed in different operating systems, thereby improving the flexibility of application calling.
[0053] Optionally, the application calling method provided in the embodiment of the present application can be applied to an electronic device. Figure 2 As shown, the electronic devices include but are not limited to mobile phones 31, personal digital assistants (PDA) 32, personal computers (PC) 33, laptop computers (Laptop), large-screen display devices, wearable devices, vehicle-mounted devices, artificial intelligence (AI) devices and other terminal devices. The operating systems installed in the electronic devices include but are not limited to Or one or more of other operating systems. This application does not limit the specific type of electronic equipment or the number of installed operating systems.
[0054] For example, Figure 3 Shows the hardware structure of the electronic device Figure 1 .
[0055] like Figure 3 As shown, the electronic device may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.
[0056] It is to be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the electronic device. In other embodiments of the present application, the electronic device may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0057] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0058] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.
[0059] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory, thus avoiding repeated access, reducing the waiting time of the processor 110, and thus improving the efficiency of the system.
[0060] In some embodiments, the processor 110 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.
[0061] The charging management module 140 is used to receive charging input from a charger, where the charger can be a wireless charger or a wired charger.
[0062] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 to power the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160.
[0063] The wireless communication function of the electronic device can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor.
[0064] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0065] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to electronic devices. The mobile communication module 150 can include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc.
[0066] The wireless communication module 160 can provide wireless communication solutions for electronic devices, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication technology (NFC), infrared technology (IR), etc.
[0067] In some embodiments, antenna 1 of the electronic device is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, so that the electronic device can communicate with the network and other devices through wireless communication technology.
[0068] The electronic device implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
[0069] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel may be a liquid crystal display (LCD). In some embodiments, the electronic device may include 1 or N display screens 194, where N is a positive integer greater than 1.
[0070] The camera 193 is used to capture still images or videos. In some embodiments, the electronic device may include 1 or N cameras 193, where N is a positive integer greater than 1.
[0071] The external memory interface 120 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 110 through the external memory interface 120 to implement a data storage function. For example, files such as music and videos can be stored in the external memory card.
[0072] The internal memory 121 can be used to store computer executable program codes, which include instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 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 110 executes various functional applications and data processing of the electronic device by running instructions stored in the internal memory 121 and / or instructions stored in a memory provided in the processor.
[0073] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110. The electronic device can use the audio module 170, such as music playing, recording, etc. The audio module 170 can include a speaker, a receiver, a microphone, a headphone interface, and an application processor to realize audio functions.
[0074] The sensor module 180 may include a pressure sensor, a gyro sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and the like.
[0075] The key 190 includes a power key, a volume key, etc. The key 190 can be a mechanical key or a touch key. The electronic device can receive key input and generate key signal input related to user settings and function control of the electronic device.
[0076] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback.
[0077] The indicator 192 may be an indicator light, which may be used to indicate the charging status, power changes, messages, missed calls, notifications, etc.
[0078] The SIM card interface 195 is used to connect a SIM card.
[0079] Among them, multiple operating systems can be installed in the electronic device.
[0080] For example, an electronic device is installed with two operating systems, namely operating system A and operating system B, and operating system A and operating system B are respectively a host operating system (host operating system, Host OS) and a client operating system (guest operating system, Guest OS). Among them, Host OS is a system installed on an electronic device, and Guest OS is a system installed on a virtual machine, or a system running in a container. It should be noted that in the art, the system installed on a virtual machine is usually referred to as Guest OS. For ease of explanation, the concept of Guest OS is expanded in the embodiments of the present application, and the system running in the container is also referred to as Guest OS. Of course, Guest OS can also be other systems, and the embodiments of the present application do not specifically limit this. The following embodiments of the present application are introduced by taking the operating system B running in a container as an example.
[0081] Figure 4A The system architecture of an electronic device provided by an embodiment of the present application is shown Figure 1 .
[0082] For example, Figure 4A As shown in (a), operating system B can run in the container as the Guest OS; operating system A can run outside the container as the Host OS.
[0083] For example, Figure 4A As shown in (a), the container may include but is not limited to third-party applications of operating system B and / or the core of operating system B. The third-party applications of operating system B may refer to other applications other than the system applications of operating system B, such as applications downloaded from an application market. The "core of operating system B" may also be described as "the operating environment of the application of operating system B" or "the operating management service of the application of operating system B". Exemplarily, the core of operating system B may be an API interface or a programming framework provided for the third-party applications of operating system B.
[0084] For example, Figure 4A As shown in (a), the container may include but is not limited to the application of operating system A (such as the application may include system applications and / or third-party applications, etc.), the operating environment of operating system A, or one or more of the system capabilities of operating system A, etc. Optionally, the introduction of the operating environment of operating system A may refer to the introduction of the operating environment of operating system B (also called the core of operating system B).
[0085] Exemplarily, in the embodiment of the present application, the system capabilities of operating system A may include hardware capabilities and / or software capabilities, etc. During operation, third-party applications in operating system B in the container can call the system capabilities of operating system A through the system interface or core interface between operating system B and operating system A. In other words, operating system B in the container can reuse some capabilities of operating system A outside the container, so that operating system B in the container does not need to configure these capabilities, thereby reducing container overhead. For example, operating system A is Operating system B is
[0086] Figure 4A In (a), the system architecture of the electronic device with dual operating systems is described by taking the operating system outside the container as operating system A and the operating system inside the container as operating system B as an example. It should be understood that the operating system inside the container and the operating system outside the container can also be interchangeable.
[0087] For example, Figure 4A As shown in (b), operating system A can run in the container as the Guest OS. Operating system B can run outside the container as the Host OS. Figure 4A For the introduction of each module in (b), please refer to Figure 4A The introduction of the corresponding module in (a) will not be repeated here.
[0088] exist Figure 4A In the system architecture shown in (a) and (b), operating system A and operating system B can be isolated through container technology. It can be understood that container technology can divide the resources of different operating systems into isolated groups so as to better balance the use requirements of conflicting resources between isolated groups. In some embodiments, the operating system in the container can call the system capabilities of the operating system outside the container to achieve the normal operation of the operating system. Figure 4A As shown in (a) of FIG. 1 , operating system B can call the system capabilities of operating system A; or, as shown in FIG. 1 , operating system B can call the system capabilities of operating system A; or, Figure 4A As shown in (b), operating system A can call the system capabilities of operating system B.
[0089] For another example, the electronic device may be installed with more than two operating systems. When the electronic device is installed with more than two operating systems, one or more containers may be configured in the electronic device.
[0090] For example, an electronic device is installed with three operating systems, namely operating system A, operating system B, and operating system C, wherein operating system A is a Host OS, and operating system B and operating system C are different Guest OSs. Figure 4BThe system architecture of another electronic device provided in the embodiment of the present application is shown Figure 2 .
[0091] like Figure 4B As shown in (a), the electronic device is configured with a container and a virtual machine, which run operating system B and operating system C respectively.
[0092] like Figure 4B As shown in (b), the electronic device is configured with two containers, container 1 and container 2, which run operating system B and operating system C respectively.
[0093] like Figure 4B As shown in (c), the electronic device is configured with two virtual machines: virtual machine 1 and virtual machine 2, which run operating system B and operating system C respectively.
[0094] in, Figure 4B For the communication methods between the operating systems and the modules in the operating systems in the various scenarios shown, please refer to Figure 4A The communication method between operating systems and the modules in the operating system in the scenario shown will not be described in detail. Figure 4B In each of the scenarios shown, the modules in each operating system are merely exemplary illustrations, and the embodiments of the present application do not specifically limit the composition of the operating system.
[0095] The following takes the electronic device supporting multiple operating systems as an example to introduce the application calling method provided by the embodiment of the present application in detail. In this embodiment, the first operating system and the second operating system are installed in the electronic device, and the first operating system and the second operating system may include the Host OS and the Guest OS, or may only include the Guest OS. That is, the first operating system can be Figure 4A The operating system A shown in (a) in FIG. 1 , the second operating system may be Figure 4A Alternatively, the first operating system may be Figure 4A The operating system B shown in (a) in FIG. 1 , the second operating system may be Figure 4A Alternatively, the first operating system may be Figure 4A The operating system A shown in (b) in FIG. 1 , the second operating system may be Figure 4A Alternatively, the first operating system may be Figure 4A The operating system B shown in (b) in FIG. 1 , the second operating system may be Figure 4A Alternatively, the first operating system may be Figure 4B The second operating system may be Figure 4BAlternatively, the first operating system may be operating system B or operating system C as shown in Figure 4B The second operating system may be Figure 4B Alternatively, the first operating system may be Figure 4B The second operating system may be Figure 4B Operating system B shown in .
[0096] The software system of the electronic device can adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. The operating system of the Host OS is the first operating system (such as ), the operating system outside the Guest OS is the second operating system (such as ), the second operating system runs in the container, which uses a layered architecture as an example to illustrate the software structure of the electronic device.
[0097] Figure 5 It is the software structure of the electronic device provided in the embodiment of the present application.
[0098] The layered architecture divides the software into several layers, each with a clear role and division of labor. The layers communicate with each other through software interfaces.
[0099] like Figure 5 As shown, the first operating system outside the container adopts a layered architecture, including an application layer, a framework library, a framework service, a hardware abstraction layer (HAL), a kernel and a driver layer (or a kernel layer, or a kernel layer and a driver layer).
[0100] In some examples, such as Figure 5 As shown, the first operating system may further include a gateway service and a container manager module, and the gateway service and the container manager module may be located in the software layer where the framework library is located.
[0101] The application layer includes applications of the first operating system, such as camera, gallery, calendar, call, map, etc. ( Figure 5 not shown).
[0102] Optionally, the application layer may further include an application container. The application container may be used to map applications in the second operating system in the first operating system, so that the first operating system can uniformly manage applications in the electronic device. Exemplarily, the application container may include an interface for a package management service, an interface for a task management service, an interface for a window management service, etc. The interface of each service may be used to call a corresponding service.
[0103] The framework library may include various functional modules, such as: surface manager, media library, 3D graphics processing library (such as: OpenGL ES), 2D graphics engine (such as: SGL), etc. (not shown in the figure).
[0104] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.
[0105] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0106] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0107] A 2D graphics engine is a drawing engine for 2D drawings.
[0108] Optionally, the framework library includes an application runtime of the first operating system (also referred to as an operation management service). The application runtime is responsible for scheduling and management of the first operating system and provides an operation environment for applications of the first operating system.
[0109] Framework services can provide APIs and programming frameworks for applications in the application layer. Framework services include some predefined functions. For example, framework services can include window managers, content providers, view systems, phone managers, resource managers, notification managers, etc.
[0110] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.
[0111] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
[0112] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.
[0113] The phone manager is used to provide communication functions for electronic devices, such as the management of call status (including answering, hanging up, etc.).
[0114] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0115] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.
[0116] The hardware abstraction layer is an interface layer between the operating system kernel and the hardware circuit. It encapsulates the underlying hardware driver and provides a general interface for calling the driver to the framework layer.
[0117] The kernel and driver layer is the layer between hardware and software. The kernel and driver layer can include various drivers, such as display driver, camera driver, audio driver, sensor driver, etc.
[0118] The gateway service can be used to achieve cross-system communication. Exemplarily, the gateway service can achieve cross-system communication based on inter-process communication (IPC) technology. Of course, the gateway service can also achieve cross-system communication based on other technologies, and the embodiments of the present application do not impose specific restrictions on this. Optionally, the gateway service can include a collaborative adapter (also known as a collaborative service), which can achieve the joint management of applications in the container and applications outside the container.
[0119] Exemplarily, the gateway service can implement cross-system application call instruction transmission, application display content transmission, etc. For example, when the gateway service implements application display content transmission, it identifies the uniform resource locator (URL) of the shared content of application A outside the container, and identifies that the sharing target application of application A is application B in the container, then sends the shared content of application A to the sharing management service in the container. Conversely, application B in the container can share the shared content to application A outside the container based on the same principle.
[0120] The container management module can be used to manage containers, such as managing the life cycle of containers and controlling the start and stop of containers through the container engine.
[0121] like Figure 5 As shown, the second operating system in the container can also adopt a layered architecture to divide the software into five layers, from top to bottom, namely, application layer, application runtime, system interface (system API) / core interface (core API), application framework layer, and kernel and driver layer.
[0122] The application layer includes a series of application packages of the second operating system, such as third-party applications and system applications.
[0123] When the application is running, it is responsible for the scheduling and management of the second operating system and provides a running environment for the application of the second operating system.
[0124] System interface / core interface, used to support the interaction between the second operating system in the container and the second operating system outside the container. For example, a third-party application of the second operating system in the container calls the services provided by the framework service in the first operating system outside the container through the system interface / core interface in the container and the gateway service outside the container.
[0125] The application framework layer provides API and programming framework for the applications in the application layer. The application framework layer includes some predefined functions. Figure 5 As shown, the application framework layer may include window services (or window management services (WMS)), hardware services, package management services, task management services, distributed services, and sharing management services.
[0126] Window services can be used to manage window programs, such as creating and destroying windows or managing window positions.
[0127] The package management service can be used to parse and install application packages. The package management service can be used to manage (HarmonyOS ability package, HAP) packages.
[0128] Exemplarily, when installing / uninstalling an application in a container, package information recording the application life cycle (installation / uninstallation) is generated. The package management service in the container can synchronize the package information to the operation management service in the first operating system through a gateway service outside the container. After receiving the package information, the operation management service will notify the window service to update the application installation status (and generate / delete the application icon corresponding to the package information on the desktop), thereby realizing synchronized display of applications across systems.
[0129] The sharing management service is used to receive application sharing content sent from the gateway service and send it to the corresponding application. For example, application A outside the container sends application sharing content to application B inside the container through the gateway service. After receiving the application sharing content of application A sent from the gateway service, the sharing management service sends it to application B inside the container.
[0130] For the introduction of the kernel and driver layer, please refer to the corresponding introduction of the kernel and driver layer of the first operating system, which will not be repeated here.
[0131] In some embodiments, some services (or capabilities) of the second operating system in the container are clipped, and the clipped services are provided by the first operating system outside the container. In this way, the overhead of the container can be reduced while ensuring the operation of the operating system in the container. In other words, the second operating system running in the container can include some of the services it supports.
[0132] In some examples, for electronic devices, based on the services or capabilities provided by the first operating system, the second operating system located in the container can cooperate with the first operating system outside the container to implement corresponding functions. Accordingly, the second operating system can be part of a complete operating system. For example, for the methods or devices provided in various embodiments of the present application, the second operating system may not be required to be a complete operating system.
[0133] In other examples, the second operating system may also be a complete operating system.
[0134] Figure 5 The software structure of the Guest OS is described by taking the second operating system running in the container as an example. In specific implementation, the second operating system can also run in a virtual machine. Since the software structure of the virtual machine is a prior art, its specific introduction can refer to the introduction in the related art and will not be repeated here.
[0135] Understandably, Figure 5The various levels and names of the levels shown are only for illustrative purposes, and other division methods or naming methods may be used in actual applications. The software structure provided in the embodiment of the present application is only for illustrative purposes, and other division methods may be used in actual applications, and the present application does not limit this.
[0136] To facilitate understanding, the solution provided in the embodiment of the present application is further introduced below from the perspective of service collaboration of electronic devices.
[0137] like Figure 6 As shown, Figure 6 Shows the interaction of various services in electronic devices Figure 1 . The package management services in the first operating system and the second operating system synchronize application information through the gateway service. When installing / uninstalling an application in the second operating system, the package management service in the second operating system notifies the package management service in the first operating system through the gateway service and generates package information (also known as application status information). When the first operating system monitors the package information through the window management service (not shown in the figure), it will adjust (add / delete) the application icons displayed in the display window of the first operating system according to the package information.
[0138] After the first operating system synchronizes the application icons installed in the second operating system, cross-system application calls can also be performed based on the application icons. Figure 7 As shown, Figure 7 Shows the interaction of various services in electronic devices Figure 2 , the first operating system is installed with APP1, and the second operating system is installed with APP2. The first operating system and the second operating system respectively call the applications of APP1 and APP2 through the API in their respective operation management services to realize the life cycle drive of the application. After the first operating system receives the operation of triggering APP2 through the icon, the first operating system starts APP2 through the gateway service based on the operation management service according to the component startup method. Among them, the first operating system sends an instruction to call APP2 to the second operating system through the gateway service. When the second operating system receives the instruction to call APP2, it will call the application of APP2 through the operation management service. The window management service generates the operation interface of APP2 according to the application of APP2, and then feeds back the operation interface of APP2 to the first operating system through the gateway service, so that the first operating system can display the operation interface of APP2 in the display window of the first operating system.
[0139] The electronic device provided by the embodiment of the present application is introduced above from the perspectives of hardware implementation and software implementation. Based on the electronic device, the embodiment of the present application provides an application calling method. Figure 8 The following is a schematic diagram showing the process of the application calling method provided in the embodiment of the present application. Figure 1.like Figure 8 As shown, the application calling method is described by taking the interaction between the first operating system, the second operating system and the gateway service in the electronic device as an example, and includes the following steps:
[0140] S810: The first operating system sends a first instruction to the second operating system through a gateway service.
[0141] Among them, reference Figure 4A or Figure 4B In the introduction of the first operating system and the second operating system, the first operating system may include a Host OS, and the second operating system may include a Guest OS; or the first operating system and the second operating system may include different Guest OSs. The Guest OS runs in a virtual machine or a container.
[0142] The gateway service can be configured in the Host OS of the electronic device, and realize the communication between different operating systems in the electronic device based on IPC technology. For example, the communication between the Host OS and the Guest OS can be realized. For another example, for the scenario where multiple Guest OS are installed in the electronic device, the communication between different Guest OS can also be realized. For different Guest OS, they are two systems running in different environments. For example, suppose two containers of the electronic device are running and Windows XP, then and Windows XP are different Guest OS. For another example, two virtual machines of an electronic device respectively run and Windows XP, then and Windows XP are different Guest OS. In another example, the virtual machine and container of the electronic device respectively run and Windows XP, then It is a different Guest OS from Windows XP.
[0143] In some embodiments, the first operating system may send a first instruction for calling a first application in the second operating system to the second operating system through a gateway service. The first instruction may include tag information of the first application to identify the first application. In the second operating system, multiple applications are usually included, and the first instruction can indicate the first application among the multiple applications. Exemplarily, assuming that application A, application B, and application C are installed in the second operating system, and the first instruction includes tag information of application A, then the first application is application A.
[0144] S820: The second operating system calls a first application in the second operating system according to the first instruction.
[0145] After receiving the first instruction, the second operating system can call the first application pointed to by the first instruction in the second operating system according to the information in the first instruction. Exemplarily, the second operating system can call the first application in a component startup manner through the operation management service in the second operating system.
[0146] S830: The electronic device displays an operation interface of the first application in a display window of the first operating system.
[0147] The first operating system may call the window service to display the operation interface of the first application in the display window of the first operating system.
[0148] In an embodiment of the present application, the first operating system sends a first instruction to call a first application in the second operating system to the second operating system through a gateway service, and then the second operating system calls the first application according to the first instruction, so that the user does not perceive the different operating systems when using applications installed in different operating systems, thereby realizing cross-system application calls and improving the flexibility of application calls.
[0149] In one embodiment, if Fig. 9 As shown, Fig. 9 The following is a schematic diagram showing the process of the application calling method provided in the embodiment of the present application. Figure 2 The application calling method provided in the embodiment of the present application may also include:
[0150] S910, the electronic device displays a first icon of a first application based on a display window of a first operating system.
[0151] For example, Fig.10 As shown, a schematic diagram of a display window (or desktop) of a current electronic device is shown, and the display window includes a main interface, and two windows in the main interface: Window 1 and Window 2. Among them, the main interface corresponds to the Host OS of the electronic device, which is Mac OS; Window 1 corresponds to the Guest OS, which is Windows 7; Window 2 corresponds to another Guest OS, which is Windows XP. Window 1 displays applications: Application A, Application B, and Application C, and Window 2 displays applications: Application D, Application E, and Application F. It can be seen that in the current electronic devices with multiple operating systems installed, the applications installed in different operating systems are independently displayed in their corresponding windows or views.
[0152] The embodiment of the present application displays the first icon of the first application in the display window of the first operating system. That is, in the display window of the first operating system, not only the application icons installed by the first operating system itself can be displayed, but also the icons of the first application installed by the second operating system can be displayed.
[0153] In a possible implementation, in the case where the first operating system is the Host OS and the second operating system is the Guest OS, the display windows corresponding to the different operating systems may not be displayed separately, but only the display window of the operating system of the Host OS may be displayed, and then the full amount of application icons in the different operating systems may be displayed in the display window. From the user's perspective, a complete display window is presented to the user's field of vision, and the user will not perceive that different operating systems are installed in the electronic device. The user does not need to call the display windows corresponding to different operating systems to find the application the user wants to use, and the user experience is good.
[0154] like Fig.11 As shown, Fig.11 A display window diagram of the first operating system is shown. Figure 1 , wherein application A and application B are applications installed in the first operating system, and application C is an application installed in the second operating system. The icons corresponding to application A, application B, and application C are all displayed in the display window of the first operating system.
[0155] In another possible implementation, in the case where both the first operating system and the second operating system are Guest OS, the display windows corresponding to the different operating systems may not be displayed separately, but only the display windows of the Host OS and the first operating system may be displayed, and the application icon of the first application installed by the second operating system may be displayed in the display window of the first operating system, without displaying the display windows of other Guest OSes other than the first operating system, so that all application icons of different operating systems are displayed in two display windows (the display window of the Host OS still displays the application icons of the applications installed by the Host OS, while the display window of the first operating system displays the application icons of all the applications installed by the Guest OS). Based on this, from the user's perspective, the user only needs to call the two display windows to find the application the user wants to use, and the user experience is good.
[0156] The first icon of the first application displayed in the display window of the first operating system may be manually input by the user, or may be automatically realized by the first operating system and the second operating system interacting with each other. After introducing S920, the mechanism of automatically realizing the display of the first icon in the display window of the first operating system will be introduced.
[0157] S920: The first operating system receives and generates a first instruction in response to a first operation of the user on the first icon.
[0158] The first operation may be received by the sensor module 180 described in the embodiment of the present application. For example, the first operation may be a click operation or a sliding operation of a user at a display position of a first image on a display screen of an electronic device. When the first operating system receives the first operation, a response is triggered to generate a first instruction in the first operating system for calling a first application in the second operating system.
[0159] Based on the above solution, a first instruction can be generated in the first operating system of the electronic device, and then the electronic device can implement application calling across operating systems based on the first instruction, and the application calling has good flexibility.
[0160] In one embodiment, if Fig.12 As shown, Fig.12 Schematic diagram of the process of the application calling method provided in the embodiment of the present application Figure 3 The electronic device displays a first icon of a first application based on a display window of a first operating system (S910), which may include:
[0161] S121, the second operating system sends application status information of the first application to the first operating system through the gateway service.
[0162] The application status information may also be referred to as package information. The second operating system may obtain the application status information of the first application through the package management service, and then send the application status information to the first operating system through the gateway service. The application status information may include the first application icon, and optionally, the application status information may also include the name of the first application.
[0163] S122: The first operating system displays a first icon in a display window of the first operating system according to the application state information.
[0164] After the first operating system obtains the application status information, it can call the window service to display the first icon in the display window of the first operating system according to the application status information.
[0165] Based on the above solution, the display window of the first operating system can display the application icons of applications installed in other operating systems (second operating system), realizing the cross-system application icon display. In this way, the full display of application icons in different operating systems can be realized under the premise of displaying fewer display windows of operating systems (even only one display window). Furthermore, from the user's perspective, this can reduce the number of display windows that users need to call, and users can find the applications they want to use through fewer operations, which provides a good user experience.
[0166] In addition to the method of generating the first instruction by displaying the application icon across systems as described in S910-S920, the embodiment of the present application may also generate the first instruction by other methods. In another possible implementation, for example Fig.13 As shown, Fig.13 Schematic diagram 4 of the process of the application calling method provided in the embodiment of the present application is shown. The application calling method provided in the embodiment of the present application may also include:
[0167] S131, the electronic device displays an operation interface of a second application installed in the first operating system in a display window of the first operating system, wherein the operation interface includes first display information.
[0168] The first display information includes information of a first application installed in the second operating system, and can point to the first application. The first application needs to be jumped to open the specific display content pointed to by the first display information.
[0169] like Fig.14 As shown, Fig.14 A schematic diagram showing a display window of a first operating system Figure 2 The display window includes an operation interface of a second application, which is a chat application, and the operation interface displays first display information of a first application for shopping, an example of which is "Link XXXXXXXXXXXXXXXXXX".
[0170] In the embodiment of the present application, the first operating system can call the application program of the second application through the application management service, and the window service displays the operation interface of the second application in the display window of the first operating system based on the application program of the second application.
[0171] S132: The first operating system receives and generates a first instruction in response to a second operation of the user on the first display information.
[0172] In a possible scenario, the user is using a second application installed in the first operating system, but the operation interface of the second application displays application information of the first application, and the user wants to view details of the application information of the first application in the first application. At this time, the user can trigger the second operation.
[0173] In the embodiment of the present application, the second operation includes some operations that trigger the first display information of the operation interface. After receiving the second operation, the first operating system can respond to the second operation to generate a first instruction for calling the first application in the second operating system, and then based on the first instruction, a cross-system application call can be implemented.
[0174] Exemplarily, the first application is a shopping application, and the first display information may be a link to a product in the shopping application, and the second operation may be an operation of clicking on the link. Accordingly, the first instruction includes the first application information and the information of the product, and the second operating system may call the first application to open the display page of the product based on the first instruction. For another example, the first application is a browser, and the first display information is a website, which is indicated in the form of a QR code or a barcode, and the website requires a browser to open, then the second operation may be to identify the QR code or barcode, and the corresponding first instruction includes the first application information and the information of the website, and the second operating system may call the first application to open the display page of the website based on the first instruction.
[0175] Based on the above solution, a first instruction can be generated in the first operating system of the electronic device, and then the electronic device can implement application calling across operating systems based on the first instruction, and the application calling has good flexibility.
[0176] In addition, the embodiment of the present application may also generate the first instruction in other ways. In another possible implementation, Fig.15 As shown, Fig.15 The following is a schematic diagram showing a process of an application calling method provided in an embodiment of the present application. Figure 5 The application calling method provided in the embodiment of the present application may also include:
[0177] S151, the electronic device displays an operation interface of a second application installed in the first operating system in a display window of the first operating system. The operation interface includes second display information.
[0178] The second display information includes application information of the second application installed in the first operating system. For example, if the second application is a shopping application, the second display information may be displayed product information. For another example, if the second application is a reading application, the second display information may be a paragraph of text, a picture, etc.
[0179] In the embodiment of the present application, the first operating system can call the application program of the second application through the application management service, and the window service displays the operation interface of the second application in the display window of the first operating system based on the application program of the second application.
[0180] S152: The first operating system receives and responds to the user's third operation, and displays a list of selectable applications that are allowed to share the second display information in the display window of the first operating system. The list of selectable applications includes application information of the first application.
[0181] In one possible scenario, the user is using a second application installed on the first operating system, and the application information of the second application is displayed on the operation interface of the second application, and the user wants to share the application information of the second application with the first application. At this time, the user can trigger a third operation. The list of optional applications displayed by the third operation triggers the display of one or more optional application identifiers (for example, application icons), and the one or more optional application identifiers include the identifier of the first application.
[0182] Exemplarily, the third operation in the embodiment of the present application may be, for example, a click operation, a long press operation, or the like.
[0183] For example, Fig.16 A schematic diagram of a display window of a first operating system Figure 3 .like Fig.16 As shown in (a) of FIG. 1 , the display window of the first operating system displays the operation interface of the second application. The second display information included in the operation interface is the product information of the printer. At the same time, the operation interface includes a sharing option. After the user clicks the sharing option of the operation interface, Fig.16 As shown in (b) in FIG. 1 , the display window of the first operating system will display multiple optional applications that allow sharing of the second display information, and the optional applications include the first application.
[0184] It should be noted that Fig.16 The displayed optional application list is displayed in a horizontal arrangement at the bottom of the display window. Of course, the optional application list may also be distributed in other ways, which is not specifically limited in the embodiment of the present application.
[0185] It should be noted that Fig.16 This is just one possible example, and the user can also trigger the display of a list of optional applications that allow sharing of the second display information in the display window of the first operating system through other third operations. For example, in another example, the second application can be a social application A, and the displayed second display information is a message. The user wants to share this message to another social application B, and the social application B is the first application in the second operating system. Then, the user can trigger the sharing mechanism by long pressing the message, thereby displaying a list of optional applications that allow sharing of the message, and the list of optional applications includes the logo of the social application B for the user to select.
[0186] S153: The first operating system receives and responds to a fourth operation of the user on the selectable application list, and generates a first instruction according to the application information and the second display information.
[0187] The fourth operation is used to select the application information of the first application in the optional application list. Fig.16As shown, assuming that the fourth operation is a click operation, the user clicks the icon of the first application from the list of optional applications, and the first operating system can generate a first instruction including application information of the first application and product information of the printer (second display information). Based on the first instruction, the second operating system can be triggered to call the first application in the second operating system according to the first instruction (S820). In this case, the gateway service plays the role of sharing transfer, and the gateway service can be called a sharing transfer service.
[0188] Based on the above solution, a first instruction can be generated in the first operating system of the electronic device, and then the electronic device can realize application content sharing between applications across operating systems based on the first instruction, and the application calling flexibility is good.
[0189] The above embodiments provide a method for the first operating system to generate the first instruction. The following further introduces the application calling method provided in the embodiments of the present application from the application perspective of the first instruction.
[0190] In one embodiment, if Fig.17 As shown, Fig.17 The following is a schematic diagram showing a process of an application calling method provided in an embodiment of the present application. Figure 6 , the second operating system calls the first application in the second operating system according to the first instruction (S820), which may include:
[0191] S171, the second operating system generates an operation interface of the first application according to the first instruction.
[0192] In an embodiment of the present application, the operation interface of the first application may include the display content corresponding to the first display information (or the second display information), or may not include the display content corresponding to the first display information (or the second display information), depending on whether the first instruction is generated according to the first display information (or the second display information). Exemplarily, if the first instruction is generated by S910-S920, the operation interface of the first application does not include the display content corresponding to the first display information and the second display information. If the first instruction is generated by S131-S132, the operation interface of the first application includes the display content corresponding to the first display information. If the first instruction is generated by S151-S153, the operation interface of the first application includes the display content corresponding to the second display information.
[0193] In some embodiments, after the second operating system obtains the first instruction, it can call the application program of the first application according to the first instruction by running the API in the management service, and then generate the operation interface of the first application according to the application program of the first application through the window service.
[0194] S172: The second operating system sends the operation interface of the first application to the first operating system through the gateway service.
[0195] Among them, referring to the introduction of the gateway service in the embodiment of the present application, the gateway service can be used to realize cross-system communication, and then realize the transmission of the operating interface of the first application between the second operating system and the first operating system.
[0196] In one embodiment, the electronic device executes S830 after executing S172. For example, assuming that the first instruction is generated through S151-S153, Fig.16 As shown, the first instruction is Fig.16 In the example shown in FIG. 1 , the corresponding “call the first application to display the product information of the XX printer”, the generated second operating system generates the operation interface of the first application according to the first instruction as follows: Fig.18 As shown in (c), Fig.18 FIG4 shows a display window diagram of the first operating system provided in an embodiment of the present application, that is, the operation interface of the first application can be displayed in the display window of the first operating system. Fig.18 For the description of (a) in Fig.16 The description of (a) in Fig.18 For the description of (b) in Fig.16 The description of (b) in the figure is not repeated here.
[0197] In some embodiments, the user can perform a new operation on the operation interface of the first application, and the first operating system will generate a new first instruction according to the received new operation, and repeat the above S171-S172 process to update the operation interface of the first application (this process can be called life cycle drive), thereby providing the user with the complete functions of the first application. In addition, in this solution, the user will not perceive that the first application is not an application installed in the first operating system, and the user experience is good.
[0198] Based on the above solution, since the operation interface of the first application can be displayed in the display window of the first operating system, the operation interface of the first application can include the content that the user wants to present through operation (for example, the page corresponding to the first display information or the second display information), thus optimizing the user experience. In addition, since the solution realizes cross-system application calling, the application calling flexibility is good.
[0199] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of interaction between each node in the electronic device. It is understandable that the electronic device includes a hardware structure and / or software module corresponding to each function in order to realize the above functions. It should be easily appreciated by those skilled in the art that the method of the embodiment of the present application can be implemented in the form of hardware, software, or a combination of hardware and computer software in conjunction with the algorithm steps of each example described in the embodiment disclosed herein. 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. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.
[0200] The embodiment of the present application can divide the functional modules of the electronic device 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 or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0201] The embodiment of the present application also provides an electronic device, which includes a first operating system and a second operating system. Each module in the electronic device has the function of implementing the corresponding steps in the application calling method and can achieve its corresponding technical effect. The corresponding beneficial effects of each module executing the steps can be referred to the description of the corresponding steps in the application calling method, and will not be repeated here. The functions can be implemented by hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions. The electronic device can be an electronic device or a chip or system on chip in an electronic device. Fig.19 As shown, the electronic device may include a processing module 1910 and a display module 1920. The processing module 1910 may be Figure 3 The processor 110 in the electronic device shown in the figure, the display module 1920 can be Figure 3 Display screen 194 is shown in the electronic device.
[0202] Processing module 1910 is used for the first operating system to send a first instruction to the second operating system through a gateway service, and the first instruction is used to call the first application in the second operating system; processing module 1910 is also used for the second operating system to call the first application according to the first instruction; display module 1920 is used to display the operation interface of the first application in the display window of the first operating system.
[0203] In one embodiment, the first operating system includes a host operating system, and the second operating system includes a client operating system; or, the first operating system and the second operating system include different client operating systems; wherein the client operating system runs in a virtual machine or a container.
[0204] In one embodiment, the display module 1920 can also be used to display the first icon of the first application based on the display window of the first operating system; the processing module 1910 can also be used to receive and respond to the user's first operation on the first icon, and generate a first instruction in the first operating system.
[0205] In one embodiment, the processing module 1910 can also be specifically used by the second operating system to send application status information of the first application to the first operating system through the gateway service; the display module 1920 can also be used by the first operating system to display the first icon in the display window of the first operating system according to the application status information.
[0206] In one embodiment, the display module 1920 can also be used to display the operation interface of the second application installed in the first operating system in the display window of the first operating system; the operation interface includes first display information, and the first display information includes application information of the first application installed in the second operating system; the processing module 1910 can also be used for the first operating system to receive and respond to the user's second operation on the first display information, and generate a first instruction in the first operating system.
[0207] In one embodiment, the display module 1920 can also be used to display the operation interface of the second application installed in the first operating system in the display window of the first operating system; the operation interface includes second display information, and the second display information includes application information of the second application installed in the first operating system; the processing module 1910 can also be used to receive and respond to a third operation of the user through the first operating system, and the display module 1920 can also be used to display a list of optional applications that allow sharing of the second display information in the display window of the first operating system, and the optional application list includes application information of the first application; the processing module 1910 can also be used for the first operating system to receive and respond to a fourth operation of the user on the optional application list, and generate a first instruction according to the application information and the second display information, wherein the fourth operation is used to select application information.
[0208] In one embodiment, the processing module 1910 may also be specifically configured for the second operating system to generate an operation interface of the first application according to the first instruction; and the second operating system sends the operation interface of the first application to the first operating system through the gateway service.
[0209] The embodiment of the present application also provides a computer-readable storage medium. All or part of the processes in the above method embodiments can be completed by a computer program to instruct the relevant hardware, and the program can be stored in the above computer-readable storage medium. When the program is executed, it can include the processes of the above method embodiments. The computer-readable storage medium can be a terminal device of any of the above embodiments, such as: an internal storage unit including a data sending end and / or a data receiving end, such as a hard disk or memory of a terminal device. The above computer-readable storage medium can also be an external storage device of the above terminal device, such as a plug-in hard disk equipped on the above terminal device, a smart memory card (smart media card, SMC), a secure digital (secure digital, SD) card, a flash card (flash card), etc. Further, the above computer-readable storage medium can also include both an internal storage unit of the above terminal device and an external storage device. The above computer-readable storage medium is used to store the above computer program and other programs and data required by the above terminal device. The above computer-readable storage medium can also be used to temporarily store data that has been output or is to be output.
[0210] The present application also provides a computer instruction. All or part of the process in the above method embodiment can be completed by computer instructions to instruct related hardware (such as computers, processors, network devices, and terminals, etc.). The program can be stored in the above computer-readable storage medium.
[0211] The present application also provides a chip system. The chip system may be composed of a chip, or may include a chip and other discrete devices, without limitation. The chip system includes a processor and a transceiver, and all or part of the processes in the above method embodiment may be completed by the chip system, such as the chip system may be used to implement the functions performed by the electronic device in the above method embodiment.
[0212] In one possible design, the chip system also includes a memory, which is used to store program instructions and / or data. When the chip system is running, the processor executes the program instructions stored in the memory so that the chip system performs the functions performed by the electronic device in the above method embodiment.
[0213] In the embodiments of the present application, the processor may be a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component, and may implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application may be directly embodied as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.
[0214] In the embodiment of the present application, the memory may be a non-volatile memory, such as a hard disk drive (HDD) or a solid-state drive (SSD), etc., or a volatile memory (volatile memory), such as a random-access memory (RAM). The memory is any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory in the embodiment of the present application may also be a circuit or any other device that can implement a storage function, for storing instructions and / or data.
[0215] It should be noted that the terms "first" and "second" in the specification, claims and drawings of the present application are used to distinguish different objects rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices.
[0216] It should be understood that in the embodiments of the present application, "at least one (item)" refers to one or more, "multiple" refers to two or more, "at least two (items)" refers to two or three and more than three, and "and / or" is used to describe the association relationship of the associated objects, indicating that there can be three relationships. For example, "A and / or B" can represent: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. "At least one of the following (items)" or similar expressions refers to any combination of these items, including any combination of single items (items) or plural items (items). For example, at least one of a, b or c can represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple. It should be understood that in the embodiments of the present application, "B corresponding to A" means that B is associated with A. For example, B can be determined based on A. It should also be understood that determining B based on A does not mean determining B based only on A, but B can also be determined based on A and / or other information. In addition, the "connection" in the embodiments of the present application refers to various connection modes such as direct connection or indirect connection to achieve communication between devices, and the embodiments of the present application do not impose any limitation on this.
[0217] Unless otherwise specified, the "transmission" (transmit / transmission) appearing in the embodiments of the present application refers to bidirectional transmission, including sending and / or receiving actions. Specifically, the "transmission" in the embodiments of the present application includes the sending of data, the receiving of data, or the sending of data and the receiving of data. In other words, the data transmission here includes uplink and / or downlink data transmission. Data may include channels and / or signals, uplink data transmission is uplink channel and / or uplink signal transmission, and downlink data transmission is downlink channel and / or downlink signal transmission. The "network" and "system" appearing in the embodiments of the present application express the same concept, and the communication system is the communication network.
[0218] 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.
[0219] 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.
[0220] 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.
[0221] In addition, each functional unit in each embodiment of the present application can be integrated into a processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of a software functional unit. 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 such an 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, such as: a single-chip microcomputer, a 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: various media that can store program codes, such as USB flash drives, mobile hard disks, ROM, RAM, disks, or optical disks.
[0222] The above is only a specific implementation 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 should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. An application calling method, characterized in that: The method is applied to an electronic device, the electronic device includes a first operating system and a second operating system, and the method includes: The first operating system sends a first instruction to the second operating system through a gateway service, where the first instruction is used to call a first application in the second operating system; The second operating system calls the first application according to the first instruction; The operation interface of the first application is displayed in the display window of the first operating system.
2. The application calling method according to claim 1, characterized in that: The first operating system includes a host operating system, and the second operating system includes a client operating system; or, the first operating system and the second operating system include different client operating systems; wherein the client operating system runs in a virtual machine or a container.
3. The application calling method according to claim 1 or 2, characterized in that: Before sending the first instruction, the method further includes: displaying a first icon of the first application based on the display window; The first instruction is generated by receiving and responding to a first operation of a user on the first icon.
4. The application calling method according to claim 3, characterized in that: The displaying the first icon of the first application based on the display window includes: The second operating system sends the application state information of the first application to the first operating system through the gateway service; The first operating system displays the first icon in the display window according to the application state information.
5. The application calling method according to claim 1 or 2, characterized in that: The method further comprises: Displaying an operation interface of a second application installed in the first operating system in the display window; the operation interface includes first display information; The first operating system receives and generates the first instruction in response to a second operation of a user on the first displayed information.
6. The application calling method according to claim 1 or 2, characterized in that: The method further comprises: Displaying an operation interface of a second application installed in the first operating system in the display window; the operation interface includes second display information; The first operating system receives and responds to a third operation of the user, and displays in the display window a list of selectable applications that are allowed to share the second display information, wherein the list of selectable applications includes application information of the first application; The first operating system receives and generates the first instruction according to the application information and the second display information in response to a fourth operation of the user on the selectable application list, wherein the fourth operation is used to select the application information.
7. The application calling method according to any one of claims 1 to 6, characterized in that: The second operating system calling the first application in the second operating system according to the first instruction includes: The second operating system generates an operation interface of the first application according to the first instruction; The second operating system sends the operation interface of the first application to the first operating system through the gateway service.
8. An electronic device, comprising a first operating system and a second operating system, the electronic device comprising: A processing module, configured for the first operating system to send a first instruction to the second operating system through a gateway service, wherein the first instruction is used to call a first application in the second operating system; The processing module is further configured for the second operating system to call the first application according to the first instruction; A display module is used to display the operation interface of the first application in the display window of the first operating system.
9. An electronic device, characterized in that: The electronic device comprises a processor, and when the processor executes the program code, the electronic device executes the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and when the computer instructions are executed, the method according to any one of claims 1 to 7 is executed.
Citation Information
Cited By
Multi-system application running method and device, storage medium and program product
CN119045953A
