- Qt 6.11
- Qt Core
- CMake Target Properties in Qt6 Core
- QT_ANDROID_LEGACY_PACKAGING
- Qt 6.11.1 Reference Documentation

# QT_ANDROID_LEGACY_PACKAGING

The Android app legacy packaging.

This property was introduced in Qt 6.11.

Note: This property is used only if targeting the Android platform.

Specifies whether the app uses legacy packaging. When legacy packaging is set to `TRUE`, the app APK will store compressed libraries that are extracted on the device during installation, and the app would load those libraries. Otherwise, when set to `FALSE`, the libraries will remain uncompressed and the app can load them directly from the APK package and the libraries are mapped to memory when used.

     set_target_properties(${target} PROPERTIES
         QT_ANDROID_LEGACY_PACKAGING TRUE
     )

Note: Using the Address Sanitizer require this to be set to `TRUE`.

See also qt_android_generate_deployment_settings().