Resource configuration method, device, terminal and storage medium

By responding to storage resource updates and mounting configurations while the terminal's operating system is running, the terminal's problem of low SIM card resource configuration efficiency is solved, real-time resource updating and security verification are achieved, and configuration efficiency and flexibility are improved. .

CN112685084BActive Publication Date: 2024-08-27GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011520397.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-21
Publication Date
2024-08-27
Estimated Expiration
2040-12-21

AI Technical Summary

Technical Problem

In the existing technology, the terminal needs to scan and configure SIM card resources during the power-on phase, resulting in low resource configuration flexibility and low efficiency, and making it impossible to update SIM card resources in a timely manner.

Method used

When the operating system of the terminal is running, in response to the update of storage resources in the target storage area, new resources are mounted on the target node, and the updated resources are configured through the target node to avoid restarting the computer.

Benefits of technology

It realizes real-time configuration of SIM card resources by the terminal, improves the flexibility and efficiency of resource configuration, and ensures timely updating and security of resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112685084B
    Figure CN112685084B
Patent Text Reader

Abstract

The present application discloses a resource configuration method, device, terminal and storage medium, and relates to the field of terminal technology. The method is applied to a terminal, and the method comprises: in the state where the operating system of the terminal is running, in response to the first storage resource in the target storage area being updated to the second storage resource, the second storage resource is mounted on a target node, the target node is used to mount the resources stored in the target storage area, and the target storage area includes the resources of the customer identification module SIM card; according to the target node, the second storage resource is configured in the terminal; the present application can avoid the action of restarting the terminal, improve the flexibility of the terminal in configuring the resources of the SIM card, and increase the efficiency of the terminal in configuring the resources of the SIM card.
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 resource configuration method, device, terminal and storage medium. Background Art

[0002] With the continuous development of science and technology, terminals can realize more and more functions. For example, terminals are usually equipped with a subscriber identity module SIM card to realize functions such as voice calls.

[0003] At present, for each function provided in the SIM card, the terminal usually scans the resources of the SIM card during the boot phase, mounts the resources of the SIM card on the system node, and accesses the resources of the SIM card through the system node to achieve loading and configuration of the resources of the SIM card in the terminal. For example, the resources of the SIM card in the terminal include installation package (AndroidPackage, APK) resources. During the terminal boot process, the terminal scans the APK resources involved in the SIM card, mounts the APK resources on the system node, loads the APK resources by accessing the system node, and completes the installation and configuration of the APK resources.

[0004] In the above technical solution, since the terminal needs to complete the scanning of SIM card resources during the booting phase, there is a problem of low flexibility in configuring SIM card resources by the terminal, which reduces the configuration efficiency of SIM card resources by the terminal. Summary of the invention

[0005] The embodiments of the present application provide a resource configuration method, device, terminal and storage medium, which can rescan and configure the resources of the SIM card without restarting the terminal, thereby improving the configuration efficiency of the terminal for the resources of the SIM card. The technical solution is as follows:

[0006] On the one hand, an embodiment of the present application provides a resource configuration method, which is applied to a terminal and includes:

[0007] In a state where the operating system of the terminal is running, in response to the first storage resource in the target storage area being updated to the second storage resource, the second storage resource is mounted on a target node, the target node is used to mount the resources stored in the target storage area, the target storage area including the resources of the subscriber identity module SIM card;

[0008] According to the target node, the second storage resource is configured in the terminal.

[0009] On the other hand, an embodiment of the present application provides a resource configuration device, which is applied to a terminal, and includes:

[0010] a resource mounting module, configured to mount the second storage resource on a target node in response to the first storage resource in the target storage area being updated to the second storage resource when the operating system of the terminal is running, wherein the target node is configured to mount the resources stored in the target storage area, wherein the target storage area includes resources of a subscriber identity module SIM card;

[0011] A resource configuration module is used to configure the second storage resource in the terminal according to the target node.

[0012] On the other hand, an embodiment of the present application provides a terminal, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor implements the resource configuration method as described in one aspect above.

[0013] On the other hand, an embodiment of the present application provides a computer-readable storage medium, which includes instructions. When the computer-readable storage medium is executed on a computer, the computer executes the resource configuration method as described in one aspect above.

[0014] On the other hand, an embodiment of the present application provides a computer program product. When the computer program product is run on a computer, the computer is enabled to execute the resource configuration method as described in one aspect above.

[0015] On the other hand, an embodiment of the present application provides an application publishing platform, which is used to publish a computer program product, wherein when the computer program product runs on a computer, the computer executes the resource configuration method described in one aspect above.

[0016] The technical solution provided by the embodiments of the present application may at least include the following beneficial effects:

[0017] In the state where the operating system of the terminal is running, the terminal can respond to the first storage resource in the target storage area being updated to the second storage resource, and mount the second storage resource on the target node, wherein the target node is used to mount the resources stored in the target storage area, and the target storage area includes the resources of the customer identification module SIM card; thereby, the terminal can configure the updated second storage resource in the target storage area in real time in the terminal through the target node. The action of restarting the terminal is avoided, the flexibility of the terminal in configuring the resources of the SIM card is improved, and the configuration efficiency of the terminal for the resources of the SIM card is increased. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0019] Figure 1 This is a schematic diagram of a scenario architecture in which a terminal downloads resources of a SIM card, which is involved in an exemplary embodiment of the present application;

[0020] Figure 2 is a method flow chart of a resource configuration method provided by an exemplary embodiment of the present application;

[0021] Figure 3 is a method flow chart of a resource configuration method provided by an exemplary embodiment of the present application;

[0022] Figure 4 is a schematic diagram of a terminal structure involved in an exemplary embodiment of the present application;

[0023] Figure 5 An exemplary embodiment of the present application relates to Figure 4 A flowchart of a resource package download module executed by a terminal;

[0024] Figure 6 An exemplary embodiment of the present application relates to Figure 4 A flowchart of a resource package uninstallation module executed by a terminal;

[0025] Figure 7 An exemplary embodiment of the present application relates to Figure 4 A flowchart of a resource package mounting module execution of a terminal;

[0026] Figure 8 An exemplary embodiment of the present application relates to Figure 4 A flowchart of a resource package configuration module executed by a terminal;

[0027] Fig. 9 is a method flow chart of a resource configuration method involved in an exemplary embodiment of the present application;

[0028] Fig.10 is a schematic diagram of a terminal display interface involved in an exemplary embodiment of the present application;

[0029] Fig.11 is a structural block diagram of a resource configuration device provided by an exemplary embodiment of the present application;

[0030] Fig.12 It is a schematic diagram of the structure of a terminal provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0031] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0032] The term "multiple" as used herein refers to two or more than two. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the related objects are in an "or" relationship.

[0033] The solution provided by the present application can be used in real-life scenarios where people use terminals in their daily lives and run applications in the terminals. To facilitate understanding, some terms and application scenarios involved in the embodiments of the present application are briefly introduced below.

[0034] Mounting: refers to the process by which the operating system makes resources stored in a storage device (such as a hard disk, a compact disc read-only memory (CD-ROM) or a shared resource) accessible to users.

[0035] Operating System (OS): An operating system is a collection of system software that manages computer hardware resources, controls the running of other programs, and provides an interactive operating interface for users. An operating system is a component of a computer system, responsible for basic tasks such as managing and configuring memory, determining the priority of system resource supply and demand, controlling input and output devices, operating networks, and managing file systems. There are many types of operating systems, and the operating systems installed on various devices can range from simple to complex, from embedded operating systems for mobile phones to large operating systems for supercomputers. Currently available operating systems include Android, Berkeley Software Distribution (BSD), iPhone Operating System (iOS), Linux operating system, Windows operating system, etc.

[0036] With the development of science and technology, people use terminals more and more frequently in their daily lives. In order to provide users with more software experience, the operating system in the terminal needs to scan and mount various resources, and finally successfully load these resources into the terminal for users to use. Among them, for a terminal with a SIM card inserted, the terminal usually scans and loads the resources of the SIM card during the boot phase, so that the terminal can provide the functions corresponding to the resources of the SIM card after booting.

[0037] In a possible implementation, the resources of the SIM card may also need to be downloaded from the server by the terminal and stored in the terminal. The terminal scans the downloaded resources of the SIM card. Figure 1 , which shows a schematic diagram of a scenario architecture of a terminal downloading resources of a SIM card involved in an exemplary embodiment of the present application. Figure 1 As shown, a terminal 110 and a server 120 are included.

[0038] The terminal 110 is a terminal that can be installed with a SIM card, for example, a mobile phone, a tablet computer, an e-book reader, smart glasses, a smart watch, an MP4 (Moving Picture Experts Group Audio Layer IV) player, a notebook computer, a laptop computer, a desktop computer, etc.

[0039] The server 120 is a server, or a plurality of servers, or a virtualization platform, or a cloud computing service center. Optionally, the server 120 may be a server of the manufacturer of the terminal 110, or a server corresponding to other communication software.

[0040] Optionally, the terminal 110 is connected to the server 120 via a communication network. Optionally, the communication network is a wired network or a wireless network.

[0041] Optionally, the above-mentioned wireless network or wired network uses standard communication technology and / or protocol. The network is usually the Internet, but it can also be any network, including but not limited to any combination of local area network (LAN), metropolitan area network (MAN), wide area network (WAN), mobile, wired or wireless network, private network or virtual private network. In some embodiments, the data exchanged through the network is represented by technology and / or format including Hyper Text Mark-up Language (HTML), Extensible Markup Language (XML), etc. In addition, conventional encryption technologies such as Secure Socket Layer (SSL), Transport Layer Security (TLS), Virtual Private Network (VPN), Internet Protocol Security (IPsec) can also be used to encrypt all or some links. In other embodiments, customized and / or dedicated data communication technology can also be used to replace or supplement the above-mentioned data communication technology.

[0042] Optionally, during the boot process of the terminal 110, it can detect that a SIM card is inserted into itself and scan the resources of the SIM card. If the SIM card indicates that the terminal needs to download the corresponding resource package from the server 120, the terminal 110 can communicate with the server 120 through the communication network, thereby downloading the resources of the SIM card from the server 120 to the local, and completing operations such as scanning and loading the resources of the SIM card. Optionally, when the terminal 110 downloads the above from the server 120 to the local, a part of the local disk can be allocated to the SIM card to store the resources of the SIM card. Among them, the terminal 110 can mount the resources of the SIM card, access and load the resources of the SIM card by accessing the mounted node, and implement the process of installing and configuring the resources of the SIM card in the terminal.

[0043] In the above scheme, since the terminal 110 needs to complete operations such as scanning and mounting the resources of the SIM card during the boot phase, when the operating system is running, if the resource content of the corresponding SIM card on the server side is updated, or the user replaces the SIM card in the terminal, the user needs to restart the terminal and re-mount the SIM card resources. The terminal cannot reload and configure the updated SIM card resources in time, resulting in low efficiency when the terminal reconfigures the resources of the SIM card.

[0044] In order to solve the problem of low efficiency in resource configuration of SIM card in the above-mentioned related technologies and realize timely loading and configuration of resources of SIM card, this application provides a resource configuration method, please refer to Figure 2 , which shows a method flow chart of a resource configuration method provided by an exemplary embodiment of the present application. The method can be applied to the above Figure 1 In the scenario architecture shown in FIG. 1 , the terminal in the scenario architecture executes the execution. Figure 2 As shown, the resource configuration method may include the following steps.

[0045] Step 201, when the operating system of the terminal is running, in response to the first storage resource in the target storage area being updated to the second storage resource, the second storage resource is mounted on the target node, and the target node is used to mount the resources stored in the target storage area, and the target storage area includes the resources of the user identification module SIM card.

[0046] Optionally, the operating system of the terminal may be any one of the above operating systems. The target storage area may be a storage area allocated by the terminal for the SIM card, and the storage area is used to store the resources of the SIM card downloaded from the server side. For example, the terminal divides a part of its own storage area into a SIM card partition, and the SIM card partition is used to store the resources of the inserted SIM card.

[0047] The first storage resource is a resource of the SIM card stored in the target storage area of ​​the terminal, and the second target resource is a resource after the resource of the SIM card stored in the target storage area of ​​the terminal is updated. That is, when the resource of the SIM card stored in the target storage area is updated, the terminal can mount the updated resource of the SIM card in the target storage area to the target node.

[0048] Optionally, the target node may be allocated by the terminal to the target storage area, and the terminal may access the resources stored in the target storage area by accessing the target node. In a possible implementation, there is a unique correspondence between the target node and the target storage area, that is, when the terminal mounts the resources stored in the target storage area, they can be mounted on the target node.

[0049] In this step, when the first storage resource in the target storage area of ​​the terminal is updated to the second storage resource, the terminal can directly mount the second storage resource on the target node corresponding to the target storage area without restarting the operating system while the operating system is running.

[0050] Step 202: configure a second storage resource in the terminal according to the target node.

[0051] Among them, the terminal accesses the updated SIM card resources in the terminal by accessing the target node, and calls, loads, and configures the SIM card resources, so that the SIM card resources can be configured in real time when the terminal's operating system is running. The terminal does not need to restart the terminal, so that the terminal can make the SIM card resources take effect in time.

[0052] In summary, in the present application, when the operating system of the terminal is running, the terminal can respond to the first storage resource in the target storage area being updated to the second storage resource, and mount the second storage resource to the target node, wherein the target node is used to mount the resources stored in the target storage area, and the target storage area includes the resources of the customer identification module SIM card; thereby, the terminal can configure the updated second storage resource in the target storage area in real time in the terminal through the target node. This avoids the action of restarting the terminal, improves the flexibility of the terminal in configuring the resources of the SIM card, and increases the efficiency of the terminal in configuring the resources of the SIM card.

[0053] In a possible implementation, during the process of mounting the second storage resource to the target node, the present application may also perform a security check on the second storage resource to ensure the security of the second storage resource updated in the terminal.

[0054] Please refer to Figure 3 , which shows a method flow chart of a resource configuration method provided by an exemplary embodiment of the present application. The method can be applied to the above Figure 1 In the scenario architecture shown in FIG. 1 , the terminal in the scenario architecture executes the execution. Figure 3 As shown, the resource configuration method may include the following steps.

[0055] Step 301: download the second storage resource corresponding to the SIM card from the server.

[0056] Optionally, the provider of the SIM card may negotiate with the server manufacturer in advance about what functions to provide in the terminal, and store the resource package corresponding to the function in the server. When the terminal scans the SIM card, the resource package corresponding to the function may be downloaded through the server to obtain the corresponding SIM card resources.

[0057] Optionally, the second storage resource may include one or more of an installation package APK, a rights profile, an image profile, and a voice profile. The rights profile may be a special permission provided by the provider to the SIM card user, for example, the SIM card may have the right to participate in a lottery, etc. The image profile may be a special image provided by the provider to the SIM card user, for example, the SIM card may have the function of displaying a certain image, etc. The voice profile may be a special voice provided by the provider to the SIM card user, etc. For example, the SIM card may have the function of playing a certain voice, etc.

[0058] Optionally, the above-mentioned various second storage resources can be set by the server according to the needs of the terminal. For example, when the user purchases a SIM card, he / she explains his / her needs to the provider of the SIM card in advance. The provider of the SIM card can select a corresponding resource package according to the user's needs and set it on the server, so that the resource package in the server is set according to the needs of the terminal.

[0059] In one possible implementation, the provider of the SIM card provides an installation package, which can be stored in a server in advance. When the SIM card terminal knows that it needs to download the installation package from the server, it can download the installation package from the server to the terminal through the above communication network.

[0060] Optionally, in response to inserting a SIM card into the SIM card slot, the terminal may send a resource download request to the server, the resource download request being used to request a download address of a second storage resource; and receive the download address returned by the server; and finally download the second storage resource from the server according to the download address.

[0061] For example, the terminal can monitor the insertion event in the SIM card slot. When the insertion of the SIM card is monitored, it can detect whether the SIM card has a preset resource package on the server side. If there is a preset resource package on the server side, the preset resource package on the server side is downloaded. That is, the terminal sends a resource download request to the server, and obtains the download address of the second storage resource in the server through the resource download request. The server queries whether it has a preset resource package stored corresponding to the SIM card according to the resource download request. If it is found that it has a resource package corresponding to the SIM card, the server can return the address of the resource stored in the SIM card to the terminal, so that the terminal obtains the address of downloading the resource package (second storage resource) corresponding to the SIM card, and downloads the resource package corresponding to the SIM card according to the download address. Optionally, the above-mentioned terminal can also send a resource download request to the server periodically, for example, according to a fixed period, to send a resource download request to the server, so as to actively download the resources of the SIM card from the server side.

[0062] In one possible implementation, the terminal can insert multiple SIM cards and switch between the multiple SIM cards. At this time, after switching the SIM cards, the terminal can also send a resource download request to the server to obtain the corresponding SIM card according to the switched SIM card, so as to download.

[0063] In one possible implementation, the terminal may also receive resource update information sent by the server, the resource update information including the download address of the second storage resource, and the resource update information is used to instruct the terminal to download the second storage resource; and download the second storage resource corresponding to the SIM card from the server according to the resource update information.

[0064] That is, when the resource package of the SIM card stored on the server side is updated, the server can notify the terminal installed with the SIM card to download the updated resource package, so that the terminal can update the resources of the installed SIM card in time. For example, the server pre-stores the first storage resource corresponding to the SIM card. After the terminal installed with the SIM card downloads the first storage resource, if the developer updates the first storage resource corresponding to the SIM card in the server (the updated resource is the second storage resource), the server can send resource update information to the terminal, wherein the resource update information includes the download address of the second storage resource, and instructs the terminal to download the second storage resource through the resource update information. Correspondingly, after receiving the resource update information, the terminal can download the second storage resource from the second download address to the target storage area. It should be noted that this application does not limit how the terminal downloads the pre-set resources in the server corresponding to the SIM card.

[0065] Step 302: When the second storage resource is different from the first storage resource, update the first storage resource to the second storage resource.

[0066] Optionally, the terminal provided by the present application may also detect the first storage resource and the second storage resource, and when the downloaded second storage resource is different from the first storage resource, the first storage resource stored in the target storage area is updated to the second storage resource. That is, the target storage area is used to store the resources of the SIM card downloaded by the terminal, and when the subsequent resources are different from the previous resources, the subsequent resources are replaced with the previous resources in an overwritten storage manner, completing the process of updating the first storage resource in the target storage area to the second storage resource.

[0067] In one possible implementation, when the terminal receives resource update information sent by the server, the terminal may omit the step of detecting whether the resource downloaded this time is different from the resource downloaded last time, and directly update the first storage resource in the target storage area to the second storage resource.

[0068] Step 303: in response to the first storage resource in the target storage area being updated to the second storage resource and the first storage resource being mounted on the target node, the first storage resource is uninstalled from the target node.

[0069] Optionally, after the first storage resource in the target storage area in the terminal is updated to the second storage resource, the terminal may detect whether the first storage resource has been mounted on the target node. If the first resource is mounted, the terminal needs to uninstall the first storage resource on the target node.

[0070] In one possible implementation, when a first storage resource is mounted on a target node, the terminal may scan the target node to obtain a first operating status, where the first operating status is used to indicate whether the first storage resource is running in the operating system; when the first operating status indicates that the first storage resource is running in the operating system, the first storage resource is stopped from running in the operating system; and the first storage resource is uninstalled from the target node.

[0071] Optionally, in this application, the target node can be used to mount the resources in the target storage area. When the resources stored in the target storage area are first storage resources, the target node is used to mount the first storage resources. When the resources stored in the target storage area are second storage resources, the target node is used to mount the second storage resources. Optionally, the target node can also be regarded as a mount directory, under which various resources stored in the target storage area are mounted. Scanning various resources mounted on the target node is to scan various resources under the mount directory.

[0072] In a possible implementation, the first operating state can be represented by a binary value, for example, 0 represents that the first storage resource is not running in the operating system, and 1 represents that the first storage resource is running in the operating system. After the terminal scans the target node, the first operating state of the first storage resource can be obtained. When the first operating state is 1, the first storage resource needs to be stopped from running in the operating system and then uninstalled from the target node.

[0073] That is, when it is detected that there are resources mounted on the target node, the terminal determines whether any of these resources are running by scanning the various resources mounted on the target node. If any resources are running, the terminal can first stop the resource from running, and then uninstall the resource from the target node. For example, resource 1 and resource 2 in the first storage resource are both mounted on the target node. When the first storage resource is updated to the second storage resource, the terminal detects that resource 1 and resource 2 of the first storage resource are mounted on the target node. The terminal can scan resource 1 and resource 2 respectively to check whether resource 1 and resource 2 are running. If resource 2 is running, the first running state that the terminal can obtain is 1. After the terminal stops resource 2 in the running first storage resource from the operating system, it uninstalls all the first storage resources from the target node, thereby ensuring the stability of the terminal's operating system.

[0074] Step 304: Send an uninstallation completion message to the operating system.

[0075] Optionally, after uninstalling the first storage resource from the target node, the terminal may also send an uninstall completion message to the operating system to notify the operating system that the uninstall step has been completed and the operating system may execute the step of mounting the second storage resource to the target node.

[0076] Step 305: Perform a security check on the second storage resource.

[0077] Optionally, before mounting the second storage resource, the terminal may first perform a security check on the second storage resource to check whether the updated second storage resource is complete and whether the source of the updated second storage resource is safe and reliable.

[0078] In a possible implementation manner, the terminal may calculate a hash value of the second storage resource based on the second storage resource; and verify whether the second storage resource is complete based on a size relationship between the hash value and a preset hash value.

[0079] That is, the terminal can calculate the corresponding hash value for the downloaded second storage resource, and judge whether the second storage resource is complete by the size relationship between the hash value and the preset hash value. If the calculated hash value of the second storage resource is equal to the preset hash value, it means that the second storage resource is complete. If the calculated hash value of the second storage resource is not equal to the preset hash value, it means that the second storage resource is incomplete. Among them, the preset hash value can be a hash value selected in advance by the developer from the hash tree. Optionally, in the process of verifying whether the second storage resource is complete, the DM-verity verification method can be used for verification.

[0080] In one possible implementation, the terminal may obtain a resource signature of the second storage resource from the second storage resource, where the resource signature is set by the server of the second storage resource; and verify whether the source of the second storage resource is secure based on the correspondence between the resource signature and the preset signature.

[0081] Optionally, the preset signature is a resource signature pre-stored in a system partition of the terminal, wherein the system partition may be a storage area in the terminal allocated for the operation of an operating system. For example, a server providing the second storage resource may pre-store a preset signature in the system partition of the terminal, and the preset signature may verify whether a certain file originates from the server. If it originates from the server, it may be determined that the source of the file is safe.

[0082] Optionally, after downloading the second storage resource, the terminal can extract the resource signature of the second storage resource, and determine whether the source of the second storage resource is safe through the correspondence between the resource signature and the preset signature. If the resource signature of the second storage resource is the same as the preset signature, it means that the source of the second storage resource is safe. If the resource signature of the second storage resource is different from the preset signature, it means that the source of the second storage resource is unsafe. For example, the terminal obtains the public key of the second storage resource and obtains the public key pre-stored in the system partition, and detects whether the two are the same. If they are the same, it means that the source of the second storage resource is safe. If they are different, it means that the source of the second storage resource is unsafe.

[0083] Optionally, the order of checking whether the second storage resource is complete and checking whether the source of the second storage resource is safe can be swapped. That is, the terminal can first check whether the second storage resource is complete, and then check whether the source of the second storage resource is safe. Alternatively, the terminal can first check whether the source of the second storage resource is safe, and then check whether the second storage resource is complete. Alternatively, the terminal can also perform the two checks at the same time, which is not limited in the embodiments of the present application.

[0084] Optionally, taking the example of first verifying whether the second storage resource is complete in the terminal and then verifying whether the source of the second storage resource is safe, the terminal may verify whether the source of the second storage resource is safe when the second storage resource is complete. If the second storage resource is incomplete, the subsequent step of verifying whether the source of the second storage resource is safe may not be performed, and the second storage resource may be directly deemed to have failed the security check.

[0085] Optionally, the above security check can be completed by an independent daemon process or system init process in the terminal. For example, the terminal provides a callable application programming interface (API) to the application layer in a cross-process manner, and the terminal triggers the security check of the second storage resource by calling the API.

[0086] Step 306: When the second storage resource passes the security check, the second storage resource is mounted on the target node.

[0087] That is, when the second storage resource is complete and the source of the second storage resource is safe, the terminal can mount the second storage resource to the target node by mounting. Optionally, the mounting process can also be completed by the terminal through the API provided above.

[0088] In a possible implementation, when the second storage resource fails the security check, the terminal can prompt the user that the updated second storage resource is unsafe. For example, if the terminal has a display screen, the terminal can prompt the user by displaying a failed interface, and remind the user whether to re-download or contact the developer, etc. Alternatively, if the terminal has a speaker component, the terminal can also play a failed voice through the speaker component to prompt the user, etc.

[0089] Step 307: Access the second storage resource through the target node.

[0090] After the second storage resource is mounted to the target node, the terminal accesses the updated second storage resource through the target node and reads the second storage resource through the target node.

[0091] Step 308: Load the second storage resource in the terminal.

[0092] Optionally, while the terminal operating system is running, the updated second storage resource is loaded so that the second storage resource takes effect in the terminal, and each APK, permission configuration file, image configuration file, voice configuration file, etc. in the second storage resource is promptly configured in the terminal to enable the terminal to use the second storage resource.

[0093] In summary, in the present application, when the operating system of the terminal is running, the terminal can respond to the first storage resource in the target storage area being updated to the second storage resource, and mount the second storage resource to the target node, wherein the target node is used to mount the resources stored in the target storage area, and the target storage area includes the resources of the customer identification module SIM card; thereby, the terminal can configure the updated second storage resource in the target storage area in real time in the terminal through the target node. This avoids the action of restarting the terminal, improves the flexibility of the terminal in configuring the resources of the SIM card, and increases the efficiency of the terminal in configuring the resources of the SIM card.

[0094] In addition, the present application ensures that the second resource mounted in the terminal meets the security requirements of the terminal through security verification of the second storage resource, prevents the second storage resource that does not meet the security verification from damaging the terminal, and improves the security of the terminal's resource mounting process on the SIM card.

[0095] In addition, by exiting the running resource package and then uninstalling the first storage resource, the terminal can be prevented from freezing or freezing when the first storage resource is suddenly uninstalled, thereby improving the stability of the operating system when the terminal remounts the second storage resource.

[0096] Please refer to Figure 4 , which shows a schematic diagram of the structure of a terminal involved in an exemplary embodiment of the present application. Figure 4 As shown, in the terminal device 400 , a resource package downloading module 401 , a resource package unloading module 402 , a resource package mounting module 403 , and a resource package configuration module 404 are included.

[0097] Optionally, the resource package download module 401 can be used to detect whether a SIM card is inserted, and detect whether there is a pre-set resource package in the corresponding server of the SIM card, and execute the process of downloading the resource package of the SIM card from the server. The resource package download module 401 can also be used to detect whether a resource package is mounted on the current target node of the terminal. When a resource package is mounted on the target node, an uninstall instruction is sent to the resource package unloading module 402, and the uninstall instruction can request to uninstall the mounted resource package. The resource package download module 401 is also used to receive an uninstall completion message returned by the resource package unloading module 402, and the uninstall completion message can indicate that the resources on the target node have been uninstalled. And send a mount instruction to the resource package mounting module 403, and the mount instruction can request to mount the resource package downloaded from the server.

[0098] Please refer to Figure 5 , which shows that an exemplary embodiment of the present application involves Figure 4 A flowchart of a resource package download module executed by a terminal. Figure 5As shown, the resource download module can perform the following steps:

[0099] Step 501, detecting whether a SIM card is inserted.

[0100] If a SIM card is inserted, execute step 502 , otherwise continue to execute step 501 .

[0101] Step 502: Check whether there is a preset resource package.

[0102] If there is a preset resource package, execute step 503, otherwise continue to execute step 501.

[0103] Step 503: download the preset resource package.

[0104] Step 504: Detect whether the target node is idle.

[0105] If not idle, execute step 505 , otherwise execute step 506 .

[0106] Step 505: Send an uninstall instruction to the resource package uninstall module.

[0107] Step 506: Send a mount instruction to the resource package mount module.

[0108] Optionally, the descriptions in steps 501 to 506 may refer to the implementations in the above-mentioned steps 301 to 303, which will not be repeated here.

[0109] Optionally, the resource package unloading module 402 can be used to receive the unloading instruction sent by the resource downloading module 401, and unload the resources mounted on the target node according to the unloading instruction. The resource package unloading module 402 is also used to scan the resources mounted on the target node, determine whether the mounted resources are occupied by system resources, and if the mounted resources are occupied by system resources, exit the occupied resources normally, then unload the mounted resources, and return an unloading completion signal to the resource package downloading module.

[0110] Please refer to Figure 6 , which shows that an exemplary embodiment of the present application involves Figure 4 A flowchart of a resource package uninstallation module executed by a terminal. Figure 6 As shown, the resource unloading module can perform the following steps:

[0111] Step 601, receiving an uninstall instruction.

[0112] Step 602: Detect whether the resources mounted on the target node are occupied by system resources.

[0113] If the resources mounted on the target node are occupied by system resources, execute step 603 ; otherwise, execute step 604 .

[0114] Step 603: withdraw the resources mounted on the target node.

[0115] Step 604: Uninstall the resources mounted on the target node.

[0116] Step 605: Send an uninstallation completion message to the resource package download module.

[0117] Optionally, the descriptions in step 601 to step 605 may refer to the implementation methods in the above-mentioned step 303 to step 304, which will not be repeated here.

[0118] Optionally, the resource package mounting module 403 can be used to receive the mounting instruction sent by the resource package downloading module 401, and perform a security check on the downloaded preset resource package, and mount the preset resource package if the check passes. The resource package mounting module 403 is also used to send a configuration instruction to the resource package configuration module 404, and the configuration instruction can request that the resources in the preset resource package be configured to the current terminal.

[0119] Please refer to Figure 7 , which shows that an exemplary embodiment of the present application involves Figure 4 A flowchart of the execution of a resource package mounting module of a terminal. Figure 7 As shown, the resource mounting module can perform the following steps:

[0120] Step 701, receiving a mount instruction.

[0121] Step 702: Check whether the resource package exists.

[0122] If the resource package exists, execute step 703, otherwise return to step 701.

[0123] Step 703: Check whether the resource package is complete.

[0124] If the resource package is complete, execute step 704 , otherwise return to step 701 .

[0125] Step 704: Verify whether the resource package is safe.

[0126] If the resource package is safe, execute step 705 , otherwise return to step 701 .

[0127] Step 705: Mount the resource package.

[0128] Step 706: Send configuration instructions to the resource package configuration module.

[0129] Optionally, the descriptions in steps 701 to 706 may refer to the implementations in the above-mentioned steps 305 to 306, which will not be repeated here.

[0130] Optionally, the resource package configuration module 404 can be used to receive the configuration instructions sent by the resource package mounting module 403, access the resource package through the target node, scan and load the APK, permission configuration file, image configuration file and voice configuration file in the resource package, so that the resources in the resource package take effect in the terminal.

[0131] Please refer to Figure 8 , which shows that an exemplary embodiment of the present application involves Figure 4 A flowchart of a resource package configuration module executed by a terminal. Figure 8 As shown, the resource bundle configuration module can perform the following steps:

[0132] Step 801, receiving a configuration instruction.

[0133] Step 802: Scan and load the resource package through the target node.

[0134] Optionally, the description of step 801 to step 802 may refer to the implementation of the above-mentioned step 307 to step 308, which will not be repeated here.

[0135] In summary, in the present application, when the operating system of the terminal is running, the terminal can respond to the first storage resource in the target storage area being updated to the second storage resource, and mount the second storage resource to the target node, wherein the target node is used to mount the resources stored in the target storage area, and the target storage area includes the resources of the customer identification module SIM card; thereby, the terminal can configure the updated second storage resource in the target storage area in real time in the terminal through the target node. This avoids the action of restarting the terminal, improves the flexibility of the terminal in configuring the resources of the SIM card, and increases the efficiency of the terminal in configuring the resources of the SIM card.

[0136] Next, take the above terminal as a mobile phone, and the server as a server corresponding to the mobile phone manufacturer as an example. Figure 2 and Figure 3 The embodiments shown are described as examples. Fig. 9 , which shows a method flow chart of a resource configuration method involved in an exemplary embodiment of the present application. The method can be applied to the above Figure 1 In the scenario architecture shown in FIG. 1 , the terminal in the scenario architecture executes the execution. Fig. 9 As shown, the resource configuration method may include the following steps.

[0137] Step 901: During the operation of the operating system of the mobile phone, the mobile phone detects that a SIM card is inserted.

[0138] Step 902: Download the target resource package corresponding to the SIM card from the server.

[0139] Optionally, during the operation of the mobile phone operating system, the mobile phone can detect whether the SIM card is inserted. After the SIM card is inserted, the mobile phone can trigger a detection action for the resource package preset in the server by the SIM card. Figure 3 The description of step 301 in the embodiment will not be repeated here.

[0140] Step 903: When the target resource package is different from the resource package corresponding to the previously downloaded SIM card, the resource package corresponding to the previously downloaded SIM card is updated to the target resource package.

[0141] The target resource package may correspond to the second storage resource in the above embodiment, and the resource package corresponding to the SIM card previously downloaded in the mobile phone corresponds to the first storage resource in the above embodiment. After downloading the target resource package, the mobile phone can detect whether the target resource package is the same as the resource package corresponding to the previously downloaded SIM card. If so, the resource package corresponding to the previously downloaded SIM card stored in the target storage area of ​​the mobile phone is updated to the target resource package downloaded this time.

[0142] Step 904: Check whether the target node has mounted thereon a resource package corresponding to the previously downloaded SIM card.

[0143] Optionally, after the storage resources in the above-mentioned target storage area are updated, the mobile phone can detect whether the target node has mounted thereon a resource package corresponding to the previously downloaded SIM card. If the target node has mounted thereon a resource package corresponding to the previously downloaded SIM card, execute step 905, otherwise execute step 907.

[0144] Step 905: Uninstall the previously downloaded resource package corresponding to the SIM card from the target node.

[0145] Step 906: Send an uninstallation completion message to the operating system.

[0146] Step 907: Perform security verification on the downloaded target resource package.

[0147] Step 908: When the downloaded target resource package passes the security check, the second storage resource is mounted on the target node.

[0148] Step 909: Complete the configuration of the target resource package through the target node.

[0149] Optionally, the implementation of steps 905 to 909 may refer to the description of steps 303 to 308 above, which will not be repeated here.

[0150] Please refer to Fig.10 , which shows a schematic diagram of a terminal display interface involved in an exemplary embodiment of the present application. Fig.10As shown, it includes a first display interface 1000 and a second display interface 1001. The first display interface 1000 includes a first icon 1002. The second display interface 1001 includes a second icon 1003 and a third icon 1004.

[0151] The first display interface 1000 is an interface displayed during the operation of the terminal operating system before the terminal executes this solution. Fig. 9 After the steps shown in the method embodiment, an interface such as the second display interface 1001 is displayed in the terminal, where it can be seen that by real-time updating of the resource package of the SIM card, the displayed first icon can be updated to the second icon, and a third icon 1004 is added, thereby achieving timely configuration and improving user experience.

[0152] In summary, in the present application, when the operating system of the terminal is running, the terminal can respond to the first storage resource in the target storage area being updated to the second storage resource, and mount the second storage resource to the target node, wherein the target node is used to mount the resources stored in the target storage area, and the target storage area includes the resources of the customer identification module SIM card; thereby, the terminal can configure the updated second storage resource in the target storage area in real time in the terminal through the target node. This avoids the action of restarting the terminal, improves the flexibility of the terminal in configuring the resources of the SIM card, and increases the efficiency of the terminal in configuring the resources of the SIM card.

[0153] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.

[0154] Please refer to Fig.11 , which shows a structural block diagram of a resource configuration device provided by an exemplary embodiment of the present application. The resource configuration device can be used in a terminal to execute Figure 3 , Figure 4 or Fig. 9 All or part of the steps in the method provided by the embodiment shown are performed by the terminal. The resource configuration device 1100 may include the following modules:

[0155] A resource mounting module 1101, configured to mount the second storage resource on a target node in response to the first storage resource in the target storage area being updated to the second storage resource when the operating system of the terminal is running, wherein the target node is configured to mount the resources stored in the target storage area, wherein the target storage area includes resources of a subscriber identity module SIM card;

[0156] The resource configuration module 1102 is used to configure the second storage resource in the terminal according to the target node.

[0157] Optionally, the resource mounting module 1101 includes a security verification unit and a mounting unit;

[0158] The security verification unit is configured to perform a security verification on the second storage resource in response to the first storage resource in the target storage area being updated to the second storage resource;

[0159] The mounting unit is used to mount the second storage resource to the target node when the second storage resource passes the security check.

[0160] Optionally, the security verification unit includes a calculation subunit, a first verification subunit, an acquisition subunit and a second verification subunit.

[0161] The calculation subunit is used to calculate the hash value of the second storage resource according to the second storage resource;

[0162] The first verification subunit is used to verify whether the second storage resource is complete according to the size relationship between the hash value and a preset hash value;

[0163] The acquisition subunit is used to acquire a resource signature of the second storage resource from the second storage resource, where the resource signature is set by a server of the second storage resource;

[0164] The second verification subunit is used to verify whether the source of the second storage resource is safe according to the corresponding relationship between the resource signature and the preset signature.

[0165] Optionally, the resource configuration module 1102 includes an access unit and a loading unit.

[0166] The access unit is used to access the second storage resource through the target node;

[0167] The loading unit is used to load the second storage resource in the terminal.

[0168] Optionally, the second storage resource includes one or more of an installation package APK, a permission configuration file, an image configuration file, and a voice configuration file.

[0169] Optionally, the second storage resource is set by the server according to the needs of the terminal.

[0170] Optionally, the device further comprises:

[0171] a resource unloading module, configured to, in response to the first storage resource in the target storage area being updated to the second storage resource and before performing a security check on the second storage resource, unload the first storage resource from the target node in response to the first storage resource in the target storage area being updated to the second storage resource and when the first storage resource is mounted on the target node;

[0172] The message sending module is used to send an uninstallation completion message to the operating system.

[0173] Optionally, the resource unloading module includes: a scanning unit, a stopping unit and an unloading unit.

[0174] The scanning unit is configured to scan the target node when the first storage resource is mounted on the target node to obtain a first operating status, where the first operating status is used to indicate whether the first storage resource is running in the operating system;

[0175] The stopping unit is configured to stop the first storage resource from running in the operating system when the first running state indicates that the first storage resource is running in the operating system;

[0176] The unloading unit is used to unload the first storage resource from the target node.

[0177] Optionally, the device further comprises:

[0178] A resource downloading module, configured to download the second storage resource corresponding to the SIM card from a server before mounting the second storage resource on a target node in response to the first storage resource in the target storage area being updated to the second storage resource when the resource mounting module 1101 is running the operating system of the terminal;

[0179] A resource updating module is used to update the first storage resource to the second storage resource when the second storage resource is different from the first storage resource.

[0180] Optionally, the resource download module includes: a request sending unit, an address receiving unit and a first downloading unit,

[0181] The request sending unit is used to send a resource download request to the server in response to the SIM card being inserted into the SIM card slot, wherein the resource download request is used to request a download address of the second storage resource;

[0182] The address receiving unit is used to receive the download address returned by the server;

[0183] The first downloading unit is used to download the second storage resource from the server according to the download address.

[0184] Optionally, the resource download module includes: an information receiving unit and a second downloading unit;

[0185] The information receiving unit is configured to receive resource update information sent by the server, wherein the resource update information includes a download address of the second storage resource, and the resource update information is used to instruct the terminal to download the second storage resource;

[0186] The second downloading unit is configured to download the second storage resource corresponding to the SIM card from the server according to the resource update information.

[0187] In summary, in the present application, when the operating system of the terminal is running, the terminal can respond to the first storage resource in the target storage area being updated to the second storage resource, and mount the second storage resource to the target node, wherein the target node is used to mount the resources stored in the target storage area, and the target storage area includes the resources of the customer identification module SIM card; thereby, the terminal can configure the updated second storage resource in the target storage area in real time in the terminal through the target node. This avoids the action of restarting the terminal, improves the flexibility of the terminal in configuring the resources of the SIM card, and increases the efficiency of the terminal in configuring the resources of the SIM card.

[0188] Please refer to Fig.12 , which shows a schematic diagram of the structure of a terminal provided by an exemplary embodiment of the present application, such as Fig.12 As shown, the terminal includes a processor 1210, a memory 1220, a display component 1230 and a sensor component 1240. The display component 1230 is used to display the interface of the program running in the foreground of the terminal, and the sensor component 1240 is used to collect various sensor data. The memory 1220 stores at least one instruction, which is loaded and executed by the processor 1210 to implement some or all steps executed by the terminal in the resource configuration method described in the above embodiments.

[0189] Optional, above Figure 4 The resource package download module, resource package uninstall module, resource package mount module and resource package configuration module in the actual implementation can be integrated and implemented in Fig.12 In the processor 1210, multiple modules cooperate to complete the above Figures 5 to 8 method steps.

[0190] Optional, above Fig.11 Each module can also be implemented in Fig.12In the processor 1210, some or all of the steps are executed by the processor 1210.

[0191] An embodiment of the present application further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the resource configuration method as described in the above embodiments is implemented.

[0192] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a computer program product.

[0193] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, a computer, a server, or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (Digital Subscriber Line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server, or data center. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a server or a data center that includes one or more available media integrated. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a high-density digital video disc (Digital Video Disc, DVD)), or a semiconductor medium (e.g., a solid-state drive (SSD)), etc.

[0194] It should be noted that: in the resource configuration method provided in the above embodiments, the steps performed by the terminal are only illustrated by the above embodiments. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiments belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0195] Those skilled in the art should be aware that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented with hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable storage medium or transmitted as one or more instructions or codes on a computer-readable storage medium. Computer-readable storage media include computer storage media and communication media, wherein the communication media include any media that facilitates the transmission of a computer program from one place to another. The storage medium can be any available medium that a general or special-purpose computer can access.

[0196] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A resource configuration method, characterized in that: The method is applied to a terminal, and the method includes: When the operating system of the terminal is running, downloading a second storage resource corresponding to the SIM card from the server; the second storage resource includes one or more of an installation package APK, a permission configuration file, an image configuration file, and a voice configuration file; wherein the second storage resource is a resource package corresponding to a function provided in the terminal that is negotiated in advance between the provider of the SIM card and the server manufacturer; In response to the first storage resource in the target storage area being updated to the second storage resource, the first storage resource is unloaded from the target node, and the second storage resource is mounted on the target node, the target node is used to mount the resources stored in the target storage area, the target storage area includes resources of a subscriber identity module SIM card; the target storage area is a storage area divided by the terminal for the SIM card; there is a unique correspondence between the target node and the target storage area; According to the target node, the second storage resource is configured in the terminal.

2. The resource allocation method according to claim 1, characterized in that: The step of mounting the second storage resource to the target node includes: In response to the first storage resource in the target storage area being updated to a second storage resource, performing a security check on the second storage resource; When the second storage resource passes the security check, the second storage resource is mounted on the target node.

3. The resource allocation method according to claim 2, characterized in that: The performing security verification on the second storage resource includes: Calculate a hash value of the second storage resource according to the second storage resource; Verifying whether the second storage resource is complete according to a size relationship between the hash value and a preset hash value; Acquire a resource signature of the second storage resource from the second storage resource, where the resource signature is set by a server of the second storage resource; According to the correspondence between the resource signature and the preset signature, verify whether the source of the second storage resource is safe.

4. The resource allocation method according to claim 1, characterized in that: The configuring the second storage resource in the terminal according to the target node includes: Accessing the second storage resource through the target node; The second storage resource is loaded in the terminal.

5. The resource allocation method according to claim 1, characterized in that: The second storage resource is set by the server according to the demand of the terminal.

6. The resource allocation method according to any one of claims 2 to 4, characterized in that: Before performing a security check on the second storage resource in response to the first storage resource in the target storage area being updated to the second storage resource, the method further includes: Detecting whether the first storage resource is mounted on the target node; In response to the first storage resource in the target storage area being updated to the second storage resource, and the first storage resource being mounted on the target node, performing the step of uninstalling the first storage resource from the target node; An uninstallation completion message is sent to the operating system.

7. The resource allocation method according to claim 6, characterized in that: In response to the first storage resource in the target storage area being updated to the second storage resource and the first storage resource being mounted on the target node, uninstalling the first storage resource from the target node includes: When the first storage resource is mounted on the target node, scanning the target node to obtain a first running status, where the first running status is used to indicate whether the first storage resource is running in the operating system; When the first operation state indicates that the first storage resource is running in the operating system, stopping the first storage resource from running in the operating system; Uninstall the first storage resource from the target node.

8. The resource allocation method according to claim 1, characterized in that: Before mounting the second storage resource to the target node, the method further includes: When the second storage resource is different from the first storage resource, the first storage resource is updated to the second storage resource.

9. The resource allocation method according to claim 8, characterized in that: The downloading the second storage resource corresponding to the SIM card from the server includes: In response to inserting the SIM card into the SIM card slot, sending a resource download request to a server, wherein the resource download request is used to request a download address of the second storage resource; Receiving the download address returned by the server; The second storage resource is downloaded from the server according to the download address.

10. The resource allocation method according to claim 8, characterized in that: The downloading the second storage resource corresponding to the SIM card from the server includes: receiving resource update information sent by the server, wherein the resource update information includes a download address of the second storage resource, and the resource update information is used to instruct the terminal to download the second storage resource; The second storage resource corresponding to the SIM card is downloaded from the server according to the resource update information.

11. A resource allocation device, characterized in that: The device is applied to a terminal, and the device includes: a resource download module, configured to download, from a server, a second storage resource corresponding to the SIM card while the operating system of the terminal is running; the second storage resource comprises one or more of an installation package APK, a rights configuration file, an image configuration file, and a voice configuration file; wherein the second storage resource is a resource package corresponding to a function provided in the terminal that is negotiated in advance between the provider of the SIM card and the server manufacturer; A resource mounting module, configured to mount the second storage resource to the target node in response to the first storage resource in the target storage area being updated to the second storage resource and the first storage resource being uninstalled from the target node, the target node being configured to mount the resources stored in the target storage area, the target storage area including the resources of the subscriber identification module SIM card; the target storage area is a storage area allocated by the terminal for the SIM card; there is a unique correspondence between the target node and the target storage area; A resource configuration module is used to configure the second storage resource in the terminal according to the target node.

12. A terminal, characterized in that: The method comprises a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor implements the resource configuration method according to any one of claims 1 to 10.

13. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the resource configuration method according to any one of claims 1 to 10 is implemented.