Restrict HAL implementation access to only /data/vendor/nfc

Changes the storage file location to /data/vendor/nfc.

Test: Nfc boots up without any SELinux denials
Bug: 36645109
Change-Id: I78ae5c9f66baebc72e3312b0d394da77b96c03f9
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
(cherry picked from commit 387d192e2dabb35b38de29f04d89fe431ba01407)
diff --git a/halimpl/pn54x/utils/phNxpConfig.cpp b/halimpl/pn54x/utils/phNxpConfig.cpp
index 15814ed..6d5a490 100644
--- a/halimpl/pn54x/utils/phNxpConfig.cpp
+++ b/halimpl/pn54x/utils/phNxpConfig.cpp
@@ -62,7 +62,7 @@
 #include <errno.h>
 
 #if GENERIC_TARGET
-const char alternative_config_path[] = "/data/nfc/";
+const char alternative_config_path[] = "/data/vendor/nfc/";
 #else
 const char alternative_config_path[] = "";
 #endif
@@ -85,7 +85,8 @@
 #define extra_config_ext        ".conf"
 #define     IsStringValue       0x80000000
 
-const char config_timestamp_path[] = "/data/nfc/libnfc-nxpConfigState.bin";
+const char config_timestamp_path[] =
+    "/data/vendor/nfc/libnfc-nxpConfigState.bin";
 const char default_nxp_config_path[] = "/etc/libnfc-nxp.conf";
 
 /**
diff --git a/halimpl/pn54x/utils/phNxpConfig.h b/halimpl/pn54x/utils/phNxpConfig.h
index 3bdcad6..458647b 100644
--- a/halimpl/pn54x/utils/phNxpConfig.h
+++ b/halimpl/pn54x/utils/phNxpConfig.h
@@ -175,6 +175,6 @@
 #define DEBUG 0
 
 /* default configuration */
-#define default_storage_location "/data/nfc"
+#define default_storage_location "/data/vendor/nfc"
 
 #endif