Skip to main content
Explorer
December 9, 2024
Solved

ST25NFCApplication_V3.10.0, FTM, Permission Denial

  • December 9, 2024
  • 1 reply
  • 692 views

We've slightly modified your app ST25NFC to query our ST25DV device. It sends some measured values via NFC using MailBox (FTM). From the app, we send the same query repeatedly (cca 2 sec), and the device's response varies slightly (the value, not the message format).

While it works fine on older phones, Android 13 devices throw an error after about a minute: java.lang.SecurityException: Permission Denial: Tag ( ID: B9 3B 13 05 00 51 02 E0 ) is out of date.

How can we prevent this error programmatically? (Is there a command to extend NFC access permissions, or how can we achieve this?) 

    This topic has been closed for replies.
    Best answer by France Berthelot

    Hello

    We have seen this "New feature" or behaviour raised by the stack and this is intended by design at stack level. After a while, Tag will go to "out of date" and a SecurityException is raised.

    We have updated our AndroidReaderInterface AAR file implementation to handle this.

    We are currently publishing updates on Google play store (APK already available) and on st.com

    You can retrieve the AndroidReaderInterface AAR file implementation on st.com : STSW-ST25001 - Application executable of the NFC Tap Android app for ST25 product family - STMicroelectronics

    package : STSW-ST25001SC as soon as the version 3.11.0 will be published and the library will be : st25_android_reader_interface-1.0.12-release.aar

    For information, there is no command to extend slot before "Tag out of date".

    Hope this will help

    BR, FB

     

    1 reply

    ST Employee
    December 12, 2024

    Hello

    We have seen this "New feature" or behaviour raised by the stack and this is intended by design at stack level. After a while, Tag will go to "out of date" and a SecurityException is raised.

    We have updated our AndroidReaderInterface AAR file implementation to handle this.

    We are currently publishing updates on Google play store (APK already available) and on st.com

    You can retrieve the AndroidReaderInterface AAR file implementation on st.com : STSW-ST25001 - Application executable of the NFC Tap Android app for ST25 product family - STMicroelectronics

    package : STSW-ST25001SC as soon as the version 3.11.0 will be published and the library will be : st25_android_reader_interface-1.0.12-release.aar

    For information, there is no command to extend slot before "Tag out of date".

    Hope this will help

    BR, FB