As part of adding support for Android 'Marshmallow' 6.0 to an Android app, we're updating various dependencies. One of these is a library in the form of Samsung's Accessory SDK. Current version of the library is 2.2.2, whereas the latest one is 2.3.0 (which is the direct successor of 2.2.2).
Version 2.3.0 has a note indicating that this is definitely the one we want:
Samsung Accessory SDK 2.3.0 (and above) is required for devices on Android 6.0(Marshmallow).
So... time to update! The dependency update appears to be painless, as no compile errors occur and the version bump was only a minor one (I know of course I can't rely on that, but generally this does provide a 'signal'). Also, the release notes do not explicitly highlight any breaking changes, which you would expect to be clearly pointed out if there were any.
But... after the update, the Android 'companion' app and Tizen wearable app (running on a Gear S2 watch) no longer appear to be able to establish a connection and communicate with each other. Reverting to Accessory SDK version 2.2.2 magically makes everything work again.
So, something definitely changed. In fact, there appears to be a breaking change that is not clearly documented anywhere.
My question: what is this change (or changes) and how to correctly upgrade from Samsung Accessory SDK 2.2.2 to 2.3.0?