diff options
Diffstat (limited to 'btif/include/btif_common.h')
-rwxr-xr-x | btif/include/btif_common.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/btif/include/btif_common.h b/btif/include/btif_common.h index 635caeb..3ecea9f 100755 --- a/btif/include/btif_common.h +++ b/btif/include/btif_common.h @@ -140,6 +140,24 @@ enum BTIF_DM_CB_HID_REMOTE_NAME, /* Remote name callback for HID device */ }; +/* Macro definitions for BD ADDR persistence */ +/* PROPERTY_BT_BDADDR_PATH + The property key stores the storage location of Bluetooth Device Address +*/ +#ifndef PROPERTY_BT_BDADDR_PATH +#define PROPERTY_BT_BDADDR_PATH "ro.bt.bdaddr_path" +#endif + +/* PERSIST_BDADDR_PROPERTY + If there is no valid bdaddr available from PROPERTY_BT_BDADDR_PATH, + generating a random BDADDR and keeping it in the PERSIST_BDADDR_DROP. +*/ +#ifndef PERSIST_BDADDR_PROPERTY +#define PERSIST_BDADDR_PROPERTY "persist.service.bdroid.bdaddr" +#endif + +#define FACTORY_BT_BDADDR_STORAGE_LEN 17 + /************************************************************************************ ** Type definitions for callback functions ************************************************************************************/ |