Keddnyo / MiDoze

Firmwares for Huami wearables
MIT License
21 stars 2 forks source link

Support downloading official watchfaces #4

Closed extesy closed 2 years ago

extesy commented 2 years ago

Is it possible to download official watchfaces for these devices similar to how it downloads the firmware?

Keddnyo commented 2 years ago

Yes. But we need more specific data to do it. Maybe this feature will be added later.

extesy commented 2 years ago

I did a little research and I think (not confident) that the url for watchface list looks like https://api.amazfit.com/market/devices/ALL/watch?userid={userid} and it needs a real apptoken. Both userid and apptoken can be obtained using https://github.com/argrento/huami-token script but when I do that the request still returns "invalid token" to me. No sure what am I missing.

Keddnyo commented 2 years ago

I have already tried this some days ago. I stoled some packages using Burp Suite for Windows. But it really need app token. And now it is impossible to do that without token.

Keddnyo commented 2 years ago

Now MiDoze 7.0.0 supports watch faces. Congratulations! @extesy thanks for your idea!

extesy commented 2 years ago

Thank you for adding this! It seems that currently it only works with Xiaomi devices. Would it be hard to add Amazfit devices too? Your firmware downloader supports both.

Keddnyo commented 2 years ago

It seems to be so hard because Zepp Life watchface request works only with valid token which taken in official app every time. At the next day the previous token is invalid and response says that token is invalid.