summaryrefslogtreecommitdiff
path: root/floss
diff options
context:
space:
mode:
Diffstat (limited to 'floss')
-rw-r--r--floss/libflags/get_flags.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/floss/libflags/get_flags.cc b/floss/libflags/get_flags.cc
index d7152e2edb..233662ac6d 100644
--- a/floss/libflags/get_flags.cc
+++ b/floss/libflags/get_flags.cc
@@ -16,11 +16,15 @@
#include "server_configurable_flags/get_flags.h"
+#include "gd/os/system_properties.h"
+
namespace server_configurable_flags {
std::string GetServerConfigurableFlag(
const std::string& experiment_category_name,
const std::string& experiment_flag_name, const std::string& default_value) {
- return default_value;
+ std::string prop_name = "persist.device_config." + experiment_category_name +
+ "." + experiment_flag_name;
+ return bluetooth::os::GetSystemProperty(prop_name).value_or(default_value);
}
} // namespace server_configurable_flags