Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Interface calling method and device, equipment and medium

A technology of interface calling and interface, which is applied in the computer field, can solve the problems that affect the functions of non-system applications, and non-system applications cannot call non-SDK interfaces, so as to ensure safe and stable operation and normal functions.

Pending Publication Date: 2022-06-03
北京博睿宏远数据科技股份有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The present invention provides an interface calling method, device, equipment and medium to solve the problem in related technologies that non-system application programs installed in electronic equipment cannot call non-SDK interfaces in the system, which affects most non-system applications Problems with the functionality of the program

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Interface calling method and device, equipment and medium
  • Interface calling method and device, equipment and medium
  • Interface calling method and device, equipment and medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0028] figure 1 This is a flowchart of an interface calling method provided in Embodiment 1 of the present invention. This embodiment can be applied to a non-system application program installed in an electronic device to invoke an interface provided in an operating system of the electronic device, thereby realizing a non-system application program In the case of corresponding functions, the method can be executed by an interface invocation device, which can be implemented in the form of hardware and / or software, and the interface invocation device can be configured in a non-system application program. Non-system applications are installed in electronic devices. like figure 1 As shown, the method includes:

[0029] Step 101: Determine the interface type of the interface to be called according to the interface information of the interface to be called.

[0030] Optionally, the interface to be called is an interface provided in the operating system of the electronic device th...

Embodiment 2

[0056] figure 2 This is a flowchart of an interface invocation method provided in Embodiment 2 of the present invention. This embodiment of the present invention may be combined with each optional solution in one or more of the foregoing embodiments. like figure 2 As shown, the method includes:

[0057] Step 201: Determine the interface type of the interface to be called according to the interface information of the interface to be called.

[0058] Step 202 , in the information associated with the non-system application program in the system, determine the interface restriction flag information corresponding to the non-system application program in the system.

[0059] Wherein, the interface restriction flag information is used to control whether the system enables the mechanism of restricting the non-system application from calling each non-SDK interface in the system.

[0060] Optionally, the system is an operating system of the electronic device. An interface restrict...

Embodiment 3

[0068] image 3 This is a schematic structural diagram of an interface invocation apparatus provided in Embodiment 3 of the present invention. The apparatus may be configured in an electronic device. like image 3 As shown, the apparatus includes: an interface type determination module 301 , a reflection class acquisition module 302 and an interface invocation module 303 .

[0069] The interface type determination module 301 is used to determine the interface type of the interface to be called according to the interface information of the interface to be called; the reflection class acquisition module 302 is used to determine the interface type of the interface to be called if the interface type of the interface to be called is a non-SDK interface, Then, obtain the reflection class corresponding to the interface to be called in the interface information of the interface to be called; wherein, the reflection class is used to call the interface to be called by reflection; the ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses an interface calling method and device, equipment and a medium. The method comprises the steps of determining an interface type of a to-be-called interface according to interface information of the to-be-called interface; if the interface type of the to-be-called interface is a non-SDK interface, obtaining a reflection class corresponding to the to-be-called interface from interface information of the to-be-called interface; the reflection class is used for reflecting and calling the to-be-called interface; and based on the reflection class, reflecting and calling the to-be-called interface. According to the embodiment of the invention, the to-be-called interface can be called in a reflection manner based on the reflection class provided in the operating system of the electronic equipment, a caller of the to-be-called interface is converted from a non-system application program to a system, identity conversion of the caller of the to-be-called interface is realized, and non-system application program calling is converted into system calling; according to the method, calling of the to-be-called interface is completed through system calling, the non-SDK interface which cannot be directly called in the system is called in a reflection calling mode, and it is guaranteed that a non-system application program runs safely and stably.

Description

technical field [0001] The present invention relates to the field of computer technology, and in particular, to an interface calling method, apparatus, device and medium. Background technique [0002] The interfaces provided in the operating system of the electronic device usually include two types, one is a general software development kit (Software Development Kit, SDK) interface, and the other is a non-SDK interface. When an application installed in an electronic device is running, it needs to call some interfaces in the system. [0003] In the related art, in order to improve the stability of the operating system of the electronic device, non-system applications installed in the electronic device are generally prohibited from calling non-SDK interfaces in the system, thereby affecting the functions of most non-system applications. SUMMARY OF THE INVENTION [0004] The present invention provides an interface calling method, device, device and medium, so as to solve the...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F13/38
CPCG06F13/382
Inventor 袁耀辉朱家锐
Owner 北京博睿宏远数据科技股份有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products