blob: 166bd4a314101a9e495fc3a1d469c3c38c1b799c [file] [log] [blame]
Pierre-Hugues Hussonc4ccbd92018-02-20 23:03:30 +01001/*
2 * Copyright (c) 2013, The Linux Foundation. All rights reserved.
3 * Not a Contribution, Apache license notifications and license are retained
4 * for attribution purposes only.
5 *
6 * Copyright (C) 2012 The Android Open Source Project
7 *
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
11 *
12 * http://www.apache.org/licenses/LICENSE-2.0
13 *
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
19 */
20
21#ifndef _BDROID_BUILDCFG_H
22#define _BDROID_BUILDCFG_H
23
Pierre-Hugues Husson2623dc52018-08-07 12:49:42 +020024//#include <cutils/properties.h>
Pierre-Hugues Hussonc4ccbd92018-02-20 23:03:30 +010025#include <string.h>
26
27static inline const char* BtmDefLocalName()
28{
Pierre-Hugues Hussond1ae1322018-08-07 12:50:47 +020029#if 0
Pierre-Hugues Hussonc4ccbd92018-02-20 23:03:30 +010030 static char product_device[PROPERTY_VALUE_MAX];
31 //Huawei-defined property
32 property_get("ro.config.marketing_name", product_device, "");
33
34 if (strcmp(product_device, "") != 0)
35 return product_device;
36
37 // Fallback to ro.product.model
38 return "";
Pierre-Hugues Hussond1ae1322018-08-07 12:50:47 +020039#endif
40 return "hello";
Pierre-Hugues Hussonc4ccbd92018-02-20 23:03:30 +010041}
42
Pierre-Hugues Husson3a298bc2018-08-07 13:09:49 +020043static inline int BtmBypassExtraAclSetup() {
Pierre-Hugues Hussond1ae1322018-08-07 12:50:47 +020044#if 0
Pierre-Hugues Hussonc4ccbd92018-02-20 23:03:30 +010045 int8_t prop = property_get_bool("persist.sys.bt_acl_bypass", false);
46 return prop == true;
Pierre-Hugues Hussond1ae1322018-08-07 12:50:47 +020047#endif
Pierre-Hugues Husson3a298bc2018-08-07 13:09:49 +020048 return 1;
Pierre-Hugues Hussonc4ccbd92018-02-20 23:03:30 +010049}
50
51#define BTM_DEF_LOCAL_NAME BtmDefLocalName()
52#define BTM_BYPASS_EXTRA_ACL_SETUP BtmBypassExtraAclSetup()
53
54#endif