summaryrefslogtreecommitdiff
path: root/android/cutils
diff options
context:
space:
mode:
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>2014-07-28 14:57:19 +0300
committerSzymon Janc <szymon.janc@tieto.com>2014-07-29 10:57:21 +0200
commit323fe45fb70f654e5c01dac61df4cec7c09e0ea5 (patch)
treec52cc49a9379501df5bd7ed71a70853aa1d0c629 /android/cutils
parent6a5ac14cb2dea91e0308953410d0a0c7a675b732 (diff)
downloadbluez-323fe45fb70f654e5c01dac61df4cec7c09e0ea5.tar.gz
android: Allow to set required handsfree mode on Linux host
This is usefull for testing handsfree in non-default configuration.
Diffstat (limited to 'android/cutils')
-rw-r--r--android/cutils/properties.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/android/cutils/properties.h b/android/cutils/properties.h
index ef40f01c8..43f07f152 100644
--- a/android/cutils/properties.h
+++ b/android/cutils/properties.h
@@ -31,6 +31,7 @@
#define PROPERTY_VALUE_MAX 32
#define BLUETOOTH_MODE_PROPERTY_NAME "persist.sys.bluetooth.mode"
+#define BLUETOOTH_MODE_PROPERTY_HANDSFREE "persist.sys.bluetooth.handsfree"
static inline int property_get(const char *key, char *value,
const char *default_value)
@@ -40,6 +41,9 @@ static inline int property_get(const char *key, char *value,
if (!strcmp(key, BLUETOOTH_MODE_PROPERTY_NAME))
prop = getenv("BLUETOOTH_MODE");
+ if (!strcmp(key, BLUETOOTH_MODE_PROPERTY_HANDSFREE))
+ prop = getenv("BLUETOOTH_HANDSFREE_MODE");
+
if (!prop)
prop = default_value;