omicronapps / 7-Zip-JBinding-4Android

Android Java wrapper for 7z archiver engine
GNU Lesser General Public License v2.1
118 stars 24 forks source link

Support for 16KB page sizes #34

Open asthagarg2428 opened 1 month ago

asthagarg2428 commented 1 month ago

Since 7zip-JBinding-4Android uses a native library there is a requirement from Google to add support for devices which are using 16KB page size

More details: https://developer.android.com/guide/practices/page-sizes

More and more manufacturers will move to 16KB page size in future, Please prepare to support this at the earliest.

omicronapps commented 1 week ago

Thanks for calling this out. Based on the instructions in Support 16 KB page sizes, it looks like this should be possible to accomplish by modifying build.gradle as follows:

    externalNativeBuild {
        cmake {
            path "CMakeLists.txt"
            arguments "-DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON"
        }
    }

Would you be able to try this locally and create a pull request with these changes if it works correctly?