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

Claim 0:
1. A method for handling a trusted execution environment operating system crash, the method comprising:
detecting, in an electronic device having a trusted execution environment (TEE) operating a security service and a rich execution environment (REE), a crash of a TEE operating system (OS) in a running process of the security service;
storing, by the electronic device, a hardware status parameter of the TEE and a security context of the REE that are obtained when the TEE OS crashes, and suspending the security service;
restarting, by the electronic device, the TEE OS;
setting, by the electronic device based on the stored hardware status parameter of the TEE, a hardware status parameter of the TEE obtained after the TEE OS is restarted;
setting, by the electronic device based on the stored security context of the REE, a security context of the REE obtained after the TEE OS is restarted and a context of the TEE obtained after the TEE OS is restarted; and
restoring, by the electronic device, the security service.