luca020400

Untitled

May 9th, 2015
383
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.19 KB | None | 0 0
  1. From fb10207027357565a72aae5ab10f99a0a33c1e68 Mon Sep 17 00:00:00 2001
  2. From: luca020400 <[email protected]>
  3. Date: Sat, 9 May 2015 19:34:34 +0200
  4. Subject: [PATCH] bluetooth:
  5.  
  6. Change-Id: I737ec2885916e05379fcfc11e3517ffefd087d9e
  7. ---
  8. bluetooth/bdroid_buildcfg.h | 19 ++++++++++++++++++-
  9.  1 file changed, 18 insertions(+), 1 deletion(-)
  10.  
  11. diff --git a/bluetooth/bdroid_buildcfg.h b/bluetooth/bdroid_buildcfg.h
  12. index b526c9f..e6a24e5 100644
  13. --- a/bluetooth/bdroid_buildcfg.h
  14. +++ b/bluetooth/bdroid_buildcfg.h
  15. @@ -18,7 +18,24 @@
  16.  #ifndef _BDROID_BUILDCFG_H
  17.  #define _BDROID_BUILDCFG_H
  18.  
  19. -#define BTM_DEF_LOCAL_NAME   "Moto G"
  20. +inline const char* BtmGetDefaultName()
  21. +{
  22. +   char device[PROPERTY_VALUE_MAX];
  23. +   property_get("ro.boot.device", device, "");
  24. +
  25. +   if (!strcmp("falcon", device))
  26. +       return "Moto G";
  27. +   if (!strcmp("peregrine", device))
  28. +       return "Moto G LTE";
  29. +   if (!strcmp("thea", device))
  30. +       return "Moto G 2014 LTE";
  31. +   if (!strcmp("titan", device))
  32. +       return "Moto G 2014";
  33. +
  34. +   return "";
  35. +}
  36. +
  37. +#define BTM_DEF_LOCAL_NAME   BtmGetDefaultName()
  38.  #define BLUETOOTH_QTI_SW TRUE
  39.  // Disables read remote device feature
  40.  #define BTA_SKIP_BLE_READ_REMOTE_FEAT FALSE
  41. --
  42. 2.4.0
Advertisement
Add Comment
Please, Sign In to add comment