Yet another interval training app for amazfit - Amazfit

Here's my contribution to the app list for xiaomi's amazfit watch.
I was really disappointed by official apps available on the watch, so I started digging for an Interval Timer.
This one was a first step
https://forum.xda-developers.com/smartwatch/other-smartwatches/amazfit-interval-timer-0-1b-t3573016
but still I was missing some actions, so I decided to make my own.
My apk and sourcecode are available here:
https://github.com/kerfall/IntervalTrigger
everything is described in the readme.md file:
to install this app, you need to unlock list app first with adb:
adb shell
> /sdcard/launcher_config.ini
am force-stop com.huami.watch.launcher
then you can install IntervalTrigger.apk
adb install IntervalTrigger.apk
If you want to uninstall it, run
adb uninstall com.Difetis.IntervalTrigger
Usage: Start the app
- Trigger the stopwatch by clicking on the timer "00:00:00"
- Start a new lap by clicking again on the timer : the lap is added in the list
- When training is over hit the "stop" button
- Click on a lap to save your training on the watch external storage
- Or Click reset to save your training and reset the timer Exit app by swipping left
Your csv files are in csvIntervalTrigger folder. Tip: if you don't see your files or csvIntervalTrigger, just restart your watch before plugging it to your computer.
You use this app at your own risk as it's still a work in progress. No complains for data loss or potential damage to the watch, it's not an official application.
Possible updates:
- I will try to make a v2 that use the gps to export gpx data.
- Add an option menu
- Add a screen to view recorded activities
- Use physical button instead of touch screen
- Add option to countdown before start
And I would be happy to have your opinion and advises of course!!
Enjoy!!

Looks good, do you know if anyone managed to install it on Startos?

Fartleck
Hi ! thank you Kerfall for your work.
I'd like to wkon if the app is a classic interval timer (sets of work an rest times) or if we can choose distances for work or rest, anf if we can match them. I mean : [ 400m (work) + 1'30 (rest) ] * 8 for exemple.
Is there also a timer for warm up and cool down ?
Thanks a lot for your answer,
Florence (french runner)

I'm not a developer,
but I like this model of interval-timer bcz it lets you define multiple and more complex sets.
Interval Timer - HIIT Training - Apps on Google Play
An interval timer for HIIT Training and Workouts!
play.google.com
another idea is to set a interval training session based on distance, not time, once you could integrate GPS.
sorry not be able to help,
hope the ideas are nice.

Related

[APP] Do Not Disturb sync for Wear 2.0

Those who have been lucky to upgrade to Wear 2.0 have probably noticed the removed Do Not Disturb toggle synchronization between wearable and phone. Some like it, some not. I didn't like it, so I made an app that does the sync. Currently it only works one way: wearable -> phone. With some hacking, sync is working both ways.
You can find the application in Play Store.
Source, builds and setup instructions are available in github and licensed under Apache 2.0.
Installation instructions for Watch -> Phone sync:
Install phone application and wearable application from on-watch Play Store
Launch application on Phone
Click "Grant Permission" button
Enable Do Not Disturb access permission for application
Make sure all 3 checks in the application pass
Installation instructions for Phone -> Watch sync:
Setup watch ADB
Execute:
Code:
adb shell settings put secure enabled_notification_listeners com.google.android.wearable.app/com.google.android.clockwork.stream.NotificationCollectorService:rkr.weardndsync/rkr.weardndsync.NotificationService
Enable state broadcast in Watch Setup wizard
Currently synchronization phone -> watch is only possible by assigning permissions in ADB. Wear OS doesn't provide management settings. As this is not officially supported - it may not work for everyone or the next Wear version.
I love that something like this is now made, but I have a question. What is the first screenshot in the Google Play Store link for? I thought this was only for DND?
I'd like to install it and find out myself, but my ZenWatch 2 still hasn't received the update.
If your watch isn't updated, then the sync should work out of the box. As for the screenshot, I tried to show that the toggle in the watch will sync to the toggle in the phone. I'm not a designer.
Wonderful little utility. Thank you very much.
Fingers crossed to get phone > watch allowed.
I have a few apps that toggle DND via Tasker on my phone, and having it trigger the watch too would be sweet.
Good news and bad news.
The bad: notification access and all the management is unavailable in Wear. So there will not be an official way to make this work (source).
The good: you can grant the permission in ADB. I tried it and the app can actually switch DND on and off (source).
Having to run a single ADB command will probably not stop the brave people of XDA! So synchronization should eventually come to the watch, just give me some time to fix the current bugs.
Bonus news: AudioManager can be used in android <6 for sound modes. Haven't looked into that yet.
Thanks for this app, I miss the functionality!
Sync from phone to watch is implemented and functional! v1.5 is being pushed to the Play Store. You just need to enable broadcast from phone in setup wizard and execute this command in the watch:
Code:
adb shell settings put secure enabled_notification_listeners com.google.android.wearable.app/com.google.android.clockwork.stream.NotificationCollectorService:rkr.weardndsync/rkr.weardndsync.HackService
raimondas.rimkus said:
You can find the application in Play Store
Click to expand...
Click to collapse
Hello!
Not work on Huawei Mediapad X2 (android 5.1.1).
I know: "only Android 6+ is supported"... But, maybe, android 5.1 can be added to?..
Thank you!
If it can help, I can access Do Not Disturb on android 5 through Tasker.
But it is called "Interrupt Mode". It can be found here: http://tasker.dinglisch.net/userguide_summary.html search for "Interrupt Mode".
raimondas.rimkus said:
Those who have been lucky to upgrade to Wear 2.0 have probably noticed the removed Do Not Disturb toggle synchronization between wearable and phone. Some like it, some not. I didn't like it, so I made an app that does the sync. Currently it only works one way: wearable -> phone. With some hacking, sync is working both ways.
You can find the application in Play Store.
Source is available in github and licensed under Apache 2.0.
Installation instructions for Watch -> Phone sync:
Install phone application and wearable application from on-watch Play Store
Launch application on Phone
Click "Grant Permission" button
Enable Do Not Disturb access permission for application
Make sure all 3 checks in the application pass
Installation instructions for Phone -> Watch sync:
Setup watch ADB
Execute:
Code:
adb shell settings put secure enabled_notification_listeners com.google.android.wearable.app/com.google.android.clockwork.stream.NotificationCollectorService:rkr.weardndsync/rkr.weardndsync.HackService
Enable state broadcast in Watch Setup wizard
Currently synchronization phone -> watch is only possible by assigning permissions in ADB. Wear OS doesn't provide management settings. As this is not officially supported - it may not work for everyone or the next Wear version.
Click to expand...
Click to collapse
Thank you so much.
Sent from my ONEPLUS A3003 using Tapatalk
Works perfect!! Thanks!
raimondas.rimkus said:
... As for the screenshot, I tried to show that the toggle in the watch will sync to the toggle in the phone. I'm not a designer.
Click to expand...
Click to collapse
me neither, but maybe this could help?
I'm just curious. What's the difference between this version available in the Play Store (source code available here) and your own? It looks to me as though that blunden may have forked your code.
That's how open source works, you are free to fork it or take it as an inspiration. His code isn't a plain copy paste, it looks like he even has sync to older android versions, which I didn't have time to do.
I can no longer sync both ways after the newest update, v1.6. I can only control DND from both devices from my watch. Anyone else having this problem with v1.6?
Sent from my SM-G955U using Tapatalk
thecarp1975 said:
I can no longer sync both ways after the newest update, v1.6. I can only control DND from both devices from my watch. Anyone else having this problem with v1.6?
Sent from my SM-G955U using Tapatalk
Click to expand...
Click to collapse
The first idea is that app got suspended after the update. Make sure watch app is updated and start the app on phone. I've added a check that will tell you if watch DND permission is granted. If everything passes, then there is probably something weird with the AudioManager. Previous version used the new NotificationManager, but it requires a running service for broadcast events. I've switched to legacy AudioManager that can use a stateless broadcast receiver.
[Edit:] Android 4.3+ support is being pushed. This needed a code refactoring, so bugs are probable.
okk
raimondas.rimkus said:
The first idea is that app got suspended after the update. Make sure watch app is updated and start the app on phone. I've added a check that will tell you if watch DND permission is granted. If everything passes, then there is probably something weird with the AudioManager. Previous version used the new NotificationManager, but it requires a running service for broadcast events. I've switched to legacy AudioManager that can use a stateless broadcast receiver.
[Edit:] Android 4.3+ support is being pushed. This needed a code refactoring, so bugs are probable.
Click to expand...
Click to collapse
Yeah, all three permissions were granted. You wouldn't happen to have the APK for the previous version?
Sent from my SM-G955U using Tapatalk
V1.5 attached.
I would still prefer if you could make a logcat and I could fix the problem for the rest of the people. Just do these steps:
Connect phone to ADB
Enable DND, Disable DND on phone
Enable DND, Disable DND in watch
Run: adb logcat -d > bug_phone.txt
Repeat with watch connected to bug_watch.txt
PM the logs and I may try to fix it. It's not the first time android APIs don't work in specific phones.
Just a quick FYI. Version 1.6 works fine here. Nexus 6 / Pure Nexus 7.1.1 / Magisk root. Huawei watch AW 2.0 7.1.1 stock.
I can start DND from either watch or phone and the other device enables.
It works when I start Sleep as Android; SaS enables phone DND and that enables DND for AW 2.0, then Tasker via AutoWear triggers theater mode on my watch. One step goodness! :victory:

[APP] UK Train Times - Live train departures & arrivals on the Pace/Stratos

Train times on your watch!
This is a simple app, originally developed to test the Communication library. It's designed to mimic a platform-level train departure board at a station, but displaying the platform too.
Features
- Add all of your local stations as options (tap the station name to pick from a list)
- Supports both departures and arrivals
- Shows all trains coming to the station soon (on time, delayed or cancelled) and the dreaded rail replacement buses
- Tap an item for full info on a full screen layout
- Displays calling points, including times
- Shows statuses of the trains, including minor delays
- Updates automatically every minute
- Also supports pull down to refresh
- Always shows a clock on screen so you don't lose track
Data from National Rail Enquiries
This app requires the Amazfit Internet Companion app to be installed on your phone. To find out how to install that, see this thread
Installation and Usage
- Make sure you have the Amazfit Internet Companion app installed (see above)
- Download the latest release from here, and install it as follows:
Code:
adb install -r AmazfitUKTrainTimes-1.0.apk
- Launch it from the app list in the launcher (this needs to be enabled, see here)
Troubleshooting
It shows an error loading!
Check your watch and phone are connected (neither in airplane mode, Bluetooth for both is on and connected, phone is connected to the internet), and try restarting the service in the Amazfit Internet Companion app (See app thread for details)
I can't close the app!
Swipe on the clock at the bottom, it doesn't work on the train list. Alternatively, long press on the station name to close the app immediately
Incredible work!
Quinny899 said:
Train times on your watch!
This is a simple app, originally developed to test the Communication library. It's designed to mimic a platform-level train departure board at a station, but displaying the platform too.
Features
- Add all of your local stations as options (tap the station name to pick from a list)
- Supports both departures and arrivals
- Shows all trains coming to the station soon (on time, delayed or cancelled) and the dreaded rail replacement buses
- Tap an item for full info on a full screen layout
- Displays calling points, including times
- Shows statuses of the trains, including minor delays
- Updates automatically every minute
- Also supports pull down to refresh
- Always shows a clock on screen so you don't lose track
Data from National Rail Enquiries
This app requires the Amazfit Internet Companion app to be installed on your phone. To find out how to install that, see this thread
Installation and Usage
- Make sure you have the Amazfit Internet Companion app installed (see above)
- Download the latest release from here, and install it as follows:
Code:
adb install -r AmazfitUKTrainTimes-1.0.apk
- Launch it from the app list in the launcher (this needs to be enabled, see here)
Troubleshooting
It shows an error loading!
Check your watch and phone are connected (neither in airplane mode, Bluetooth for both is on and connected, phone is connected to the internet), and try restarting the service in the Amazfit Internet Companion app (See app thread for details)
I can't close the app!
Swipe on the clock at the bottom, it doesn't work on the train list. Alternatively, long press on the station name to close the app immediately
Click to expand...
Click to collapse
Good Job! I like the idea a lot, and I would like to try to do the same, but for NS (Netherlands train system). I will start with understanding the "Amazfit Internet Companion" and was thinking if you can help me by releasing the source code of the app via Github or any other platform? I will give credits to your work ofc, or if you would like to keep control over the app and if you have time to implement same concept but getting the train info from ns.nl, it would be really really nice...
Adi59 said:
Good Job! I like the idea a lot, and I would like to try to do the same, but for NS (Netherlands train system). I will start with understanding the "Amazfit Internet Companion" and was thinking if you can help me by releasing the source code of the app via Github or any other platform? I will give credits to your work ofc, or if you would like to keep control over the app and if you have time to implement same concept but getting the train info from ns.nl, it would be really really nice...
Click to expand...
Click to collapse
I'm not releasing this to github, because the basic concept and code for getting data from the internet is already available, in the example project within this repo
Quinny899 said:
I'm not releasing this to github, because the basic concept and code for getting data from the internet is already available, in the example project within this repo
Click to expand...
Click to collapse
Thanks for the fast reply, I'll look into it as well. I'll let you know if I get stuck anywhere on the road.

A couple of ideas about Pace2/Stratos

Hello,
I have Pace2/Stratos watch now for a couple of weeks. I realy like this watch.
To make it perfect for me, it needs a couple of additional functions.
Please, experienced users, tell me if any of that is possible.
EN version,
Amazfit Pace 2/Stratos
model A1619
ROM version: 2.3.2.8
Would be nice addition:
1. Voice overlay in Run mode (info about pace, distance, pulse).
2. Adjustable interval length (eg. info about pace every 200m, or 500m not only every km).
2. Music control accessible from Run mode.
3. elapsed Lap time in Run and Trial Run mode (only option now is total elapsed time).
4. Adding seconds to timer in timer and interval workout mode.
5. Back-light always ON mode.
-------
Dream zone:
5. Mi Fit integration
6. Google Pay
--------
Problem:
1. km pace is way off, for example instead of real pace 6min/km, watch is showing anywhere from 26:00 to 30:00.
Any ideas how to fix that?
faca9 said:
Dream zone:
5. Mi Fit integration
6. Google Pay
Click to expand...
Click to collapse
5. Is already possible, search this sub forum
6. Is impossible, the watch doesn't have NFC

Interesting tricks and apps for Amazfit watch

Hi
Here I try to list interesting tricks, apps or ... that may help for better usage of our watches (Pace/Stratos/Verge).
Please share your experiences here and I'll add it to the list by your name.
1- Thanks to edotassi, in AmazMod > Execute a shell command, you can do many things; remotely control your watch ...,
You can have unlock, type, tap and ... for example: by typing "input keyevent 4" you activate "back" function on your watch. (you can do it from your PC too)
2- By installing "Beep Hourly" you can have a vibration each our or 30 mins or whatever you wish.
3- Again in AmazMod > Execute a shell command, you can easily change the DPI of your watch (in some application that are not fitted in the watch).
By typing "adb shell wm density 238" you'll return to default DPI of Pace.
... Waiting for your experiences
RESERVED
Sadegh said:
Hi
Here I try to list interesting tricks, apps or ... that may help for better usage of our watches (Pace/Stratos/Verge).
Please share your experiences here and I'll add it to the list by your name.
1- Thanks to edotassi, in AmazMod > Execute a shell command, you can do many things; remotely control your watch ...,
You can have unlock, type, tap and ... for example: by typing "input keyevent 4" you activate "back" function on your watch. (you can do it from your PC too)
2- By installing BeepHoarly you can have a vibration each our or 30 mins or whatever you wish.
3- Again in AmazMod > Execute a shell command, you can easily change the DPI of your watch (in some application that are not fitted in the watch).
By typing "adb shell wm density 238" you'll return to default DPI of Pace.
... Waiting for your experiences
Click to expand...
Click to collapse
Can you post a link to BeepHoarly? Searching on Google returns nothing and on xda returns only to this thread.
Thanks
Here you are:
https://www.google.com/url?sa=t&rct...hourly&hl=en&usg=AOvVaw1utPK837-W54VLnrhM8u6t
(its name is beep hourly, my mistake )

Amazfit Verge > Sport > Run issue (Pace alert only every 5 mins?)

New Verge user here, runner, previous Garmin Forerunner 310XT (5Yo) owner.
While running outdoors, regular run or intervals I set pace alerts but it only shows every 5mins on regular run and if intervals are shorter than 5mins no alert is shown.
Pace alerts are crucial to runners like me and if they are not shown at least every 5 seconds (when running out off desired pace range) or let say every 3 times pace value refresh on watch screen, it´s a useless feature.
Any custom ROM/FW to solve that?
ADB command to change alert fire event schedule?
Any chance to put my hands on original "Run" app sources maybe? (C, java, Kotlin, assembly, whatever?)
Model A1811 ROM 3.2.7.0
Thanks!

Categories

Resources