This looks somewhat abandoned by now but here's some more info, in case you or somebody else finds it useful.
Get firmware:
POST https://de.hlth.io.mi.com/healthapp/device/latest_ver?locale=en_us
Headers:
region_tag: de
handleparams: true
content-type: application/x-www-form-urlencoded
cookie
etc.
sends data, signature, rc4_hash__, _nonce values in the form
"data" is the following for my watch but encrypted with RC4.
I've had the firmware and some other stuff for a while but never been able to do anything with it, tried figuring out both firmware itself and watch faces (as custom watch faces was the main thing I was interested in at first)
Amazing! I did drop it back then since they added Hebrew support in a FW upgrade, but I might use your research to conduct a few experiments of my own just for kicks :)
This looks somewhat abandoned by now but here's some more info, in case you or somebody else finds it useful.
Get firmware:
sends
data
,signature
,rc4_hash__
,_nonce
values in the form"data" is the following for my watch but encrypted with RC4.
response body (RC4 Encrypted too):
Firmware available here: https://github.com/BitesizedLion/Junk/blob/master/2b4592f0bff4b72000c22e8de6feecae_upd_mijia.watch.v1dist.bin
Simple Go code for easily doing the RC4 decryption: https://github.com/BitesizedLion/MIFitness-RC4
I've had the firmware and some other stuff for a while but never been able to do anything with it, tried figuring out both firmware itself and watch faces (as custom watch faces was the main thing I was interested in at first)
Firmware uploads are (supposedly) possible with a developer version of the "Xiaomi Wear" app, also some other misc debug features, available here: https://github.com/BitesizedLion/Junk/releases/download/miwatchdev/MiWatch-Dev-90909_9.9.9-debug.apk
The app is quite old so I'm not 100% sure if it still works or not.