def get_snpe_adb_env(android_target: str, push_snpe: bool = True) -> dict:
    """Get the environment variables for running SNPE on the target Android device.

    android_target: The target Android device
    push_snpe: Whether to push the SNPE SDK to the target Android device
    """
    # get snpe android root
    snpe_android_root = get_snpe_android_root()

    # get android arch name
    android_arch = get_snpe_android_arch(snpe_android_root)

    # snpe dirs
    bin_dir = f"{snpe_android_root}/bin/{android_arch}"
    lib_dir = f"{snpe_android_root}/lib/{android_arch}"
    dsp_lib_dir = f"{snpe_android_root}/lib/dsp"

    # abd snpe dirs
    adb_snpe_root = f"/data/local/tmp/olive-snpe/{android_arch}"
    adb_bin_dir = f"{adb_snpe_root}/bin"
    adb_lib_dir = f"{adb_snpe_root}/lib"
    adb_dsp_lib_dir = f"{adb_snpe_root}/dsp"

    if push_snpe:
        # push snpe dirs to android target
        push_pairs = [(bin_dir, adb_bin_dir), (lib_dir, adb_lib_dir), (dsp_lib_dir, adb_dsp_lib_dir)]
        for src, dst in push_pairs:
            adb_push(src, dst, android_target, clean=True)

        # change permissions for executables
        for file in Path(bin_dir).iterdir():
            run_adb_command(f"chmod u+x {adb_bin_dir}/{file.name}", android_target, shell_cmd=True)

    # environment variables
    return {
        "LD_LIBRARY_PATH": f"$LD_LIBRARY_PATH:{adb_lib_dir}",
        "PATH": f"$PATH:{adb_bin_dir}",
        "ADSP_LIBRARY_PATH": f"'{adb_dsp_lib_dir};/system/lib/rfsa/adsp;/system/vendor/lib/rfsa/adsp;/dsp'",
    }
Get the environment variables for running SNPE on the target Android device.

    android_target: The target Android device
    push_snpe: Whether to push the SNPE SDK to the target Android device
    
olive/platform_sdk/qualcomm/snpe/utils/adb.py