Skip to main content

Module native

Module native 

Source
Expand description

Native libraries: ELF inspection and Android’s loading requirements.

ElfInfo::parse reads the facts that matter for packaging: the ABI, PT_LOAD alignment (16 KiB page support), exported entry points, and DT_NEEDED dependencies. NativePolicy decides how libraries are stored and which requirements are enforced.

Structs§

ElfInfo
Packaging-relevant facts read from a shared library.
LoadSegment
One PT_LOAD segment.
NativePolicy
Requirements applied to packaged native libraries.

Enums§

LibraryStorage
How native libraries are stored in the APK.
NativeError
Why a native library cannot be packaged.
PageSize
A memory page size Android devices use.

Constants§

GAME_ACTIVITY_ENTRY
The entry point GameActivity calls.
NATIVE_ACTIVITY_ENTRY
The entry point android.app.NativeActivity calls.
NDK_SYSTEM_LIBRARIES
The NDK’s stable system libraries, which apps may link against without packaging them, and the API level each first shipped in.