Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-116511

Android 11 and above setNativeLocks failed: "Function not implemented"

    XMLWordPrintable

Details

    • Android
    • 2023wk40FOQtforAndroid, 2023wk52FOQtforAndroid, 2024wk18FOQtforAndroid, 2024wk22s2FOQtforAndroid

    Description

      Android 11 and above gives the error when removeStaleLock is called. When app crashes or is closed witha swipe gesture (unlock not called) lock file is not removed leaving a "dangling" lock file that can be manually deleted but does not ever get removed by Qt.    It seems that flock is not implemented on Android. Android 10 and below probably also have the same problem but Qt probably does not return it as an error.  Qt probably needs to use a different mechanism.  See https://bugreports.qt.io/browse/QTBUG-81701.  App targets android 10 and uses getExternalFilesDir to create external directory where file to be locked is placed.

      setNativeLocks failed: "Function not implemented"
      

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              qtandroidteam Qt Android Team
              cjhin Charles Hin
              Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes