I’m using Tizen Studio to compile my companion application with Tizen3.0 compiler (Long story short, there is no way to use the emulator on newer versions).
So, I downloaded the SDK from here: Galaxy Accessory - Build | Samsung Developers
It’s version is 2.6.4 and I could install the Android part on my phone, and the Tizen part onto the watch from this folder: Consumer(Tizen)_Provider(Android)
.
I want to make the connection secure, and in this sample application there are parts commented out which responsible for the authentication. So I went ahead and removed the comments, and instead of immediately acceptServiceConnectionRequest
, I call authenticatePeerAgent
.
That’s fine, onAuthenticationResponse
is called, but fails to validate authToken
: it’s size is not matching with Android application’s package certificate’s.
And I can’t import Android’s certificate or keystore, because I don’t have that option in Certificate manager:
I searched for more and found this: Galaxy Watch - Build | Samsung Developers, but this is also ridiculous, it doesn’t even have any main
function.
So guys, what would you recommend me to make the connection with SAP secure?