CN113568637B - Method and device for updating and managing smart card system package - Google Patents

Method and device for updating and managing smart card system package Download PDF

Info

Publication number
CN113568637B
CN113568637B CN202110810565.6A CN202110810565A CN113568637B CN 113568637 B CN113568637 B CN 113568637B CN 202110810565 A CN202110810565 A CN 202110810565A CN 113568637 B CN113568637 B CN 113568637B
Authority
CN
China
Prior art keywords
system package
mask system
reference table
package
updated
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110810565.6A
Other languages
Chinese (zh)
Other versions
CN113568637A (en
Inventor
张新访
董逢华
周杰
郭腊顺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Tianyu Information Industry Co Ltd
Original Assignee
Wuhan Tianyu Information Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan Tianyu Information Industry Co Ltd filed Critical Wuhan Tianyu Information Industry Co Ltd
Priority to CN202110810565.6A priority Critical patent/CN113568637B/en
Publication of CN113568637A publication Critical patent/CN113568637A/en
Application granted granted Critical
Publication of CN113568637B publication Critical patent/CN113568637B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2228Indexing structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating

Abstract

The application relates to a method and a device for updating and managing a smart card system package, which relate to the technical field of smart cards, and the method comprises the following steps: configuring an intelligent card operating system of an initial version and a mask system package, and configuring a corresponding secondary reference table; establishing a reference relation between information of a mask system package needing to be referenced in an application package and referenced information in the mask system package of the initial version; obtaining a corresponding updated secondary reference table according to the reference relation between the updated information in the updated version mask system package and the reference table items in the secondary reference table; and establishing a reference relation between information needing to reference the updated version mask system package in the application package and referenced information in the updated version mask system package. The application records the quotation relation among the intelligent card operating system, the mask system package and the application package by using the secondary quotation table, and adaptively adjusts the secondary quotation table according to the updating condition, thereby effectively improving the updating efficiency of the intelligent card system.

Description

Method and device for updating and managing smart card system package
Technical Field
The application relates to the technical field of smart cards, in particular to a method and a device for updating and managing a smart card system package.
Background
With the popularization of intelligent terminals and intelligent cards, the intelligent terminals and the intelligent cards have been widely applied to various fields in our society and life. Two types of software packages exist on the Java Card smart Card, namely a mask system package and a download package, wherein the mask system package is a basic function package provided by the Java Card operating system, and provides a basic framework and function services of the Java Card operating system along with the operating system.
In the actual use process, the operation system of the issued smart card is required to be updated, wherein the updating of the mask system package is also included for updating the function of the smart card, the user does not need to change the card to update the card directly, the card is not required to be recovered, changed and issued for the second time, the updating cost can be effectively reduced, personalized sensitive data of the user can be reserved, convenience is brought to the user, and the experience effect is also good.
The application package contains calls to basic functions provided by the system package, such as instantiating objects containing classes in the system package, references to classes in the system package and static public methods, etc. When the application package is downloaded, the class address or the method address called in the byte code is generally subjected to fixed link so as to omit the searching step when the application is executed and optimize the execution speed of the application. However, the link relation is destroyed after the system package is updated, because the address of the referenced class or the address of the method in the updated system package is changed, which leads to the error of the referenced address of the application package on the existing card to the system package, and leads to the failure of the application to use normally.
In order to solve the technical problem, the conventional solution is to reserve a constant pool component and a reference component when an application package is downloaded, and after the system package is updated, the constant pool component and the reference component are used for re-linking all downloaded packages existing on the card, so that the updated package is updated into a correct link relation; and the operating system is required to provide a system package object updating function module for traversing all objects on the card, and the instantiated objects of the classes of the mask system package before updating are linked with the class addresses corresponding to the updated system package again, so that the class addresses quoted by the objects are ensured to be correct, and the updated objects can be normally accessed.
The implementation of the above solution has some drawbacks: the constant pool component and the reference component which are not needed when the application runs need to be stored, and space resources are occupied; in addition, after updating the system package, the link needs to be traversed again on the data on the card, so that the time consumption is long, and the user experience is affected.
Therefore, in order to improve the efficiency of the update work of the smart card system package, a smart card system package update management technology is now provided.
Disclosure of Invention
The application provides a method and a device for updating and managing a smart card system package, which record the quotation relation among a smart card operating system, a mask system package and an application package by utilizing a secondary quotation table, and carry out adaptive adjustment on the secondary quotation table according to updating conditions, so that the updating efficiency of the smart card system is effectively improved on the premise of ensuring that the smart card can work normally.
In a first aspect, the present application provides a method for managing update of a smart card system package, the method comprising the steps of:
configuring an intelligent card operating system of an initial version and a mask system package, and configuring a corresponding secondary reference table, wherein the secondary reference table is used for recording the reference relation between information in the mask system package and the physical address of reference information referenced by the mask system package, and is configured with a corresponding index value;
Downloading an application package on the intelligent card operating system of the initial version, and establishing a reference relation between information of the mask system package of the initial version required to be referenced in the application package and referenced information in the mask system package of the initial version based on a corresponding index value in the secondary reference table;
responding to a mask system package update instruction, obtaining an updated version mask system package, and obtaining a corresponding updated secondary reference table according to the reference relation between updated information in the updated version mask system package and reference table items in the secondary reference table;
Establishing a reference relation between information needing to be referenced in the application package and referenced information in the updated version mask system package based on the corresponding index value in the updated secondary reference table; wherein,
And the reference table entries in the secondary reference table correspond to the index values, the reference table entries in the secondary reference table correspond to the physical addresses of the reference information referenced by the mask system package, and the index values in the secondary reference table are in a preset index value range.
Specifically, the responding to the mask system package update instruction obtains an updated version mask system package, and obtains a corresponding updated secondary reference table according to the reference relation between updated information in the updated version mask system package and the reference table item in the secondary reference table, including the following steps:
Original information corresponding to the mask system package in the updated version mask system package is unchanged in the corresponding relation of the reference table items of the updated secondary reference table, new information corresponding to the updated version mask system package is added on the basis that the reference table items of the updated secondary reference table pass through the secondary reference table, and corresponding index values are configured.
Specifically, based on the index value corresponding to the updated secondary reference table, in the establishing a reference relationship between the information required to reference the updated version mask system package in the application package and the referenced information in the updated version mask system package:
and the application package acquires the physical address of the reference information referenced by the corresponding mask system package through the updated secondary reference table.
Specifically, the smart card operating system is allocated with a logical address for storing the index value of the mask system package or the updated version mask system package.
Specifically, the updated version mask system package is consistent with the mask system package in the logic address in the smart card operating system.
In a second aspect, the present application provides a smart card system package update management apparatus, the apparatus comprising:
the pre-configuration module is used for configuring an intelligent card operating system of an initial version and a mask system package, and configuring a corresponding secondary reference table, wherein the secondary reference table is used for recording the reference relation between information in the mask system package and the physical address of reference information referenced by the mask system package, and is configured with a corresponding index value;
The reference relation construction module is used for downloading an application package on the intelligent card operating system of the initial version, and establishing a reference relation between information of the mask system package which needs to be referenced in the initial version in the application package and referenced information in the mask system package of the initial version based on the corresponding index value in the secondary reference table;
The reference table updating module is used for responding to a mask system package updating instruction, obtaining an updated version mask system package, and obtaining a corresponding updated secondary reference table according to the reference relation between updated information in the updated version mask system package and reference table items in the secondary reference table;
the reference relation updating module is used for establishing a reference relation between information needing to be referenced in the application package and referenced information in the updated version mask system package based on the index value corresponding to the updated secondary reference table; wherein,
And the reference table entries in the secondary reference table correspond to the index values, the reference table entries in the secondary reference table correspond to the physical addresses of the reference information referenced by the mask system package, and the index values in the secondary reference table are in a preset index value range.
Specifically, the original information corresponding to the mask system package in the updated version mask system package is unchanged in the corresponding relation of the reference table items of the updated secondary reference table, the new information corresponding to the updated version mask system package is added on the basis that the reference table items of the updated secondary reference table pass through the secondary reference table, and corresponding index values are configured.
Specifically, based on the index value corresponding to the updated secondary reference table, in the establishing a reference relationship between the information required to reference the updated version mask system package in the application package and the referenced information in the updated version mask system package:
and the application package acquires the physical address of the reference information referenced by the corresponding mask system package through the updated secondary reference table.
Specifically, the smart card operating system is allocated with a logical address for storing the index value of the mask system package or the updated version mask system package.
Specifically, the updated version mask system package is consistent with the mask system package in the logic address in the smart card operating system.
The technical scheme provided by the application has the beneficial effects that:
The application records the quotation relation among the intelligent card operating system, the mask system package and the application package by using the secondary quotation table, and adaptively adjusts the secondary quotation table according to the updating condition, thereby effectively improving the updating efficiency of the intelligent card system on the premise of ensuring the normal operation of the intelligent card.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart illustrating steps of a method for managing update of a smart card system package according to an embodiment of the present application;
Fig. 2 is a schematic diagram of step a101 of a smart card system package update management method according to an embodiment of the present application;
FIG. 3 is a schematic diagram of step A102 of a smart card system package update management method according to an embodiment of the present application;
fig. 4 is a schematic diagram of step a301 of a smart card system package update management method according to an embodiment of the present application;
FIG. 5 is a schematic diagram of step A302 of a smart card system package update management method according to an embodiment of the present application;
FIG. 6 is a schematic diagram of step A303 of a smart card system package update management method according to an embodiment of the present application;
FIG. 7 is a schematic diagram of step A4 of a smart card system package update management method according to an embodiment of the present application;
FIG. 8 is a schematic diagram of step A8 of a smart card system package update management method according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a smart card system package update management device according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
Embodiments of the present application are described in further detail below with reference to the accompanying drawings.
The embodiment of the application provides a method and a device for managing updating of a smart card system package, which record the quotation relationship among a smart card operating system, a mask system package and an application package by utilizing a secondary quotation table, and carry out adaptive adjustment on the secondary quotation table according to updating conditions, so that the updating efficiency of the smart card system is effectively improved on the premise of ensuring that the smart card can work normally.
In order to achieve the technical effects, the general idea of the application is as follows:
A smart card system package update management method, the method comprising the steps of:
S1, configuring an intelligent card operating system of an initial version and a mask system package, and configuring a corresponding secondary reference table, wherein the secondary reference table is used for recording the reference relation between information in the mask system package and the physical address of reference information referenced by the mask system package, and is configured with a corresponding index value;
S2, downloading an application package on the intelligent card operating system of the initial version, and establishing a reference relation between information of the mask system package of the initial version required to be referenced in the application package and referenced information in the mask system package of the initial version based on a corresponding index value in the secondary reference table;
S3, responding to a mask system package update instruction, obtaining an updated version mask system package, and obtaining a corresponding updated secondary reference table according to the reference relation between updated information in the updated version mask system package and the reference table items in the secondary reference table;
s4, establishing a reference relation between information needing to be referenced for updating the version mask system package in the application package and referenced information in the updated version mask system package based on the index value corresponding to the updated secondary reference table; wherein,
The reference table items in the secondary reference table correspond to index values, the reference table items in the secondary reference table correspond to physical addresses of reference information referenced by the mask system package, and the index values in the secondary reference table are in a preset index value range.
Embodiments of the present application are described in further detail below with reference to the accompanying drawings.
In a first aspect, referring to fig. 1 to 8, an embodiment of the present application provides a method for managing update of a smart card system package, the method including the steps of:
S1, configuring an intelligent card operating system of an initial version and a mask system package, and configuring a corresponding secondary reference table, wherein the secondary reference table is used for recording the reference relation between information in the mask system package and the physical address of reference information referenced by the mask system package, and is configured with a corresponding index value;
S2, downloading an application package on the intelligent card operating system of the initial version, and establishing a reference relation between information of the mask system package of the initial version required to be referenced in the application package and referenced information in the mask system package of the initial version based on a corresponding index value in the secondary reference table;
S3, responding to a mask system package update instruction, obtaining an updated version mask system package, and obtaining a corresponding updated secondary reference table according to the reference relation between updated information in the updated version mask system package and the reference table items in the secondary reference table;
s4, establishing a reference relation between information needing to be referenced for updating the version mask system package in the application package and referenced information in the updated version mask system package based on the index value corresponding to the updated secondary reference table; wherein,
The reference table items in the secondary reference table correspond to index values, the reference table items in the secondary reference table correspond to physical addresses of reference information referenced by the mask system package, and the index values in the secondary reference table are in a preset index value range.
In the embodiment of the application, the reference relation among the intelligent card operating system, the mask system package and the application package is recorded by using the secondary reference table, and the secondary reference table is adaptively adjusted according to the updating condition, so that the updating efficiency of the intelligent card system is effectively improved on the premise of ensuring that the intelligent card can work normally.
Here, the secondary reference table is described as including a plurality of reference table entries, each reference table entry corresponds to an index value, and each reference table entry has an association relationship with a logical address of the corresponding reference information;
When the application package needs to call a certain information, a corresponding reference table item is obtained according to the index value, and a logical address corresponding to the reference information is obtained by using the reference table item, so that the call is completed.
The intelligent card system updating management technology corresponding to the embodiment of the application can adapt to the intelligent card in the normal use stage;
If necessary, the system package can be updated, and because the system package belongs to the code space, the code space is actually updated and the data space of the user is not updated, the user space is updated only after the system is updated and the user is required to be linked, and the application package and the data downloaded by the user can not be influenced;
Based on the technology, a constant pool component and an application component are not required to be stored when the application package is downloaded;
in addition, after the system package is updated, the system package can be normally used without being linked again.
Specifically, responding to a mask system package update instruction, obtaining an updated version mask system package, and obtaining a corresponding updated secondary reference table according to the reference relation between updated information in the updated version mask system package and the reference table item in the secondary reference table, wherein the method comprises the following steps:
Original information corresponding to the mask system package in the updated version mask system package is unchanged in the corresponding relation of the reference table items of the updated secondary reference table, new information corresponding to the updated version mask system package is added on the basis that the reference table items of the updated secondary reference table pass through the secondary reference table, and corresponding index values are configured.
Specifically, based on the index value corresponding to the updated secondary reference table, in the establishment of a reference relationship between information of the updated version mask system package to be referenced in the application package and referenced information in the updated version mask system package:
And the application package acquires the physical address of the reference information referenced by the corresponding mask system package by updating the secondary reference table.
Specifically, the smart card operating system is assigned a logical address for storing an index value of the mask system package or the updated version mask system package.
Specifically, the updated version of the mask system package is consistent with the mask system package in the logical address in the smart card operating system.
In the embodiment of the application, based on the core idea of the smart card system package update management method, a specific operation embodiment is provided, and the specific operation flow is as follows:
A1, designing an information index table of an intelligent card operating system and a mask system package;
a2, generating an operating system and mask system package of an initial version, and generating a corresponding secondary reference table;
A3, downloading and processing the application package;
a4, receiving a mask system package updating requirement, manufacturing an updated mask system package, generating a corresponding secondary reference table, keeping the table entry position of the original information reference in the updated mask system package unchanged, and adding the newly added information reference on the basis of the previous version;
a5, initiating a mask system package updating operation, and updating the mask system package and a secondary reference table thereof into a corresponding smart card;
and A6, after updating the mask system package, the normal operation can be realized without other operations, and the application package code already exists on the card.
Specifically, the step A1 includes the following steps:
a101, designing a reserved index value range for the mask system package, wherein the purpose of the reserved index value range is to effectively distinguish the index value range in the mask system package from the reference address between the downloaded CAP package (i.e. application package), and as shown in FIG. 2, the specific mode of the steps is as follows:
reserving a section of enough logical address space range for the mask system package, and storing the mask codes of the actual system package in a code space;
The logical address allocated by the actual user E2 will be allocated from the logical address reserved by the mask;
Assuming that the size of the reserved logical address space of the mask system packet is e2p_base, downloading the packet and applying the logical reference value logic_ref > =e2p_base of the saved data allocation; and the index value index of the data in the mask system packet is < E2P_Base;
in fig. 2, PHYSIC ADDRESS is a physical address, and Logic address is a logical address.
A102, establishing a secondary reference table of various information in various mask system packages according to various information in the mask system packages;
the reference index value in the same kind of information is unique, and the reference index ranges of different kinds of information can be multiplexed;
as shown in fig. 3, a secondary information reference table is established, and the value of each reference table entry is the real address of the referenced information in the mask system package.
The purpose of step a101 is to correctly identify the call to the system package in step a 303.
Specifically, the step A3 includes the following steps:
A301, processing links of the constant pool components;
As shown in fig. 4, the value of constant_info2 in the constant pool is a reference of mask system packet information Info3, the reference information is located to an address Info3 ref of the referenced information in the system packet, then the reference information is searched in the established information reference table of the type, the index Info3 ref index of the information application table is located, and finally the index value of Info3 ref index is updated to the constant pool.
A302, processing secondary links of the reference components;
When the reference component processes, locating operand addresses to be linked through reference addresses in the reference component, storing constant pool index values in the operand addresses, and acquiring the stored reference addresses from the constant pool component according to the constant pool index values;
In the embodiment of the present application, special processing is required according to the range of the reference address, if the range of the reference address is within the range of the index values reserved by the mask system package reserved in step a101, the reference is indicated as the reference of the mask system package information, and the modified operation code is the private extended operation code at this time, and meanwhile, the reference address value stored in the constant pool is linked to the operand address, as shown in fig. 5, and REFERENCE ADDRESS is the reference address in fig. 5.
A303, processing byte codes in the running process;
as shown in fig. 6, when the byte code runs, if the current operation code is a private extension operation code, the following special processing is performed:
when the operation code is privately expanded, the operand is modified into the index value of the secondary reference table of the referenced information when the application package downloads the link, the physical address of the referenced information is firstly obtained in the secondary reference table through the index value, and then the original byte code is executed.
In a second aspect, referring to fig. 9, an embodiment of the present application provides a smart card system package update management apparatus, which is based on the smart card system package update management method mentioned in the first aspect, the apparatus includes:
The pre-configuration module is used for configuring an intelligent card operating system of an initial version and a mask system package, and configuring a corresponding secondary reference table, wherein the secondary reference table is used for recording the reference relation between information in the mask system package and the physical address of reference information referenced by the mask system package, and is configured with a corresponding index value;
The reference relation construction module is used for downloading an application package on the intelligent card operating system of the initial version, and establishing a reference relation between information of the mask system package of the initial version required to be referenced in the application package and referenced information in the mask system package of the initial version based on the corresponding index value in the secondary reference table;
The reference table updating module is used for responding to a mask system package updating instruction, obtaining an updated version mask system package, and obtaining a corresponding updated secondary reference table according to the reference relation between updated information in the updated version mask system package and reference table items in the secondary reference table;
the reference relation updating module is used for establishing a reference relation between information needing to be referenced for updating the version mask system package in the application package and referenced information in the updated version mask system package based on the index value corresponding to the updated secondary reference table; wherein,
The reference table items in the secondary reference table correspond to index values, the reference table items in the secondary reference table correspond to physical addresses of reference information referenced by the mask system package, and the index values in the secondary reference table are in a preset index value range.
In the embodiment of the application, the reference relation among the intelligent card operating system, the mask system package and the application package is recorded by using the secondary reference table, and the secondary reference table is adaptively adjusted according to the updating condition, so that the updating efficiency of the intelligent card system is effectively improved on the premise of ensuring that the intelligent card can work normally.
The intelligent card system updating management technology corresponding to the embodiment of the application can adapt to the intelligent card in the normal use stage;
If necessary, the system package can be updated, and because the system package belongs to the code space, the code space is actually updated and the data space of the user is not updated, the user space is updated only after the system is updated and the user is required to be linked, and the application package and the data downloaded by the user can not be influenced;
Based on the technology, a constant pool component and an application component are not required to be stored when the application package is downloaded;
in addition, after the system package is updated, the system package can be normally used without being linked again.
Specifically, the original information corresponding to the mask system package in the updated version mask system package is unchanged in the corresponding relation of the reference table items of the updated secondary reference table, the new information corresponding to the updated version mask system package is added on the basis that the reference table items of the updated secondary reference table pass through the secondary reference table, and the corresponding index value is configured.
Specifically, based on the index value corresponding to the updated secondary reference table, in the establishment of a reference relationship between information of the updated version mask system package to be referenced in the application package and referenced information in the updated version mask system package:
And the application package acquires the physical address of the reference information referenced by the corresponding mask system package by updating the secondary reference table.
Specifically, the smart card operating system is assigned a logical address for storing an index value of the mask system package or the updated version mask system package.
Specifically, the updated version of the mask system package is consistent with the mask system package in the logical address in the smart card operating system.
In the embodiment of the application, after the updating operation of the mask system package is completed, the intelligent card can maintain the corresponding function of the intelligent card based on the application package.
It should be noted that in the present application, relational terms such as "first" and "second" and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.
The foregoing is merely exemplary of embodiments of the present application to enable those skilled in the art to understand or practice the application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A method for managing updates of a smart card system package, the method comprising the steps of:
configuring an intelligent card operating system of an initial version and a mask system package, and configuring a corresponding secondary reference table, wherein the secondary reference table is used for recording the reference relation between information in the mask system package and the physical address of reference information referenced by the mask system package, and is configured with a corresponding index value;
Downloading an application package on the intelligent card operating system of the initial version, and establishing a reference relation between information of the mask system package of the initial version required to be referenced in the application package and referenced information in the mask system package of the initial version based on a corresponding index value in the secondary reference table;
responding to a mask system package update instruction, obtaining an updated version mask system package, and obtaining a corresponding updated secondary reference table according to the reference relation between updated information in the updated version mask system package and reference table items in the secondary reference table;
Establishing a reference relation between information needing to be referenced in the application package and referenced information in the updated version mask system package based on the corresponding index value in the updated secondary reference table; wherein,
And the reference table entries in the secondary reference table correspond to the index values, the reference table entries in the secondary reference table correspond to the physical addresses of the reference information referenced by the mask system package, and the index values in the secondary reference table are in a preset index value range.
2. The method for managing update of smart card system package according to claim 1, wherein said responding to a mask system package update command obtains an updated version mask system package, and according to a reference relationship between updated information in said updated version mask system package and a reference table entry in said secondary reference table, obtains a corresponding updated secondary reference table, comprising the steps of:
Original information corresponding to the mask system package in the updated version mask system package is unchanged in the corresponding relation of the reference table items of the updated secondary reference table, new information corresponding to the updated version mask system package is added on the basis that the reference table items of the updated secondary reference table pass through the secondary reference table, and corresponding index values are configured.
3. The method for managing update of a smart card system package according to claim 1, wherein, based on the index value corresponding to the updated secondary reference table, a reference relationship is established between information required to reference the updated version mask system package in the application package and the referenced information in the updated version mask system package:
and the application package acquires the physical address of the reference information referenced by the corresponding mask system package through the updated secondary reference table.
4. The smart card system package update management method of claim 1, wherein:
And the intelligent card operating system is distributed with a logic address for storing the index value of the mask system package or the updated version mask system package.
5. The smart card system package update management method of claim 1, wherein:
and the logic address of the updated version mask system package in the intelligent card operating system is consistent with the mask system package.
6. A smart card system package update management apparatus, the apparatus comprising:
the pre-configuration module is used for configuring an intelligent card operating system of an initial version and a mask system package, and configuring a corresponding secondary reference table, wherein the secondary reference table is used for recording the reference relation between information in the mask system package and the physical address of reference information referenced by the mask system package, and is configured with a corresponding index value;
The reference relation construction module is used for downloading an application package on the intelligent card operating system of the initial version, and establishing a reference relation between information of the mask system package which needs to be referenced in the initial version in the application package and referenced information in the mask system package of the initial version based on the corresponding index value in the secondary reference table;
The reference table updating module is used for responding to a mask system package updating instruction, obtaining an updated version mask system package, and obtaining a corresponding updated secondary reference table according to the reference relation between updated information in the updated version mask system package and reference table items in the secondary reference table;
the reference relation updating module is used for establishing a reference relation between information needing to be referenced in the application package and referenced information in the updated version mask system package based on the index value corresponding to the updated secondary reference table; wherein,
And the reference table entries in the secondary reference table correspond to the index values, the reference table entries in the secondary reference table correspond to the physical addresses of the reference information referenced by the mask system package, and the index values in the secondary reference table are in a preset index value range.
7. The smart card system package update management apparatus of claim 6, wherein:
Original information corresponding to the mask system package in the updated version mask system package is unchanged in the corresponding relation of the reference table items of the updated secondary reference table, new information corresponding to the updated version mask system package is added on the basis that the reference table items of the updated secondary reference table pass through the secondary reference table, and corresponding index values are configured.
8. The smart card system package update management apparatus of claim 6, wherein, based on the index value corresponding to the updated secondary reference table, a reference relationship is established between information in the application package that needs to reference the updated version mask system package and the referenced information in the updated version mask system package:
and the application package acquires the physical address of the reference information referenced by the corresponding mask system package through the updated secondary reference table.
9. The smart card system package update management apparatus of claim 6, wherein:
And the intelligent card operating system is distributed with a logic address for storing the index value of the mask system package or the updated version mask system package.
10. The smart card system package update management apparatus of claim 6, wherein:
and the logic address of the updated version mask system package in the intelligent card operating system is consistent with the mask system package.
CN202110810565.6A 2021-07-14 2021-07-14 Method and device for updating and managing smart card system package Active CN113568637B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110810565.6A CN113568637B (en) 2021-07-14 2021-07-14 Method and device for updating and managing smart card system package

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110810565.6A CN113568637B (en) 2021-07-14 2021-07-14 Method and device for updating and managing smart card system package

Publications (2)

Publication Number Publication Date
CN113568637A CN113568637A (en) 2021-10-29
CN113568637B true CN113568637B (en) 2024-05-03

Family

ID=78165359

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110810565.6A Active CN113568637B (en) 2021-07-14 2021-07-14 Method and device for updating and managing smart card system package

Country Status (1)

Country Link
CN (1) CN113568637B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101976211A (en) * 2010-09-26 2011-02-16 北京握奇数据系统有限公司 Method, device and system for replacing function in CAP file
CN102243595A (en) * 2011-08-03 2011-11-16 浙江大学 Method for updating Java Card system component based on memory management unit (MMU) framework
CN102591735A (en) * 2011-12-31 2012-07-18 飞天诚信科技股份有限公司 Method for processing CAP file by intelligent card
CN103268237A (en) * 2013-05-10 2013-08-28 东信和平科技股份有限公司 Patching function extension method and device for mask smart card
WO2016049626A1 (en) * 2014-09-26 2016-03-31 Oracle International Corporation Efficient and intuitive databinding for mobile applications
WO2018032653A1 (en) * 2016-08-18 2018-02-22 北京智芯微电子科技有限公司 Function implementing method and apparatus for java card application
CN107729056A (en) * 2017-10-26 2018-02-23 东信和平科技股份有限公司 The program store method and relevant apparatus of a kind of read-only storage
CN112631722A (en) * 2020-12-24 2021-04-09 北京握奇数据股份有限公司 Byte code instruction set simplifying method and system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101976211A (en) * 2010-09-26 2011-02-16 北京握奇数据系统有限公司 Method, device and system for replacing function in CAP file
CN102243595A (en) * 2011-08-03 2011-11-16 浙江大学 Method for updating Java Card system component based on memory management unit (MMU) framework
CN102591735A (en) * 2011-12-31 2012-07-18 飞天诚信科技股份有限公司 Method for processing CAP file by intelligent card
CN103268237A (en) * 2013-05-10 2013-08-28 东信和平科技股份有限公司 Patching function extension method and device for mask smart card
WO2016049626A1 (en) * 2014-09-26 2016-03-31 Oracle International Corporation Efficient and intuitive databinding for mobile applications
WO2018032653A1 (en) * 2016-08-18 2018-02-22 北京智芯微电子科技有限公司 Function implementing method and apparatus for java card application
CN107729056A (en) * 2017-10-26 2018-02-23 东信和平科技股份有限公司 The program store method and relevant apparatus of a kind of read-only storage
CN112631722A (en) * 2020-12-24 2021-04-09 北京握奇数据股份有限公司 Byte code instruction set simplifying method and system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
双界面智能卡Java虚拟机的设计与实现;彭华;《中国优秀硕士学位论文全文数据库 信息科技辑》(第04期);I138-1859 *
基于ARM平台的Java智能卡虚拟机研究与实现;于晖;《中国优秀硕士学位论文全文数据库 信息科技辑》;20160715(第07期);I137-8 *

Also Published As

Publication number Publication date
CN113568637A (en) 2021-10-29

Similar Documents

Publication Publication Date Title
CN107025559B (en) Service processing method and device
US5758154A (en) Method and system for storing configuration data into a common registry
KR100270916B1 (en) How to add network management system and class dynamically
US20030229769A1 (en) Using short references to access program elements in a large address space
WO2000017747A1 (en) Opimizing symbol table lookups in platform-independent virtual machines
CN104750528A (en) Management method and device for components in Android program
CN106569880B (en) Method and system for dynamically sharing resources between Android applications
CN104750555A (en) Management method and device for progresses in Android program
JP2004530201A (en) Methods for loading and running applications in embedded environments
CN111176791A (en) Cross-virtual machine calling method based on multi-virtual machine blockchain platform
CN106657433B (en) Naming method and device for physical network card in multi-network snap ring environment
CN113568637B (en) Method and device for updating and managing smart card system package
CN108845800B (en) Method, device, equipment and storage medium for realizing component extension function
CN110941443B (en) Method and device for modifying file name in SDK (software development kit) and electronic equipment
CN103677933A (en) Patching method and system for smart card
CN109032612A (en) Interface call method, device and the computer readable storage medium of mixed type application
CN103761118A (en) Intelligent card and method for deploying applications in same
US20030145011A1 (en) Interface between programming languages and method therefor
CN108595292A (en) A kind of optimization method of system, mobile terminal and computer storage media
CN101770508B (en) Data access method in mobile communication terminal and equipment thereof
CN102202129B (en) Method for loading mobile phone operating system
CN1987774A (en) C/C++ module hot plug-in and pull-off method of base version in large scale concurrent on-line trade
CN113127852A (en) SE application management method and device based on chip card and storage medium
CN112596780A (en) Service execution method and device
CN112306710A (en) Service processing system, interface calling method and device

Legal Events

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