StoreRules

규칙 · Google Play

Support 16 KB page sizes

50개 조항 · StoreRules 라이브러리에서 열기

  1. Google Play compatibility requirement
  2. Benefits and performance gains
  3. Check if your app is impacted
  4. Does your app use native code?
  5. Identify native libraries using APK Analyzer
  6. Detect alignment issues with automated checks
  7. Check the alignment of ELF segments for shared libraries
  8. Use APK Analyzer (Recommended)
  9. Use the check_elf_alignment.sh script (Linux or macOS)
  10. Use command-line tools directly
  11. Check the RELRO security flag
  12. Use APK Analyzer (Recommended)
  13. Use command-line tools
  14. Step 1: Inspect the program headers
  15. Linux or macOS
  16. Windows (PowerShell)
  17. Step 2: Verify 16 KB compliance for RELRO
  18. Examples
  19. Example 1: Non-aligned .so file (Non-compliant)
  20. Example 2: Aligned .so file with a RELRO segment (Compliant)
  21. Example 3: .so file without a RELRO segment (Compliant)
  22. Example 4: GNU_RELRO in its own LOAD segment (Compliant)
  23. Build your app with support for 16 KB devices
  24. Update the packaging of your shared libraries
  25. Use bundletool to verify zip alignment
  26. AGP version 8.5.1 or higher
  27. AGP version 8.5 or lower
  28. Groovy
  29. Kotlin
  30. AGP version 8.0 or lower
  31. Compile your app using 16 KB ELF alignment
  32. Android NDK r28 and higher
  33. Android NDK r27 and lower
  34. ndk-build
  35. CMake
  36. Fix code and resolve runtime issues
  37. Optimize custom memory allocators
  38. 1. Avoid hard-coded byte thresholds for freeing memory
  39. 2. Fill up already-used pages first (dense-first allocation)
  40. 3. Align memory pools to 16 KB and keep pool sizes moderate
  41. 4. Release physical memory for cached large buffers immediately
  42. 5. Zero out memory on free instead of on allocation for ZRAM compression
  43. Summary of recommendations
  44. Check SDKs for 16 KB support
  45. Test your app in a 16 KB environment
  46. Set up the Android Emulator with a 16-KB-based system image
  47. Launch the emulator
  48. Enable 16 KB mode on a device using developer options
  49. 16 KB backcompat mode
  50. Additional resources