Data management method, device, electronic component and terminal equipment

By stripping the application status data in the application file and converting it into an application execution file, the problem of insufficient storage space for electronic components is solved, the expansion of storage space and data security are both achieved, and the processor resource usage is reduced and storage space is released. influence.

CN114174990BActive Publication Date: 2024-10-11SHENZHEN GOODIX TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202080047554.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-07-09
Publication Date
2024-10-11
Estimated Expiration
2040-07-09

AI Technical Summary

Technical Problem

The storage space of electronic components in mobile terminal devices and IoT terminal devices is insufficient to meet the growing application demands, limiting application expansion capabilities.

Method used

The application execution file is generated by stripping the application status data in the application file and saving it in external memory. The original application execution file is deleted to free up storage space. At the same time, the application execution file is backed up in advance to reduce processor resource usage and release storage space. Influence.

Benefits of technology

Expand the storage space of electronic components without reducing the data security level, reduce the impact of releasing storage space on other application processes, and avoid synchronization problems caused by changes in application execution variables.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114174990B_ABST
    Figure CN114174990B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a data management method, apparatus, electronic component and terminal device. The method includes: stripping application status data from an application file stored in a first memory of a first component, generating an application execution file based on the remaining part of the file after the application file strips the application status data; saving the application execution file and the application status data in the first memory, and deleting the application file in the first memory; saving backup data of the application execution file in a second memory of a second component; and deleting the application execution file stored in the first memory when there is a storage space release request for the first memory. According to the method of an embodiment of the present application, the storage space of the electronic component can be expanded without reducing the security level of the application data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of terminal technology, and in particular to a data management method, device, electronic component and terminal equipment. Background Art

[0002] With the increasing popularity of mobile terminal devices and IoT terminal devices, users' requirements for the application functions of mobile terminal devices and IoT terminal devices are also increasing. In some application scenarios, mobile terminal devices and IoT terminal devices expand their application functions by installing electronic components that can load applications. For example, as mobile terminal devices and IoT terminal devices have higher and higher security requirements, security elements represented by smart cards and embedded security elements (eSE) are increasingly used in terminal devices. As a security unit module on the terminal device, the security element is combined with the main processor of the terminal device to provide the terminal device with security functions such as secure storage, secure cryptographic algorithms, and secure trust roots to enhance the security capabilities of the terminal device.

[0003] Most electronic components that can load applications run multi-application operating systems and support multiple applications being loaded into electronic components at the same time. In actual application scenarios, a large number of applications with complex functions often need to be loaded and installed in an electronic component that can load applications. When these applications are loaded into electronic components, they will occupy a large amount of electronic component storage space. However, electronic components are limited by process and cost constraints, and the storage resources of chips are limited, making it difficult to meet this growing demand, limiting the further development of electronic component application expansion capabilities. Summary of the invention

[0004] In view of the problem that the storage space of electronic components in the prior art cannot meet the needs of actual application scenarios, the present application provides an application data management method, apparatus, electronic component and terminal device.

[0005] The present application embodiment adopts the following technical solutions:

[0006] In a first aspect, an embodiment of the present application provides a data management method, including:

[0007] Data stripping operation: stripping application state data from an application file stored in a first memory, and generating an application execution file based on the remaining file after stripping the application state data from the application file, wherein: the first memory is an internal memory of a first component; the first component is a component in a device that can independently load an application, and the first component can implement an application function by running the application file; the application state data includes application execution variables and sensitive information related to data security; combined with the application state data, the first component can implement the application function by running the application execution file;

[0008] Saving the application execution file and the application state data in the first memory, and deleting the application file in the first memory;

[0009] storing backup data of the application execution file in a second memory, wherein the second memory is a memory of a second component, and the first component and the second component belong to the same device;

[0010] When there is a storage space release request for the first memory, the application execution file stored in the first memory is deleted.

[0011] In a feasible implementation manner of the first aspect above, the application file is stored in the first memory in the form of serialized data blocks;

[0012] The application execution file is a data block remaining after the application state data is stripped from the data block of the application file.

[0013] In a feasible implementation manner of the first aspect, before the data stripping operation:

[0014] Determining whether the application corresponding to the application file is a migratable application of the first component, wherein the migratable application is an application that does not affect the normal operation of the first component after being uninstalled;

[0015] When the application corresponding to the application file is a migratable application of the first component, the data stripping operation and subsequent operation steps are performed.

[0016] In a feasible implementation manner of the first aspect above, the method further includes:

[0017] Saving file status description information in the first memory, where the file status description information is used to record whether the application execution file is saved in the first memory;

[0018] and / or,

[0019] The file location description information is saved in the first memory, and the file location description information is used to record the storage location of the backup data in the second memory.

[0020] In a feasible implementation manner of the first aspect above, the backup data of the application execution file is stored in the second memory, wherein:

[0021] The backup data of the application execution file is the original data of the application execution file;

[0022] or,

[0023] The backup data of the application execution file is data generated after encryption and integrity signing operations are performed on the application execution file.

[0024] In a feasible implementation manner of the first aspect above, the method further includes:

[0025] When there is an application recovery request, determining an application to be recovered corresponding to the application recovery request;

[0026] Confirming the backup data corresponding to the application to be restored in the second storage;

[0027] The application execution file corresponding to the application to be restored is acquired according to the backup data corresponding to the application to be restored, and the application execution file corresponding to the application to be restored is copied to the first memory.

[0028] In a feasible implementation manner of the first aspect above, the method further includes:

[0029] When there is an application running request, determining an application to be run corresponding to the application running request;

[0030] Determine the storage location of the application execution file corresponding to the application to be run;

[0031] When the application execution file corresponding to the application to be run is not stored in the first memory, and the backup data of the application execution file corresponding to the application to be run is stored in the second memory, an application recovery request for the application to be run is initiated.

[0032] In a feasible implementation manner of the first aspect above, the method further includes:

[0033] After the application execution file is deleted from the first memory, when there is free space in the first memory, an application recovery request for the application corresponding to the application execution file is initiated.

[0034] In a feasible implementation manner of the first aspect above, the method further includes:

[0035] When there is an application uninstallation request, determining an application to be uninstalled corresponding to the application uninstallation request;

[0036] The application execution file corresponding to the application to be uninstalled is deleted from the first memory, and the backup data of the application execution file corresponding to the application to be uninstalled is deleted from the second memory.

[0037] In a feasible implementation manner of the first aspect above, the second memory is a memory of a main processor.

[0038] In a second aspect, an embodiment of the present application provides a data management device, including:

[0039] A data stripping module, which is used to strip application state data from an application file stored in a first memory, and generate an application execution file according to the remaining part of the file after the application file is stripped of the application state data, wherein: the first memory is an internal memory of a first component; the first component is a component in a device that can independently load an application, and the first component can implement an application function by running the application file; the application state data includes application execution variables and sensitive information related to data security; combined with the application state data, the first component can implement the application function by running the application execution file;

[0040] Data management module, which is used to:

[0041] Saving the application execution file and the application state data in the first memory, and deleting the application file in the first memory;

[0042] storing backup data of the application execution file in a second memory, wherein the second memory is a memory of a second component, and the first component and the second component belong to the same device;

[0043] When there is a storage space release request for the first memory, the application execution file stored in the first memory is deleted.

[0044] In a third aspect, an embodiment of the present application provides an electronic component, the electronic component comprising a first memory and a first processor, wherein:

[0045] When the electronic component loads an application, the first memory is used to store an application file corresponding to the application;

[0046] The first memory is further used to store first computer program instructions, which, when executed by the first processor, trigger the electronic component to implement the method steps described in the first aspect above.

[0047] In a fourth aspect, an embodiment of the present application provides a terminal device, the terminal device comprising a second memory and a second processor, wherein:

[0048] The electronic component as described in the third aspect above can be installed on the terminal device;

[0049] The second memory is used to store the application execution file from the electronic component;

[0050] The second memory is also used to store second computer program instructions. When the second computer program instructions are executed by the second processor, the terminal device is triggered to respond to the request of the electronic component and / or control the electronic component so that the electronic component implements the method steps described in the first aspect above.

[0051] According to the above technical solution proposed in the embodiment of the present application, at least the following technical effects can be achieved:

[0052] According to the method of an embodiment of the present application, the application state data in the application file is stripped to generate the application execution file, and the storage space of the electronic component can be expanded by saving the backup data of the application execution file and deleting the original application execution file without reducing the security level of the application data;

[0053] Furthermore, according to the method of an embodiment of the present application, the application execution file is saved in advance, so that the processor resources occupied when deleting the application execution file to release the storage space are greatly reduced, and the execution timing of deleting the application execution file to release the storage space is more flexible, which greatly reduces the impact of the storage space release operation on other application processes of the security element;

[0054] Furthermore, according to the method of an embodiment of the present application, the application execution file does not include the application execution variable. Therefore, when the application execution variable changes, the application execution file does not need to be synchronized, thereby avoiding the impact of file synchronization on other application processes of the secure element. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] Figure 1 Shown is a flow chart of an embodiment of a data management method according to the present application;

[0056] Figure 2 The flowchart of an embodiment of the data management method according to the present application is shown as follows:

[0057] Figure 3 Shown is a structural diagram of an embodiment of a data management device according to the present application;

[0058] Figure 4 Shown is a structural diagram of a terminal device according to an embodiment of the present application. DETAILED DESCRIPTION

[0059] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.

[0060] The terms used in the implementation section of this application are only used to explain the specific embodiments of this application and are not intended to limit this application.

[0061] In view of the problem that the storage space of electronic components in the prior art cannot meet the requirements of actual application scenarios, the present application provides a data management method. In order to propose the method of the embodiment of the present application, the inventor first analyzes the actual application scenarios of electronic components.

[0062] In actual application scenarios, some electronic components installed in terminal devices for expanding application functions can load applications independently. That is, when the electronic component loads an application, it can save the application file of the application in its own internal memory; and the electronic component itself has a processor, which can independently run the application file in the internal memory through its own processor to realize the corresponding application function. For example, when the security element loads a security application, it saves the application file of the security application in its own internal memory. When the terminal device implements the security protection function through the security element, it is the processor of the security element itself that runs the application file saved in the internal memory of the security element to realize the security protection function, rather than the main processor of the terminal device running the application file to realize the security protection function.

[0063] The independent loading of applications by electronic components causes the application files of the applications to occupy the internal storage space of the electronic components. When the number of applications loaded by the electronic components increases, the free space of the internal memory of the electronic components decreases, eventually leading to insufficient internal storage space of the electronic components.

[0064] However, although multiple different applications are loaded on the electronic component, not all applications are used at the same frequency. Therefore, in a feasible application solution, when the storage space of the electronic component is insufficient, the application files corresponding to the applications with low usage frequency can be temporarily migrated to the memory (external memory) of other devices other than the electronic component, thereby temporarily freeing up storage space to meet the needs of the current application scenario. Then, when the migrated application files are needed, the applications migrated to other storage devices can be migrated back. In this way, the storage space of the electronic component can be expanded in disguise without changing the hardware configuration of the electronic component.

[0065] However, some highly sensitive information related to data security exists in the application files stored on the electronic components. For example, for security components, some application files in security components contain highly sensitive information such as money amounts and counter values. If the above highly sensitive information related to data security is migrated to external storage, the security sensitive information will be out of the protection of the electronic components, thus causing data security vulnerabilities. Even if security measures such as encryption and replay counters can be taken for application files migrated to external storage, there is still a risk of reduced security levels.

[0066] Furthermore, the migration of application files involves the establishment of a data transmission channel with an external memory and the transmission of application file data, which will occupy considerable processor resources and thus affect other application processing processes of the electronic component. A feasible solution is to back up the application files that can be migrated on the electronic component to an external memory in advance when the electronic component is idle. When the internal storage space of the electronic component is insufficient, only the application files that have been backed up need to be deleted to free up storage space without migrating the application files.

[0067] However, in some application scenarios, there are application execution variables related to the actual application scenarios in the application files, and the specific values ​​of the application execution variables will change as the application is executed. This means that when the application files are backed up to the external memory in advance, if the application execution variables in the application files are updated, the latest application execution variables must be synchronously updated to the external memory, which will also have an adverse effect on the runtime performance of the application in the electronic component.

[0068] Based on the analysis of the above application scenarios, in one embodiment of the present application, the application file is divided into two parts, one part is an executable application code (application execution file) that does not contain sensitive information and application execution variables, and the other part is application state data that contains sensitive information and application execution variables. Combined with the application state data, the electronic component running the application execution file can realize the application function realized by running the original application file.

[0069] When the internal storage space of the electronic component is insufficient, the application execution file can be migrated to the external memory to temporarily free up storage space. Since the application execution file does not contain sensitive information related to data security, the migration of the application execution file will not reduce the security level of the application file. According to the method of an embodiment of the present application, by stripping the application state data, the backup of the application file can be achieved without reducing the security level of the application data, thereby expanding the storage space of the electronic component by deleting some application files.

[0070] At the same time, since the application execution file is backed up in advance, the processor resources occupied when only deleting the application execution file to release storage space are greatly reduced, and the execution timing of deleting the application execution file to release storage space is more flexible, which greatly reduces the impact of the storage space release operation on other application processes of the electronic component; and, further, the application execution file does not contain application execution variables. Therefore, there is no need to synchronize the application execution file when the application execution variables change, avoiding the impact of file synchronization on other application processes of the security element.

[0071] The technical solutions provided by various embodiments of the present application are described in detail below in conjunction with the accompanying drawings.

[0072] Figure 1 FIG. 1 is a flow chart of an embodiment of a data management method according to the present application. Figure 1 As shown, in one embodiment of the present application, the following steps are performed to implement the data management method of one embodiment of the present application:

[0073] Step 110, data stripping operation: stripping application state data from the application file stored in the first memory, and generating an application execution file according to the remaining file after stripping the application state data from the application file, wherein: the first memory is an internal memory of the first component; the first component is a component in the device that can independently load an application, and the first component can implement application functions by running the application file; the application state data includes application execution variables and sensitive information related to data security; combined with the application state data, the first component can implement application functions by running the application execution file;

[0074] Step 121, saving the application execution file and application state data in the first memory;

[0075] Step 122, deleting the application file in the first memory;

[0076] Step 130, saving the backup data of the application execution file in a second memory, wherein the second memory is a memory of a second component, and the first component and the second component belong to the same device;

[0077] Step 140, determining whether there is a storage space release request for the first memory;

[0078] If not present, return to step 140;

[0079] If it exists, execute step 141 to delete the application execution file stored in the first memory.

[0080] according to Figure 1The method of the embodiment shown in the figure strips the application status data in the application file to generate the application execution file. Under the premise of not reducing the security level of the application data, the storage space of the electronic component can be expanded by saving the backup data of the application execution file and deleting the original application execution file. Figure 1 The method of the illustrated embodiment saves the application execution file in advance, so that the processor resources occupied when deleting the application execution file to release the storage space are greatly reduced, and the execution timing of deleting the application execution file to release the storage space is more flexible, which greatly reduces the impact of the storage space release operation on other application processes of the security element; and further, the application execution file does not contain application execution variables. Therefore, when the application execution variables change, there is no need to synchronize the application execution file, thereby avoiding the impact of file synchronization on other application processes of the security element.

[0081] Furthermore, in an embodiment of the present application, the first element is a security element of the device, and the above steps 110 to 140 are executed by the security element, thereby preventing the application file from escaping from the protection of the security element and improving data security.

[0082] Furthermore, in an embodiment of the present application, the first component is a main processor of the device, and the second memory is a memory of the main processor. This can simplify the transmission path of the backup data as much as possible and speed up the transmission efficiency of the backup data.

[0083] Furthermore, in actual application scenarios, the above Figure 1 The steps shown may have a variety of different implementations. In the process of implementing the technical solution of the embodiment of the present application, a corresponding implementation may be adopted according to the specific application scenario requirements.

[0084] Specifically, in an application scenario, the application file stored in the first memory is the executable data formed after the application package downloaded in the first component is unpacked and serialized. After the first component downloads an application data package, the application data package cannot be run directly, and needs to be unpacked and serialized to generate an executable application file. The application file is stored in the first memory so that the processor of the first component can call and execute it.

[0085] Furthermore, in an application scenario, serialization of application package data refers to serializing the executable file in the application package data into one or more continuously stored binary data blocks. That is, the application file is stored in the first memory in the form of serialized data blocks. The application executable file generated after the data stripping operation is executed is the data block remaining after the data block of the application file is stripped of the application state data.

[0086] Furthermore, in an application scenario, when processing application files, the application files are divided by application, that is, one application file corresponds to one application. When releasing storage space, the application execution file is also deleted by application. There is a correspondence between application executable files and applications, and scheduling by application is more conducive to the management of persistent storage space of electronic components and easier to implement the expansion of storage capacity of electronic components. There is a correspondence between applications and application execution files. This correspondence can make the scheduling of application execution files more in line with user cognition and avoid confusion for users.

[0087] Furthermore, in actual application scenarios, not all applications loaded on the first component can be migrated to the external memory. Some key applications cannot be migrated (cannot be deleted, for example, system applications), so it is impossible to release storage space by deleting the key application. Then, it is meaningless to back up the key application to the external memory in advance. Therefore, in one embodiment of the present application, only the applications that can be migrated are backed up in advance. That is, in step 130, the data stripping operation will not be performed on the application files that cannot participate in the migration.

[0088] Specifically, in an embodiment of the present application, before step 110:

[0089] Determine whether the application corresponding to the application file is a migratable application of the first component, wherein the migratable application is an application that does not affect the normal operation of the first component after being uninstalled;

[0090] When the application corresponding to the application file is a migratable application of the first component, a data stripping operation and subsequent operation steps are performed.

[0091] Furthermore, considering that performing the data stripping operation on only a part of the application files will cause confusion in the storage of the application files, therefore, in one embodiment of the present application, in step 110, the migratable applications that can participate in the migration among the applications loaded by the first component are confirmed; the data stripping operation is performed on the application files corresponding to all the migratable applications; and the data stripping operation is performed on all the application files of the first component. In step 121, a migratable file set is constructed in the first memory, and the migratable file set contains the application execution files corresponding to all the migratable applications. In step 130, the backup data of all the application execution files in the migratable file set are saved to the second memory. In step 141, when there is a storage space release request, one or more application execution files in the migratable file set currently saved in the first memory are deleted.

[0092] Specifically, in the above implementation, the migratable applications can be determined according to specific application requirements. The migratable file set is a subset of the full set of application execution files in the first component, and the range of the migratable file set can be pre-set or specified later through specific instructions.

[0093] In the above implementation, the setting of the migratable file set can cope with the characteristic requirements of some complex first component operating systems, such as the Java Card operating system.

[0094] Furthermore, in actual application scenarios, for the implementation of step 140, it can be determined whether to initiate a storage space release request based on actual application requirements. For example, when the internal storage space of the first component is sufficient, no storage space release request is initiated; only when the internal storage space of the first component is tight, a storage space release request is initiated, so that the storage area of ​​the first component itself can be fully used, and the secure storage capacity of the first component can be fully utilized. For another example, an external controller sends an instruction to the first component, requiring the first component to delete one or more application execution files in the first memory.

[0095] Specifically, for example, in one embodiment of the present application, a storage space occupancy threshold is set, and a storage space release request is initiated when the storage space occupancy of the first component exceeds the preset storage space occupancy threshold (for example, a storage space release request is initiated when the storage space free amount of the first component is less than 10%).

[0096] Specifically, for example, in one embodiment of the present application, when the first component needs to perform a data save operation (for example, needs to load a new application, or needs to restore a deleted application execution file), it determines whether the current storage space is sufficient to perform the data save operation, and initiates a storage space release request when the current storage space is insufficient to perform the data save operation.

[0097] Furthermore, in an actual application scenario, for the implementation of step 141, the application execution file to be deleted may be determined according to actual application requirements.

[0098] For example, in an implementation of step 141, when there is a storage space release request, all application execution files in the migratable file set currently stored in the first memory are deleted.

[0099] For another example, in one implementation of step 141, when there is a request to release storage space, the size of the storage space required to be released to meet the current data storage demand is calculated, and one or more application execution files in the migratable file set currently stored in the first memory are deleted, so that the total amount of data of the deleted application execution files is the size of the storage space required to be released to meet the current data storage demand.

[0100] For another example, in an implementation of step 141, when there is a storage space release request, the application execution file with the lowest running frequency is deleted first.

[0101] Furthermore, in an actual application scenario, after releasing storage space by deleting the application execution file, if the deleted application execution file needs to be run, the application execution file needs to be restored from the backup data stored in the second memory.

[0102] like Figure 1 As shown, the data management method of an embodiment of the present application further includes the following steps:

[0103] Step 150, determining whether there is an application recovery request;

[0104] If not present, return to step 150;

[0105] When there is an application recovery request, execute step 151;

[0106] Step 151, determining the application to be restored corresponding to the application restoration request;

[0107] Step 152, confirming the backup data corresponding to the application to be restored in the second storage;

[0108] Step 153: acquiring the application execution file corresponding to the application to be restored according to the backup data corresponding to the application to be restored, and copying the application execution file corresponding to the application to be restored to the first storage.

[0109] Specifically, in one embodiment of the present application, file location description information is saved in the first memory, and the file location description information is used to record the storage location of the backup data stored in the second memory. In this way, when restoring the application execution file from the backup data stored in the second memory to the first memory, the backup data corresponding to the application execution file in the second memory can be located through the file location description information.

[0110] Specifically, in an application scenario, the file location description information stored in the first memory is generated by the controller of the second memory. After the second memory stores the backup data, the controller of the second memory generates the corresponding file location description information according to the storage location of the backup data stored in the second memory, and feeds the file location description information back to the controller of the first memory.

[0111] Furthermore, in an actual application scenario, for the implementation of step 150, it can be determined whether to initiate an application recovery request based on actual application requirements.

[0112] For example, in an embodiment of the present application, when the application execution file to be executed has been deleted in the first memory, an application recovery request is initiated to restore the application execution file according to the saved backup. Specifically:

[0113] When there is an application running request, determining an application to be run corresponding to the application running request;

[0114] Determine the storage location of the application execution file corresponding to the application to be run;

[0115] When the application execution file corresponding to the application to be run is not stored in the first memory, and the backup data of the application execution file corresponding to the application to be run is stored in the second memory, an application recovery request for the application to be run is initiated.

[0116] Specifically, in one embodiment of the present application, file status description information is saved in the first memory, and the file status description information is used to record whether the application execution file whose backup data has been saved in the second memory is saved in the first memory. In this way, the storage location of the application execution file corresponding to the application to be run can be determined by reading the file status description information.

[0117] For another example, in an embodiment of the present application, after the application execution file is deleted from the first memory, when there is free space in the first memory, an application recovery request is initiated for the application corresponding to the deleted application execution file.

[0118] Specifically, when there are multiple recoverable applications, the backup of the application execution file with the highest execution probability can be restored, so that there is no need to wait for the backup to be restored when the application execution file needs to be executed later.

[0119] Specific:

[0120] When there is free space in the first memory, an application recovery request for the application execution file A is initiated, wherein:

[0121] The application execution file A is the application execution file with the highest execution probability among the application execution files that are not stored in the first memory but are stored in the second memory.

[0122] Furthermore, in an implementation of step 130, the backup data of the application execution file stored in the second memory is the original data of the application execution file.

[0123] Furthermore, to improve data security, in one implementation of step 130, the backup data of the application execution file stored in the second memory is data generated after encryption and integrity signing operations are performed on the application execution file.

[0124] Specifically, in step 130, the application execution file is first encrypted and integrity signed to generate backup data, and then the backup data is copied to the second memory. Further, when restoring the backup, the encrypted and integrity signed backup data is copied from the second memory to the first memory, and then the backup data is decrypted and signature verified to obtain the corresponding application execution file, and finally the application execution file after file decryption and signature verification is saved in the first memory.

[0125] Specifically, in one implementation of step 130, the encryption and signing keys are stored in the first component and cannot be read out. The keys are unique to each first component and are different. This ensures that the application execution file backup data in the second memory cannot be used by attackers to destroy the security capabilities of the first component.

[0126] Furthermore, in actual application scenarios, when deleting the application execution file in the first memory, the corresponding application requirement may not be to release storage space, and it may be that the first component needs to uninstall the application. In this case, if only the application execution file in the first memory is deleted, the application execution file on the second memory will continue to accumulate, thereby generating a large amount of invalid data. Therefore, in one embodiment of the present application, when there is an application uninstall request, the application to be uninstalled corresponding to the application uninstall request is determined; the application execution file corresponding to the application to be uninstalled is deleted from the first memory, and the backup data of the application execution file corresponding to the application to be uninstalled is deleted from the second memory.

[0127] Figure 2 FIG. 1 is a flow chart of an embodiment of a data management method according to the present application. Figure 2 As shown, in one embodiment of the present application, the first component performs the following steps to implement the data management method of one embodiment of the present application:

[0128] Step 200, download application B;

[0129] Step 201, performing a serialization operation on the downloaded application B, generating a serialized application file B and saving it to the internal memory of the first component;

[0130] Step 210, performing a data stripping operation on the application file B, stripping the application execution variables and sensitive information therefrom, and generating independent application execution variable data B, sensitive information data B, and application executable file B;

[0131] Step 211, save the application execution variable data B, the sensitive information data B and the application executable file B to the internal memory, delete the application file B saved in the internal memory of the first component, and save the file status description information of the application executable file B in the internal memory of the first component;

[0132] Step 213, encrypting and integrity signing the application executable file B to generate backup data of the application executable file B;

[0133] Step 214, save the backup data of the application executable file B to the memory of the second component, and save the file location description information of the application executable file B in the internal memory of the first component;

[0134] Step 220, determining whether there is a storage space release request for the internal memory of the first component;

[0135] If not, return to step 220;

[0136] If it exists, execute step 221;

[0137] Step 221, deleting the application executable file B stored in the internal memory of the first component, and updating the file status description information of the application executable file B stored in the internal memory of the first component;

[0138] Step 230, determining whether there is a running request for application B;

[0139] If not present, return to step 230;

[0140] If it exists, execute step 231;

[0141] Step 231, reading the file status description information of the application executable file B stored in the internal memory of the first component to confirm the storage status of the application executable file B;

[0142] Step 233, when the application executable file B is not stored in the internal memory of the first component, read the file location description information of the application executable file B stored in the internal memory of the first component, and locate the backup data of the application executable file B in the memory of the second component;

[0143] Step 234, copying the backup data of the application executable file B in the memory of the second component to the first component;

[0144] Step 235, decrypting and signature-verifying the copied backup data to obtain the application executable file B;

[0145] Step 236: Save the application executable file B in the internal memory of the first component.

[0146] It is to be understood that some or all of the steps or operations in the above embodiments are merely examples, and the present application embodiments may also perform other operations or variations of various operations. In addition, the various steps may be performed in different orders presented in the above embodiments, and it is possible that not all of the operations in the above embodiments need to be performed.

[0147] Furthermore, based on the data management method proposed in one embodiment of the present application, one embodiment of the present application also proposes a data management device. Figure 3 FIG. 1 is a structural diagram of an embodiment of a data management device according to the present application. In an embodiment of the present application, Figure 3 As shown, in one embodiment of the present application, the data management device 300 includes:

[0148] The data stripping module 310 is used to strip the application state data from the application file stored in the first memory, and generate an application execution file according to the remaining part of the file after the application state data is stripped from the application file, wherein: the first memory is an internal memory of the first component; the first component is a component in the device that can independently load the application, and the first component can implement the application function by running the application file; the application state data includes application execution variables and sensitive information related to data security; combined with the application state data, the first component can implement the application function by running the application execution file;

[0149] The data management module 320 is used to:

[0150] Saving the application execution file and the application state data in the first memory, and deleting the application file in the first memory;

[0151] storing backup data of the application execution file in a second memory, wherein the second memory is a memory of a second component, and the first component and the second component belong to the same device;

[0152] When there is a storage space release request for the first memory, the application execution file stored in the first memory is deleted.

[0153] Furthermore, in a feasible implementation, the data management module 320 is further configured to:

[0154] When there is an application recovery request, determining an application to be recovered corresponding to the application recovery request;

[0155] Confirming the backup data corresponding to the application to be restored in the second storage;

[0156] The application execution file corresponding to the application to be restored is acquired according to the backup data corresponding to the application to be restored, and the application execution file corresponding to the application to be restored is copied to the first memory.

[0157] Figure 3 The device provided by an embodiment of the present application shown can be used to perform Figure 1 The technical solution of the embodiment of the present application shown, its implementation principle and technical effect can be further referred to the relevant description in the method embodiment.

[0158] In the description of the embodiments of the present application, for the convenience of description, the device is described by being divided into various modules / units according to their functions. The division of each module / unit is merely a division of logical functions. When implementing the embodiments of the present application, the functions of each module / unit can be implemented in the same or one or more software and / or hardware.

[0159] The embodiments described in this application are described with reference to the flowcharts and / or block diagrams of the methods, devices (apparatus), and computer program products according to the embodiments of the application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0160] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0161] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0162] Based on the above analysis and description, according to the method embodiment and the device embodiment of the present application, an embodiment of the present application further proposes an electronic component, which includes a first memory and a first processor, wherein:

[0163] The electronic component may be mounted on a terminal device including a second memory;

[0164] When the electronic component loads an application, the first memory of the electronic component is used to store an application file corresponding to the application;

[0165] The first memory of the electronic component is also used to store a first computer program instruction. When the first computer program instruction is executed by the first processor, the electronic component is triggered to implement the following steps: Figure 1 Method steps of the illustrated embodiment.

[0166] Furthermore, an embodiment of the present application also provides a terminal device. The terminal device includes a second memory and a second processor, wherein:

[0167] The terminal device may be installed with an electronic component as proposed in the embodiment of the present application, the electronic component including a first memory and a first processor;

[0168] The second memory of the terminal device is used to store backup data of the application execution file from the electronic component proposed in the embodiment of the present application;

[0169] The second memory of the terminal device is also used to store a second computer program instruction. When the second computer program instruction is executed by the second processor of the terminal device, the terminal device is triggered to respond to the request of the electronic component and / or control the electronic component so that the electronic component implements the following Figure 1 Method steps of the illustrated embodiment.

[0170] Furthermore, in an application scenario, the electronic component is a security element, and the memory of the main processor of the terminal device in which the security element is installed is the second memory. An embodiment of the present application provides a system for expanding the storage capacity of the security element through the non-volatile memory of the main processor. The system includes a terminal device with a security element installed, and the terminal device includes a main processor, and there is a data interaction path between the main processor and the security element. The system uses the large storage space of the main processor to securely back up and store application execution files that do not contain sensitive information and application execution variables in the security element, so that when the storage space of the security element is insufficient, some application execution files can be temporarily removed to achieve the purpose of storing more applications and data in the security element with limited resources.

[0171] Figure 4 FIG. 1 is a block diagram of a terminal device according to an embodiment of the present application. In an embodiment of the present application, Figure 4 As shown, the terminal device includes a main processor 400 and an electronic component 410. There is a data exchange path between the main processor 400 and the electronic component 410, and the main processor 400 and the electronic component 410 have data exchange capabilities. The main processor 400 and the electronic component 410 each have their own storage area.

[0172] Specifically, the main processor 400 can be an application processing chip, which is a resource-rich chip with large memory resources. The electronic component 410 can be a security element, specifically, it can be an embedded security element (eSE), or a subscriber identity module (Subscriber Identity Module, SIM) card or a universal integrated circuit card (Universal Integrated Circuit Card, UICC) card. The security element 310 can comply with relevant specifications such as ISO / IEC 7816 specification, Java Card specification, and Global Platform Card specification.

[0173] In actual application scenarios, the number of connection channels between the main processor 300 and the security element 310 is not limited to one. The connection form between the main processor 400 and the electronic component 410 is not limited to direct connection, and can also be indirectly connected through a third-party module, for example, through a near field communication (NFC) chip. The communication interface protocol between the main processor and the security element is not limited to a specific interface protocol, such as SPI, I2C, UART, 7816, etc. In one embodiment, there is only one connection path between the main processor 400 and the electronic component 410, and the main processor 400 and the electronic component 410 are directly connected via an SPI interface. In another embodiment, the main processor 400 and the electronic component 410 have two connection paths, one path is used to transmit data between the main processor 400 and the electronic component 410; the other path is used for the electronic component 410 to send an active signal to the main processor 400.

[0174] The main processor 400 includes an electronic component access module 401 and a backup management module 402. In one embodiment, the electronic component access module 401 and the backup management module 402 run on the main processor 400. They can exist in the form of a secure element driver running in Linux or a trusted application in a trusted execution environment.

[0175] The electronic component access module 401 is used to access the electronic component 410 and perform data transmission through the data interaction path between the main processor 400 and the electronic component 410. In one embodiment, the electronic component access module 401 sends an instruction in the application protocol data unit (APDU) format defined in the ISO / IEC 7816-4 specification to access the electronic component 410. In another embodiment, the electronic component access module 401 may also use a custom data transmission protocol.

[0176] The backup management module 402 is used to store the application execution file exported from the electronic component 410 in the storage area of ​​the main processor 400. The backup data of the application execution file stored in the storage area of ​​the main processor 400 all correspond to a file location description information, and the file location description information is generated by the backup management module 402 of the main processor 400 and stored in the electronic component 410. The electronic component 410 can determine the storage location and occupied space size of the backup data in the storage area of ​​the main processor 400 based on the file location description information. In the present embodiment, the file location description information is 8 bytes, which is used to record the file identifier and offset of the stored backup data. In other embodiments, the file location description information can also be defined by other methods.

[0177] The electronic component 410 includes a file management application module 411 , a file preparation module 412 , a file encryption and decryption module 413 , a file migration module 414 , and a file recovery module 415 .

[0178] The file management application module 411 is a selectable application in the electronic component 410, and is used to establish a connection with the electronic component access module 401 of the main processor 400, receive data from the electronic component access module 401 in the main processor 400, and organize the returned response data. In one embodiment, the file management application module 411 is a security application that can be selected through a SELECT APDU.

[0179] The file preparation module 412 performs a data stripping operation on the application file in the electronic component 410 to generate an application execution file and application status data. In one embodiment, the application file stored in the storage area of ​​the electronic component 410 is a CAP file that complies with the Java Card standard and is composed of several components. The storage form of the application file is a block of continuously stored binary data after the CAP file is serialized. The file preparation module 412 strips the application status data from the binary data after the CAP file is serialized to leave the remaining application execution data, and the application execution data is also a block of continuously stored binary data.

[0180] The file encryption and decryption module 413 is used to encrypt and sign the application execution file to generate backup data, so that the backup data finally stored in the storage area of ​​the main processor 400 is encrypted and signed data.

[0181] The file encryption and decryption module 413 is also used to verify and decrypt the encrypted and signed backup data when it is imported from the main processor 400 storage area into the electronic component 410 to generate an application execution file. The encryption and signature keys exist in the electronic component 410 and cannot be read out. Encryption and signature use symmetric cryptographic algorithms, and the keys are unique to each security element and are different. In one embodiment, the hash algorithm SHA2 and the symmetric cryptographic algorithm AES are used.

[0182] The file migration module 414, when there is a storage space release request, removes (deletes) one or more application execution files from the storage area of ​​the electronic component 410 to release the storage space they occupy. In addition, the file status description information of each application execution file is recorded, that is, whether the application execution file exists in the storage area of ​​the electronic component 410. In one embodiment, when the internal storage space of the security element is sufficient (the available storage space is greater than or equal to 10% of the total storage space), the storage space release request will not be initiated. The storage space release request is initiated only when the internal storage space of the security element is tight.

[0183] The application execution files corresponding to the applications that can participate in the migration in the electronic component 410 constitute a migratable file set. The migratable file set is a subset of the full set of application execution files in the electronic component 410. The number of application execution files contained in the migratable file set is not less than 2. The scope of the migratable file set can be pre-set or determined later by specific instructions. Only application execution files belonging to the migratable file set will be backed up and stored in the storage area of ​​the main processor 400, and will be temporarily removed from the electronic component 410 when the storage space is released. In one embodiment, the scope of the migratable file set is: only the application execution files corresponding to the security applications managed by the card package application on the main processor 400 belong to the migratable file set.

[0184] When there is an application recovery request, the file recovery module 415 imports one or more backup data from the storage area of ​​the main processor 400 to the storage area of ​​the electronic component 410, decrypts and verifies the signature to generate a corresponding application execution file.

[0185] In one application scenario, Figure 4 The system shown performs the following steps to implement the saving operation of the application execution file:

[0186] The electronic component 410 serializes and saves the downloaded application files as binary data blocks stored continuously;

[0187] The file preparation module 412 of the electronic component 410 strips the application state data from the binary data block of the application file, and generates an application execution file based on the remaining file after the data stripping;

[0188] The electronic component access module 401 accesses the file management application module 411 of the electronic component 410 to obtain the size of the application execution file;

[0189] The backup management module 402 applies for space in the storage area of ​​the main processor 400;

[0190] The electronic component access module 401 performs a series of interactions with the file management application module 411, reads the backup data generated after the application execution file is encrypted and signed from the electronic component 410, and stores the backup data in the storage area of ​​the main processor 400. After the storage is completed, the backup management module 402 generates file location description information;

[0191] The electronic component access module 401 accesses the file management application module 411 of the electronic component 410 and transmits the file location description information to the electronic component 410;

[0192] The electronic component 410 records the file location description information, and the storage of the backup data is completed.

[0193] In one embodiment, the timing of initiating the above-mentioned backup data saving operation is initiated by the electronic component access module 401 of the main processor 400 at a certain moment after the operation of downloading the application is executed on the electronic component 410. Downloading the application is to download the CAP file and install the Java Applet application in the electronic component 410 through a series of APDU instructions according to the GlobalPlatform specification. In another embodiment, the timing of initiating the above-mentioned backup data saving operation can also be determined by the electronic component 410, and the electronic component 410 sends a signal to the main processor 400 to trigger the electronic component access module 401 of the main processor 400 to initiate the process of saving the backup data.

[0194] In one application scenario, Figure 4 The system shown performs the following steps to implement the deletion operation of the backup data:

[0195] The electronic component access module 401 accesses the file management application module 411 of the electronic component 410 to obtain the file location description information corresponding to the application to be uninstalled;

[0196] The backup management module 402 locates the backup data in the storage area of ​​the main processor 400 according to the file location description information, and deletes the backup data stored in the main processor.

[0197] In one embodiment, the timing of initiating the above-mentioned backup data deletion operation is initiated by the electronic component access module 401 of the main processor 400 at a certain moment after the electronic component 410 performs the uninstall application operation. The uninstall application operation of the electronic component 410 is to delete a CAP file or Java Applet application through a series of APDU instructions according to the GlobalPlatform specification. In another embodiment, the timing of initiating the above-mentioned backup data deletion operation can also be determined by the electronic component 410, and the electronic component 410 sends a signal to the main processor 400 to trigger the electronic component access module 401 of the main processor 400 to initiate the process of deleting the backup data.

[0198] In one application scenario, Figure 4 The system shown performs the following steps to free up storage space:

[0199] The file migration module 414 in the electronic component 410 deletes one or more application executable files to release the storage space occupied by them;

[0200] The file migration module 414 in the electronic component 410 updates the file status description information of the application executable file, that is, the application executable file is in an unavailable state in the electronic component 410 .

[0201] In one embodiment, the timing of initiating the above-mentioned storage space release operation is when the internal storage space of the electronic component 410 is tight, the electronic component 410 determines that the space occupied by one or more application executable files needs to be released, and the file migration module 414 of the security element initiates a storage space release request. In another embodiment, the timing of initiating the above-mentioned storage space release operation can also be at any time, when the electronic component access module 401 of the main processor 400 initiates a storage space release request to the electronic component 410.

[0202] In one application scenario, Figure 4 The system shown performs the following steps to achieve recovery of application executable files:

[0203] The electronic component 410 sends the file location description information of the application executable file that needs to be restored to the electronic component access module 401;

[0204] The backup management module 402 imports the backup data of the application executable file into the electronic component 410 according to the file location description information;

[0205] The backup data is decrypted and signed to generate an application executable file, which is stored in the storage area of ​​the electronic component 410 .

[0206] The file migration module 414 of the electronic component 410 updates the file status description information of the application executable file, that is, the application executable file is in an available state in the electronic component 410 .

[0207] In one embodiment, the timing of initiating the recovery operation of the above-mentioned application executable file is determined by the user, or by some subsequent effects brought about by certain operations of the user. The user can be a person who operates a mobile device, or an operator of a remote management server of a security element. When the user decides to restore the image, it will trigger the application program on the main processor to run, and the main processor application program will trigger the image recovery operation. In another alternative embodiment, the timing of initiating the image recovery operation can also be determined by the security element, and the security element sends a signal to the main processor to trigger the main processor's security access module to initiate the process of the image recovery operation.

[0208] In one embodiment, the file status description information of the application executable file is also synchronously saved in the backup management module 402 of the main processor 400. Specifically, the file status description information of the application executable file includes the status information of the Java Applet corresponding to the CAP file belonging to the set of migratable files in the electronic component 410, and is displayed to the user, and the user triggers the recovery process of the application executable file.

[0209] In another embodiment, the electronic component 410 sends a signal to the main processor to initiate the recovery operation process of the application executable file. The backup management module 402 of the main processor 400 does not need to record the file status description information of the application executable file, and the recovery operation of the application executable file can be performed implicitly without being displayed to the user.

[0210] The devices, components, means or modules described in the embodiments of the present application may be implemented by computer chips or entities, or by products with certain functions. Specifically, in one embodiment of the present application, the terminal devices may be: mobile terminals (mobile phones, tablet computers, laptop computers), local terminals (personal / industrial computers), cloud servers and other devices.

[0211] Specifically, the processor of the device, element, or apparatus in the embodiments of the present application may be a central processing unit (CPU), and may further include other types of processors. The processor may have the function of operating one or more software programs, and the software programs may be stored in a storage medium.

[0212] Specifically, the memory of the device, element, or apparatus in the embodiments of the present application may be any computer-readable medium that can be used to carry or store desired program codes in the form of instructions or data structures and can be accessed by a computer.

[0213] Specifically, in an embodiment of the present application, the processor and the memory can be combined into a processing device, more commonly, they are independent components, and the processor is used to execute the program code stored in the memory to implement the method described in the embodiment of the present application. In specific implementation, the memory can also be integrated into the processor, or independent of the processor.

[0214] Furthermore, the devices, apparatuses, modules or units described in the embodiments of the present application may be implemented by computer chips or entities, or by products having certain functions.

[0215] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, devices, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware.

[0216] In the several embodiments provided in the present application, if any function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application.

[0217] Furthermore, the present invention may take the form of a computer program product embodied in one or more computer usable storage mediums having computer usable program code embodied therein.

[0218] Specifically, in one embodiment of the present application, a computer-readable storage medium is further provided, in which a computer program is stored. When the computer program is run on a computer, the computer executes the method provided in the embodiment of the present application.

[0219] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is run on a computer, the computer executes the method provided by the embodiment of the present application.

[0220] It should also be noted that in the embodiments of the present application, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent the existence of A alone, the existence of A and B at the same time, and the existence of B alone. Among them, A and B can be singular or plural. The character " / " generally indicates that the previous and subsequent associated objects are in an "or" relationship. "At least one of the following" and similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b and c can be represented by: a, b, c, a and b, a and c, b and c, or a and b and c, where a, b, c can be single or multiple.

[0221] In the embodiments of the present application, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the presence of other identical elements in the process, method, commodity or device including the element.

[0222] Each embodiment in this application is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0223] The above is only a specific implementation of the present application. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. The protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A data management method, characterized in that: include: Data stripping operation: stripping application state data from an application file stored in a first memory, and generating an application execution file based on the remaining file after stripping the application state data from the application file, wherein: the first memory is an internal memory of a first component; the first component is a component in a device that can independently load an application, and the first component can implement an application function by running the application file; the application state data includes application execution variables and sensitive information related to data security; combined with the application state data, the first component can implement the application function by running the application execution file; Saving the application execution file and the application state data in the first memory, and deleting the application file in the first memory; storing backup data of the application execution file in a second memory, wherein the second memory is a memory of a second component, and the first component and the second component belong to the same device; When there is a storage space release request for the first memory, the application execution file stored in the first memory is deleted.

2. The method according to claim 1, characterized in that The application file is stored in the first memory in the form of serialized data blocks; The application execution file is a data block remaining after the application state data is stripped from the data block of the application file.

3. The method according to claim 1 or 2, characterized in that: Prior to the data stripping operation: Determining whether the application corresponding to the application file is a migratable application of the first component, wherein the migratable application is an application that does not affect the normal operation of the first component after being uninstalled; When the application corresponding to the application file is a migratable application of the first component, the data stripping operation and subsequent operation steps are performed.

4. The method according to claim 1, characterized in that The method further comprises: Saving file status description information in the first memory, where the file status description information is used to record whether the application execution file is saved in the first memory; and / or, The file location description information is saved in the first memory, and the file location description information is used to record the storage location of the backup data in the second memory.

5. The method according to claim 1, characterized in that The backup data of the application execution file is stored in the second memory, wherein: The backup data of the application execution file is the original data of the application execution file; or, The backup data of the application execution file is data generated after encryption and integrity signing operations are performed on the application execution file.

6. The method according to claim 1, characterized in that The method further comprises: When there is an application recovery request, determining an application to be recovered corresponding to the application recovery request; Confirming the backup data corresponding to the application to be restored in the second storage; The application execution file corresponding to the application to be restored is acquired according to the backup data corresponding to the application to be restored, and the application execution file corresponding to the application to be restored is copied to the first memory.

7. The method according to claim 6, characterized in that The method further comprises: When there is an application running request, determining an application to be run corresponding to the application running request; Determine the storage location of the application execution file corresponding to the application to be run; When the application execution file corresponding to the application to be run is not stored in the first memory, and the backup data of the application execution file corresponding to the application to be run is stored in the second memory, an application recovery request for the application to be run is initiated.

8. The method according to claim 6, characterized in that The method further comprises: After the application execution file is deleted from the first memory, when there is free space in the first memory, an application recovery request for the application corresponding to the application execution file is initiated.

9. The method according to claim 1, characterized in that: The method further comprises: When there is an application uninstallation request, determining an application to be uninstalled corresponding to the application uninstallation request; The application execution file corresponding to the application to be uninstalled is deleted from the first memory, and the backup data of the application execution file corresponding to the application to be uninstalled is deleted from the second memory.

10. The method according to claim 1, characterized in that The second memory is a memory of a main processor.

11. A data management device, characterized in that: include: A data stripping module, which is used to strip application state data from an application file stored in a first memory, and generate an application execution file according to the remaining part of the file after the application file is stripped of the application state data, wherein: the first memory is an internal memory of a first component; the first component is a component in a device that can independently load an application, and the first component can implement an application function by running the application file; the application state data includes application execution variables and sensitive information related to data security; combined with the application state data, the first component can implement the application function by running the application execution file; Data management module, which is used to: Saving the application execution file and the application state data in the first memory, and deleting the application file in the first memory; storing backup data of the application execution file in a second memory, wherein the second memory is a memory of a second component, and the first component and the second component belong to the same device; When there is a storage space release request for the first memory, the application execution file stored in the first memory is deleted.

12. An electronic component, characterized in that: The electronic component comprises a first memory and a first processor, wherein: When the electronic component loads an application, the first memory is used to store an application file corresponding to the application; The first memory is further used to store first computer program instructions, which, when executed by the first processor, trigger the electronic component to implement the method steps as claimed in any one of claims 1 to 10.

13. A terminal device, characterized in that: The terminal device includes a second memory and a second processor, wherein: The electronic component as claimed in claim 12 can be installed on the terminal device; The second memory is used to store backup data of the application execution file from the electronic component; The second memory is also used to store second computer program instructions. When the second computer program instructions are executed by the second processor, the terminal device is triggered to respond to the request of the electronic component and / or control the electronic component so that the electronic component implements the method steps as described in any one of claims 1 to 10.

Citation Information

Patent Citations

  • Method, device and system for generating terminal applications

    CN103135979A

  • Safe cleaning method and device for storage space and computer readable storage medium

    CN110851081A

  • Smart home equipment management data recovery method and terminal equipment

    CN111309516A

  • Systems and methods for provisioning computing systems with applications

    US9800647B1