mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 05:49:27 +00:00
Fix force setting environment variable error
Bug: 339612366 Test: no need Change-Id: I3194b3b385a8f02332ac848b4fcab10090486173
This commit is contained in:
@@ -31,11 +31,7 @@ namespace {
|
|||||||
|
|
||||||
bool initConfiguration() {
|
bool initConfiguration() {
|
||||||
std::array<char, PROPERTY_VALUE_MAX> variant;
|
std::array<char, PROPERTY_VALUE_MAX> variant;
|
||||||
auto res = property_get("ro.vendor.vts_tuner_configuration_variant", variant.data(), "");
|
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;
|
|
||||||
}
|
|
||||||
string configFilePath = "/vendor/etc/tuner_vts_config_aidl_V1";
|
string configFilePath = "/vendor/etc/tuner_vts_config_aidl_V1";
|
||||||
if (variant.size() != 0) {
|
if (variant.size() != 0) {
|
||||||
configFilePath = configFilePath + "." + variant.data();
|
configFilePath = configFilePath + "." + variant.data();
|
||||||
|
|||||||
Reference in New Issue
Block a user