yashsingh1/xdaforums huggingface dataset:
[Samsung Gear Fit] daniel3ub:
Thanks and a question

I was very surprised when I came back to test Open Fit and saw it works with my original Pixel XL! Thank you!

I wanted something to get my heart rate and register it somehow. That works like a charm with Google Fit. Awesome!

Is there any known issue with the alarms? Mine doesn't seem to work with Open Fit. Is there any permission or setting to enable?
[Samsung Gear Fit] nikc0069:
I am about to junk my Gear Fit 2 as the Samsung apps just refuse to allow display of text message alerts anymore.

I'd happily pay for an alternative app that would cover the Gear Fit 2.
[Samsung Gear Fit] gkoliropoulos:
Hello!

I have a Samsung Gear Fit previous connected with Samsung Galaxy S7 Edge via original GearFit manager app and works for some years good without any serius problems.

Now i buy the Google Pixel 5 and i tried the openfit premium app to connect my Gear fit . everything works great without problems. but i'm looking how to change the language of my Gear fit because with the S7 Edge after pairing the Gear fit takes the language of the phone. now my phone is in Greek language and the GearFit is in German language. I tried to pair again with the phone at englisch but GearFit remains German. When i pair the GearFit with my last S7 Edge, GearFit takes automatically the language of the phone. Had anyone any idea how to change the language of GearFit???
[Samsung Gear Fit] vkmaxx:
Does anyone know what is the limit of free version as far as Google Fit sync is concerned?

Can this app sync to GF in free mode or not?
[Samsung Gear Fit] ZeroSagaX:
Como puedo obtener las opción premium? google no permite realizar pagos.
[Samsung Gear Fit] Glutton4Punishment:
Any movement on this? Looks like the GitHub died too
[Samsung Gear Fit] jareddlc:
I forgot to mention. Did you turn on app notification access under settings
[Samsung Gear Fit] helixpomatia:
Yes, app notification was on.

New issue arose: after clicking on enabling BT, and Scanning for device, trying to click Show devices, at this point I receive a Force Close every time. That's not how it was ysterday :/ (I already rebooted both phone and fit, reinstalled the app)

Update: tapping on Show devices before Scan and tapping on 'No decvices' connects the Phone with Fit perfectly, no force close.

Today, Lite(Facebook), an Google calendar notifications arriving perfectly.
[Samsung Gear Fit] jareddlc:
hopefully fixes 3rd party apps not working:

http://xdaforums.com/attachment.php?attachmentid=3423925&stc=1&d=1438325848

didnt touch FC from scanning, as I cannot reproduce it on my phone.
[Samsung Gear Fit] helixpomatia:
Scan is fine on this version, no FC.

My phone keeps 'forgetting' 3rd party apps. I add 4 apps with the + button, I put the app in background, the next time I open it, the 3rd party app list is empty.

SMS massage notification works, calls dont.

(Didn't mentioned yet my device, maybe it's helpful: THL T6 Pro 4.4 android, MT6592m)
[Samsung Gear Fit] keenblade:
jareddlc, that's it. Now notifications work. I get an email notification :) When I click show on phone, nothing happens on phone. Not important.

From time to time the 3rd party app list is lost. It would be great if the app listed sorted alphabetically when selecting from the list.

Sometimes when I click connect, the phone restarts. It may be just the rom unstability.

SMS and Call notifications still don't work (I use hangout for sms).

Now, all I wish is media control feature.

Great job.
[Samsung Gear Fit] jareddlc:
I have my suspicions about the sms/call of why it stopped working, but, if you where to toggle off/on, it should continue to work. I had this issue this morning where my phone calls didn't work, but toggling it off, then on, made it work again. I'll try to fix this soon.

I also noticed my apps disappearing , and found it incredibly annoying to not have a sorted list, I'll also work on that soon.

any communication from the gear fit to the phone will not work, as I have not got to that aspect yet, and will involve reverse engineering the bluetooth packets.

I have not used hangouts as SMS, and im not sure if doing so will prevent the listener service for SMS to not work. It should still work but I may have to some testing to do.

Could some people also test this feature for me: when launching the app, it should create a notification which can only be dismissed by hitting close on it. If you open your task manager and close the app, the notification should still persist and the bluetooth connection should still exist. Meaning it should truly run in the background. thanks
[Samsung Gear Fit] keenblade:
I tested as you said. OpenFit runs in the background, even when I close the app by long pressing the home button and closing from there.

I noticed if I close the app from notification by pressing stop and then opening app again, all my lost app list comes back :)
[Samsung Gear Fit] notsmart:
I am using the same thing. I have been trying for days.. May I ask you how to do this? What do I download first?
[Samsung Gear Fit] jareddlc:
Im not sure I understand what you are asking. Are you trying to use my application? or trying to patch the original Gear Fit Manager? I cannot help you for patching the original Gear Fit Manager, however if you want to download my application, you simply need to download the apk, from the first post, get the one with OpenFit_7-30-2015.apk and install it. that should be it. If you wanted to know how I made the app, i have a small section in the first post on how i made it, towards the bottom of the first post.
[Samsung Gear Fit] cina:
Hi!

Thanks for this project it is great. It is up and running on my Fit.

Is it possible to localise Gear Fit UI through OpenFit? Currently it is German but I'm not familiar with it. It was german always but original Gear Fit Manager transfered the hungarian interface data to the wathc on first connect and I was able to use it in my native.

Thank you.
[Samsung Gear Fit] jareddlc:
hey [MENTION=874791]cina[/MENTION] I havent even begun to look at localization. I would have to figure out how to set the language for the UI. Maybe in the future I can look into this. Thanks for pointing that out. My goal right now is to have a stable working app, that does the very basic. If anyone is a developer and would like to help, please let me know, I am always willing to have people help out.

What would also help me alot, if you could use the original gear fit manager, and capture the bluetooth packets and send them to me, I could try to reverse engineer what is going on. To do this you will need:

A working Original Gear Fit Manager application installed.

1. Enable Bluetooth HCI snoop log under dev settings in CyanogemMod (there maybe an app for non CM roms)

2. Open Gear Fit Manager and connect to the watch.

3. Make sure your UI language has changed to the langage you want it to.

4. Stop the Bluetooth HCI snoop log

5. Send that log so i can review what data is being sent to change language.
[Samsung Gear Fit] jareddlc:
8-2-2015

Fix SMS/Phone bug?

Autoconnect(enabled by default, and cannot be toggled off. This means if you manually connect, and get disconnected, or leave phone somewhere, and when it comes to proximity, it will autoconnect, but if you manually disconnect, it will not try to reconnect)

Can I have a few people test the autoconnect feature. Just connect to the watch, and walk away from your phone, to cause a disconnect and walk back to your phone. It should happily reconnect. :fingers-crossed: crosses fingers

http://xdaforums.com/attachment.php?attachmentid=3426801&d=1438584374
[Samsung Gear Fit] helixpomatia:
+ SMS / Phone bug seems disappeared.

+ Auto reconnect feature works!! It's a huge thing, the original Gear Fit Manager users would kill for that ;) Congrats!

- Still no 3rd party notifications at my device, at all

- 3rd party app list still disappear

- Closing all background apps closes Open Fit app as well, disconnecting the device.

One question: is it to complicated, or early to manage at this developement stage, that the Device would show the name of the caller / sender of the SMS?

Thank you for your work, its shaping really well!
[Samsung Gear Fit] jareddlc:
I think, i may have mest up 3rd party notifications. I'll look into tonight :( I'll check it out tonight (working on 7-30-2015). I'll also look into how to get contact name based on phone number. I had a "fix" for disappearing apps, but I noticed some bugs with it, will continue to work with it.

Looks like, 3rd party apps work, but I have a bug in the bluetooth connection code, where if it fails, it crashes the listeners.
[Samsung Gear Fit] quistler:
I just got a brand new Galaxy Fit from the store. Model SM-R350, Software Version:R350XXU0BNE5.

+ Installed your APK (OpenFit_7-30-2015.apk).

+ Successfully connected my Nexus 5 (Lollipop v5.1.1)

+ The 3th pary app list appears and i'm able to select the applications. :good:

- (Same as helixpomatia mentioned), Still no 3rd party notifications at my device, at all

I'm happy to test new versions.
[Samsung Gear Fit] jareddlc:
[MENTION=660951]quistler[/MENTION] I've update the first post with the following:

How to install:

Make sure to install latest OpenFit.apk

Enable Open Fit by going to: Settings>Notifications>Notification access (see image below)

Run OpenFit application

I'm also very curious to see why you Text Messages, Phone Calls, and Clock Format, aren't getting the icons from system apps. Does anyone else not see icons for their default application?

this is how i expect it to look:
[Samsung Gear Fit] helixpomatia:
[MENTION=660951]quistler[/MENTION] I've update the first post with the following:

How to install:

Make sure to install latest OpenFit.apk

Enable Open Fit by going to: Settings>Notifications>Notification access (see image below)

Run OpenFit application

I'm also very curious to see why you Text Messages, Phone Calls, and Clock Format, aren't getting the icons from system apps. Does anyone else not see icons for their default application?

this is how i expect it to look:

I have my system icons at the Call/SMS part.

I've noticed something: when I 'close' the app by 'Back' button, the 3rd party apps list clears itself, and notifications are gone, but when I put it in the background by home, the list remains untouched, and 3rd party notifications are functioning.

So I have a fully working notification system at the moment
[Samsung Gear Fit] jareddlc:
thanks [MENTION=3178233]helixpomatia[/MENTION] I'll look into the difference between BACK and HOME buttons.
[Samsung Gear Fit] quistler:
Thanks! Settings>Notifications>Notification access did the trick! Just received a Whatsapp Notification :)
[Samsung Gear Fit] helixpomatia:
Thx Jared!

Your app is now adequate for every day use, regarding the notification management.

Do you allow me to suggest some more development ideas for the future, If you have some more time to work on it?

- Possibility to see more characters at the notification (The whole e-mail maybe?)

- Working quick reply option at massages.

- Former mentioned contact name on screen while calling

Thank you!
[Samsung Gear Fit] jareddlc:
8-3-2015

Hopefully fixed some bugs that [MENTION=3178233]helixpomatia[/MENTION] mentioned

Opening app should always force repopulating 3rd party apps, might be slower, but should fix the issue where they go missing in certain cases.

SMS & Phone calls will add contact name if one is provided, please test this.

Download: 8-3-2015

In all honesty I was working on OpenFit for 2 reasons:

1. I wanted to make an app that I would use for my watch and share it with the community.

2. Learn lessons on how to do notification listening on android so that I can finish my own project. (if you are curious what it is: https://www.youtube.com/watch?v=G-1y5b-LNrc)

That being said I will try to return to my original project, as you can see the OpenFit app resembles the app shown in the video, that is because It was my first attempt at android notifications. I've started it a few years ago, and being that my hardware device is identical to Gear Fit, in the sense that It is a notification system, I decided to take a break and work on a quick side project. I'm almost done with the "Design for manufacturing" aspect of my project. I'll spend a few more weeks with OpenFit to polish this basic version, but I'm not certain How many new features I will be able to crank out. I'm not abandoning project, but I will not spend as much time on OpenFit as I have in the past weeks. I do want to see more features like sensor data etc, proper notifications etc, I even thought of turn by turn functionality based on GPS, since I enjoy riding my road bike. So If I wrap up my other project, I'll hop right back where I left on the OpenFit.

anyways let me know what isnt working properly.
[Samsung Gear Fit] CsanadToth:
Hi jareddlc! Please just one more function! The wallpaper customization is missing in the official client on non-samsung devices. It may be a good selling point and unique in OpenFit. Thanks!
[Samsung Gear Fit] Danieldan5152:
[MENTION=2992563]jareddlc[/MENTION] nice work man.
[Samsung Gear Fit] helixpomatia:
I understand the circumstances of the development, and hope that you finish the other project (which is looking really cool :) ) soon and do some more development with OpenFit.

The caller name is now on the screen at the new version, it's perfect. Thank you very much!
[Samsung Gear Fit] FitzAusTex:
I'm getting texter name, too. On 8-3-2015.apk, a couple of oddities where Bluetooth either is or isn't connected, and where apps listed in Remove function are listed twice, but aren't actually the apps listed, so I inadvertently deleted gmail cause it was listed as Handcent, but I will keep playing with it. Also adding apps is finicky in that they eventually stick, but back button may still be messing with this.

Thanks so much for your work on this!

If you haven't already taken a break, is there any way you might sort the app list alphabetically?
[Samsung Gear Fit] keenblade:
Turn by turn functionality based on GPS and the media control feature would be fantastic for cycling.

With OpenFit I don't have to fiddle with the phone anymore. Within the notification system I can understand if a message is important or not without touching the phone. Very cool.

Your other project seems interesting. I am not sure the hardware part of yours, but I can imagine with a teensy or arduino board, the limit is the sky.

For the disappearing app list, they come back if I press the stop button on the drop down menu to quit OpenFit, then open it again. All apps are now present on the list. Actually with the latest 03/08 version, I havent encounter the missing app list problem.

Best wishes for both of your project.
[Samsung Gear Fit] jareddlc:
ahh yes, I forgot I adding it twice to the remove list... it should be easy fix, and this happened, because I'm re-adding each time the app is opened, to prevent apps from disappearing. Yes I'll also try to sort the lists soon. I haven't added apps for a while and I forgot how frustrating it is :)

[MENTION=6326690]CsanadToth[/MENTION] that would be a feature that involves reverse engineering the packets, which isnt as easy/fast. Its a nice feature though.

Im not dropping support, Im just not going to work as much as I have. so instead of 8hrs a week i might do like 3hrs a week.
[Samsung Gear Fit] Kpyto:
Don't leave us :) Your app is great, just add little more missing functions (if this possible), for example missing "getting fitness data" from Gear Fir to any Android Phone, for future sync with fitness apps.

Our Gear Fir is waiting for second life! Go on! And thanks for your hard work, man!
[Samsung Gear Fit] jareddlc:
8-6-2015

Changelog:

Sorted 3rd party apps

Duplicate remove apps bug?

MMS Support. not getting message content, just notification that an MMS came in.

Download: 8-6-2015

as always please test and let me know of bugs. I didnt have much time to test out the changes.
[Samsung Gear Fit] paulopais:
Great work .. Working good on 5.1.1 ;)

Enviado do meu HUAWEI MT7-TL10 através de Tapatalk
[Samsung Gear Fit] jareddlc:
I forgot to mention. I briefly looked at media controller and heart rate. the media controller packets look rather small, so it should be fairly simple to process data packet. And for the heart rate, when you manually scan, some time after the gear fit emits a data packet(around 3 seconds?), Im not sure if this packet is related to heart rate or not, but i sure hope it is.
[Samsung Gear Fit] helixpomatia:
Thy for the latest version! It messed up a bit the things on my device (could still ad double 3rd party apps, the app list was disappearing again, when tried to uncheck the apps which was twice on the list, it force closed), so I reinstalled the former.

Thx for inspecting the possibility of media controls! Would the full email view feature be a huge work for you?

Thank you!
[Samsung Gear Fit] jareddlc:
[MENTION=3178233]helixpomatia[/MENTION] I also had force close. The first few times will force close, but havent happened to me anymore. What do you mean full email?
[Samsung Gear Fit] helixpomatia:
Not only the sender, titel and a few initial characters from the email, but scrollable in order to read the full content.

I would be really grateful, it would make my job easier.
[Samsung Gear Fit] jareddlc:
I just implemented the email notification, seems to work but I dont know how to implement into the app. Things like getting subject and senders email, as email is a 3rd party app, I will not be able to tell which email client the user uses, to catch and send emails instead. Im still thinking going to try to figure something out. there is a limit to for the title and message fields. I incremented them so should read better now.

Update: I got it working with gmail app. It will only work with gmail at the moment. However I need to figure how to how to get contents of email As of right now I only have the Sender and subject.
[Samsung Gear Fit] helixpomatia:
You are the best! :) I think Gmail app is enough for first.

I happily try it, if it's needed!
[Samsung Gear Fit] Danieldan5152:
[MENTION=2992563]jareddlc[/MENTION] Would you mind sharing some of your knowledge I downloaded wireshark and I'm just doing some simple things like changing double tap to notifications and stuff like that but is there anyway I can use this data to like send to the gearfit and mimiek the result the Gear Fit Manager is doing.
[Samsung Gear Fit] ziotidus:
whatsapp ok!

My Nexus 6 attends for media controller of spotify ;)
[Samsung Gear Fit] jareddlc:
[MENTION=5914883]Danieldan5152[/MENTION] Im not sure what you are trying to do, but I'll try my best to help.

What do you want to do with double tap? Set the double tap option from the OpenFit app? I never used the GFM to do so.

I use BT HCI snoop log, but im sure there other tools to get raw BT packets. Here is a packet. I'll give a basic BT sniff example:

When we connect to the GearFit, it sends a message to the app which is:

000400000003000000

(Binary form, can also be in HEX)

Thing to note, the byte order is little endian.

lets break up the message:

00 // BYTE 0
04000000 // Integer 4
03000000 // Integer 3

Now what this message actually signifies, I do not know. But I know that each time I connect, I am suppose to send my "ODIN" message after I receive this message.

So, the way to get data from the Gear Fit, is to see what data is being sent to the device, and try to reverse engineer and make sense of the packet. It was easy to get the media controller buttons actions. and you can use those for an easy introduction. Sorry if this wasnt helpful, writting this during my break.
[Samsung Gear Fit] Kpyto:
Jareddlc are you try to grab some bluetooth data when Gear Fit in the test mode?

Maybe while test mode you can find other hidden options needed for implement other features?
[Samsung Gear Fit] Danieldan5152:
Send Packets to gearfit

I want to know how you test your codes? Do you put them into your app or do you have a app on your device for that? Since I have the bt snoop for Double push and it sort of makes sence but I'm still struggling to use the data to test if I'm right, that's why I want to know how to test it. Ive attached the snoop with comments aswell. I had it set on none then started the snoop then put it on Notifications then back to none then again on Notifications then stopped. Hope you understand what I mean.
[Samsung Gear Fit] jareddlc:
[MENTION=5914883]Danieldan5152[/MENTION] I use my app to test as well. It easier since i already have all the connection code. I usually override a button to perform my tests.

UPDATE: the packets look incorrect.

also for anyone here, I needed to install official Gear Fit Manager, but I get crash on open. I change my build prop to remove samsung, but im still getting FC. any ideas? I need this to figure out how to implement phone calls notification. Unless someone wants to gather BT snoop log for me that has incoming phone call and others.

UPDATE: I think i got GFM working... not sure yet
[Samsung Gear Fit] jareddlc:
8-8-2015

super super late night (early morning build) probably broken. its 3AM :eek:

Changelog:

Phone Call notification (this is probably flaky, as it will keep ringing unless you try to reject or accept it, which currently isnt implemented)

Email notification (there is no way to get actual email, due to security reasons. I wonder how Samsung does it) I forgot to place text in body i think.

Download: 8-8-2015

as usual test and report bugs. thanks
[Samsung Gear Fit] thijsnl:
Hey Jareddlc,

Due to the fact that my Xperia Z3 compact updated from 5.0.2 to 5.1.1, i cannot any longer use the patched Gear Fit Manager.

I've download your openFit and it seems to work ok! I can pair, change clock 24/12 mode. However i did not see any notifications come trough (with the august 6 release). I will try the August 8 release now. Good work!

I've set the Notification Acces to OpenFit.

P.S. Is there a possibility that we can use a kind of cups library to let SAMSUNG_CUP_ENABLED applications to work on the GF?

UPDATE: Incoming call confirmed working, and can reject.
[Samsung Gear Fit] helixpomatia:
Awsome! Just some more small adjustment, and we won't need the official app :)

- Call notifications are visible now (As you mentioned, Reject option only mutes the call, Reject with SMS doesnt work. But I dont mind at all, its enough for now)

- E-mails are readable on the device almost completly

Nice work Jared, really!

I miss only Media controls now :)
[Samsung Gear Fit] Danieldan5152:
[MENTION=2992563]jareddlc[/MENTION] How do you mean incorrect that is from the bt snoop at that moment, wish we could arrange a meeting on teamspeak or something I really wouldn't mind learning this stuff.
[Samsung Gear Fit] jareddlc:
[MENTION=5914883]Danieldan5152[/MENTION], yes the packet is incomplete. I wouldn't mind doing that or trying to write up a better how-to post. Maybe if i have some time today I can do that.
[Samsung Gear Fit] LoeiHeavy:
Awesome work! I bought it a few days ago and iam really bummed that i had to go back to touchwiz to use it.

What do you guys use as an s health alternative?

Verstuurd vanaf mijn SM-G900F met Tapatalk
[Samsung Gear Fit] jareddlc:
Good news, I may have a working MediaController soon. Unsure yet, but still learning how to change tracks on android.
[Samsung Gear Fit] Kpyto:
Actually noone soft can't syncronice data from Gear Fir to non-Samsung device :(

I'm using Google Fit and Endomondo (with GF support as external display).

Hope OpenFit someday fix this problem :)
[Samsung Gear Fit] LoeiHeavy:
Ahh oke. Yeah i tried endomundo. Only downside is that it doesn't support the heartrate monitor.

I guess for now i will just use the watch for hr and runkeeper or something to track the speed and route.