Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Would love to help but am on Mac, any idea how to introduce hook on Mac? #8

Closed
dfeist opened this issue Jul 2, 2014 · 11 comments
Closed
Labels
Milestone

Comments

@dfeist
Copy link

dfeist commented Jul 2, 2014

No description provided.

@pcolby
Copy link
Owner

pcolby commented Jul 2, 2014

Assuming FlowSync is not available on Mac (AFAIK), then I don't see any way to make the hook work on Mac currently.

The hook itself just captures specific network packets from the WebSync app. It still depends on WebSync to do all of the hardware (V800 / loop) communications, as well as the flow website communications. The hook just listens in, prior to the TLS encryption being layered on.

If Polar ever ports their Qt-based FlowSync app to Mac (they really should), then I'll build a Mac version of the hooked Qt network library too.

FWIW, the GUI app I'm writing will use Qt and be able to be built on Windows, OSX and Linux; which will be handy if Polar ever does port their app to OSX and/or Linux sometime.

@dfeist
Copy link
Author

dfeist commented Jul 2, 2014

It is already available on mac.
On 2 Jul 2014 22:53, "Paul Colby" notifications@github.com wrote:

Assuming FlowSync is not available on Mac (AFAIK), then I don't see any
way to make the hook work on Mac currently.

The hook itself just captures specific network packets from the WebSync
app. It still depends on WebSync to do all of the hardware (V800 / loop)
communications, as well as the flow website communications. The hook just
listens in, prior to the TLS encryption being layered on.

If Polar ever ports their Qt-based FlowSync app to Mac (they really
should), then I'll build a Mac version of the hooked Qt network library too.

FWIW, the GUI app I'm writing will use Qt and be able to be built on
Windows, OSX and Linux; which will be handy if Polar ever does port their
app to OSX and/or Linux sometime.


Reply to this email directly or view it on GitHub
#8 (comment).

@pcolby
Copy link
Owner

pcolby commented Jul 3, 2014

It is already available on mac.

Oh, cool! I couldn't find any download link... didn't look too hard though.

I've been looking for a reason to dust off my Mac Mini 😄

In the meantime, any chance you could get a listing of the files included in Mac app?

@dfeist
Copy link
Author

dfeist commented Jul 3, 2014

https://d9snzuuztz987.cloudfront.net/connect/download/FlowSync_2.1.5.pkg

Contents of FlowSync.pkg
-Applications
--FlowSync.app
---Contents
----_CodeSignature
-----CodeResources
----Frameworks
-----libpolar2.0.dylib
-----libwslib.1.dylib
-----QtCore.framework
------Resources
------Versions
-------5
--------QtCore
-----QtGui.framework
------Resources
------Versions
-------5
--------QtGui
-----QtMultimedia.framework
------Resources
------Versions
-------5
--------QtMultimedia
-----QtMultimediaWidgets.framework
------Resources
------Versions
-------5
--------QtMultimediaWidgets
-----QtNetwork.framework
------Resources
------Versions
-------5
--------QtNetwork
-----QtOpenGL.framework
------Resources
------Versions
-------5
--------QtOpenGL
-----QtPrintSupport.framework
------Resources
------Versions
-------5
--------QtPrintSupport
-----QtQml.framework
------Resources
------Versions
-------5
--------QtQml
-----QtQuick.framework
------Resources
------Versions
-------5
--------QtQuick
-----QtScript.framework
------Resources
------Versions
-------5
--------QtScript
-----QtSensors.framework
------Resources
------Versions
-------5
--------QtSensors
-----QtSql.framework
------Resources
------Versions
-------5
--------QtSql
-----QtV8.framework
------Resources
------Versions
-------5
--------QtV8
-----QtWebKit.framework
------Resources
------Versions
-------5
--------QtWebKit
-----QtWebKitWidgets.framework
------Resources
------Versions
-------5
--------QtWebKitWidgets
-----QtWidgets.framework
------Resources
------Versions
-------5
--------QtWidgets
-----QtXml.framework
------Resources
------Versions
-------5
--------QtXml
----Info.plist
----MacOS
-----FlowSync
----PkgInfo
----PlugIns
-----accessible
------libqtaccessiblequick.dylib
------libqtaccessiblewidgets.dylib
-----imageformats
------libqgif.dylib
------libqico.dylib
------libqjpeg.dylib
------libqmng.dylib
------libqtga.dylib
------libqtiff.dylib
------libqwbmp.dylib
-----mediaservice
------libqavfcamera.dylib
------libqavfmediaplayer.dylib
------libqqt7engine.dylib
------libqtmedia_audioengine.dylib
-----platforms
------libqcocoa.dylib
-----printsupport
------libcocoaprintersupport.dylib
-----sqldrivers
------libqsqlite.dylib
------libqsqlodbc.dylib
----Resources
-----empty.lproj
-----flowsync.icns
-----qt.conf

@pcolby
Copy link
Owner

pcolby commented Jul 3, 2014

Definitely Qt5 based, so should be possible to build / run the hook on Mac too 😄

@dfeist
Copy link
Author

dfeist commented Jul 3, 2014

BTW, while we know Polar use protobuf between FlowSync and their servers, any idea whats used between FlowSync and V800? Is there any way to hook in there, could it potentially be an easier format to work with or open up more possibilities?

@pcolby
Copy link
Owner

pcolby commented Jul 3, 2014

any idea whats used between FlowSync and V800? Is there any way to hook in there

No idea... it could use protobuf there too, but just as likely doesn't. Getting a hook into there probably requires some knowledge of the USB stack on the platform (Windows vs Mac)... perhaps some stracing on Mac would give some hints? (I've never tried sniffing USB devices)

@pcolby pcolby modified the milestones: 0.3.0, 0.2.0 Jul 16, 2014
@pcolby
Copy link
Owner

pcolby commented Jul 17, 2014

Just FYI, I've created a Bipolar group on Google Groups - http://groups.google.com/d/forum/bipolar-app

Feel free to continue the conversation here or there - whichever is easiest for you 😄

Cheers.

@pcolby
Copy link
Owner

pcolby commented Aug 2, 2014

The OSX hook is working on my dev machine 😄

Now on to packaging up the hook.

@pcolby
Copy link
Owner

pcolby commented Aug 2, 2014

All the unit tests pass on OSX... good sign.

@pcolby
Copy link
Owner

pcolby commented Aug 3, 2014

Mac supported add in the just-released version 0.2 😄

@pcolby pcolby closed this as completed Aug 3, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants