CN113568637A - Smart card system package updating management method and device - Google Patents

Smart card system package updating management method and device Download PDF

Info

Publication number
CN113568637A
CN113568637A CN202110810565.6A CN202110810565A CN113568637A CN 113568637 A CN113568637 A CN 113568637A CN 202110810565 A CN202110810565 A CN 202110810565A CN 113568637 A CN113568637 A CN 113568637A
Authority
CN
China
Prior art keywords
mask system
package
reference table
information
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.)
Granted
Application number
CN202110810565.6A
Other languages
Chinese (zh)
Other versions
CN113568637B (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

Images

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 system package of an intelligent card, which relate to the technical field of intelligent cards, and the method comprises the following steps: configuring an intelligent card operating system and a mask system of an initial version, and configuring a corresponding secondary reference table; establishing a reference relation between information which needs to refer to the mask system of the initial version in the application package and referred information in the mask system 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 and the reference table items in the secondary reference table; and establishing a reference relation between the information needing to reference the updated version mask system package in the application package and the referenced information in the updated version mask system package. According to the method and the device, 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.

Description

Smart card system package updating management method and device
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 smart terminals and smart cards, the smart terminals and smart cards have been widely used in various fields in our society and life. Two types of software packages, namely a mask system package and a download package, exist on the Java Card intelligent Card, the mask system package is a basic function package provided by the Java Card operating system, and provides a basic framework and a function service of the Java Card operating system along with the operating system.
The requirement for updating the operating system of the issued smart card exists in the actual use process, the updating of the mask system is also included for updating the functions of the smart card, a user does not need to change the card and directly updates the card, the card does not need to be recycled, 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 good.
However, the application package includes calls to basic functions provided by the system package, for example, an object including a class in the system package, a reference to a class and a static public method in the system package, and the like are instantiated in the application. When the application package is downloaded, the class address or the method address called in the byte code is generally fixedly linked, so that a search step in the execution of the application is omitted, and the execution speed of the application is optimized. However, the link relationship is destroyed after the system package is updated, because the address or method address of the class referred to in the updated system package is changed, the reference address of the application package on the card to the system package is wrong, and the application cannot be used normally.
In the face of the technical problem, the traditional solution is to keep the constant pool component and the reference component when the application package is downloaded, and after the system package is updated, re-link all downloaded packages on the card by using the constant pool component and the reference component, and update the downloaded packages 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 object of the class of the mask system before updating and the class address corresponding to the updated system are linked again, so that the class address quoted by the object is correct, and the updated object can be normally accessed.
However, the implementation of the above solution has some disadvantages: constant pool components and reference components which are not needed when the application runs need to be saved, and space resources are occupied; in addition, after the system package is updated, traversal and link are required to be performed on the data on the card again, so that the time consumption is long, and the user experience is influenced.
Therefore, in order to improve the efficiency of the update work of the smart card system package, a smart card system package update management technique is now provided.
Disclosure of Invention
The application provides a method and a device for managing updating of a system package of an intelligent card.
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 initial version of an intelligent card operating system 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 a physical address of reference information referenced by the mask system package, and configuring a corresponding index value;
downloading an application package on the smart card operating system of the initial version, and establishing a reference relation between information of the mask system package needing to reference the initial version 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 updating instruction, obtaining an updated version mask system, and obtaining a corresponding updated secondary reference table according to the reference relation between the updated information in the updated version mask system and the reference table entries in the secondary reference table;
based on the corresponding index value in the updated secondary reference table, establishing a reference relationship between the information which needs to reference the updated version mask system in the application package and the referenced information in the updated version mask system; wherein the content of the first and second substances,
and the reference table entry in the secondary reference table corresponds to the index value, the reference table entry in the secondary reference table corresponds to the physical address of the reference information referenced by the mask system package, and the index value in the secondary reference table is in a preset index value range.
Specifically, the step of obtaining an updated version mask system in response to the mask system package update instruction, and obtaining a corresponding updated secondary reference table according to a reference relationship between updated information in the updated version mask system and a reference table entry in the secondary reference table includes the following steps:
and the corresponding relation of original information belonging to the mask system in the updated version mask system package corresponding to the reference table item of the updated secondary reference table is unchanged, and the newly added information in the updated version mask system package is added corresponding to the reference table item of the updated secondary reference table on the basis of passing through the secondary reference table, and is configured with a corresponding index value.
Specifically, based on the corresponding index value in the updated secondary reference table, in establishing a reference relationship between the information that needs to reference the updated version mask system in the application package and the referenced information in the updated version mask system:
and the application package acquires the corresponding physical address of the reference information referenced by the mask system package through the updated secondary reference table.
Specifically, the smart card operating system is allocated with a logical address for storing an index value of the mask system package or the updated version of the mask system package.
Specifically, the logic address of the updated version mask system package in the smart card operating system is consistent with the mask system package.
In a second aspect, the present application provides a smart card system package update management apparatus, the apparatus comprising:
the system comprises a pre-configuration module, a mask system package and a storage module, wherein the pre-configuration module is used for configuring an initial version of a smart card operating system and the mask system package and configuring a corresponding secondary reference table, and the secondary reference table is used for recording the reference relation between information in the mask system package and a physical address of reference information referenced by the mask system package and is configured with a corresponding index value;
the reference relation building module is used for downloading an application package on the intelligent card operating system of the initial version, and building a reference relation between information needing to reference the mask system of the initial version in the application package and referenced information in the mask system of the initial version based on corresponding index values in the secondary reference table;
the reference table updating module is used for downloading an application package on the smart card operating system of the initial version, and establishing a reference relation between information needing to reference the mask system of the initial version in the application package and referenced information in the mask system of the initial version based on corresponding index values in the secondary reference table;
the reference relation updating module is used for establishing a reference relation between information needing to reference the updated version mask system in the application package and referenced information in the updated version mask system based on the corresponding index value in the updated secondary reference table; wherein the content of the first and second substances,
and the reference table entry in the secondary reference table corresponds to the index value, the reference table entry in the secondary reference table corresponds to the physical address of the reference information referenced by the mask system package, and the index value in the secondary reference table is in a preset index value range.
Specifically, the correspondence between the original information belonging to the mask system in the updated version mask system package and the reference table entry of the updated secondary reference table is not changed, and the new information in the updated version mask system package is added on the basis that the reference table entry of the updated secondary reference table passes through the secondary reference table, and a corresponding index value is configured.
Specifically, based on the corresponding index value in the updated secondary reference table, in establishing a reference relationship between the information that needs to reference the updated version mask system in the application package and the referenced information in the updated version mask system:
and the application package acquires the corresponding physical address of the reference information referenced by the mask system package through the updated secondary reference table.
Specifically, the smart card operating system is allocated with a logical address for storing an index value of the mask system package or the updated version of the mask system package.
Specifically, the logic address of the updated version mask system package in the smart card operating system is consistent with the mask system package.
The beneficial effect that technical scheme that this application provided brought includes:
according to the method and the device, 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, the secondary reference table is adaptively adjusted according to the updating condition, and the updating efficiency of the intelligent card system is effectively improved on the premise that the intelligent card can normally work.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a flowchart illustrating steps of a method for managing update of a smart card system package provided in an embodiment of the present application;
fig. 2 is a schematic diagram of a step a101 of a smart card system package update management method provided in an embodiment of the present application;
fig. 3 is a schematic diagram of step a102 of a smart card system package update management method provided in an embodiment of the present application;
fig. 4 is a schematic diagram of a step a301 of a smart card system package update management method provided in an embodiment of the present application;
fig. 5 is a schematic diagram of step a302 of a smart card system package update management method provided in an embodiment of the present application;
fig. 6 is a schematic diagram of step a303 of the smart card system package update management method provided in the embodiment of the present application;
FIG. 7 is a schematic diagram of step A4 of the method for managing update of smart card system package provided in the embodiment of the present application;
FIG. 8 is a schematic diagram of step A8 of the method for managing update of smart card system package provided in the embodiment of the present application;
fig. 9 is a schematic structural diagram of a smart card system package update management apparatus provided in an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Embodiments of the present application will be 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 system package of an intelligent card.
In order to achieve the technical effects, the general idea of the application is as follows:
a method for updating and managing a system package of a smart card comprises the following steps:
s1, configuring the smart card operating system of the initial version and the mask system package, and configuring a corresponding secondary reference table, wherein the secondary reference table is used for recording the reference relation between the information in the mask system package and the physical address of the reference information referenced by the mask system package, and configuring a corresponding index value;
s2, downloading the application package on the smart card operating system of the initial version, and establishing a reference relation between the information of the mask system needing to reference the initial version in the application package and the referenced information in the mask system of the initial version based on the corresponding index value in the secondary reference table;
s3, responding to the mask system package updating instruction, obtaining an updated version mask system, and obtaining a corresponding updated secondary reference table according to the reference relation between the updated information in the updated version mask system and the reference table items in the secondary reference table;
s4, establishing a reference relation between the information needing to reference the updated version mask system package in the application package and the referenced information in the updated version mask system package based on the corresponding index value in the updated secondary reference table; wherein the content of the first and second substances,
and the reference table item in the secondary reference table corresponds to the index value, the reference table item in the secondary reference table corresponds to the physical address of the reference information referenced by the mask system package, and the index value in the secondary reference table is in a preset index value range.
Embodiments of the present application will be 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, where the method includes the following steps:
s1, configuring the smart card operating system of the initial version and the mask system package, and configuring a corresponding secondary reference table, wherein the secondary reference table is used for recording the reference relation between the information in the mask system package and the physical address of the reference information referenced by the mask system package, and configuring a corresponding index value;
s2, downloading the application package on the smart card operating system of the initial version, and establishing a reference relation between the information of the mask system needing to reference the initial version in the application package and the referenced information in the mask system of the initial version based on the corresponding index value in the secondary reference table;
s3, responding to the mask system package updating instruction, obtaining an updated version mask system, and obtaining a corresponding updated secondary reference table according to the reference relation between the updated information in the updated version mask system and the reference table items in the secondary reference table;
s4, establishing a reference relation between the information needing to reference the updated version mask system package in the application package and the referenced information in the updated version mask system package based on the corresponding index value in the updated secondary reference table; wherein the content of the first and second substances,
and the reference table item in the secondary reference table corresponds to the index value, the reference table item in the secondary reference table corresponds to the physical address of the reference information referenced by the mask system package, and the index value in the secondary reference table is 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, the secondary reference table is adaptively adjusted according to the updating condition, and the updating efficiency of the intelligent card system is effectively improved on the premise of ensuring the normal work of the intelligent card.
Here, it is explained that the secondary reference table includes a plurality of reference table entries, each reference table entry corresponds to an index value, and each reference table entry further has an association relationship with a logical address of reference information corresponding thereto;
when the application package needs to call certain information, a corresponding reference table entry is obtained according to the index value, and a logic address corresponding to the reference information is obtained by using the reference table entry, 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 which is already in a normal issuing and using stage;
the system package can be updated when necessary, and because the system package belongs to the code space, the code space is actually updated, and the data space of the user cannot be updated, the user space can be updated only after the system is updated and needs to be linked, so that the application package and the data downloaded by the user can not be influenced;
based on the technology, the constant pool component and the application component do not need to be saved when the application package is downloaded;
in addition, after the system package is updated, the system package can be normally used without re-linking.
Specifically, responding to the mask system package updating instruction, obtaining an updated version mask system, and obtaining a corresponding updated secondary reference table according to the reference relationship between the updated information in the updated version mask system and the reference table entry in the secondary reference table, including the following steps:
the corresponding relation of original information belonging to the mask system in the updated version mask system corresponding to the reference table item of the updated secondary reference table is unchanged, the newly added information in the updated version mask system package is added on the basis that the reference table item of the updated secondary reference table passes through the secondary reference table, and a corresponding index value is configured.
Specifically, based on the corresponding index value in the updated secondary reference table, in establishing a reference relationship between the information that needs to reference the updated version mask system package in the application package and the referenced information in the updated version mask system:
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 allocated with a logical address for storing an index value of a mask system package or an updated version of the mask system package.
Specifically, the logical address of the mask system package with the updated version is consistent with the mask system package in the smart card operating system.
In the embodiment of the present application, a specific operation embodiment is provided based on the core idea of the smart card system package update management method, and the specific operation flow is as follows:
a1, designing an information index table of a smart card operating system and a mask system;
a2, generating an operating system and a mask system package of an initial version, and generating a corresponding secondary reference table;
a3, downloading and processing an application package;
a4, receiving the updating requirement of the mask system package, making the 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 the secondary reference table thereof into the corresponding smart card;
and A6, after the mask system package is updated, the application package code existing on the card can run normally without other operations.
Specifically, step a1 includes the following steps:
a101, designing a reserved index value range for a mask system packet, where the reserved index value range is used to effectively distinguish a reference address between an index value range in the mask system packet and a download CAP packet (i.e., an application packet), as shown in fig. 2, the specific manner of this step is:
reserving a sufficient logic address space range for the mask system package, and storing the mask code of the actual system package in a code space;
the logical address assigned by the actual user E2 will be assigned starting from the logical address reserved by the mask;
assuming that the mask system includes a reserved logical address space of size E2P _ Base, then the logical reference value logic _ ref > of the downloaded packet and the saved data allocation applied is E2P _ Base; and the data index value index < E2P _ Base in the mask system packet;
in fig. 2, physical address is a physical address, and logical address is a logical address.
A102, aiming at various information in the mask system package, establishing a secondary reference table of various information in various mask system packages;
the reference index value in the same type of information is unique, and the reference index range of different types 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.
It should be noted that the purpose of step a101 is to enable the call to the system package to be correctly identified in step a 303.
Specifically, step a3 includes the following steps:
a301, processing the link of the constant pool component;
as shown in FIG. 4, the constant _ Info2 in the constant pool is a reference to the mask system package information Info3, and locates the address Info3_ ref of the referenced information in the system package by the reference information, then performs a lookup in the created information reference table of this type, locates the index Info3_ ref _ index of its information application table, and finally updates the index value of the Info3_ ref _ index into the constant pool.
A302, processing the secondary link of the reference component;
when the reference component is used for processing, locating an operand address needing to be linked through a reference address in the reference component, wherein a constant pool index value is stored, and acquiring the stored reference address from the constant pool component according to the constant pool index value;
in this embodiment of the present application, special processing needs to be performed according to the range of the Reference address, and if the range of the Reference address is within the range of the index value reserved by the mask system reserved in step a101, which indicates the Reference of the mask system package information, the opcode is modified to be a private extension opcode at this time, and the Reference address value stored in the constant pool is linked to the operand address, specifically as shown in fig. 5, where Reference address in fig. 5 is a Reference address.
A303, processing the byte code during operation;
as shown in fig. 6, when the bytecode is running, if the current opcode is a private extended opcode, the following special processing is performed:
when the operation code is expanded privately, the operand is modified into a secondary reference table index value of the referenced information when the application package downloads the link, the physical address of the referenced information is 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, and the apparatus includes:
the system comprises a pre-configuration module, a mask system package and a mask system package, wherein the pre-configuration module is used for configuring an initial version of the smart card operating system and the mask system package and configuring a corresponding secondary reference table, and the secondary reference table is used for recording the reference relation between information in the mask system package and a physical address of reference information referenced by the mask system package and is configured with a corresponding index value;
the reference relation building module is used for downloading the application package on the smart card operating system of the initial version, and building a reference relation between the information of the mask system package needing to reference the initial version in the application package and the 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 downloading the application package on the smart card operating system of the initial version, and establishing a reference relation between the information of the mask system package needing to reference the initial version in the application package and the referenced information in the mask system package of the initial version based on the corresponding index value in the secondary reference table;
the reference relation updating module is used for 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 based on the corresponding index value in the updated secondary reference table; wherein the content of the first and second substances,
and the reference table item in the secondary reference table corresponds to the index value, the reference table item in the secondary reference table corresponds to the physical address of the reference information referenced by the mask system package, and the index value in the secondary reference table is 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, the secondary reference table is adaptively adjusted according to the updating condition, and the updating efficiency of the intelligent card system is effectively improved on the premise of ensuring the normal work of the intelligent card.
The intelligent card system updating management technology corresponding to the embodiment of the application can adapt to the intelligent card which is already in a normal issuing and using stage;
the system package can be updated when necessary, and because the system package belongs to the code space, the code space is actually updated, and the data space of the user cannot be updated, the user space can be updated only after the system is updated and needs to be linked, so that the application package and the data downloaded by the user can not be influenced;
based on the technology, the constant pool component and the application component do not need to be saved when the application package is downloaded;
in addition, after the system package is updated, the system package can be normally used without re-linking.
Specifically, the corresponding relationship of original information belonging to the mask system in the updated version mask system corresponding to the reference table entry of the updated secondary reference table is unchanged, and the newly added information in the updated version mask system package is added corresponding to the reference table entry of the updated secondary reference table on the basis of the secondary reference table, and a corresponding index value is configured.
Specifically, based on the corresponding index value in the updated secondary reference table, in establishing a reference relationship between the information that needs to reference the updated version mask system package in the application package and the referenced information in the updated version mask system:
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 allocated with a logical address for storing an index value of a mask system package or an updated version of the mask system package.
Specifically, the logical address of the mask system package with the updated version is consistent with the mask system package in the smart card operating system.
In the embodiment of the application, after the updating operation of the mask system package is completed, the smart card can maintain the corresponding function of the smart card based on the application package.
It is 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. Also, 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 an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing are merely exemplary embodiments of the present application and are presented to enable those skilled in the art to understand and practice the present 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 update of a smart card system package, the method comprising the steps of:
configuring an initial version of an intelligent card operating system 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 a physical address of reference information referenced by the mask system package, and configuring a corresponding index value;
downloading an application package on the smart card operating system of the initial version, and establishing a reference relation between information of the mask system package needing to reference the initial version 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 updating instruction, obtaining an updated version mask system, and obtaining a corresponding updated secondary reference table according to the reference relation between the updated information in the updated version mask system and the reference table entries in the secondary reference table;
based on the corresponding index value in the updated secondary reference table, establishing a reference relationship between the information which needs to reference the updated version mask system in the application package and the referenced information in the updated version mask system; wherein the content of the first and second substances,
and the reference table entry in the secondary reference table corresponds to the index value, the reference table entry in the secondary reference table corresponds to the physical address of the reference information referenced by the mask system package, and the index value in the secondary reference table is in a preset index value range.
2. The method for managing update of a smart card system package according to claim 1, wherein the step of obtaining an updated version mask system in response to a mask system package update instruction, and obtaining a corresponding updated secondary reference table according to a reference relationship between updated information in the updated version mask system and a reference table entry in the secondary reference table comprises the steps of:
and the corresponding relation of original information belonging to the mask system in the updated version mask system package corresponding to the reference table item of the updated secondary reference table is unchanged, and the newly added information in the updated version mask system package is added corresponding to the reference table item of the updated secondary reference table on the basis of passing through the secondary reference table, and is configured with a corresponding index value.
3. The smart card system package update management method according to claim 1, wherein, in establishing a reference relationship between information in the application package that needs to refer to the updated version mask system package and referred information in the updated version mask system package based on a corresponding index value in the updated secondary reference table:
and the application package acquires the corresponding physical address of the reference information referenced by the 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 allocated with a logical 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:
the updated version mask system package is consistent with the mask system package in the logic address of the intelligent card operating system.
6. A smart card system package update management apparatus, the apparatus comprising:
the system comprises a pre-configuration module, a mask system package and a storage module, wherein the pre-configuration module is used for configuring an initial version of a smart card operating system and the mask system package and configuring a corresponding secondary reference table, and the secondary reference table is used for recording the reference relation between information in the mask system package and a physical address of reference information referenced by the mask system package and is configured with a corresponding index value;
the reference relation building module is used for downloading an application package on the intelligent card operating system of the initial version, and building a reference relation between information needing to reference the mask system of the initial version in the application package and referenced information in the mask system of the initial version based on corresponding index values in the secondary reference table;
the reference table updating module is used for downloading an application package on the smart card operating system of the initial version, and establishing a reference relation between information needing to reference the mask system of the initial version in the application package and referenced information in the mask system of the initial version based on corresponding index values in the secondary reference table;
the reference relation updating module is used for establishing a reference relation between information needing to reference the updated version mask system in the application package and referenced information in the updated version mask system based on the corresponding index value in the updated secondary reference table; wherein the content of the first and second substances,
and the reference table entry in the secondary reference table corresponds to the index value, the reference table entry in the secondary reference table corresponds to the physical address of the reference information referenced by the mask system package, and the index value in the secondary reference table is in a preset index value range.
7. The smart card system package update management device of claim 6, wherein:
and the corresponding relation of original information belonging to the mask system in the updated version mask system package corresponding to the reference table item of the updated secondary reference table is unchanged, and the newly added information in the updated version mask system package is added corresponding to the reference table item of the updated secondary reference table on the basis of passing through the secondary reference table, and is configured with a corresponding index value.
8. The smart card system package update management device according to claim 6, wherein in establishing a reference relationship between information in the application package that needs to refer to the updated version mask system package and information referred to in the updated version mask system package based on a corresponding index value in the updated secondary reference table:
and the application package acquires the corresponding physical address of the reference information referenced by the mask system package through the updated secondary reference table.
9. The smart card system package update management device of claim 6, wherein:
and the intelligent 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.
10. The smart card system package update management device of claim 6, wherein:
the updated version mask system package is consistent with the mask system package in the logic address of the intelligent card operating system.
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 true CN113568637A (en) 2021-10-29
CN113568637B 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 (3)

* Cited by examiner, † Cited by third party
Title
于晖: "基于ARM平台的Java智能卡虚拟机研究与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》, no. 07, 15 July 2016 (2016-07-15), pages 137 - 8 *
冰雪满天: "Scard API 智能卡操作", pages 1 - 6, Retrieved from the Internet <URL:《https://blog.csdn.net/xuq09/article/details/89156961》> *
彭华: "双界面智能卡Java虚拟机的设计与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》, no. 04, pages 138 - 1859 *

Also Published As

Publication number Publication date
CN113568637B (en) 2024-05-03

Similar Documents

Publication Publication Date Title
CN109034814B (en) Intelligent contract processing method and device based on Etheng virtual machine
JP3689368B2 (en) Method of loading an application into a multi-application embedded system with data processing resources, corresponding system and execution method
US5758154A (en) Method and system for storing configuration data into a common registry
EP2966566B1 (en) Driver program loading method and embedded device
CN103970563B (en) The method of dynamic load Android class
US20110126178A1 (en) Computer program product containing instructions for providing a processor the capability of executing an application derived from a compiled form
CN104750528A (en) Management method and device for components in Android program
CN106569880A (en) Method and system for dynamically sharing resources between Android applications
WO2000017747A1 (en) Opimizing symbol table lookups in platform-independent virtual machines
CN104750555A (en) Management method and device for progresses in Android program
CN101739755A (en) Method and device for realizing smart card multi-service application
CN109195157B (en) Application management method and device and terminal
CN104699503A (en) Method and device for replacing function execution logic in Android system
CN104731622A (en) Application program loading method and device and mobile terminal
CN112052006A (en) Software code compiling method and system
CN106657361A (en) Android installation package OTA upgrade method with mixed codes
CN108845800B (en) Method, device, equipment and storage medium for realizing component extension function
CN103761118B (en) A kind of smart card and the method for smartcard internal administration application
CN103677933A (en) Patching method and system for smart card
WO2004034255A2 (en) Method and apparatus for initializing romized system classes at virtual machine build time
CN113568637B (en) Method and device for updating and managing smart card system package
CN109032612A (en) Interface call method, device and the computer readable storage medium of mixed type application
US6772171B1 (en) Method and device for creating an object in a non-persistent memory and/or keeping accessibility to said object
CN110941443A (en) Method and device for modifying file name in SDK and electronic equipment
CN113127852B (en) SE application management method and device based on chip card and storage medium

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