Fix force setting environment variable error am: b3d5fef7c2

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3081420

Change-Id: I7c98a2b088e4b39fb64213a7727be5592d23fd7f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Ray Chin 2024-05-14 16:31:56 +00:00 committed by Automerger Merge Worker
commit be10911bd4

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();