CN108536427B - Compiling method and device of application program - Google Patents

Compiling method and device of application program Download PDF

Info

Publication number
CN108536427B
CN108536427B CN201710129826.1A CN201710129826A CN108536427B CN 108536427 B CN108536427 B CN 108536427B CN 201710129826 A CN201710129826 A CN 201710129826A CN 108536427 B CN108536427 B CN 108536427B
Authority
CN
China
Prior art keywords
module
safety
interface function
application program
sub
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
CN201710129826.1A
Other languages
Chinese (zh)
Other versions
CN108536427A (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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201710129826.1A priority Critical patent/CN108536427B/en
Publication of CN108536427A publication Critical patent/CN108536427A/en
Application granted granted Critical
Publication of CN108536427B publication Critical patent/CN108536427B/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/20Software design
    • G06F8/22Procedural
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms

Abstract

The disclosure provides a compiling method and device of an application program. The method comprises the following steps: when an application program executes an interface function, determining a safety sub-module corresponding to the interface function from a safety module based on the interface function; processing the data to be processed through the safety submodule to obtain a processing result; and compiling the processing result through the application program. According to the technical scheme, the data to be processed can be processed through the safety sub-module, the more core processing process can be protected, and therefore the safety of the application program during compiling is improved.

Description

Compiling method and device of application program
Technical Field
The present disclosure relates to the field of computer network technologies, and in particular, to a method and an apparatus for compiling an application program.
Background
Generally, when a user uses certain applications through a smart device, many private information, such as registration code verification information, trial expiration detection information, etc., may be analyzed and cracked through reverse engineering.
In the related art, the processing procedure that is more core in the application program is not subjected to security protection, so that the private information of the user cannot be effectively protected, and the security of the application program during compiling is low.
Disclosure of Invention
In view of the above, the present disclosure provides a method and an apparatus for compiling an application program, so as to improve the safety of compiling the application program.
In order to achieve the above purpose, the present disclosure provides the following technical solutions:
according to a first aspect of the present disclosure, a compiling method of an application program is provided, including:
when an application program executes an interface function, determining a safety sub-module corresponding to the interface function from a safety module based on the interface function;
processing the data to be processed through the safety submodule to obtain a processing result;
and compiling the processing result through the application program.
In an embodiment, the method for determining a security sub-module corresponding to the interface function from a security module based on the interface function includes:
determining interface information based on the interface function, wherein the interface information is the name of the interface function or interface address information contained in the interface function;
and determining the safety sub-module corresponding to the interface information from the safety module based on the interface information.
In an embodiment, the method for processing data to be processed by the security sub-module includes:
compiling the data to be processed through the safety submodule based on a preset program in the safety submodule; alternatively, the first and second electrodes may be,
and based on a preset formula in the safety submodule, the data to be processed is operated through the safety submodule.
In an embodiment, the method may further comprise:
when an application program is executed to an interface function, recording the execution position when the application program is executed currently;
and compiling the processing result from the execution position when the processing result is obtained by the safety submodule.
According to a second aspect of the present disclosure, there is provided an apparatus for compiling an application program, including:
the determining module is configured to determine a safety sub-module corresponding to an interface function from a safety module based on the interface function when an application program executes the interface function;
the processing module is configured to process the data to be processed through the safety sub-module determined in the determining module to obtain a processing result;
a first compiling module configured to compile the processing result obtained in the processing module by the application program.
In one embodiment, the determining module comprises:
a first determining submodule configured to determine interface information based on the interface function, the interface information being a name of the interface function or interface address information included in the interface function;
a second determination sub-module configured to determine the security sub-module corresponding to the interface information from the security module based on the interface information determined in the first determination sub-module.
In one embodiment, the processing module comprises:
the first processing submodule is configured to compile the data to be processed through the safety submodule based on a preset program in the safety submodule determined in the determination module; alternatively, the first and second electrodes may be,
and the second processing submodule is configured to operate on the data to be processed through the safety submodule based on the preset formula in the safety submodule determined in the determination module.
In an embodiment, the apparatus may further comprise:
the recording module is configured to record an execution position when the application program is executed to the interface function;
a second compiling module configured to compile the processing result from the execution position in the recording module when the processing result is obtained by the security sub-module.
According to a third aspect of the present disclosure, there is provided an apparatus for compiling an application program, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
when an application program executes an interface function, determining a safety sub-module corresponding to the interface function from a safety module based on the interface function;
processing the data to be processed through the safety submodule to obtain a processing result;
and compiling the processing result through the application program.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the intelligent device determines the safety submodule corresponding to the interface function from the safety module based on the interface function, and then the data to be processed is processed through the safety submodule to obtain a processing result, the safety submodule can effectively protect a relatively core processing process, a hacker is prevented from analyzing and cracking private information through reverse engineering, and the safety of compiling the application program is greatly improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
FIG. 1 is a flow diagram illustrating a method for compiling an application program in accordance with an illustrative embodiment;
FIG. 2 is a flowchart illustrating a method of compiling an application program in accordance with an illustrative embodiment II;
FIG. 3 is a flowchart illustrating a method of compiling an application program in accordance with an illustrative embodiment;
FIG. 4 is a flowchart illustrating a method of compiling an application program in accordance with an illustrative embodiment;
FIG. 5 is a block diagram illustrating an apparatus for compiling an application program in accordance with an illustrative embodiment;
FIG. 6 is a block diagram illustrating another apparatus for compiling an application program in accordance with an illustrative embodiment;
fig. 7 is a block diagram illustrating an apparatus for compiling an application program according to an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
Fig. 1 is a flowchart illustrating a compiling method of an application program, which may be applied to an intelligent device, such as a mobile phone, a computer, etc., according to an exemplary embodiment, where the compiling method of the application program includes the following steps S101-S103:
in step S101, when the application executes the interface function, a security sub-module corresponding to the interface function is determined from the security module based on the interface function.
In an embodiment, the security module is a module that can implement a trusted module technology in a chip security technology, and the security module may be a module that supports a Trustzone technology in an ARM chip or a TPM security chip, that is, the specific form of the security module is not limited here. The interface function is used for determining the safety sub-modules corresponding to the interface function from the safety modules, each interface function corresponds to one safety sub-module in the safety modules, the safety modules comprise at least one safety sub-module, and each safety sub-module correspondingly processes one core processing process. For example, the security module includes three security sub-modules: the security sub-module 1, the security sub-module 2, and the security sub-module 3, the names of the three interface functions are API1, API2, and API3, respectively, interface function API1 corresponds to the security sub-module 1, interface function API2 corresponds to the security sub-module 2, and interface function API3 corresponds to the security sub-module 3, and usually, at least one interface function may be included in one application program. Specifically, how the smart device determines the security sub-module corresponding to the interface function from the security module based on the interface function may be described with reference to the following steps in the embodiment shown in fig. 2, which will not be described in detail herein.
In step S102, the data to be processed is processed by the security sub-module, so as to obtain a processing result.
In an embodiment, the data to be processed is data that needs to be processed by the security sub-module, and the data to be processed may be data received by the intelligent device, such as a registration verification code, a user name, and the like, and may also be an execution result generated in the execution process of the application program, where a specific obtaining manner of the data to be processed is not limited, in combination with step S101, the security sub-module is taken as the security sub-module 1, the data to be processed is, for example, the registration verification code 123 provided by certain software when the software is installed, and the intelligent device processes the data to be processed 123 through the security sub-module 1 to obtain a processing result. Specifically, the process of the smart device processing the data to be processed through the security sub-module may refer to the following description of step S203 in fig. 2 and the step S303 in fig. 3, and will not be described in detail here.
In step S103, the processing result is compiled by the application program.
In one embodiment, the intelligent device compiles the processing result through an application program.
In this embodiment, the intelligent device determines the security sub-module corresponding to the interface function from the security module based on the interface function, and then processes the data to be processed through the security sub-module to obtain a processing result, the security sub-module can effectively protect a relatively core processing process, a hacker is prevented from analyzing and cracking private information through reverse engineering, and the security of compiling the application program is greatly improved.
In an embodiment, determining, from the security module, a security sub-module corresponding to the interface function based on the interface function specifically includes:
determining interface information based on the interface function, wherein the interface information is the name of the interface function or interface address information contained in the interface function;
and determining a safety sub-module corresponding to the interface information from the safety module based on the interface information.
In an embodiment, processing the data to be processed by the security sub-module specifically includes:
compiling the data to be processed through the safety submodule based on a preset program in the safety submodule; alternatively, the first and second electrodes may be,
and operating the data to be processed through the safety submodule based on a preset formula in the safety submodule.
In an embodiment, the method may further comprise:
when the application program is executed to the interface function, recording the execution position when the application program is currently executed;
when the processing result is obtained by the security sub-module, the processing result is compiled from the execution position.
Please refer to the following embodiments for how to compile the application program.
Therefore, according to the method provided by the embodiment of the disclosure, a more core processing process can be protected through the security module, and the security of the application program during compiling is improved.
To further illustrate the present disclosure, the following examples are provided:
fig. 2 is a flowchart of a compiling method of an application program according to an exemplary embodiment, where this embodiment uses the method provided in this disclosure to determine, by an intelligent device, a security sub-module corresponding to an interface function from a security module based on the interface function, and how the intelligent device compiles data to be processed by the security sub-module based on a preset program in the security sub-module, as shown in fig. 2, the method includes the following steps:
in step S201, when the application program executes to the interface function, interface information is determined based on the interface function, the interface information being a name of the interface function or interface address information included in the interface function.
In step S202, a security sub-module corresponding to the interface information is determined from the security module based on the interface information.
In step S203, the data to be processed is compiled by the security sub-module based on the preset program in the security sub-module, so as to obtain a processing result.
In step S204, the processing result is compiled by the application program.
In an embodiment, the intelligent device may use the name of the interface function or the interface address information included in the interface function as the interface information, and in conjunction with step S101, the name of the interface function may be API1, API2, API3, and the like, and the interface address information is, for example, 0001, 0010, 0100, and the like. Taking the name of the interface function as the interface information, the interface function API1 corresponds to the security sub-module 1, the interface function API2 corresponds to the security sub-module 2, and the interface function API3 corresponds to the security sub-module 3. When the application program is executed to the interface function API1, the smart device determines the interface information as API1 based on the interface function API1, the smart device sends the determined interface information API1 to the security module, and the security module determines the security sub-module 1 corresponding to the interface information API1 from the security module based on the interface information API1 by executing the program existing in the security module. The intelligent device compiles the data to be processed through the safety submodule 1 based on a preset program in the safety submodule 1 to obtain a processing result. Taking data to be processed as a user name ABC as an example, by executing a preset program, the security sub-module 1 determines user permissions corresponding to the data ABC to be processed, taking 1 as an example of changing password permissions and 2 as an example of changing personal data permissions, and obtains a processing result 12, which indicates that the user permissions corresponding to the user name ABC include changing password permissions and changing personal data permissions. The intelligent device continues to compile the processing result 12 through the application program.
In the embodiment of the disclosure, the intelligent device determines the interface information based on the interface function, and determines the security sub-module corresponding to the interface information from the security module based on the interface information, so that the data to be processed can be accurately delivered to the security sub-module corresponding to the interface function for processing.
Fig. 3 is a flowchart of a compiling method of an application program according to a third exemplary embodiment, and the embodiment of the present disclosure, in combination with fig. 1, fig. 2, and fig. 3, exemplarily illustrates another implementation manner of step S203, as shown in fig. 3, including the following steps:
in step S301, when the application program executes to the interface function, interface information is determined based on the interface function, the interface information being a name of the interface function or interface address information included in the interface function.
In step S302, a security sub-module corresponding to the interface information is determined from the security module based on the interface information.
In step S303, based on a preset formula in the security submodule, the security submodule performs an operation on the data to be processed to obtain a processing result.
In step S304, the processing result is compiled by the application program.
The description of step S301 and step S302 can refer to the description of the embodiment shown in fig. 2, and will not be described in detail here.
In an embodiment, for example, when the data to be processed, such as the registration verification code 123 provided by a certain software provider, is registered, taking the security sub-module as the security sub-module 1, the security sub-module 1 adds 1 and 2 in the registration verification code 123 by using a preset formula X ═ a + B, so as to obtain a processing result 3. The security sub-module 1 returns the processing result 3 to the application program, and the application program compares the processing result 3 with 3 of the registration verification codes 123, and when the comparison result is consistent, it can be determined that the registration verification codes 123 are legal. It can be understood by those skilled in the art that the preset formula is simple, the operations involved in the preset formula are not limited to addition, subtraction, multiplication and division, and in practical applications, the preset formula with higher complexity is set, so that the processing result is prevented from being decoded by reverse engineering.
In the embodiment of the present disclosure, the security sub-module may further perform an operation on the data to be processed, and is not limited to the method for compiling the data to be processed described in step S203 in fig. 2, and when the core processing process is an operation process, the operation process of the core may be protected.
Fig. 4 is a flowchart of a compiling method of an application program according to an exemplary embodiment, where, in conjunction with fig. 1, on the basis of steps S101 to S103, the embodiment of the present disclosure exemplarily illustrates an execution position of the application program when a processing result is obtained, and as shown in fig. 4, the method includes the following steps:
in step S401, when the application executes the interface function, a security sub-module corresponding to the interface function is determined from the security module based on the interface function.
In step S402, when the application program is executed to the interface function, the execution position at the time of the current execution of the application program is recorded.
In step S403, the data to be processed is processed by the security sub-module, so as to obtain a processing result.
In step S404, when the processing result is obtained by the security sub-module, the processing result is compiled from the execution position.
The description of steps S401 and S403 can refer to the description of the embodiment shown in fig. 1, and will not be described in detail here.
In one embodiment, when an application executes to an interface function, the smart device records the execution location of the application when it is currently executing. Taking the security sub-module as the security sub-module 1 and the processing result as 3 as an example, when the processing result 3 is obtained by the security sub-module 1, the application compiles the processing result 3 from the recorded execution position.
In the embodiment of the disclosure, when the application program is executed to the interface function, the intelligent device records the execution position of the currently executed application program, when the processing result is obtained through the security sub-module, the application program compiles the processing result from the execution position, and through the recording of the execution position, after the processing result is obtained, the application program can continue to be compiled based on the processing result, thereby ensuring the integrity of executing the application program.
Fig. 5 is a block diagram illustrating a compiling apparatus of an application program according to an exemplary embodiment, and as shown in fig. 5, the compiling apparatus of the application program includes:
the determining module is configured to determine a safety sub-module corresponding to the interface function from the safety module based on the interface function when the application program executes to the interface function;
the processing module is configured to process the data to be processed through the safety sub-module determined in the determining module to obtain a processing result;
and the first compiling module is configured to compile the processing result obtained in the processing module through the application program.
Fig. 6 is a block diagram of another compiling apparatus for an application program according to an exemplary embodiment, and as shown in fig. 6, based on the embodiment shown in fig. 5, in an embodiment, the determining module includes:
the first determining submodule is configured to determine interface information based on an interface function, wherein the interface information is the name of the interface function or interface address information contained in the interface function;
and the second determining sub-module is configured to determine a safety sub-module corresponding to the interface information from the safety module based on the interface information determined in the first determining sub-module.
In one embodiment, the processing module comprises:
the first processing submodule is configured to compile the data to be processed through the safety submodule based on a preset program in the safety submodule determined in the determination module; alternatively, the first and second electrodes may be,
and the second processing submodule is configured to operate on the data to be processed through the safety submodule based on the preset formula in the safety submodule determined in the determination module.
In an embodiment, the apparatus may further comprise:
the recording module is configured to record the execution position when the application program is currently executed when the application program is executed to the interface function;
and the second compiling module is configured to compile the processing result from the execution position in the recording module when the processing result is obtained by the safety sub-module.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 7 is a block diagram illustrating an apparatus for compiling an application program according to an example embodiment. For example, the apparatus 700 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 7, apparatus 700 may include one or more of the following components: a processing component 702, a memory 704, a power component 706, a multimedia component 708, an audio component 710, an input/output (I/O) interface 712, a sensor component 714, and a communication component 716.
The processing component 702 generally controls overall operation of the device 700, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing element 702 may include one or more processors 720 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 702 may include one or more modules that facilitate interaction between the processing component 702 and other components. For example, the processing component 702 can include a multimedia module to facilitate interaction between the multimedia component 708 and the processing component 702.
The memory 704 is configured to store various types of data to support operation at the device 700. Examples of such data include instructions for any application or method operating on device 700, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 704 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 706 provides power to the various components of the device 700. The power components 706 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 700.
The multimedia component 708 includes a screen that provides an output interface between the device 700 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 708 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 700 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 710 is configured to output and/or input audio signals. For example, audio component 710 includes a Microphone (MIC) configured to receive external audio signals when apparatus 700 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 704 or transmitted via the communication component 716. In some embodiments, audio component 710 also includes a speaker for outputting audio signals.
The I/O interface 712 provides an interface between the processing component 702 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 714 includes one or more sensors for providing status assessment of various aspects of the apparatus 700. For example, sensor assembly 714 may detect an open/closed state of device 700, the relative positioning of components, such as a display and keypad of apparatus 700, sensor assembly 714 may also detect a change in position of apparatus 700 or a component of apparatus 700, the presence or absence of user contact with apparatus 700, orientation or acceleration/deceleration of apparatus 700, and a change in temperature of apparatus 700. The sensor assembly 714 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 714 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 714 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 716 is configured to facilitate wired or wireless communication between the apparatus 700 and other devices. The apparatus 700 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication section 716 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 716 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 700 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 704 comprising instructions, executable by the processor 720 of the device 700 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
The processor 720 is configured to:
when the application program executes the interface function, determining a safety sub-module corresponding to the interface function from the safety module based on the interface function;
processing the data to be processed through the security submodule to obtain a processing result;
and compiling the processing result through an application program.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (9)

1. A method for compiling an application program, the method comprising:
when an application program executes an interface function, determining a safety sub-module corresponding to the interface function from a safety module based on the interface function, wherein the safety module comprises at least one safety sub-module, and the safety sub-module corresponds to one interface function;
processing the data to be processed through the safety submodule to obtain a processing result;
and compiling the processing result through the application program.
2. The method of claim 1, wherein determining the security sub-module corresponding to the interface function from the security module based on the interface function comprises:
determining interface information based on the interface function, wherein the interface information is the name of the interface function or interface address information contained in the interface function;
and determining the safety sub-module corresponding to the interface information from the safety module based on the interface information.
3. The method of claim 1, wherein processing the data to be processed by the security sub-module comprises:
compiling the data to be processed through the safety submodule based on a preset program in the safety submodule; alternatively, the first and second electrodes may be,
and based on a preset formula in the safety submodule, the data to be processed is operated through the safety submodule.
4. The method of claim 1, further comprising:
when an application program is executed to an interface function, recording the execution position when the application program is executed currently;
and compiling the processing result from the execution position when the processing result is obtained by the safety submodule.
5. An apparatus for compiling an application program, the apparatus comprising:
the determining module is configured to determine a security sub-module corresponding to an interface function from a security module based on the interface function when an application program executes the interface function, wherein the security module comprises at least one security sub-module corresponding to one interface function;
the processing module is configured to process the data to be processed through the safety sub-module determined in the determining module to obtain a processing result;
a first compiling module configured to compile the processing result obtained in the processing module by the application program.
6. The apparatus of claim 5, wherein the determining module comprises:
a first determining submodule configured to determine interface information based on the interface function, the interface information being a name of the interface function or interface address information included in the interface function;
a second determination sub-module configured to determine the security sub-module corresponding to the interface information from the security module based on the interface information determined in the first determination sub-module.
7. The apparatus of claim 5, wherein the processing module comprises:
the first processing submodule is configured to compile the data to be processed through the safety submodule based on a preset program in the safety submodule determined in the determination module; alternatively, the first and second electrodes may be,
and the second processing submodule is configured to operate on the data to be processed through the safety submodule based on the preset formula in the safety submodule determined in the determination module.
8. The apparatus of claim 5, further comprising:
the recording module is configured to record an execution position when the application program is executed to the interface function;
a second compiling module configured to compile the processing result from the execution position in the recording module when the processing result is obtained by the security sub-module.
9. An apparatus for compiling an application program, the apparatus comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
when an application program executes an interface function, determining a safety sub-module corresponding to the interface function from a safety module based on the interface function, wherein the safety module comprises at least one safety sub-module, and the safety sub-module corresponds to one interface function;
processing the data to be processed through the safety submodule to obtain a processing result;
and compiling the processing result through the application program.
CN201710129826.1A 2017-03-06 2017-03-06 Compiling method and device of application program Active CN108536427B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710129826.1A CN108536427B (en) 2017-03-06 2017-03-06 Compiling method and device of application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710129826.1A CN108536427B (en) 2017-03-06 2017-03-06 Compiling method and device of application program

Publications (2)

Publication Number Publication Date
CN108536427A CN108536427A (en) 2018-09-14
CN108536427B true CN108536427B (en) 2021-05-14

Family

ID=63489525

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710129826.1A Active CN108536427B (en) 2017-03-06 2017-03-06 Compiling method and device of application program

Country Status (1)

Country Link
CN (1) CN108536427B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101243452A (en) * 2005-07-06 2008-08-13 德国捷德有限公司 System provided with several electronic devices and a security module
CN103413074A (en) * 2013-07-08 2013-11-27 北京深思数盾科技有限公司 Method and device for protecting software through API
CN104850387A (en) * 2014-02-13 2015-08-19 深圳市腾讯计算机系统有限公司 Dynamic page request concurrent processing method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101243452A (en) * 2005-07-06 2008-08-13 德国捷德有限公司 System provided with several electronic devices and a security module
CN103413074A (en) * 2013-07-08 2013-11-27 北京深思数盾科技有限公司 Method and device for protecting software through API
CN104850387A (en) * 2014-02-13 2015-08-19 深圳市腾讯计算机系统有限公司 Dynamic page request concurrent processing method and system

Also Published As

Publication number Publication date
CN108536427A (en) 2018-09-14

Similar Documents

Publication Publication Date Title
EP3306441B1 (en) Temperature control method and apparatus
EP3089065B1 (en) Method and device for permission management
EP3324662B1 (en) Identity verification method, apparatus and system, computer program and recording medium
CN109669730B (en) Process keep-alive method, device, electronic equipment and medium
CN111240694B (en) Application detection method, application detection device and storage medium
US10558328B2 (en) Display screen unlocking method and apparatus
EP3163834B1 (en) Method and device for equipment control
CN107491681B (en) Fingerprint information processing method and device
KR20170038178A (en) Method, apparatus, and mobile terminal for identificating fingerprint
CN109413157B (en) Message shielding method and device
EP3145152A1 (en) Short message service reading method and device
CN107656616B (en) Input interface display method and device and electronic equipment
CN107463809B (en) Application icon display method and device
CN105760796B (en) Application security processing method and device
EP3190555A1 (en) Method for operating a display device and display
CN107395724B (en) Network request method and device
US10671827B2 (en) Method and device for fingerprint verification
CN107103231B (en) Method and device for installing and managing application
CN107203315B (en) Click event processing method and device and terminal
CN106712960B (en) Processing method and device of verification code information
CN112651012B (en) Information processing method and device
CN108536427B (en) Compiling method and device of application program
CN112083841B (en) Information input method, device and storage medium
US20160195992A1 (en) Mobile terminal and method for processing signals generated from touching virtual keys
CN107133531B (en) Application lock use reminding method and device

Legal Events

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