StoreRules

规则 · 支持 16 KB 页面大小 · Check the alignment of ELF segments for shared libraries

Use command-line tools directly

通俗解读

要手动检查16 KB ELF对齐,请安装所需工具,解压APK,检查每个.so文件的加载段,然后用zipalign验证APK。

  • 通过Android Studio中的SDK Manager或sdkmanager安装Android SDK Build-Tools 35.0.0或更高版本以及Android NDK。
  • 解压APK,对lib目录中的每个.so文件运行llvm-objdump -p,并筛选LOAD行。
  • 加载段的值不得低于2**14;如果有任何值为2**13、2**12或更低,请更新库打包方式,重新编译并重新测试。
  • 对APK运行zipalign -v -c -P 16 4;如果所有共享库对齐正确,最后一行输出应为“Verification successful”。
  • 如果zipalign验证失败,部分库需要重新对齐:更新其打包方式,重新编译并重新测试。

摘要由 StoreRules 撰写,并与官方原文核对。

官方原文摘录

Follow these steps to check the alignment of ELF segments using command-line tools directly: 1. Make sure both Android SDK Build-Tools version 35.0.0 or higher and the Android NDK are installed using the SDK Manager in Android Studio or sdkmanager command-line tool. 2. Extract your app's APK file: Linux or macOS unzip …

阅读官方全文 ↗ 在 StoreRules 规则库中打开 询问你的应用是否合规

变更历史

自 StoreRules 开始跟踪以来没有实质性变化。

首次出现: 2026-10-16

开发者关于此条款的案例

暂无案例。

分享你的案例