[MOD][4.4+] MifitTcxExport based on oficial Mifit to export workouts to file/Strava

Search This thread

[email protected]

New member
Aug 18, 2015
3
0
@jps1x2
Thanks for your effort in providing the modified apps. I would appreciate if you could open source your process of modifying the app (I'm particularly interested in Xiaomi Wear app -- I have a Xiaomi Mi Watch Lite) so the others could help with reverse engineering, modification, translation and other improvements.
 

Zgloub

New member
May 7, 2021
1
0
@jps1x2 Thanks a lot for your work !! it works fine for me with a Xiaomi Watch Lite and Wear..

As I use the Watch mainly for hiking and cycling I was wondering if a better meteo accuracy can be implemented, indeed it appears to give prevision for the biggest town around.

In the same idea, beyond your work, is there any possibility that we could develop our own watch main screen, for example with barometer and altitude data.. ? I think the potential of finest applications for a such cheap watch with all its sensors can be huge.
 

jps1x2

Senior Member
Nov 12, 2012
163
107
@jps1x2 Thanks a lot for your work !! it works fine for me with a Xiaomi Watch Lite and Wear..

As I use the Watch mainly for hiking and cycling I was wondering if a better meteo accuracy can be implemented, indeed it appears to give prevision for the biggest town around.

In the same idea, beyond your work, is there any possibility that we could develop our own watch main screen, for example with barometer and altitude data.. ? I think the potential of finest applications for a such cheap watch with all its sensors can be huge.
Hi!

Sorry but my mods only are related to extract trainning data from app and not to other things related to device firmware level or similar like you are asking for.

Regards

Jps1x2
 
  • Like
Reactions: Zgloub

jps1x2

Senior Member
Nov 12, 2012
163
107
@jps1x2
Thanks for your effort in providing the modified apps. I would appreciate if you could open source your process of modifying the app (I'm particularly interested in Xiaomi Wear app -- I have a Xiaomi Mi Watch Lite) so the others could help with reverse engineering, modification, translation and other improvements.
Hi!

I am working several years on my mods and at the moment i am not going to open source the code.

Regards

Jps1x2
 

jps1x2

Senior Member
Nov 12, 2012
163
107
Published here Zepp mod version based on v5.12.2.

Alexa integration is working fine with this version using my new Amazfit Band 5. If you test Alexa on this mod, remember to uninstall Amazon and Amazon Alexa before authorizing it, then you can authorize Alexa on Zepp mod and later you can reinstall again your Amazon apps. This is because of this is a mod and not the original app with its original Zepp signature.

Enjoy!
 
May 12, 2021
5
0
Hello All!

I am a new user of Xiaomi mi watch lite and I am using the MifitTcxExport and I would like to know if is it possible to export data from swimming to Strava with this app, If not, does anyone know any other app to do this?

thank you,
Guilherme Braga
 

Akusura

Member
Jul 28, 2012
12
2
@jps1x2 thank you for your effort and for sharing it with us.

I have a Xiaomi Mi Watch Global Version and installed the Xiaomi Wear App provided here. I gave all the permissions, but when i press EXPORT TCX/GPX/STRAVA, none of my activities show up.
Do I need to have a rooted device? Or is something else I need to do?
 

cnx90

New member
Apr 25, 2021
3
4
@jps1x2 thank you for your effort and for sharing it with us.

I have a Xiaomi Mi Watch Global Version and installed the Xiaomi Wear App provided here. I gave all the permissions, but when i press EXPORT TCX/GPX/STRAVA, none of my activities show up.
Do I need to have a rooted device? Or is something else I need to do?

Hi @Akusura

I am using the Xiaomi Mi Watch Global as well with the MOD. It works for me. No rooted device needed.
After I click on EXPORT TCX/GPX/STRAVA I see:
1. --->>> Configuracion / Setup
and then list of my workouts
Date + Activity type
...
...
...

I think the MOD is taking the list from app cache you should first display them, go to "View workout history" and try viewing list of your workouts inside the Xiaomi Wear App in a standard way, click on the workout (to see the map and details). It should help.
 
  • Like
Reactions: jps1x2

Akusura

Member
Jul 28, 2012
12
2
Hello @cnx90,

I've tried your suggestion and activities still don't show up for export. I've opened up the details for every single one of them individually and still no luck.
 

jps1x2

Senior Member
Nov 12, 2012
163
107
Hello @cnx90,

I've tried your suggestion and activities still don't show up for export. I've opened up the details for every single one of them individually and still no luck.
Hi!

Mod is taking files from app cache. This is the reason to open first some workouts to load cache files.

If the app is not displaying the list of previous cached workouts it is because it can't find cache folder.

If you have a rooted phone we can try to find that file path.

Which Android version do you use? Which is your smatphone model?

Regards

Jps1x2
 

JRoldao

Member
Apr 25, 2012
5
2
Hello. I am using xiaomi watch lite + xiaomi wear mod 2.6.3i. I can only export to strava the recent workouts, the old one's are in the list to export but are never uploaded to strava and with no error.

Can you help?
Thank you very much
João Roldão
 

Akusura

Member
Jul 28, 2012
12
2
Hi!

Mod is taking files from app cache. This is the reason to open first some workouts to load cache files.

If the app is not displaying the list of previous cached workouts it is because it can't find cache folder.

If you have a rooted phone we can try to find that file path.

Which Android version do you use? Which is your smatphone model?

Regards

Jps1x2
My phone isn't rooted.

It's a Realme X2 Pro running Android 10, with Realme UI
 

jps1x2

Senior Member
Nov 12, 2012
163
107
Hello. I am using xiaomi watch lite + xiaomi wear mod 2.6.3i. I can only export to strava the recent workouts, the old one's are in the list to export but are never uploaded to strava and with no error.

Can you help?
Thank you very much
João Roldão
Hi!

Disable auto-upload to Strava in the options and export one old workout. Look at the folder:
/sdcard/Amazfit_Jps1x2
If it is creating a file with extension .gpx or .tcx. Perhaps file structure of old workouts could be different.

Regards

Jps1x2
 
  • Like
Reactions: JRoldao

jps1x2

Senior Member
Nov 12, 2012
163
107
My phone isn't rooted.

It's a Realme X2 Pro running Android 10, with Realme UI
We need to install a modified version of my mod to debug and investigate file structure on your phone.

I will prepare it this week and we could test this weekend.

Regards

Jps1x2
 

JRoldao

Member
Apr 25, 2012
5
2
Hi!

Disable auto-upload to Strava in the options and export one old workout. Look at the folder:
/sdcard/Amazfit_Jps1x2
If it is creating a file with extension .gpx or .tcx. Perhaps file structure of old workouts could be different.

Regards

Jps1x2
Yes, both files are being created on that folder. There is any way to manually import those files to strava?
Thank you very much
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    Heart Rate from Mi Watch is syncing? Can you show synced training on Strava?
    Yes. It is supported natively on v2.8.1i. It is syncing heart rate too.

    Regards

    Jps1x2
    1

    jps1x2 you planning to add the mod to 2.8.1 Xiaomi wear app ? I found it pretty inconsistent since in case of the app doesnt push the workout to Strava it will never get uploaded, there is no manual push option so you mod could be a great addition.​

    1

    jps1x2 you planning to add the mod to 2.8.1 Xiaomi wear app ? I found it pretty inconsistent since in case of the app doesnt push the workout to Strava it will never get uploaded, there is no manual push option so you mod could be a great addition.​

    I confirm, me too with the official application at 2.8.1 once synchronized but the following time not. And it is not possible to force it
    1
    Really disappointed.....the new official version is a shame....
    1
    really dissapointing indeed. 2.8.1 never synced any of my workouts, even when correctly paired to Strava.
  • 19
    MifitTcxExport / ZeppTcxExport / WearTcxExport
    Mifit v5.1.0_HR / Zepp v5.12.2_HR / Wear v2.8.1i Global - 2.6.4 Chinese

    UPDATE 2021/06/12 Published Mifit version v5.1.0HR.
    UPDATE 2021/06/11 Published Wear version v2.8.1i with Alexa for compatible devices.
    UPDATE 2021/05/09 Published Zepp version v5.12.2HR with Alexa for compatible devices.
    UPDATE 2021/05/05 Published Mifit version v5.0.2HR.
    UPDATE 2021/04/22 Published Wear version v2.6.3i.
    UPDATE 2021/04/14 Published Mifit version v5.0.0HR.
    UPDATE 2021/04/08 Published first Wear Chinese version v2.6.4 for Chinese devices.
    UPDATE 2021/04/05 Thanks @jfulgen for your video about our mods:
    UPDATE 2021/04/04 Published Mifit version v4.10.0HR and Zepp version 5.11.1HR.
    UPDATE 2021/03/27 Published first Wear version v2.5.1i.
    UPDATE 2021/02/06 Published Mifit version v4.9.0HR and Zepp version 5.9.2HR.
    UPDATE 2021/01/11 Published Mifit version v4.8.1HR and Zepp version 5.8.1HR.
    UPDATE 2020/12/19 Published Mifit version v4.8.0HR.
    UPDATE 2020/12/07 Published Zepp version v5.6.2HR.
    UPDATE 2020/11/08 Published Mifit version v4.7.0HR.
    UPDATE 2020/11/02 Published Zepp version v5.4.1HR.
    UPDATE 2020/10/25 Published version Mifit 4.6.5_HR.
    UPDATE 2020/10/20 Published Zepp version v5.3.1HR.
    UPDATE 2020/10/08 Published Mifit 4.6.1_HR version, and from now on i will mod Zepp too, first patched version is v5.2.1HR.
    UPDATE 2020/07/13 Published 4.2.0_HR version, Added options to open with external app gpx and csv of HR data files after exporting. Google Fit working again. You can select field separator for csv files.
    UPDATE 2020/05/11 Published 4.1.0_HR version, Complete redesign of the mod, export to gpx/tcx/Strava our workouts, allows to update AGPS when OTA and LOCAL firmware flash is disabled. Google Fit OK. Added AGPS info on firmware info. You can export heart rate information now.
    UPDATE 2020/04/13 Published 4.0.17_Covid-19 version, that allows to update AGPS when OTA and LOCAL firmware flash is disabled. Google Fit OK. Added AGS info on firmware info and you can force agps update now.
    UPDATE 2020/02/07 Published version 4.0.15_Revolutions that allows to update AGPS when OTA and LOCAL firmware flash is disabled. Google Fit OK.
    UPDATE 2019/12/28 Published version 4.0.14_Revolutions that allows to update AGPS when OTA and LOCAL firmware flash is disabled. Google Fit OK again.
    UPDATE 2019/11/03 Published version 4.0.11_Revolutions that allows to update AGPS when OTA and LOCAL firmware flash is disabled.
    UPDATE 2019/08/12 Published version 4.0.7B_Revolutions_AGPS-OK that allows to update AGPS when OTA and LOCAL firmware flash is disabled.
    UPDATE 2019/08/08 Published version 4.0.7_Revolutions with firmware update of devices disabled + corrected crash on adding new devices
    UPDATE 2019/07/13 Published version 4.0.6_Revolutions with firmware update of devices disabled
    UPDATE 2019/07/07 Published version 4.0.5_Revolutions with firmware update of devices disabled
    UPDATE 2019/05/18 Published version 4.0.0_Revolutions and 3.6.0B_Revolutions fixing app crash showing devide type info
    UPDATE 2019/04/28 Published version 3.6.0_Revolutions containing all the functions and improvements of previous versions
    UPDATE 2019/03/28 Published version 3.5.9_Revolutions non-grouping notifications and emoji support + Amazfit Bip firmware detail info + More Android Pie compatibility
    UPDATE 2019/02/08 Published version 3.5.8_Revolutions non-grouping notifications and emoji support + Amazfit Bip firmware detail info
    UPDATE 2019/01/17 Published version 3.5.7_Revolutions non-grouping notifications and emoji support.
    UPDATE 2018/12/31 Published version 3.5.6_Revolutions non-grouping notifications and emoji support.
    UPDATE 2018/12/15 Published version 3.5.5_Revolutions non-grouping notifications and emoji support.
    UPDATE 2018/11/21 Published version 3.5.5.1_Revolutions non-grouping notifications and emoji support.
    UPDATE 2018/11/18 Published version 3.5.4_Revolutions non-grouping notifications and emoji support.
    UPDATE 2018/11/07 Published version 3.5.3_Revolutions.
    UPDATE 2018/10/29 Added information about laps and published version 3.5.2_Revolutions.
    UPDATE 2018/10/28 Added explanation of configuration options.

    Using this mod you can export your workouts to gpx/tcx files or upload them automatically to your Strava account.
    It is based on the official Mifit application with modifications that allow data extraction and import to other platforms.

    About Firmware update of devices:
    From 4.0.5: Only one version of MifitTcxExport will be published when a new version is released from now on. With a flag (explained later) you can enable/disable firmware update on devices.
    Previous to 4.0.5: 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.

    The way to use the tool is very simple, when we are visualizing a training session, by clicking on the upper right button to share our training we will see a list of the trainings that we have loaded in the Mifit cache. The first item in that list leads to a dialog that allows us to change the mod's configuration.

    In the latest versions after researching the Strava API, studying the Java threads and many other things, I have already managed to allow the automatic upload of the training to Strava when the users selects an activity to export.

    You also have the option to continue exporting the files to gpx / tcx format and upload them manually (or using other tools) to your favorite sports platforms (Polarflow, GarminConnect, Runtastic, Endomondo, Strava, etc.)

    Here I leave a gif image as a tutorial so that you can observe how easy it is to use:


    IgtULD2.gif

    Explanation of configuration options:

    m39sv5t.gif

    Information about creating laps with small pauses on your workout and converting it to Laps on Strava website:

    l5X1LRj.gif

    Added support for non-grouping notifications and support to display emojis.
    It is important to know how to upgrade firmware files (.res, .ft and .fw) using Gadgetbridge or a similar tool to upgrade font file that includes emoji images. Thanks to ASMUser from MyAmazfit.ru for the code used to this modifications and to renzettis from ilgruppotester that helped me to test several .ft, .res and .fw files to achieve this modification. Special thanks to xCape for sharing ideas and testing last versions of Mifit and to ASMUser for help on deco and reco and other tips:


    wFQDIJr.gif

    2019-02-08 Added support to display detailed information about firmware on Amazfit Bip device:

    HQcMWDA.jpg

    2019-02-08 Corrected display of contact information when receiving call on native-Ukrainian and other languajes.

    2019-03-28 Added more compatibility to Android Pie, detected new file names on sqlite databases with extensions -shm and -wal.

    2019-05-18 Corrected bug on my detailed firmware function that was crashing app. Implemented Google Fit sync on all my mod versions including previous versions.

    2019-07-07 From version 4.0.5 to Enable firmware update of devices at the moment create the file allow.fwr on mod folder, located in /sdcard/Amazfit_Jps1x2. On next versions it will be placed on mod dialog configuration.

    2019-08-08 Corrected crash on adding new devices

    2019-08-12 Enabled updating of AGPS while firmware flash is disabled.

    2020-04-13 I have called this version Covid-19 due to the many hours I have been able to spend being confined at home. I have investigated in detail the operation of the AGPS update and now we have the possibility to see on detailed firmware info section the last date and time that the AGPS has been updated and force the update whenever we want.

    Added on firmware info of device last AGPS update date and time:


    Vw9jZlr.jpg

    Now you can force AGPS update. If you create a file on folder of Mifit mod /sdcard/Amazfit_Jps1x2/ named force.agps and close Mifit app. When you open again and your device is connected using Bluetooth it will update AGPS and this file will be renamed to force.agps.ok

    UfpHILx.jpg

    2020-05-11 Complete redesign of the mod in its version 4.1.0 here you can see in a gif an example of the new interface:

    slTipJk.gif

    2020-07-13 Two gifs to expain new options added:

    YmItSzW.gif




    NgbTh2N.gif

    2020-10-08 From now on you will have available too Zepp (formerly Amazfit) with my modification to export gpx, tcx and HR information of your devices.

    2021-03-27 From now on you will have available too Xiaomi Wear mod with my modification to export gpx, tcx and upload to Strava.

    Other details of this mod:
    -You can create laps on your workouts making small pauses and they are displayed on Strava website.
    -Notice by vibration to the watch from the first second of call
    -Show the name or number of the person who calls us on the device.
    -It only works with Mifit accounts, it does not work with facebook or google login. The mods seem to have a restriction that by changing the signature of the apk do not allow this type of login.
    -Google fit does not work (I'm investigating the cause)
    -Non-Gps activities are exported too as Crossfit (Treadmill running for example).
    -Non-grouping notifications enabled and emoji support.
    -Detailed firmware information of Amazfit Bip device.
    -Added more Android Pie compatibility
    -Google Fit sync enabled on all my mod versions
    -Enable/Disable firmware update of devices.
    -You can see las AGPS date/time update and force AGPS update.
    -You can export heart rate data to csv files.

    You can download the latest version and previous versions on my AndroidFileHost host, here:



    I hope you enjoy it!
    5
    Published v4.0.0 and 3.6.0B on my Android File Host. Enabled on all versions Google Fit Sync. Enjoy!
    5
    Regarding Xiaomi Wear App: Heart Rate

    So I went ahead and checked where the data is located and found this:

    It seems the heart rate is stored as UInt8 and starts at offset 17, and onwards every 3. Cross checked with the graphical data on the app and it matches. I'm not sure what the other bytes mean, and how it's structured since I have no background in programming.

    I hope we could have the heart rate included to the TCX export soon.

    View attachment 5299251
    Hi!

    Thanks for investigatimg it. I have not wear device and can't get hr recorded from device. Could you send me *_gps and *_record file with an screen capture displaying hr graph of that workout?

    I will study it on next weeks and will see if it is possible to add hr on gpx/tcx files.

    Regards

    Jps1x2
    5
    Published on my Android File Host 4011_Revolutions. Enjoy!
    4
    Regarding Xiaomi Wear App: Heart Rate

    So I went ahead and checked where the data is located and found this:

    It seems the heart rate is stored as UInt8 and starts at offset 17, and onwards every 3. Cross checked with the graphical data on the app and it matches. I'm not sure what the other bytes mean, and how it's structured since I have no background in programming.

    I hope we could have the heart rate included to the TCX export soon.

    Untitled.png