Application program interface (API) intercepting method and device and mobile terminal
A technology that is activated and progressed, applied in the direction of program control devices, error judgments, instruments, etc., and can solve problems such as unapplicable function expansion or modification
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0042] Such as figure 1 As shown, the embodiment of the present invention provides a method for intercepting functions, including:
[0043] Step 101: Real-time monitoring of the API process in the virtual machine corresponding to the system according to the process identifier of the API process;
[0044] Step 102: when the API process is started, obtain the virtual machine instance corresponding to the API process from memory according to the process ID of the API process;
[0045]Step 103: According to the identification information of the API to be intercepted, from the virtual machine instance corresponding to the API process, replace the code pointing address of the first API written in the first computer language to be intercepted with the stored code written in the second computer language and The code of the second API corresponding to the first API points to an address, and the second language is different from the first code;
[0046] The control over the API proces...
Embodiment 2
[0049] The embodiment of the present invention provides a method for intercepting functions.
[0050] Among them, the target application is an application that needs to be extended or modified, and the function of the target application can be extended or modified by modifying one or more steps included in the target application. ; Wherein, the API used to realize these steps is the first API to be intercepted; and the technician has developed the second API in advance, and the second API is used to realize the modified steps, and the method provided by this embodiment is used to run The function to be intercepted called by the API process of the target application is intercepted, so that the API process calls the second API developed by the technician in advance, so that the function of the target application is extended or the function of the target application is modified. see figure 2 , the method includes:
[0051] Step 201: Monitor the API process running the target a...
Embodiment 3
[0075] Such as image 3 As shown, the embodiment of the present invention provides an API interception device, including:
[0076] The monitoring module 301 is used to monitor the API process in real time in the virtual machine corresponding to the system according to the process identification of the API process;
[0077]The obtaining module 302 is used to obtain a virtual machine instance corresponding to the API process from the memory according to the process identification of the API process when the API process is started;
[0078] The interception module 303 is used to replace the code pointing address of the first API written in the first computer language to be intercepted with the stored code in the second computer language from the virtual machine instance corresponding to the API process according to the identification information of the API to be intercepted. The code of the second API written and corresponding to the first API points to the address, and the seco...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com