Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- From fb10207027357565a72aae5ab10f99a0a33c1e68 Mon Sep 17 00:00:00 2001
- From: luca020400 <[email protected]>
- Date: Sat, 9 May 2015 19:34:34 +0200
- Subject: [PATCH] bluetooth:
- Change-Id: I737ec2885916e05379fcfc11e3517ffefd087d9e
- ---
- bluetooth/bdroid_buildcfg.h | 19 ++++++++++++++++++-
- 1 file changed, 18 insertions(+), 1 deletion(-)
- diff --git a/bluetooth/bdroid_buildcfg.h b/bluetooth/bdroid_buildcfg.h
- index b526c9f..e6a24e5 100644
- --- a/bluetooth/bdroid_buildcfg.h
- +++ b/bluetooth/bdroid_buildcfg.h
- @@ -18,7 +18,24 @@
- #ifndef _BDROID_BUILDCFG_H
- #define _BDROID_BUILDCFG_H
- -#define BTM_DEF_LOCAL_NAME "Moto G"
- +inline const char* BtmGetDefaultName()
- +{
- + char device[PROPERTY_VALUE_MAX];
- + property_get("ro.boot.device", device, "");
- +
- + if (!strcmp("falcon", device))
- + return "Moto G";
- + if (!strcmp("peregrine", device))
- + return "Moto G LTE";
- + if (!strcmp("thea", device))
- + return "Moto G 2014 LTE";
- + if (!strcmp("titan", device))
- + return "Moto G 2014";
- +
- + return "";
- +}
- +
- +#define BTM_DEF_LOCAL_NAME BtmGetDefaultName()
- #define BLUETOOTH_QTI_SW TRUE
- // Disables read remote device feature
- #define BTA_SKIP_BLE_READ_REMOTE_FEAT FALSE
- --
- 2.4.0
Advertisement
Add Comment
Please, Sign In to add comment