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

Android - support for extractNativeLibs flag

    XMLWordPrintable

Details

    • Android
    • 2022wk32FOQtforAndroid, 2022wk36FOQtforAndroid, 2022wk42FOQtforAndroid, 2022wk46FOQtforAndroid

    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

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

          Activity

            People

              qtandroidteam Qt Android Team
              maciej_gamedesire Maciej Węglarczyk
              Votes:
              12 Vote for this issue
              Watchers:
              19 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes