From ee1b71a24016a206974c9f4c1fe2d564b75eb328 Mon Sep 17 00:00:00 2001 From: Me7c7 Date: Fri, 20 Sep 2024 17:24:47 +0300 Subject: [PATCH] Huawei: fixed PhoneInfo command --- .../gadgetbridge/devices/huawei/packets/DeviceConfig.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/huawei/packets/DeviceConfig.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/huawei/packets/DeviceConfig.java index 066758119..def696cf8 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/huawei/packets/DeviceConfig.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/huawei/packets/DeviceConfig.java @@ -798,19 +798,21 @@ public class DeviceConfig { this.tlv = new HuaweiTLV(); for (byte b : phoneInfo) { switch (b) { + case 0x0: + break; case 0xf: break; case 0x11: - this.tlv.put((int)b, "1200107310"); // Force AppVersion to 12.1.7.310 + this.tlv.put(b, 1400106310); // Force AppVersion to 14.1.6.310 break; case 0x15: - this.tlv.put((int)b, ""); // Force buildOSPlatformVersion to "" + this.tlv.put(b); // Force buildOSPlatformVersion to "" break; case 0x10: // Force EmuiBuildVersion to 0x00 case 0x13: // Force buildOsEnable to 0x00 case 0x14: // Force buildOSApiVersion to 0x00 default: - this.tlv.put((int)b, "00"); + this.tlv.put(b, (byte)00); } } this.complete = true;