Use LOCAL_REQUIRED_MODULES instead of LOCAL_JNI_SHARED_LIBRARIES
LOCAL_REQUIRED_MODULES creates a dependency of the apk to the jni libs,
while LOCAL_JNI_SHARED_LIBRARIES doesn't. Besides, the latter makes the
jni libs be included in the apk, but the former doesn't.
For a system app link Nfc.apk, there is no reason to use
LOCAL_JNI_SHARED_LIBRARIES. Using LOCAL_REQUIRED_MODULES
deduces the apk size and the device configuration makefile
doesn't need to specify the jni libs in PRODUCT_PACKAGES.
Change-Id: I0d67987424e010157c289a93b1ef075b897ed940
diff --git a/Android.mk b/Android.mk
index 9aa7ee2..00062df 100644
--- a/Android.mk
+++ b/Android.mk
@@ -18,7 +18,7 @@
LOCAL_STATIC_JAVA_LIBRARIES := NfcLogTags
-LOCAL_JNI_SHARED_LIBRARIES := libnfc_jni
+LOCAL_REQUIRED_MODULES := libnfc_jni
LOCAL_PROGUARD_ENABLED := disabled
@@ -43,7 +43,7 @@
LOCAL_STATIC_JAVA_LIBRARIES := NfcLogTags
-LOCAL_JNI_SHARED_LIBRARIES := libnfc_nci_jni
+LOCAL_REQUIRED_MODULES := libnfc_nci_jni
LOCAL_PROGUARD_ENABLED := disabled