android_device_samsung_a20/universal7885-common/bluetooth/bdroid_buildcfg.h
roynatech2544 eaab77ceff
universal7885: Add other 7885 devices
* A10, A30, A40

Change-Id: I92829c4d3b11e2759f08ef04fe4d4d60ff352a0b
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:57:19 +09:00

32 lines
846 B
C

#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, "a10"))
return "Galaxy A10";
if (strstr(product_device, "a20e"))
return "Galaxy A20e";
if (strstr(product_device, "a20"))
return "Galaxy A20";
if (strstr(product_device, "a30"))
return "Galaxy A30";
if (strstr(product_device, "a40"))
return "Galaxy A40";
// Fallback to Generic
return "Samsung Galaxy";
}
#define BTM_DEF_LOCAL_NAME BtmGetDefaultName()
#define BTM_ESCO_TRANSPORT_UNIT_SIZE_PCM16
#pragma pop_macro("PROPERTY_VALUE_MAX")
#endif