dkhmelenko / miband-android

Unofficial SDK for Xiaomi Mi Band
Apache License 2.0
248 stars 39 forks source link

There is a problem with mi band 4, connect not works #19

Open zaurhasanov opened 4 years ago

xvello commented 4 years ago

Hello @zaurhasanov

I'm not a contributor, but I think you might be hitting the server-side pairing requirement of the new firmwares. You can find more info in the Gadgetbridge wiki: basically, you need to pair through the mifit app then pass an auth token to successfully pair.

maxakash commented 3 years ago

Hello @zaurhasanov

I'm not a contributor, but I think you might be hitting the server-side pairing requirement of the new firmwares. You can find more info in the Gadgetbridge wiki: basically, you need to pair through the mifit app then pass an auth token to successfully pair.

Can you tell me how to get the auth token from mi fit app after pairing my mi band 4/5 with mi fit?

twofingerrightclick commented 2 years ago

The Mi band makers are trying to prevent open use of the device, and also add security by requiring that key. Its kinda of a pain to get. Here is how to get the key: https://codeberg.org/Freeyourgadget/Gadgetbridge/wiki/Huami-Server-Pairing#requirements The process differs depending on whether you have a rooted device or not. Either involves a sql query into the db of the Bands main app, or running a python script.