Start by finding native code in the shipped artifact

A Java or Kotlin codebase can still contain native binaries because an SDK bundles them. The useful question is not only whether your team wrote C or C++; it is whether the final package contains ELF shared libraries for any ABI. Inspect the release APK or the APKs generated from the app bundle, not only the source tree.

Code
unzip -l app-release.apk | grep -E 'lib/[^/]+/[^/]+\.so$'

If the command returns no libraries, this package may not have the NDK alignment issue described by Android. That is not a complete compatibility proof: confirm the artifact and every delivery variant you actually ship, and check whether native libraries are delivered by a separate dynamic feature or SDK path.

Check the ELF segments and APK packaging separately

Two different alignment layers matter. ELF load segments inside a shared library need suitable alignment, and the library entry inside the APK needs suitable ZIP alignment. A package check cannot repair a prebuilt native library whose segments were linked incorrectly; a correctly linked library can still be packaged in a way that needs attention.

Code
unzip -q app-release.apk 'lib/arm64-v8a/*.so' -d /tmp/app-libs
llvm-readelf -lW /tmp/app-libs/lib/arm64-v8a/libexample.so
zipalign -c -P 16 -v 4 app-release.apk

Use the actual library name and the readelf tools from the NDK you use. Review the program-header alignment values against the current Android guidance. Keep the output with the artifact hash so that a later check can be tied to the exact build rather than to a similarly named file.

Rebuild the dependency chain, not just the app shell

If a library fails inspection, identify who builds it and which SDK version introduced it. Rebuilding your own wrapper does not change an incompatible prebuilt library. Update or rebuild each affected dependency with a toolchain that supports the target page size, then regenerate the package from a clean, recorded build.

Avoid solving the report by removing a native SDK without understanding its purpose. Check which app features depend on it, whether a compatible release exists, and whether the updated library changes ABI coverage or runtime behavior. Record the dependency version in the release evidence.

Test the same release path on a 16 KB environment

Install the release-like artifact on an Android emulator or device image configured for 16 KB pages. Exercise code that loads native libraries, starts the app, opens media or database features, and performs the native work supplied by SDKs. A successful install is useful evidence, but it does not exercise every native code path.

Google Play guidance currently describes a 16 KB compatibility requirement for affected apps, with a future restriction on updates that do not support it. Because platform and store policies change, confirm the linked guidance and Play Console notices when setting a release gate rather than copying a deadline into a permanent checklist.

Use a release decision record

  • Save the package hash, ABI list, NDK and SDK versions, and alignment-check output.
  • Record which 16 KB system image and devices were used, along with the native paths exercised.
  • Keep a named owner for any SDK that still ships an incompatible library.
  • Re-run the checks when a native dependency, packaging plugin, or app bundle configuration changes.

The practical conclusion should be scoped to the artifacts and paths checked. A passing APK alignment command alone is not evidence that every binary in every delivery split runs correctly on every device.

Official references