Information processing method and device

By deploying multiple TEEs in the terminal device, each TEE processes the display request, using the multi-TEE architecture to improve the security of the display results of the terminal device, solving the security problem when the terminal device processes sensitive information, and achieving higher security. and cost-effectiveness.

CN118797752APending Publication Date: 2024-10-18HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410813370.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2022-01-17
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

When the terminal device processes sensitive information input by the user, it is vulnerable to hacker attacks, which threatens the security of the user account. The single use of REE and TEE in the existing technology may reduce the security of the displayed results.

Method used

Deploy multiple trusted execution environments TEE in the terminal device, integrate the TUI device driver in each TEE, process the display request with different TEEs by switching the operating environment, use the first TEE to draw the interface and drive the display interface through the TUI display of the second TEE , improve safety.

Benefits of technology

Through the multi-TEE architecture, the security of terminal devices in processing sensitive information input by users is enhanced, preventing hacker attacks, improving the security of user accounts, and reducing manufacturing costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118797752A_ABST
    Figure CN118797752A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an information processing method and device, and the method comprises the steps: setting a TEE which can execute a display request processing process and obtain a display result in a terminal device, so that when the terminal device obtains a first display request through a first TEE, because the first display request comprises the display information of a first interface, the display information of the first interface can be obtained; according to the embodiment of the invention, the terminal equipment can draw the first interface through the first TUI frame in the first TEE, so that the processing process of the first display request is realized, and as the TUI display driver is integrated in the second TEE, the terminal equipment can call the TUI display driver of the second TEE to display the first interface, so that the safety of obtaining a display result by the terminal equipment is improved.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application. The application number of the original application is 202210051809.1, and the original application date is January 17, 2022. The entire contents of the original application are incorporated into this application by reference. Technical Field

[0002] The present application relates to the field of terminal technology, and in particular to an information processing method and device. Background Art

[0003] With the development of terminal technology, terminal devices can provide different functions for users, so that terminal devices can meet different needs of users. Among them, when terminal devices provide different functions for users, users may be required to enter sensitive information such as user name, password or card number. However, hackers may obtain sensitive information of users by cracking the system. Summary of the invention

[0004] The embodiments of the present application provide an information processing method and apparatus to improve the security of display results obtained by a terminal device.

[0005] In some scenarios, since a rich execution environment (REE) and a trusted execution environment (TEE) are deployed in the terminal device, TEE can provide a trusted user interface (TUI) function. When the terminal device obtains a display request through an application in the REE, the terminal device can switch the operating environment to TEE, so that the terminal device can obtain the display request through TEE. Furthermore, the terminal device can execute the display request processing through the TUI function provided by TEE to obtain the display result.

[0006] In some embodiments of the present application, a TEE that can execute a display request processing process and obtain a display result is set in a terminal device. In this way, when the terminal device obtains a first display request through a first TEE, since the first display request includes display information of the first interface, the terminal device can draw the first interface through the first TUI framework in the first TEE, thereby implementing the processing of the first display request. Since the TUI display driver is integrated in the second TEE, the terminal device can call the TUI display driver of the second TEE to display the first interface, thereby improving the security of the terminal device obtaining the display result.

[0007] In a first aspect, an embodiment of the present application provides an information processing method and apparatus, which are applied to a terminal device, wherein the terminal device is deployed with a rich execution environment REE and at least two trusted execution environments TEE, and the REE includes one or more applications, and the method includes: when the terminal device obtains a first display request in a first application, the terminal device obtains the first display request from the first application based on a first trusted user interface TUI trusted application; wherein the first application is any application in the REE, the first display request is used to display a first interface, the first display request includes display information of the first interface, the first TUI trusted application runs in a first TEE, and the first TEE is a TEE in at least two trusted execution environments TEE; the terminal device obtains the first display request from the first TUI trusted application based on a first TUI framework; wherein the first TUI framework runs in the first TEE; the terminal device draws the first interface based on the first TUI framework; the terminal device obtains information for indicating display of the first interface from the first TUI framework based on a TUI server; wherein the TUI server runs in a second TEE, the second TEE is a TEE in at least two trusted execution environments TEE, and a TUI display driver is integrated in the second TEE; the terminal device calls the TUI display driver to display the first interface based on the TUI server. In this way, the terminal device can draw the first interface through the first TUI framework in the first TEE, and display the first interface through the TUI display driver in the second TEE, thereby improving the security of the display result obtained by the terminal device.

[0008] In a possible implementation, the second TEE also integrates a TUI input driver, the first interface includes an input component, and the method further includes: when the terminal device receives a trigger for the input component on the first interface based on the TUI server, the terminal device obtains first security information based on the TUI server; wherein the first security information is obtained by the TUI server calling the TUI input driver, the first security information is information based on the input component input, and the first security information includes: account password or payment password; the terminal device obtains the first security information from the TUI server based on the first TUI trusted application; the terminal device sends the first security information to the first server based on the first TUI trusted application; wherein the first server is used to serve the first application; when the first server determines that the first security information matches the preset security information, the terminal device obtains information indicating a successful match from the first server based on the first application; the terminal device displays the second interface based on the first application. In this way, after the terminal device displays the first interface, when the terminal device receives a trigger for the input component on the first interface, the terminal device can improve the security of displaying the second interface based on the determination of the first server.

[0009] In a possible implementation, the terminal device obtains the first security information from the TUI server based on the first TUI trusted application, including: the terminal device sends the first security information to the virtual machine monitor based on the TUI server; the terminal device sends the first security information to the system kernel of the first TEE based on the virtual machine monitor; the terminal device sends the first security information to the virtual machine inter-process communication VM IPC client based on the system kernel of the first TEE; the terminal device sends the first security information to the first TUI framework based on the virtual machine inter-process communication VM IPC client; when the terminal device calls the TUI application programming interface API, the terminal device sends the first security information to the first TUI trusted application based on the first TUI framework; the terminal device obtains the first security information based on the first TUI trusted application. The first TUI trusted application is in the first TEE, and the TUI server is in the second TEE. The first TEE and the second TEE can exchange data through the virtual machine monitor, thereby improving the security of the terminal device system.

[0010] In a possible implementation, the terminal device obtains a first display request from a first application based on a first trusted user interface TUI trusted application, including: the terminal device sends the first display request to a system kernel of REE based on the first application; the terminal device sends the first display request to a virtual machine monitor based on the system kernel of REE; the terminal device sends the first display request to the first TUI trusted application based on the virtual machine monitor; the terminal device obtains the first display request based on the first TUI trusted application. In this way, after the terminal device obtains the first display request based on the first TUI trusted application, the terminal device can execute subsequent steps.

[0011] In a possible implementation, the terminal device obtains the first display request from the first TUI trusted application based on the first TUI framework, including: when the terminal device calls the TUI application programming interface API, the terminal device sends the first display request to the first TUI framework based on the first TUI trusted application; the terminal device obtains the first display request based on the first TUI framework. In this way, after the terminal device obtains the first display request based on the first TUI framework, the terminal device can perform subsequent steps.

[0012] In a possible implementation, the terminal device obtains information for indicating display of the first interface from the first TUI framework based on the TUI server, including: the terminal device sends information for indicating display of the first interface to the VM IPC client for inter-process communication of the virtual machine based on the first TUI framework; the terminal device sends information for indicating display of the first interface to the system kernel of the first TEE based on the VM IPC client for inter-process communication of the virtual machine; the terminal device sends information for indicating display of the first interface to the virtual machine monitor based on the system kernel of the first TEE; the terminal device sends information for indicating display of the first interface to the TUI server based on the virtual machine monitor; the terminal device obtains information for indicating display of the first interface based on the TUI server. In this way, after the terminal device obtains the information for indicating display of the first interface based on the TUI server, the terminal device can display the first interface. Since the TUI server is located in the second TEE, the terminal device can improve the security of displaying the first interface.

[0013] In one possible implementation, the terminal device obtains a first display request in a first application, including: the terminal device displays a third interface; wherein the third interface is one of the interfaces in the first application, and the third interface includes an input area; when the terminal device receives a trigger for the input area on the third interface through the first application, the terminal device obtains the first display request.

[0014] In one possible implementation, the terminal device displays a third interface, including: the terminal device displays a fourth interface; wherein the fourth interface includes a first control for opening a first application; when the terminal device receives a trigger for the first control on the fourth interface through the first application, the terminal device obtains a second display request; wherein the second display request is used to display the third interface, and the second display request includes display information of the third interface; the terminal device displays the third interface according to the second display request.

[0015] In a possible implementation, the terminal device displays a third interface according to the second display request, including: the terminal device sends a second display request to the system kernel of REE based on the first application; the terminal device sends a second display request to the virtual machine monitor based on the system kernel of REE; the terminal device sends a second display request to the first TUI trusted application based on the virtual machine monitor; when the terminal device calls the TUI application programming interface API, the terminal device sends a second display request to the first TUI framework based on the first TUI trusted application; the terminal device draws the third interface based on the first TUI framework; the terminal device sends information for indicating display of the third interface to the virtual machine inter-process communication VM IPC client based on the first TUI framework; the terminal device sends information for indicating display of the third interface to the system kernel of the first TEE based on the virtual machine inter-process communication VM IPC client; the terminal device sends information for indicating display of the third interface to the virtual machine monitor based on the system kernel of the first TEE; the terminal device sends information for indicating display of the third interface to the TUI server based on the virtual machine monitor; the terminal device calls the TUI display driver to display the third interface based on the TUI server.

[0016] In one possible implementation, the terminal device obtains a first display request in a first application, including: the terminal device displays a fifth interface; wherein the fifth interface is one of the interfaces after opening the first application, and the fifth interface includes a third control; when the terminal device receives a trigger for the third control, the terminal device obtains the first display request.

[0017] In a second aspect, an embodiment of the present application provides an information processing device, which is applied to a terminal device. The information processing device is deployed with a rich execution environment REE and at least two trusted execution environments TEE. The REE includes one or more applications. The device includes a processing unit and a display unit.

[0018] Exemplarily, the processing unit is used for: when the terminal device obtains a first display request from the first application, obtaining the first display request from the first application based on the first trusted user interface TUI trusted application; wherein the first application is any application in the REE, the first display request is used to display the first interface, the first display request includes display information of the first interface, the first TUI trusted application runs in the first TEE, and the first TEE is a TEE in at least two trusted execution environments TEE; the processing unit is also used for: obtaining the first display request from the first TUI trusted application based on the first TUI framework; wherein the first TUI framework runs in the first TEE; the processing unit is also used for: drawing the first interface based on the first TUI framework; the processing unit is also used for: obtaining information for indicating display of the first interface from the first TUI framework based on the TUI server; wherein the TUI server runs in the second TEE, the second TEE is a TEE in at least two trusted execution environments TEE, and the TUI display driver is integrated in the second TEE; the display unit is used for: based on the TUI server, calling the TUI display driver to display the first interface.

[0019] In one possible implementation, the second TEE also integrates a TUI input driver, the first interface includes an input component, and the processing unit is also used to: when the terminal device receives a trigger for the input component on the first interface based on the TUI server, obtain first security information based on the TUI server; wherein the first security information is obtained by the TUI server calling the TUI input driver, the first security information is information based on the input component input, and the first security information includes: account password or payment password; the processing unit is also used to: obtain the first security information from the TUI server based on the first TUI trusted application; the processing unit is also used to: send the first security information to the first server based on the first TUI trusted application; wherein the first server is used to serve the first application; when the first server determines that the first security information matches the preset security information, the processing unit is also used to: obtain information indicating a successful match from the first server based on the first application; the display unit is also used to: display the second interface based on the first application.

[0020] In one possible implementation, the processing unit is specifically used to: send first security information to the virtual machine monitor based on the TUI server; send first security information to the system kernel of the first TEE based on the virtual machine monitor; send first security information to the virtual machine inter-process communication VM IPC client based on the system kernel of the first TEE; the terminal device sends first security information to the first TUI framework based on the virtual machine inter-process communication VM IPC client; when the terminal device calls the TUI application programming interface API, send first security information to the first TUI trusted application based on the first TUI framework; obtain first security information based on the first TUI trusted application.

[0021] In one possible implementation, the processing unit is specifically used to: send a first display request to a system kernel of REE based on a first application; send a first display request to a virtual machine monitor based on the system kernel of REE; send a first display request to a first TUI trusted application based on the virtual machine monitor; and obtain a first display request based on the first TUI trusted application.

[0022] In a possible implementation, the processing unit is specifically configured to: when the terminal device calls a TUI application programming interface API, send a first display request to a first TUI framework based on a first TUI trusted application; and obtain the first display request based on the first TUI framework.

[0023] In one possible implementation, the processing unit is specifically used to: send information for indicating display of the first interface to the virtual machine inter-process communication VM IPC client based on the first TUI framework; send information for indicating display of the first interface to the system kernel of the first TEE based on the virtual machine inter-process communication VM IPC client; send information for indicating display of the first interface to the virtual machine monitor based on the system kernel of the first TEE; send information for indicating display of the first interface to the TUI server based on the virtual machine monitor; obtain information for indicating display of the first interface based on the TUI server.

[0024] In one possible implementation, the processing unit is specifically used to: display a third interface; wherein the third interface is one of the interfaces in the first application, and the third interface includes an input area; when the terminal device receives a trigger for the input area on the third interface through the first application, a first display request is obtained.

[0025] In one possible implementation, the processing unit is specifically used to: display a fourth interface; wherein the fourth interface includes a first control for opening a first application; when the terminal device receives a trigger for the first control on the fourth interface through the first application, obtain a second display request; wherein the second display request is used to display a third interface, and the second display request includes display information of the third interface; and display the third interface according to the second display request.

[0026] In one possible implementation, the processing unit is specifically used to: send a second display request to the system kernel of REE based on the first application; send a second display request to the virtual machine monitor based on the system kernel of REE; send a second display request to the first TUI trusted application based on the virtual machine monitor; when the terminal device calls the TUI application programming interface API, send a second display request to the first TUI framework based on the first TUI trusted application; draw a third interface based on the first TUI framework; send information for indicating display of the third interface to the virtual machine inter-process communication VM IPC client based on the first TUI framework; send information for indicating display of the third interface to the system kernel of the first TEE based on the virtual machine inter-process communication VM IPC client; send information for indicating display of the third interface to the virtual machine monitor based on the system kernel of the first TEE; send information for indicating display of the third interface to the virtual machine monitor based on the virtual machine monitor; send information for indicating display of the third interface to the TUI server based on the virtual machine monitor; based on the TUI server, call the TUI display driver to display the third interface.

[0027] In one possible implementation, the processing unit is specifically used to: display a fifth interface; wherein the fifth interface is one of the interfaces after opening the first application, and the fifth interface includes a third control; when the terminal device receives a trigger for the third control, obtains a first display request.

[0028] In a third aspect, an embodiment of the present application provides an information processing device, which may include a processor and a memory, the memory being used to store code instructions, and the processor being used to run the code instructions to execute the method described in the first aspect or any possible implementation of the first aspect.

[0029] In a fourth aspect, an embodiment of the present application provides an information processing system, which may include: the device described in the second aspect and various possible implementations of the second aspect.

[0030] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a computer program or instruction is stored. When the computer program or instruction is run on a computer, the computer executes the method described in the first aspect or any possible implementation of the first aspect.

[0031] In a sixth aspect, an embodiment of the present application provides a computer program product comprising a computer program, which, when executed on a computer, enables the computer to execute the method described in the first aspect or any possible implementation manner of the first aspect.

[0032] In the seventh aspect, the present application provides a chip or a chip system, which includes at least one processor and a communication interface, the communication interface and at least one processor are interconnected through lines, and the at least one processor is used to run computer programs or instructions to execute the method described in the first aspect or any possible implementation of the first aspect; wherein the communication interface in the chip can be an input / output interface, a pin or a circuit, etc.

[0033] In a possible implementation, the chip or chip system described above in the present application further includes at least one memory, in which instructions are stored. The memory may be a storage unit inside the chip, such as a register, a cache, etc., or a storage unit of the chip (e.g., a read-only memory, a random access memory, etc.).

[0034] It should be understood that the second to seventh aspects of the present application correspond to the technical solutions of the first aspect of the present application, and the beneficial effects achieved by each aspect and the corresponding feasible implementation methods are similar and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 A schematic diagram of an architecture for implementing TUI functions with a single TEE provided in an embodiment of the present application;

[0036] Figure 2 A schematic diagram of an architecture for implementing TUI functions using multiple TEEs provided in an embodiment of the present application;

[0037] Figure 3 A schematic diagram of the hardware structure of a terminal device provided in an embodiment of the present application;

[0038] Figure 4 A schematic diagram of an architecture for implementing TUI functions using multiple TEEs provided in an embodiment of the present application;

[0039] Figure 5 A flowchart of an information processing method provided in an embodiment of the present application;

[0040] Figure 6 A flowchart of an information processing method provided in an embodiment of the present application;

[0041] Figure 7 A schematic diagram of an interface of an information processing method provided in an embodiment of the present application;

[0042] Figure 8 A schematic diagram of an interface of an information processing method provided in an embodiment of the present application;

[0043] Fig. 9 A schematic diagram of the structure of an information processing device provided in an embodiment of the present application;

[0044] Fig.10 A schematic diagram of the structure of a chip provided in an embodiment of the present application. DETAILED DESCRIPTION

[0045] In order to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, the words "first" and "second" are used to distinguish the same items or similar items with basically the same functions and effects. For example, the first chip and the second chip are only used to distinguish different chips, and their order is not limited. Those skilled in the art can understand that the words "first" and "second" do not limit the quantity and execution order, and the words "first" and "second" do not necessarily limit them to be different.

[0046] It should be noted that in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0047] In the embodiments of the present application, "at least one" refers to one or more, and "plurality" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.

[0048] With the development of terminal technology, terminal devices can provide different functions for users, so that terminal devices can meet different needs of users. Among them, when terminal devices provide different functions for users, users may be required to enter sensitive information such as user name, password or card number. However, hackers may obtain users' sensitive information by cracking the system, malicious input methods, keystroke logs, screenshots, etc., posing a threat to user account security.

[0049] In a possible way, since REE and TEE are deployed in the terminal device, TEE provides TUI function. When the terminal device obtains a display request through the application in REE, the terminal device can switch the operating environment to TEE, so that the terminal device can obtain the display request through TEE, and then the terminal device can execute the display request processing through the TUI function provided by TEE to obtain the display result.

[0050] For example, Figure 1 A schematic diagram of an architecture for implementing TUI functions with a single TEE provided in an embodiment of the present application, such as Figure 1 As shown, when the terminal device obtains a display request through an application in REE, the terminal device can send the display request to the system kernel of REE through the application. When the terminal device switches the operating environment from REE to TEE through a secure monitor call (SMC) instruction or a hypervisor call (HVC) instruction, since TEE includes a TUI trusted application and a TEE security system, and the TEE security system is integrated with a TEE device driver, the terminal device can send the request to the TUI trusted application through the system kernel of REE. Since the TUI device driver includes a TUI display driver and a TUI input driver, the TUI trusted application can present the display result to the user through a secure display buffer through the TUI display driver.

[0051] When the display result indicates that the terminal device displays an input interface, the user can input sensitive information through the input interface. In this way, the terminal device can directly obtain the sensitive information input by the user through the TUI input driver, thereby achieving the purpose of protecting the sensitive information input by the user.

[0052] It can be understood that the TUI function provided in the terminal device allows users to safely input sensitive information, thereby forming a secure channel between the user input interface, system, and application for transmitting sensitive information, ensuring that the sensitive information input by the user is not stolen, and the sensitive information can be safely passed to the application layer.

[0053] exist Figure 1 In the REE and TEE, terminal devices are divided into four privilege levels (exception levels, EL), namely EL0, EL1, EL2 and EL3. EL0 represents the ordinary user space, EL2 is the system kernel space, and EL2 / EL3 is the more secure virtual machine monitor (hypervisor) space or trusted area (TrustZone) space.

[0054] Understandably, Figure 1 The architecture diagram shown is a schematic diagram of an architecture in which a TEE in a terminal device provides TUI functions. Figure 1 In the example, REE can also be called the normal world in the terminal device, and TEE can also be called the secure world in the terminal device. When the application in REE needs to use the TUI function, the application in REE can obtain a display request, and the terminal device can enter EL1 from EL0. Furthermore, the terminal device can switch the operating environment from REE to TEE through HVC instructions or SMC instructions, so that the terminal device can send a display request from REE to TEE, and then the terminal device can obtain the display result through the TUI device driver in TEE; wherein, TEE can be an operating environment based on TrustZone technology, and TEE can also be an operating environment based on hypervisor technology, and SMC instructions and HVC instructions are located in EL2 or EL3.

[0055] In the above method, the terminal device deploys TEE on the chip, and the TEE security system of the TEE integrates the TUI device driver, so that the terminal device executes the processing of the display request through the TUI function provided by the TEE.

[0056] However, in the above method, when the terminal device obtains multiple display requests through the application in the REE, since the terminal device executes the display result processing process through the same TEE and obtains the display result through the same TEE, this may reduce the security of the terminal device obtaining the display result.

[0057] In a possible way, the terminal device can deploy multiple TEEs on the chip, and the TEE security system in each TEE integrates the TUI device driver. In this way, when the TUI trusted applications in different TEEs obtain display requests from different applications in REE, the TUI trusted applications in different TEEs can obtain the display results through the TUI device driver in the TEE security system.

[0058] For example, Figure 2 A schematic diagram of an architecture for implementing TUI functions using multiple TEEs provided in an embodiment of the present application, such as Figure 2As shown, the terminal device is deployed with a first TEE, a second TEE and a third TEE, wherein the first TEE includes a first TUI trusted application and a first TEE security system, and a TUI device driver is integrated in the first TEE security system; the second TEE includes a second TUI trusted application and a second TEE security system, and a TUI device driver is integrated in the second TEE security system; the third TEE includes a third TUI trusted application and a third TEE security system, and a TUI device driver is integrated in the third TEE security system; any TUI device driver includes a TUI display driver and a TUI input driver.

[0059] exist Figure 2 When the terminal device obtains a display request through the application in REE, and obtains the display result through the TUI device driver in TEE, you can refer to Figure 1 The content shown adapts to the description, with Figure 1 The difference between the process shown is that in Figure 2 In , when the terminal device obtains multiple display requests through the application in REE, the terminal device can call different TEEs to obtain display results; among them, Figure 2 The application in the REE shown may be a first application or a second application, and different TEEs may be used to process display requests obtained by different applications.

[0060] exist Figure 2 In the embodiment, the first TUI trusted application can provide TUI display service and TUI input service for the application in REE. For example, the first TUI trusted application can provide TUI display service and TUI input service for the first application in REE. Since the first TEE works under the hypervisor mechanism, the first TEE is a trusted virtual machine running the first TEE system. The relevant contents of the second TEE and the third TEE can refer to the relevant contents of the first TEE mentioned above, which will not be repeated here.

[0061] However, in the above manner, since the TEE security system in each TEE integrates the TUI device driver, this may increase the manufacturing cost of the terminal device.

[0062] In view of this, some embodiments of the present application provide an information processing method and device, by setting a TEE in a terminal device that can execute a display request processing process and obtain a display result. In this way, when the terminal device obtains a first display request through a first TEE, since the first display request includes display information of the first interface, the terminal device can draw the first interface through the first TUI framework in the first TEE, thereby implementing the processing process of the first display request. Since the TUI display driver is integrated in the second TEE, the terminal device can call the TUI display driver of the second TEE to display the first interface, thereby improving the security of the terminal device obtaining the display result.

[0063] The method of the embodiment of the present application can be applied to a terminal device, for example, for example, Figure 3 A schematic diagram of the hardware structure of a terminal device provided in an embodiment of the present application is shown in FIG. Figure 3 As shown, the terminal device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a power management module 141, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, a sensor module 180, a button 190, a camera 193, a display screen 194, a user interface 130 and a charging management module 140, etc.; wherein the sensor module 180 may include: a pressure sensor 180A, an acceleration sensor 180E, a fingerprint sensor 180H and a touch sensor 180K, etc.; wherein the touch sensor 180K and the display screen 194 may form a touch screen, also called a "touch screen".

[0064] It should be noted that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the terminal device 100; it is understandable that the terminal device 100 may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently; wherein the illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0065] In an embodiment of the present application, when a user clicks on a control provided by an application through a touch screen, the terminal device receives a trigger for the control, and the terminal device can obtain a display request through the application. If the display request indicates that the interface displayed by the terminal device is an interface related to sensitive information, the terminal device calls the TUI display driver according to the display request to obtain a display result, and can present the display result to the user through the display screen. For example, the terminal device can present a payment completion interface to the user through the display screen.

[0066] Combination Figure 2 and Figure 3 , exemplary, Figure 4 A schematic diagram of an architecture for implementing TUI functions using multiple TEEs provided in an embodiment of the present application, and Figure 2The difference between the architecture diagram shown is that Figure 4 In the embodiment, the first TEE security system in the first TEE and the third TEE security system in the third TEE do not integrate the TUI device driver, and the second TEE security system in the second TEE integrates the TUI device driver.

[0067] Among them, the TUI device driver in the second TEE is the core system for completing the TUI function. However, since the TUI device driver is not integrated in the first TEE, the first TEE can send the obtained display request to the second TUI trusted application in the second TEE through the virtual machine monitor, so that the second TUI trusted application can complete the TUI display and TUI input functions through the TUI device driver in the second TEE. Similarly, the third TEE can also send the request to the second TEE for processing. In this way, when the terminal device deploys multiple TEEs, the terminal device can use the second TEE to uniformly process TUI requests. Compared with the need to deploy a TUI device driver in any of the multiple TEEs, the manufacturing cost of the terminal device can be saved.

[0068] It should be noted that the first TEE and the third TEE can be understood as the TEE provided by the terminal device manufacturer, or understood as the first TEE and the third TEE are TEEs deployed by the terminal device manufacturer, and the second TEE can be understood as the TEE provided by the chip manufacturer of the terminal device, or understood as the second TEE is the original TEE in the terminal device (such as the chip manufacturer). In this way, the terminal device can let the TUI device driver in the second TEE security system act as the driver, so that the TUI device driver in the second TEE security system can proxy the display requests of other TEEs to obtain display results.

[0069] It should be noted that multiple TEEs based on hypervisor technology can be deployed in the terminal device, the first TEE is one of the TEEs based on hypervisor technology, the third TEE is one of the TEEs based on hypervisor technology, and the second TEE is a TEE based on TrustZone technology. When the TUI device driver is not integrated in the first TEE and the third TEE, the first TEE and the third TEE can obtain the display results through the TUI device driver in the second TEE, thereby avoiding the problem of deep coupling and integrated TUI driver between the first TEE and the third TEE, and allowing terminal device manufacturers to deploy their own TEEs to implement TUI-related services.

[0070] Combination Figure 4 The content shown is exemplary. Figure 5A flowchart of an information processing method provided in an embodiment of the present application is shown as follows: Figure 5 As shown, the following steps may be included:

[0071] S501: The terminal device receives a first display request through a first application in REE.

[0072] In an embodiment of the present application, the first application in REE can be understood as a client application (CA), and the first display request is used to display a first interface of the first application. The first interface is one of the interfaces after the first application is opened. The first interface can be an interface related to sensitive information in the first application. For example, the first interface can include a password input interface, etc. The first display request includes display information of the first interface; wherein, the specific content of the first interface can be set according to the actual application scenario, and the embodiment of the present application is not limited thereto.

[0073] In the embodiment of the present application, the terminal device receives the first display request through the first application in the REE, including the following possible implementations:

[0074] In a first possible implementation, the terminal device displays a third interface, which is one of the interfaces in the first application. The third interface includes an input area. When the terminal device receives a trigger for the input area on the third interface through the first application, the terminal device receives a first display request; wherein the third interface can also be understood as an interface related to sensitive information in the first application.

[0075] It can be understood that the terminal device displays the third interface, and a possible implementation method is: the terminal device displays the fourth interface, the fourth interface includes a first control for opening the first application, when the terminal device receives a trigger for the first control on the fourth interface through the first application, the terminal device obtains a second display request, the second display request is used to display the third interface, the second display request includes display information of the third interface, the terminal device sends a second display request to the first TUI trusted application based on the first application, the terminal device obtains the second display request from the first TUI trusted application based on the first TUI framework, so that the first TUI framework draws the third interface according to the display information of the third interface in the second display request, the terminal device sends information for indicating display of the third interface to the TUI server based on the first TUI framework, so that the TUI server calls the TUI display driver to display the third interface according to the information for indicating display of the third interface.

[0076] Among them, when the terminal device sends a second display request to the first TUI trusted application based on the first application, the first TUI trusted application runs in the first TEE. Since the REE and the first TEE run under the hypervisor mechanism, the first TEE can be called a first TEE virtual machine (VM). In this way, the terminal device can send a second display request to the system kernel of the REE based on the first application, the terminal device can send a second display request to the virtual machine monitor based on the system kernel of the REE, and the terminal device can send a second display request to the first TUI trusted application based on the virtual machine monitor.

[0077] In which, when the terminal device obtains a second display request from the first TUI trusted application based on the first TUI framework, the first TUI framework runs in the first TEE, and when the terminal device calls the application programming interface (API) of TUI, the terminal device can send a second display request to the first TUI framework based on the first TUI trusted application, so that the terminal device can obtain the second display request based on the first TUI framework; wherein, the API of TUI is defined by the global platform organization (global platform, GP), the API of TUI can be described as GP TUI API, or the standard API of TUI can be described as TUI API, so that the first TEE can provide the function of TUI through the GP TUI API.

[0078] Among them, in the information sent by the terminal device to the TUI server based on the first TUI framework for indicating the display of the third interface, the terminal device can send information for indicating the display of the third interface to the VM inter-process communication (IPC) client based on the first TUI framework, and the terminal device can send information for indicating the display of the third interface to the first TEE system kernel based on the VM IPC client. The terminal device can send information for indicating the display of the third interface to the virtual machine monitor based on the first TEE system kernel, and the terminal device can send information for indicating the display of the third interface to the TUI server based on the virtual machine monitor; wherein, the TUI server can be understood as Figure 4 The second TUI trusted application in the first TEE system kernel is the system kernel of the first TEE.

[0079] It can be understood that when the terminal device receives a trigger for the input area on the third interface through the first application, the terminal device can call the TUI input driver based on the TUI server to obtain the location information of the input area. Then, when the terminal device obtains the location information of the input area, the terminal device can receive a first display request.

[0080] Among them, the position information of the input area may refer to the point information of the input area. For example, when the user touches the input area at the [x, y] position of the display screen, the terminal device may obtain the [x, y] position through the TUI input driver of the TUI server.

[0081] It should be noted that the first TUI framework is a TUI framework inside the first TEE. The first TUI framework can be used to complete the core logic of the TUI, or it can be understood that the first TUI framework can be used to draw the interface.

[0082] It should be noted that the first TEE system kernel is the kernel module of the first TEE, and the first TUI framework can call the VMIPC client-related modules, so that the first TUI framework can interact with the TUI server in the second TEE based on the called modules, wherein the VM IPC client-related modules may include one or more of the following: libTrustedUI module, MinkIPC module or VMSocket module.

[0083] It should be noted that the TUI server runs in the second TEE. Since the second TEE works under the hypervisor mechanism, the second TEE is a trusted virtual machine. The TUI server is a server running on the trusted virtual machine. The TUI server can obtain information from the first TEE, and then the TUI server can call the TUI display driver or TUI input driver according to the obtained message.

[0084] It should be noted that REE is the operating environment in the terminal device, or it can be understood that REE is the operating environment of the Android operating system. Since REE works under the hypervisor mechanism, REE can be called the main virtual machine. REE can run applications in the non-secure world, which can be called non-secure applications, and the application is CA.

[0085] In a second possible implementation, the terminal device displays a fifth interface, which is one of the interfaces after the first application is opened. The fifth interface includes a third control. When the terminal device receives a trigger for the third control, the terminal device receives a first display request.

[0086] S502: The first application sends a first display request to the first TUI trusted application.

[0087] In the present application embodiment, combined Figure 4 The first application may send a first display request to the system kernel of the REE, and the system kernel of the REE sends the first display request to the first TUI trusted application through the virtual machine monitor.

[0088] S503: The first TUI framework obtains a first display request from the first TUI trusted application.

[0089] In the embodiment of the present application, the first TUI framework can obtain the first display request from the first TUI trusted application through the GP TUI API.

[0090] S504: The first TUI framework draws the first interface according to the display information of the first interface in the first display request.

[0091] S505: The first TUI framework sends information for instructing to display the first interface to the TUI server.

[0092] In an embodiment of the present application, the first TUI framework can call the VM IPC client to send information used to instruct the display of the first interface to the first TEE system kernel. Since the first TEE and the second TEE run under the hypervisor mechanism, the first TEE system kernel can send information used to instruct the display of the first interface to the TUI server through the hypervisor.

[0093] S506: The TUI server calls the TUI display driver to display the first interface according to the information for instructing to display the first interface.

[0094] In an embodiment of the present application, since the TUI server includes a TUI display driver, the TUI display driver can be used to display and output the TUI interface. The TUI interface can be understood as an interface related to sensitive information operations. In this way, the TUI server can call the TUI display driver to display the first interface based on the information used to indicate the display of the first interface. The first interface includes an input component, which may be an input keyboard, etc.

[0095] S507: When the TUI server receives a trigger on the input component on the first interface, the TUI server calls the TUI input driver to obtain first security information based on the input component input.

[0096] S508: The TUI server sends first security information to the first TUI trusted application through the first TUI framework.

[0097] In an embodiment of the present application, since the second TEE and the first TEE run under the hypervisor mechanism, the TUI server runs in the second TEE, and the first TUI framework runs in the first TEE, the TUI server can send the first security information to the first TEE system kernel through the hypervisor, the first TEE system kernel can send the first security information to the first TUI framework through the VM IPC client, and the first TUI framework can send the first security information to the first TUI trusted application through the GP TUI API, so that the first TUI trusted application obtains the first security information; wherein, the first security information may include one or more of the following: account password or payment password.

[0098] It is understandable that the specific content of the first security information can be set according to the actual application scenario and is not limited in the embodiments of the present application.

[0099] In combination with the contents described in S507 and S508, when the first interface also includes a second control, the TUI server sends the first security information to the first TUI trusted application through the first TUI framework. A possible implementation method is: when the TUI server receives a trigger for the second control on the first interface, the TUI server sends the first security information to the first TUI trusted application through the first TUI framework.

[0100] S509: The first TUI trusted application sends first security information from the first server.

[0101] S510: When the first security information matches the preset security information, the first server sends information indicating a successful match to the first application.

[0102] In an embodiment of the present application, the first server is a server corresponding to the first application, and the first server is used to serve the first application. In this way, when the first server determines that the first security information matches the preset security information, the first server can send the matching result of the first security information to the first application. For example, when the user inputs a username and password that is the same as the preset username and password, the first server can send information indicating a successful match to the first application.

[0103] S511: The first application displays a second interface according to the information indicating successful matching.

[0104] In an embodiment of the present application, the second interface is related to the first interface. For example, when the first interface is a login interface, the second interface is the interface after a successful login; when the first interface is a payment interface, the second interface is the interface after a successful payment.

[0105] Combination Figure 5 The content shown is exemplary. Figure 6A flowchart of an information processing method provided in an embodiment of the present application is shown in FIG. Figure 6 For the interaction process between REE, the first TEE, and the second TEE, please refer to Figure 5 The content shown is adapted to the description; wherein, the GP TUI API, the first TUI framework, the VM IPC client and the first TEE system kernel are in the first TEE security system.

[0106] It should be noted that in Figure 6 In the embodiment, when the display request obtained by the first application in the REE needs to use the driver in the fourth TEE, the first application can send a display request to the system kernel in the REE. Since the fourth TEE runs under the TrustZone mechanism, the system kernel in the REE can send a display request to the fourth TEE through the virtual machine monitor. When the virtual machine monitor switches the operating environment to the fourth TEE through the SMC instruction, the virtual machine monitor can send a display request to the trusted application in the fourth TEE. In this way, the trusted application in the fourth TEE can obtain the interface corresponding to the display request through the system kernel of the fourth TEE and the driver in the fourth TEE.

[0107] Understandably, Figure 5 It is the interaction process between the first TEE and the second TEE. The interaction process between the third TEE and the second TEE can refer to Figure 5 The content shown adapts to the description.

[0108] Combination Figure 5 and Figure 6 The content shown is exemplary. Figure 7 A schematic diagram of an information processing method provided in an embodiment of the present application, in Figure 7 The interface shown in a in the figure includes one or more of the following application controls, for example, a file management control, an email control, a sports health control, and a smart life control. The interface also includes a first application control 701. When the user triggers the first application control 701 by clicking or touching, the terminal device receives the trigger of the first application control 701, and the terminal device can display Figure 7 The interface shown in b in FIG. 7 ; wherein the first application control 701 may be referred to as a first control, and the first control is used to open a first application, Figure 7 The interface shown in a is the fourth interface. Figure 7 The interface shown in b is the third interface, which is a login interface and includes an account input area and a password input area.

[0109] exist Figure 7In the interface shown in b in FIG. 1 , when the user triggers the account input area by clicking or touching, the terminal device receives the trigger of the account input area and the terminal device can display Figure 7 The interface shown in c in the figure is a first interface. The first interface includes an input component and a second control. The input component can be an input keyboard. When the user enters an account in the account input area and a password in the password input area through the input keyboard, the terminal device can receive a trigger on the input component. Then, the terminal device can obtain the account and password input by the user based on the input component. In this way, when the terminal device receives a trigger on the second control on the first interface and determines that the input account and password match the preset account and password, the terminal device can display Figure 7 The interface shown in d in , which can be called the second interface, is the interface after login.

[0110] Combination Figure 5 and Figure 6 The content shown is exemplary. Figure 8 A schematic diagram of an information processing method provided in an embodiment of the present application, in Figure 8 In the interface shown in a in , the interface includes one or more of the following application controls, for example, a file management control, an email control, a sports health control, or a smart life control. The interface also includes a first application control 801. When the first application in the terminal device is in a logged-in state, when the user triggers the first application control 801 by clicking or triggering, the terminal device receives the operation on the first application control 801, and the terminal device can display Figure 8 The interface shown in b.

[0111] exist Figure 8 In the interface shown in b in FIG. 1 , the interface includes an income and expenditure detail control and a transfer control 802, etc. When the user triggers the transfer control 802 by clicking or touching, the terminal device receives the trigger of the transfer control 802, and the terminal device can display Figure 8 The interface shown in c in FIG. 8 includes a confirmation control 803. When the user Figure 8 When the transfer amount is input in the interface shown in c in FIG. 8 and the confirmation control 803 is triggered by clicking or touching, the terminal device may display the following Figure 8 The interface shown in d in FIG. Figure 8 The interface shown in c in FIG. 8 can be referred to as the fifth interface, and the confirmation control 803 can be referred to as the third control. Figure 8 The interface shown in d in the figure can be called the first interface, which includes an input component.

[0112] exist Figure 8In the interface shown in d in FIG. 1 , when the user triggers the input component by clicking or touching, the terminal device receives the trigger of the input component, and when it is determined that the input password matches the preset password, the terminal device can display Figure 8 The interface shown in e in , which can be called the second interface, is the interface after the transfer is successful.

[0113] exist Figure 5-Figure 8 In the content shown, the terminal device implements the processing of the relevant interface of the first application in the REE through the first TUI trusted application and the first TUI framework. The first TUI trusted application and the first TUI framework run in the first TEE. It can be understood that the terminal device can also implement the processing of the relevant interface of the second application in the REE through the third TUI trusted application and the third TUI framework in the third TEE. For example, when the terminal device obtains the third display request through the second application in the REE, the terminal device can display the relevant interface of the second application based on the interaction process between the second application, the third TUI trusted application, the third TUI framework and the TUI server. The specific implementation method can refer to Figure 5-Figure 8 The contents shown are suitable for the description and will not be repeated here.

[0114] It should be noted that, in the process of the terminal device processing the relevant interface of the second application in the REE through the third TUI trusted application and the third TUI framework in the third TEE, the terminal device also displays the relevant interface of the second application through the TUI display driver, for example, the login interface or password input interface of the second application, etc. For details, please refer to Figure 5 The contents shown are suitable for the description and will not be repeated here.

[0115] In combination with the above content, it can be understood that the TEE in the embodiment of the present application can run in a TrustZone environment or in a trusted virtual environment such as a hypervisor. The method provided in the embodiment of the present application is a method for implementing TUI functions with multiple TEEs. In the embodiment of the present application, one of the TEEs in the terminal device can integrate the TUI device driver, while other TEEs deployed in the terminal device may not integrate the TUI device driver, thereby reducing the workload of the integrated driver and saving the manufacturing cost of the terminal device.

[0116] It is understandable that when the TEE deployed on the terminal device can provide TUI services for applications in REE, the terminal device can use the TEE deployed by itself to implement TUI services.

[0117] Furthermore, it is understandable that if the chip manufacturer does not provide the terminal equipment manufacturer with the ability to operate the TUI function, it may limit the terminal equipment manufacturer's improvement in the TUI function, and may limit the terminal equipment manufacturer's improvement in the security of the TUI function. In the methods of some embodiments of the present application, the terminal equipment manufacturer can control the business logic of the TUI on the TEE deployed by itself to improve security, thereby improving the terminal equipment manufacturer's autonomous control over the TUI function, or it can be understood that the terminal equipment manufacturer's control over the TEE can be improved; moreover, the methods of some embodiments of the present application can allow the chip manufacturer's TEE to be responsible only for TUI display and TUI input, so that the terminal equipment manufacturer can have control over the chip manufacturer's TEE.

[0118] The information processing method of the embodiment of the present application has been described above, and the device for executing the above information processing method provided by the embodiment of the present application is described below. Those skilled in the art can understand that the method and the device can be combined and referenced with each other, and the information processing device provided by the embodiment of the present application can execute the steps in the above information processing method.

[0119] For example, Fig. 9 A schematic diagram of the structure of an information processing device provided in an embodiment of the present application, the information processing device can be applied to a terminal device, the information processing device is deployed with a rich execution environment REE and at least two trusted execution environments TEE, the REE includes one or more applications, such as Fig. 9 As shown, the device 900 may include: a processing unit 901 and a display unit 902, wherein the processing unit 901 is used to support the information processing device to perform information processing steps, and the display unit 902 is used to support the information processing device to perform display steps.

[0120] Exemplarily, the processing unit is used for: when the terminal device obtains a first display request from the first application, obtaining the first display request from the first application based on the first trusted user interface TUI trusted application; wherein the first application is any application in the REE, the first display request is used to display the first interface, the first display request includes display information of the first interface, the first TUI trusted application runs in the first TEE, and the first TEE is a TEE in at least two trusted execution environments TEE; the processing unit is also used for: obtaining the first display request from the first TUI trusted application based on the first TUI framework; wherein the first TUI framework runs in the first TEE; the processing unit is also used for: drawing the first interface based on the first TUI framework; the processing unit is also used for: obtaining information for indicating display of the first interface from the first TUI framework based on the TUI server; wherein the TUI server runs in the second TEE, the second TEE is a TEE in at least two trusted execution environments TEE, and the TUI display driver is integrated in the second TEE; the display unit is used for: based on the TUI server, calling the TUI display driver to display the first interface.

[0121] In one possible implementation, the second TEE also integrates a TUI input driver, the first interface includes an input component, and the processing unit is also used to: when the terminal device receives a trigger for the input component on the first interface based on the TUI server, obtain first security information based on the TUI server; wherein the first security information is obtained by the TUI server calling the TUI input driver, the first security information is information based on the input component input, and the first security information includes: account password or payment password; the processing unit is also used to: obtain the first security information from the TUI server based on the first TUI trusted application; the processing unit is also used to: send the first security information to the first server based on the first TUI trusted application; wherein the first server is used to serve the first application; when the first server determines that the first security information matches the preset security information, the processing unit is also used to: obtain information indicating a successful match from the first server based on the first application; the display unit is also used to: display the second interface based on the first application.

[0122] In one possible implementation, the processing unit is specifically used to: send first security information to the virtual machine monitor based on the TUI server; send first security information to the system kernel of the first TEE based on the virtual machine monitor; send first security information to the virtual machine inter-process communication VM IPC client based on the system kernel of the first TEE; the terminal device sends first security information to the first TUI framework based on the virtual machine inter-process communication VM IPC client; when the terminal device calls the TUI application programming interface API, send first security information to the first TUI trusted application based on the first TUI framework; obtain first security information based on the first TUI trusted application.

[0123] In one possible implementation, the processing unit is specifically used to: send a first display request to a system kernel of REE based on a first application; send a first display request to a virtual machine monitor based on the system kernel of REE; send a first display request to a first TUI trusted application based on the virtual machine monitor; and obtain a first display request based on the first TUI trusted application.

[0124] In a possible implementation, the processing unit is specifically configured to: when the terminal device calls a TUI application programming interface API, send a first display request to a first TUI framework based on a first TUI trusted application; and obtain the first display request based on the first TUI framework.

[0125] In one possible implementation, the processing unit is specifically used to: send information for indicating display of the first interface to the virtual machine inter-process communication VM IPC client based on the first TUI framework; send information for indicating display of the first interface to the system kernel of the first TEE based on the virtual machine inter-process communication VM IPC client; send information for indicating display of the first interface to the virtual machine monitor based on the system kernel of the first TEE; send information for indicating display of the first interface to the TUI server based on the virtual machine monitor; obtain information for indicating display of the first interface based on the TUI server.

[0126] In one possible implementation, the processing unit is specifically used to: display a third interface; wherein the third interface is one of the interfaces in the first application, and the third interface includes an input area; when the terminal device receives a trigger for the input area on the third interface through the first application, a first display request is obtained.

[0127] In one possible implementation, the processing unit is specifically used to: display a fourth interface; wherein the fourth interface includes a first control for opening a first application; when the terminal device receives a trigger for the first control on the fourth interface through the first application, obtain a second display request; wherein the second display request is used to display a third interface, and the second display request includes display information of the third interface; and display the third interface according to the second display request.

[0128] In one possible implementation, the processing unit is specifically used to: send a second display request to the system kernel of REE based on the first application; send a second display request to the virtual machine monitor based on the system kernel of REE; send a second display request to the first TUI trusted application based on the virtual machine monitor; when the terminal device calls the TUI application programming interface API, send a second display request to the first TUI framework based on the first TUI trusted application; draw a third interface based on the first TUI framework; send information for indicating display of the third interface to the virtual machine inter-process communication VM IPC client based on the first TUI framework; send information for indicating display of the third interface to the system kernel of the first TEE based on the virtual machine inter-process communication VM IPC client; send information for indicating display of the third interface to the virtual machine monitor based on the system kernel of the first TEE; send information for indicating display of the third interface to the virtual machine monitor based on the virtual machine monitor; send information for indicating display of the third interface to the TUI server based on the virtual machine monitor; based on the TUI server, call the TUI display driver to display the third interface.

[0129] In one possible implementation, the processing unit is specifically used to: display a fifth interface; wherein the fifth interface is one of the interfaces after opening the first application, and the fifth interface includes a third control; when the terminal device receives a trigger for the third control, obtains a first display request.

[0130] In a possible embodiment, the information processing device may further include: a storage unit 903. The processing unit 901, the display unit 902, and the storage unit 903 are connected via a communication bus.

[0131] The storage unit 903 may include one or more memories, and the memory may be a device in one or more devices or circuits for storing programs or data.

[0132] The storage unit 903 may exist independently and be connected to the processing unit 901 of the information processing device via a communication bus; the storage unit 903 may also be integrated with the processing unit 901 .

[0133] The information processing apparatus may be used in an information processing device, circuit, hardware component or chip.

[0134] For example, Fig.10 A schematic diagram of the structure of a chip provided in an embodiment of the present application. The chip 1000 includes one or more (including two) processors 1010 and a communication interface 1030 .

[0135] In some implementations, the memory 1040 stores the following elements: executable modules or data structures, or a subset thereof, or an extended set thereof.

[0136] In the embodiment of the present application, the memory 1040 may include a read-only memory and a random access memory, and provide instructions and data to the processor 1010. A portion of the memory 1040 may also include a non-volatile random access memory (NVRAM).

[0137] In the embodiment of the present application, the memory 1040, the communication interface 1030 and the memory 1040 are coupled together through the bus system 1020. The bus system 1020 may include a power bus, a control bus and a status signal bus in addition to a data bus. Fig.10 Various buses are labeled as bus system 1020 .

[0138] The method described in the above embodiment of the present application can be applied to the processor 1010, or implemented by the processor 1010. The processor 1010 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware or software instructions in the processor 1010. The above processor 1010 can be a general processor (for example, a microprocessor or a conventional processor), a digital signal processor (digital signal processing, DSP), an application specific integrated circuit (application specific integrated circuit, ASIC), a field-programmable gate array (field-programmable gate array, FPGA) or other programmable logic devices, discrete gates, transistor logic devices or discrete hardware components. The processor 1010 can implement or execute the disclosed methods, steps and logic block diagrams in the embodiments of the present invention.

[0139] The steps of the method in combination with the embodiment of the present application can be directly embodied as being executed by a hardware decoding processor, or being executed by a combination of hardware and software modules in the decoding processor. Among them, the software module can be located in a mature storage medium in the field such as a random access memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable read only memory (EEPROM). The storage medium is located in the memory 1040, and the processor 1010 reads the information in the memory 1040 and completes the steps of the above method in combination with its hardware.

[0140] In the above embodiments, the instructions stored in the memory for execution by the processor may be implemented in the form of a computer program product, wherein the computer program product may be pre-written in the memory, or may be downloaded and installed in the memory in the form of software.

[0141] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that a computer can store or a data storage device such as a server or data center that includes one or more available media integrated. For example, the available medium can include a magnetic medium (e.g., a floppy disk, a hard disk or a tape), an optical medium (e.g., a digital versatile disc (digital versatiledisc, DVD)), or a semiconductor medium (e.g., a solid state drive (solid state disk, SSD)), etc.

[0142] The embodiments of the present application also provide a computer-readable storage medium. The methods described in the above embodiments can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. Computer-readable media may include computer storage media and communication media, and may also include any medium that can transfer a computer program from one place to another. The storage medium may be any target medium that can be accessed by a computer.

[0143] As a possible design, the computer readable medium may include a compact disc read-only memory (CD-ROM), RAM, ROM, EEPROM or other optical disc storage; the computer readable medium may include a magnetic disk storage or other magnetic disk storage device. Moreover, any connection line may also be appropriately referred to as a computer readable medium. For example, if the software is transmitted from a website, server or other remote source using a coaxial cable, fiber optic cable, twisted pair, DSL or wireless technology (such as infrared, radio and microwave), the coaxial cable, fiber optic cable, twisted pair, DSL or wireless technology such as infrared, radio and microwave are included in the definition of medium. Disk and disc as used herein include compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk and Blu-ray disc, where disks usually reproduce data magnetically, while optical discs reproduce data optically using lasers.

[0144] The above combinations should also be included in the scope of computer-readable media. The above description is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.

Claims

1. An information processing method, characterized in that: Applied to a terminal device, the terminal device is deployed with a rich execution environment REE, a first trusted execution environment TEE and a second TEE, the REE includes a first application, and the second TEE includes a trusted user interface TUI server and a TUI display driver; The method comprises: The terminal device obtains a first display request from the first application through the first TEE, and draws a first interface based on the first display request, where the first display request is used to request display of a first interface of the first application; The terminal device obtains information for indicating display of the first interface from the first TEE through the TUI server; The terminal device calls the TUI display driver to display the first interface through the TUI server.

2. The method according to claim 1, characterized in that The first TEE includes a first TUI trusted application and a first TUI framework; The terminal device obtains a first display request from the first application through the first TEE, and draws a first interface based on the first display request, where the first display request is used to request display of a first interface of the first application, including: The terminal device obtains a first display request from the first application through the first TUI trusted application, where the first display request is used to request display of a first interface; The terminal device obtains the first display request from the first TUI trusted application through the first TUI framework; The terminal device draws the first interface through the first TUI framework.

3. The method according to claim 2, characterized in that The terminal device obtains the first display request from the first TUI trusted application through the first TUI framework, including: When the terminal device calls a TUI application programming interface API, the terminal device sends the first display request to the first TUI framework based on the first TUI trusted application; The terminal device obtains the first display request based on the first TUI framework.

4. The method according to any one of claims 1 to 3, characterized in that The second TEE also includes a TUI input driver, the first interface includes an input component, and the method further includes: When the terminal device receives a trigger on the input component on the first interface through the TUI server, the terminal device obtains first security information through the TUI server; wherein the first security information is obtained by the TUI server calling the TUI input driver, and the first security information is information based on the input component input; The terminal device obtains the first security information from the TUI server through the first TEE; The terminal device sends the first security information to a first server through the first TEE, where the first server is used to serve the first application; When the first server determines that the first security information matches the preset security information, the terminal device obtains information indicating successful matching from the first server through the first application; The terminal device switches the first interface to the second interface of the first application.

5. The method according to claim 4, characterized in that The first TEE includes a first TUI trusted application and a first TUI framework; The terminal device obtains the first security information from the TUI server through the first TEE, including: The terminal device sends the first security information to the virtual machine monitor through the TUI server; The terminal device sends the first security information to the system kernel of the first TEE through the virtual machine monitor; The terminal device sends the first security information to a virtual machine inter-process communication VM IPC client through the system kernel of the first TEE; The terminal device sends the first security information to the first TUI framework through the virtual machine inter-process communication VM IPC client; When the terminal device calls a TUI application programming interface API, the terminal device sends the first security information to the first TUI trusted application through the first TUI framework; The terminal device obtains the first security information through the first TUI trusted application.

6. The method according to any one of claims 1 to 5, characterized in that: The terminal device obtains a first display request from the first application through the first TEE, including: The terminal device sends the first display request to the system kernel of the REE through the first application; The terminal device sends the first display request to the virtual machine monitor through the system kernel of the REE; The terminal device sends the first display request to the first TEE through the virtual machine monitor.

7. The method according to any one of claims 1 to 6, characterized in that: The first TEE includes a first TUI framework; The terminal device obtains, through the TUI server, information from the first TEE for indicating display of the first interface, including: The terminal device sends the information for instructing to display the first interface to the virtual machine inter-process communication VM IPC client through the first TUI framework; The terminal device sends the information for instructing to display the first interface to the system kernel of the first TEE through the virtual machine inter-process communication VM IPC client; The terminal device sends the information for instructing to display the first interface to the virtual machine monitor through the system kernel of the first TEE; The terminal device sends the information for instructing to display the first interface to the TUI server through the virtual machine monitor; The terminal device obtains the information for instructing to display the first interface through the TUI server.

8. The method according to any one of claims 1 to 7, characterized in that: Before the terminal device obtains the first display request from the first application through the first TEE, the method further includes: The terminal device displays a third interface; wherein the third interface is one of the interfaces in the first application, and the third interface includes an input area; When the terminal device receives a trigger on the input area on the third interface through the first application, the terminal device acquires the first display request.

9. The method according to claim 8, characterized in that The terminal device displays a third interface, including: The terminal device displays a fourth interface; wherein the fourth interface includes a first control for opening the first application; When the terminal device receives a trigger of the first control on the fourth interface through the first application, the terminal device obtains a second display request; wherein the second display request is used to display the third interface, and the second display request includes display information of the third interface; The terminal device displays the third interface according to the second display request.

10. The method according to claim 9, characterized in that The terminal device displays the third interface according to the second display request, including: The terminal device sends the second display request to the system kernel of the REE based on the first application; The terminal device sends the second display request to the virtual machine monitor based on the system kernel of the REE; The terminal device sends the second display request to the first TUI trusted application of the first TEE based on the virtual machine monitor; When the terminal device calls a TUI application programming interface API, the terminal device sends the second display request to the first TUI framework of the first TEE based on the first TUI trusted application; The terminal device draws the third interface based on the first TUI framework; The terminal device sends information for instructing to display the third interface to the virtual machine inter-process communication VM IPC client based on the first TUI framework; The terminal device sends the information for instructing to display the third interface to the system kernel of the first TEE based on the virtual machine inter-process communication VM IPC client; The terminal device sends the information for instructing to display the third interface to the virtual machine monitor based on the system kernel of the first TEE; The terminal device sends the information for instructing to display the third interface to the TUI server based on the virtual machine monitor; The terminal device calls the TUI display driver to display the third interface based on the TUI server.

11. The method according to any one of claims 1 to 7, characterized in that: Before the terminal device obtains the first display request from the first application through the first TEE, the method further includes: The terminal device displays a fifth interface; wherein the fifth interface is one of the interfaces after the first application is opened, and the fifth interface includes a third control; When the terminal device receives a trigger on the third control, the terminal device acquires the first display request.

12. An information processing device, characterized in that: The information processing device comprises a processor and a memory, wherein the memory is used to store code instructions; the processor is used to run the code instructions so that the information processing device executes the method according to any one of claims 1 to 11.