====> project: packages/apps/Bluetooth diff --git a/src/com/android/bluetooth/gatt/GattService.java b/src/com/android/bluetooth/gatt/GattService.java index bbb31e6a0..045cfe55c 100644 --- a/src/com/android/bluetooth/gatt/GattService.java +++ b/src/com/android/bluetooth/gatt/GattService.java @@ -236,19 +236,19 @@ public class GattService extends ProfileService { private static GattService sGattService; /* vas added start*/ - static final String RTK_DEVICES [] = { - "BMM_BA02", - "BRM_BA02", - "BMM_BA03", - "BRM_BA03", - "BMM_BT11", - "BRM_BT11", - "BMM_BT12", - "BRM_BT12", - "BRM_SA01", - "BRM_SA02", - "BOS_KR01" - }; + //static final String RTK_DEVICES [] = { + // "BMM_BA02", + // "BRM_BA02", + // "BMM_BA03", + // "BRM_BA03", + // "BMM_BT11", + // "BRM_BT11", + // "BMM_BT12", + // "BRM_BT12", + // "BRM_SA01", + // "BRM_SA02", + // "BOS_KR01" + // }; /* vas added end*/ /** @@ -1368,27 +1368,27 @@ public class GattService extends ProfileService { (status == BluetoothGatt.GATT_SUCCESS), address); /* vas added start*/ - BluetoothDevice device = getAnonymousDevice(address); - if((device != null) /*&& (app.name.indexOf("android.uid.system") != -1)*/ ){ - String name = device.getName(); - // BOS_KR01 - Log.e(TAG, " name: " + name); - for (String devName : RTK_DEVICES) { - if (name.indexOf(devName) != -1) { - Log.e(TAG, "onClientConnected() connId=" + connId + " send connection update"); - if (name.contains("BOS_KR01")){ - leConnectionUpdate(clientIf, address, 8, 8, 133, 1000, 0, 8, getAttributionSource()); /* 8*1.25 = 10ms, 133, 10s supervision timeout, min_ce 0, max_ce 8 */ - Log.e(TAG, "BOS_KR01"); - } else if (name.contains("BRM_SA02")){ - leConnectionUpdate(clientIf, address, 9, 9, 266, 1000, 0, 8, getAttributionSource()); - Log.e(TAG, "BRM_SA02"); - } - else { - leConnectionUpdate(clientIf, address, 9, 9, 133, 1000, 0, 8, getAttributionSource()); /* 9*1.25 = 11.25ms, 133, 10s supervision timeout, min_ce 0, max_ce 8 */ - } - } - } - } +// BluetoothDevice device = getAnonymousDevice(address); +// if((device != null) /*&& (app.name.indexOf("android.uid.system") != -1)*/ ){ +// String name = device.getName(); +// // BOS_KR01 +// Log.e(TAG, " name: " + name); +// for (String devName : RTK_DEVICES) { +// if (name.indexOf(devName) != -1) { +// Log.e(TAG, "onClientConnected() connId=" + connId + " send connection update"); +// if (name.contains("BOS_KR01")){ +// leConnectionUpdate(clientIf, address, 8, 8, 133, 1000, 0, 8, getAttributionSource()); /* 8*1.25 = 10ms, 133, 10s supervision timeout, min_ce 0, max_ce 8 */ +// Log.e(TAG, "BOS_KR01"); +// } else if (name.contains("BRM_SA02")){ +// leConnectionUpdate(clientIf, address, 9, 9, 266, 1000, 0, 8, getAttributionSource()); +// Log.e(TAG, "BRM_SA02"); +// } +// else { +// leConnectionUpdate(clientIf, address, 9, 9, 133, 1000, 0, 8, getAttributionSource()); /* 9*1.25 = 11.25ms, 133, 10s supervision timeout, min_ce 0, max_ce 8 */ +// } +// } +// } +// } /* vas added end*/ } } ====> project: vendor/amlogic/common diff --git a/wifi_bt/wifi/bcm_ampak/config/20704/BCM20703A2.hcd b/wifi_bt/wifi/bcm_ampak/config/20704/BCM20703A2.hcd index 179af9e4..7a6ccb19 100755 Binary files a/wifi_bt/wifi/bcm_ampak/config/20704/BCM20703A2.hcd and b/wifi_bt/wifi/bcm_ampak/config/20704/BCM20703A2.hcd differ