yashsingh1/xdaforums huggingface dataset:
[Android Software Development] jps1x2:
non grouped notifications functions are fixed and working again on last published version here on Android File Host, now i am going to publish too to my Telegram Channel [MENTION=392113]MiFi[/MENTION]tTcxExport
[Android Software Development] rbt07:
Latest version works well on ANdroid Pie. Thanks!
[Android Software Development] osweberuco:
Hi, thanks for reply

I think the issue is with bip itself, I mean, if I start to run before GPS is fixed, mifit app stimate that gap of time with no GPS fixed, so in mifit app, you can see whole track (even no GPS from scratch), but gpx file starts to show track once GPS is fixed (so what you see is less distance/wrong pace/etc). Could it be?

Thanks.
[Android Software Development] jps1x2:
Ok. Thanks for feedback!
[Android Software Development] jps1x2:
Yes it is. Gpx file points need to have time and lat/long information to be created. Try to wait gps fix and it will create gpx/tcx files fine.
[Android Software Development] osweberuco:
Just tested: waiting for gps fixed on bip produces more accurate gpx (but it is1 not exactly the same you see in bip or mifit):

6,01 km (6010 meters) on bip/mifit

5,94 km (5948 meters) on Strava once uploaded gpx.

Even being acceptable (~50 meters in 6 km.), that difference is a bit strange because the data should be the same, I mean, both comes from bip/GPS, right?

Another issue I'm facing is about calories burned: In this test ~400 on bip/mifit (logic), but on Strava: ~900 (XD impossible)

I think there is also a problem with altitude, because the values seems to be wrong.

Thanks a lot.
[Android Software Development] sergentum:
Hi, i found that the cadence graph can be shown in original MiFit, so can you please add it to tcxExport?

You can get cadence points if you start training from the mifit. After that you can see it in the app. See attached screenshot.

Also i see the data is stored in database, as i understand in BULKGAIT column of TRACKDATA table. That would great if you'll add this data to tcx file so it will be shown in endomondo and other services.
[Android Software Development] sarmientoernest:
I managed to use my google account for this version using the steps which i tried and tested below:

Back up the data of your official mi fit app which is currently logged in using your google account then uninstall the app. After that, install the modded version and immediately restore your data backup so that when you open the modded version your google account is still logged in.
[Android Software Development] extremeno:
Thanks for the hint. I tried it by manually saving/restoring the content in <main storage>/Android/Data/com.xiaomi.hm.health but it didn't work. According to FX explorer, there's more data at /data/user/0/com.xiaomi.hm.health/ but root is needed to backup/restore this folder, so I couldn't go further.

Anyway, I'm new to Xiaomi, so creating a Mi account wasn't a big deal...
[Android Software Development] cantruchd:
Can you share the code of the mod so I can help to check why google fit integration does not work?
[Android Software Development] guano30:
Hi Mate!

Is it Possible to export all Workouts that are stored in the Mi Account? I have my Bip since 1.5 Years and i would be happy to export all workouts from that periode...

Possible ?
[Android Software Development] Kayakista:
Hi there.

First of all great work.

I want to try this APP ( I am using gadgetbridge until now ) but if I have all in the same app probably would be easier.

I basically want easy and simple track export to GPX

But suppose every couple of months maybe I should run original app for firmware updates maybe ( to be on the safe side and do it with official one )

If I unistall original mi fit app and then install this modded one, back and forth, do I have to repair with the watch every time ? factory reset watch? Do I lose data ?

The local private SQLLite database survives each uninstall/install or it's deleted/cleared with each install/uninstall ?

I ask this because I started with google account login, then when I saw this app needed mifit account, I switched to mifit account ( deleted mi fit app data, rerun original app, creeated mi fit account, can't pair with phone until factory reset it, and unistall and reinstall original app again and finally pair again )

with all this I lost all data ( couple of days anyway I didn't care I have the watch for 3 o 4 days )

But if in the future if I will be switching/unistalling/installing between original APP and this modded one every now and then I don't want to lose any data or watch configuration.

Thanks.
[Android Software Development] Flippiej:
I don't have to pair it every single time, just reinstall one app or update the next version over the other and it stays connected. All your info is stored and linked to your mi account now, so even when you detach your Bip and reattach it to official/unofficial app it will sync the same data.
[Android Software Development] mike-kt:
Hi and in first thanks for your work.

i have question about exporting to strava. Why is walking export like running? Is this Bug fixed in Last version or it will be fixed in future version? Thanks
[Android Software Development] sigot:
Hi. thanks for perfect work on this project. I have used your mod before, now I have made an upgrade to the newest verion, but When I want to upload to strava automatically, it says that file is invalid. is there any workaround? thanks
[Android Software Development] guano30:
hmmm...

Is this here a Question only Thread or will the DEV of this App also answer?

I now Exported about 700 Events to Strava step by step single.... coz i nowhere found the possibility to export all data at once.....fine..

Now I did workout today but nothing is updated to Strava automaticly...

Export TPX, GPX and Strava submit / Auto Upload is checked, but nothing is uploaded automaticly...why?

Installed latest version, also version with Firmware....

Strava Token is set and manually Upload works......but not automatic...... Bug or Feature?
[Android Software Development] Gasolico:
Hola, cada vez que intento exportar una sesión a STRAVA se me queda en proceso/progress Genera Gpx/Tcx Progreso 75% y de ahí no pasa ¿alguna idea o sugerencia de que se puede hacer? He probado con distintas versiones.

Un saludo.
[Android Software Development] UkuS:
Hello, i tested with booth version with fw and without, but dont work accents and emoji,

Look the test,

i sent the message: çÇãáâéíõú by whatsapp

and in bip appeared:

how i fix it?
[Android Software Development] osweberuco:
Hi,

I've lost current weather data in bip, it only shows max and min temp, but not current, even location permissions are granted and mifit mod detects correctly my current possition. Do you know the reason?

In adition, I've seen there is a new version of official MiFit app (3.6.0), are you going to publish a new mod version?

Thanks a lot for your work.
[Android Software Development] afterall:
How to update firmware on Amazfit Bip

Hi, I'm using the modified Mi Fit app with my Amazfit Bip, Xiaomi Mi9 and its working great for transferring to Strava. I did want to look at updating the firmware on the watch but not sure how to do it. I've already removed the standard Mit Fit app from the phone and installed your modded version. I'm not sure how update with your firmware mod if I've not installed it yet (looking at your instructions below). :rolleyes:

Appreciate any help you can give.

A

Normally I publish 2 versions of the mod, one that includes firmware and the other without firmware. If you use the one that includes firmware I do not take responsibility for possible bricks of your watch / smartband. To update the firmware should be done with the official Mifit application and after updating uninstall oficial Mifit version and install my mod. Although I always use my mod with the included firmware to upgrade my Amazfit Bip when there are new firmware versions and I have never had problems.
[Android Software Development] jps1x2:
Published on Android File Host version 3.6.0_Revolutions.
[Android Software Development] jps1x2:
Always there are differences between platforms when importing gps files (tcx, gpx, fit, etc.), because there are internal calculations on every platform, this is normal. Try to export one workout from your Strava account and import it for example on Runtastic and you will see it. Altitude differences are related to the quality of Barometer of Amazfit Bip. I always recommend to send to Strava tcx format but without forcing altitude (there is a checkbox on Mod options configuration), then altitude is recalculated when uploaded to Strava and at least you have an aproximation of altitude graph.

Calories are calculated different on every platform, i can't control it.
[Android Software Development] jps1x2:
I don't know any procedure to allow google account login, on all mod versions only work Mi Account login because of signature change of app when recompiling. Not all users have rooted phones and can backup and restore completely Mifit app folder.
[Android Software Development] jps1x2:
It is not necessary to share the mod code to see this. If you decompile the official Mifit app, compile it and sign it, it will not let you login with google or facebook.

It is not a problem of my mod, it is a problem of signature change of all mods.
[Android Software Development] jps1x2:
If you use version of mod including official firmware you would not have problems, i am using it more than a year and it worked fine all the time. Then all your data is maintained on cache, login is done (with Mifit account) and working like other updates of other apps, transparently. If you use usually official firmware without modifications on firmware, font or resource it is the easiest way.

All your synchronized data is on Mifit Cloud, you don't have to worry about reseting or unpairing your watch, all your information is ok.
[Android Software Development] jps1x2:
For a workaround, you can change activity type editing your workout on Strava app or Strava webpage.

It could be changed on future versions. If you have any walking activity on your Strava account, could you export it to tcx and open it in a text editor and send me the xml tag <Activity Sport="xxxxx">?
[Android Software Development] jps1x2:
Hi,

I'm sorry, but I have very little free time. I distribute it keeping the mod and adding new features little by little. In each update of the mod that I publish I try to answer all the doubts of the thread.

Auto upload means that every time you export a training it is automatically uploaded to Strava and you do not have to manually do it on Strava's portal.

It is not a bug, is like it works.
[Android Software Development] jps1x2:
¿Estas seguro de que tienes todas las opciones correctamente activadas en las opciones de configuracion del mod con el token de Strava obtenido?
[Android Software Development] jps1x2:
It is not a bug, like you can read here:

https://xdaforums.com/android/software/mod-mifittcxexport-based-oficial-mifit-t3857636/post78227361#post78227361

You have to install font file with emoji compatible with your firmware.
[Android Software Development] jps1x2:
Sorry but i am not an expert of all (weather, etc.) configuration options of Mifit app, i know fine my mod and all related information about sport activity but not the rest. There are other forums, Telegram groups, etc. to ask for this.

I saw that on 25/04/2019 it was published official 3.6.0, on 27/04 i finished integration of my mod and tests and on 28/04 it is published here, i think that this is quite fast compared to the publication of other mods.

I always try to publish the mod at the most 3 or 4 days after its official publication. If there are many modifications and integration problems, it may take longer.

The first place where it appears published is on my Telegran channel [MENTION=9859964]Mifitt[/MENTION]cxExport.
[Android Software Development] jps1x2:
Hi,

normally i use my mod that includes firmware to upgrade my Bip to new firmware versions, i never had problems in this way, but you have to do it under your responsability . On all mod versions that i publish including firmware i use official firmware not modified one. This is the easiest way of maintaining your Amazfit Bip on last firmware version.
[Android Software Development] jps1x2:
My mod is only able to export workouts on cache app, it implies that it has to be opened on Mifit app and then it can be exported or uploaded to Strava. There is not an option to export all workouts on cache and i think that it will not be implemented.

Here:

https://xdaforums.com/smartwatch/amazfit/xiaomi-huami-amazfit-export-data-t3533292

You can find information about exporting it in other way.
[Android Software Development] jps1x2:
Hi,

which type of activity are you trying to upload? Are your sure that all configuration options of mod are correctly configured? Send me a gpx or tcx file that is showing this error message on export/upload process.
[Android Software Development] sigot:
Cycling, all files are invalid.
[Android Software Development] jps1x2:
If you want to upload gpx file to Strava you have to check the option "Strava... Force gpx upload". By default file format uploaded to Strava is tcx because it can contain laps and other improvements and you have to force gpx upload if you want it.
[Android Software Development] sigot:
Now I see, i have TCX checked, gpx and force gpx unchecked. Now it works. thanks
[Android Software Development] Kayakista:
There seems to be some kind of problem with exported .gpx and BaseCamp

I guess something with xsd schema validation and extensions, Basecamp is pretty picky with those and refuses to load a .gpx file with any subtle error or not strictly compliant.

There is no problem with .tcx

As a test, after processing an exported track with GPSBabel, reading from gpx, writing to gpx, it removes completely xsi:schemaLocation but still failed to import into BaseCamp ( as xmlns:gpxtpx and xmlns:gpxx are still present )
[Android Software Development] jps1x2:
I have tested gpx files generated using my mod and are fine on several platforms, tcx is compatible too.

Do you have a gpx file compatible with basecamp?
[Android Software Development] juniorwan:
Weather

Hi, I´m facing problems with weather. I cannot see on my bip informations about weather. Any tips? Fix?

Tks
[Android Software Development] Kayakista:
I've found the problem.

<cmt> tag isn't allowed inside <trkseg> (it's written at the end inside trkseg )

https://www.topografix.com/gpx/1/1/#type_trksegType

It should be written in trk, at the very beggining, strictly in this order , name, cmt, desc

https://www.topografix.com/gpx/1/1/#type_trkType

<trk>
<name>Libre</name>
<cmt>TimeArrInic 31 ceroa1 2 noinc 2 laps 0 segundos pausas 0 TI 1556657714 CT 2771 ET 1556660485</cmt>
<desc/>
<trkseg>
<trkpt lat="xxxx" lon="yyyy">
[Android Software Development] Kayakista:
It seem https://www.gizmochina.com/2019/05/10/mi-fit-app-gets-new-look-after-latest-update/

Mi Fit APP got heavily updated, I guess you have a lot of work to do again if they changed the interface a lot.

According to comments it seems nobody likes the new interface.
[Android Software Development] jps1x2:
I am testing this weekend decompile and recompile Mifit app v4.0 and having several problems and errors, I will need to invest very much hours to mod it again. I am collaborating with italian modders' group illgruppotester on several mod's parts and we are adjusting and correcting these errors.

Regards.
[Android Software Development] jps1x2:
Published v4.0.0 and 3.6.0B on my Android File Host. Enabled on all versions Google Fit Sync. Enjoy!
[Android Software Development] trkicks:
thank you very much. Great work
[Android Software Development] herdamit:
Thank you very much for your mod!

I installed it after I uninstalled the official app from google play store, but now the playstore wants to update the mod to the official apk. is there anything I can do to prevent it from doing so? (Except manual update)

Gesendet von meinem LYA-L29 mit Tapatalk
[Android Software Development] juniorwan:
Here I uptaded the app to v4.0.0 (last update) before install this mod and everything is fine, except the weather. You can uninstall and update the app on the PlayStore. After update, uninstall and install the mod. Maybe it works!
[Android Software Development] jps1x2:
I think that my mod can't be replaced by Mifit of playstore because it has a different signature and can't be updated automatically.
[Android Software Development] herdamit:
Hmmm, strange. The update message is gone this morning, must have been some caching issue...

Gesendet von meinem LYA-L29 mit Tapatalk
[Android Software Development] abm82:
I have a track on mi fit loggin on google account. Is there a way to send this to mi fit account?
[Android Software Development] jps1x2:
No it is not.

Regards
[Android Software Development] gauge007:
Dear jps1x2,

I can't access into the app with my google account. I tried with the 4.0 and the 3.6 version. The original app works. Why this problem?

Thank you
[Android Software Development] Kayakista:
Hi, You can't use your google account, it's in the first post. You should use or create a mifit account.
[Android Software Development] gauge007:
Ops, sorry, My fault :(

Thank you
[Android Software Development] Kayakista:
Hi jps1x2,

I was testing laps with my amazfit BIP, long pressing the button to make laps and with pauses between them.

After exporting tcx file, I saw that each lap <TotalTimeSeconds> seems to be calculated as the difference between next lap StartTime and this lap StartTime.

This is not accurate when there are pauses between laps, as in interval training.

I think it's best to calculate each lap <TotalTimeSeconds> as the difference between the last trackpoint timestamp and the first in each particular lap.

Strava for example recalculates it on it's own after uploaded, so its intervals/laps are displayed right and you don't even notice the error, but other applications do not, as for example runalyze.

This I think should be done irrespective of option "resta pausa / decrement paused "

What do you think ?
[Android Software Development] vukhanh1811:
How can I export TCX file to Computer ? Tks
[Android Software Development] Kayakista:
export/save tcx to phone filesystem with modded app, then save to gogle drive and then download or sync, or use AirDroid.
[Android Software Development] DeVilio:
Anybody know is there any way to join two accounts just one I set up with Facebook and obviously I cannot log in into this modded version. Second account I created moments ago via Xiaomi site and I joined Facebook but I cannot see any of my workouts. Is there any way to join these two accounts created via Facebook and Xiaomi?
[Android Software Development] dimis_golf:
Thanks

Thanks very good, I have a request, is it possible to make phone calls show up with surnames first?
[Android Software Development] wolandtel:
1. Could you please unpin server TLS cert in the app?

2. Run speed in strava differs one in mifit. What could be the reason?
[Android Software Development] trkicks:
Read this - https://support.strava.com/hc/en-us/articles/216919487-How-Distance-is-Calculated?mobile_site=true
[Android Software Development] jps1x2:
Version 4.0.5 available on my Android File Host, by default it has disabled firmware upgrade, see first post of thread for more info. It is increasingly complicated to patch this app on newer version because of internal changes of developers of Mifit. Enjoy!
[Android Software Development] rbt07:
Thanks for your hard work.
[Android Software Development] jps1x2:
Lap support is only working fine if pauses are short (1 or 2 seconds) to only mark laps. Becase of pause information on mifit databases i can't calculate it better than it is. I have included option to decrement pauses but i detected that if pauses are longer than 1 or 2 seconds information obtained is not accurate.
[Android Software Development] jps1x2:
Could you explain me what "unpin TLS cert in the app" means?
[Android Software Development] wolandtel:
When I tried to sniff traffic from apps on android 9 with mitmdump I realized that no one of them trusts mitmdump cert. Articles explain this as apps pin their certs and trust only specific issuers no matter which certs are installed in the system trusted storage. One of the solutions is to patch app to disable such behavior.

But since it affects almost all apps under android 9 and doesn't affect the same apps under android 6, it's not a specific app problem. Unfortunately, I still don't completely understand how it works.
[Android Software Development] rbt07:
version 4.0.5 is not working properly

Dear jps1x2,

unfortunately, I must say that the new version 4.0.5 is not working properly. I was cycling today. The activity was transferred to MiFit. When attempting to open an activity and display a map, MIFit 4.0.5 crashes repeatedly. I installed an older version of 4.0.0, which works fine.

Please repait it. Thanks for your hard work.

R.
[Android Software Development] jps1x2:
Hi rbt07,

i have checked mifit original and have the same error, if you install it you can check it. Displaying Cycling activities craches Mifit app, it has to be corrected by developers of Mifit.

Regards

jps1x2
[Android Software Development] dcr2486:
I record the activity using mifit app only but when I tried to force upload the activity to strava there is nothing happens.
[Android Software Development] Udaiso:
The swimming activities appear like invalid files (all data in zero) and the walking activities does not show the distance, only time and calories. I have a Mi Band 4. I'm doing something wrong?

Enviado desde mi A0001 mediante Tapatalk
[Android Software Development] Flippiej:
Probably because this is mod is for the amazfit bip (The developer only has a Bip, so he can't test for other devices) and the activities expect gps locations for distance calculations.
[Android Software Development] jps1x2:
Yes it is [MENTION=5905774]Flippiej[/MENTION], export function to tcx/gpx need gps coordinates. only Treadmill activity on Bip have not gps coordinates and can be used to Crossfit or similar activities and can generate tcx without gps data to include heart rate information.
[Android Software Development] jps1x2:
Version 4.0.6 available on my Android File Host.

Developers of mifit corrected bug on displaying cycling activities.
[Android Software Development] jps1x2:
What kind of activity are you recording with mifit app? How is your configuration on mifit mod configuration dialog?
[Android Software Development] dcr2486:
outdoor cycling activity and i have check the force gpx upload on configuration setup with strava token. upon uploading shows error message invalid file.
[Android Software Development] MikeG6:
Crash on latest version while trying to pair watch.

Wysłane z mojego ONEPLUS A6013 przy użyciu Tapatalka
[Android Software Development] ZZ-GOD:
Sorry I don't speak English (very bad English...) So I ask in Spanish (because I see, some people speak this language)

Cómo están, tengo una duda... Yo tengo creada una cuenta mi fit pero con Google, entonces cuando intento instalar mi fit mod, sinceramente nunca pude hacerlo funcionar... Muchos dirán que cree una cuenta nueva, pero sinceramente tengo un recorrido que no quiero perder, entonces pregunto dos cosas:

1ro hay forma de poder ingresar con la cuenta Google al Mi Fit mod?

2do de no ser así, cómo puedo cambiar la cuenta mi fit sin perder los datos que ya tengo.

Thanks and sorry .

Enviado desde mi POCOPHONE F1 mediante Tapatalk
[Android Software Development] xluben:
I just installed v4.0.6_Revolutions onto my Pixel 2 XL and everything seems to work correctly until I try to export. I have it setup with my Strava account but when I try to do the Strava auto upload it will gives an error that says Invalid File. I have tried this with several different running workouts. If I change the setting to TCX Export it will stop on the Progress screen. Sometimes shows 75% and sometimes shows 100% but nothing seems to happen.