CN104850778B - A kind of information processing method and electronic equipment - Google Patents
A kind of information processing method and electronic equipment Download PDFInfo
- Publication number
- CN104850778B CN104850778B CN201510221505.5A CN201510221505A CN104850778B CN 104850778 B CN104850778 B CN 104850778B CN 201510221505 A CN201510221505 A CN 201510221505A CN 104850778 B CN104850778 B CN 104850778B
- Authority
- CN
- China
- Prior art keywords
- function module
- electronic equipment
- application program
- code
- module
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/50—Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
- G06F21/51—Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems at application loading time, e.g. accepting, rejecting, starting or inhibiting executable software based on integrity or source reliability
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The present invention provides a kind of information processing method and electronic equipment, the method is applied in an electronic equipment, the described method includes: obtain the electronic equipment all functional modules and coding corresponding with the functional module, establish the functional module and coding between the first mapping relations;Receive the coding that the first application requests in the electronic equipment are called;Based on first mapping relations, corresponding first functional module of the coding is determined;Judge whether first functional module belongs to the corresponding sensitive function module of first application program, obtains judging result;When the judging result, which is, is, prompt information is generated, the prompt information is for prompting the first functional module described in user intercepted.
Description
Technical Field
The present invention relates to the field of information processing technologies, and in particular, to an information processing method and an electronic device.
Background
With the development of electronic technology, more and more electronic devices are present in people's work and life, for example: smart phones, tablet computers, notebook computers, etc., which provide people with a variety of functions, such as: sending and receiving short messages, setting short message formats and the like.
Various application programs are installed in the electronic equipment, the application programs request to call a certain function module, codes of the function module are sent to a system process, and the system process informs corresponding system services to call the function module. Considering the service life of the electronic equipment or information security, some function modules which are requested to be called by the application program can be set as sensitive function modules: for example: reading the call record is a sensitive function module.
In the prior art, in order to prevent an application program from calling a sensitive function module, an injection process for intercepting the sensitive function module may be injected into a system process. After the injection process receives the code called by the application program request, the functional module corresponding to the received code is determined, and then whether the determined functional module belongs to the sensitive functional module is judged. The specific process for determining the functional module corresponding to the code is as follows: and finding out records matched with both the hardware platform and the software platform of the current electronic equipment from the function table, then finding out the received codes from the records, and checking the corresponding function modules.
However, as the number of hardware platforms or operating systems of the electronic device increases, the number of records in the function table increases, and the time required for finding a function module corresponding to one code under the hardware platform and the software platform of the current electronic device from the table increases, which results in low efficiency of intercepting the sensitive function module. Therefore, the technical problems existing in the prior art are as follows: the efficiency of the electronic equipment for intercepting the sensitive function module is low.
Disclosure of Invention
The embodiment of the invention provides an information processing method and electronic equipment, which are used for solving the technical problem of low efficiency of intercepting a sensitive function module by the electronic equipment in the prior art, and provides a new method for intercepting the sensitive function module, which only needs to acquire the corresponding relation between a function module and a code in the current electronic equipment without considering a hardware platform or an operating system of the current electronic equipment, so that the efficiency of intercepting the sensitive function module is improved.
In a first aspect, an embodiment of the present invention provides an information processing method applied in an electronic device, where the method includes:
acquiring all functional modules of the electronic equipment and codes corresponding to the functional modules, and establishing a first mapping relation between the functional modules and the codes;
receiving code requested to be called by a first application program in the electronic equipment;
determining a first functional module corresponding to the code based on the first mapping relation;
judging whether the first function module belongs to a sensitive function module corresponding to the first application program or not, and obtaining a judgment result;
and when the judgment result is yes, generating prompt information, wherein the prompt information is used for prompting a user that the first function module is intercepted.
Optionally, the determining whether the first function module belongs to the sensitive function module corresponding to the first application program specifically includes:
determining a first sensitive function module corresponding to the first application program according to a pre-stored corresponding relation table between all application programs and sensitive function modules;
comparing whether the first functional module is the same as the first sensitive functional module.
Optionally, the obtaining all the functional modules of the electronic device and the codes corresponding to the functional modules, and establishing a first mapping relationship between the functional modules and the codes specifically include:
in the process of starting an operating system of the electronic equipment, acquiring all functional modules of the electronic equipment and codes corresponding to the functional modules, and establishing a first mapping relation between the functional modules and the codes; or
In the process of starting a first application program of the electronic equipment, acquiring all functional modules of the electronic equipment and codes corresponding to the functional modules, and establishing a first mapping relation between the functional modules and the codes.
Optionally, before the determining, based on the first mapping relationship, a first functional module corresponding to the code, the method further includes:
adding an injection process in a system process of the electronic equipment;
and sending the first mapping relation to the injection process.
In a second aspect, an embodiment of the present invention provides an electronic device, including:
the first acquiring unit is used for acquiring all functional modules of the electronic equipment and codes corresponding to the functional modules and establishing a first mapping relation between the functional modules and the codes;
the first receiving unit is used for receiving codes which are requested to be called by a first application program in the electronic equipment;
a first determining unit, configured to determine, based on the first mapping relationship, a first functional module corresponding to the code;
the first judging unit is used for judging whether the first functional module belongs to a sensitive functional module corresponding to the first application program or not and obtaining a judging result;
and the first generating unit is used for generating prompt information when the judgment result is yes, wherein the prompt information is used for prompting a user that the first function module is intercepted.
Optionally, the first determining unit includes:
the determining module is used for determining a first sensitive function module corresponding to the first application program according to a pre-stored corresponding relation table between all application programs and sensitive function modules;
and the comparison module is used for comparing whether the first functional module is the same as the first sensitive functional module or not.
Optionally, the first obtaining unit specifically includes:
the first obtaining module is used for obtaining all functional modules of the electronic equipment and codes corresponding to the functional modules in the process of starting an operating system of the electronic equipment and establishing a first mapping relation between the functional modules and the codes; or
And the second acquisition module is used for acquiring all the functional modules of the electronic equipment and the codes corresponding to the functional modules in the process of starting the first application program of the electronic equipment and establishing a first mapping relation between the functional modules and the codes.
Optionally, the electronic device further includes:
a first processing unit, configured to add an injection process to a system process of the electronic device before determining a first functional module corresponding to the code based on the first mapping relationship;
and the first sending unit is used for sending the first mapping relation to the injection process.
In a third aspect, an embodiment of the present invention further provides another information processing method applied to an electronic device, where the method includes:
in the process of starting a first application program of the electronic equipment, acquiring a first sensitive function module corresponding to the first application program and a code corresponding to the first sensitive function module;
receiving code requested to be called by a first application program in the electronic equipment;
judging whether the code belongs to the code corresponding to the first sensitive function module or not, and obtaining a judgment result;
and when the judgment result is yes, generating prompt information, wherein the prompt information is used for prompting a user that the first function module is intercepted.
Optionally, the obtaining of the first sensitive function module corresponding to the first application program specifically includes:
and determining a first sensitive function module corresponding to the first application program according to a pre-stored corresponding relation table between all application programs and sensitive function modules.
Optionally, before the determining whether the code belongs to the code corresponding to the first sensitive function module, the method further includes:
adding an injection process in a system process of the electronic equipment;
and sending the code corresponding to the first sensitive function module to the injection process.
In a fourth aspect, an embodiment of the present invention further provides another electronic device, including:
the second obtaining unit is used for obtaining a first sensitive function module corresponding to a first application program of the electronic equipment and a code corresponding to the first sensitive function module in the process of starting the first application program;
the second receiving unit is used for receiving codes which are requested to be called by a first application program in the electronic equipment;
the second judging unit is used for judging whether the code belongs to the code corresponding to the first sensitive function module or not and obtaining a judging result;
and the second generating unit is used for generating prompt information when the judgment result is yes, wherein the prompt information is used for prompting a user that the first function module is intercepted.
Optionally, the second obtaining unit specifically includes:
and the determining module is used for determining a first sensitive function module corresponding to the first application program according to a pre-stored corresponding relation table between all application programs and sensitive function modules.
Optionally, the electronic device further includes:
the second processing unit is used for adding an injection process in a system process of the electronic equipment before judging whether the code belongs to the code corresponding to the first sensitive function module;
and the second sending unit is used for sending the code corresponding to the first sensitive function module to the injection process.
One or more technical solutions provided in the embodiments of the present invention have at least the following technical effects or advantages:
the method for intercepting the sensitive function provided by the embodiment of the invention comprises the following specific implementation processes: firstly, acquiring all functional modules of the electronic equipment and codes corresponding to the functional modules, and establishing a first mapping relation between the functional modules and the codes; then, receiving a code which is requested to be called by a first application program in the electronic equipment; then, determining a first functional module corresponding to the code based on the first mapping relation; finally, judging whether the first function module belongs to a sensitive function module corresponding to the first application program or not, and obtaining a judgment result; and when the judgment result is yes, generating prompt information, wherein the prompt information is used for prompting a user that the first function module is intercepted. The hardware platform or the operating system of the current electronic equipment does not need to be considered, the corresponding relation between the functional module and the code in the current electronic equipment only needs to be obtained, and then the sensitive functional module is intercepted by utilizing the corresponding relation, so that the efficiency of intercepting the sensitive functional module is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is a flowchart of an information processing method according to an embodiment of the present invention;
FIG. 2 is a flow chart of another information processing method according to an embodiment of the present invention;
fig. 3 is a schematic diagram of an electronic device according to an embodiment of the present invention;
fig. 4 is a schematic diagram of another electronic device according to an embodiment of the present invention.
Detailed Description
The embodiment of the invention provides an information processing method and electronic equipment, which are used for solving the technical problem of low efficiency of intercepting a sensitive function module by the electronic equipment in the prior art, and provides a new method for intercepting the sensitive function module, which only needs to acquire the corresponding relation between a function module and a code in the current electronic equipment without considering a hardware platform or an operating system of the current electronic equipment, so that the efficiency of intercepting the sensitive function module is improved.
The method for intercepting the sensitive function provided by the embodiment of the invention comprises the following specific implementation processes: firstly, acquiring all functional modules of the electronic equipment and codes corresponding to the functional modules, and establishing a first mapping relation between the functional modules and the codes; then, receiving a code which is requested to be called by a first application program in the electronic equipment; then, determining a first functional module corresponding to the code based on the first mapping relation; finally, judging whether the first function module belongs to a sensitive function module corresponding to the first application program or not, and obtaining a judgment result; and when the judgment result is yes, generating prompt information, wherein the prompt information is used for prompting a user that the first function module is intercepted. The hardware platform or the operating system of the current electronic equipment does not need to be considered, the corresponding relation between the functional module and the code in the current electronic equipment only needs to be obtained, and then the sensitive functional module is intercepted by utilizing the corresponding relation, so that the efficiency of intercepting the sensitive functional module is improved.
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. 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 invention.
The term "and/or" herein is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
The embodiment provides an information processing method applied to an electronic device, wherein the electronic device may be a smart phone, a tablet computer, a notebook computer, or the like. The electronic equipment is provided with an application program, and the application program can be built in the electronic equipment when the electronic equipment leaves a factory or downloaded and installed from an application market by a user. The electronic device also provides system services, each of which provides N kinds of function modules, for example: the system services may be: short message, this system service of short message provides 3 kinds of functional modules: sending and receiving short messages and setting the format of the short messages. The application program calls a certain function module in a certain service through a system process.
Referring to fig. 1, fig. 1 is a flowchart of an information processing method according to an embodiment of the present invention. The method comprises the following steps:
step 11: acquiring all functional modules of the electronic equipment and codes corresponding to the functional modules, and establishing a first mapping relation between the functional modules and the codes;
step 12: receiving code requested to be called by a first application program in the electronic equipment;
step 13: determining a first functional module corresponding to the code based on the first mapping relation;
step 14: judging whether the first function module belongs to a sensitive function module corresponding to the first application program or not, and obtaining a judgment result;
step 15: and when the judgment result is yes, generating prompt information, wherein the prompt information is used for prompting a user that the first function module is intercepted.
First, the implementation of step 11 will be described in detail.
Since the electronic device provides system services, each system service provides N kinds of function modules, the mapping relationship between all function modules and codes can be obtained by using a reflection method. Which is a technical measure in the prior art and will not be described in detail here. The mapping relationship between all the functional modules and the codes can be embodied by a table, for example, table 1, where table 1 lists the mapping relationship between all the functional modules and the codes in the electronic device.
TABLE 1 mapping relationship between all functional modules and codes in an electronic device
In the embodiment of the present invention, step 11 specifically has the following two implementation manners:
the first embodiment is as follows: in the process of starting an operating system of the electronic equipment, acquiring all functional modules of the electronic equipment and codes corresponding to the functional modules, and establishing a first mapping relation between the functional modules and the codes.
The second embodiment is as follows: in the process of starting a first application program of the electronic equipment, acquiring all functional modules of the electronic equipment and codes corresponding to the functional modules, and establishing a first mapping relation between the functional modules and the codes.
Specifically, for the convenience of subsequent use of the mapping relationship, the mapping relationship between all functional modules and codes in the electronic device may be determined by using a reflection method during the startup of the operating system of the electronic device. If an application in the electronic device sends a code, it can determine what the application requests the called function module by using the mapping relation.
And in the process of starting the application program in the electronic equipment, determining the corresponding relation between all the functional modules in the electronic equipment and the codes by using a reflection method. If the application sends a code, using the mapping relationship, it can be determined what the application requests the function module to be called.
Next, step 12 is performed: and receiving the code called by the first application program request in the electronic equipment.
Specifically, an application in the electronic device sends a code to a system process when it requests a function module of a service to be invoked. For example: the code sent by the application program to the system process is: 41. 42, or 13, etc.
The following are specifically mentioned: in the process of implementing the method for intercepting a sensitive function module according to the embodiment of the present invention, the execution sequence of step 11 and step 12 may be partially in sequence, where step 11 is executed first, and then step 12 is executed, and step 12 is executed first, and then step 11 is executed.
In the embodiment of the present invention, before performing step 13, the following steps may also be performed:
adding an injection process in a system process of the electronic equipment;
and sending the first mapping relation to the injection process.
Specifically, since the system process does not have the function of intercepting the sensitive function module, in order to prevent the application program from calling the sensitive function module, an injection process for intercepting the sensitive function module may be injected into the system process. And determining the functional module corresponding to the code by the injection process by utilizing the mapping relation, and further judging whether the functional module called by the application program is a sensitive functional module. The sensitive function module is set by the electronic equipment or an application program, and can be defined by the user.
For a common operating system Android (Android) system in the prior art, a mapping relation between all functional modules and codes in electronic equipment can be obtained by a reflection method on a frame layer, then the mapping relation is sent to a Native layer, and an injection process working on the Native layer is used for intercepting sensitive functional modules.
Next, step 13 is performed: and determining a first functional module corresponding to the code based on the first mapping relation.
Specifically, since the injection process obtains the mapping relationship between all the functional modules and codes in the electronic device, and codes called by an application program in the electronic device, it is possible to determine what the corresponding functional module is coded in the electronic device using the mapping relationship. For example: if the code is 11, determining the corresponding functional module as follows according to table 1: and sending the short message.
According to the method, for one code, what the corresponding functional module in the electronic equipment is can be determined, the real-time dynamic matching of the code and the functional module is realized, and the code is mapped to the functional module in the electronic equipment. The hardware platform and the operating system of the electronic equipment are determined, then a record matched with the hardware platform and the operating system of the electronic equipment is found from the table, and then the functional module corresponding to the code is found from the record.
After the injection process determines the first functional module corresponding to the code requested to be called by the application program by using the mapping relationship, step 14 may be executed: and judging whether the first functional module belongs to the sensitive functional module. The method specifically comprises the following steps:
determining a first sensitive function module corresponding to the first application program according to a pre-stored corresponding relation table between all application programs and sensitive function modules;
comparing whether the first functional module is the same as the first sensitive functional module.
In particular, for an application program, its sensitive functional modules are fixed, independent of the operating system or hardware platform of the electronic device. The sensitive function modules corresponding to different applications may be the same or different. The electronic device may store a correspondence table between the application programs and the sensitive function modules in advance, where the table records what the sensitive function module corresponding to each application program is. As shown in table 2, table 2 lists the corresponding relationship between all the applications and the sensitive function modules in the electronic device. After receiving the code requested to be called by the first application program in the electronic device, the first sensitive function module corresponding to the first application program may be found from table 2, and then it is determined whether the first function module mapped by the code belongs to the first sensitive function module, if so, step 15 is executed, that is: and generating prompt information to prompt the user that the first functional module is intercepted. The first function module must be intercepted because it belongs to a sensitive function module of the first application, is set as a function affecting information security by the electronic device or the application, or is defined as a function affecting information security by the user himself.
If the first function module of the code mapping is judged not to belong to the sensitive function module of the first application program, the following steps are executed:
and when the judgment result is negative, calling the first function module.
Specifically, since the operation of the first functional module does not affect the information security, it is not intercepted and thus is successfully called.
TABLE 2 correspondence between all applications and sensitive function modules in an electronic device
For example, an application program in the electronic device is WeChat, a code called by an injection process receiving a WeChat request is 51, and by using a mapping relationship, a function module for determining 51 mapping is: and according to the table 2, if the chat record is a sensitive function module of the WeChat, the injection process intercepts the function module, and accordingly, the electronic device generates prompt information and sends the prompt information to the user to prompt the user that the reading of the chat record fails. If the code called by the WeChat request received by the injection process is 62, determining 62 that the mapped functional module is: information, and according to table 2, the function module is not a sensitive function module of the WeChat, the injection process will not intercept the function module, and the function module will be called successfully.
The method for intercepting the sensitive function module adopts the following strategies: the electronic equipment acquires all functional modules of the electronic equipment and codes corresponding to the functional modules, maps the codes requested to be called by a first application program in the electronic equipment into the first functional module by utilizing the mapping relation between the functional modules and the codes, and then judges whether the first functional module belongs to a sensitive functional module corresponding to the first application program, so that the sensitive functional module is intercepted.
The embodiment of the invention also provides a method for intercepting the sensitive function, which adopts a different strategy from the method, and specifically comprises the following steps: in the process of starting a first application program of the electronic equipment, acquiring a first sensitive function module corresponding to the first application program and a code corresponding to the first sensitive function module; and then judging whether the code requested to be called by the first application program belongs to the code corresponding to the first sensitive function module or not, thereby realizing interception of the sensitive function module.
Referring to fig. 2, fig. 2 is a flowchart of another information processing method according to an embodiment of the present invention. The method comprises the following steps:
step 21: in the process of starting a first application program of the electronic equipment, acquiring a first sensitive function module corresponding to the first application program and a code corresponding to the first sensitive function module;
step 22: receiving code requested to be called by a first application program in the electronic equipment;
step 23: judging whether the code belongs to the code corresponding to the first sensitive function module or not, and obtaining a judgment result;
step 24: and when the judgment result is yes, generating prompt information, wherein the prompt information is used for prompting a user that the first function module is intercepted.
In step 21, the obtaining of the first sensitive function module corresponding to the first application program specifically includes:
and determining a first sensitive function module corresponding to the first application program according to a pre-stored corresponding relation table of all application programs and sensitive function modules.
In particular, as previously mentioned, the sensitive functional modules of an application are fixed and independent of the operating system or hardware platform of the electronic device. The sensitive function modules corresponding to different applications may be the same or different. The electronic device may store a correspondence table between the application programs and the sensitive function modules in advance, where the table records what the sensitive function module corresponding to each application program is. As shown in table 2, table 2 lists the corresponding relationship between all the applications and the sensitive function modules in the electronic device. In the process of starting the first application program of the electronic device, the first sensitive function module corresponding to the first application program may be acquired according to table 2. For example: in the process of initiating the WeChat in the electronic device, according to Table 2, the sensitive function module corresponding to the WeChat can be obtained as follows: chat records, contacts, galleries.
In the process of starting the first application program of the electronic equipment, a mapping relation between the first sensitive function module and the code can be obtained by utilizing a reflection method. Which is a technical measure in the prior art and will not be described in detail here. The mapping relationship between the first sensitive function module and the code may be embodied as a table, for example, table 3, where table 3 lists the mapping relationship between the first sensitive function module and the code corresponding to the first application program.
TABLE 3 mapping relationship between the first sensitive function module and the code corresponding to the first application
Next, step 22 is performed: and receiving the code called by the first application program request in the electronic equipment.
Specifically, an application in the electronic device sends a code to a system process when it requests a function module of a service to be invoked. For example: the code sent by the application program to the system process is: 41. 42, or 13, etc.
The following are specifically mentioned: in the process of specifically implementing the method for intercepting the sensitive function module according to the embodiment of the present invention, the execution sequence of step 21 and step 22 may be partially in sequence, where step 21 is executed first, and then step 22 is executed, and step 22 is executed first, and then step 21 is executed.
In the embodiment of the present invention, before performing step 23, the following steps may also be performed:
adding an injection process in a system process of the electronic equipment;
and sending the code corresponding to the first sensitive function module to the injection process.
Specifically, since the system process does not have the function of intercepting the sensitive function module, in order to prevent the application program from calling the sensitive function module, an injection process for intercepting the sensitive function module may be injected into the system process. And judging whether the function code called by the application program is the code corresponding to the sensitive function module corresponding to the application program or not by the injection process. The sensitive function module is set by the electronic equipment or an application program, and can be defined by the user.
For a common operating system Android (Android) system in the prior art, a mapping relation between a first sensitive function module corresponding to a first application program and a code can be obtained on a frame layer by using a reflection method, then the mapping relation is sent to a Native layer, and an injection process working on the Native layer is used for intercepting the sensitive function module.
Next, step 23 is performed: and judging whether the code belongs to the code corresponding to the first sensitive function module or not, and obtaining a judgment result. According to the judgment result, executing the step 24 or executing the following steps:
and when the judgment result is negative, calling the first function module.
Specifically, after receiving the code requested to be called by the first application program in the electronic device, the code corresponding to the first sensitive function module corresponding to the first application program may be found from table 3, and then it is determined whether the received code is the same as the code corresponding to the first sensitive function module, and if the received code is the same as the code corresponding to the first sensitive function module, step 24 is executed, that is: and generating prompt information to prompt the user that the first functional module is intercepted. The first function module must be intercepted because it belongs to a sensitive function module of the first application, is set as a function affecting information security by the electronic device or the application, or is defined as a function affecting information security by the user himself.
If the received code is judged to be different from the code corresponding to the first sensitive function module, the following steps are executed:
and when the judgment result is negative, calling the first function module.
Specifically, since the operation of the first functional module does not affect the information security, it is not intercepted and thus is successfully called.
For example, an application program in the electronic device is a WeChat, and according to table 2, it is determined that a sensitive function module corresponding to the WeChat is: contacts, chat logs, galleries. Table 3 is obtained by using the reflection technique, and table 3 records that the sensitive function module corresponding to the WeChat is: the corresponding codes of the contact person, the chat record and the gallery are as follows: 51. 52, 53. Assuming that the code called by the injection process receiving the wechat request is 51 and belongs to the codes listed in table 3, the injection process intercepts the function module, and accordingly, the electronic device generates a prompt message and sends the prompt message to the user to prompt the user that the reading of the chat record fails. If the code that the injection process receives the WeChat request call is 62, which does not belong to the code listed in Table 3, the injection process will not intercept the function module, and the function module will be called successfully.
Compared with the information processing method shown in fig. 1, in the information processing method shown in fig. 2, for intercepting the sensitive function module for the specific application program, since only the code corresponding to the sensitive function module corresponding to the specific application program needs to be obtained, and the codes corresponding to all the function modules in the electronic device do not need to be obtained, the efficiency of intercepting the sensitive function module by the method shown in fig. 2 is further improved.
Based on the same inventive concept as the information processing method shown in fig. 1, an embodiment of the present invention further provides an electronic device, please refer to fig. 3, and fig. 3 is a schematic diagram of an electronic device provided in an embodiment of the present invention. The electronic device includes:
a first obtaining unit 31, configured to obtain all function modules of the electronic device and codes corresponding to the function modules, and establish a first mapping relationship between the function modules and the codes;
a first receiving unit 32, configured to receive a code that a first application in the electronic device requests to call;
a first determining unit 33, configured to determine, based on the first mapping relationship, a first functional module corresponding to the code;
a first determining unit 34, configured to determine whether the first function module belongs to a sensitive function module corresponding to the first application, and obtain a determination result;
and a first generating unit 35, configured to generate a prompt message when the determination result is yes, where the prompt message is used to prompt a user that the first function module is intercepted.
Optionally, the first judging unit 34 includes:
the determining module is used for determining a first sensitive function module corresponding to the first application program according to a pre-stored corresponding relation table between all application programs and sensitive function modules;
and the comparison module is used for comparing whether the first functional module is the same as the first sensitive functional module or not.
Optionally, the first obtaining unit 31 specifically includes:
the first obtaining module is used for obtaining all functional modules of the electronic equipment and codes corresponding to the functional modules in the process of starting an operating system of the electronic equipment and establishing a first mapping relation between the functional modules and the codes; or
And the second acquisition module is used for acquiring all the functional modules of the electronic equipment and the codes corresponding to the functional modules in the process of starting the first application program of the electronic equipment and establishing a first mapping relation between the functional modules and the codes.
Optionally, the electronic device further includes:
a first processing unit, configured to add an injection process to a system process of the electronic device before determining a first functional module corresponding to the code based on the first mapping relationship;
and the first sending unit is used for sending the first mapping relation to the injection process.
Based on the same inventive concept as the information processing method shown in fig. 2, an embodiment of the present invention further provides another electronic device, please refer to fig. 4, and fig. 4 is a schematic diagram of another electronic device provided in the embodiment of the present invention. The electronic device includes:
a second obtaining unit 41, configured to obtain, in a process of starting a first application program of the electronic device, a first sensitive function module corresponding to the first application program and a code corresponding to the first sensitive function module;
a second receiving unit 42, configured to receive a code that a first application in the electronic device requests to call;
a second judging unit 43, configured to judge whether the code belongs to the code corresponding to the first sensitive function module, and obtain a judgment result;
and the second generating unit 44 is configured to generate a prompt message when the determination result is yes, where the prompt message is used to prompt a user that the first function module is intercepted.
Optionally, the second obtaining unit 41 specifically includes:
and the determining module is used for determining a first sensitive function module corresponding to the first application program according to a pre-stored corresponding relation table between all application programs and sensitive function modules.
Optionally, the electronic device further includes:
the second processing unit is used for adding an injection process in a system process of the electronic equipment before judging whether the code belongs to the code corresponding to the first sensitive function module;
and the second sending unit is used for sending the code corresponding to the first sensitive function module to the injection process.
One or more technical solutions provided in the embodiments of the present invention have at least the following technical effects or advantages:
the method for intercepting the sensitive function provided by the embodiment of the invention comprises the following specific implementation processes: firstly, acquiring all functional modules of the electronic equipment and codes corresponding to the functional modules, and establishing a first mapping relation between the functional modules and the codes; then, receiving a code which is requested to be called by a first application program in the electronic equipment; then, determining a first functional module corresponding to the code based on the first mapping relation; finally, judging whether the first function module belongs to a sensitive function module corresponding to the first application program or not, and obtaining a judgment result; and when the judgment result is yes, generating prompt information, wherein the prompt information is used for prompting a user that the first function module is intercepted. The hardware platform or the operating system of the current electronic equipment does not need to be considered, the corresponding relation between the functional module and the code in the current electronic equipment only needs to be obtained, and then the sensitive functional module is intercepted by utilizing the corresponding relation, so that the efficiency of intercepting the sensitive functional module is improved.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Specifically, the computer program instructions corresponding to an information processing method in the embodiments of the present application may be stored on a storage medium such as an optical disc, a hard disc, a usb disk, or the like, and when the computer program instructions corresponding to the information processing method in the storage medium are read or executed by an electronic device, the method includes the following steps:
acquiring all functional modules of the electronic equipment and codes corresponding to the functional modules, and establishing a first mapping relation between the functional modules and the codes;
receiving code requested to be called by a first application program in the electronic equipment;
determining a first functional module corresponding to the code based on the first mapping relation;
judging whether the first function module belongs to a sensitive function module corresponding to the first application program or not, and obtaining a judgment result;
and when the judgment result is yes, generating prompt information, wherein the prompt information is used for prompting a user that the first function module is intercepted.
Optionally, the step of storing in the storage medium: judging whether the first function module belongs to a sensitive function module corresponding to the first application program, wherein the specific executed process of the corresponding computer instruction is as follows:
determining a first sensitive function module corresponding to the first application program according to a pre-stored corresponding relation table between all application programs and sensitive function modules;
comparing whether the first functional module is the same as the first sensitive functional module.
Optionally, the step of storing in the storage medium: acquiring all functional modules of the electronic device and codes corresponding to the functional modules, and establishing a first mapping relationship between the functional modules and the codes, wherein in a specific executed process, a corresponding computer instruction specifically comprises:
in the process of starting an operating system of the electronic equipment, acquiring all functional modules of the electronic equipment and codes corresponding to the functional modules, and establishing a first mapping relation between the functional modules and the codes; or
In the process of starting a first application program of the electronic equipment, acquiring all functional modules of the electronic equipment and codes corresponding to the functional modules, and establishing a first mapping relation between the functional modules and the codes.
Optionally, the storage medium further stores other computer instructions, and the computer instructions perform the following steps: determining a first functional module corresponding to the code based on the first mapping relation, wherein the corresponding computer instructions are executed before being executed, and the method comprises the following steps:
adding an injection process in a system process of the electronic equipment;
and sending the first mapping relation to the injection process.
Specifically, the computer program instructions corresponding to another information processing method in the embodiment of the present application may be stored on a storage medium such as an optical disc, a hard disc, a usb disk, or the like, and when the computer program instructions corresponding to the information processing method in the storage medium are read or executed by an electronic device, the method includes the following steps:
in the process of starting a first application program of the electronic equipment, acquiring a first sensitive function module corresponding to the first application program and a code corresponding to the first sensitive function module;
receiving code requested to be called by a first application program in the electronic equipment;
judging whether the code belongs to the code corresponding to the first sensitive function module or not, and obtaining a judgment result;
and when the judgment result is yes, generating prompt information, wherein the prompt information is used for prompting a user that the first function module is intercepted.
Optionally, the step of storing in the storage medium: acquiring a first sensitive function module corresponding to the first application program, wherein the corresponding computer instruction is specifically:
and determining a first sensitive function module corresponding to the first application program according to a pre-stored corresponding relation table between all application programs and sensitive function modules.
Optionally, the storage medium further stores other computer instructions, and the computer instructions perform the following steps: judging whether the code belongs to the code corresponding to the first sensitive function module, wherein the corresponding computer instruction is executed before being executed, and the method comprises the following steps:
adding an injection process in a system process of the electronic equipment;
and sending the code corresponding to the first sensitive function module to the injection process.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.
Claims (10)
1. An information processing method applied to an electronic device, the method comprising:
acquiring all functional modules of the electronic equipment and codes corresponding to the functional modules, and establishing a first mapping relation between the functional modules and the codes;
receiving code requested to be called by a first application program in the electronic equipment;
determining a first functional module corresponding to the code based on the first mapping relation;
judging whether the first function module belongs to a sensitive function module corresponding to the first application program or not, and obtaining a judgment result;
when the judgment result is yes, generating prompt information, wherein the prompt information is used for prompting a user that the first function module is intercepted; wherein,
the determining whether the first function module belongs to the sensitive function module corresponding to the first application program specifically includes:
determining a first sensitive function module corresponding to the first application program according to a pre-stored corresponding relation table between all application programs and sensitive function modules;
comparing whether the first functional module is the same as the first sensitive functional module.
2. The method according to claim 1, wherein the obtaining all the functional modules of the electronic device and the codes corresponding to the functional modules, and establishing the first mapping relationship between the functional modules and the codes, specifically:
in the process of starting an operating system of the electronic equipment, acquiring all functional modules of the electronic equipment and codes corresponding to the functional modules, and establishing a first mapping relation between the functional modules and the codes; or
In the process of starting a first application program of the electronic equipment, acquiring all functional modules of the electronic equipment and codes corresponding to the functional modules, and establishing a first mapping relation between the functional modules and the codes.
3. The method of claim 1, wherein prior to said determining a first functional module to which the code corresponds based on the first mapping relationship, the method further comprises:
adding an injection process in a system process of the electronic equipment;
and sending the first mapping relation to the injection process.
4. An electronic device, comprising:
the first acquiring unit is used for acquiring all functional modules of the electronic equipment and codes corresponding to the functional modules and establishing a first mapping relation between the functional modules and the codes;
the first receiving unit is used for receiving codes which are requested to be called by a first application program in the electronic equipment;
a first determining unit, configured to determine, based on the first mapping relationship, a first functional module corresponding to the code;
the first judging unit is used for judging whether the first functional module belongs to a sensitive functional module corresponding to the first application program or not and obtaining a judging result;
the first generating unit is used for generating prompt information when the judgment result is yes, wherein the prompt information is used for prompting a user that the first function module is intercepted; wherein,
the first judgment unit includes:
the determining module is used for determining a first sensitive function module corresponding to the first application program according to a pre-stored corresponding relation table between all application programs and sensitive function modules;
and the comparison module is used for comparing whether the first functional module is the same as the first sensitive functional module or not.
5. The electronic device according to claim 4, wherein the first obtaining unit is specifically:
the first obtaining module is used for obtaining all functional modules of the electronic equipment and codes corresponding to the functional modules in the process of starting an operating system of the electronic equipment and establishing a first mapping relation between the functional modules and the codes; or
And the second acquisition module is used for acquiring all the functional modules of the electronic equipment and the codes corresponding to the functional modules in the process of starting the first application program of the electronic equipment and establishing a first mapping relation between the functional modules and the codes.
6. The electronic device of claim 4, wherein the electronic device further comprises:
a first processing unit, configured to add an injection process to a system process of the electronic device before determining a first functional module corresponding to the code based on the first mapping relationship;
and the first sending unit is used for sending the first mapping relation to the injection process.
7. An information processing method applied to an electronic device, the method comprising:
in the process of starting a first application program of the electronic equipment, acquiring a first sensitive function module corresponding to the first application program and a code corresponding to the first sensitive function module;
receiving code requested to be called by a first application program in the electronic equipment;
judging whether the code belongs to the code corresponding to the first sensitive function module or not, and obtaining a judgment result;
when the judgment result is yes, generating prompt information, wherein the prompt information is used for prompting a user that the first function module is intercepted; wherein,
the acquiring of the first sensitive function module corresponding to the first application program specifically includes:
and determining a first sensitive function module corresponding to the first application program according to a pre-stored corresponding relation table between all application programs and sensitive function modules.
8. The method of claim 7, wherein prior to said determining whether said code belongs to a code corresponding to said first sensitive function module, said method further comprises:
adding an injection process in a system process of the electronic equipment;
and sending the code corresponding to the first sensitive function module to the injection process.
9. An electronic device, comprising:
the second obtaining unit is used for obtaining a first sensitive function module corresponding to a first application program of the electronic equipment and a code corresponding to the first sensitive function module in the process of starting the first application program;
the second receiving unit is used for receiving codes which are requested to be called by a first application program in the electronic equipment;
the second judging unit is used for judging whether the code belongs to the code corresponding to the first sensitive function module or not and obtaining a judging result;
the second generating unit is used for generating prompt information when the judgment result is yes, wherein the prompt information is used for prompting a user that the first function module is intercepted; wherein,
the second obtaining unit is specifically:
and the determining module is used for determining a first sensitive function module corresponding to the first application program according to a pre-stored corresponding relation table between all application programs and sensitive function modules.
10. The electronic device of claim 9, wherein the electronic device further comprises:
the second processing unit is used for adding an injection process in a system process of the electronic equipment before judging whether the code belongs to the code corresponding to the first sensitive function module;
and the second sending unit is used for sending the code corresponding to the first sensitive function module to the injection process.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510221505.5A CN104850778B (en) | 2015-05-04 | 2015-05-04 | A kind of information processing method and electronic equipment |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510221505.5A CN104850778B (en) | 2015-05-04 | 2015-05-04 | A kind of information processing method and electronic equipment |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN104850778A CN104850778A (en) | 2015-08-19 |
| CN104850778B true CN104850778B (en) | 2019-08-27 |
Family
ID=53850417
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201510221505.5A Active CN104850778B (en) | 2015-05-04 | 2015-05-04 | A kind of information processing method and electronic equipment |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN104850778B (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111813407B (en) | 2019-10-28 | 2022-02-18 | 厦门雅基软件有限公司 | Game development method, game running device and electronic equipment |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102289633A (en) * | 2011-09-02 | 2011-12-21 | 广东欧珀移动通信有限公司 | Application dynamic permission management method under Android platform |
| CN102968321A (en) * | 2012-11-22 | 2013-03-13 | 用友软件股份有限公司 | Application program installation device and application program installation method |
| CN104063654A (en) * | 2014-05-30 | 2014-09-24 | 小米科技有限责任公司 | Monitoring method and device for application program |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN100583118C (en) * | 2005-10-13 | 2010-01-20 | 株式会社Ntt都科摩 | Mobile terminal, access control management device, and access control management method |
| CN103593605B (en) * | 2013-10-24 | 2016-11-09 | 复旦大学 | A Dynamic Analysis System for Android Platform Applications Based on Permission Usage Behavior |
| CN104484599B (en) * | 2014-12-16 | 2017-12-12 | 北京奇虎科技有限公司 | A kind of behavior treating method and apparatus based on application program |
-
2015
- 2015-05-04 CN CN201510221505.5A patent/CN104850778B/en active Active
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102289633A (en) * | 2011-09-02 | 2011-12-21 | 广东欧珀移动通信有限公司 | Application dynamic permission management method under Android platform |
| CN102968321A (en) * | 2012-11-22 | 2013-03-13 | 用友软件股份有限公司 | Application program installation device and application program installation method |
| CN104063654A (en) * | 2014-05-30 | 2014-09-24 | 小米科技有限责任公司 | Monitoring method and device for application program |
Also Published As
| Publication number | Publication date |
|---|---|
| CN104850778A (en) | 2015-08-19 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN109492378B (en) | Identity verification method based on equipment identification code, server and medium | |
| CN106550031B (en) | The method and device of data backup | |
| CN109783249B (en) | Platform access method and device, terminal and computer readable storage medium | |
| CN105302711B (en) | Application restoration method and device and terminal | |
| CN106201574A (en) | Method and device for starting an application interface | |
| CN107104923B (en) | Account binding and service processing method and device | |
| CN110727941B (en) | Privacy data protection method and device, terminal equipment and storage medium | |
| CN113986747A (en) | Data generation method and device, electronic equipment and storage medium | |
| CN116455917A (en) | Data synchronization method and device, electronic equipment and computer readable storage medium | |
| CN109086077A (en) | A kind of operation method and device of application program | |
| CN103001934A (en) | Terminal application login method and terminal application login system | |
| CN111191216B (en) | OFD signature client with JAVA interface and method and system for signature verification | |
| CN108037989B (en) | SDK component identification method and device | |
| CN104850778B (en) | A kind of information processing method and electronic equipment | |
| CN108241515B (en) | Application shortcut establishing method and terminal | |
| CN106507300A (en) | A kind of method for giving loss terminal for change, device and terminal | |
| CN112181830B (en) | Memory leak detection method, device, terminal and medium | |
| CN113935010A (en) | Mobile banking login method and device based on blockchain and 5G messages | |
| CN111158935B (en) | Application program detection method and device, computer equipment and storage medium | |
| CN112036837A (en) | Signature processing method, device, system, equipment and computer readable storage medium | |
| CN116560879B (en) | Method and device for calling face recognition service, terminal equipment and storage medium | |
| CN111654864A (en) | Secondary authentication method and related equipment | |
| CN105577621B (en) | Business operation verification method, device and system | |
| CN106778255A (en) | Credible performing environment isolation detection method and device based on internal memory traversal | |
| WO2020233044A1 (en) | Plug-in verification method and device, and server and computer-readable storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| EXSB | Decision made by sipo to initiate substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |