If the native libs are stored in the apk uncompressed and zipaligned then they can be loaded from the apk without be pre-extracted. It won't work on all cases but it would simplify things in most cases. Ref: https://github.com/LineageOS/android_frameworks_base/commit/ff193d642eea7128faad837d19e347cd25212c27