[APP] GadgetBridge - an alternative to MiFit app

_mysiak_

Senior Member
Apr 1, 2009
2,243
1,273
183
Can anyone tell me what the update files for Mi Band 4 are called? The only thing I can't find in the wiki is the name of Mi band 3 and not Mi band 4.
When unpacking the mi Fit apk the names in the res and fw folder do not allow any conclusions about the exact model.
I don't like to always include another app for the update process.
With my Mi band 3 it worked fine so far.
This is the most accurate source of FW versions and downloads. Posts often include official OTA links. https://geekdoing.com/threads/xiaomi-mi-band-4-official-firmwares.1372/

Update FW first and then RES. I often have to update FW 2-3 times before it really applies, not sure why, but it happens with Mi Fit as well..
 

Lebatman

Senior Member
May 20, 2012
99
19
0
Gainesville, FL
SOLVED : Hi, I've been using this for a couple of days with my Mi band 4.
I'm not sure what I'm doing wrong but I can't seem to get any heart rate data on the app.

Is there anything specific one has to do? My mi band updated its firmware a few days ago as well. Could it be issues with the latest firmware?

EDIT: I mean the passive pulse measurements that the band used to d do at 10 minutes intervals all day long without having to initiate an activity. I couldn't find a way to activate that.

EDIT 2: found it in the main settings > band settings.. I was looking only inside the settings icon of thr enrolled device. SUGGESTION : The settings icon in the band should also lead to band settings.

This works now.
 
Last edited:

Lebatman

Senior Member
May 20, 2012
99
19
0
Gainesville, FL
ISSUE : DAE have issues with their Mi Band 4 syncing?
Mine syncs rarely, sometimes after 5-6 hours, and it hasn't synced for the past 24 hours. It just keeps showing that it's 'fetching activity data' but doesn't seem to succeed. I've tried requesting syncs wherever there's an icon for it numerous times, killing the app, rebooting the phone etc.

Running Lineage OS 14.1 Unofficial Rooted.

Any solutions? @aasami
 
Last edited:

[email protected]

New member
Jan 9, 2020
2
0
0
Amazfit

I got an Amazfit smart watch for Christmas and have yet to use all the features, mostly because I can't login to MiFit and the AmaZfit app only appears to display the findings generated by the watch. The MiFit app app aparently controls the watch (weather, alarms, etc.). I created a MiFit account but can't login now. Is GadgetBridge an alternative that would work just like MiFit?
 

_mysiak_

Senior Member
Apr 1, 2009
2,243
1,273
183
I got an Amazfit smart watch for Christmas and have yet to use all the features, mostly because I can't login to MiFit and the AmaZfit app only appears to display the findings generated by the watch. The MiFit app app aparently controls the watch (weather, alarms, etc.). I created a MiFit account but can't login now. Is GadgetBridge an alternative that would work just like MiFit?
You don't mention which Amazfit version exactly. Check the list of devices on Gadgetbridge home page. If your device is fully supported, then you don't need Mi Fit. Otherwise you need to install Mi Fit at least once, to register the device with Xiaomi servers and obtain the security code. Once you have the code, you can uninstall Mi Fit and use Gadgetbridge or Notify & Fitness for Amazfit.

If you can't login to Mi Fit, try again in a few hours, their servers are known for often outages when new owners can't register their device.
 

dolons

Member
Dec 6, 2011
42
6
0
This is the most accurate source of FW versions and downloads. Posts often include official OTA links. https://geekdoing.com/threads/xiaomi-mi-band-4-official-firmwares.1372/

Update FW first and then RES. I often have to update FW 2-3 times before it really applies, not sure why, but it happens with Mi Fit as well..

Thank you but I'm not interested in using another source but I would like to know the exact name of the firmware in the unzipped mifit apk.
Unfortunately the names of geekdoing don't allow to trace back to the mifit source name.

You know the names for mi band 4 - fw and res files in mi fit apk??
 

_mysiak_

Senior Member
Apr 1, 2009
2,243
1,273
183
Thank you but I'm not interested in using another source but I would like to know the exact name of the firmware in the unzipped mifit apk.
Unfortunately the names of geekdoing don't allow to trace back to the mifit source name.

You know the names for mi band 4 - fw and res files in mi fit apk??
Mi Fit apk doesn't contain FW files for MB4 anymore. They are downloaded from Xiaomi servers after pairing and connecting the band and only after Xiaomi server flags your band as eligible for an update - as with standard staged OTA updates of smartphones. On a rooted phone you can find them in /data folder of Mi Fit (folder Firmware with random file name for FW and RES, if I remember correctly). You can't obtain them directly without installed and configured Mi Fit. Geekdoing shares BIN and RES files, if you do not trust them, use OTA links which are sometimes provided as well (or keep installed Mi Fit on your phone for FW updates).
 
  • Like
Reactions: dolons

dolons

Member
Dec 6, 2011
42
6
0
Mi Fit apk doesn't contain FW files for MB4 anymore. They are downloaded from Xiaomi servers after pairing and connecting the band and only after Xiaomi server flags your band as eligible for an update - as with standard staged OTA updates of smartphones. On a rooted phone you can find them in /data folder of Mi Fit (folder Firmware with random file name for FW and RES, if I remember correctly). You can't obtain them directly without installed and configured Mi Fit. Geekdoing shares BIN and RES files, if you do not trust them, use OTA links which are sometimes provided as well (or keep installed Mi Fit on your phone for FW updates).

thank you, that was new to me. On my old mi band 3 it works without this bullshit.

btw. mi band 4 don´t work proper with pulse... sleeping, sport ... all 80 bips...

I switch back to mi 3.
 

_mysiak_

Senior Member
Apr 1, 2009
2,243
1,273
183
thank you, that was new to me. On my old mi band 3 it works without this bullshit.

btw. mi band 4 don´t work proper with pulse... sleeping, sport ... all 80 bips...

I switch back to mi 3.
I find MB4 accurate enough, compared to MB2 it provides roughly the same stats. When I manually counted steps, MB4 was spot on. Pulse was about the same as when measured with digital blood pressure monitor. If your MB4 provides widely different results than MB3, you should consider applying for a warranty repair/replacement as there is no reason for it to differ.
 

tnttrx

Senior Member
Nov 23, 2012
161
62
28
so, is the main reason for using GadgetBridge, Notify & Fit and similar app keeping your personal data out of Xiaomi servers or there are some other benefits, too?
 

_mysiak_

Senior Member
Apr 1, 2009
2,243
1,273
183
so, is the main reason for using GadgetBridge, Notify & Fit and similar app keeping your personal data out of Xiaomi servers or there are some other benefits, too?
N&F has much more features and customisation options than Mi Fit. Also it barely uses any CPU, which can't be said about Mi Fit.
 
  • Like
Reactions: tnttrx

tnttrx

Senior Member
Nov 23, 2012
161
62
28
After couple of days with N&F I can say that it randomly looses continuous heart rate monitoring. It doesn't get killed completely, steps are measured all the time, just heart rate is missing. Does Gadgetbridge do this continuous heart rate measuring more reliable?
 

_mysiak_

Senior Member
Apr 1, 2009
2,243
1,273
183
After couple of days with N&F I can say that it randomly looses continuous heart rate monitoring. It doesn't get killed completely, steps are measured all the time, just heart rate is missing. Does Gadgetbridge do this continuous heart rate measuring more reliable?
I'm using 1 minute interval with automatic activity and sleep detection. Missing HR data happens to me during night occasionally, I suppose that it's because of how the band rests against the hand during sleep. Sometimes it probably gets into such position that HR can't be measured (or there is some bug in FW, though not sure why would it happen only during night). It doesn't matter which app I use as the data is missing on the band itself and it never happened during the day.
 

SUDALV

New member
Nov 27, 2011
3
0
0
28
Pushkino
Hello everyone, i have a question about "3rd party realtime HR access" function. I have Mi Band 4 setuped with auth key in Gadgetbridge. Now i want to get Heart Rate Measurement characteristic value in my app. I have created an app, subscribed to HRM update event, but data is receiving ONLY if i use heart rate in Mi Band menu, which is stopping after like 20 seconds. But i want to read values continuous. Is it possible? So i need to activate realtime heart rate meter from my app (or from gadgetbridge mod?)
 

_mysiak_

Senior Member
Apr 1, 2009
2,243
1,273
183
Hello everyone, i have a question about "3rd party realtime HR access" function. I have Mi Band 4 setuped with auth key in Gadgetbridge. Now i want to get Heart Rate Measurement characteristic value in my app. I have created an app, subscribed to HRM update event, but data is receiving ONLY if i use heart rate in Mi Band menu, which is stopping after like 20 seconds. But i want to read values continuous. Is it possible? So i need to activate realtime heart rate meter from my app (or from gadgetbridge mod?)
I suppose that intent in Gadgetbridge works as in Notify & Fitness. It gets updated only if band measures HR - you need to measure it manually from the band, from the app, run a workout or setup continuous/periodic HR measurement in Gadgetbridge. Receiving intent is passive action, you can't send any instructions to the band or other app. For active instructions you need to use events - in such case you can use your own app to "wakeup" Gadgebridge which will then instruct Mi Band to take a HR measurement.
 
  • Like
Reactions: SUDALV

roel1976

Senior Member
Apr 4, 2011
113
16
38
Amersfoort
I absolutely love this app and how it represents data compared to the mifit app which just looks horrible in comparison.

However, I often install new ROM on my phone. I then have to backup and restore my apps via titanium backup. I noticed however that the app does not send notifications to the phone even though I can still retrieve the sleep data etc. I did enable notification access again but this did not solve it.


How do you recommend keeping the app + data + connectivity across ROM installs?

Additional question: I then made a backup of db and removed my watch from the app and synced it again. I then restored the db. however I now see two watches in my app. the newly synced one and the restored one. Is there a way to merge the restore with the curent db? or something similar so I can keep my historical data.
 

_mysiak_

Senior Member
Apr 1, 2009
2,243
1,273
183
I absolutely love this app and how it represents data compared to the mifit app which just looks horrible in comparison.

However, I often install new ROM on my phone. I then have to backup and restore my apps via titanium backup. I noticed however that the app does not send notifications to the phone even though I can still retrieve the sleep data etc. I did enable notification access again but this did not solve it.


How do you recommend keeping the app + data + connectivity across ROM installs?

Additional question: I then made a backup of db and removed my watch from the app and synced it again. I then restored the db. however I now see two watches in my app. the newly synced one and the restored one. Is there a way to merge the restore with the curent db? or something similar so I can keep my historical data.
I don't use this app, but you might have luck with following the official documentation (export, import and import with merge):
https://codeberg.org/Freeyourgadget...t-Merging-Processing#user-content-data-export