Skip to content

Commit 882fa2f

Browse files
author
SBALAVIGNESH123
committed
Docs: Add comments to handshake logic
1 parent 725e7d4 commit 882fa2f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -739,14 +739,17 @@ public void run() {
739739
try {
740740
// Send our identity to the watch
741741
String localId = getLocalNodeId();
742+
743+
// TODO: We should probably get the actual device name from Settings?
744+
// Using "Phone" for now as it seems to be the default GMS behavior.
742745
connection.writeMessage(
743746
new RootMessage.Builder()
744747
.connect(new Connect.Builder()
745748
.id(localId)
746749
.name("Phone")
747750
.networkId(localId)
748751
.peerAndroidId(localId)
749-
.peerVersion(2)
752+
.peerVersion(2) // Need at least version 2 for modern WearOS
750753
.build())
751754
.build()
752755
);

0 commit comments

Comments
 (0)