#1766 Installing Watchfaces fails on Mi Band 4

Open
opened 2 weeks ago by sunsero · 9 comments
sunsero commented 2 weeks ago

name: Bug report about: Create a report to help us improve


Before reporting a bug, please confirm the following:

  • I have read the wiki, and I didn't find a solution to my problem / an answer to my question.
  • I have searched the issues, and I didn't find a solution to my problem / an answer to my question.
  • If you upload an image or other content, please make sure you have read and understood the github policies and terms of services

I got Gadgetbridge from:

  • F-Droid
  • I built it myself from source code (specify tag / commit)

If you got it from Google Play, please note that version is unofficial and not supported here; it's also often quite outdated. Please switch to one of the above versions if you can.

Your issue is:

Since 0.40.1 or maybe 0.40.0 installing watchface files fails even with files that previously worked with the same firmware. Mi Band 4 uses its default watchface after trying. I can still install watchfaces using other software.

If possible, please attach logs! that might help identifying the problem.

Your wearable device is: Mi Band 4 1.0.6.26

Please specify model and firmware version if possible

Your android version is: 8

Your Gadgetbridge version is: 0.40.1

New issues about already solved/documented topics could be closed without further comments. Same for too generic or incomplete reports.

--- name: Bug report about: Create a report to help us improve --- #### Before reporting a bug, please confirm the following: - [x] I have read the [wiki](https://github.com/Freeyourgadget/Gadgetbridge/wiki), and I didn't find a solution to my problem / an answer to my question. - [x] I have searched the [issues](https://github.com/Freeyourgadget/Gadgetbridge/issues), and I didn't find a solution to my problem / an answer to my question. - [ ] If you upload an image or other content, please make sure you have read and understood the [github policies and terms of services](https://help.github.com/articles/github-terms-of-service/#1-responsibility-for-user-generated-content) ### I got Gadgetbridge from: * [x] F-Droid * [ ] I built it myself from source code (specify tag / commit) If you got it from Google Play, please note [that version](https://github.com/TaaviE/Gadgetbridge) is unofficial and not supported here; it's also often quite outdated. Please switch to one of the above versions if you can. #### Your issue is: Since 0.40.1 or maybe 0.40.0 installing watchface files fails even with files that previously worked with the same firmware. Mi Band 4 uses its default watchface after trying. I can still install watchfaces using other software. *If possible, please attach [logs](https://github.com/Freeyourgadget/Gadgetbridge/wiki/Log-Files)! that might help identifying the problem.* #### Your wearable device is: Mi Band 4 1.0.6.26 *Please specify model and firmware version if possible* #### Your android version is: 8 #### Your Gadgetbridge version is: 0.40.1 *New issues about already solved/documented topics could be closed without further comments. Same for too generic or incomplete reports.*
sunsero changed title from Installing Watchfaces is broken to Installing Watchfaces fails on Mi Band 4 2 weeks ago
ashimokawa commented 2 weeks ago
Owner

@sunsero:

Can you please tell us which watchface that is? I can then try the same and fix the bug.

@sunsero: Can you please tell us which watchface that is? I can then try the same and fix the bug.
sunsero commented 2 weeks ago
Poster

It's been https://amazfitwatchfaces.com/mi-band-4/view/4982

But I tried also my previous one that had installed well with an older Gadgetbridge version and it failed too.

It's been https://amazfitwatchfaces.com/mi-band-4/view/4982 But I tried also my previous one that had installed well with an older Gadgetbridge version and it failed too.
ashimokawa commented 2 weeks ago
Owner

@sunsero

Ok, thanks for the report, I think the change in 0.40.1 to use a bigger MTU broke it for you.

The Mi Band 4 asks for a bigger MTU (247 instead of 23), and I was under the impression that this is already a confirmation for a successful negotiation. But probably it is not.

For me I could flash firmware and res in record time with the change.

I will try to fix it for 0.41.1, if you are able to build yourself I could send you a patch to try possible fixes.

@sunsero Ok, thanks for the report, I think the change in 0.40.1 to use a bigger MTU broke it for you. The Mi Band 4 asks for a bigger MTU (247 instead of 23), and I was under the impression that this is already a confirmation for a successful negotiation. But probably it is not. For me I could flash firmware and res in record time with the change. I will try to fix it for 0.41.1, if you are able to build yourself I could send you a patch to try possible fixes.
sunsero commented 2 weeks ago
Poster

Hmm...now I remember I also could flash watchfaces immediately after the update with the MTU change. But I did NOT notice any remarkable speedup.

And I remember there's been another change to my configuration since then: my stock ROM for Galaxy S7 has received another security update... Maybe it's somehow related to this. But I can still use some other software to flash watchfaces successfully.

I can't compile Gadgetbridge myself unfortunately. Tried it a while ago using AIDE but this threw too many errors I could not figure out.

But I'll give feedback when 0.41.1 is on F-Droid.

Hmm...now I remember I also could flash watchfaces immediately after the update with the MTU change. But I did NOT notice any remarkable speedup. And I remember there's been another change to my configuration since then: my stock ROM for Galaxy S7 has received another security update... Maybe it's somehow related to this. But I can still use some other software to flash watchfaces successfully. I can't compile Gadgetbridge myself unfortunately. Tried it a while ago using AIDE but this threw too many errors I could not figure out. But I'll give feedback when 0.41.1 is on F-Droid.
ashimokawa commented 2 weeks ago
Owner

@sunsero Just tested the watchface and it worked here, damn.

Gadgetbridge should compile fine. without android studio you can just type

./gradlew assembleDebug

(shamelessly assuming you are on Linux)

@sunsero Just tested the watchface and it worked here, damn. Gadgetbridge should compile fine. without android studio you can just type ```bash ./gradlew assembleDebug ``` (shamelessly assuming you are on Linux)
sunsero commented 2 weeks ago
Poster

Thanks - not on Linux or at least not on the one you mean: AIDE is an Android app ;)

I'm going to uninstall Gadgetbridge 0.40.1 now and try out an older version to see if the issue is somehow related to the MTU change on my device.

Thanks - not on Linux or at least not on the one you mean: AIDE is an Android app ;) I'm going to uninstall Gadgetbridge 0.40.1 now and try out an older version to see if the issue is somehow related to the MTU change on my device.
sunsero commented 2 weeks ago
Poster

Ok, it worked with 0.40.0. So I upgraded to 0.40.1 to make sure it does not work there. But it does flash watchfaces successfully with it as well!

I did not notice speed improvement over 0.40.0 however. Should I do any checks regarding that?

Ok, it worked with 0.40.0. So I upgraded to 0.40.1 to make sure it does not work there. But it does flash watchfaces successfully with it as well! I did not notice speed improvement over 0.40.0 however. Should I do any checks regarding that?
sunsero commented 2 weeks ago
Poster

Bad news - after a reboot of the smartphone and setting all options in Gadgetbridge like app blacklist and automatic reconnection flashing watchfaces fails again.

Bad news - after a reboot of the smartphone and setting all options in Gadgetbridge like app blacklist and automatic reconnection flashing watchfaces fails again.
sunsero commented 2 weeks ago
Poster

Did the same procedure again but settings already in 0.40.0. With this it first worked then the watchface update after a reboot failed. Please note that Mi Band Gadgetbridge loses connection to the Mi Band 4 when failing although the smartphone is very close to it.

I then turned off automatic reconnection and flashing a watchface with 0.40.0 worked again. Updated to 0.40.1 then. First failed even after turning off automatic reconnection. But after a while ago from the smartphone it suddenly worked with 0.40.1.

Could there be an interference of the firmware update code with the reconnecting code?

Did the same procedure again but settings already in 0.40.0. With this it first worked then the watchface update after a reboot failed. Please note that Mi Band Gadgetbridge loses connection to the Mi Band 4 when failing although the smartphone is very close to it. I then turned off automatic reconnection and flashing a watchface with 0.40.0 worked again. Updated to 0.40.1 then. First failed even after turning off automatic reconnection. But after a while ago from the smartphone it suddenly worked with 0.40.1. Could there be an interference of the firmware update code with the reconnecting code?
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
Cancel
Save
There is no content yet.