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

Commit 00e358ae authored by Hanrui Gao's avatar Hanrui Gao Committed by Gerrit Code Review
Browse files

Merge "Update the javadoc for requestMtu() to reflect the latest behavior...

Merge "Update the javadoc for requestMtu() to reflect the latest behavior change on Android 14." into main
parents 09adf255 98e616e0
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1844,7 +1844,11 @@ public final class BluetoothGatt implements BluetoothProfile {
    }

    /**
     * Request an MTU size used for a given connection.
     * Request an MTU size used for a given connection. Please note that starting from Android 14,
     * the Android Bluetooth stack requests the BLE ATT MTU to 517 bytes when the first GATT client
     * requests an MTU, and disregards all subsequent MTU requests. Check out
     * <a href="{@docRoot}about/versions/14/behavior-changes-all#mtu-set-to-517">MTU is set to 517
     * for the first GATT client requesting an MTU</a> for more information.
     *
     * <p>When performing a write request operation (write without response),
     * the data sent is truncated to the MTU size. This function may be used