Skip to content

16 KB page-size support, compileSdk 35, AGP 8.5 #176

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

melekr
Copy link
Collaborator

@melekr melekr commented Jul 8, 2025

WHY?

Android 15 (API 35) introduces 16 KB system page sizes on modern Pixel devices.4-bit shared objects that are only 4 KB-aligned will fail to dlopen. Google Play will start rejecting unaligned arm64-v8a / x86_64 libraries on 1 Nov 2025.

We want the Backtrace Android SDK and sample app to stay Play-compliant and run on Android 15 without manual fixes.
Upgrading the build tool-chain (Gradle 8.7 / AGP 8.5.1 / NDK 27-beta1) lets us:

  • use compileSdk 35 (required for 16 KB flag),
  • enable “flexible page sizes”
  • silence JVM 17 deprecation warnings.

Changes

  • bumps Gradle wrapper to version 8.7
  • upgrades AGP plugin to 8.5.1
  • adds pluginManagement block for AGP 8.5.1
  • upgrades compileSdk/targetSdk to version 35 and NDK to 27-beta1
  • adds 16 KB linker flags for arm64 & x86_64
  • adds 16kb flags to crashpad
  • updates example-app compileSdk to version 35 (keep targetSdk at version 34)
  • aligns example-app demo native-lib.so at 16 KB
  • adds google's check_elf_alignment script

crashpad : backtrace-labs/crashpad#73

ref: BT-5798

melekr added 2 commits July 8, 2025 18:45
bump Gradle wrapper to version 8.7
upgrade AGP plugin to 8.5.1
add pluginManagement block for AGP 8.5.1
upgrade compileSdk/targetSdk to version 35 and NDK to 27-beta1
add 16 KB linker flags for arm64 & x86_64
add 16kb flags to crashpad
example-app update compileSdk to version 35 (keep targetSdk at version 34)
example-app align demo native-lib.so at 16 KB
@melekr melekr self-assigned this Jul 8, 2025
@melekr melekr marked this pull request as ready for review July 8, 2025 23:17
@melekr melekr marked this pull request as draft July 8, 2025 23:18
@melekr melekr marked this pull request as ready for review July 8, 2025 23:26
@melekr melekr marked this pull request as draft July 8, 2025 23:26
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.

1 participant