Skip to content

Commit 86b0c79

Browse files
fix(wear): align Bluetooth RFCOMM UUID with WearOS specification
Update WEAR_BT_UUID to use the official WearOS UUID (a3c87500-8ed3-4bdf-8a39-a01bebede295) instead of the generic SPP UUID. This ensures proper data bridging and pairing with WearOS devices. Signed-off-by: namdamdoi68-oss <namdamdoi68@gmail.com>
1 parent 446b3c2 commit 86b0c79

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

play-services-wearable/core/src/main/java/org/microg/gms/wearable/BluetoothConnectionThread.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public abstract class BluetoothConnectionThread extends Thread {
5454

5555
/** RFCOMM service UUID for the wearable Bluetooth transport. */
5656
public static final UUID WEAR_BT_UUID =
57-
UUID.fromString("00000003-0000-1000-8000-00805f9b34fb");
57+
UUID.fromString("a3c87500-8ed3-4bdf-8a39-a01bebede295");
5858

5959
/** SDP service name advertised alongside {@link #WEAR_BT_UUID}. */
6060
static final String WEAR_BT_SERVICE_NAME = "WearOS";

play-services-wearable/core/src/test/java/org/microg/gms/wearable/BluetoothConnectionThreadTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public class BluetoothConnectionThreadTest {
3030
*/
3131
@Test
3232
public void testWearBtUuidIsCorrect() {
33-
UUID expected = UUID.fromString("00000003-0000-1000-8000-00805f9b34fb");
33+
UUID expected = UUID.fromString("a3c87500-8ed3-4bdf-8a39-a01bebede295");
3434
assertEquals("RFCOMM UUID must match official WearOS value",
3535
expected, BluetoothConnectionThread.WEAR_BT_UUID);
3636
}

0 commit comments

Comments
 (0)