32-bit libraries

An APK with no lib/arm64-v8a runs its lib/armeabi-v7a or lib/armeabi libraries: the install takes the best ABI the APK has, as a 64-bit phone does, into the app's lib/arm. These are ILP32 ARM code for bionic, so a guest pointer is 32 bits and cannot be a host pointer. The 32-bit bridge (arm32.c, arm32_libc.c, arm32_jni.c) is a separate one beside the 64-bit bridge:

The 32-bit bridge's libc is the set that apps have needed so far, and an import it lacks says so once and returns 0. It has no OpenSL ES or Vulkan yet, and a host fault in generated code (a JIT's null check) ends the app. Windows has none of the POSIX layouts it takes bionic's from, so the build leaves the 32-bit bridge out there (arm32_none.c) and a 32-bit library's load fails with its path. Two apps run: an armeabi game engine of 6 MB (GLES 1.1 through GLSurfaceView), its menus, its game and its touches, and a Unity 4.7 game for armeabi-v7a (Mono's JIT, GLES 2 through native EGL, input through NativeActivity's queue), its menus and a level.


Made from docs/platforms/android-apps/native.md at 69237645142c. GPL-3.0-or-later.