CN113791838B - Program file calling method, device and storage medium - Google Patents

Program file calling method, device and storage medium Download PDF

Info

Publication number
CN113791838B
CN113791838B CN202110960916.1A CN202110960916A CN113791838B CN 113791838 B CN113791838 B CN 113791838B CN 202110960916 A CN202110960916 A CN 202110960916A CN 113791838 B CN113791838 B CN 113791838B
Authority
CN
China
Prior art keywords
file
program
sequence number
target
calling
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
CN202110960916.1A
Other languages
Chinese (zh)
Other versions
CN113791838A (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.)
Shenzhen Launch Technology Co Ltd
Original Assignee
Shenzhen Launch Technology 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 Shenzhen Launch Technology Co Ltd filed Critical Shenzhen Launch Technology Co Ltd
Priority to CN202110960916.1A priority Critical patent/CN113791838B/en
Publication of CN113791838A publication Critical patent/CN113791838A/en
Application granted granted Critical
Publication of CN113791838B publication Critical patent/CN113791838B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4488Object-oriented
    • G06F9/449Object-oriented method invocation or resolution
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/14Details of searching files based on file metadata
    • G06F16/148File search processing
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C5/00Registering or indicating the working of vehicles
    • G07C5/08Registering or indicating performance data other than driving, working, idle, or waiting time, with or without registering driving, working, idle or waiting time
    • G07C5/0808Diagnosing performance data

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Library & Information Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Stored Programmes (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application discloses a program file calling method, a program file calling device and a storage medium, which are used for calling a program file and improving the safety of file processing. The method for calling the number program files comprises the following steps: acquiring a program file calling instruction; acquiring a target program file set according to the calling instruction, wherein the target program file set comprises at least one sequence number file; the target program file set records the position sequence number of the source file encoder; determining a corresponding encoder according to the position sequence number; replacing the position serial number by using the coder to generate a target calling file; and calling the target calling file to run the program.

Description

Program file calling method, device and storage medium
Technical Field
The present application relates to the field of automotive technologies, and in particular, to a method and an apparatus for calling a program file, and a storage medium.
Background
The automobile diagnosis device is a professional device for automobile detection, and can detect the performance of the automobile in real time and detect the failure of the automobile. When an application program in the automobile diagnosis device runs, a lot of diagnosis data are generated, and the application program converts the acquired diagnosis data into a special file of text or graphics which can be recognized by a user, and the diagnosis data files are usually stored in a local storage space.
The memory available for running the application in the automotive diagnostic apparatus is limited, for example, in a standard 32-bit operating system, the maximum memory space theoretically used for supporting the running of the application is 4G, and the memory space that can be occupied during the actual running of the program is far less than 4G. Since many data such as protocol data and flash data are generated in the automobile diagnosis process, if the data amount generated in the diagnosis process is relatively large and exceeds the maximum memory space that can be used by the program, the application program cannot load the data content in the diagnosis data file into the memory opened by the related program at one time, and in addition, if too much memory is occupied by loading the diagnosis data file, the program is likely to fall into a paralysis state. Therefore, when the generated data volume is relatively large, the data files can be stored in the magnetic disk, but the data files are directly stored in the magnetic disk without processing, so that the hidden danger of data information leakage can be caused, and the safety of file data is poor.
Disclosure of Invention
The application provides a program file calling method, a program file calling device and a storage medium, which are used for calling a program file and improving the safety of file processing.
To achieve the above object, a first aspect of the present application discloses a program file calling method, including:
Acquiring a program file calling instruction;
Acquiring a target program file set according to the calling instruction, wherein the target program file set comprises at least one sequence number file; the target program file set records the position sequence number of the source file encoder;
Determining a corresponding encoder according to the position sequence number;
replacing the position serial number by using the coder to generate a target calling file;
And calling the target calling file to run the program.
Optionally, before the target program file set is obtained according to the call instruction, the method further includes:
Acquiring a source file of a program;
extracting an encoder in the source file;
Creating variable fields for the code symbols, each variable field corresponding to a different code symbol;
the variable field is used to store a corresponding encoder.
Optionally, before the target program file set is obtained according to the call instruction, the method includes:
Traversing a first encoder having the same data in the source file;
determining a position sequence number of the first encoder in the source file;
and generating the sequence number file according to the position sequence number, wherein the sequence number file comprises a file identifier.
Optionally, before the target program file set is obtained according to the call instruction, the method includes:
traversing all of the encoders of the source file;
generating different sequence number files according to the codes of different data;
And collecting the different sequence number files to generate a target program file set.
Optionally, before the target program file set is obtained according to the call instruction, the method includes:
and establishing a mapping relation between the sequence number file and the variable field according to the file identification.
Optionally, the determining the corresponding encoder according to the position sequence number specifically includes:
determining a serial number file to which the position serial number belongs;
extracting a file identifier of the serial number file;
Determining a corresponding target variable field according to the mapping relation between the sequence number file and the variable field;
Extracting a target code symbol stored in the target variable field;
And determining the target encoder as the encoder corresponding to the position serial number.
A second aspect of the present application provides a program file calling device, the device comprising:
The first acquisition unit is used for acquiring a program file calling instruction;
the second acquisition unit is used for acquiring a target program file set according to the calling instruction, wherein the target program file set comprises at least one sequence number file; the target program file set records the position sequence number of the source file encoder;
A determining unit, configured to determine a corresponding encoder according to the position sequence number;
A replacing unit for replacing the position sequence number with the encoder to generate a target calling file;
And the calling unit is used for calling the target calling file to run the program.
Optionally, the apparatus further includes: a first processing unit for:
Acquiring a source file of a program;
extracting an encoder in the source file;
Creating variable fields for the code symbols, each variable field corresponding to a different code symbol;
the variable field is used to store a corresponding encoder.
A third aspect of the present application provides a program file calling device, the device comprising:
a processor, a memory, an input-output unit, and a bus;
the processor is connected with the memory, the input/output unit and the bus;
The memory holds a program that the processor invokes to perform the method of any of the first aspect and optionally the method of the first aspect.
A fourth aspect of the application provides a computer readable storage medium having stored thereon a program which when executed on a computer performs the method of any of the first aspect and optionally the first aspect.
From the above technical scheme, the application has the following advantages:
In the program file calling method provided by the application, when a terminal calls a file, the acquired program file set comprises at least one sequence number file; the target program file set records the position sequence number of the source file encoder; the terminal determines a corresponding encoder according to the position sequence number; replacing the position serial number by using the coder to generate a target calling file; and calling the target calling file to run the program. The method can convert the sequence number file into the target calling file, and improves the safety of the calling file.
Drawings
In order to more clearly illustrate the technical solutions of the present application, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings can be obtained according to these drawings without inventive effort to a person skilled in the art.
FIG. 1 is a flowchart illustrating a procedure of a method for calling a program file according to an embodiment of the present application;
FIG. 2 is a flowchart illustrating a procedure of a method for calling a program file according to another embodiment of the present application;
FIG. 3 is a schematic structural diagram of an embodiment of a program file calling device according to the present application;
fig. 4 is a schematic structural diagram of another embodiment of the program file calling device provided in the present application.
Detailed Description
The memory available for running the application in the automotive diagnostic apparatus is limited, for example, in a standard 32-bit operating system, the maximum memory space theoretically used for supporting the running of the application is 4G, and the memory space that can be occupied during the actual running of the program is far less than 4G. Since many data such as protocol data and flash data are generated in the automobile diagnosis process, if the data amount generated in the diagnosis process is relatively large and exceeds the maximum memory space that can be used by the program, the application program cannot load the data content in the diagnosis data file into the memory opened by the related program at one time, and in addition, if too much memory is occupied by loading the diagnosis data file, the program is likely to fall into a paralysis state. Therefore, when the generated data volume is relatively large, the data files can be stored in the magnetic disk, but the data files are directly stored in the magnetic disk without processing, so that the hidden danger of data information leakage can be caused, and the safety of file data is poor.
Based on this, the technical solution of the present application will be clearly and completely described below with reference to the accompanying drawings in the present application.
It should be noted that, the program file calling method provided by the application can be applied to a terminal, a system and a server, for example, the terminal can be a smart phone or a computer, a tablet computer, a smart television, a smart watch, a portable computer terminal and other fixed terminals. For convenience of explanation, the present application is exemplified by using the terminal as the execution subject.
In the course of automobile diagnostics, a number of data files are generated, the data content of which is usually data in the form of a specific number, such as binary, octal, decimal, hexadecimal, etc., and in the present application, the diagnostic data is exemplified as hexadecimal data.
Referring to fig. 1, fig. 1 is a schematic flow chart of an embodiment of a program file calling method provided by the application, and the method comprises the following steps:
101. and acquiring a program file calling instruction.
102. Acquiring a target program file set according to the calling instruction, wherein the target program file set comprises at least one sequence number file; the target set of program files records the position number of the source file encoder.
After a terminal obtains a program file calling instruction, a target program file set is obtained according to the calling instruction, the target program file set in the application comprises at least one sequence number file, the target program file set records the position sequence numbers of source file encoders, in practice, one source file comprises a plurality of source file encoders, each encoder has a unique corresponding position sequence number, for example, in automobile diagnosis, when an ECU (electronic control unit) is used for flashing, 4095 bytes of data are generally required to be sent sequentially once, 4095 encoders are contained, and the position sequence numbers of the corresponding encoders can be 0-4094.
103. And determining the corresponding coder according to the position sequence number.
The terminal determines the corresponding encoder according to the position sequence number, for example: if the position serial numbers are determined to be 0-4094, all the codes corresponding to 0-4094 are determined.
In one possible implementation manner, the corresponding encoder is determined according to the position sequence number, which may specifically be: determining a serial number file to which the position serial number belongs; extracting a file identifier of a serial number file; determining a corresponding target variable field according to the mapping relation between the sequence number file and the variable field; extracting a target code symbol stored in a target variable field; and determining the target encoder as the encoder corresponding to the position serial number.
104. And replacing the position serial number by using the coder to generate a target calling file.
The terminal uses the code symbols to replace the position serial numbers to generate a target calling file, and each code symbol in the obtained target calling file is sequenced according to the corresponding position serial numbers to obtain the target calling file which can be called.
105. The target calling file is called to run the program.
The terminal calls the target call file to run the corresponding program.
In the program file calling method provided by the application, when a terminal calls a file, the acquired program file set comprises at least one sequence number file; the target program file set records the position sequence number of the source file encoder; the terminal determines a corresponding encoder according to the position sequence number; replacing the position serial number by using the coder to generate a target calling file; and calling the target calling file to run the program. The method can convert the sequence number file into the target calling file, and improves the safety of the calling file.
In the present application, the target program file set includes at least one sequence number file, the target program file set records the position sequence number of the source file encoder, the target program file set may be pre-constructed by the terminal, and in particular, this embodiment will be described in detail with reference to the accompanying drawings.
Referring to fig. 2, fig. 2 is a flowchart of another embodiment of a program file calling method provided in the present application, where the embodiment includes:
201. A source file of the program is obtained.
The source data file generated in the automobile diagnosis process is assumed to be instruction data generated in hexadecimal number system form, for example, 0x00, 0x05, 0x3D, 0x7F, 0xFF, and the like. The code contained in the source file is 0~F hexadecimal digits and the ECU swipes the file to consist of 0~F characters, which the application program will combine to convert to 16 digits during the automobile diagnostic process, such as: two characters of A4 correspond to 0xA4; f5 corresponds to 0xF5, so that in 16 numbers based on diagnostic instructions and brushing instructions, which are 0x 00-0 xFF, the content of the encoder in the file is 16 numbers ranging from 00-FF, and then the encoder in the source file is 16 numbers ranging from 00-FF.
202. The method includes extracting an encoder in a source file and creating variable fields for the encoder, each variable field corresponding to a different encoder.
203. The variable field is used to store the corresponding encoder.
After the terminal obtains the source file, it extracts the encoder in the source file and creates a variable field for storing the encoder, for example: newly created variable [ Var_00 ] stores an encoder with a value of 0x00 in the program. One of the variable fields corresponds to a different one of the encoders.
204. A first encoder having the same data in the source file is traversed and a position number of the first encoder in the source file is determined.
205. And generating a sequence number file according to the position sequence number, wherein the sequence number file comprises a file identifier.
Traversing a first encoder having the same data in a source file, determining a position number of the first encoder in the source file. Each source file has various different encoders, and the source file can be converted into a sequence number file set for the purpose of realizing the data security transmission of the application. Specifically, the same code symbol in the source file can be found first, and then a corresponding sequence number file is generated according to the position sequence number of the code symbol.
For example: traversing all the code symbols with the value of 0x00, creating a File [ File_A ] at the same time, and recording the position serial numbers of 00 appearing in the File, wherein the File [ File_A ] is a serial number File.
206. Traversing all the codes of the source file and generating different sequence number files according to the codes of different data.
For example: when the encoder with the value of 0x00 is traversed, the encoder with the value of 0x00 can be newly built in the program, the encoder with the value of 0x00 can be stored in the variable field of 'var_00', by newly building a File [ file_00 ] for recording the position serial numbers of the encoder with the value of 0x00 in the File, when the encoder with the value of '0 x 01' is traversed, the encoder with the value of 0x01 can be newly built in the program, a File [ file_01 ] for recording the position serial numbers of the encoder with the value of 0x01 in the File can be newly built, and so on, when the data object of the source data File is completely traversed, serial number files such as the files [ file_00 ] and [ file_01 ] FileFF are built, and the position serial numbers of the respective encoders in the File are recorded in the program, and a mapping of the respective serial numbers of the respective files and the encoder is built. All of the encoders of the source file are reorganized in the manner of a sequence number file.
The position serial numbers of the encoder with the value of 0x00 appear in the File are sequentially written in the serial number File [ File_00 ], when the encoder with the value of 0x01 is found, the position serial numbers of the encoder with the value of 0x01 appear in the File are written in the serial number File [ File_01 ], and so on, and the serial numbers of the encoder appearing in the source data File are recorded in the serial number files such as the File [ File_00 ] and the File [ File_01 ].
207. And establishing a mapping relation between the sequence number file and the variable field according to the file identification.
And establishing a mapping relation between the sequence number file and the variable field according to the file identification, wherein the mapping relation records the variable field in which the encoder corresponding to the position sequence number in the sequence number file is positioned.
For example: newly creating an encoder with a variable [ Var_00 ] stored with a value of 0x00 in a program, and establishing a mapping relation between a variable field [ Var_00 ] and a sequence number File [ File_A ].
208. And generating a target program file set by collecting different sequence number files.
And collecting all the different sequence number files to generate a target program file set.
After the target program file set is generated, the source file can be deleted, the source data file can be deleted, only the target program file set is reserved, and even if an illegal user obtains the target program file, the illegal user can not easily crack to obtain effective data.
209. And acquiring a program file calling instruction.
210. Acquiring a target program file set according to the calling instruction, wherein the target program file set comprises at least one sequence number file; the target set of program files records the position number of the source file encoder.
For example: referring to step 205, the sequence number File [ file_00 ] is written with the position numbers of the code symbol with the value of 00 in the File, the sequence number File [ file_01 ] is written with the position numbers of 01 in the File, and the sequence number files such as [ file_00 ], "file_01". The position numbers of the source File code symbol in the source data File are recorded in the sequence number files.
211. And determining the corresponding coder according to the position sequence number.
Because the code symbol and the sequence number file establish a one-to-one mapping relationship, and the position sequence number of the code symbol is recorded in the sequence number file, the corresponding code symbol can be determined according to the position sequence number.
212. And replacing the position serial number by using the coder to generate a target calling file.
213. The target calling file is called to run the program.
In this embodiment, steps 212 to 213 are similar to steps 104 to 105 in the previous embodiment, and are not repeated here.
In this embodiment, the variable field is used to store the code symbols in the source file, and the position sequence numbers of each code symbol in the source file are recorded through the sequence number file, so that the mapping relation between the sequence number file and the variable field is established, in the process of restoring the file, the position sequence number of each code symbol in the source file can be restored through the mapping relation, and then the target program file can be restored to the position sequence number. Through the mapping relation formed in the program, the sequential combination of the original data can be easily obtained, and the appointed data can be well obtained for diagnosis.
For a clearer description of the method provided by the application, the following examples are given:
In practical application, the diagnostic instruction and the refresh instruction are 16 numbers of 0x00 to 0xFF, taking a refresh file as an example, if the refresh file is 16 numbers ranging from 00 to FF, the detailed steps are as follows:
Firstly traversing all the codes with the value of 0x00, simultaneously creating a File [ File_A ] to record the sequence number of the codes with the value of 0x00 in the File, and creating a new variable [ Var_00 ] in the program to store the codes with the value of 0x00, so as to establish the mapping between the variable [ Var_00 ] and the file_A.
The encoders with values of 0x01 and 0x02 … and 0xFF are traversed in sequence, and a sequence number record file and a variable mapping relation are established.
When all the encoders with the values of 0x 00-0 xFF range are traversed, deleting the original written file. Thus, the swipe file is converted into a sequence number file.
When a program needs to use a certain piece of data or a certain byte of data in a source file, the existing variable and file mapping relation can be utilized to carry out diagnosis by combining instructions in sequence. For example, the ECU writes and transmits 4095 bytes of data at a time, and then traverses all sequence number files to find out the code with sequence number 0-4094, and then transmits to the ECU after combining in sequence,
And searching data with sequence numbers of 4095-8189 for the second time, and combining and transmitting.
Through the method and the steps, the diagnosis data file can be converted, and the leakage of data information is prevented. Meanwhile, under the addition of the program related mapping, the diagnostic file data can be well restored in sequence.
The foregoing embodiments are used for explaining the program file calling method provided in the present application in detail, and the program file calling device and the storage medium provided in the present application will be explained with reference to the accompanying drawings.
Referring to fig. 3, fig. 3 is a schematic structural diagram of an embodiment of a program file calling device provided in the present application, where the embodiment includes:
A first obtaining unit 301, configured to obtain a program file calling instruction;
A second obtaining unit 302, configured to obtain a target program file set according to the call instruction, where the target program file set includes at least one sequence number file; the target program file set records the position serial number of the source file encoder;
a determining unit 303, configured to determine a corresponding encoder according to the position sequence number;
A replacing unit 304, configured to replace the position number with the encoder, and generate a target calling file;
and the calling unit 305 is used for calling the target calling file to run the program.
Optionally, the apparatus further comprises: first processing unit 306, first processing unit 306 is configured to:
Acquiring a source file of a program;
extracting an encoder in the source file;
creating variable fields for the code symbols, each variable field corresponding to a different code symbol;
the variable field is used to store the corresponding encoder.
Optionally, the apparatus further comprises: a second processing unit 307, the second processing unit 307 being configured to:
traversing a first encoder having the same data in a source file;
determining a position sequence number of the first encoder in the source file;
And generating a sequence number file according to the position sequence number, wherein the sequence number file comprises a file identifier.
Optionally, the apparatus further comprises: a third processing unit 308, the third processing unit 308 being configured to:
Traversing all of the encoders of the source file;
generating different sequence number files according to the codes of different data;
and generating a target program file set by collecting different sequence number files.
Optionally, the apparatus further comprises: a fourth processing unit 309, the fourth processing unit 309 being configured to:
And establishing a mapping relation between the sequence number file and the variable field according to the file identification.
Optionally, the determining unit 303 is specifically configured to:
Determining a serial number file to which the position serial number belongs;
extracting a file identifier of a serial number file;
determining a corresponding target variable field according to the mapping relation between the sequence number file and the variable field;
extracting a target code symbol stored in a target variable field;
and determining the target encoder as the encoder corresponding to the position serial number.
The application also provides a program file calling device, which comprises:
A processor 401, a memory 402, an input/output unit 403, and a bus 404;
the processor 401 is connected to the memory 402, the input/output unit 403, and the bus 404;
the memory 402 holds a program, and the processor 401 calls the program to execute any of the program file calling methods as described above.
The application also relates to a computer readable storage medium having a program stored thereon, characterized in that the program, when run on a computer, causes the computer to perform any of the above-mentioned program file invoking methods.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a random-access memory (RAM, random access memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.

Claims (5)

1. A program file calling method, the method comprising:
Acquiring a program file calling instruction;
Acquiring a source file of a program;
extracting an encoder in the source file;
Creating variable fields for the code symbols, each variable field corresponding to a different code symbol;
Storing a corresponding encoder using the variable field;
Traversing a first encoder having the same data in the source file;
determining a position sequence number of the first encoder in the source file;
Generating a sequence number file according to the position sequence number, wherein the sequence number file comprises a file identifier;
establishing a mapping relation between the sequence number file and the variable field according to the file identification;
Acquiring a target program file set according to the calling instruction, wherein the target program file set comprises at least one sequence number file; the target program file set records the position sequence number of the source file encoder;
determining a serial number file to which the position serial number belongs;
extracting a file identifier of the serial number file;
Determining a corresponding target variable field according to the mapping relation between the sequence number file and the variable field;
Extracting a target code symbol stored in the target variable field;
determining the target encoder as the encoder corresponding to the position serial number;
replacing the position serial number by using the coder to generate a target calling file;
And calling the target calling file to run the program.
2. The method of claim 1, wherein prior to said fetching of a set of target program files in accordance with said call instruction, said method comprises:
traversing all of the encoders of the source file;
generating different sequence number files according to the codes of different data;
And collecting the different sequence number files to generate a target program file set.
3. A program file calling device, the device comprising:
The first acquisition unit is used for acquiring a program file calling instruction;
the first processing unit is used for:
Acquiring a source file of a program;
extracting an encoder in the source file;
creating variable fields for the code symbols, each variable field corresponding to a different code symbol;
Storing the corresponding encoder using the variable field;
a second processing unit for:
traversing a first encoder having the same data in a source file;
determining a position sequence number of the first encoder in the source file;
Generating a sequence number file according to the position sequence number, wherein the sequence number file comprises a file identifier;
a fourth processing unit configured to:
Establishing a mapping relation between the sequence number file and the variable field according to the file identification;
the second acquisition unit is used for acquiring a target program file set according to the calling instruction, wherein the target program file set comprises at least one sequence number file; the target program file set records the position sequence number of the source file encoder;
A determining unit configured to:
Determining a serial number file to which the position serial number belongs;
extracting a file identifier of a serial number file;
determining a corresponding target variable field according to the mapping relation between the sequence number file and the variable field;
extracting a target code symbol stored in a target variable field;
determining the target encoder as the encoder corresponding to the position serial number;
A replacing unit for replacing the position sequence number with the encoder to generate a target calling file;
And the calling unit is used for calling the target calling file to run the program.
4. A program file calling device, the device comprising:
a processor, a memory, an input-output unit, and a bus;
the processor is connected with the memory, the input/output unit and the bus;
The memory holds a program that the processor calls to execute the program file calling method according to any one of claims 1 to 2.
5. A computer-readable storage medium having stored thereon a program which, when executed on a computer, performs the program file calling method according to any one of claims 1 to 2.
CN202110960916.1A 2021-08-20 2021-08-20 Program file calling method, device and storage medium Active CN113791838B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110960916.1A CN113791838B (en) 2021-08-20 2021-08-20 Program file calling method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110960916.1A CN113791838B (en) 2021-08-20 2021-08-20 Program file calling method, device and storage medium

Publications (2)

Publication Number Publication Date
CN113791838A CN113791838A (en) 2021-12-14
CN113791838B true CN113791838B (en) 2024-04-23

Family

ID=79181874

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110960916.1A Active CN113791838B (en) 2021-08-20 2021-08-20 Program file calling method, device and storage medium

Country Status (1)

Country Link
CN (1) CN113791838B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2967275A1 (en) * 2010-11-10 2012-05-11 Oberthur Technologies METHOD, COMPUTER PROGRAM AND DEVICE FOR SECURING INTERMEDIATE PROGRAMMING CODE FOR ITS EXECUTION BY A VIRTUAL MACHINE
CN108388424A (en) * 2018-03-09 2018-08-10 北京奇艺世纪科技有限公司 A kind of method, apparatus and electronic equipment of calling interface data
CN108932407A (en) * 2018-05-22 2018-12-04 北京奇虎科技有限公司 A kind of program safety guard method and device
CN109814939A (en) * 2017-11-20 2019-05-28 华为技术有限公司 The production method and device of a kind of dynamic loading method, file destination
CN109815718A (en) * 2019-01-18 2019-05-28 国能日新科技股份有限公司 WAR program source file encryption protecting method and system
CN110727941A (en) * 2019-08-23 2020-01-24 深圳市轱辘汽车维修技术有限公司 Private data protection method and device, terminal equipment and storage medium
CN111090854A (en) * 2019-11-25 2020-05-01 上海达梦数据库有限公司 Target program execution and conversion method, device, terminal and storage medium
CN112114933A (en) * 2020-08-14 2020-12-22 咪咕文化科技有限公司 Application program protection method, electronic device and storage medium
CN112667240A (en) * 2020-12-23 2021-04-16 平安普惠企业管理有限公司 Program code conversion method and related device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2305078A1 (en) * 2000-04-12 2001-10-12 Cloakware Corporation Tamper resistant software - mass data encoding
TW201339861A (en) * 2012-03-30 2013-10-01 Ibm Method, computer system and program product for performing a code conversion in a smaller target encoding space
JP6597356B2 (en) * 2016-02-08 2019-10-30 富士通株式会社 Control program, control device, and control method

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2967275A1 (en) * 2010-11-10 2012-05-11 Oberthur Technologies METHOD, COMPUTER PROGRAM AND DEVICE FOR SECURING INTERMEDIATE PROGRAMMING CODE FOR ITS EXECUTION BY A VIRTUAL MACHINE
CN109814939A (en) * 2017-11-20 2019-05-28 华为技术有限公司 The production method and device of a kind of dynamic loading method, file destination
CN108388424A (en) * 2018-03-09 2018-08-10 北京奇艺世纪科技有限公司 A kind of method, apparatus and electronic equipment of calling interface data
CN108932407A (en) * 2018-05-22 2018-12-04 北京奇虎科技有限公司 A kind of program safety guard method and device
CN109815718A (en) * 2019-01-18 2019-05-28 国能日新科技股份有限公司 WAR program source file encryption protecting method and system
CN110727941A (en) * 2019-08-23 2020-01-24 深圳市轱辘汽车维修技术有限公司 Private data protection method and device, terminal equipment and storage medium
CN111090854A (en) * 2019-11-25 2020-05-01 上海达梦数据库有限公司 Target program execution and conversion method, device, terminal and storage medium
CN112114933A (en) * 2020-08-14 2020-12-22 咪咕文化科技有限公司 Application program protection method, electronic device and storage medium
CN112667240A (en) * 2020-12-23 2021-04-16 平安普惠企业管理有限公司 Program code conversion method and related device

Also Published As

Publication number Publication date
CN113791838A (en) 2021-12-14

Similar Documents

Publication Publication Date Title
CN107436844B (en) Method and device for generating interface use case aggregate
CN108959430B (en) Advertisement promotion data acquisition method, device and equipment
CN112147983B (en) Vehicle diagnosis method and device, electronic equipment and storage medium
CN115391403B (en) Data integration method and data integration device based on rule engine
CN109063012A (en) Storage, method, apparatus, equipment and the computer storage medium for inquiring time series data
CN109885223A (en) A kind of method and its equipment for realizing mobile terminal desktop information suspension procedure function
CN110543756B (en) Device identification method and device, storage medium and electronic device
CN112416775A (en) Software automation testing method and device based on artificial intelligence and electronic equipment
CN109542385B (en) Multi-data-stream on-screen display method, system and device and readable storage medium
CN113791838B (en) Program file calling method, device and storage medium
CN111200645B (en) Service request processing method, device, equipment and readable storage medium
CN111143092B (en) Fault recording data processing method, system and terminal equipment
CN108845995B (en) Data processing method, data processing apparatus, storage medium, and electronic apparatus
CN112667638A (en) Dynamic report generation method and device, terminal equipment and readable storage medium
CN109617708B (en) Compression method, device and system for embedded point log
CN109271543B (en) Thumbnail display method and device, terminal and computer-readable storage medium
CN110297859A (en) The method and apparatus for handling real time data
CN109039855A (en) A kind of message treatment method and device
CN115203674A (en) Automatic login method, system, device and storage medium for application program
CN110262856B (en) Application program data acquisition method, device, terminal and storage medium
CN109740303B (en) Method for improving safety when external SDK is used
CN113099271A (en) Video auxiliary information encoding and decoding methods and electronic equipment
CN111209198A (en) Debugging method and device based on JPDA, electronic equipment and storage medium
CN105718314A (en) Event execution method, device and system
CN117667604B (en) Data monitoring method, device, electronic equipment and storage medium for tracking event

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
GR01 Patent grant