Fix force setting environment variable error

Bug: 339612366
Test: no need
Change-Id: I3194b3b385a8f02332ac848b4fcab10090486173
This commit is contained in:
Ray Chin 2024-05-14 13:16:38 +08:00
parent beff3324c7
commit b3d5fef7c2

View file

@ -31,11 +31,7 @@ namespace {
bool initConfiguration() {
std::array<char, PROPERTY_VALUE_MAX> variant;
auto res = property_get("ro.vendor.vts_tuner_configuration_variant", variant.data(), "");
if (res <= 0) {
ALOGE("[vts] failed to read system property ro.vendor.vts_tuner_configuration_variant");
return false;
}
property_get("ro.vendor.vts_tuner_configuration_variant", variant.data(), "");
string configFilePath = "/vendor/etc/tuner_vts_config_aidl_V1";
if (variant.size() != 0) {
configFilePath = configFilePath + "." + variant.data();