aboutsummaryrefslogtreecommitdiff
path: root/bluetooth/bdroid_buildcfg.h
diff options
context:
space:
mode:
authorSal Savage <salsavage@google.com>2022-04-15 15:38:17 -0700
committerDavide Garberi <dade.garberi@gmail.com>2023-08-03 02:52:56 +0200
commitce7cf5c8830133c9424f38ac6b93721d6e22dca8 (patch)
treeee5ff6c6c15f2fa14870815f44e8e8b34b13fc7f /bluetooth/bdroid_buildcfg.h
parentde3a6e264fef2b69621d179028c09fd9d5db2d43 (diff)
msm8996-common: Replace BTM_DEF_LOCAL_NAME with a sysprop
Change-Id: I2c90efac01e61500eb1be23bb0ae6f96c2acdc53
Diffstat (limited to 'bluetooth/bdroid_buildcfg.h')
-rw-r--r--bluetooth/bdroid_buildcfg.h20
1 files changed, 0 insertions, 20 deletions
diff --git a/bluetooth/bdroid_buildcfg.h b/bluetooth/bdroid_buildcfg.h
index dbd488b..2c815fd 100644
--- a/bluetooth/bdroid_buildcfg.h
+++ b/bluetooth/bdroid_buildcfg.h
@@ -22,26 +22,6 @@
#ifndef _BDROID_BUILDCFG_H
#define _BDROID_BUILDCFG_H
-#pragma push_macro("PROPERTY_VALUE_MAX")
-
-#include <cutils/properties.h>
-#include <string.h>
-
-static inline const char* BtmGetDefaultName()
-{
- char product_device[PROPERTY_VALUE_MAX];
- property_get("ro.product.device", product_device, "");
-
- if (strstr(product_device, "z2_plus"))
- return "Zuk Z2 Plus";
- if (strstr(product_device, "z2_row"))
- return "Zuk Z2 Pro";
-
- // Fallback to ro.product.model
- return "";
-}
-
-#define BTM_DEF_LOCAL_NAME BtmGetDefaultName()
// Disables read remote device feature
#define BTA_SKIP_BLE_READ_REMOTE_FEAT FALSE
#define MAX_ACL_CONNECTIONS 7