Hello everyone,
When building Collabora Office for Android, I noticed Google Play now requires all native .so
libraries to use 16 KB (0x4000) page alignment instead of the default 4 KB.
-
I tried patching
.so
files afterwards withobjcopy
, but alignment in ELF Program Headers remains at 0x1000. -
From my understanding, this should be configured at link time with flags like:
-Wl,-z,max-page-size=16384 -Wl,-z,common-page-size=16384
Additionally, in Release builds, I observe significant performance issues:
-
Opening large
.doc
documents is very slow, sometimes takes very long before the first page is rendered. -
Debug builds are already heavy, but I would like to know if there are recommended release linker/compiler flags (e.g. LTO, stripping symbols, optimization) that should be applied to make runtime smoother.
My questions:
-
What is the recommended way to configure the Android release build of Collabora Office so that all
.so
libraries comply with Google’s 16 KB requirement? -
Are there best practices for release build optimization (flags, configs) to improve document rendering performance on Android?
-
Has anyone else faced the issue where
.doc
files take very long to render the first page, and how did you solve it?
Thanks in advance for any guidance!