• Off Topic
  • Experience: Gadgetbridge + Mi Band 8 work great!

I got the band for sleep tracking and possibly more.

You need to install the proprietary Mi Fit app once, poorly. It leaks a key in the logs, you need it for pairing.

The proprietary app can also update the firmware of the band. Registering required but VPN and spam email worked, no personal data needed.

Check the docs on that.

Afterwards, I think most if not all features work with Gadgetbridge

  • connect
  • sync data, charging state, pulse, sleep types, steps, activity
  • measure pulse
  • sync weather (with "Tiny Weatherforecast")
  • set alarms
  • remote take pictures with the clock (GrapheneOS Camera & Google camera work)
  • control music with the clock
  • find phone with the clock (when in bluetooth range, makes it ring)

Gadgetbridge displays a lot of nice graphs and visualizations, even though not perfectly.

Not sure about other stuff that I dont use

  • navigation directions
  • display notifications
  • call notifications
  • tasks

Probably works, tasks likely needs a compatible app. Notification sync can leak sensitive data to an unprotected watch (it has a pin feature though).

You need to grant Gadgetbridge a ton of permissions, depending on what features you want. I guess "nearby devices" is the bare minimum.

You get Gadgetbridge from F-Droid, the devs dont build the APKs themselves.

The band has some more features too, like a slow-breathing-relaxation thing, a pomodoro timer and a "flashlight".

There is the program "Mi-Create" for Linux and Windows (currently a bit broken I think) that allows to create custom watchfaces. It is 3rd party and FOSS.

    5 months later

    missing-root You need to install the proprietary Mi Fit app once, poorly. It leaks a key in the logs, you need it for pairing.

    hey thanks for your post, I got a Mi Band 9 Pro and now I am trying to get the auth key on GrapheneOS but I can't find anything related in the System logs in Settings.
    I also exported the whole log and tried searching on a desktop, but did not find anything useful.
    Tried with Freemyband, but can't install since it's not supported anymore.
    I am kinda lost at this point, any help appreciated.

    I will add another post since i can edit the previous one.

    I am beyond puzzled. I managed to connect my Pixel 9 to my PC, enabled Data Transfer just to get to the logs, went to /Android/data/com.xiaomi.wearable/files/log/XiaomiFit.device.log, moved it on my PC and searched with Sublime.

    1. authKey just 1 match --> ... name='Xiaomi Smart Band 9 Pro ', nodeID=, huamiAuthKey=null, ...
    2. encryptKey zero matches
    3. only token produces 600 hits, but there is no token= and just one token = --> ... sToken = ...

    maybe I am doing something wrong?
    I just installed the latest Mi Fitness (Xiaomi Wear) on the phone, paired and then looked into the logs (I allowed "scan nearby devices" permissions just for pairing).

    But it seems I can't be able to find it, even though I see people using the very same Mi Band 9 Pro with gadgetbridgeand I am puzzled? At least I should get the damn key lol :D I see this issue closed and this pull request merged, so I should at least be able to pair it right?

    thanks

    UPDATE: I managed, I finally found the key. it was under a token= key inside XiaomiFit.device.log.
    this time I quickly exported the logs, and they were there.

      missing-root doesn't seem like something new, when I went in their Matrix server for troubleshooting, they all told me the same thing (search for encryptKey= or token= in XiaomiFit.device.log.
      and indeed, in the end, I found it where it was supposed to be, in a token= key, but I had to pair-unpair quite a few times.
      the only thing I can say is that, during the successful attempt, I immediately pulled the logs as soon as I paired the watch with the Mi Fitness app, maybe I wasn't fast enough in the previous attempts.

      btw the feeling of having the device talking only with an open source, totally local app with no internet access, is amazing😁

      10 days later

      Mi Band 9 here, works great. Does anyone know if there is a way to sync alarms from phone to the watch? I can only find a custom alarms screen on the GB app, but I don't want to have to set it in two places.

      PS I used a rooted secondary Android device to fetch the key. Worked great!

      2 months later

      HI, one question, does the Mi Band 8 show heart rate in real time during an activity?

      • faxe replied to this.

        jocelino I can only speak for mi band 9, but it does show HR in realtime while working out, so it should work on an mi band 8, too.