Invalid DT_NEEDED entry warnings on Android Nougat
|Reported by:||mvglasow (2)||Owned by:||cp15|
After switching to Android Nougat, I get an error message on startup, after which Navit operates normally.
The message is repeated a few times, for a couple of libraries:
libgraphics_android.so: invalid DT_NEEDED entry "/data/data/org.navitproject.navit/lib/libnavit.so"
According to https://android-developers.googleblog.com/2016/06/android-changes-for-ndk-developers.html, this is due to libnavit.so being incorrectly referenced with a full path name. Earlier versions of Android would simply strip the path and look for the library in the default paths, but beginning with API 23, Android starts complaining.
Reproduced with R7272.