摘要 |
Embodiments of the present invention provide an API monitoring method and device. The API monitoring method includes steps such as identifying a plurality of APIs as privacy-sensitive APIs; in response to detecting an invocation of one of the privacy-sensitive API by an application, determining whether the invoked API and the application satisfy a predefined condition; and if the invoked API and the application satisfy the predefined condition, suspending the invocation of the API by the application, displaying a message, wherein the message indicates that the application attempts to invoke the privacy-sensitive API; and determining whether or not to resume the invocation of the API based on a user response to the message. The device may be used to carry out the method. |