Legal claims defining the scope of protection, as filed with the USPTO.
1. A user interface switching method, comprising: triggering a trusted user interface (TUI) display request of a client application (CA), the triggering performed according to a first operation on a CA interface of the CA by a user, the CA running on a terminal, a rich execution environment and a trusted execution environment being deployed on the terminal, and the CA interface being in the rich execution environment; switching a display environment of the CA from the rich execution environment to the trusted execution environment according to the TUI display request; displaying a trusted application (TA) interface of the CA in the trusted execution environment, the TA interface being used by the user to input personal information; generating a non-secure-event response message triggered by a first event, the first event being in the rich execution environment; switching from the TA interface to a response interface of the first event, the switching performed according to the non-secure-event response message; receiving a response feedback message, the response feedback message indicating that the user of the terminal completed processing of the first event using the response interface; and displaying the TA interface again according to the response feedback message.
2. The method according to claim 1 , wherein the displaying the TA interface comprises: running a TA in the trusted execution environment, the TA corresponding to the CA; and displaying the TA interface in the trusted execution environment by invoking the hardware device in the secure mode.
3. The method according to claim 1 , wherein the switching from the TA interface to a response interface according to a non-secure-event response message comprises: triggering a TUI display pause request according to the non-secure-event response message; controlling the display-related hardware device, the controlling performed by the second driver to cause the hardware device to exit the secure mode, the controlling performed according to the TUI display pause request, the secure mode corresponding to the hardware device in the trusted execution environment; controlling, using the first driver, the hardware device to enter a non-secure mode, the controlling performed according to second switching information, the second switching information indicating the hardware device has exited the secure mode, the non-secure mode corresponding to the hardware device in the rich execution environment; and displaying the response interface of the first event by invoking the hardware device that has switched to the non-secure mode.
4. The method according to claim 1 , wherein the method further comprises: switching from the TA interface to the CA interface according to a TUI display exit request, wherein the TUI display exit request is triggered by a second operation on the TA interface by the user.
5. The method according to claim 4 , wherein the switching from the TA interface to the CA interface according to the TUI display exit request comprises: controlling, by the second driver, the hardware device to exit the secure mode, the controlling performed according to the TUI display exit request, the secure mode corresponding to the hardware device in the trusted execution environment; controlling, by the first driver, the hardware device to enter the non-secure mode, the controlling performed according to third switching information, the third switching information indicating that the hardware device has exited the secure mode, and the non-secure mode corresponds to the hardware device in the rich execution environment; and displaying the CA interface in the rich execution environment by invoking the hardware device that has switched to the non-secure mode.
6. The method according to claim 1 , wherein the switching the display environment of the CA from the rich execution environment to the trusted execution environment according to the TUI display request comprises: controlling the hardware device to exit a current non-secure mode, the controlling being performed according to the TUI display request of the CA using a driver of a display-related hardware device, the driver being in the rich execution environment, the display-related hardware device configured to display the CA interface and the TA interface, the non-secure mode corresponding to the hardware device, and the hardware device being in the rich execution environment; and controlling the hardware device to enter a secure mode, the controlling being performed according to first switching information using a driver of the hardware device and the driver is in the trusted execution environment, the first switching information indicating that the hardware device has exited the non-secure mode, the secure mode corresponds to the hardware device, and the hardware device is in the trusted execution environment.
7. A terminal, comprising: a hardware device configured to display an interface of the terminal; a memory storing instructions; and a processor coupled to the hardware device and the memory, with the processor executing the instructions to: trigger a trusted user interface (TUI) display request of a client application (CA) the triggering being performed according to a first operation on a CA interface of the CA by a user, the CA running on the terminal, a rich execution environment and a trusted execution environment being deployed on the terminal, the CA interface comprising a user interface of the CA, and the CA interface being in the rich execution environment; switch a display environment of the CA from the rich execution environment to the trusted execution environment according to the TUI display request; control the hardware device to display a trusted application (TA) interface of the CA in the trusted execution environment, the TA interface is used by the user of the terminal to input personal information; generate a non-secure-event response message triggered by a first event, the first event being in the rich execution environment; switch from the TA interface to a response interface of the first event, the switching performed according to the non-secure-event response message; receive a response feedback message, the response feedback message indicating that the user of the terminal completed processing of the first event using the response interface; and control the hardware device to display the TA interface again according to the response feedback message.
8. The terminal according to claim 7 , wherein the displaying the TA interface comprises: run a TA in the trusted execution environment, the TA corresponding to the CA; and display the TA interface in the trusted execution environment by invoking the hardware device in the secure mode.
9. The terminal according to claim 7 , wherein the processor further executes the instructions to: trigger a TUI display pause request according to the non-secure-event response message; control, using the second driver, the hardware device to exit the secure mode, the control performed according to the TUI display pause request, the secure mode corresponding to the hardware device in the trusted execution environment; and control, by the first driver, the hardware device to enter a non-secure mode, and display the response interface of the first event in the rich execution environment by invoking the hardware device that has switched to the non-secure mode, the control performed according to second switching information, the second switching information indicating that the hardware device has exited the secure mode, and the non-secure mode corresponds to the hardware device in the rich execution environment.
10. The terminal according to claim 7 , wherein the processor further executes the instructions to: enable the terminal to switch from the TA interface to the CA interface by using the hardware device, the switch performed according to a TUI display exit request, the TUI display exit request being triggered by the triggering module according to a second operation on the TA interface by the user.
11. The terminal according to claim 10 , wherein the switching from the TA interface to the CA interface according to the TUI display exit request comprises the processor further executing the instructions to: control, by the second driver, the hardware device to exit the secure mode, wherein the secure mode corresponds to the hardware device in the trusted execution environment; and control, by the first driver, the hardware device to enter a non-secure mode, and display the CA interface by invoking the hardware device that has switched to the non-secure mode, the hardware device displaying the CA interface in the rich execution environment, the control performed according to third switching information, the third switching information indicating that the hardware device has exited the secure mode, and the non-secure mode corresponds to the hardware device in the rich execution environment.
12. The terminal according to claim 7 , with the switching the display environment of the CA from the rich execution environment to the trusted execution environment according to the TUI display request the processor further executes the instructions to: control the hardware device to exit a non-secure mode, the controlling being performed according to the TUI display request of the CA using a driver of the hardware device, the hardware device being in the rich execution environment, the non-secure mode corresponds to the hardware device, and the hardware device is in the rich execution environment; and control the hardware device to enter a secure mode, the control being performed according to first switching information using the driver of the hardware device, the hardware device being and that is in the trusted execution environment, wherein the first switching information indicates that the hardware device has exited the non-secure mode, and the secure mode corresponds to the hardware device and that is in the trusted execution environment.
13. A non-transitory computer-readable media storing computer instructions for user interface switching, that when executed by one or more processors, cause the one or more processors to perform: triggering a trusted user interface (TUI) display request of a client application (CA), the CA running on a terminal, a rich execution environment and a trusted execution environment being deployed on the terminal, the triggering performed according to a first operation on a CA interface of the CA by a user, the CA interface comprising a user interface of the CA in the rich execution environment; switching a display environment of the CA from the rich execution environment to the trusted execution environment according to the TUI display request; displaying a trusted application (TA) interface of the CA in the trusted execution environment, the TA interface being used by the user of the terminal to input personal information; generating a non-secure-event response message triggered by a first event, the first event being in the rich execution environment; switching from the TA interface to a response interface of the first event, the switching performed according to the non-secure-event response message; receiving a response feedback message, the response feedback message indicating that the user of the terminal completed processing of the first event using the response interface; and displaying the TA interface again according to the response feedback message.
14. The non-transitory computer-readable media according to claim 13 , wherein the displaying the TA interface comprises: running a TA in the trusted execution environment, the TA corresponding to the CA; and displaying the TA interface in the trusted execution environment by invoking the hardware device in the secure mode.
15. The non-transitory computer-readable media according to claim 13 , wherein the switching from the TA interface to the response interface comprises: triggering a TUI display pause request according to the non-secure-event response message; controlling, by the second driver, the display-related hardware device configured to display the CA interface and the TA interface, the controlling performed by the second driver to cause the hardware device to exit the secure mode, the second driver being in the trusted execution environment, the controlling performed according to the TUI display pause request, the secure mode corresponding to the hardware device in the trusted execution environment; controlling, by the first driver, the hardware device to enter the non-secure mode, the controlling performed according to second switching information, the second switching information indicating that the hardware device has exited the secure mode, and the non-secure mode corresponds to the hardware device in the rich execution environment; and displaying the response interface of the first event in the rich execution environment by invoking the hardware device that has switched to the non-secure mode.
16. The non-transitory computer-readable media according to claim 13 , wherein the one or more processors further execute the instructions to perform: switching from the TA interface to the CA interface, the switching performed according to a TUI display exit request, the TUI display exit request being triggered by a second operation on the TA interface by the user.
17. The non-transitory computer-readable media according to claim 13 , wherein the switching the display environment of the CA from the rich execution environment to the trusted execution environment according to the TUI display request comprises: controlling the hardware device to exit a non-secure mode, the controlling being performed according to the TUI display request of the CA using a driver of a display-related hardware device, the display-related hardware device being in the rich execution environment, the display-related hardware device configured to display the CA interface and the TA interface, the non-secure mode corresponds to the hardware device, and the hardware device is in the rich execution environment; and controlling the hardware device to enter a secure mode, the controlling being performed according to first switching information using the driver of the hardware device, the hardware device being in the trusted execution environment, the first switching information indicates that the hardware device has exited the non-secure mode, the secure mode corresponds to the hardware device, and the hardware device is in the trusted execution environment.
Unknown
May 11, 2021
Browse 5M+ US patents with plain-English claim translations and AI-generated analysis.