Patent ID: 11874903
Assignee: HUAWEI TECHNOLOGIES CO., LTD.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 9:
10. A device, comprising:
a hardware device configured to display an interface of the device;
at least one processor coupled to the hardware device; and
one or more memories coupled to the at least one processor and storing programming instructions for execution by the at least one processor to:
trigger a trusted user interface (TUI) display request of a client application (CA) according to a first operation on a CA interface of the CA, wherein the CA runs on the device on which a rich execution environment and a trusted execution environment are deployed, and wherein the CA interface is a user interface that is in the rich execution environment;
switch a display environment of the CA from the rich execution environment to the trusted execution environment;
control the hardware device to display a trusted application (TA) interface of the CA in the trusted execution environment, wherein the TA interface is used for sensitive information input; and
wherein switching the display environment of the CA from the rich execution environment to the trusted execution environment comprises:
controlling, according to the TUI display request of the CA by using a first driver that is of the hardware device and that is in the rich execution environment, the hardware device to exit a current non-secure mode, wherein the non-secure mode is a running mode that corresponds to the hardware device and that is in the rich execution environment;
after the hardware device exits the non-secure mode, generating, by the first driver in the rich execution environment, first switching information, wherein the first switching information indicates that the hardware device has exited the non-secure mode; and
controlling, according to the first switching information by using a second driver that is of the hardware device and that is in the trusted execution environment, the hardware device to enter a secure mode, wherein the secure mode is a running mode that corresponds to the hardware device and that is in the trusted execution environment.