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

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

    XMLWordPrintable

Details

    • Android
    • 3b8e8bd08 (dev), a8eaa0c5a (6.8), bd5e945e1 (tqtc/lts-6.5), 269aedaef (tqtc/lts-6.2), c000d9a8b (tqtc/lts-5.15)
    • 2023wk40FOQtforAndroid, 2023wk52FOQtforAndroid, 2024wk18FOQtforAndroid, 2024wk22s2FOQtforAndroid, 2024wk24s2FOQtforAndroid, 2024wk26s2FOQtforAndroid, 2024wk38s2FOQtforAndroid, 2024wk32s2FOQtforAndroid, 2024wk36s2FOQtforAndroid, 2024wk40s3FOQtforAndroid, 2024wk42s3FOQtforAndroid

    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

              ahmedelkhazari Ahmed El Khazari
              cjhin Charles Hin
              Votes:
              1 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes