https://developer.android.com/ndk/guides/stable_apis
And even if you try to be clever,
"Improving Stability with Private C/C++ Symbol Restrictions in Android N"
https://android-developers.googleblog.com/2016/06/improving-...
"Namespaces for Native Libraries"
https://source.android.com/docs/core/permissions/namespaces_...