argrento / huami-token

Script to obtain watch or band bluetooth token from Huami servers
MIT License
410 stars 94 forks source link

Download new AGPS #31

Open piggz opened 3 years ago

piggz commented 3 years ago

Hi, the cep_pak.bin file downloaded by this script, while correct for the Bip, and some older firmwares, doesnt seem to be the file used by Zepp on devices with newer firmwares.(GTS)

Could you investigate and see if there is a new download?

Thanks

argrento commented 3 years ago

Hi. I've already checked that there are 2 additional files to be downloaded. I'll add the ability to download them soon.

piggz commented 3 years ago

Great, thanks ... im hoping to integrate running your script with my Amazfish app.

vanous commented 3 years ago

@argrento thank you. And thanks to the work of the experts (piggz and andreas), the UIHH packing now works, i did a bad translation of the original php code to python, but unfortunately i have no idea how to write pythonic code to write the binary headers, that is why i do not even want to make a PR here, because it is so ugly. But please feel free to take it and use in huami-token and if you know how to do the binary stuff nicely, it would be great :)

piggz commented 3 years ago

@vanous I too have worked up a version, and I too am no python programmer, feel free to comment https://github.com/argrento/huami-token/pull/33

vanous commented 3 years ago

Cool, i like the pattern of joining the bytes array :) . Of course, accepting this is on @argrento .

piggz commented 3 years ago

Ofcourse .. it took me ages to get it to work properly, with accidental mixing of strings and bytes, darn lazy typed languages :D

argrento commented 3 years ago

Thanks a lot for pr! I'll accept and slightly rewrite it on the nearest weekend.