CN115499823A - Application data backup and recovery method and system based on SIM card - Google Patents

Application data backup and recovery method and system based on SIM card Download PDF

Info

Publication number
CN115499823A
CN115499823A CN202210942123.1A CN202210942123A CN115499823A CN 115499823 A CN115499823 A CN 115499823A CN 202210942123 A CN202210942123 A CN 202210942123A CN 115499823 A CN115499823 A CN 115499823A
Authority
CN
China
Prior art keywords
data
backup
application
applet
backed
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210942123.1A
Other languages
Chinese (zh)
Inventor
刘磊
周向涛
费林深
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Eastcompeace Technology Co Ltd
Original Assignee
Eastcompeace Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Eastcompeace Technology Co Ltd filed Critical Eastcompeace Technology Co Ltd
Priority to CN202210942123.1A priority Critical patent/CN115499823A/en
Publication of CN115499823A publication Critical patent/CN115499823A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • H04W8/20Transfer of user or subscriber data
    • H04W8/205Transfer to or from user equipment or user record carrier
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • H04W8/183Processing at user equipment or user record carrier

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses an application data backup and recovery method and system based on an SIM card, and relates to the technical field of mobile communication. The application data backup method based on the SIM card comprises the following steps: responding to a data backup request message sent by a TSM platform, a backup Applet acquires data to be backed up of an application to be backed up and stores the data to be backed up; the backup Applet generates a data backup response message according to the data to be backed up and sends the data backup response message to the TSM platform; the TSM platform acquires and stores the data to be backed up according to the data backup response message and sends a data backup success message to the backup Applet; and responding to the data backup success message, the backup Applet removes the data to be backed up and locks the application to be backed up. The application data backup method based on the SIM card is convenient to operate, high in safety and universality and capable of conveniently backing up the application data on the SIM card.

Description

Application data backup and recovery method and system based on SIM card
Technical Field
The invention relates to the technical field of mobile communication, in particular to an application data backup and recovery method and system based on an SIM card.
Background
In the prior art, after a user replaces an SIM card, application data in the old SIM card will be lost, and if the user wants to continue to use the original application, the operation flow is tedious. For example, the wallet application on the SIM card needs to cash the balance of the wallet account on the old SIM card, then perform a debit operation, then open an account for the wallet application on the new SIM card, and then perform a recharge operation, so that the wallet application can be continuously used, which is complicated in operation and poor in user experience.
Disclosure of Invention
The present invention is directed to solving at least one of the problems of the prior art. Therefore, the invention provides an application data backup and recovery method and system based on an SIM card, and the convenience is higher.
On one hand, according to the application data backup method based on the SIM card, the SIM card comprises a backup Applet and an application to be backed up, and the method comprises the following steps:
in response to a data backup request message sent by a TSM platform, the backup Applet acquires the data to be backed up of the application to be backed up and stores the data to be backed up;
the backup Applet generates a data backup response message according to the data to be backed up and sends the data backup response message to the TSM platform;
the TSM platform acquires and stores the data to be backed up according to the data backup response message and sends a data backup success message to the backup Applet;
and responding to the data backup success message, the backup Applet clears the data to be backed up and locks the application to be backed up.
According to some embodiments of the present invention, in response to a data backup request packet sent by a TSM platform, the obtaining, by the backup Applet, data to be backed up of the application to be backed up, and saving the data to be backed up specifically includes:
and in response to the data backup request message sent by the TSM platform, the backup Applet calls a shared interface or a private API (application programming interface) for the application to be backed up to acquire the data to be backed up of the application to be backed up and stores the data to be backed up.
According to some embodiments of the present invention, the step of generating, by the backup Applet, a data backup response packet according to the data to be backed up, and sending the data backup response packet to the TSM platform includes:
the backup Applet polls and monitors whether data to be backed up needs to be sent to the TSM platform or not through a state event;
if the data to be backed up needs to be sent to the TSM platform, the backup Applet generates the data backup response message according to the data to be backed up and sends the data backup response message to the TSM platform; the data backup response message comprises a ciphertext and an MAC value.
According to some embodiments of the present invention, the step of the TSM platform obtaining and storing the data to be backed up according to the data backup response packet, and sending a data backup success packet to the backup Applet specifically includes:
after receiving the data backup response message, the TSM platform verifies the MAC value;
and after the data backup response message is verified to be correct, decrypting the data backup response message to acquire and store the data to be backed up, and sending the data backup success message to the backup Applet.
According to some embodiments of the present invention, the method further includes a step of performing application data backup processing through the TSM platform, the client, and the SIM card, where the step specifically includes:
responding to a selection command and a backup data obtaining command sent by the client, and obtaining and storing the data to be backed up of the application to be backed up by the backup Applet;
the backup Applet generates a data backup response message according to the data to be backed up and sends the data backup response message to the client;
the client sends the data backup response message to the TSM platform, and the TSM platform acquires and stores the data to be backed up according to the data backup response message and sends a data backup success message to the client;
responding to the data backup success message, and sending a locking command to the backup Applet by the client;
and responding to the locking command, the backup Applet clears the data to be backed up and locks the application to be backed up.
On the other hand, according to the application data recovery method based on the SIM card of the embodiment of the present invention, the SIM card includes a backup Applet and an application to be recovered, and the method includes the following steps:
responding to a data recovery request message sent by a TSM platform, and acquiring and storing the to-be-recovered data of the to-be-recovered application by the backup Applet;
the backup Applet sends the data to be recovered to the application to be recovered so that the application to be recovered executes data recovery operation;
after the data recovery operation is completed, the application to be recovered sends an execution result response message to the backup Applet;
responding to the execution result response message, and clearing the data to be restored by the backup Applet;
and the backup Applet activates the application to be recovered and sends a data recovery response message to the TSM platform.
According to some embodiments of the present invention, the step of obtaining and storing the data to be restored by the backup Applet in response to the data restoration request packet sent by the TSM platform specifically includes:
the backup Applet receives the data recovery request message sent by the TSM platform and checks the data integrity of the data recovery request message;
and after the data recovery request message is verified to be correct, decrypting the data recovery request message to acquire and store the data to be recovered.
According to some embodiments of the present invention, the method further includes a step of performing application data recovery processing through the TSM platform, the client, and the SIM card, where the step specifically includes:
the client acquires the data to be recovered of the application to be recovered from the TSM platform;
the client sends a selection command and a data recovery command to the backup Applet so that the backup Applet can acquire and store the data to be recovered;
the backup Applet sends the data to be recovered to the application to be recovered so that the application to be recovered executes data recovery operation;
after the data recovery operation is completed, the application to be recovered sends an execution result response message to the backup Applet;
responding to the execution result response message, the backup Applet clears the data to be recovered and sends a data recovery response message to the client;
and responding to the data recovery response message, the client sends an activation command to the backup Applet so that the backup Applet activates the application to be recovered, and sends an activation response message to the client.
On the other hand, the application data backup system based on the SIM card according to the embodiment of the present invention includes a TSM platform, a client and the SIM card, and the application data backup system can implement the above-mentioned application data backup method based on the SIM card.
On the other hand, the application data recovery system based on the SIM card comprises the TSM platform, the client and the SIM card, and the application cloud migration system can realize the application data recovery method based on the SIM card.
The application data backup and recovery method and system based on the SIM card provided by the invention at least have the following beneficial effects: when a user replaces the SIM card, the data of the application to be backed up are uploaded to the TSM platform for backup through the backup Applet of the old SIM card, the backup data are obtained from the TSM platform through the backup Applet of the new SIM card and written in the application to be restored in the new SIM card, so that the application data on the SIM card can be conveniently migrated, the application data on the old SIM card is migrated to the new SIM card, the operation is convenient, and the user experience is improved.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The above and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a schematic structural diagram of an application cloud migration system based on a SIM card according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating steps of a method for backing up application data based on an SIM card according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram corresponding to the SIM card-based application data backup method shown in fig. 2;
FIG. 4 is a flowchart illustrating steps of a method for recovering application data based on a SIM card according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram corresponding to the SIM card-based application data recovery method shown in fig. 4;
FIG. 6 is a flowchart illustrating steps of a method for backing up application data based on a SIM card according to another embodiment of the present invention;
fig. 7 is a schematic structural diagram corresponding to the SIM card based application data backup method shown in fig. 6;
FIG. 8 is a flowchart illustrating steps of a method for recovering application data based on a SIM card according to another embodiment of the present invention;
fig. 9 is a schematic structural diagram corresponding to the application data recovery method based on the SIM card shown in fig. 8.
Detailed Description
Reference will now be made in detail to the present preferred embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like reference numerals refer to like elements throughout.
In the description of the present invention, unless otherwise explicitly limited, terms such as arrangement, installation, connection and the like should be understood in a broad sense, and those skilled in the art can reasonably determine the specific meanings of the above terms in the present invention in combination with the specific contents of the technical solutions.
SIM: subscriber Identity Module, user Identity Module;
SMS: short Messaging Service;
and (3) BIP: the Bearer Independent Protocol;
and (3) Applet: applets, in the form including but not limited to Java applications or Native applications;
AID: application Identifier, application Identifier;
TSM: a Trusted Service Manager, trusted Service management platform;
COS: card Operation System, card operating System;
applets: application to be backed up/restored;
API: application Programming Interface, application program Interface.
In the prior art, after a user replaces an SIM card, application data in the old SIM card will be lost, and if the user wants to continue to use the original application, the operation flow is tedious. For example, in the wallet application on the SIM card, the wallet account balance on the old SIM card needs to be brought up, then the account-canceling operation is performed, then the account opening is performed on the wallet application on the new SIM card, and then the recharging operation is performed, so that the wallet application can be continuously used, which is complicated in operation and poor in user experience. In order to solve the technical problem, the embodiment of the invention realizes the cloud migration of the specified AID application data on the SIM card by backing up the Applet based on the SIM card access technology and the SIM card data short message technology.
As shown in fig. 1, an embodiment of the present invention provides a SIM card based application data backup/restore system, which includes a TSM platform 100, a client 200, and a SIM card 300.
The SIM card 300 includes COS, backup Applets and Applets, and the backup Applets and the Applets may perform data interaction through a shared interface/private API; if the backup Applet adopts a Java application form, the backup Applet and Applets realize data interaction through a standard shared interface technology; if the backup Applet adopts a Native application form, the backup Applet and the Applets realize data interaction through a private API (application programming interface) technology, and both the two modes have a safety protection mechanism.
The client 200 communicates with the SIM card 300 based on a mobile phone SIM card access technology, and obtains data to be backed up of a specific AID application (i.e., applets, application to be backed up) through a backup Applet, or writes data to be restored of the specific AID application (i.e., applets, application to be restored) through the backup Applet; the client 200 further communicates with the TSM platform 100 to upload data to be backed up of a specific AID application acquired from the backup Applet on the SIM card 300, or acquire data to be restored of the specific AID application from the TSM platform 100.
The TSM platform 100 may directly communicate with the SIM card 300 through SMS or BIP and other communication technologies, or communicate with the SIM card 300 by using the client 200, so as to obtain the data to be backed up of the specified AID application through a backup Applet, or write the data to be restored of the specified AID application through the backup Applet; data protection is carried out among the TSM platform 100, the client 200 and the SIM card 300 by adopting a point-to-point secure encryption communication technology.
As shown in fig. 2 and fig. 3, in some embodiments of the present invention, a SIM card-based application data backup method is provided, where the method is implemented by the TSM platform 100 communicating with the SIM card 300 through SMS or BIP technologies, and the method includes the following steps:
step S100: in response to a data backup request message sent by the TSM platform 100, the backup Applet obtains data to be backed up of the application to be backed up, and saves the data to be backed up;
step S200: the backup Applet generates a data backup response message according to the data to be backed up and sends the data backup response message to the TSM platform 100;
step S300: the TSM platform 100 acquires and stores the data to be backed up according to the data backup response message, and sends a data backup success message to the backup Applet;
step S400: and responding to the message of successful data backup, the backup Applet removes the data to be backed up and locks the application to be backed up.
Specifically, as shown in fig. 3, the TSM platform 100 issues a data backup request message of an application to be backed up, which specifies an AID, to a backup Applet through an SMS (or a technique such as BIP, the same applies below); the backup Applet calls a shared interface getBackupdata () for the application to be backed up of the specified AID (or calls a private API, which is determined by the form of the backup Applet, the same applies below) to acquire the data to be backed up, and the data to be backed up can be called for many times according to the size of the data volume to be backed up; and after the backup Applet acquires all the data to be backed up, the data to be backed up is stored.
The backup Applet monitors whether the data to be backed up need to be uploaded to the TSM platform 100 through state event polling, and if not, the backup Applet continues polling monitoring; if so, assembling a data backup response message (ciphertext + MAC value) according to the data to be backed up. The backup Applet sends a data backup response message to the TSM platform 100, and may need to send multiple pieces according to the size of the data volume.
After receiving the data backup response message uploaded by the backup Applet, the TSM platform 100 checks the MAC value, decrypts after checking no error, obtains and stores the data to be backed up, and issues a data backup success message to the backup Applet.
And after receiving the data backup success message, the backup Applet clears the data to be backed up, calls a shared interface blockApp () to lock the application to be backed up, and prohibits the transaction after the data backup so as to ensure the data consistency of the TSM platform 100 and the SIM card 300.
The application data backup method based on the SIM card has the advantages of convenient operation, high safety and universality, and can conveniently backup the application data on the SIM card 300, so that the application data on the old SIM card can not be lost when a user replaces the SIM card, and the subsequent re-downloading is facilitated.
Corresponding to the above method for backing up application data based on an SIM card, as shown in fig. 4 and 5, an embodiment of the present invention further provides a method for recovering application data based on an SIM card, where the method includes the following steps:
step S100a: responding to a data recovery request message sent by the TSM platform 100, and obtaining and storing data to be recovered of the application to be recovered by the backup Applet;
step S200a: the backup Applet sends the data to be recovered to the application to be recovered so that the application to be recovered executes data recovery operation;
step S300a: after the data recovery operation is completed, the application to be recovered sends an execution result response message to the backup Applet;
step S400a: responding to the execution result response message, and removing the data to be recovered by the backup Applet;
step S500a: the backup Applet activates the application to be restored and sends a data restoration response message to the TSM platform 100.
Specifically, as shown in fig. 5, the TSM platform 100 issues a data recovery request packet specifying an AID (application to be recovered) to the backup Applet, and multiple packets may be sent according to the size of the data volume; after the backup Applet receives all the data, the data integrity of the data recovery request message is checked, and after the data integrity is checked, the data to be recovered is obtained through decryption and stored.
Then, the backup Applet calls a shared interface restorarebakupdata () to the application to be restored of the specified AID to send data to be restored, and the backup Applet can be called for multiple times according to the size of the data volume; after receiving all the data to be recovered, the application to be recovered firstly verifies the integrity of the data to be recovered, decrypts the data after the verification is passed, and then executes data recovery operation.
After the data recovery operation is completed, the application to be recovered sends an execution result response message to the backup Applet, after the backup Applet receives the execution result response message, the backup Applet empties the data to be recovered, and calls a shared interface activeApp () for the application to be recovered of the specified AID to activate the application to be recovered (after the activation is successful, the application to be recovered can be normally used); finally, the backup Applet sends a data recovery response message to the TSM platform 100.
According to the application data recovery method based on the SIM card, which is disclosed by the embodiment of the invention, by matching with the application data backup method based on the SIM card, the application data on the SIM card can be conveniently migrated, the application data on the old SIM card is migrated to the new SIM card, the operation is convenient, the safety and the universality are higher, and the user experience degree is improved.
On the other hand, as shown in fig. 1, in addition to the TSM platform 100 directly communicating with the SIM card 300 through SMS or BIP technology to implement migration of application data, the TSM platform 100, the client 200, and the SIM card 300 may cooperate with each other to implement migration of application data through a machine-card channel between the client 200 and the SIM card 300.
For this reason, as shown in fig. 6 and fig. 7, in the embodiment of the present invention, another SIM card-based application data backup method is further provided, where the method includes the following steps:
step S100b: in response to a selection command and a backup data obtaining command sent by the client 200, the backup Applet obtains and saves the data to be backed up of the application to be backed up;
step S200b: the backup Applet generates a data backup response message according to the data to be backed up and sends the data backup response message to the client 200;
step S300b: the client 200 sends the data backup response message to the TSM platform 100, the TSM platform 100 acquires and stores the data to be backed up according to the data backup response message, and sends a data backup success message to the client 200;
step S400b: in response to the data backup success message, the client 200 sends a locking command to the backup Applet;
step S500b: and responding to the locking command, the backup Applet clears the data to be backed up and locks the application to be backed up.
Specifically, as shown in fig. 7, the client 200 sends a selection command and a GET BACKUP DATA command GET BACKUP DATA to the BACKUP Applet; the backup Applet calls a shared interface getBackupdata () to the application to be backed up of the specified AID to acquire data to be backed up, and the shared interface getBackupdata () may be called for many times according to the size of the data to be backed up.
After the BACKUP Applet acquires all the DATA to be backed up, the DATA to be backed up is stored, a DATA BACKUP response message is assembled to serve as response DATA to a GET BACKUP DATA command, and the assembled DATA BACKUP response message is sent to the client 200; if the DATA to be backed up cannot be completely sent by a RESPONSE command, the RESPONSE status word of the GET BACKUP DATA command is 0x91XX, and the client 200 obtains the remaining RESPONSE DATA with the length of 0XX by the GET RESPONSE DATA again until the RESPONSE status word is 0x9000, which indicates that all RESPONSEs of the DATA to be backed up are finished.
After the client 200 acquires all the data to be backed up, the data is uploaded to the TSM platform 100, the TSM platform 100 firstly verifies the integrity of the data, decrypts and stores the data after the verification is passed, and transmits a data backup success message to the client 200; after receiving the successful data backup message of the TSM platform 100, the client 200 sends a lock command BLOCK APP to the backup Applet; after receiving the BLOCK APP command of the client 200, the backup Applet removes the data to be backed up, calls a shared interface blockApp () to the application to be backed up of the specified AID to lock the application, and prohibits the transaction after data backup so as to ensure the data consistency of the TSM platform 100 and the SIM card 300.
The application data backup method based on the SIM card has the advantages of convenient operation, high safety and universality, and can conveniently backup the application data on the SIM card 300, so that the application data on the old SIM card can not be lost when a user replaces the SIM card, and the subsequent re-downloading is facilitated.
Corresponding to the above method for backing up application data based on an SIM card, as shown in fig. 8 and 9, an embodiment of the present invention further provides another method for recovering application data based on an SIM card, where the method includes the following steps:
step S100c: the client 200 acquires data to be recovered of the application to be recovered from the TSM platform 100;
step S200c: the client 200 sends a selection command and a data recovery command to the backup Applet so that the backup Applet can acquire and store data to be recovered;
step S300c: the backup Applet sends the data to be recovered to the application to be recovered so that the application to be recovered executes data recovery operation;
step S400c: after the data recovery operation is completed, the application to be recovered sends an execution result response message to the backup Applet;
step S500c: in response to the execution result response message, the backup Applet clears the data to be restored, and sends a data restoration response message to the client 200;
step S600c: in response to the data recovery response packet, the client 200 sends an activation command to the backup Applet, so that the backup Applet activates the application to be recovered, and sends an activation response packet to the client 200.
Specifically, as shown in fig. 9, the client 200 acquires data to be restored of an application to be restored specifying an AID from the TSM platform 100; subsequently, the client 200 sends a selection command and a DATA recovery command RESTORE DATA to the BACKUP Applet, and may send the selection command and the DATA recovery command RESTORE DATA for multiple times according to the size of the DATA volume; after the to-be-backed Applet receives all the to-be-restored data, the to-be-backed Applet calls a shared interface restoraBackuData () to the to-be-restored application of the specified AID to send the to-be-restored data, and the to-be-restored data can be called for many times according to the size of the data.
After receiving all the data to be recovered, the application to be recovered firstly verifies the integrity of the data to be recovered, decrypts the data after passing the verification, and executes data recovery operation; after the data recovery operation is completed, the application to be recovered sends an execution result response message to the backup Applet; after receiving the execution result response message, the backup Applet clears the data to be restored, and sends the data restoration response message to the client 200. The client sends an ACTIVE command ACTIVE APP to a backup Applet, and the backup Applet calls a shared interface activeApp () to activate the application to be recovered of the specified AID (after the activation is successful, the application to be recovered can be normally used); and finally, the backup Applet sends the activation response message to the client.
According to the application data recovery method based on the SIM card, which is disclosed by the embodiment of the invention, by matching with the application data backup method based on the SIM card, the application data on the SIM card can be conveniently migrated, the application data on the old SIM card is migrated to the new SIM card, the operation is convenient and fast, the safety and the universality are higher, and the user experience is improved.
On the other hand, in some embodiments of the present invention, a SIM card based application data backup system is further proposed, where the system includes the TSM platform 100, the client 200, and the SIM card 300, and the system may be used to implement the above SIM card based application data backup method, so as to implement backup of application data.
On the other hand, in some embodiments of the present invention, a SIM card based application data recovery system is further proposed, where the system includes the TSM platform 100, the client 200, and the SIM card 300, and the system may be used to implement the above SIM card based application data recovery method, so as to implement recovery of application data.
According to the application data backup/recovery system based on the SIM card, the technical difficulty that the original application data of the old card is lost and cannot be used continuously when a user changes the SIM card is solved, the method is simple and convenient to operate and high in convenience, and the user experience degree is improved. In the SIM card access technology related in the embodiment of the present invention, due to the difference of the Mobile phone operating systems, for the Android system, the client 200 may use Open Mobile, OMA, telephonyManager, or other libraries to access the SIM card 300; for the iOS system, the Bluetooth SIM card technology can be adopted for replacing the iOS system, and the effect of the SIM card access technology can also be achieved. Meanwhile, as long as the SIM card conforms to the international communication standard, the scheme of the embodiment of the invention can be supported, and is irrelevant to the forms (2 FF, 3FF, 4FF and the like) of the SIM card.
Although specific embodiments have been described herein, those of ordinary skill in the art will recognize that many other modifications or alternative embodiments are equally within the scope of this disclosure. For example, any of the functions and/or processing capabilities described in connection with a particular device or component may be performed by any other device or component. In addition, while various exemplary implementations and architectures have been described in accordance with embodiments of the present disclosure, those of ordinary skill in the art will recognize that many other modifications to the exemplary implementations and architectures described herein are also within the scope of the present disclosure.
Certain aspects of the present disclosure are described above with reference to block diagrams and flowchart illustrations of systems, methods, systems, and/or computer program products according to example embodiments. It will be understood that one or more blocks of the block diagrams and flowchart illustrations, and combinations of blocks in the block diagrams and flowchart illustrations, respectively, can be implemented by executing computer-executable program instructions. Also, according to some embodiments, some blocks of the block diagrams and flow diagrams may not necessarily be performed in the order shown, or may not necessarily be performed in their entirety. In addition, additional components and/or operations beyond those shown in block diagrams and flow diagrams may be present in certain embodiments.
Accordingly, blocks of the block diagrams and flowchart illustrations support combinations of means for performing the specified functions, combinations of elements or steps for performing the specified functions and program instruction means for performing the specified functions. It will also be understood that each block of the block diagrams and flowchart illustrations, and combinations of blocks in the block diagrams and flowchart illustrations, can be implemented by special purpose hardware-computer systems that perform the specified functions, elements or steps, or combinations of special purpose hardware and computer instructions.
The program modules, applications, etc. described herein may include one or more software components, including, for example, software objects, methods, data structures, etc. Each such software component may include computer-executable instructions that, in response to execution, cause at least a portion of the functionality described herein (e.g., one or more operations of the illustrative methods described herein) to be performed.
The software components may be encoded in any of a variety of programming languages. An illustrative programming language may be a low-level programming language, such as assembly language associated with a particular hardware architecture and/or operating system platform. Software components that include assembly language instructions may need to be converted by an assembler program into executable machine code prior to execution by a hardware architecture and/or platform. Another exemplary programming language may be a higher level programming language, which may be portable across multiple architectures. Software components that include higher level programming languages may need to be converted to an intermediate representation by an interpreter or compiler before execution. Other examples of programming languages include, but are not limited to, a macro language, a shell or command language, a job control language, a scripting language, a database query or search language, or a report writing language. In one or more exemplary embodiments, a software component containing instructions of one of the above programming language examples may be executed directly by an operating system or other software component without first being converted to another form.
The software components may be stored as files or other data storage constructs. Software components of similar types or related functionality may be stored together, such as in a particular directory, folder, or library. Software components may be static (e.g., preset or fixed) or dynamic (e.g., created or modified at execution time).
The embodiments of the present invention have been described in detail with reference to the accompanying drawings, but the present invention is not limited to the above embodiments, and various changes can be made within the knowledge of those skilled in the art without departing from the gist of the present invention.

Claims (10)

1. An application data backup method based on an SIM card is characterized in that the SIM card comprises a backup Applet and an application to be backed up, and the method comprises the following steps:
responding to a data backup request message sent by a TSM (storage service Module) platform, and acquiring to-be-backed-up data of the to-be-backed-up application by the backup Applet and storing the to-be-backed-up data;
the backup Applet generates a data backup response message according to the data to be backed up and sends the data backup response message to the TSM platform;
the TSM platform acquires and stores the data to be backed up according to the data backup response message and sends a data backup success message to the backup Applet;
and responding to the data backup success message, the backup Applet removes the data to be backed up and locks the application to be backed up.
2. The SIM card-based application data backup method according to claim 1, wherein the backup Applet obtains the data to be backed up of the application to be backed up and saves the data to be backed up in response to a data backup request packet sent by a TSM platform, and specifically includes:
and in response to the data backup request message sent by the TSM platform, the backup Applet calls a shared interface or a private API (application programming interface) for the application to be backed up to acquire the data to be backed up of the application to be backed up and stores the data to be backed up.
3. The SIM card-based application data backup method according to claim 1, wherein the step of generating, by the backup Applet, a data backup response packet according to the data to be backed up and sending the data backup response packet to the TSM platform specifically includes:
the backup Applet polls and monitors whether data to be backed up needs to be sent to the TSM platform or not through a state event;
if the data to be backed up needs to be sent to the TSM platform, the backup Applet generates the data backup response message according to the data to be backed up and sends the data backup response message to the TSM platform; the data backup response message comprises a ciphertext and an MAC value.
4. The method for backing up application data based on an SIM card according to claim 3, wherein the step of the TSM platform obtaining and saving the data to be backed up according to the data backup response packet, and sending a data backup success packet to the backup Applet specifically includes:
after receiving the data backup response message, the TSM platform checks the MAC value;
and after the data backup response message is verified to be correct, decrypting the data backup response message to acquire and store the data to be backed up, and sending the data backup success message to the backup Applet.
5. The SIM card-based application data backup method according to claim 1, further comprising the step of performing application data backup processing through the TSM platform, the client and the SIM card, and specifically comprising:
responding to a selection command and a backup data acquisition command sent by the client, and acquiring and storing the data to be backed up of the application to be backed up by the backup Applet;
the backup Applet generates a data backup response message according to the data to be backed up and sends the data backup response message to the client;
the client sends the data backup response message to the TSM platform, and the TSM platform acquires and stores the data to be backed up according to the data backup response message and sends a data backup success message to the client;
responding to the data backup success message, and sending a locking command to the backup Applet by the client;
and responding to the locking command, the backup Applet clears the data to be backed up and locks the application to be backed up.
6. An application data recovery method based on an SIM card is characterized in that the SIM card comprises a backup Applet and an application to be recovered, and the method comprises the following steps:
responding to a data recovery request message sent by a TSM platform, and acquiring and storing to-be-recovered data of the to-be-recovered application by the backup Applet;
the backup Applet sends the data to be recovered to the application to be recovered so that the application to be recovered executes data recovery operation;
after the data recovery operation is completed, the application to be recovered sends an execution result response message to the backup Applet;
responding to the execution result response message, and clearing the data to be restored by the backup Applet;
and the backup Applet activates the application to be recovered and sends a data recovery response message to the TSM platform.
7. The method for recovering application data based on an SIM card according to claim 6, wherein the step of the backup Applet obtaining and saving the data to be recovered in response to the data recovery request packet sent by the TSM platform specifically includes:
the backup Applet receives the data recovery request message sent by the TSM platform and verifies the data integrity of the data recovery request message;
and after the data is checked to be correct, decrypting the data recovery request message to acquire and store the data to be recovered.
8. The SIM card-based application data recovery method according to claim 6, further comprising a step of performing application data recovery processing through the TSM platform, the client and the SIM card, wherein the step specifically includes:
the client acquires the data to be recovered of the application to be recovered from the TSM platform;
the client sends a selection command and a data recovery command to the backup Applet so that the backup Applet can acquire and store the data to be recovered;
the backup Applet sends the data to be recovered to the application to be recovered so that the application to be recovered performs data recovery operation;
after the data recovery operation is completed, the application to be recovered sends an execution result response message to the backup Applet;
responding to the execution result response message, the backup Applet clears the data to be recovered and sends a data recovery response message to the client;
and responding to the data recovery response message, the client sends an activation command to the backup Applet so that the backup Applet activates the application to be recovered, and sends an activation response message to the client.
9. An application data backup system based on a SIM card, characterized by comprising a TSM platform, a client and the SIM card, wherein the application data backup system can realize the SIM card based application data backup method according to any one of claims 1-5.
10. An application data recovery system based on a SIM card, which is characterized by comprising a TSM platform, a client and the SIM card, wherein the application cloud migration system can realize the application data recovery method based on the SIM card according to any one of claims 6 to 8.
CN202210942123.1A 2022-08-05 2022-08-05 Application data backup and recovery method and system based on SIM card Pending CN115499823A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210942123.1A CN115499823A (en) 2022-08-05 2022-08-05 Application data backup and recovery method and system based on SIM card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210942123.1A CN115499823A (en) 2022-08-05 2022-08-05 Application data backup and recovery method and system based on SIM card

Publications (1)

Publication Number Publication Date
CN115499823A true CN115499823A (en) 2022-12-20

Family

ID=84466532

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210942123.1A Pending CN115499823A (en) 2022-08-05 2022-08-05 Application data backup and recovery method and system based on SIM card

Country Status (1)

Country Link
CN (1) CN115499823A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117215831A (en) * 2023-09-05 2023-12-12 中移互联网有限公司 USIM card application data migration method and device, electronic equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1918929A (en) * 2003-12-19 2007-02-21 格姆普拉斯公司 Method and device for pre-saving personal data for a subscriber to a telecommunications network
CN103823726A (en) * 2014-03-13 2014-05-28 中国联合网络通信集团有限公司 SIM (subscriber identity module) card data backup method and terminal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1918929A (en) * 2003-12-19 2007-02-21 格姆普拉斯公司 Method and device for pre-saving personal data for a subscriber to a telecommunications network
CN103823726A (en) * 2014-03-13 2014-05-28 中国联合网络通信集团有限公司 SIM (subscriber identity module) card data backup method and terminal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117215831A (en) * 2023-09-05 2023-12-12 中移互联网有限公司 USIM card application data migration method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
EP2521034B1 (en) Managing method, device and terminal for application program
US7353044B2 (en) Method for processing and transmitting data on a mobile telephone network and microchip onboard system
JP6585072B2 (en) Safe reading of data into non-volatile memory or secure elements
CN103455349A (en) Method and device for accessing intelligent card by application program
EP3391209B1 (en) Method for managing objects in a secure element
CN111586671B (en) Embedded user identification card configuration method and device, communication equipment and storage medium
CN115499823A (en) Application data backup and recovery method and system based on SIM card
CN114780127A (en) Embedded equipment firmware updating method, embedded equipment and development end equipment
CN111405550B (en) WhatsApp key file extraction method and WhatsApp key file extraction equipment
JP4992511B2 (en) Web service identification information utilization system, and apparatus, method, and program used therefor
CN105187410A (en) Application self-upgrading method and system
CN105183584A (en) Application cloud backup method and system thereof
JP2006139489A (en) Method for restoring environment of common use personal computer system and common use personal computer
CN105786575A (en) Mobile terminal and data elimination avoiding method thereof during system rewriting
CN116489633A (en) Data migration method, data recovery method, device, equipment and storage medium
CN111414610A (en) Method and device for determining database verification password
US11556673B2 (en) Method for managing an instance of a class
CN112702731B (en) SIM card information transmission method and device, computer equipment and storage medium
EP3486827A1 (en) "window-of-time" encryption session key transference
CN104954223B (en) Data processing method and device based on Virtual Private Network
CN113704773A (en) Relay protection safety chip operating system and communication method thereof
CN108990046B (en) Connection method of mobile network
CN105592033A (en) Trusted service management system and method
EP2584755A1 (en) Method of sending a command to a secure element
WO2022006810A1 (en) Data management method and apparatus, electronic element, and terminal device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination