GAP: Allow BT name upto 248 bytes from setName
As per BT spec BT name should be of max 248 bytes but setname api allows more than 248 bytes in bt name and bt name in stack and app out of sync. Hence allow only 248 bytes from setName. Bug: 296517746 Test: atest BluetoothInstrumentationTests:AdapterPropertiesTest Test: atest BluetoothInstrumentationTests:UtilsTest Change-Id: Id6c3f1bbac2f71ac7ef0544305c92905e71ddc1e
Showing
- android/app/src/com/android/bluetooth/Utils.java 43 additions, 1 deletionandroid/app/src/com/android/bluetooth/Utils.java
- android/app/src/com/android/bluetooth/btservice/AdapterProperties.java 6 additions, 1 deletion...rc/com/android/bluetooth/btservice/AdapterProperties.java
- android/app/tests/unit/src/com/android/bluetooth/UtilsTest.java 70 additions, 0 deletions...d/app/tests/unit/src/com/android/bluetooth/UtilsTest.java
- android/app/tests/unit/src/com/android/bluetooth/btservice/AdapterPropertiesTest.java 48 additions, 0 deletions...om/android/bluetooth/btservice/AdapterPropertiesTest.java
Loading
Please register or sign in to comment