diff --git a/base/core/java/android/bluetooth/BluetoothAdapter.java b/base/core/java/android/bluetooth/BluetoothAdapter.java index daeef39..4573bf1 100755 --- a/base/core/java/android/bluetooth/BluetoothAdapter.java +++ b/base/core/java/android/bluetooth/BluetoothAdapter.java @@ -570,7 +570,7 @@ public final class BluetoothAdapter { */ public BluetoothLeAdvertiser getBluetoothLeAdvertiser() { if (!getLeAccess()) return null; - if (!isMultipleAdvertisementSupported() && !isPeripheralModeSupported()) { + if (!isMultipleAdvertisementSupported() /*&& !isPeripheralModeSupported()*/) { Log.e(TAG, "Bluetooth LE advertising not supported"); return null; } jason@jason-ThinkPad-X200:~/TG/rk3288-TG/frameworks$ git show 92a86bb26659c78432541d2a6a1831b7a96b403f commit 92a86bb26659c78432541d2a6a1831b7a96b403f Author: Jason Wang Date: Tue Apr 24 10:45:46 2018 +0800 Enable BLE peripheral mode diff --git a/base/core/res/res/values/config.xml b/base/core/res/res/values/config.xml index 1778fbb..66a480a 100755 --- a/base/core/res/res/values/config.xml +++ b/base/core/res/res/values/config.xml @@ -1207,7 +1207,7 @@ false - false + true