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

Android - support for extractNativeLibs flag

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.7.1, 5.8.0, 5.9.0 RC, 5.12.3
    • Fix Version/s: None
    • Component/s: QPA
    • Platform/s:
      Android

      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

              Assignee:
              qtandroidteam Qt Android Team
              Reporter:
              maciej_gamedesire Maciej Węglarczyk
              Votes:
              8 Vote for this issue
              Watchers:
              13 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes