summaryrefslogtreecommitdiffstats
path: root/btif/include
diff options
context:
space:
mode:
authorAjay Panicker <apanicke@google.com>2015-08-03 16:29:31 -0700
committerAndre Eisenbach <eisenbach@google.com>2015-08-06 23:01:10 +0000
commitc1553d3cab1a17cad8713ee61e1833903c0a6d89 (patch)
tree5ae127108612f973eccb3dcc0bf1e3f354c54c61 /btif/include
parent145348f4ab9aa14bdfb87b9329783c3cb59c455e (diff)
downloadandroid_system_bt-c1553d3cab1a17cad8713ee61e1833903c0a6d89.tar.gz
android_system_bt-c1553d3cab1a17cad8713ee61e1833903c0a6d89.tar.bz2
android_system_bt-c1553d3cab1a17cad8713ee61e1833903c0a6d89.zip
Load factory Bluetooth address from system property
Implemented a check to grab the ro.boot.btmacaddr property in case the device fails to receive an address beforehand. Bug: 22618015 Change-Id: Ie322888e114a732f8e85c81793e3e5e5eacffc7a
Diffstat (limited to 'btif/include')
-rw-r--r--btif/include/btif_common.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/btif/include/btif_common.h b/btif/include/btif_common.h
index 2c4276d92..7e8c50640 100644
--- a/btif/include/btif_common.h
+++ b/btif/include/btif_common.h
@@ -145,6 +145,16 @@ enum
#define PERSIST_BDADDR_PROPERTY "persist.service.bdroid.bdaddr"
#endif
+/**
+ * FACTORY_BT_BDADDR_PROPERTY
+ * If there is no valid bdaddr available from PROPERTY_BT_BDADDR_PATH
+ * and there is no available persistent bdaddr available from
+ * PERSIST_BDADDR_PROPERTY use a factory set address
+ */
+#ifndef FACTORY_BT_ADDR_PROPERTY
+#define FACTORY_BT_ADDR_PROPERTY "ro.boot.btmacaddr"
+#endif
+
#define FACTORY_BT_BDADDR_STORAGE_LEN 17