Skip to content

Conversation

@m-bert
Copy link
Contributor

@m-bert m-bert commented Feb 17, 2025

Description

Starting from Android 15 devices can use 16KB page size instead of 4KB. Apps that take advantage of this require additional linker flag.

This PR adds aforementioned flag so that apps that use Reanimated don't crash.

Note

More info can be found here

Test plan

Tested on fabric-example on AVD with 16KB page size.

@m-bert m-bert requested review from piaskowyk, tjzel and tomekzaw and removed request for tjzel February 17, 2025 14:13
@m-bert m-bert added this pull request to the merge queue Feb 18, 2025
Merged via the queue into main with commit ac80a47 Feb 18, 2025
18 checks passed
@m-bert m-bert deleted the @mbert/support-16kb-page-size branch February 18, 2025 08:42
kkafar pushed a commit to software-mansion/react-native-screens that referenced this pull request Feb 18, 2025
## Description

Starting from Android 15 devices can use 16KB page size instead of 4KB.
Apps that take advantage of this require additional linker flag.

This PR adds aforementioned flag so that apps that use Screens don't
crash.

>[!NOTE]
> More info can be found
[here](https://developer.android.com/guide/practices/page-sizes)

## Test plan

I've tested it while working on the same change in
[Reanimated](software-mansion/react-native-reanimated#7037).
After adding this flag into screens app stopped crashing.


I've also tested it on `FabricExample` in Screens on AVD with 16KB page
size. I've had some problems with this example app, but after adding
this flag it stopped crashing on start (it still show some errors about
undefined function though, but I believe the problem lies in my setup).
m-bert added a commit that referenced this pull request Feb 18, 2025
Starting from Android 15 devices can use 16KB page size instead of 4KB.
Apps that take advantage of this require additional linker flag.

This PR adds aforementioned flag so that apps that use Reanimated don't
crash.

>[!NOTE]
> More info can be found
[here](https://developer.android.com/guide/practices/page-sizes)

Tested on fabric-example on AVD with 16KB page size.
@m-bert m-bert mentioned this pull request Feb 18, 2025
tjzel pushed a commit that referenced this pull request Feb 18, 2025
Starting from Android 15 devices can use 16KB page size instead of 4KB.
Apps that take advantage of this require additional linker flag.

This PR adds aforementioned flag so that apps that use Reanimated don't
crash.

>[!NOTE]
> More info can be found
[here](https://developer.android.com/guide/practices/page-sizes)

Tested on fabric-example on AVD with 16KB page size.
antonis added a commit to getsentry/sentry-react-native that referenced this pull request Mar 5, 2025
r0h0gg6 pushed a commit to r0h0gg6/react-native-reanimated that referenced this pull request Jul 28, 2025
Starting from Android 15 devices can use 16KB page size instead of 4KB.
Apps that take advantage of this require additional linker flag.

This PR adds aforementioned flag so that apps that use Reanimated don't
crash.

>[!NOTE]
> More info can be found
[here](https://developer.android.com/guide/practices/page-sizes)

Tested on fabric-example on AVD with 16KB page size.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants