diff options
Diffstat (limited to 'bluetooth')
-rw-r--r-- | bluetooth/bdroid_buildcfg.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/bluetooth/bdroid_buildcfg.h b/bluetooth/bdroid_buildcfg.h index 67c95de..2730703 100644 --- a/bluetooth/bdroid_buildcfg.h +++ b/bluetooth/bdroid_buildcfg.h @@ -18,6 +18,35 @@ #ifndef _BDROID_BUILDCFG_H #define _BDROID_BUILDCFG_H +#include <cutils/properties.h> +#include <string.h> + +static inline const char* getBTDefaultName() +{ + char device[PROPERTY_VALUE_MAX]; + property_get("ro.product.device", device, ""); + + if (!strcmp("sirius", device)) { + return "Xperia Z2"; + } else if (!strcmp("castor", device)) { + return "Xperia Z2 Tablet"; + } else if (!strcmp("castor_windy", device)) { + return "Xperia Z2 Tablet"; + } else if (!strcmp("z3", device)) { + return "Xperia Z3"; + } else if (!strcmp("z3c", device)) { + return "Xperia Z3 Compact"; + } else if (!strcmp("scorpion", device)) { + return "Xperia Z3 Tablet"; + } else if (!strcmp("scorpion_windy", device)) { + return "Xperia Z3 Tablet"; + } + + return "Xperia"; +} + +#define BTM_DEF_LOCAL_NAME getBTDefaultName() + #define BTM_WBS_INCLUDED TRUE #define BTIF_HF_WBS_PREFERRED TRUE |