Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ca6a76ae authored by Rongxuan Liu's avatar Rongxuan Liu
Browse files

Check all zero address when connecting gatt

Tag: #feature
Bug: 275114817
Test: build and test
Change-Id: I6e79778f7d8347bc435fa2d77a0f701288003db8
parent 2305dc8a
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -3270,6 +3270,9 @@ public final class BluetoothDevice implements Parcelable, Attributable {
            if (iGatt == null) {
                // BLE is not supported
                return null;
            } else if (NULL_MAC_ADDRESS.equals(mAddress)) {
                Log.e(TAG, "Unable to connect gatt, invalid address " + mAddress);
                return null;
            }
            BluetoothGatt gatt = new BluetoothGatt(
                    iGatt, this, transport, opportunistic, phy, mAttributionSource);