Add /system_ext/etc to config search path am: 48c09a1e3d am: ff2031d56c
Original change: https://googleplex-android-review.googlesource.com/c/platform/system/nfc/+/11707549
Change-Id: Ice4685c039e804b2b83f26f89f156161b0b22184
diff --git a/src/adaptation/nfc_config.cc b/src/adaptation/nfc_config.cc
index f406847..264968e 100644
--- a/src/adaptation/nfc_config.cc
+++ b/src/adaptation/nfc_config.cc
@@ -29,9 +29,10 @@
namespace {
std::string searchConfigPath(std::string file_name) {
- const vector<string> search_path = {"/odm/etc/", "/vendor/etc/",
- "/product/etc/", "/etc/"};
- for (string path : search_path) {
+ const std::vector<std::string> search_path = {
+ "/product/etc/", "/odm/etc/", "/vendor/etc/", "/system_ext/etc/", "/etc/",
+ };
+ for (std::string path : search_path) {
path.append(file_name);
struct stat file_stat;
if (stat(path.c_str(), &file_stat) != 0) continue;