主权项 |
1. A method of switching between a host environment of a mobile device and a guest environment of the mobile device, the method comprising:
configuring the host environment to launch a user interface (UI) proxy application in response to receiving an indication by a user on a user interface (UI) of the mobile device of a desire to switch from the host environment to the guest environment; in response to a launch of the UI proxy application as a result of receiving the indication, initiating, by the UI proxy application, a request to wake-up the guest environment; and controlling, by the UI proxy application, access by a hardware framebuffer of the mobile device to contents of a virtual framebuffer that is updated with display data for the guest environment as a result of a waking-up of the guest environment, wherein the UI proxy application copies the contents of the virtual framebuffer into the hardware framebuffer, wherein the guest environment is a virtual machine comprising a guest operating system and a hardware emulation layer in communication with the guest operating system, wherein the hardware emulation layer is supported by a hypervisor running within the host environment, the hypervisor including the UI proxy application and the virtual framebuffer, and wherein the request to wake-up the guest environment is transmitted to the hardware emulation layer and emulates a “power on” command to the virtual machine. |