A mobile device, comprising: a first processor for executing a first operating system; a second processor for executing a second operating system; a hardware device for generating an input data; and an embedded controller, coupled to the first processor, the second processor and the hardware device, for communicating between the first operating system and the hardware device and between the second operating system and the hardware device through a uniform message, characterized in that when the first operating system encodes a first operating command into the uniform message and sends the uniform message to the embedded controller, the embedded controller decodes the uniform message to the first operating command such that the hardware device operates according to the first operating command; wherein when the second operating system encodes a second operating command into the uniform message and sends the uniform message to the embedded controller, the embedded controller decodes the uniform message to the second operating command such that the hardware device operates according to the second operating command; and wherein when the embedded controller receives the input data from the hardware device, the embedded controller encodes the input data into the uniform message and sends the uniform message to one of the first operating system and the second operating system, and the operating system receiving the uniform message decodes the uniform message to the input data; wherein the first operating system comprises an embedded controller driver for encoding the first operating command into the uniform message and sending the uniform message to the embedded controller; the second operating system comprises an inter-process communication, IPC, driver for encoding the second operating command into the uniform message and sending the uniform message to the embedded controller; and the embedded controller driver and the IPC driver are configured to decode the uniform message sent by the embedded controller to the input data. a first processor for executing a first operating system; a second processor for executing a second operating system; a hardware device for generating an input data; and an embedded controller, coupled to the first processor, the second processor and the hardware device, for communicating between the first operating system and the hardware device and between the second operating system and the hardware device through a uniform message, characterized in that when the first operating system encodes a first operating command into the uniform message and sends the uniform message to the embedded controller, the embedded controller decodes the uniform message to the first operating command such that the hardware device operates according to the first operating command; wherein when the second operating system encodes a second operating command into the uniform message and sends the uniform message to the embedded controller, the embedded controller decodes the uniform message to the second operating command such that the hardware device operates according to the second operating command; and wherein when the embedded controller receives the input data from the hardware device, the embedded controller encodes the input data into the uniform message and sends the uniform message to one of the first operating system and the second operating system, and the operating system receiving the uniform message decodes the uniform message to the input data; wherein the first operating system comprises an embedded controller driver for encoding the first operating command into the uniform message and sending the uniform message to the embedded controller; the second operating system comprises an inter-process communication, IPC, driver for encoding the second operating command into the uniform message and sending the uniform message to the embedded controller; and the embedded controller driver and the IPC driver are configured to decode the uniform message sent by the embedded controller to the input data.