SDK Example throws SecurityException: Binder invocation to an incorrect interface

I’ve build the S Pen Remote SDK Sample App - when pressing the “Connect” Button, I get the following expection on my Samsung Galaxy S22 Ultra

[...].sample.spenremote E/SpenRemoteSample: VersionCode=16777217
[...].sample.spenremote E/SpenRemoteSample: versionName=1.0.1
[...]t.sample.spenremote E/SpenRemoteSample: Support Button = true
[...].spenremote E/SpenRemoteSample: Support Air motion = true

[...].sample.spenremote E/SpenRemoteSample: connectToSpenRemote
[...].sample.spenremote D/SM_SDK: SPen Remote SDK version : 1.0.1
[...].sample.spenremote D/SM_SDK: bind SpenRemoteService
[...].sample.spenremote D/SM_SDK: SpenRemoteService : Connected!
[...].sample.spenremote E/SpenRemoteSample: onConnected
[...]/? W/Parcel: **** enforceInterface() expected ‘android.os.IMessenger’ but read ‘’
[...].sample.spenremote E/SpenRemoteSample: unexpected error registering listener
java.lang.SecurityException: Binder invocation to an incorrect interface
at android.os.Parcel.createExceptionOrNull(
at android.os.Parcel.createException(
at android.os.Parcel.readException(
at android.os.Parcel.readException(
at [...].sample.spenremote.MainActivity$5.onSuccess(
at android.os.Handler.handleCallback(
at android.os.Handler.dispatchMessage(
at android.os.Looper.loopOnce(
at android.os.Looper.loop(
at java.lang.reflect.Method.invoke(Native Method)

I’ve upgraded the contained spenremote-v1.0.0.jar to sprenremote-v1.0.1.jar - but this did not solve the problem

Any help/hit would be appreciated,
Thanks, Christian

  • Hello, I think you might get better assistance if you submit a support request here

The issue seems to be fixed with the current software version - I can no longer reproduce this issue.

Thanks uh_1586406719 for the hint to contact support.

How you resolve this? I met exactly same error.