Skip to main content

resolve_android_native_library

Function resolve_android_native_library 

Source
pub fn resolve_android_native_library(
    native_library_dir: &Path,
    package_paths: &[PathBuf],
    architecture: &str,
    library_name: &str,
) -> Result<PathBuf, String>
Expand description

Resolves an Android native library without assuming APK extraction.

Extracted libraries use a regular filesystem path. Otherwise this returns Android’s supported apk!/lib/<abi>/<name> linker path after confirming that the package contains one uncompressed, bounded entry.