US 12,013,759 B2
Method for deleting safety service and electronic device
Zhuofei Li, Beijing (CN); Min Peng, Beijing (CN); and Gaosheng Yin, Shenzhen (CN)
Assigned to HUAWEI TECHNOLOGIES CO., LTD., Shenzhen (CN)
Appl. No. 17/292,164
Filed by Huawei Technologies Co., Ltd., Shenzhen (CN)
PCT Filed Nov. 13, 2019, PCT No. PCT/CN2019/117822
§ 371(c)(1), (2) Date May 7, 2021,
PCT Pub. No. WO2020/098664, PCT Pub. Date May 22, 2020.
Claims priority of application No. 201811352889.4 (CN), filed on Nov. 14, 2018; and application No. 201811625740.9 (CN), filed on Dec. 28, 2018.
Prior Publication US 2021/0397518 A1, Dec. 23, 2021
Int. Cl. G06F 21/53 (2013.01); G06F 11/14 (2006.01); G06F 21/51 (2013.01); G06F 21/62 (2013.01)
CPC G06F 11/143 (2013.01) [G06F 11/1441 (2013.01); G06F 21/51 (2013.01); G06F 21/53 (2013.01); G06F 21/629 (2013.01); G06F 2221/2143 (2013.01)] 20 Claims
OG exemplary drawing
 
1. A method, comprising:
receiving an instruction for wiping data or performing a factory reset;
setting, in response to receiving the instruction, a first identifier for sending a first request to delete a first security service from a secure element (SE) of an electronic device;
storing the first identifier in a first area that is not deleted after wiping the data or performing the factory reset, wherein the first area comprises a trusted execution environment (TEE) of the electronic device or the SE of the electronic device;
shutting down or restarting the electronic device after setting the first identifier;
reading the first identifier when the electronic device is powered on or is connected to a network;
sending, to a server in response to reading the first identifier, the first request requesting to delete the first security service from the SE;
receiving, from the server according to the first request, a first command instructing to delete a target security service in the SE, wherein the target security service is based on a second security service installed in the SE and based on a list of deletable third security services stored in the server;
deleting, from the SE according to the first command, a secure element applet corresponding to the target security service; and
deleting, after deleting the secure element applet from the SE, the first identifier from the TEE of the electronic device or the SE of the electronic device.