chaquo / chaquopy

Chaquopy: the Python SDK for Android
https://chaquo.com/chaquopy/
MIT License
748 stars 127 forks source link

Support 16 KB page sizes #1171

Open mhsmith opened 3 weeks ago

mhsmith commented 3 weeks ago

Sources:

Beginning with Android 15, Android supports devices that are configured to use a page size of 16 KB (16 KB devices). Devices that use this configuration will not be able to run existing apps that use native code [with 4 KB pages].

16KiB compatible binaries are also compatible with 4KiB page devices. You do not need to build both 16KiB and 4KiB variants of your libraries.

To minimize disruption, the default configuration for NDK r27 remains 4KiB page sizes. A future NDK (likely r28) will change the defaults.

We plan to make 16 KB page compatibility required for app uploads to the Google Play store next year [2025].

I don't expect physical devices to start requiring this until at least 2 years after Google Play makes it compulsory. But since our binaries have a lifetime equal to that of a Python version (5 years), we should start building in 16 KB mode as soon as possible. This applies to Python, its supporting libraries, Chaquopy, and all wheels.