1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-27 19:15:50 +01:00

Mi Band 8 proto: Start mapping DataUpload

This commit is contained in:
José Rebelo 2023-10-08 15:19:46 +01:00
parent 809a809082
commit 905dfc3323

View File

@ -17,6 +17,9 @@ message Command {
optional Weather weather = 12; optional Weather weather = 12;
optional Schedule schedule = 19; optional Schedule schedule = 19;
// type 22
optional DataUpload dataUpload = 24;
optional uint32 status = 100; // 0 on success on some optional uint32 status = 100; // 0 on success on some
} }
@ -632,3 +635,25 @@ message HourMinute {
required uint32 hour = 1; required uint32 hour = 1;
required uint32 minute = 2; required uint32 minute = 2;
} }
//
// Data Upload (watchface, notification icons, firmware)
//
message DataUpload {
// 22, 0
optional DataUploadRequest dataUploadRequest = 1;
optional DataUploadAck dataUploadAck = 2;
}
message DataUploadRequest {
optional uint32 unknown1 = 1; // 16 for watchface, 50 for notification icons, 32 for firmware?
optional bytes md5sum = 2;
optional uint32 size = 3;
}
message DataUploadAck {
optional bytes md5sum = 1;
optional uint32 unknown2 = 2; // 0
optional uint32 unknown4 = 4; // 0
}