7-Zip-JBinding-4Android icon indicating copy to clipboard operation
7-Zip-JBinding-4Android copied to clipboard

Support for 16KB page sizes

Open asthagarg2428 opened this issue 1 year ago • 8 comments

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.

asthagarg2428 avatar Sep 23 '24 11:09 asthagarg2428

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?

omicronapps avatar Oct 16 '24 04:10 omicronapps

i got warning:

The native library arm64-v8a/lib7-Zip-JBinding.so (from com.github.omicronapps:7-Zip-JBinding-4Android:Release-16.02-2.02) is not 16 KB aligned

please update this library

Islam-Darwish avatar May 08 '25 14:05 Islam-Darwish

我这边因为需要及时适配 16kb 的需求,于是拉源码来主动编译了个支持 16kb 的成品 aar,需要的可以自取,方便可 star https://github.com/woshiluoyong/7-Zip-JBinding-4Android

woshiluoyong avatar Jul 04 '25 09:07 woshiluoyong

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?

Does this mean you're on passive maintenance on this library?

RobbWatershed avatar Jul 13 '25 09:07 RobbWatershed

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?

Just created the PR. Would you mind checking if it works on your side and publish the result?

RobbWatershed avatar Jul 26 '25 18:07 RobbWatershed

Hello, any new regarding publishing this?

alwex avatar Sep 11 '25 02:09 alwex

I'm very sorry for the slow response.

Fixed and published here: https://github.com/omicronapps/7-Zip-JBinding-4Android/releases/tag/Release-16.02-2.03

omicronapps avatar Sep 28 '25 04:09 omicronapps

Perfect, thanks a lot man ❤️

RobbWatershed avatar Sep 28 '25 07:09 RobbWatershed