From 47d2e811e72e6fc0f3c799f3c884092ca0a67f30 Mon Sep 17 00:00:00 2001 From: Dante Russo Date: Fri, 16 Mar 2018 11:50:05 -0700 Subject: flp.conf should be read from /vendor/etc/ flp.conf was being read from incorrect path, which was causing GetBatchSize API to read incorrect batch size Change-Id: Ib95610e72157834fc731f35b67eb475dfe6af5a2 CRs-fixed: 2193052 Bug: 73251835 --- location/LocationAPIClientBase.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'location/LocationAPIClientBase.cpp') diff --git a/location/LocationAPIClientBase.cpp b/location/LocationAPIClientBase.cpp index 343743a..cc9c080 100644 --- a/location/LocationAPIClientBase.cpp +++ b/location/LocationAPIClientBase.cpp @@ -30,11 +30,11 @@ #define LOG_TAG "LocSvc_APIClientBase" #include +#include #include #include #include "LocationAPIClientBase.h" -#define FLP_CONF_FILE "/etc/flp.conf" #define GEOFENCE_SESSION_ID 0xFFFFFFFF #define CONFIG_SESSION_ID 0xFFFFFFFF @@ -364,7 +364,7 @@ int32_t LocationAPIClientBase::locAPIGetBatchSize() { {"BATCH_SIZE", &mBatchSize, nullptr, 'n'}, }; - UTIL_READ_CONF(FLP_CONF_FILE, flp_conf_param_table); + UTIL_READ_CONF(LOC_PATH_FLP_CONF, flp_conf_param_table); if (mBatchSize < 0) { // set mBatchSize to 0 if we got an illegal value from config file mBatchSize = 0; -- cgit v1.2.3