jni: Compile against the NDK.

The most tedious change here is the switch to android-base/logging.h
as the NDK only provides very basic logging functionality via
android/log.h

Test: make
Bug: 139927335

Change-Id: I47811022b371cde81bd08db826b588e5c5c1b81c
5 files changed