From d3fa3e2c050db0dd6038048cd8dee55a2ae3fb1e Mon Sep 17 00:00:00 2001 From: Andreas Shimokawa Date: Sun, 15 Oct 2023 22:11:32 +0200 Subject: [PATCH] Xiaomi Protocol: Add userId auth command --- .../gadgetbridge/service/devices/xiaomi/XiaomiAuthService.java | 2 ++ app/src/main/proto/xiaomi.proto | 1 + 2 files changed, 3 insertions(+) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/xiaomi/XiaomiAuthService.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/xiaomi/XiaomiAuthService.java index cf73f8664..350a74ccb 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/xiaomi/XiaomiAuthService.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/xiaomi/XiaomiAuthService.java @@ -61,6 +61,8 @@ public class XiaomiAuthService extends AbstractXiaomiService { public static final int COMMAND_TYPE = 1; + public static final int CMD_SEND_USERID = 5; + public static final int CMD_NONCE = 26; public static final int CMD_AUTH = 27; diff --git a/app/src/main/proto/xiaomi.proto b/app/src/main/proto/xiaomi.proto index 4daaa0f2c..f6fd63c1e 100644 --- a/app/src/main/proto/xiaomi.proto +++ b/app/src/main/proto/xiaomi.proto @@ -29,6 +29,7 @@ message Command { // message Auth { + optional string userId = 7; // 1, 26 optional PhoneNonce phoneNonce = 30; optional WatchNonce watchNonce = 31;