For an in-depth look at how Android native code works, there is a scientific paper that explains it in detail (self-promotion, I am one of the authors) -- with a focus on how malware abuses it.
The Dark Side of Native Code on Android [PDF]
Have a look at Sections 2, 4.2, and 4.3.