def get_snpe_android_root() -> str:
    """Get the SNPE Android root directory from the SNPE_ANDROID_ROOT environment variable.

    On Linux, this is the same as the SNPE_ROOT environment variable.
    On Windows, this is the complete (non-Windows) unzipped SNPE SDK directory.
    """
    try:
        snpe_android_root = os.environ["SNPE_ANDROID_ROOT"]
        logger.debug("SNPE_ANDROID_ROOT is set to %s", snpe_android_root)
    except KeyError:
        raise ValueError("SNPE_ANDROID_ROOT is not set") from None

    return snpe_android_root
Get the SNPE Android root directory from the SNPE_ANDROID_ROOT environment variable.

    On Linux, this is the same as the SNPE_ROOT environment variable.
    On Windows, this is the complete (non-Windows) unzipped SNPE SDK directory.
    
olive/platform_sdk/qualcomm/snpe/utils/adb.py