IP Library › Granted Patent US 10,681,533
Granted Patent B2
US 10,681,533 · App. 16/127,389 · Granted Jun 9, 2020

Information writing method and device

Inventors: Xiaojun Wu (Beijing, CN); Feng Jin (Beijing, CN); Guilin Liu (Beijing, CN)
Assignee: Beijing Xiaomi Mobile Software Co., Ltd.
H04W8/183H04W8/205H04W8/265H04W12/06
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 10,681,533
App. No.
16/127,389
Granted
Jun 9, 2020
Kind
B2
Abstract

An information writing method and device, the method including: acquiring code information of a Subscriber Identification Module (SIM) card, the code information being verification information used by the SIM card to access a communication network; sending the acquired code information to a Card Operating System (COS) of the SIM card via an existing interface in an operating system, the existing interface being a communication interface programmed for transmitting first information between the operating system and the COS, the first information being different from the code information; and writing, through the COS, the acquired code information into the SIM card.

Claims (70)

1. An information writing method for a terminal, comprising:

acquiring, by the terminal, code information of a Subscriber Identification Module (SIM) card, the code information being verification information used by the SIM card to access a communication network;

determining one or more parameters included in a first type of information to be transmitted via an existing interface between an operating system of the terminal and a Card Operating System (COS) of the SIM card;

encrypting, by the terminal, the acquired code information by an encryption key stored in the terminal;

packaging the encrypted code information into the first type of information by converting the encrypted code information into the one or more parameters of the first type of information;

sending the acquired code information, in a form of the packaged encrypted code information, to the COS of the SIM card via the existing interface in the operating system of the terminal; and

writing, through the COS, the acquired code information into the SIM card.

2. The method according to claim 1 , wherein writing, through the COS, the acquired code information into the SIM card comprises:

decrypting, through the COS, one or more parameters included in the packaged encrypted code information received via the existing interface in the operating system;

when the decrypting is successful, detecting, through the COS, whether the decrypted one or more parameters match a code information format; and

when the decrypted one or more parameters match the code information format, determining that the decrypted one or more parameters are the acquired code information, and writing, through the COS, the decrypted one or more parameters into the SIM card.

3. The method according to claim 1 , wherein acquiring the code information of the SIM card comprises:

accessing a data network; and

acquiring the code information of the SIM card from the accessed data network.

4. The method according to claim 1 , wherein writing, through the COS, the acquired code information into the SIM card comprises:

when there is pre-stored code information in the SIM card, updating, through the COS, the pre-stored code information in the SIM card using the acquired code information; and

when there is no pre-stored code information in the SIM card, writing, through the COS, the code information into the SIM card.

5. The method according to claim 1 , wherein writing, through the COS, the acquired code information into the SIM card comprises:

when there is pre-stored code information in the SIM card, updating, through the COS, the pre-stored code information in the SIM card using the acquired code information; and

when there is no pre-stored code information in the SIM card, writing, through the COS, the code information into the SIM card.

6. The method according to claim 2 , wherein writing, through the COS, the acquired code information into the SIM card comprises:

when there is pre-stored code information in the SIM card, updating, through the COS, the pre-stored code information in the SIM card using the acquired code information; and

when there is no pre-stored code information in the SIM card, writing, through the COS, the code information into the SIM card.

7. The method according to claim 3 , wherein writing, through the COS, the acquired code information into the SIM card comprises:

when there is pre-stored code information in the SIM card, updating, through the COS, the pre-stored code information in the SIM card using the acquired code information; and

when there is no pre-stored code information in the SIM card, writing, through the COS, the code information into the SIM card.

8. The method according to claim 1 , wherein when the original function of the existing interface is to read and write a short message, the first type of information is the short message; when the original function of the existing interface is to read and write contact information, the first type of information is contact information.

9. An information writing device in a terminal, comprising:

a processor; and

a memory configured to store instructions executable by the processor;

wherein the processor is configured to:

acquire code information of a Subscriber Identification Module (SIM) card, the code information being verification information used by the SIM card to access a communication network;

determine one or more parameters included in a first type of information to be transmitted via an existing interface between an operating system of the terminal and a Card Operating System (COS) of the SIM card;

encrypt the acquired code information by an encryption key stored in the terminal;

package the encrypted code information into the first type of information by converting the encrypted code information into the one or more parameters of the first type of information;

send the acquired code information, in a form of the packaged encrypted code information, to the COS of the SIM card via the existing interface in the operating system of the terminal; and

write, through the COS, the acquired code information into the SIM card.

10. The device according to claim 9 , wherein in writing, through the COS, the acquired code information into the SIM card, the processor is further configured to:

decrypt, through the COS, one or more parameters included in the packaged encrypted code information received via the existing interface in the operating system;

when the decrypting is successful, detect, through the COS, whether the decrypted one or more parameters match a code information format; and

when the decrypted one or more parameters match the code information format, determine that the decrypted one or more parameters are the acquired code information, and writing, through the COS, the decrypted one or more parameters into the SIM card.

11. The device according to claim 9 , wherein in acquiring the code information of the SIM card, the processor is further configured to:

access a data network; and

acquire the code information of the SIM card from the accessed data network.

12. The device according to claim 9 , wherein in writing, through the COS, the acquired code information into the SIM card, the processor is further configured to:

when there is pre-stored code information in the SIM card, update, through the COS, the pre-stored code information in the SIM card using the acquired code information; and

when there is no pre-stored code information in the SIM card, write, through the COS, the code information into the SIM card.

13. The method according to claim 9 , wherein in writing, through the COS, the acquired code information into the SIM card, the processor is further configured to:

when there is pre-stored code information in the SIM card, update, through the COS, the pre-stored code information in the SIM card using the acquired code information; and

when there is no pre-stored code information in the SIM card, write, through the COS, the code information into the SIM card.

14. The device according to claim 10 , wherein in writing, through the COS, the acquired code information into the SIM card, the processor is further configured to:

when there is pre-stored code information in the SIM card, update, through the COS, the pre-stored code information in the SIM card using the acquired code information; and

when there is no pre-stored code information in the SIM card, write, through the COS, the code information into the SIM card.

15. A non-transitory computer-readable storage medium storing instructions that, when executed by a processor in a terminal, cause the terminal to perform an information writing method, the method comprising:

acquiring code information of a Subscriber Identification Module (SIM) card, the code information being verification information used by the SIM card to access a communication network;

determining one or more parameters included in a first type of information to be transmitted via an existing interface between an operating system of the terminal and a Card Operating System (COS) of the SIM card;

encrypting, by the terminal, the acquired code information by an encryption key stored in the terminal;

packaging the encrypted code information into the first type of information by converting the encrypted code information into the one or more parameters of the first type of information;

sending the acquired code information, in a form of the packaged encrypted code information, to the COS of the SIM card via the existing interface in the operating system of the terminal; and

writing, through the COS, the acquired code information into the SIM card.

16. The non-transitory computer-readable storage medium according to claim 15 , wherein writing, through the COS, the acquired code information into the SIM card comprises:

decrypting, through the COS, one or more parameters included in the packaged encrypted code information received via the existing interface in the operating system;

when the decrypting is successful, detecting, through the COS, whether the decrypted one or more parameters match a code information format; and

when the decrypted one or more parameters match the code information format, determining that the decrypted one or more parameters are the acquired code information, and writing, through the COS, the decrypted one or more parameters into the SIM card.

17. The non-transitory computer-readable storage medium according to claim 15 , wherein acquiring the code information of the SIM card comprises:

accessing a data network; and

acquiring the code information of the SIM card from the accessed data network.

18. The non-transitory computer-readable storage medium according to claim 15 , wherein writing, through the COS, the acquired code information into the SIM card comprises:

when there is pre-stored code information in the SIM card, updating, through the COS, the pre-stored code information in the SIM card using the acquired code information; and

when there is no pre-stored code information in the SIM card, writing, through the COS, the code information into the SIM card.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 11, 2018
From: WU, XIAOJUN; JIN, FENG; LIU, GUILIN
To: BEIJING XIAOMI MOBILE SOFTWARE CO., LTD.
Reel/Frame 046841/0354 →
Continuity (2)
Continuation PCTCN2016092429 · Jul 29, 2016
Related Publication 20190028885A1 · Jan 24, 2019