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

Android - support for extractNativeLibs flag

    XMLWordPrintable

Details

    • Android
    • 0db5b424c (dev)
    • 2022wk32FOQtforAndroid, 2022wk36FOQtforAndroid, 2022wk42FOQtforAndroid, 2022wk46FOQtforAndroid, 2024wk38s2FOQtforAndroid, 2024wk40s3FOQtforAndroid

    Description

      On Android, beginning with Android Marshmallow (6.0) there's extractNativeLibs flag in <application> tag inside AndroidManifest.xml which tells should native libs be copied out of original .apk file before being loaded.

      If extractNativeLibs is set to false, .so libs can be loaded directly from original .apk file with no wasting device's storage space (which in my case is about 30MB), make app start faster and (what even more important) Google Play will "understand" them during calculating delta update - so one updating Android app without changing Qt version would benefit from this strongly (update smaller probably by ~25MB in my case!).

      I've tried on my own and managed to get Qt's libs loaded with extractNativeLibs flag set to false on device with Android 6.0+, but failed with plugins; I don't think it's a long task for someone who knows Android integration better than me.

      Useful links:

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-61072
          # Subject Branch Project Status CR V

          Activity

            People

              assam Assam Boudjelthia
              maciej_gamedesire Maciej Węglarczyk
              Votes:
              12 Vote for this issue
              Watchers:
              21 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes