def get_snpe_android_arch(snpe_android_root: str) -> str:
    """Get the SNPE Android architecture from the SNPE Android root directory.

    snpe_android_root: The unzipped SNPE SDK directory
    """
    if not Path(snpe_android_root).exists():
        raise FileNotFoundError(f"Path {snpe_android_root} does not exist")

    android_archs = list(Path(snpe_android_root).glob("lib/aarch64-android*"))
    if len(android_archs) == 0:
        raise FileNotFoundError(f"SNPE_ANDROID_ROOT {snpe_android_root} missing aarch64-android-*")

    android_arch = android_archs[0].name
    logger.debug("SNPE Android architecture: %s", android_arch)

    return android_arch
Get the SNPE Android architecture from the SNPE Android root directory.

    snpe_android_root: The unzipped SNPE SDK directory
    
olive/platform_sdk/qualcomm/snpe/utils/adb.py