Unofficial APIs will be blocked in Android P, but devs can request new APIs they need
We’d gotten wind of this change a few weeks ago, but now it’s official: Google will be restricting access to non-public APIs in the next version of Android. This means that in Android P and going forward, APIs that are unofficially supported in Android’s SDK will (generally) not be available to developers to use in their apps.
Using unofficial APIs in an app is risky, as it can sometimes cause unexpected issues and lead to bugs and errors when a new release unintentionally changes how the API works.
Unofficial APIs will be blocked in Android P, but devs can request new APIs they need was written by the awesome team at Android Police.