文件类型:PDF文档
文件大小:546K
Embodiments of the present invention provide a method and an apparatus for implementing host card emulation. In the present invention, a terminal installs, according to a type of an HCE application, the HCE application in a terminal environment corresponding to the type of the HCE application, where the terminal environment includes a trusted execution environment TEE and a rich execution environment REE; the terminal parses a first identifier of the HCE application and at least one second identifier included in the HCE application, where the first identifier is used to uniquely identify the HCE application in the terminal, and the second identifier is used to identify a message flow between a card reading device and the HCE application; and the terminal registers routing information of the HCE application with the TEE, where the routing information includes the first identifier, the at least one second identifier, and the terminal environment in which the HCE application is installed. By means of the present invention, an HCE application with two different security levels, a TEE and an REE, can be supported on a terminal.