bylaws / libadrenotools

A library for applying rootless Adreno GPU driver modifications/replacements
BSD 2-Clause "Simplified" License
301 stars 45 forks source link

bcenabler.cpp: Replace `PAGE_SIZE` with `getpagesize()` #22

Closed rtiangha closed 1 month ago

rtiangha commented 1 month ago

Android 15 will allow OEMs to ship arm64-v8a devices with 16KiB page sizes. Devices that use this configuration will not be able to run existing apps that use native code. To be compatible with these devices, applications will need to rebuild all their native code to be 16KiB aligned, and rewrite any code which assumes a specific page size.

This change should allow for page size to be calculated dynamically to support these new devices.

NOTE: For full support, liblinkernsbypass will also need to be updated.