Joke Collection Website - Blessing messages - What is an sdk interface and what is a non-SDK interface? Seeking answers in a popular way,

What is an sdk interface and what is a non-SDK interface? Seeking answers in a popular way,

First of all, the open SDK interfaces are those recorded in the package index of Android framework, and the processing of non-SDK interfaces is the implementation details of API abstraction, so these interfaces may be changed at any time without notice.

For example, when an application interacts with a class through reflection and other mechanisms (WebView, HTTP, etc.). ), it should not access methods or fields that are not listed in the SDK after android9.0, otherwise it will prompt an error, and the application should honestly use the API provided by Google Big Brother.

Extended data:

Test during application debugging.

First, it is recommended to open lintOptions and check other problems.

In addition, build and run a debuggable application on a device or simulator equipped with Android 9(API level 28) or higher to test whether the application uses a non-SDK interface.

When running a test on an application, if the application accesses some non-SDK interfaces, the system will output a log message.

You can check the application's log messages for the following details:

Declared class, name and type (in the format used by Android runtime).

Access mode: link, reflection or JNI

Which list does the accessed non-SDK interface belong to?