summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsrc/phHal4Nfc.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/phHal4Nfc.c b/src/phHal4Nfc.c
index b4c1d45..f40ed9b 100755
--- a/src/phHal4Nfc.c
+++ b/src/phHal4Nfc.c
@@ -307,6 +307,7 @@ phHal4Nfc_Configure_Layers(
#include <dlfcn.h>
#define FW_PATH "/system/vendor/firmware/libpn544_fw.so"
+#define FW_PATH_2 "/system/lib/libpn544_fw.so"
const unsigned char *nxp_nfc_full_version = NULL;
const unsigned char *nxp_nfc_fw = NULL;
@@ -316,8 +317,11 @@ int dlopen_firmware() {
void *handle = dlopen(FW_PATH, RTLD_NOW);
if (handle == NULL) {
- ALOGE("Could not open %s", FW_PATH);
- return -1;
+ handle = dlopen(FW_PATH_2, RTLD_NOW);
+ if (handle == NULL) {
+ ALOGE("Could not open %s or %s", FW_PATH, FW_PATH_2);
+ return -1;
+ }
}
p = dlsym(handle, "nxp_nfc_full_version");