Multi-card storage space sharing method and device, electronic equipment and storage medium
By introducing a multi-card storage space sharing method in terminal devices, the problem of independent isolation of eSE and eSIM chip storage space is solved, and flexible adjustment and sharing of storage space is realized, which eliminates the dispute over storage space control ownership between manufacturers and operators, and improves the user experience.
Patent Information
- Application Number
- CN202510202322.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-24
- Publication Date
- 2025-05-30
AI Technical Summary
In the prior art, the storage spaces of embedded security chips (eSE) and eSIM chips are independent and isolated from each other, and lack a convenient sharing mechanism, resulting in disputes between terminal equipment manufacturers and mobile operators on the ownership of storage space, and the storage space division cannot be flexibly adjusted.
By introducing a multi-card storage space sharing method in the terminal device, multiple rights entities are allowed to issue storage space sharing requests, and through the storage space sharing service interface, flexible adjustment of storage space is achieved, including verification, sending, judgment and adjustment processes, eliminating communication barriers between manufacturers and operators.
It realizes flexible adjustment of storage space between multiple cards, solves the problem of insufficient flexibility and authoritative division of storage space, and improves user experience.
Smart Images

Figure CN120066793A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical fields of storage space sharing and embedded Subscriber Identity Module (eSIM), and particularly to a method, apparatus, electronic device, and storage medium for sharing storage space of multiple cards. Background Art
[0002] In existing technical solutions, an embedded Secure Element (eSE) and an eSIM chip are generally two physically independent chips, or two logically isolated virtual operating systems implemented by software code in the same chip. In these two solutions, the eSE represents the manufacturer of the terminal device (such as a mobile phone manufacturer), and the eSIM represents the mobile operator. Their storage spaces are independent and isolated from each other (for example, the eSE is mainly used in the financial and transportation fields, and the eSIM is mainly used in the field of mobile communication). Their proportion and division weight are set at the time of factory, and there is no convenient sharing mechanism. When the user needs to occupy more storage space due to specific circumstances, there is no convenient and secure channel for it to apply to and refund storage space from the other party. Summary of the Invention
[0003] To solve the above technical problems or at least partially solve the above technical problems, the present disclosure provides a method, apparatus, electronic device, and storage medium for sharing storage space of multiple cards.
[0004] In a first aspect, an embodiment of the present disclosure provides a method for sharing storage space of multiple cards, which is applied to a first Card Operating System (COS), and includes:
[0005] In response to receiving a storage space adjustment request sent by a first application, verifying the storage space adjustment request;
[0006] When the storage space adjustment request passes the verification, sending the storage space adjustment request and first COS information of the first COS to a terminal operating system, and the terminal operating system forwards the storage space adjustment request and the first COS information to a second application;
[0007] In response to receiving a determination result sent by the second application, determining whether to adjust the storage space, where the determination result is obtained by the second application based on the storage space adjustment request and the first COS information;
[0008] When it is determined to adjust the storage space, adjusting the storage space according to the determination result.
[0009] In a second aspect, an embodiment of the present disclosure provides a shared device for a multi-card storage space, which is applied to a first Card Operating System (COS) and includes:
[0010] A verification module, configured to verify the storage space adjustment request in response to receiving a storage space adjustment request sent by a first application.
[0011] A sending module, configured to send the storage space adjustment request and first COS information of the first COS to a terminal operating system when the storage space adjustment request passes the verification, and the terminal operating system forwards the storage space adjustment request and the first COS information to a second application.
[0012] A judgment module, configured to judge whether to adjust the storage space in response to receiving a judgment result sent by the second application, where the judgment result is obtained by the second application based on the storage space adjustment request and the first COS information.
[0013] An adjustment module, configured to adjust the storage space according to the judgment result when it is determined to adjust the storage space.
[0014] In a third aspect, an embodiment of the present disclosure provides an electronic device, which includes: a processor; a memory for storing executable instructions executable by the processor; the processor is configured to read the executable instructions from the memory and execute the executable instructions to implement the multi-card storage space sharing method as described in the first aspect.
[0015] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, which stores a computer program for implementing the multi-card storage space sharing method as described in the first aspect.
[0016] The technical solution provided by the embodiment of the present disclosure has the following advantages compared with the prior art:
[0017] In the multi-card storage space sharing solution provided by the embodiments of the present disclosure, the first COS verifies a storage space adjustment request in response to receiving the storage space adjustment request sent by the first application; in the case where the storage space adjustment request passes the verification, the storage space adjustment request and the first COS information of the first COS are sent to the terminal operating system, and the terminal operating system forwards the storage space adjustment request and the first COS information to the second application; in response to receiving the determination result sent by the second application, it is determined whether to adjust the storage space, where the determination result is obtained by the second application based on the storage space adjustment request and the first COS information; in the case where it is determined to adjust the storage space, the storage space is adjusted according to the determination result. By adopting the solution of the present disclosure, the communication barrier between the terminal device manufacturer and the mobile operator can be effectively eliminated, the flexible adjustment of the storage space between multiple cards can be realized, the storage space sharing can be realized, the problem of inflexible and non-authoritative overall storage space division of the chip can be solved, and the user experience can be improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In combination with the accompanying drawings and with reference to the following specific embodiments, the above and other features, advantages, and aspects of the embodiments of the present disclosure will become more obvious. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic, and the original elements and elements are not necessarily drawn to scale.
[0019] Figure 1 It is a flowchart showing the multi-card storage space sharing method provided by an exemplary embodiment of the present disclosure;
[0020] Figure 2 It is a flowchart showing the multi-card storage space sharing method provided by another exemplary embodiment of the present disclosure;
[0021] Figure 3 It shows the overall structural diagram of the method for realizing the multi-card storage space sharing in an exemplary embodiment of the present disclosure;
[0022] Figure 4 It shows the result diagram of the user application on the eSE applying for the storage space from the eSIM in an exemplary embodiment of the present disclosure;
[0023] Figure 5 It is a structural diagram of the multi-card storage space sharing device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0024] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although some embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. On the contrary, these embodiments are provided to more thoroughly and completely understand the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not used to limit the protection scope of the present disclosure.
[0025] It should be understood that the steps recited in the method embodiments of the present disclosure can be executed in a different order and / or executed in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this regard.
[0026] As used herein, the term "comprising" and its variations are open-ended, i.e., "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0027] It should be noted that the concepts such as "first", "second", etc. mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or their interdependent relationships.
[0028] It should be noted that the modifications of "one" and "multiple" mentioned in the present disclosure are illustrative rather than restrictive. Those skilled in the art should understand that unless clearly stated otherwise in the context, it should be understood as "one or more".
[0029] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only for illustrative purposes and are not used to limit the scope of these messages or information.
[0030] Regarding the problem that when multiple cards are integrated in an electronic device, the storage spaces of the cards are independent and isolated from each other, and their proportion and division weight are set at the time of factory, and there is no convenient sharing mechanism. Currently, in some solutions, it is allowed to dynamically adjust the proportion value of the storage space of the virtual operating system of each card through software code. However, due to the lack of an arbitration mechanism and a determination basis, such dynamic adjustment actions may not have the necessary legitimacy, resulting in disputes between the terminal device manufacturer and the mobile operator regarding the control right of the storage space.
[0031] In view of the above problems, the present disclosure provides a technical solution that allows multiple rights entities (such as the manufacturer of the terminal device, the mobile operator, the end user of the terminal device, etc.) to issue storage space sharing requests, respond to storage space sharing requests, control storage space sharing permissions and quotas, etc. Through the storage space sharing service interface, the Android application package (Android Package Kit, APK), eSE, eSIM, and Near Field Communication (NFC) controller of the terminal device can, through this set of interfaces, issue, respond to, or transfer storage space application and return actions. Among them, the multiple rights entities can be various role users who directly or indirectly participate in the entire life cycle of production, manufacturing, use, and parameter configuration of a composite product such as "eSIM + eSE", including the manufacturer of the terminal device, the mobile operator, the end user of the terminal device, etc. Through this solution, the communication barrier between the manufacturer of the terminal device and the mobile operator can be effectively eliminated, the problem of inflexible and non-authoritative overall storage space division of the chip can be solved, and the user experience can be further improved.
[0032] The following will explain in detail the storage space sharing method, device, electronic device, and storage medium provided by the present disclosure with reference to the accompanying drawings.
[0033] Figure 1 It is a schematic flowchart of the storage space sharing method for multiple cards provided by an exemplary embodiment of the present disclosure. This method can be executed by the storage space sharing device provided by the embodiments of the present disclosure. The device can be implemented in software and / or hardware and can be integrated in an electronic device. The electronic device is a terminal device integrated with multiple cards. Among them, the multiple cards can be multiple physically independent chips or multiple logically isolated virtual operating systems developed on the same chip. This solution can be specifically applied to the first Chip Operating System (COS), and the first COS is the operating system of any one of the cards in the electronic device.
[0034] As Figure 1 shown, the storage space sharing method for multiple cards may include the following steps:
[0035] Step 101, in response to receiving a storage space adjustment request sent by a first application, verify the storage space adjustment request.
[0036] Among them, the first application is a user application (Applet) that needs to adjust the storage space on the first COS. For example, the first application can be a payment application, a transportation card application, etc. on the eSE.
[0037] In this embodiment, when the first application wants to adjust its own storage space, for example, when the first application wants to apply for more storage space, or return the previously borrowed storage space, or request another card to return the storage space it shared before, it can send a storage space adjustment request to the first COS where it is located. It can be understood that for different actions of the first application to apply for and return storage space, the adjustment operation (application or return) carried in the initiated storage space adjustment request is different.
[0038] As an example, the first application can initiate a storage space adjustment request through the Application Programming Interface (API) provided by the storage sharing service, and the first COS where the first application is located can receive this storage space adjustment request. Among them, the storage sharing service is responsible for providing a set of API interfaces (such as an interface named StorageShareService.request(boolean more_or_less, short size)) to the user application to initiate the application and return services for storage space. The specific implementation of this API interface includes the underlying communication interaction process with the terminal device and the NFC controller.
[0039] In this embodiment, after receiving the storage space adjustment request, the first COS can verify the storage space adjustment request. If the verification passes, it proceeds with the subsequent processing flow. If the verification fails, it discards the storage space adjustment request without any processing.
[0040] In an alternative embodiment of the present disclosure, when the first COS verifies the storage space adjustment request, it can obtain the adjustment operation carried in the storage space adjustment request. In the case where the adjustment operation is to return the shared space, it is determined that the storage space adjustment request passes the verification. In this embodiment, if the first application requests to return some or all of the previously applied shared space, it can be determined that the storage space adjustment request passes the verification when it is determined that the adjustment operation carried in the storage space adjustment request is a return operation.
[0041] In an alternative embodiment of the present disclosure, when the first COS verifies the storage space adjustment request, it can obtain the adjustment operation carried in the storage space adjustment request. In the case where the adjustment operation is to apply for the shared storage space of another COS, it can determine whether the storage space adjustment request is legal according to the relevant extension information of the other COS pre-configured at the factory (such as sharing permissions, upper limit value of the shared space quota, and used shared space quota). If it is legal, the verification passes, and the storage space adjustment request and necessary information such as the COS version of the first COS, chip version batch, and Applet AID are reported to the terminal operating system through a pre-established dedicated communication channel (possibly through the NFC controller for transit), and then dispatched by the terminal operating system to the corresponding second application for processing.
[0042] Among them, the above dedicated communication channel is pre-established when it is determined that the storage space sharing service is supported (that is, the sharing permission is to allow sharing). Taking a chip integrated with eSIM and eSE two virtual operating systems as an example, for the terminal operating system, during the boot process (or other appropriate timing), it will read and parse the above extension information in the "eSIM + eSE" product chip of this chip, and determine whether the chip supports the "storage space sharing service". If it supports, it will establish a dedicated communication channel with the "eSIM + eSE" product chip of this chip (which can be a dedicated HCIPipe channel or reuse the existing HCIPipe management channel). The establishment process of this dedicated communication channel can be coordinated by the NFC controller or without passing through the NFC controller (for example, expanding the existing communication interface of the "eSIM + eSE" product chip of this chip and adding a new set of dedicated request / response commands and responses).
[0043] Step 102, when the storage space adjustment request passes the verification, send the storage space adjustment request and the first COS information of the first COS to the terminal operating system, and the terminal operating system forwards the storage space adjustment request and the first COS information to the second application.
[0044] In this embodiment, when the first COS determines that the storage space adjustment request initiated by the first application passes the verification, it can send the storage space adjustment request and its own COS information (such as COS version, chip version batch, application identifier of the first application, etc.) to the terminal operating system.
[0045] As an example, the first COS can send the storage space adjustment request and the first COS information of the first COS to the terminal operating system through the direct connection I / O interface with the terminal operating system.
[0046] As another example, the first COS can forward the storage space adjustment request and the first COS information of the first COS to the terminal operating system through the NFC controller.
[0047] In this embodiment, after receiving the storage space adjustment request and the first COS information of the first COS, the terminal operating system can forward the storage space adjustment request and the first COS information to the second application. Among them, the first application and the second application belong to different cards. The second application is the terminal application to which the first application hopes to apply for or return the shared storage space. The terminal application refers to the application representing the rights entities of the terminal device manufacturer and the mobile operator on the terminal device. For example, if the first application is a user application on the eSE and it applies for shared space from the eSIM, then the second application is the terminal application representing the mobile operator on the terminal device.
[0048] As an example, the application signature of the requested object (i.e., the second application) can be carried in the storage space adjustment request. The terminal operating system can determine the second application based on this application signature, and then forward the storage space adjustment request and the first COS information to the second application.
[0049] As another example, the storage space sharing service of the first COS is responsible for providing the terminal device with read and update interfaces for a set of information such as shared permissions for storage space, application signatures of terminal applications, upper limit values of shared space quotas, and used shared space quotas (i.e., storage sharing parameter call interfaces, which can be configured with reference to the external application access SE application rule file on the current terminal device). The terminal operating system can read the application signatures of the terminal applications belonging to each rights entity included therein through this interface to control the receiving object range of storage space application and return messages, and prevent malicious behaviors such as illegal reading and tampering. Thus, in the scenario where multiple cards are eSE chips and eSIM chips, in this embodiment, the terminal operating system can determine the second application in the following manner: obtain the application signature corresponding to each chip through the storage sharing parameter call interface; determine the target chip to which the first application belongs according to the application identifier of the first application in the first COS information, and the target chip is an eSE chip or an eSIM chip; determine the first application signature corresponding to the target chip from the application signatures according to the target chip; and then determine the second application according to the second application signature other than the first application signature in the application signatures. For example, assuming that the first application is a user application on the eSE chip, the target chip can be determined to be the eSE chip, and the determined second application is the terminal application representing the mobile operator (i.e., the eSIM chip).
[0050] Step 103: In response to receiving the determination result sent by the second application, determine whether to adjust the storage space, where the determination result is obtained by the second application based on the storage space adjustment request and the first COS information.
[0051] In this embodiment, the terminal application representing the rights entities such as the manufacturer of the terminal device and the mobile operator embeds the corresponding processing logic code during development. When receiving requests such as space application and return and COS information, it will execute according to its own processing logic. Thus, after the second application receives the storage space adjustment request and the first COS information, it will, according to the processing logic embedded during its development, make a determination based on data such as the COS version, chip version batch, application identifier of the first application, user identity information, chip model batch information, and the size of the applied or released (returned) storage space included in the storage space adjustment request and the first COS information, and directly return the determination result to the first COS, or return it to the first COS after relaying through the NFC controller.
[0052] It can be understood that the processing logic codes embedded in the terminal applications of different rights entities can be the same or different, and the relevant information involved in the determination may also be different, which is specifically designed according to the requirements of each rights entity. The present disclosure does not limit the specific processing logic of each terminal application.
[0053] Step 104, in the case of determining to adjust the storage space, adjust the storage space according to the determination result.
[0054] In this embodiment, after the first COS receives the determination result sent by the second application, it can determine whether to adjust the storage space according to the determination result. If it is determined to adjust the storage space, the storage space is adjusted according to the determination result to implement the application or release of the storage space.
[0055] As an example, after receiving the determination result, the first COS can compare information such as the application signature of the terminal application and the size of the storage space allowed to be shared this time included therein with information such as the sharing permissions, the upper limit value of the shared space quota, and the used shared space quota stored in the first COS to verify the legality and feasibility of the determination result. When it is comprehensively verified to determine to adjust the storage space, implement the corresponding storage space adjustment action to adjust the storage space division ratio between the cards, update the corresponding information values after the adjustment, and record relevant diaries for future reference. Additionally, optionally, after the adjustment is completed, the first application can query and confirm whether the storage space has been adjusted accordingly through the original standard library API of the first COS.
[0056] The method for sharing the storage space of multiple cards provided by the embodiments of the present disclosure. The first COS verifies the storage space adjustment request in response to receiving the storage space adjustment request sent by the first application. When the storage space adjustment request passes the verification, the first COS sends the storage space adjustment request and the first COS information of the first COS to the terminal operating system, and the terminal operating system forwards the storage space adjustment request and the first COS information to the second application. In response to receiving the determination result sent by the second application, it is determined whether to adjust the storage space, where the determination result is obtained by the second application based on the storage space adjustment request and the first COS information. When it is determined to adjust the storage space, the storage space is adjusted according to the determination result. By adopting the solution of the present disclosure, the communication barrier between the terminal device manufacturer and the mobile operator can be effectively eliminated, the flexible adjustment of the storage space between multiple cards can be realized, the storage space sharing can be achieved, the problem that the overall storage space division of the chip is not flexible enough and lacks authority can be solved, and the user experience can be improved.
[0057] In an alternative embodiment of the present disclosure, in order to ensure unnecessary interaction operations when the first application applies for storage space, the first COS can first verify the storage space adjustment request according to the storage space sharing information. If the shared storage space is insufficient, the storage space adjustment request will not be sent to the terminal operating system, thus saving unnecessary interaction processes. Therefore, for the scenario where the first application applies for storage space, the first COS's verification of the storage space adjustment request may include the following steps:
[0058] Step 201, when the adjustment operation carried in the storage space adjustment request is to apply for a shared space, obtain the storage space sharing information of the application to be shared through the storage sharing parameter call interface. The storage space sharing information includes sharing permissions, the upper limit value of the shared space quota, and the used shared space quota.
[0059] In this embodiment, when the first COS verifies the storage space adjustment request, it can obtain the adjustment operation carried in the storage space adjustment request. When the adjustment operation is to apply for a shared space, obtain the storage space sharing information of the application to be shared through the storage sharing parameter call interface. The storage space sharing information includes sharing permissions, the upper limit value of the shared space quota, and the used shared space quota.
[0060] Among them, when a first application applies for storage space from a certain card, the storage space adjustment request may include the application signature of the terminal application representing the right entity corresponding to the applied card. This terminal application is the application to be shared, that is, the second application in the foregoing embodiment. That is to say, the application to be shared is the terminal application to which the first application hopes to apply for sharing storage space. For example, if the first application is a user application on the eSE and it applies to the eSIM for sharing space, the application to be shared is the application representing the mobile operator on the terminal device.
[0061] In this embodiment, the storage space sharing information of each terminal application can be provided by right entities such as the manufacturer of the terminal device and the mobile operator to the chip manufacturer during production and manufacturing, and embedded and stored in the COS in advance. It can also be updated and adjusted as needed when the corresponding cooperation contract is signed, pre-configured when the terminal device or chip leaves the factory, and supports updating according to the sharing situation of the shared space. The sharing permission is used to indicate whether the corresponding terminal application allows storage space sharing. Only the terminal applications that allow sharing will share the storage space with other applications; the upper limit value of the shared space quota refers to the size of the maximum storage space allowed to be shared by the corresponding terminal application, such as 2M; the used shared space quota refers to the size of the storage space that has been shared in the maximum storage space allowed to be shared in the corresponding terminal application, and the used shared space quota is not greater than the upper limit value of the shared space quota.
[0062] Exemplarily, it is possible to expand the existing external application access SE application rule file, and expand and add information such as the sharing permission of the storage space, the application signature of the terminal application corresponding to each card, the upper limit value of the shared space quota, and the used shared space quota therein, so as to inform the terminal operating system and integrate the support ability of the chip product integrating multiple cards for the storage space sharing service.
[0063] Step 202, determine whether the sharing permission is to allow sharing.
[0064] In this embodiment, after the first COS obtains the storage space sharing information of the application to be shared, it can first determine whether the application to be shared allows sharing its storage space according to the sharing permission. If the sharing permission of the application to be shared is to allow sharing, it is determined that the storage space of the application to be shared allows other applications to share, and step 203 is executed; if the sharing permission of the application to be shared is to prohibit sharing, it is determined that the storage space of the application to be shared does not allow other applications to share, and then the first COS determines that the storage space adjustment request verification fails.
[0065] Step 203, in the case where the sharing permission is to allow sharing, obtain the quota difference between the used shared space quota and the upper limit value of the shared space quota.
[0066] In this embodiment, when the sharing permission is set to allow sharing, the first COS further calculates the difference between the used shared space quota of the application to be shared and the upper limit value of the shared space quota. This difference is the remaining storage space that can be shared with other applications by the application to be shared.
[0067] Step 204: When the difference is not less than the adjusted space quota carried in the storage space adjustment request, it is determined that the storage space adjustment request passes the verification.
[0068] In this embodiment, after the first COS calculates the difference, it can compare the difference with the adjusted space quota carried in the storage space adjustment request. If the difference is less than the adjusted space quota, it means that the remaining storage space that can be shared with other applications by the application to be shared is insufficient and cannot meet the storage space quota applied by the first application. Then, it is determined that the storage space adjustment request fails the verification. If the difference is not less than the adjusted space quota, it means that the remaining storage space that can be shared with other applications by the application to be shared can meet the storage space quota applied by the first application. Then, it is determined that the storage space adjustment request passes the verification.
[0069] Further, based on Figure 2 the embodiment shown, the determination result received by the first COS may include the target application signature corresponding to the second application and the allowed shared storage space quota, where the allowed shared storage space quota is not greater than the remaining storage space that can be shared with other applications by the application to be shared. When the first COS determines whether to adjust the storage space, it can obtain the application signature corresponding to each card through the storage sharing parameter call interface. When the application signature includes the target application signature, it is determined to adjust the storage space. Then, when adjusting the storage space according to the determination result, the storage space of the first COS can be increased by the storage space quota. Thus, the application for storage space from the other card is completed.
[0070] Figure 3 FIG. shows the overall structural diagram of a method for implementing shared storage space of multiple cards according to an exemplary embodiment of the present disclosure. Figure 3 In this example, the terminal device is a mobile phone, and an eSIM chip and an eSE chip are integrated on the same chip. As shown in Figure 3As shown, the card operating system (COS) included in the eSIM and eSE supports a storage space sharing service. The storage space sharing service is pre-set at the time of chip factory shipment, with the default setting being enabled, and it supports users to select to enable or disable the service according to their needs. After injecting storage space sharing information (including sharing permissions, mobile application signatures, upper limits of storage space sharing quotas, used sharing quotas, etc.) into the storage space, the storage space sharing service is automatically activated and starts to serve the eSIM user application or the eSE user application, acting as a communication intermediary between the eSIM user application or the eSE user application and the mobile application, and being responsible for making corresponding storage space adjustments according to the judgment results of the mobile application. The storage space sharing service provides a set of API interfaces that can be called by user applications included in the eSIM or eSE to initiate storage space adjustment requests; it also provides a storage sharing parameter call interface for the mobile operating system and the COS to read the above-mentioned sharing permissions, mobile application signatures, upper limits of storage space sharing quotas, used sharing quotas, etc. through this interface. The COS is configured to execute the method for sharing the multi-card storage space of the present disclosure. Taking the user application 3 on the eSE applying for storage space from the eSIM as an example, when the user application 3 needs more storage space and exceeds the size limit currently allocated to the eSE, it initiates a storage space adjustment request through the storage space sharing service. The COS can directly send the storage space adjustment request to the mobile phone or forward it to the mobile phone through the NFC controller. The mobile application on the mobile phone that represents the mobile operator to manage the eSIM storage space approves and returns the judgment result after determination, and the COS adjusts the storage space according to the judgment result. The result of the user application 3 applying for storage space from the eSIM is as Figure 4 shown. Figure 4 In it, the left figure is a schematic diagram of the allocation ratio before the storage space is shared (the size ratios of the eSE and the eSIM are equal), and the right figure is a schematic diagram of the allocation ratio of the storage space after sharing. It can be seen from the right figure that the eSE occupies a larger proportion of the storage space.
[0071] To implement the above embodiments, the present disclosure also provides a device for sharing multi-card storage space.
[0072] Figure 5 It is a schematic structural diagram of a device for sharing multi-card storage space provided by an embodiment of the present disclosure. The device is implemented in a software and / or hardware manner and can be integrated in an electronic device, and is specifically applied to the first card operating system (COS) of the electronic device.
[0073] As Figure 5 shown, the multi-card storage space sharing device 30 may include: a verification module 310, a sending module 320, a judgment module 330, and an adjustment module 340.
[0074] Among them, the verification module 310 is configured to verify the storage space adjustment request in response to receiving the storage space adjustment request sent by the first application;
[0075] The sending module 320 is configured to, when the storage space adjustment request passes the verification, send the storage space adjustment request and the first COS information of the first COS to the terminal operating system, and the terminal operating system forwards the storage space adjustment request and the first COS information to the second application;
[0076] The judgment module 330 is configured to judge whether to adjust the storage space in response to receiving the judgment result sent by the second application, where the judgment result is obtained by the second application based on the storage space adjustment request and the first COS information;
[0077] The adjustment module 340 is configured to adjust the storage space according to the judgment result when it is determined to adjust the storage space.
[0078] Optionally, the verification module 310 is further configured to:
[0079] When the adjustment operation carried in the storage space adjustment request is to apply for a shared space, obtain the storage space sharing information of the application to be shared through the storage sharing parameter call interface, where the storage space sharing information includes sharing permissions, the upper limit value of the shared space quota, and the used shared space quota;
[0080] Judge whether the sharing permission is to allow sharing;
[0081] When the sharing permission is to allow sharing, obtain the quota difference between the used shared space quota and the upper limit value of the shared space quota;
[0082] When the quota difference is not less than the adjusted space quota carried in the storage space adjustment request, determine that the storage space adjustment request passes the verification.
[0083] Further optionally, the judgment result includes the target application signature corresponding to the second application and the allowed shared storage space quota; the judgment module 330 is further configured to obtain the application signature corresponding to each card through the storage sharing parameter call interface, and determine to adjust the storage space when the application signature includes the target application signature; the adjustment module 340 is further configured to increase the storage space of the first COS by the storage space quota according to the storage space quota.
[0084] Optionally, the verification module 310 is further configured to:
[0085] Obtain the adjustment operation carried in the storage space adjustment request;
[0086] When the adjustment operation is to return the shared space, determine that the storage space adjustment request passes the verification.
[0087] Optionally, the multiple cards are an embedded secure element (eSE) chip and an embedded subscriber identity module (eSIM) chip; the terminal operating system determines the second application in the following manner:
[0088] Obtain the application signature corresponding to each chip by invoking the storage sharing parameter interface;
[0089] Determine the target chip to which the first application belongs according to the application identifier of the first application in the first COS information, where the target chip is an eSE chip or an eSIM chip;
[0090] Determine the first application signature corresponding to the target chip from the application signatures according to the target chip;
[0091] Determine the second application according to the second application signature other than the first application signature in the application signatures.
[0092] Optionally, the sending module 320 is further configured to:
[0093] Send the storage space adjustment request and the first COS information of the first COS to the terminal operating system through the direct connection I / O interface with the terminal operating system.
[0094] Optionally, the sending module 320 is further configured to:
[0095] Forward the storage space adjustment request and the first COS information of the first COS to the terminal operating system through the near field communication (NFC) controller.
[0096] The multi-card storage space sharing device provided by the embodiments of the present disclosure can execute the multi-card storage space sharing method provided by the embodiments of the present disclosure, and has corresponding functional modules and beneficial effects for executing the method. The content not described in detail in the device embodiments of the present disclosure can be referred to the description in any method embodiment of the present disclosure.
[0097] The embodiments of the present disclosure further provide a computer program product, including computer programs / instructions, which implement the multi-card storage space sharing method provided by any embodiment of the present disclosure when executed by a processor.
[0098] According to one or more embodiments of the present disclosure, the present disclosure provides an electronic device, including:
[0099] A processor;
[0100] A memory for storing instructions executable by the processor;
[0101] The processor is configured to read the executable instructions from the memory and execute the executable instructions to implement the method for sharing multi-card storage spaces provided in any embodiment of the present disclosure.
[0102] According to one or more embodiments of the present disclosure, the present disclosure provides a computer-readable storage medium storing a computer program for implementing the method for sharing multi-card storage spaces provided in any embodiment of the present disclosure.
[0103] It should be noted that the computer-readable medium in the present disclosure may be a computer-readable signal medium, a computer-readable storage medium, or any combination of the two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, the computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In the present disclosure, the computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer-readable signal medium may also be any computer-readable medium other than the computer-readable storage medium, which can send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0104] The above computer-readable medium may be included in the above electronic device; or may exist separately without being assembled into the electronic device.
[0105] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagram may represent a module, a segment of a program, or a portion of code that contains one or more executable instructions for implementing a specified logical function. It should also be noted that, in some alternative implementations, the functions noted in the blocks may occur in a different order than that noted in the accompanying drawings. For example, two consecutive blocks shown may actually be executed substantially in parallel, or they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented by a dedicated hardware-based system that performs the specified functions or operations, or by a combination of dedicated hardware and computer instructions.
[0106] The units involved in the embodiments described in the present disclosure can be implemented in software or in hardware. In some cases, the name of the unit does not constitute a limitation on the unit itself.
[0107] The functions described above in this document can be performed, at least in part, by one or more hardware logic components. By way of example and not limitation, exemplary types of hardware logic components that may be used include: Field Programmable Gate Arrays (FPGA), Application Specific Integrated Circuits (ASIC), Application Specific Standard Products (ASSP), Systems on Chip (SOC), Complex Programmable Logic Devices (CPLD), and the like.
[0108] In the context of the present disclosure, a machine-readable medium may be a tangible medium that can contain or store a program for use by or in connection with an instruction execution system, apparatus, or device. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a Read-Only Memory (ROM), an Erasable Programmable Read-Only Memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0109] The above description is only a preferred embodiment of the present disclosure and an explanation of the applied technical principles. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by the specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosure concept. For example, the technical solutions formed by mutually replacing the above features with the technical features (but not limited to) having similar functions disclosed in the present disclosure.
[0110] In addition, although the operations are depicted in a particular order, this should not be construed as requiring that the operations be performed in the particular order shown or in sequential order. In certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although a number of specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the present disclosure. Certain features described in the context of separate embodiments may also be implemented in combination in a single embodiment. Conversely, the various features described in the context of a single embodiment may also be implemented separately or in any suitable sub-combination in multiple embodiments.
[0111] Although the subject matter has been described in language specific to structural features and / or methodological logical acts, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.
Claims
1. A method for sharing storage space of multiple cards, characterized in that: Applied to the first card operating system COS, the method comprises: In response to receiving the storage space adjustment request sent by the first application, verifying the storage space adjustment request; If the storage space adjustment request passes verification, sending the storage space adjustment request and the first COS information of the first COS to the terminal operating system, and the terminal operating system forwards the storage space adjustment request and the first COS information to the second application; In response to receiving a determination result sent by the second application, determining whether to perform storage space adjustment, wherein the determination result is obtained by the second application based on the storage space adjustment request and the first COS information; In the case where it is determined to adjust the storage space, the storage space is adjusted according to the determination result.
2. The method according to claim 1, characterized in that The verifying the storage space adjustment request includes: In the case where the adjustment operation carried by the storage space adjustment request is to apply for shared space, the storage space sharing information of the application to be shared is obtained through the storage sharing parameter calling interface, the storage space sharing information includes sharing permissions, the upper limit of the shared space quota, and the used shared space quota; Determine whether the sharing permission allows sharing; When the sharing permission is to allow sharing, obtaining the difference between the used shared space quota and the upper limit of the shared space quota; If the quota difference is not less than the adjustment space quota carried in the storage space adjustment request, it is determined that the storage space adjustment request has passed verification.
3. The method according to claim 2, characterized in that The determination result includes a target application signature corresponding to the second application and a storage space quota allowed to be shared; The determining whether to adjust the storage space includes: Obtain the application signature corresponding to each card through the storage shared parameter calling interface; In a case where the application signature includes the target application signature, determining to adjust the storage space; The adjusting the storage space according to the determination result includes: According to the storage space quota, the storage space of the first COS is increased by the storage space quota.
4. The method according to claim 1, characterized in that: The verifying the storage space adjustment request includes: Obtaining an adjustment operation carried in the storage space adjustment request; In a case where the adjustment operation is to return the shared space, it is determined that the storage space adjustment request has passed verification.
5. The method according to claim 1, characterized in that The multi-card is an embedded security chip eSE chip and an embedded user identity chip eSIM chip; The terminal operating system determines the second application in the following manner: Obtain the application signature corresponding to each chip by calling the storage shared parameter interface; Determine, according to the application identifier of the first application in the first COS information, a target chip to which the first application belongs, the target chip being the eSE chip or the eSIM chip; According to the target chip, determining a first application signature corresponding to the target chip from the application signatures; The second application is determined according to a second application signature in the application signatures other than the first application signature.
6. The method according to any one of claims 1 to 5, characterized in that: The sending the storage space adjustment request and the first COS information of the first COS to the terminal operating system includes: The storage space adjustment request and the first COS information of the first COS are sent to the terminal operating system through a direct I / O interface with the terminal operating system.
7. The method according to any one of claims 1 to 5, characterized in that: The sending the storage space adjustment request and the first COS information of the first COS to the terminal operating system includes: The storage space adjustment request and the first COS information of the first COS are forwarded to the terminal operating system through a near field communication NFC controller.
8. A device for sharing storage space of multiple cards, characterized in that: Applied to the first card operating system COS, the device comprises: a verification module, configured to verify the storage space adjustment request in response to receiving the storage space adjustment request sent by the first application; a sending module, configured to send the storage space adjustment request and the first COS information of the first COS to the terminal operating system if the storage space adjustment request passes verification, and the terminal operating system forwards the storage space adjustment request and the first COS information to the second application; a determination module, configured to determine whether to perform storage space adjustment in response to receiving a determination result sent by the second application, wherein the determination result is obtained by the second application based on the storage space adjustment request and the first COS information; The adjustment module is used to adjust the storage space according to the determination result when it is determined that the storage space adjustment is to be performed.
9. An electronic device, characterized in that: The electronic device comprises: processor; a memory for storing instructions executable by the processor; The processor is used to read the executable instructions from the memory and execute the executable instructions to implement the multi-card storage space sharing method described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and the computer program is used to implement the method for sharing multi-card storage space as described in any one of claims 1 to 7.