If you need RTTI, I don’t think you should replace stl lib.
Similarly, the NDK toolchain supports C++ RTTI (RunTime Type Information)
since NDK r5, but all C++ sources are built with -fno-rtti by default for
compatibility reasons. To enable it, add the following to your module
LOCAL_CPPFLAGS += -frtti
Or more simply to your Application.mk:
APP_CPPFLAGS += -frtti
I have not tested for it.